diff --git a/assets/index-1QYX0ax7.js b/assets/index-1QYX0ax7.js deleted file mode 100644 index 5c11211..0000000 --- a/assets/index-1QYX0ax7.js +++ /dev/null @@ -1,134 +0,0 @@ -var O6e=Object.defineProperty;var T6e=(To,Qt,Bi)=>Qt in To?O6e(To,Qt,{enumerable:!0,configurable:!0,writable:!0,value:Bi}):To[Qt]=Bi;var P6e=(To,Qt)=>()=>(Qt||To((Qt={exports:{}}).exports,Qt),Qt.exports);var Uf=(To,Qt,Bi)=>T6e(To,typeof Qt!="symbol"?Qt+"":Qt,Bi);var M6e=P6e((j6e,wC)=>{(async()=>{function To(t,e){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function e(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(r){if(r.ep)return;r.ep=!0;const o=e(r);fetch(r.href,o)}})();var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function A6(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var xC={exports:{}},qf={},kC={exports:{}},Re={},kc=Symbol.for("react.element"),D6=Symbol.for("react.portal"),j6=Symbol.for("react.fragment"),N6=Symbol.for("react.strict_mode"),z6=Symbol.for("react.profiler"),F6=Symbol.for("react.provider"),L6=Symbol.for("react.context"),B6=Symbol.for("react.forward_ref"),$6=Symbol.for("react.suspense"),W6=Symbol.for("react.memo"),H6=Symbol.for("react.lazy"),SC=Symbol.iterator;function V6(t){return t===null||typeof t!="object"?null:(t=SC&&t[SC]||t["@@iterator"],typeof t=="function"?t:null)}var _C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},EC=Object.assign,CC={};function Js(t,e,n){this.props=t,this.context=e,this.refs=CC,this.updater=n||_C}Js.prototype.isReactComponent={},Js.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},Js.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function OC(){}OC.prototype=Js.prototype;function S0(t,e,n){this.props=t,this.context=e,this.refs=CC,this.updater=n||_C}var _0=S0.prototype=new OC;_0.constructor=S0,EC(_0,Js.prototype),_0.isPureReactComponent=!0;var TC=Array.isArray,PC=Object.prototype.hasOwnProperty,E0={current:null},MC={key:!0,ref:!0,__self:!0,__source:!0};function IC(t,e,n){var r,o={},i=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)PC.call(e,r)&&!MC.hasOwnProperty(r)&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,X=j[ee];if(0>>1;eeo(ge,B))Qo(we,ge)?(j[ee]=we,j[Q]=B,ee=Q):(j[ee]=ge,j[ae]=B,ee=ae);else if(Qo(we,B))j[ee]=we,j[Q]=B,ee=Q;else break e}}return W}function o(j,W){var B=j.sortIndex-W.sortIndex;return B!==0?B:j.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,h=null,d=3,f=!1,p=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(j){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=j)r(u),W.sortIndex=W.expirationTime,e(l,W);else break;W=n(u)}}function x(j){if(g=!1,y(j),!p)if(n(l)!==null)p=!0,M(S);else{var W=n(u);W!==null&&N(x,W.startTime-j)}}function S(j,W){p=!1,g&&(g=!1,m(O),O=-1),f=!0;var B=d;try{for(y(W),h=n(l);h!==null&&(!(h.expirationTime>W)||j&&!I());){var ee=h.callback;if(typeof ee=="function"){h.callback=null,d=h.priorityLevel;var X=ee(h.expirationTime<=W);W=t.unstable_now(),typeof X=="function"?h.callback=X:h===n(l)&&r(l),y(W)}else r(l);h=n(l)}if(h!==null)var te=!0;else{var ae=n(u);ae!==null&&N(x,ae.startTime-W),te=!1}return te}finally{h=null,d=B,f=!1}}var _=!1,E=null,O=-1,w=5,T=-1;function I(){return!(t.unstable_now()-Tj||125ee?(j.sortIndex=B,e(u,j),n(l)===null&&j===n(u)&&(g?(m(O),O=-1):g=!0,N(x,B-ee))):(j.sortIndex=X,e(l,j),p||f||(p=!0,M(S))),j},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(j){var W=d;return function(){var B=d;d=W;try{return j.apply(this,arguments)}finally{d=B}}}})(zC),NC.exports=zC;var tW=NC.exports,nW=k,gr=tW;function q(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M0=Object.prototype.hasOwnProperty,rW=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,LC={},BC={};function oW(t){return M0.call(BC,t)?!0:M0.call(LC,t)?!1:rW.test(t)?BC[t]=!0:(LC[t]=!0,!1)}function iW(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function aW(t,e,n,r){if(e===null||typeof e>"u"||iW(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Dn(t,e,n,r,o,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var fn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){fn[t]=new Dn(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];fn[e]=new Dn(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){fn[t]=new Dn(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){fn[t]=new Dn(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){fn[t]=new Dn(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){fn[t]=new Dn(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){fn[t]=new Dn(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){fn[t]=new Dn(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){fn[t]=new Dn(t,5,!1,t.toLowerCase(),null,!1,!1)});var I0=/[\-:]([a-z])/g;function R0(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(I0,R0);fn[e]=new Dn(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(I0,R0);fn[e]=new Dn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(I0,R0);fn[e]=new Dn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){fn[t]=new Dn(t,1,!1,t.toLowerCase(),null,!1,!1)}),fn.xlinkHref=new Dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){fn[t]=new Dn(t,1,!1,t.toLowerCase(),null,!0,!0)});function A0(t,e,n,r){var o=fn.hasOwnProperty(e)?fn[e]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=a&&0<=s);break}}}finally{$0=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Ec(t):""}function sW(t){switch(t.tag){case 5:return Ec(t.type);case 16:return Ec("Lazy");case 13:return Ec("Suspense");case 19:return Ec("SuspenseList");case 0:case 2:case 15:return t=W0(t.type,!1),t;case 11:return t=W0(t.type.render,!1),t;case 1:return t=W0(t.type,!0),t;default:return""}}function H0(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case tl:return"Fragment";case el:return"Portal";case j0:return"Profiler";case D0:return"StrictMode";case z0:return"Suspense";case F0:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case WC:return(t.displayName||"Context")+".Consumer";case $C:return(t._context.displayName||"Context")+".Provider";case N0:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case L0:return e=t.displayName||null,e!==null?e:H0(t.type)||"Memo";case $i:e=t._payload,t=t._init;try{return H0(t(e))}catch{}}return null}function lW(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H0(e);case 8:return e===D0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Wi(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function UC(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function uW(t){var e=UC(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Qf(t){t._valueTracker||(t._valueTracker=uW(t))}function qC(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=UC(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Jf(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function V0(t,e){var n=e.checked;return mt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function KC(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Wi(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function YC(t,e){e=e.checked,e!=null&&A0(t,"checked",e,!1)}function U0(t,e){YC(t,e);var n=Wi(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?q0(t,e.type,n):e.hasOwnProperty("defaultValue")&&q0(t,e.type,Wi(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function XC(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function q0(t,e,n){(e!=="number"||Jf(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Cc=Array.isArray;function nl(t,e,n,r){if(t=t.options,e){e={};for(var o=0;o"+e.valueOf().toString()+"",e=Zf.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Oc(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Tc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cW=["Webkit","ms","Moz","O"];Object.keys(Tc).forEach(function(t){cW.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Tc[e]=Tc[t]})});function tO(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Tc.hasOwnProperty(t)&&Tc[t]?(""+e).trim():e+"px"}function nO(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=tO(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,o):t[n]=o}}var dW=mt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function X0(t,e){if(e){if(dW[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(q(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(q(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(q(61))}if(e.style!=null&&typeof e.style!="object")throw Error(q(62))}}function G0(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Q0=null;function J0(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Z0=null,rl=null,ol=null;function rO(t){if(t=Gc(t)){if(typeof Z0!="function")throw Error(q(280));var e=t.stateNode;e&&(e=kp(e),Z0(t.stateNode,t.type,e))}}function oO(t){rl?ol?ol.push(t):ol=[t]:rl=t}function iO(){if(rl){var t=rl,e=ol;if(ol=rl=null,rO(t),e)for(t=0;t>>=0,t===0?32:31-(kW(t)/SW|0)|0}var op=64,ip=4194304;function Rc(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function ap(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,o=t.suspendedLanes,i=t.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Rc(s):(i&=a,i!==0&&(r=Rc(i)))}else a=n&~o,a!==0?r=Rc(a):i!==0&&(r=Rc(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&o)&&(o=r&-r,i=e&-e,o>=i||o===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function Ac(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-uo(e),t[e]=n}function OW(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=$c),AO=" ",DO=!1;function jO(t,e){switch(t){case"keyup":return t8.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NO(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var sl=!1;function r8(t,e){switch(t){case"compositionend":return NO(e);case"keypress":return e.which!==32?null:(DO=!0,AO);case"textInput":return t=e.data,t===AO&&DO?null:t;default:return null}}function o8(t,e){if(sl)return t==="compositionend"||!mb&&jO(t,e)?(t=OO(),dp=db=Ki=null,sl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=HO(n)}}function UO(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?UO(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function qO(){for(var t=window,e=Jf();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Jf(t.document)}return e}function wb(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function f8(t){var e=qO(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&UO(n.ownerDocument.documentElement,n)){if(r!==null&&wb(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!t.extend&&i>r&&(o=r,r=i,i=o),o=VO(n,i);var a=VO(n,r);o&&a&&(t.rangeCount!==1||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ll=null,xb=null,Uc=null,kb=!1;function KO(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kb||ll==null||ll!==Jf(r)||(r=ll,"selectionStart"in r&&wb(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Uc&&Vc(Uc,r)||(Uc=r,r=bp(xb,"onSelect"),0fl||(t.current=Db[fl],Db[fl]=null,fl--)}function it(t,e){fl++,Db[fl]=t.current,t.current=e}var Qi={},kn=Gi(Qi),Kn=Gi(!1),Ha=Qi;function pl(t,e){var n=t.type.contextTypes;if(!n)return Qi;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Yn(t){return t=t.childContextTypes,t!=null}function Sp(){ct(Kn),ct(kn)}function lT(t,e,n){if(kn.current!==Qi)throw Error(q(168));it(kn,e),it(Kn,n)}function uT(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in e))throw Error(q(108,lW(t)||"Unknown",o));return mt({},n,r)}function _p(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Qi,Ha=kn.current,it(kn,t),it(Kn,Kn.current),!0}function cT(t,e,n){var r=t.stateNode;if(!r)throw Error(q(169));n?(t=uT(t,e,Ha),r.__reactInternalMemoizedMergedChildContext=t,ct(Kn),ct(kn),it(kn,t)):ct(Kn),it(Kn,n)}var ui=null,Ep=!1,jb=!1;function dT(t){ui===null?ui=[t]:ui.push(t)}function E8(t){Ep=!0,dT(t)}function Ji(){if(!jb&&ui!==null){jb=!0;var t=0,e=Xe;try{var n=ui;for(Xe=1;t>=a,o-=a,ci=1<<32-uo(e)+o|n<O?(w=E,E=null):w=E.sibling;var T=d(m,E,y[O],x);if(T===null){E===null&&(E=w);break}t&&E&&T.alternate===null&&e(m,E),v=i(T,v,O),_===null?S=T:_.sibling=T,_=T,E=w}if(O===y.length)return n(m,E),ht&&Ua(m,O),S;if(E===null){for(;OO?(w=E,E=null):w=E.sibling;var I=d(m,E,T.value,x);if(I===null){E===null&&(E=w);break}t&&E&&I.alternate===null&&e(m,E),v=i(I,v,O),_===null?S=I:_.sibling=I,_=I,E=w}if(T.done)return n(m,E),ht&&Ua(m,O),S;if(E===null){for(;!T.done;O++,T=y.next())T=h(m,T.value,x),T!==null&&(v=i(T,v,O),_===null?S=T:_.sibling=T,_=T);return ht&&Ua(m,O),S}for(E=r(m,E);!T.done;O++,T=y.next())T=f(E,m,O,T.value,x),T!==null&&(t&&T.alternate!==null&&E.delete(T.key===null?O:T.key),v=i(T,v,O),_===null?S=T:_.sibling=T,_=T);return t&&E.forEach(function(A){return e(m,A)}),ht&&Ua(m,O),S}function b(m,v,y,x){if(typeof y=="object"&&y!==null&&y.type===tl&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Gf:e:{for(var S=y.key,_=v;_!==null;){if(_.key===S){if(S=y.type,S===tl){if(_.tag===7){n(m,_.sibling),v=o(_,y.props.children),v.return=m,m=v;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$i&&mT(S)===_.type){n(m,_.sibling),v=o(_,y.props),v.ref=Qc(m,_,y),v.return=m,m=v;break e}n(m,_);break}else e(m,_);_=_.sibling}y.type===tl?(v=Za(y.props.children,m.mode,x,y.key),v.return=m,m=v):(x=Zp(y.type,y.key,y.props,null,m.mode,x),x.ref=Qc(m,v,y),x.return=m,m=x)}return a(m);case el:e:{for(_=y.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(m,v.sibling),v=o(v,y.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else e(m,v);v=v.sibling}v=I1(y,m.mode,x),v.return=m,m=v}return a(m);case $i:return _=y._init,b(m,v,_(y._payload),x)}if(Cc(y))return p(m,v,y,x);if(_c(y))return g(m,v,y,x);Pp(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(m,v.sibling),v=o(v,y),v.return=m,m=v):(n(m,v),v=M1(y,m.mode,x),v.return=m,m=v),a(m)):n(m,v)}return b}var yl=yT(!0),bT=yT(!1),Mp=Gi(null),Ip=null,bl=null,$b=null;function Wb(){$b=bl=Ip=null}function Hb(t){var e=Mp.current;ct(Mp),t._currentValue=e}function Vb(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function wl(t,e){Ip=t,$b=bl=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Xn=!0),t.firstContext=null)}function Nr(t){var e=t._currentValue;if($b!==t)if(t={context:t,memoizedValue:e,next:null},bl===null){if(Ip===null)throw Error(q(308));bl=t,Ip.dependencies={lanes:0,firstContext:t}}else bl=bl.next=t;return e}var qa=null;function Ub(t){qa===null?qa=[t]:qa.push(t)}function wT(t,e,n,r){var o=e.interleaved;return o===null?(n.next=n,Ub(e)):(n.next=o.next,o.next=n),e.interleaved=n,hi(t,r)}function hi(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Zi=!1;function qb(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xT(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function fi(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function ea(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Fe&2){var o=r.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),r.pending=e,hi(t,n)}return o=r.interleaved,o===null?(e.next=e,Ub(r)):(e.next=o.next,o.next=e),r.interleaved=e,hi(t,n)}function Rp(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ab(t,n)}}function kT(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=e:i=i.next=e}else o=i=e;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ap(t,e,n,r){var o=t.updateQueue;Zi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var c=t.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(i!==null){var h=o.baseState;a=0,c=u=l=null,s=i;do{var d=s.lane,f=s.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=t,g=s;switch(d=e,f=n,g.tag){case 1:if(p=g.payload,typeof p=="function"){h=p.call(f,h,d);break e}h=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,d=typeof p=="function"?p.call(f,h,d):p,d==null)break e;h=mt({},h,d);break e;case 2:Zi=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,d=o.effects,d===null?o.effects=[s]:d.push(s))}else f={eventTime:f,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=f,l=h):c=c.next=f,a|=d;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(c===null&&(l=h),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,e=o.shared.interleaved,e!==null){o=e;do a|=o.lane,o=o.next;while(o!==e)}else i===null&&(o.shared.lanes=0);Xa|=a,t.lanes=a,t.memoizedState=h}}function ST(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var r=Qb.transition;Qb.transition={};try{t(!1),e()}finally{Xe=n,Qb.transition=r}}function WT(){return zr().memoizedState}function P8(t,e,n){var r=oa(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},HT(t))VT(e,n);else if(n=wT(t,e,n,r),n!==null){var o=Nn();vo(n,t,r,o),UT(n,e,r)}}function M8(t,e,n){var r=oa(t),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(HT(t))VT(e,o);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,co(s,a)){var l=e.interleaved;l===null?(o.next=o,Ub(e)):(o.next=l.next,l.next=o),e.interleaved=o;return}}catch{}finally{}n=wT(t,e,o,r),n!==null&&(o=Nn(),vo(n,t,r,o),UT(n,e,r))}}function HT(t){var e=t.alternate;return t===bt||e!==null&&e===bt}function VT(t,e){td=Np=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function UT(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ab(t,n)}}var Lp={readContext:Nr,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useInsertionEffect:Sn,useLayoutEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useMutableSource:Sn,useSyncExternalStore:Sn,useId:Sn,unstable_isNewReconciler:!1},I8={readContext:Nr,useCallback:function(t,e){return Ro().memoizedState=[t,e===void 0?null:e],t},useContext:Nr,useEffect:DT,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,zp(4194308,4,zT.bind(null,e,t),n)},useLayoutEffect:function(t,e){return zp(4194308,4,t,e)},useInsertionEffect:function(t,e){return zp(4,2,t,e)},useMemo:function(t,e){var n=Ro();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ro();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=P8.bind(null,bt,t),[r.memoizedState,t]},useRef:function(t){var e=Ro();return t={current:t},e.memoizedState=t},useState:RT,useDebugValue:o1,useDeferredValue:function(t){return Ro().memoizedState=t},useTransition:function(){var t=RT(!1),e=t[0];return t=T8.bind(null,t[1]),Ro().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=bt,o=Ro();if(ht){if(n===void 0)throw Error(q(407));n=n()}else{if(n=e(),Zt===null)throw Error(q(349));Ya&30||OT(r,e,n)}o.memoizedState=n;var i={value:n,getSnapshot:e};return o.queue=i,DT(PT.bind(null,r,i,t),[t]),r.flags|=2048,od(9,TT.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=Ro(),e=Zt.identifierPrefix;if(ht){var n=di,r=ci;n=(r&~(1<<32-uo(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=nd++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=a.createElement(n,{is:r.is}):(t=a.createElement(n),n==="select"&&(a=t,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):t=a.createElementNS(t,n),t[Mo]=e,t[Xc]=r,d2(t,e,!1,!1),e.stateNode=t;e:{switch(a=G0(n,r),n){case"dialog":ut("cancel",t),ut("close",t),o=r;break;case"iframe":case"object":case"embed":ut("load",t),o=r;break;case"video":case"audio":for(o=0;oEl&&(e.flags|=128,r=!0,id(i,!1),e.lanes=4194304)}else{if(!r)if(t=Dp(a),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),id(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ht)return _n(e),null}else 2*jt()-i.renderingStartTime>El&&n!==1073741824&&(e.flags|=128,r=!0,id(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(n=i.last,n!==null?n.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=jt(),e.sibling=null,n=yt.current,it(yt,r?n&1|2:n&1),e):(_n(e),null);case 22:case 23:return O1(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?br&1073741824&&(_n(e),e.subtreeFlags&6&&(e.flags|=8192)):_n(e),null;case 24:return null;case 25:return null}throw Error(q(156,e.tag))}function L8(t,e){switch(zb(e),e.tag){case 1:return Yn(e.type)&&Sp(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return xl(),ct(Kn),ct(kn),Gb(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Yb(e),null;case 13:if(ct(yt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(q(340));ml()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ct(yt),null;case 4:return xl(),null;case 10:return Hb(e.type._context),null;case 22:case 23:return O1(),null;case 24:return null;default:return null}}var Hp=!1,En=!1,B8=typeof WeakSet=="function"?WeakSet:Set,oe=null;function Sl(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){St(t,e,r)}else n.current=null}function p2(t,e,n){try{n()}catch(r){St(t,e,r)}}var g2=!1;function $8(t,e){if(Tb=up,t=qO(),wb(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,h=t,d=null;t:for(;;){for(var f;h!==n||o!==0&&h.nodeType!==3||(s=a+o),h!==i||r!==0&&h.nodeType!==3||(l=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(f=h.firstChild)!==null;)d=h,h=f;for(;;){if(h===t)break t;if(d===n&&++u===o&&(s=a),d===i&&++c===r&&(l=a),(f=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=f}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pb={focusedElem:t,selectionRange:n},up=!1,oe=e;oe!==null;)if(e=oe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,oe=t;else for(;oe!==null;){e=oe;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,b=p.memoizedState,m=e.stateNode,v=m.getSnapshotBeforeUpdate(e.elementType===e.type?g:fo(e.type,g),b);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(x){St(e,e.return,x)}if(t=e.sibling,t!==null){t.return=e.return,oe=t;break}oe=e.return}return p=g2,g2=!1,p}function ad(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var i=o.destroy;o.destroy=void 0,i!==void 0&&p2(e,n,i)}o=o.next}while(o!==r)}}function Vp(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function v1(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function v2(t){var e=t.alternate;e!==null&&(t.alternate=null,v2(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Mo],delete e[Xc],delete e[Ab],delete e[S8],delete e[_8])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function m2(t){return t.tag===5||t.tag===3||t.tag===4}function y2(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||m2(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function m1(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=xp));else if(r!==4&&(t=t.child,t!==null))for(m1(t,e,n),t=t.sibling;t!==null;)m1(t,e,n),t=t.sibling}function y1(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(y1(t,e,n),t=t.sibling;t!==null;)y1(t,e,n),t=t.sibling}var pn=null,po=!1;function ta(t,e,n){for(n=n.child;n!==null;)b2(t,e,n),n=n.sibling}function b2(t,e,n){if(Po&&typeof Po.onCommitFiberUnmount=="function")try{Po.onCommitFiberUnmount(rp,n)}catch{}switch(n.tag){case 5:En||Sl(n,e);case 6:var r=pn,o=po;pn=null,ta(t,e,n),pn=r,po=o,pn!==null&&(po?(t=pn,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):pn.removeChild(n.stateNode));break;case 18:pn!==null&&(po?(t=pn,n=n.stateNode,t.nodeType===8?Rb(t.parentNode,n):t.nodeType===1&&Rb(t,n),Fc(t)):Rb(pn,n.stateNode));break;case 4:r=pn,o=po,pn=n.stateNode.containerInfo,po=!0,ta(t,e,n),pn=r,po=o;break;case 0:case 11:case 14:case 15:if(!En&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&p2(n,e,a),o=o.next}while(o!==r)}ta(t,e,n);break;case 1:if(!En&&(Sl(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){St(n,e,s)}ta(t,e,n);break;case 21:ta(t,e,n);break;case 22:n.mode&1?(En=(r=En)||n.memoizedState!==null,ta(t,e,n),En=r):ta(t,e,n);break;default:ta(t,e,n)}}function w2(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new B8),e.forEach(function(r){var o=G8.bind(null,t,r);n.has(r)||(n.add(r),r.then(o,o))})}}function go(t,e){var n=e.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=jt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*H8(r/1960))-r,10t?16:t,ra===null)var r=!1;else{if(t=ra,ra=null,Xp=0,Fe&6)throw Error(q(331));var o=Fe;for(Fe|=4,oe=t.current;oe!==null;){var i=oe,a=i.child;if(oe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ljt()-x1?Qa(t,0):w1|=n),Qn(t,e)}function A2(t,e){e===0&&(t.mode&1?(e=ip,ip<<=1,!(ip&130023424)&&(ip=4194304)):e=1);var n=Nn();t=hi(t,e),t!==null&&(Ac(t,e,n),Qn(t,n))}function X8(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),A2(t,n)}function G8(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(q(314))}r!==null&&r.delete(e),A2(t,n)}var D2;D2=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Kn.current)Xn=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Xn=!1,z8(t,e,n);Xn=!!(t.flags&131072)}else Xn=!1,ht&&e.flags&1048576&&hT(e,Op,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Wp(t,e),t=e.pendingProps;var o=pl(e,kn.current);wl(e,n),o=Zb(null,e,r,t,o,n);var i=e1();return e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Yn(r)?(i=!0,_p(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,qb(e),o.updater=Bp,e.stateNode=o,o._reactInternals=e,a1(e,r,t,n),e=c1(null,e,r,!0,i,n)):(e.tag=0,ht&&i&&Nb(e),jn(null,e,o,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Wp(t,e),t=e.pendingProps,o=r._init,r=o(r._payload),e.type=r,o=e.tag=J8(r),t=fo(r,t),o){case 0:e=u1(null,e,r,t,n);break e;case 1:e=i2(null,e,r,t,n);break e;case 11:e=e2(null,e,r,t,n);break e;case 14:e=t2(null,e,r,fo(r.type,t),n);break e}throw Error(q(306,r,""))}return e;case 0:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:fo(r,o),u1(t,e,r,o,n);case 1:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:fo(r,o),i2(t,e,r,o,n);case 3:e:{if(a2(e),t===null)throw Error(q(387));r=e.pendingProps,i=e.memoizedState,o=i.element,xT(t,e),Ap(e,r,null,n);var a=e.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){o=kl(Error(q(423)),e),e=s2(t,e,r,n,o);break e}else if(r!==o){o=kl(Error(q(424)),e),e=s2(t,e,r,n,o);break e}else for(yr=Xi(e.stateNode.containerInfo.firstChild),mr=e,ht=!0,ho=null,n=bT(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ml(),r===o){e=pi(t,e,n);break e}jn(t,e,r,n)}e=e.child}return e;case 5:return _T(e),t===null&&Lb(e),r=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,a=o.children,Mb(r,o)?a=null:i!==null&&Mb(r,i)&&(e.flags|=32),o2(t,e),jn(t,e,a,n),e.child;case 6:return t===null&&Lb(e),null;case 13:return l2(t,e,n);case 4:return Kb(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=yl(e,null,r,n):jn(t,e,r,n),e.child;case 11:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:fo(r,o),e2(t,e,r,o,n);case 7:return jn(t,e,e.pendingProps,n),e.child;case 8:return jn(t,e,e.pendingProps.children,n),e.child;case 12:return jn(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,o=e.pendingProps,i=e.memoizedProps,a=o.value,it(Mp,r._currentValue),r._currentValue=a,i!==null)if(co(i.value,a)){if(i.children===o.children&&!Kn.current){e=pi(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=fi(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Vb(i.return,n,e),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(q(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Vb(a,n,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}jn(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,r=e.pendingProps.children,wl(e,n),o=Nr(o),r=r(o),e.flags|=1,jn(t,e,r,n),e.child;case 14:return r=e.type,o=fo(r,e.pendingProps),o=fo(r.type,o),t2(t,e,r,o,n);case 15:return n2(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:fo(r,o),Wp(t,e),e.tag=1,Yn(r)?(t=!0,_p(e)):t=!1,wl(e,n),KT(e,r,o),a1(e,r,o,n),c1(null,e,r,!0,t,n);case 19:return c2(t,e,n);case 22:return r2(t,e,n)}throw Error(q(156,e.tag))};function j2(t,e){return fO(t,e)}function Q8(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lr(t,e,n,r){return new Q8(t,e,n,r)}function P1(t){return t=t.prototype,!(!t||!t.isReactComponent)}function J8(t){if(typeof t=="function")return P1(t)?1:0;if(t!=null){if(t=t.$$typeof,t===N0)return 11;if(t===L0)return 14}return 2}function aa(t,e){var n=t.alternate;return n===null?(n=Lr(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Zp(t,e,n,r,o,i){var a=2;if(r=t,typeof t=="function")P1(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case tl:return Za(n.children,o,i,e);case D0:a=8,o|=8;break;case j0:return t=Lr(12,n,e,o|2),t.elementType=j0,t.lanes=i,t;case z0:return t=Lr(13,n,e,o),t.elementType=z0,t.lanes=i,t;case F0:return t=Lr(19,n,e,o),t.elementType=F0,t.lanes=i,t;case HC:return eg(n,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case $C:a=10;break e;case WC:a=9;break e;case N0:a=11;break e;case L0:a=14;break e;case $i:a=16,r=null;break e}throw Error(q(130,t==null?t:typeof t,""))}return e=Lr(a,n,e,o),e.elementType=t,e.type=r,e.lanes=i,e}function Za(t,e,n,r){return t=Lr(7,t,r,e),t.lanes=n,t}function eg(t,e,n,r){return t=Lr(22,t,r,e),t.elementType=HC,t.lanes=n,t.stateNode={isHidden:!1},t}function M1(t,e,n){return t=Lr(6,t,null,e),t.lanes=n,t}function I1(t,e,n){return e=Lr(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Z8(t,e,n,r,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ib(0),this.expirationTimes=ib(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function R1(t,e,n,r,o,i,a,s,l){return t=new Z8(t,e,n,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Lr(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qb(i),t}function eH(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($2)}catch(t){console.error(t)}}$2(),jC.exports=pr;var N1=jC.exports;const sg=Bi(N1);var W2=N1;P0.createRoot=W2.createRoot,P0.hydrateRoot=W2.hydrateRoot;const iH=(...t)=>{console!=null&&console.warn&&(es(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t))},H2={},z1=(...t)=>{es(t[0])&&H2[t[0]]||(es(t[0])&&(H2[t[0]]=new Date),iH(...t))},V2=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},U2=(t,e,n)=>{t.loadNamespaces(e,V2(t,n))},q2=(t,e,n,r)=>{es(n)&&(n=[n]),n.forEach(o=>{t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,V2(t,r))},aH=(t,e,n={})=>!e.languages||!e.languages.length?(z1("i18n.languages were undefined or empty",e.languages),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,o)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,t))return!1}}),es=t=>typeof t=="string",sH=t=>typeof t=="object"&&t!==null,lH=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,uH={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},cH=t=>uH[t];let F1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(lH,cH)};const dH=(t={})=>{F1={...F1,...t}},hH=()=>F1;let K2;const fH=t=>{K2=t},pH=()=>K2,gH={type:"3rdParty",init(t){dH(t.options.react),fH(t)}},vH=k.createContext();class mH{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const yH=(t,e)=>{const n=k.useRef();return k.useEffect(()=>{n.current=t},[t,e]),n.current},Y2=(t,e,n,r)=>t.getFixedT(e,n,r),bH=(t,e,n,r)=>k.useCallback(Y2(t,e,n,r),[t,e,n,r]),vi=(t,e={})=>{var x,S,_,E;const{i18n:n}=e,{i18n:r,defaultNS:o}=k.useContext(vH)||{},i=n||r||pH();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new mH),!i){z1("You will need to pass in an i18next instance by using initReactI18next");const O=(T,I)=>es(I)?I:sH(I)&&es(I.defaultValue)?I.defaultValue:Array.isArray(T)?T[T.length-1]:T,w=[O,{},!1];return w.t=O,w.i18n={},w.ready=!1,w}(x=i.options.react)!=null&&x.wait&&z1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...hH(),...i.options.react,...e},{useSuspense:s,keyPrefix:l}=a;let u=o||((S=i.options)==null?void 0:S.defaultNS);u=es(u)?[u]:u||["translation"],(E=(_=i.reportNamespaces).addUsedNamespaces)==null||E.call(_,u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(O=>aH(O,i,a)),h=bH(i,e.lng||null,a.nsMode==="fallback"?u:u[0],l),d=()=>h,f=()=>Y2(i,e.lng||null,a.nsMode==="fallback"?u:u[0],l),[p,g]=k.useState(d);let b=u.join();e.lng&&(b=`${e.lng}${b}`);const m=yH(b),v=k.useRef(!0);k.useEffect(()=>{const{bindI18n:O,bindI18nStore:w}=a;v.current=!0,!c&&!s&&(e.lng?q2(i,e.lng,u,()=>{v.current&&g(f)}):U2(i,u,()=>{v.current&&g(f)})),c&&m&&m!==b&&v.current&&g(f);const T=()=>{v.current&&g(f)};return O&&(i==null||i.on(O,T)),w&&(i==null||i.store.on(w,T)),()=>{v.current=!1,i&&(O==null||O.split(" ").forEach(I=>i.off(I,T))),w&&i&&w.split(" ").forEach(I=>i.store.off(I,T))}},[i,b]),k.useEffect(()=>{v.current&&c&&g(d)},[i,l,c]);const y=[p,i,c];if(y.t=p,y.i18n=i,y.ready=c,c||!c&&!s)return y;throw new Promise(O=>{e.lng?q2(i,e.lng,u,()=>O()):U2(i,u,()=>O())})};function lg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var L1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function be(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var X2={exports:{}},ug=function(t){return t&&t.Math===Math&&t},ft=ug(typeof globalThis=="object"&&globalThis)||ug(typeof window=="object"&&window)||ug(typeof self=="object"&&self)||ug(typeof L1=="object"&&L1)||function(){return this}()||L1||Function("return this")(),Ke=function(t){try{return!!t()}catch{return!0}},wH=Ke,dd=!wH(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),xH=dd,G2=Function.prototype,Q2=G2.apply,J2=G2.call,Ol=typeof Reflect=="object"&&Reflect.apply||(xH?J2.bind(Q2):function(){return J2.apply(Q2,arguments)}),Z2=dd,eP=Function.prototype,B1=eP.call,kH=Z2&&eP.bind.bind(B1,B1),dt=Z2?kH:function(t){return function(){return B1.apply(t,arguments)}},tP=dt,SH=tP({}.toString),_H=tP("".slice),sa=function(t){return _H(SH(t),8,-1)},EH=sa,CH=dt,nP=function(t){if(EH(t)==="Function")return CH(t)},$1=typeof document=="object"&&document.all,OH=typeof $1>"u"&&$1!==void 0,rP={all:$1,IS_HTMLDDA:OH},oP=rP,TH=oP.all,_t=oP.IS_HTMLDDA?function(t){return typeof t=="function"||t===TH}:function(t){return typeof t=="function"},ts={},PH=Ke,en=!PH(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),MH=dd,cg=Function.prototype.call,tn=MH?cg.bind(cg):function(){return cg.apply(cg,arguments)},dg={},iP={}.propertyIsEnumerable,aP=Object.getOwnPropertyDescriptor,IH=aP&&!iP.call({1:2},1);dg.f=IH?function(t){var e=aP(this,t);return!!e&&e.enumerable}:iP;var ns=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},RH=dt,AH=Ke,DH=sa,W1=Object,jH=RH("".split),hg=AH(function(){return!W1("z").propertyIsEnumerable(0)})?function(t){return DH(t)==="String"?jH(t,""):W1(t)}:W1,Tl=function(t){return t==null},NH=Tl,zH=TypeError,H1=function(t){if(NH(t))throw new zH("Can't call method on "+t);return t},FH=hg,LH=H1,Do=function(t){return FH(LH(t))},sP=_t,lP=rP,BH=lP.all,vn=lP.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:sP(t)||t===BH}:function(t){return typeof t=="object"?t!==null:sP(t)},pt={},V1=pt,U1=ft,$H=_t,uP=function(t){return $H(t)?t:void 0},zn=function(t,e){return arguments.length<2?uP(V1[t])||uP(U1[t]):V1[t]&&V1[t][e]||U1[t]&&U1[t][e]},WH=dt,$t=WH({}.isPrototypeOf),la=typeof navigator<"u"&&String(navigator.userAgent)||"",cP=ft,q1=la,dP=cP.process,hP=cP.Deno,fP=dP&&dP.versions||hP&&hP.version,pP=fP&&fP.v8,mo,fg;pP&&(mo=pP.split("."),fg=mo[0]>0&&mo[0]<4?1:+(mo[0]+mo[1])),!fg&&q1&&(mo=q1.match(/Edge\/(\d+)/),(!mo||mo[1]>=74)&&(mo=q1.match(/Chrome\/(\d+)/),mo&&(fg=+mo[1])));var Pl=fg,gP=Pl,HH=Ke,VH=ft,UH=VH.String,Ml=!!Object.getOwnPropertySymbols&&!HH(function(){var t=Symbol("symbol detection");return!UH(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gP&&gP<41}),qH=Ml,vP=qH&&!Symbol.sham&&typeof Symbol.iterator=="symbol",KH=zn,YH=_t,XH=$t,GH=vP,QH=Object,hd=GH?function(t){return typeof t=="symbol"}:function(t){var e=KH("Symbol");return YH(e)&&XH(e.prototype,QH(t))},JH=String,Il=function(t){try{return JH(t)}catch{return"Object"}},ZH=_t,e9=Il,t9=TypeError,Jn=function(t){if(ZH(t))return t;throw new t9(e9(t)+" is not a function")},n9=Jn,r9=Tl,K1=function(t,e){var n=t[e];return r9(n)?void 0:n9(n)},Y1=tn,X1=_t,G1=vn,o9=TypeError,i9=function(t,e){var n,r;if(e==="string"&&X1(n=t.toString)&&!G1(r=Y1(n,t))||X1(n=t.valueOf)&&!G1(r=Y1(n,t))||e!=="string"&&X1(n=t.toString)&&!G1(r=Y1(n,t)))return r;throw new o9("Can't convert object to primitive value")},mP={exports:{}},a9=!0,yP=ft,s9=Object.defineProperty,l9=function(t,e){try{s9(yP,t,{value:e,configurable:!0,writable:!0})}catch{yP[t]=e}return e},u9=ft,c9=l9,bP="__core-js_shared__",d9=u9[bP]||c9(bP,{}),Q1=d9,wP=Q1;(mP.exports=function(t,e){return wP[t]||(wP[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Rl=mP.exports,h9=H1,f9=Object,Zn=function(t){return f9(h9(t))},p9=dt,g9=Zn,v9=p9({}.hasOwnProperty),Wt=Object.hasOwn||function(t,e){return v9(g9(t),e)},m9=dt,y9=0,b9=Math.random(),w9=m9(1 .toString),pg=function(t){return"Symbol("+(t===void 0?"":t)+")_"+w9(++y9+b9,36)},x9=ft,k9=Rl,xP=Wt,S9=pg,_9=Ml,E9=vP,Al=x9.Symbol,J1=k9("wks"),C9=E9?Al.for||Al:Al&&Al.withoutSetter||S9,wt=function(t){return xP(J1,t)||(J1[t]=_9&&xP(Al,t)?Al[t]:C9("Symbol."+t)),J1[t]},O9=tn,kP=vn,SP=hd,T9=K1,P9=i9,M9=wt,I9=TypeError,R9=M9("toPrimitive"),A9=function(t,e){if(!kP(t)||SP(t))return t;var n=T9(t,R9),r;if(n){if(e===void 0&&(e="default"),r=O9(n,t,e),!kP(r)||SP(r))return r;throw new I9("Can't convert object to primitive value")}return e===void 0&&(e="number"),P9(t,e)},D9=A9,j9=hd,gg=function(t){var e=D9(t,"string");return j9(e)?e:e+""},N9=ft,_P=vn,Z1=N9.document,z9=_P(Z1)&&_P(Z1.createElement),ew=function(t){return z9?Z1.createElement(t):{}},F9=en,L9=Ke,B9=ew,EP=!F9&&!L9(function(){return Object.defineProperty(B9("div"),"a",{get:function(){return 7}}).a!==7}),$9=en,W9=tn,H9=dg,V9=ns,U9=Do,q9=gg,K9=Wt,Y9=EP,CP=Object.getOwnPropertyDescriptor;ts.f=$9?CP:function(t,e){if(t=U9(t),e=q9(e),Y9)try{return CP(t,e)}catch{}if(K9(t,e))return V9(!W9(H9.f,t,e),t[e])};var X9=Ke,G9=_t,Q9=/#|\.prototype\./,fd=function(t,e){var n=Z9[J9(t)];return n===t7?!0:n===e7?!1:G9(e)?X9(e):!!e},J9=fd.normalize=function(t){return String(t).replace(Q9,".").toLowerCase()},Z9=fd.data={},e7=fd.NATIVE="N",t7=fd.POLYFILL="P",OP=fd,TP=nP,n7=Jn,r7=dd,o7=TP(TP.bind),ua=function(t,e){return n7(t),e===void 0?t:r7?o7(t,e):function(){return t.apply(e,arguments)}},er={},i7=en,a7=Ke,PP=i7&&a7(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),s7=vn,l7=String,u7=TypeError,wr=function(t){if(s7(t))return t;throw new u7(l7(t)+" is not an object")},c7=en,d7=EP,h7=PP,vg=wr,MP=gg,f7=TypeError,tw=Object.defineProperty,p7=Object.getOwnPropertyDescriptor,nw="enumerable",rw="configurable",ow="writable";er.f=c7?h7?function(t,e,n){if(vg(t),e=MP(e),vg(n),typeof t=="function"&&e==="prototype"&&"value"in n&&ow in n&&!n[ow]){var r=p7(t,e);r&&r[ow]&&(t[e]=n.value,n={configurable:rw in n?n[rw]:r[rw],enumerable:nw in n?n[nw]:r[nw],writable:!1})}return tw(t,e,n)}:tw:function(t,e,n){if(vg(t),e=MP(e),vg(n),d7)try{return tw(t,e,n)}catch{}if("get"in n||"set"in n)throw new f7("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var g7=en,v7=er,m7=ns,mi=g7?function(t,e,n){return v7.f(t,e,m7(1,n))}:function(t,e,n){return t[e]=n,t},mg=ft,y7=Ol,b7=nP,w7=_t,x7=ts.f,k7=OP,Dl=pt,S7=ua,jl=mi,IP=Wt,_7=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return y7(t,this,arguments)};return e.prototype=t.prototype,e},ve=function(t,e){var n=t.target,r=t.global,o=t.stat,i=t.proto,a=r?mg:o?mg[n]:(mg[n]||{}).prototype,s=r?Dl:Dl[n]||jl(Dl,n,{})[n],l=s.prototype,u,c,h,d,f,p,g,b,m;for(d in e)u=k7(r?d:n+(o?".":"#")+d,t.forced),c=!u&&a&&IP(a,d),p=s[d],c&&(t.dontCallGetSet?(m=x7(a,d),g=m&&m.value):g=a[d]),f=c&&g?g:e[d],!(c&&typeof p==typeof f)&&(t.bind&&c?b=S7(f,mg):t.wrap&&c?b=_7(f):i&&w7(f)?b=b7(f):b=f,(t.sham||f&&f.sham||p&&p.sham)&&jl(b,"sham",!0),jl(s,d,b),i&&(h=n+"Prototype",IP(Dl,h)||jl(Dl,h,{}),jl(Dl[h],d,f),t.real&&l&&(u||!l[d])&&jl(l,d,f)))},E7=ve,C7=en,RP=er.f;E7({target:"Object",stat:!0,forced:Object.defineProperty!==RP,sham:!C7},{defineProperty:RP});var O7=pt,AP=O7.Object,T7=X2.exports=function(t,e,n){return AP.defineProperty(t,e,n)};AP.defineProperty.sham&&(T7.sham=!0);var P7=X2.exports,M7=P7,DP=M7,I7=DP,R7=I7,A7=R7,D7=A7,jP=D7,yg=be(jP),j7=sa,ca=Array.isArray||function(t){return j7(t)==="Array"},N7=Math.ceil,z7=Math.floor,F7=Math.trunc||function(t){var e=+t;return(e>0?z7:N7)(e)},L7=F7,bg=function(t){var e=+t;return e!==e||e===0?0:L7(e)},B7=bg,$7=Math.min,W7=function(t){return t>0?$7(B7(t),9007199254740991):0},H7=W7,xr=function(t){return H7(t.length)},V7=TypeError,U7=9007199254740991,wg=function(t){if(t>U7)throw V7("Maximum allowed index exceeded");return t},q7=gg,K7=er,Y7=ns,Nl=function(t,e,n){var r=q7(e);r in t?K7.f(t,r,Y7(0,n)):t[r]=n},X7=wt,G7=X7("toStringTag"),NP={};NP[G7]="z";var iw=String(NP)==="[object z]",Q7=iw,J7=_t,xg=sa,Z7=wt,eV=Z7("toStringTag"),tV=Object,nV=xg(function(){return arguments}())==="Arguments",rV=function(t,e){try{return t[e]}catch{}},yi=Q7?xg:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=rV(e=tV(t),eV))=="string"?n:nV?xg(e):(r=xg(e))==="Object"&&J7(e.callee)?"Arguments":r},oV=dt,iV=_t,aw=Q1,aV=oV(Function.toString);iV(aw.inspectSource)||(aw.inspectSource=function(t){return aV(t)});var zP=aw.inspectSource,sV=dt,lV=Ke,FP=_t,uV=yi,cV=zn,dV=zP,LP=function(){},hV=[],BP=cV("Reflect","construct"),sw=/^\s*(?:class|function)\b/,fV=sV(sw.exec),pV=!sw.test(LP),pd=function(t){if(!FP(t))return!1;try{return BP(LP,hV,t),!0}catch{return!1}},$P=function(t){if(!FP(t))return!1;switch(uV(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pV||!!fV(sw,dV(t))}catch{return!0}};$P.sham=!0;var kg=!BP||lV(function(){var t;return pd(pd.call)||!pd(Object)||!pd(function(){t=!0})||t})?$P:pd,WP=ca,gV=kg,vV=vn,mV=wt,yV=mV("species"),HP=Array,bV=function(t){var e;return WP(t)&&(e=t.constructor,gV(e)&&(e===HP||WP(e.prototype))?e=void 0:vV(e)&&(e=e[yV],e===null&&(e=void 0))),e===void 0?HP:e},wV=bV,Sg=function(t,e){return new(wV(t))(e===0?0:e)},xV=Ke,kV=wt,SV=Pl,_V=kV("species"),gd=function(t){return SV>=51||!xV(function(){var e=[],n=e.constructor={};return n[_V]=function(){return{foo:1}},e[t](Boolean).foo!==1})},EV=ve,CV=Ke,OV=ca,TV=vn,PV=Zn,MV=xr,VP=wg,UP=Nl,IV=Sg,RV=gd,AV=wt,DV=Pl,qP=AV("isConcatSpreadable"),jV=DV>=51||!CV(function(){var t=[];return t[qP]=!1,t.concat()[0]!==t}),NV=function(t){if(!TV(t))return!1;var e=t[qP];return e!==void 0?!!e:OV(t)},zV=!jV||!RV("concat");EV({target:"Array",proto:!0,arity:1,forced:zV},{concat:function(t){var e=PV(this),n=IV(e,0),r=0,o,i,a,s,l;for(o=-1,a=arguments.length;oa;)if(s=o[a++],s!==s)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},qV={includes:KP(!0),indexOf:KP(!1)},vd={},KV=dt,lw=Wt,YV=Do,XV=qV.indexOf,GV=vd,YP=KV([].push),XP=function(t,e){var n=YV(t),r=0,o=[],i;for(i in n)!lw(GV,i)&&lw(n,i)&&YP(o,i);for(;e.length>r;)lw(n,i=e[r++])&&(~XV(o,i)||YP(o,i));return o},uw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],QV=XP,JV=uw,Cg=Object.keys||function(t){return QV(t,JV)},ZV=en,eU=PP,tU=er,nU=wr,rU=Do,oU=Cg;_g.f=ZV&&!eU?Object.defineProperties:function(t,e){nU(t);for(var n=rU(e),r=oU(e),o=r.length,i=0,a;o>i;)tU.f(t,a=r[i++],n[a]);return t};var iU=zn,GP=iU("document","documentElement"),aU=Rl,sU=pg,QP=aU("keys"),Og=function(t){return QP[t]||(QP[t]=sU(t))},lU=wr,uU=_g,JP=uw,cU=vd,dU=GP,hU=ew,fU=Og,ZP=">",eM="<",cw="prototype",dw="script",tM=fU("IE_PROTO"),hw=function(){},nM=function(t){return eM+dw+ZP+t+eM+"/"+dw+ZP},rM=function(t){t.write(nM("")),t.close();var e=t.parentWindow.Object;return t=null,e},pU=function(){var t=hU("iframe"),e="java"+dw+":",n;return t.style.display="none",dU.appendChild(t),t.src=String(e),n=t.contentWindow.document,n.open(),n.write(nM("document.F=Object")),n.close(),n.F},Tg,Pg=function(){try{Tg=new ActiveXObject("htmlfile")}catch{}Pg=typeof document<"u"?document.domain&&Tg?rM(Tg):pU():rM(Tg);for(var t=JP.length;t--;)delete Pg[cw][JP[t]];return Pg()};cU[tM]=!0;var os=Object.create||function(t,e){var n;return t!==null?(hw[cw]=lU(t),n=new hw,hw[cw]=null,n[tM]=t):n=Pg(),e===void 0?n:uU.f(n,e)},md={},gU=XP,vU=uw,mU=vU.concat("length","prototype");md.f=Object.getOwnPropertyNames||function(t){return gU(t,mU)};var fw={},oM=Eg,yU=xr,bU=Nl,wU=Array,xU=Math.max,iM=function(t,e,n){for(var r=yU(t),o=oM(e,r),i=oM(n===void 0?r:n,r),a=wU(xU(i-o,0)),s=0;ob;b++)if((s||b in f)&&(y=f[b],x=p(y,b,d),t))if(e)v[b]=x;else if(x)switch(t){case 3:return!0;case 5:return y;case 6:return b;case 2:pM(v,y)}else switch(t){case 4:return!1;case 7:pM(v,y)}return i?-1:r||o?o:v}},Bl={forEach:da(0),map:da(1),filter:da(2),some:da(3),every:da(4),find:da(5),findIndex:da(6),filterReject:da(7)},Rg=ve,xd=ft,yw=tn,lq=dt,$l=en,Wl=Ml,uq=Ke,nn=Wt,cq=$t,bw=wr,Ag=Do,ww=gg,dq=rs,xw=ns,kd=os,gM=Cg,hq=md,vM=fw,fq=yd,mM=ts,yM=er,pq=_g,bM=dg,wM=zl,gq=pw,kw=Rl,vq=Og,xM=vd,kM=pg,mq=wt,yq=bd,bq=Et,wq=uM,xq=is,SM=Ll,Dg=Bl.forEach,tr=vq("hidden"),jg="Symbol",Sd="prototype",kq=SM.set,_M=SM.getterFor(jg),yo=Object[Sd],as=xd.Symbol,_d=as&&as[Sd],Sq=xd.RangeError,_q=xd.TypeError,Sw=xd.QObject,EM=mM.f,ss=yM.f,CM=vM.f,Eq=bM.f,OM=lq([].push),bi=kw("symbols"),Ed=kw("op-symbols"),Cq=kw("wks"),_w=!Sw||!Sw[Sd]||!Sw[Sd].findChild,TM=function(t,e,n){var r=EM(yo,e);r&&delete yo[e],ss(t,e,n),r&&t!==yo&&ss(yo,e,r)},Ew=$l&&uq(function(){return kd(ss({},"a",{get:function(){return ss(this,"a",{value:7}).a}})).a!==7})?TM:ss,Cw=function(t,e){var n=bi[t]=kd(_d);return kq(n,{type:jg,tag:t,description:e}),$l||(n.description=e),n},Ng=function(t,e,n){t===yo&&Ng(Ed,e,n),bw(t);var r=ww(e);return bw(n),nn(bi,r)?(n.enumerable?(nn(t,tr)&&t[tr][r]&&(t[tr][r]=!1),n=kd(n,{enumerable:xw(0,!1)})):(nn(t,tr)||ss(t,tr,xw(1,{})),t[tr][r]=!0),Ew(t,r,n)):ss(t,r,n)},Ow=function(t,e){bw(t);var n=Ag(e),r=gM(n).concat(RM(n));return Dg(r,function(o){(!$l||yw(PM,n,o))&&Ng(t,o,n[o])}),t},Oq=function(t,e){return e===void 0?kd(t):Ow(kd(t),e)},PM=function(t){var e=ww(t),n=yw(Eq,this,e);return this===yo&&nn(bi,e)&&!nn(Ed,e)?!1:n||!nn(this,e)||!nn(bi,e)||nn(this,tr)&&this[tr][e]?n:!0},MM=function(t,e){var n=Ag(t),r=ww(e);if(!(n===yo&&nn(bi,r)&&!nn(Ed,r))){var o=EM(n,r);return o&&nn(bi,r)&&!(nn(n,tr)&&n[tr][r])&&(o.enumerable=!0),o}},IM=function(t){var e=CM(Ag(t)),n=[];return Dg(e,function(r){!nn(bi,r)&&!nn(xM,r)&&OM(n,r)}),n},RM=function(t){var e=t===yo,n=CM(e?Ed:Ag(t)),r=[];return Dg(n,function(o){nn(bi,o)&&(!e||nn(yo,o))&&OM(r,bi[o])}),r};Wl||(as=function(){if(cq(_d,this))throw new _q("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:dq(arguments[0]),e=kM(t),n=function(r){var o=this===void 0?xd:this;o===yo&&yw(n,Ed,r),nn(o,tr)&&nn(o[tr],e)&&(o[tr][e]=!1);var i=xw(1,r);try{Ew(o,e,i)}catch(a){if(!(a instanceof Sq))throw a;TM(o,e,i)}};return $l&&_w&&Ew(yo,e,{configurable:!0,set:n}),Cw(e,t)},_d=as[Sd],wM(_d,"toString",function(){return _M(this).tag}),wM(as,"withoutSetter",function(t){return Cw(kM(t),t)}),bM.f=PM,yM.f=Ng,pq.f=Ow,mM.f=MM,hq.f=vM.f=IM,fq.f=RM,yq.f=function(t){return Cw(mq(t),t)},$l&&gq(_d,"description",{configurable:!0,get:function(){return _M(this).description}})),Rg({global:!0,constructor:!0,wrap:!0,forced:!Wl,sham:!Wl},{Symbol:as}),Dg(gM(Cq),function(t){bq(t)}),Rg({target:jg,stat:!0,forced:!Wl},{useSetter:function(){_w=!0},useSimple:function(){_w=!1}}),Rg({target:"Object",stat:!0,forced:!Wl,sham:!$l},{create:Oq,defineProperty:Ng,defineProperties:Ow,getOwnPropertyDescriptor:MM}),Rg({target:"Object",stat:!0,forced:!Wl},{getOwnPropertyNames:IM}),wq(),xq(as,jg),xM[tr]=!0;var Tq=Ml,AM=Tq&&!!Symbol.for&&!!Symbol.keyFor,Pq=ve,Mq=zn,Iq=Wt,Rq=rs,DM=Rl,Aq=AM,Tw=DM("string-to-symbol-registry"),Dq=DM("symbol-to-string-registry");Pq({target:"Symbol",stat:!0,forced:!Aq},{for:function(t){var e=Rq(t);if(Iq(Tw,e))return Tw[e];var n=Mq("Symbol")(e);return Tw[e]=n,Dq[n]=e,n}});var jq=ve,Nq=Wt,zq=hd,Fq=Il,Lq=Rl,Bq=AM,jM=Lq("symbol-to-string-registry");jq({target:"Symbol",stat:!0,forced:!Bq},{keyFor:function(t){if(!zq(t))throw new TypeError(Fq(t)+" is not a symbol");if(Nq(jM,t))return jM[t]}});var $q=dt,Cd=$q([].slice),Wq=dt,NM=ca,Hq=_t,zM=sa,Vq=rs,FM=Wq([].push),Uq=function(t){if(Hq(t))return t;if(NM(t)){for(var e=t.length,n=[],r=0;r=e.length)return t.target=void 0,$g(void 0,!0);switch(t.kind){case"keys":return $g(n,!1);case"values":return $g(e[n],!1)}return $g([n,e[n]],!1)},"values"),lI.Arguments=lI.Array;var _Y={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},EY=_Y,CY=ft,OY=yi,TY=mi,dI=Hl,PY=wt,hI=PY("toStringTag");for(var Fw in EY){var fI=CY[Fw],Lw=fI&&fI.prototype;Lw&&OY(Lw)!==hI&&TY(Lw,hI,Fw),dI[Fw]=dI.Array}var MY=OK,pI=MY,IY=wt,RY=er.f,gI=IY("metadata"),vI=Function.prototype;vI[gI]===void 0&&RY(vI,gI,{value:null});var AY=Et;AY("asyncDispose");var DY=Et;DY("dispose");var jY=Et;jY("metadata");var NY=pI,zY=NY,FY=zn,LY=dt,Bw=FY("Symbol"),BY=Bw.keyFor,$Y=LY(Bw.prototype.valueOf),mI=Bw.isRegisteredSymbol||function(t){try{return BY($Y(t))!==void 0}catch{return!1}},WY=ve,HY=mI;WY({target:"Symbol",stat:!0},{isRegisteredSymbol:HY});for(var VY=Rl,yI=zn,UY=dt,qY=hd,KY=wt,Wg=yI("Symbol"),bI=Wg.isWellKnownSymbol,wI=yI("Object","getOwnPropertyNames"),YY=UY(Wg.prototype.valueOf),xI=VY("wks"),$w=0,kI=wI(Wg),XY=kI.length;$w=i?t?"":void 0:(a=EI(r,o),a<55296||a>56319||o+1===i||(s=EI(r,o+1))<56320||s>57343?t?hX(r,o):a:t?fX(r,o,o+2):(a-55296<<10)+(s-56320)+65536)}},pX={codeAt:CI(!1),charAt:CI(!0)},gX=pX.charAt,vX=rs,OI=Ll,mX=Nw,TI=zw,PI="String Iterator",yX=OI.set,bX=OI.getterFor(PI);mX(String,"String",function(t){yX(this,{type:PI,string:vX(t),index:0})},function(){var t=bX(this),e=t.string,n=t.index,r;return n>=e.length?TI(void 0,!0):(r=gX(e,n),t.index+=r.length,TI(r,!1))});var wX=bd,xX=wX.f("iterator"),kX=xX,MI=kX,SX=MI,_X=SX,EX=_X,CX=EX,II=CX,OX=be(II);function Ul(t){"@babel/helpers - typeof";return Ul=typeof Vl=="function"&&typeof OX=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Vl=="function"&&e.constructor===Vl&&e!==Vl.prototype?"symbol":typeof e},Ul(t)}var TX=bd,PX=TX.f("toPrimitive"),MX=PX,IX=MX,RX=IX,AX=RX,DX=AX,jX=DX,NX=jX,zX=be(NX);function FX(t,e){if(Ul(t)!=="object"||t===null)return t;var n=t[zX];if(n!==void 0){var r=n.call(t,e||"default");if(Ul(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function RI(t){var e=FX(t,"string");return Ul(e)==="symbol"?e:String(e)}function AI(t,e){for(var n=0;n=0:s>l;l+=u)l in a&&(o=n(o,a[l],l,i));return o}},sG={left:$I(!1),right:$I(!0)},lG=Ke,Vg=function(t,e){var n=[][t];return!!n&&lG(function(){n.call(null,e||function(){return 1},1)})},uG=ft,cG=sa,Td=cG(uG.process)==="process",dG=ve,hG=sG.left,fG=Vg,WI=Pl,pG=Td,gG=!pG&&WI>79&&WI<83,vG=gG||!fG("reduce");dG({target:"Array",proto:!0,forced:vG},{reduce:function(t){var e=arguments.length;return hG(this,t,e,e>1?arguments[1]:void 0)}});var mG=Cn,yG=mG("Array","reduce"),bG=$t,wG=yG,qw=Array.prototype,xG=function(t){var e=t.reduce;return t===qw||bG(qw,t)&&e===qw.reduce?wG:e},kG=xG,SG=kG,_G=SG,EG=be(_G),CG=ve,OG=Bl.filter,TG=gd,PG=TG("filter");CG({target:"Array",proto:!0,forced:!PG},{filter:function(t){return OG(this,t,arguments.length>1?arguments[1]:void 0)}});var MG=Cn,IG=MG("Array","filter"),RG=$t,AG=IG,Kw=Array.prototype,DG=function(t){var e=t.filter;return t===Kw||RG(Kw,t)&&e===Kw.filter?AG:e},jG=DG,NG=jG,zG=NG,ql=be(zG),FG=ve,LG=Bl.map,BG=gd,$G=BG("map");FG({target:"Array",proto:!0,forced:!$G},{map:function(t){return LG(this,t,arguments.length>1?arguments[1]:void 0)}});var WG=Cn,HG=WG("Array","map"),VG=$t,UG=HG,Yw=Array.prototype,qG=function(t){var e=t.map;return t===Yw||VG(Yw,t)&&e===Yw.map?UG:e},KG=qG,YG=KG,XG=YG,bo=be(XG),GG=ca,QG=xr,JG=wg,ZG=ua,HI=function(t,e,n,r,o,i,a,s){for(var l=o,u=0,c=a?ZG(a,s):!1,h,d;u0&&GG(h)?(d=QG(h),l=HI(t,e,h,d,l,i-1)-1):(JG(l+1),t[l]=h),l++),u++;return l},eQ=HI,tQ=ve,nQ=eQ,rQ=Jn,oQ=Zn,iQ=xr,aQ=Sg;tQ({target:"Array",proto:!0},{flatMap:function(t){var e=oQ(this),n=iQ(e),r;return rQ(t),r=aQ(e,0),r.length=nQ(r,e,e,n,0,1,t,arguments.length>1?arguments[1]:void 0),r}});var sQ=Cn;sQ("Array","flatMap");var lQ=tn,VI=wr,uQ=K1,UI=function(t,e,n){var r,o;VI(t);try{if(r=uQ(t,"return"),!r){if(e==="throw")throw n;return n}r=lQ(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return VI(r),n},cQ=wr,dQ=UI,hQ=function(t,e,n,r){try{return r?e(cQ(n)[0],n[1]):e(n)}catch(o){dQ(t,"throw",o)}},fQ=wt,pQ=Hl,gQ=fQ("iterator"),vQ=Array.prototype,qI=function(t){return t!==void 0&&(pQ.Array===t||vQ[gQ]===t)},mQ=yi,KI=K1,yQ=Tl,bQ=Hl,wQ=wt,xQ=wQ("iterator"),Ug=function(t){if(!yQ(t))return KI(t,xQ)||KI(t,"@@iterator")||bQ[mQ(t)]},kQ=tn,SQ=Jn,_Q=wr,EQ=Il,CQ=Ug,OQ=TypeError,Xw=function(t,e){var n=arguments.length<2?CQ(t):e;if(SQ(n))return _Q(kQ(n,t));throw new OQ(EQ(t)+" is not iterable")},TQ=ua,PQ=tn,MQ=Zn,IQ=hQ,RQ=qI,AQ=kg,DQ=xr,YI=Nl,jQ=Xw,NQ=Ug,XI=Array,zQ=function(t){var e=MQ(t),n=AQ(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=TQ(o,r>2?arguments[2]:void 0));var a=NQ(e),s=0,l,u,c,h,d,f;if(a&&!(this===XI&&RQ(a)))for(h=jQ(e,a),d=h.next,u=n?new this:[];!(c=PQ(d,h)).done;s++)f=i?IQ(h,o,[c.value,s],!0):c.value,YI(u,s,f);else for(l=DQ(e),u=n?new this(l):XI(l);l>s;s++)f=i?o(e[s],s):e[s],YI(u,s,f);return u.length=s,u},FQ=wt,GI=FQ("iterator"),QI=!1;try{var LQ=0,JI={next:function(){return{done:!!LQ++}},return:function(){QI=!0}};JI[GI]=function(){return this},Array.from(JI,function(){throw 2})}catch{}var ZI=function(t,e){try{if(!e&&!QI)return!1}catch{return!1}var n=!1;try{var r={};r[GI]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},BQ=ve,$Q=zQ,WQ=ZI,HQ=!WQ(function(t){Array.from(t)});BQ({target:"Array",stat:!0,forced:HQ},{from:$Q});var VQ=pt,UQ=VQ.Array.from,qQ=UQ,eR=qQ,KQ=eR,Gw=be(KQ),YQ=Ug,XQ=YQ,GQ=XQ,QQ=GQ,JQ=QQ,ZQ=JQ,eJ=ZQ,tJ=eJ,tR=tJ,nR=be(tR),nJ=tR,Qw=be(nJ),rJ=ve,oJ=ca;rJ({target:"Array",stat:!0},{isArray:oJ});var iJ=pt,aJ=iJ.Array.isArray,sJ=aJ,rR=sJ,lJ=rR,uJ=lJ,cJ=uJ,dJ=cJ,hJ=dJ,oR=be(hJ);function fJ(t){if(oR(t))return t}var pJ=en,gJ=ca,vJ=TypeError,mJ=Object.getOwnPropertyDescriptor,yJ=pJ&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),iR=yJ?function(t,e){if(gJ(t)&&!mJ(t,"length").writable)throw new vJ("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},bJ=ve,wJ=Zn,xJ=xr,kJ=iR,SJ=wg,_J=Ke,EJ=_J(function(){return[].push.call({length:4294967296},1)!==4294967297}),CJ=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},OJ=EJ||!CJ();bJ({target:"Array",proto:!0,arity:1,forced:OJ},{push:function(t){var e=wJ(this),n=xJ(e),r=arguments.length;SJ(n+r);for(var o=0;ot.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)},ree=ve,pR=nee;ree({target:"Array",proto:!0,forced:[].forEach!==pR},{forEach:pR});var oee=Cn,iee=oee("Array","forEach"),aee=iee,see=aee,lee=yi,uee=Wt,cee=$t,dee=see,ix=Array.prototype,hee={DOMTokenList:!0,NodeList:!0},gR=function(t){var e=t.forEach;return t===ix||cee(ix,t)&&e===ix.forEach||uee(hee,lee(t))?dee:e},fee=gR,ls=be(fee),pee=ve,gee=dt,vee=ca,mee=gee([].reverse),vR=[1,2];pee({target:"Array",proto:!0,forced:String(vR)===String(vR.reverse())},{reverse:function(){return vee(this)&&(this.length=this.length),mee(this)}});var yee=Cn,bee=yee("Array","reverse"),wee=$t,xee=bee,ax=Array.prototype,kee=function(t){var e=t.reverse;return t===ax||wee(ax,t)&&e===ax.reverse?xee:e},See=kee,mR=See,_ee=mR,Eee=be(_ee),yR=Il,Cee=TypeError,bR=function(t,e){if(!delete t[e])throw new Cee("Cannot delete property "+yR(e)+" of "+yR(t))},Oee=ve,Tee=Zn,Pee=Eg,Mee=bg,Iee=xr,Ree=iR,Aee=wg,Dee=Sg,jee=Nl,sx=bR,Nee=gd,zee=Nee("splice"),Fee=Math.max,Lee=Math.min;Oee({target:"Array",proto:!0,forced:!zee},{splice:function(t,e){var n=Tee(this),r=Iee(n),o=Pee(t,r),i=arguments.length,a,s,l,u,c,h;for(i===0?a=s=0:i===1?(a=0,s=r-o):(a=i-2,s=Lee(Fee(Mee(e),0),r-o)),Aee(r+a-s),l=Dee(n,s),u=0;ur-s+a;u--)sx(n,u-1)}else if(a>s)for(u=r-s;u>o;u--)c=u+s-1,h=u+a-1,c in n?n[h]=n[c]:sx(n,h);for(u=0;uo;)for(var s=ete(arguments[o++]),l=i?tte(ux(s),i(s)):ux(s),u=l.length,c=0,h;u>c;)h=l[c++],(!xR||Xee(a,s,h))&&(n[h]=s[h]);return n}:Kl,rte=ve,SR=nte;rte({target:"Object",stat:!0,arity:2,forced:Object.assign!==SR},{assign:SR});var ote=pt,ite=ote.Object.assign,ate=ite,ste=ate,lte=ste,ute=be(lte),cte=ve,dte=Ke,hte=Zn,_R=Fg,fte=JM,pte=dte(function(){_R(1)});cte({target:"Object",stat:!0,forced:pte,sham:!fte},{getPrototypeOf:function(t){return _R(hte(t))}});var gte=pt,vte=gte.Object.getPrototypeOf,mte=vte,yte=mte,bte=ve,wte=en,xte=os;bte({target:"Object",stat:!0,sham:!wte},{create:xte});var kte=pt,Ste=kte.Object,_te=function(t,e){return Ste.create(t,e)},Ete=_te,ER=Ete,Cte=ER,Ote=be(Cte),cx=pt,Tte=Ol;cx.JSON||(cx.JSON={stringify:JSON.stringify});var Pte=function(t,e,n){return Tte(cx.JSON.stringify,null,arguments)},Mte=Pte,Ite=Mte,Rte=Ite,Ate=be(Rte),Dte=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",jte=TypeError,CR=function(t,e){if(tn,a=zte(r)?r:Wte(r),s=i?Bte(arguments,n):[],l=i?function(){Nte(a,this,s)}:a;return e?t(l,o):t(l)}:t},Vte=ve,PR=ft,Ute=TR,MR=Ute(PR.setInterval,!0);Vte({global:!0,bind:!0,forced:PR.setInterval!==MR},{setInterval:MR});var qte=ve,IR=ft,Kte=TR,RR=Kte(IR.setTimeout,!0);qte({global:!0,bind:!0,forced:IR.setTimeout!==RR},{setTimeout:RR});var Yte=pt,Xte=Yte.setTimeout,Gte=Xte,Qte=be(Gte),AR={exports:{}};(function(t){function e(r){if(r)return n(r);this._callbacks=new Map}function n(r){return Object.assign(r,e.prototype),r._callbacks=new Map,r}e.prototype.on=function(r,o){const i=this._callbacks.get(r)??[];return i.push(o),this._callbacks.set(r,i),this},e.prototype.once=function(r,o){const i=(...a)=>{this.off(r,i),o.apply(this,a)};return i.fn=o,this.on(r,i),this},e.prototype.off=function(r,o){if(r===void 0&&o===void 0)return this._callbacks.clear(),this;if(o===void 0)return this._callbacks.delete(r),this;const i=this._callbacks.get(r);if(i){for(const[a,s]of i.entries())if(s===o||s.fn===o){i.splice(a,1);break}i.length===0?this._callbacks.delete(r):this._callbacks.set(r,i)}return this},e.prototype.emit=function(r,...o){const i=this._callbacks.get(r);if(i){const a=[...i];for(const s of a)s.apply(this,o)}return this},e.prototype.listeners=function(r){return this._callbacks.get(r)??[]},e.prototype.listenerCount=function(r){if(r)return this.listeners(r).length;let o=0;for(const i of this._callbacks.values())o+=i.length;return o},e.prototype.hasListeners=function(r){return this.listenerCount(r)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e})(AR);var Jte=AR.exports,Zte=be(Jte);function wo(){return wo=Object.assign||function(t){for(var e=1;e"u"?{style:{}}:document.createElement("div"),tne="function",Yl=Math.round,cs=Math.abs,hx=Date.now;function Gg(t,e){for(var n,r,o=e[0].toUpperCase()+e.slice(1),i=0;i"u"?xi={}:xi=window;var jR=Gg(ene.style,"touchAction"),NR=jR!==void 0;function nne(){if(!NR)return!1;var t={},e=xi.CSS&&xi.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=e?xi.CSS.supports("touch-action",n):!0}),t}var zR="compute",FR="auto",fx="manipulation",ds="none",Pd="pan-x",Md="pan-y",Qg=nne(),rne=/mobile|tablet|ip(ad|hone|od)|android/i,LR="ontouchstart"in xi,one=Gg(xi,"PointerEvent")!==void 0,ine=LR&&rne.test(navigator.userAgent),Id="touch",ane="pen",px="mouse",sne="kinect",lne=25,Fn=1,hs=2,Ht=4,or=8,Jg=1,Rd=2,Ad=4,Dd=8,Xl=16,No=Rd|Ad,fs=Dd|Xl,BR=No|fs,$R=["x","y"],Zg=["clientX","clientY"];function ki(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==void 0)for(r=0;r-1}function une(t){if(ps(t,ds))return ds;var e=ps(t,Pd),n=ps(t,Md);return e&&n?ds:e||n?e?Pd:Md:ps(t,fx)?fx:FR}var WR=function(){function t(n,r){this.manager=n,this.set(r)}var e=t.prototype;return e.set=function(n){n===zR&&(n=this.compute()),NR&&this.manager.element.style&&Qg[n]&&(this.manager.element.style[jR]=n),this.actions=n.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var n=[];return ki(this.manager.recognizers,function(r){ev(r.options.enable,[r])&&(n=n.concat(r.getTouchAction()))}),une(n.join(" "))},e.preventDefaults=function(n){var r=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){r.preventDefault();return}var i=this.actions,a=ps(i,ds)&&!Qg[ds],s=ps(i,Md)&&!Qg[Md],l=ps(i,Pd)&&!Qg[Pd];if(a){var u=n.pointers.length===1,c=n.distance<2,h=n.deltaTime<250;if(u&&c&&h)return}if(!(l&&s)&&(a||s&&o&No||l&&o&fs))return this.preventSrc(r)},e.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function gx(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function HR(t){var e=t.length;if(e===1)return{x:Yl(t[0].clientX),y:Yl(t[0].clientY)};for(var n=0,r=0,o=0;o=cs(e)?t<0?Rd:Ad:e<0?Dd:Xl}function cne(t,e){var n=e.center,r=t.offsetDelta||{},o=t.prevDelta||{},i=t.prevInput||{};(e.eventType===Fn||i.eventType===Ht)&&(o=t.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-r.x),e.deltaY=o.y+(n.y-r.y)}function qR(t,e,n){return{x:e/t||0,y:n/t||0}}function dne(t,e){return tv(e[0],e[1],Zg)/tv(t[0],t[1],Zg)}function hne(t,e){return vx(e[1],e[0],Zg)+vx(t[1],t[0],Zg)}function fne(t,e){var n=t.lastInterval||e,r=e.timeStamp-n.timeStamp,o,i,a,s;if(e.eventType!==or&&(r>lne||n.velocity===void 0)){var l=e.deltaX-n.deltaX,u=e.deltaY-n.deltaY,c=qR(r,l,u);i=c.x,a=c.y,o=cs(c.x)>cs(c.y)?c.x:c.y,s=UR(l,u),t.lastInterval=e}else o=n.velocity,i=n.velocityX,a=n.velocityY,s=n.direction;e.velocity=o,e.velocityX=i,e.velocityY=a,e.direction=s}function pne(t,e){var n=t.session,r=e.pointers,o=r.length;n.firstInput||(n.firstInput=VR(e)),o>1&&!n.firstMultiple?n.firstMultiple=VR(e):o===1&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,s=a?a.center:i.center,l=e.center=HR(r);e.timeStamp=hx(),e.deltaTime=e.timeStamp-i.timeStamp,e.angle=vx(s,l),e.distance=tv(s,l),cne(n,e),e.offsetDirection=UR(e.deltaX,e.deltaY);var u=qR(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=cs(u.x)>cs(u.y)?u.x:u.y,e.scale=a?dne(a.pointers,r):1,e.rotation=a?hne(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,fne(n,e);var c=t.element,h=e.srcEvent,d;h.composedPath?d=h.composedPath()[0]:h.path?d=h.path[0]:d=h.target,gx(d,c)&&(c=d),e.target=c}function gne(t,e,n){var r=n.pointers.length,o=n.changedPointers.length,i=e&Fn&&r-o===0,a=e&(Ht|or)&&r-o===0;n.isFirst=!!i,n.isFinal=!!a,i&&(t.session={}),n.eventType=e,pne(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function jd(t){return t.trim().split(/\s+/g)}function Nd(t,e,n){ki(jd(e),function(r){t.addEventListener(r,n,!1)})}function zd(t,e,n){ki(jd(e),function(r){t.removeEventListener(r,n,!1)})}function KR(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Gl=function(){function t(n,r){var o=this;this.manager=n,this.callback=r,this.element=n.element,this.target=n.options.inputTarget,this.domHandler=function(i){ev(n.options.enable,[n])&&o.handler(i)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Nd(this.element,this.evEl,this.domHandler),this.evTarget&&Nd(this.target,this.evTarget,this.domHandler),this.evWin&&Nd(KR(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&zd(this.element,this.evEl,this.domHandler),this.evTarget&&zd(this.target,this.evTarget,this.domHandler),this.evWin&&zd(KR(this.element),this.evWin,this.domHandler)},t}();function gs(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rl[e]}):r=r.sort()),r}var yne={touchstart:Fn,touchmove:hs,touchend:Ht,touchcancel:or},bne="touchstart touchmove touchend touchcancel",yx=function(t){Br(e,t);function e(){var r;return e.prototype.evTarget=bne,r=t.apply(this,arguments)||this,r.targetIds={},r}var n=e.prototype;return n.handler=function(r){var o=yne[r.type],i=wne.call(this,r,o);i&&this.callback(this.manager,o,{pointers:i[0],changedPointers:i[1],pointerType:Id,srcEvent:r})},e}(Gl);function wne(t,e){var n=Fd(t.touches),r=this.targetIds;if(e&(Fn|hs)&&n.length===1)return r[n[0].identifier]=!0,[n,n];var o,i,a=Fd(t.changedTouches),s=[],l=this.target;if(i=n.filter(function(u){return gx(u.target,l)}),e===Fn)for(o=0;o-1&&o.splice(a,1)};setTimeout(i,_ne)}}function Ene(t,e){t&Fn?(this.primaryTouch=e.changedPointers[0].identifier,JR.call(this,e)):t&(Ht|or)&&JR.call(this,e)}function Cne(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(r,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},e.emit=function(n){var r=this,o=this.state;function i(a){r.manager.emit(a,n)}o=pa&&i(r.options.event+eA(o))},e.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=zo},e.canEmit=function(){for(var n=0;no.threshold&&s&o.direction},n.attrTest=function(r){return Zl.prototype.attrTest.call(this,r)&&(this.state&$r||!(this.state&$r)&&this.directionTest(r))},n.emit=function(r){this.pX=r.deltaX,this.pY=r.deltaY;var o=tA(r.direction);o&&(r.additionalEvent=this.options.event+o),t.prototype.emit.call(this,r)},e}(Zl),nA=function(t){Br(e,t);function e(r){return r===void 0&&(r={}),t.call(this,wo({event:"swipe",threshold:10,velocity:.3,direction:No|fs,pointers:1},r))||this}var n=e.prototype;return n.getTouchAction=function(){return xx.prototype.getTouchAction.call(this)},n.attrTest=function(r){var o=this.options.direction,i;return o&(No|fs)?i=r.overallVelocity:o&No?i=r.overallVelocityX:o&fs&&(i=r.overallVelocityY),t.prototype.attrTest.call(this,r)&&o&r.offsetDirection&&r.distance>this.options.threshold&&r.maxPointers===this.options.pointers&&cs(i)>this.options.velocity&&r.eventType&Ht},n.emit=function(r){var o=tA(r.offsetDirection);o&&this.manager.emit(this.options.event+o,r),this.manager.emit(this.options.event,r)},e}(Zl),rA=function(t){Br(e,t);function e(r){return r===void 0&&(r={}),t.call(this,wo({event:"pinch",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[ds]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.scale-1)>this.options.threshold||this.state&$r)},n.emit=function(r){if(r.scale!==1){var o=r.scale<1?"in":"out";r.additionalEvent=this.options.event+o}t.prototype.emit.call(this,r)},e}(Zl),oA=function(t){Br(e,t);function e(r){return r===void 0&&(r={}),t.call(this,wo({event:"rotate",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[ds]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.rotation)>this.options.threshold||this.state&$r)},e}(Zl),iA=function(t){Br(e,t);function e(r){var o;return r===void 0&&(r={}),o=t.call(this,wo({event:"press",pointers:1,time:251,threshold:9},r))||this,o._timer=null,o._input=null,o}var n=e.prototype;return n.getTouchAction=function(){return[FR]},n.process=function(r){var o=this,i=this.options,a=r.pointers.length===i.pointers,s=r.distancei.time;if(this._input=r,!s||!a||r.eventType&(Ht|or)&&!l)this.reset();else if(r.eventType&Fn)this.reset(),this._timer=setTimeout(function(){o.state=Si,o.tryEmit()},i.time);else if(r.eventType&Ht)return Si;return zo},n.reset=function(){clearTimeout(this._timer)},n.emit=function(r){this.state===Si&&(r&&r.eventType&Ht?this.manager.emit(this.options.event+"up",r):(this._input.timeStamp=hx(),this.manager.emit(this.options.event,this._input)))},e}(Bd),aA={domEvents:!1,touchAction:zR,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},sA=[[oA,{enable:!1}],[rA,{enable:!1},["rotate"]],[nA,{direction:No}],[xx,{direction:No},["swipe"]],[wx],[wx,{event:"doubletap",taps:2},["tap"]],[iA]],Mne=1,lA=2;function uA(t,e){var n=t.element;if(n.style){var r;ki(t.options.cssProps,function(o,i){r=Gg(n.style,i),e?(t.oldCssProps[r]=n.style[r],n.style[r]=o):n.style[r]=t.oldCssProps[r]||""}),e||(t.oldCssProps={})}}function Ine(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var cA=function(){function t(n,r){var o=this;this.options=us({},aA,r||{}),this.options.inputTarget=this.options.inputTarget||n,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=n,this.input=One(this),this.touchAction=new WR(this,this.options.touchAction),uA(this,!0),ki(this.options.recognizers,function(i){var a=o.add(new i[0](i[1]));i[2]&&a.recognizeWith(i[2]),i[3]&&a.requireFailure(i[3])},this)}var e=t.prototype;return e.set=function(n){return us(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},e.stop=function(n){this.session.stopped=n?lA:Mne},e.recognize=function(n){var r=this.session;if(!r.stopped){this.touchAction.preventDefaults(n);var o,i=this.recognizers,a=r.curRecognizer;(!a||a&&a.state&Si)&&(r.curRecognizer=null,a=null);for(var s=0;s\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,r,i),t.apply(this,arguments)}}var hA=dA(function(t,e,n){for(var r=Object.keys(e),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function $ne(t,e){var n;if(t){if(typeof t=="string")return gA(t,e);var r=Yg(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Gw(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gA(t,e)}}function gA(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?n-1:0),o=1;o2){var r;return ov.apply(void 0,Kg(r=[mA(e[0],e[1])]).call(r,rr(Yg(e).call(e,2))))}var o=e[0],i=e[1];if(o instanceof Date&&i instanceof Date)return o.setTime(i.getTime()),o;var a=pA(WZ(i)),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(i,l)&&(i[l]===vA?delete o[l]:o[l]!==null&&i[l]!==null&&typeof o[l]=="object"&&typeof i[l]=="object"&&!kr(o[l])&&!kr(i[l])?o[l]=ov(o[l],i[l]):o[l]=yA(i[l]))}}catch(u){a.e(u)}finally{a.f()}return o}function yA(t){return kr(t)?bo(t).call(t,function(e){return yA(e)}):typeof t=="object"&&t!==null?t instanceof Date?new Date(t.getTime()):ov({},t):t}function bA(t){for(var e=0,n=ox(t);ei;)s=n(e,a=r[i++]),s!==void 0&&Ore(o,a,s);return o}});var Tre=pt,Pre=Tre.Object.getOwnPropertyDescriptors,Mre=Pre,Ire=Mre,Rre=Ire,AA=be(Rre),DA={exports:{}},Are=ve,Dre=en,jA=_g.f;Are({target:"Object",stat:!0,forced:Object.defineProperties!==jA,sham:!Dre},{defineProperties:jA});var jre=pt,NA=jre.Object,Nre=DA.exports=function(t,e){return NA.defineProperties(t,e)};NA.defineProperties.sham&&(Nre.sham=!0);var zre=DA.exports,Fre=zre,Lre=Fre,Bre=Lre,$re=be(Bre),Wre=DP,Hre=be(Wre);function zA(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Vre=ER,Ure=Vre,qre=Ure,Kre=qre,FA=Kre,Yre=be(FA),Xre=ve,Gre=rI;Xre({target:"Object",stat:!0},{setPrototypeOf:Gre});var Qre=pt,Jre=Qre.Object.setPrototypeOf,Zre=Jre,eoe=Zre,toe=eoe,noe=toe,roe=noe,ooe=roe,LA=ooe,_x=be(LA),ioe=LI,aoe=ioe,soe=aoe,loe=soe,uoe=loe,BA=be(uoe);function Ex(t,e){var n;return Ex=_x?BA(n=_x).call(n):function(r,o){return r.__proto__=o,r},Ex(t,e)}function coe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Yre(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),yg(t,"prototype",{writable:!1}),e&&Ex(t,e)}function doe(t,e){if(e&&(Ul(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zA(t)}var hoe=yte,foe=hoe,poe=foe,goe=poe,$A=goe,WA=be($A);function av(t){var e;return av=_x?BA(e=WA).call(e):function(n){return n.__proto__||WA(n)},av(t)}var HA={exports:{}},VA={exports:{}};(function(t){var e=Ww,n=II;function r(o){"@babel/helpers - typeof";return t.exports=r=typeof e=="function"&&typeof n=="symbol"?function(i){return typeof i}:function(i){return i&&typeof e=="function"&&i.constructor===e&&i!==e.prototype?"symbol":typeof i},t.exports.__esModule=!0,t.exports.default=t.exports,r(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(VA);var voe=VA.exports,moe=gR,yoe=moe,boe=yoe,woe=boe,xoe=woe,UA=Wt,koe=rx,Soe=ts,_oe=er,Eoe=function(t,e,n){for(var r=koe(e),o=_oe.f,i=Soe.f,a=0;ah;h++)if(f=m(t[h]),f&&XA(QA,f))return f;return new sv(!1)}u=Koe(t,c)}for(p=i?t.next:u.next;!(g=Woe(p,u)).done;){try{f=m(g.value)}catch(v){GA(u,"throw",v)}if(typeof f=="object"&&f&&XA(QA,f))return f}return new sv(!1)},Goe=rs,Qoe=function(t,e){return t===void 0?arguments.length<2?"":e:Goe(t)},Joe=ve,Zoe=$t,eie=Fg,lv=rI,tie=Eoe,JA=os,Cx=mi,Ox=ns,nie=Toe,rie=Boe,oie=vs,iie=Qoe,aie=wt,sie=aie("toStringTag"),uv=Error,lie=[].push,eu=function(t,e){var n=Zoe(Tx,this),r;lv?r=lv(new uv,n?eie(this):Tx):(r=n?this:JA(Tx),Cx(r,sie,"Error")),e!==void 0&&Cx(r,"message",iie(e)),rie(r,eu,r.stack,1),arguments.length>2&&nie(r,arguments[2]);var o=[];return oie(t,lie,{that:o}),Cx(r,"errors",o),r};lv?lv(eu,uv):tie(eu,uv,{name:!0});var Tx=eu.prototype=JA(uv.prototype,{constructor:Ox(1,eu),message:Ox(1,""),name:Ox(1,"AggregateError")});Joe({global:!0,constructor:!0,arity:2},{AggregateError:eu});var uie=zn,cie=pw,die=wt,hie=en,ZA=die("species"),eD=function(t){var e=uie(t);hie&&e&&!e[ZA]&&cie(e,ZA,{configurable:!0,get:function(){return this}})},fie=$t,pie=TypeError,Px=function(t,e){if(fie(e,t))return t;throw new pie("Incorrect invocation")},tD=wr,gie=wA,vie=Tl,mie=wt,yie=mie("species"),nD=function(t,e){var n=tD(t).constructor,r;return n===void 0||vie(r=tD(n)[yie])?e:gie(r)},bie=la,rD=/(?:ipad|iphone|ipod).*applewebkit/i.test(bie),Sr=ft,wie=Ol,xie=ua,oD=_t,kie=Wt,iD=Ke,aD=GP,Sie=Cd,sD=ew,_ie=CR,Eie=rD,Cie=Td,Mx=Sr.setImmediate,Ix=Sr.clearImmediate,Oie=Sr.process,Rx=Sr.Dispatch,Tie=Sr.Function,lD=Sr.MessageChannel,Pie=Sr.String,Ax=0,$d={},uD="onreadystatechange",Wd,ms,Dx,jx;iD(function(){Wd=Sr.location});var Nx=function(t){if(kie($d,t)){var e=$d[t];delete $d[t],e()}},zx=function(t){return function(){Nx(t)}},cD=function(t){Nx(t.data)},dD=function(t){Sr.postMessage(Pie(t),Wd.protocol+"//"+Wd.host)};(!Mx||!Ix)&&(Mx=function(t){_ie(arguments.length,1);var e=oD(t)?t:Tie(t),n=Sie(arguments,1);return $d[++Ax]=function(){wie(e,void 0,n)},ms(Ax),Ax},Ix=function(t){delete $d[t]},Cie?ms=function(t){Oie.nextTick(zx(t))}:Rx&&Rx.now?ms=function(t){Rx.now(zx(t))}:lD&&!Eie?(Dx=new lD,jx=Dx.port2,Dx.port1.onmessage=cD,ms=xie(jx.postMessage,jx)):Sr.addEventListener&&oD(Sr.postMessage)&&!Sr.importScripts&&Wd&&Wd.protocol!=="file:"&&!iD(dD)?(ms=dD,Sr.addEventListener("message",cD,!1)):uD in sD("script")?ms=function(t){aD.appendChild(sD("script"))[uD]=function(){aD.removeChild(this),Nx(t)}}:ms=function(t){setTimeout(zx(t),0)});var hD={set:Mx,clear:Ix},fD=function(){this.head=null,this.tail=null};fD.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var pD=fD,Mie=la,Iie=/ipad|iphone|ipod/i.test(Mie)&&typeof Pebble<"u",Rie=la,Aie=/web0s(?!.*chrome)/i.test(Rie),ys=ft,gD=ua,Die=ts.f,Fx=hD.set,jie=pD,Nie=rD,zie=Iie,Fie=Aie,Lx=Td,vD=ys.MutationObserver||ys.WebKitMutationObserver,mD=ys.document,yD=ys.process,cv=ys.Promise,bD=Die(ys,"queueMicrotask"),Bx=bD&&bD.value,tu,$x,Wx,dv,wD;if(!Bx){var hv=new jie,fv=function(){var t,e;for(Lx&&(t=yD.domain)&&t.exit();e=hv.get();)try{e()}catch(n){throw hv.head&&tu(),n}t&&t.enter()};!Nie&&!Lx&&!Fie&&vD&&mD?($x=!0,Wx=mD.createTextNode(""),new vD(fv).observe(Wx,{characterData:!0}),tu=function(){Wx.data=$x=!$x}):!zie&&cv&&cv.resolve?(dv=cv.resolve(void 0),dv.constructor=cv,wD=gD(dv.then,dv),tu=function(){wD(fv)}):Lx?tu=function(){yD.nextTick(fv)}:(Fx=gD(Fx,ys),tu=function(){Fx(fv)}),Bx=function(t){hv.head||tu(),hv.add(t)}}var Lie=Bx,Bie=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}},nu=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},$ie=ft,ru=$ie.Promise,xD=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",Wie=xD,Hie=Td,Vie=!Wie&&!Hie&&typeof window=="object"&&typeof document=="object",Uie=ft,Hd=ru,qie=_t,Kie=OP,Yie=zP,Xie=wt,Gie=Vie,Qie=xD,Hx=Pl,kD=Hd&&Hd.prototype,Jie=Xie("species"),Vx=!1,SD=qie(Uie.PromiseRejectionEvent),Zie=Kie("Promise",function(){var t=Yie(Hd),e=t!==String(Hd);if(!e&&Hx===66||!(kD.catch&&kD.finally))return!0;if(!Hx||Hx<51||!/native code/.test(t)){var n=new Hd(function(i){i(1)}),r=function(i){i(function(){},function(){})},o=n.constructor={};if(o[Jie]=r,Vx=n.then(function(){})instanceof r,!Vx)return!0}return!e&&(Gie||Qie)&&!SD}),Vd={CONSTRUCTOR:Zie,REJECTION_EVENT:SD,SUBCLASSING:Vx},Fo={},_D=Jn,eae=TypeError,tae=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw new eae("Bad Promise constructor");e=r,n=o}),this.resolve=_D(e),this.reject=_D(n)};Fo.f=function(t){return new tae(t)};var nae=ve,pv=Td,ga=ft,Ud=tn,rae=zl,oae=is,iae=eD,aae=Jn,Ux=_t,sae=vn,lae=Px,uae=nD,ED=hD.set,qx=Lie,cae=Bie,dae=nu,hae=pD,CD=Ll,Kx=ru,OD=Vd,TD=Fo,gv="Promise",PD=OD.CONSTRUCTOR,fae=OD.REJECTION_EVENT,Yx=CD.getterFor(gv),pae=CD.set,gae=Kx&&Kx.prototype,ou=Kx,Xx=gae,MD=ga.TypeError,Gx=ga.document,Qx=ga.process,Jx=TD.f,vae=Jx,mae=!!(Gx&&Gx.createEvent&&ga.dispatchEvent),ID="unhandledrejection",yae="rejectionhandled",RD=0,AD=1,bae=2,Zx=1,DD=2,vv,jD,wae,ND=function(t){var e;return sae(t)&&Ux(e=t.then)?e:!1},zD=function(t,e){var n=e.value,r=e.state===AD,o=r?t.ok:t.fail,i=t.resolve,a=t.reject,s=t.domain,l,u,c;try{o?(r||(e.rejection===DD&&kae(e),e.rejection=Zx),o===!0?l=n:(s&&s.enter(),l=o(n),s&&(s.exit(),c=!0)),l===t.promise?a(new MD("Promise-chain cycle")):(u=ND(l))?Ud(u,l,i,a):i(l)):a(n)}catch(h){s&&!c&&s.exit(),a(h)}},FD=function(t,e){t.notified||(t.notified=!0,qx(function(){for(var n=t.reactions,r;r=n.get();)zD(r,t);t.notified=!1,e&&!t.rejection&&xae(t)}))},LD=function(t,e,n){var r,o;mae?(r=Gx.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),ga.dispatchEvent(r)):r={promise:e,reason:n},!fae&&(o=ga["on"+t])?o(r):t===ID&&cae("Unhandled promise rejection",n)},xae=function(t){Ud(ED,ga,function(){var e=t.facade,n=t.value,r=BD(t),o;if(r&&(o=dae(function(){pv?Qx.emit("unhandledRejection",n,e):LD(ID,e,n)}),t.rejection=pv||BD(t)?DD:Zx,o.error))throw o.value})},BD=function(t){return t.rejection!==Zx&&!t.parent},kae=function(t){Ud(ED,ga,function(){var e=t.facade;pv?Qx.emit("rejectionHandled",e):LD(yae,e,t.value)})},iu=function(t,e,n){return function(r){t(e,r,n)}},au=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=bae,FD(t,!0))},ek=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new MD("Promise can't be resolved itself");var r=ND(e);r?qx(function(){var o={done:!1};try{Ud(r,e,iu(ek,o,t),iu(au,o,t))}catch(i){au(o,i,t)}}):(t.value=e,t.state=AD,FD(t,!1))}catch(o){au({done:!1},o,t)}}};PD&&(ou=function(t){lae(this,Xx),aae(t),Ud(vv,this);var e=Yx(this);try{t(iu(ek,e),iu(au,e))}catch(n){au(e,n)}},Xx=ou.prototype,vv=function(t){pae(this,{type:gv,done:!1,notified:!1,parent:!1,reactions:new hae,rejection:!1,state:RD,value:void 0})},vv.prototype=rae(Xx,"then",function(t,e){var n=Yx(this),r=Jx(uae(this,ou));return n.parent=!0,r.ok=Ux(t)?t:!0,r.fail=Ux(e)&&e,r.domain=pv?Qx.domain:void 0,n.state===RD?n.reactions.add(r):qx(function(){zD(r,n)}),r.promise}),jD=function(){var t=new vv,e=Yx(t);this.promise=t,this.resolve=iu(ek,e),this.reject=iu(au,e)},TD.f=Jx=function(t){return t===ou||t===wae?new jD(t):vae(t)}),nae({global:!0,constructor:!0,wrap:!0,forced:PD},{Promise:ou}),oae(ou,gv,!1,!0),iae(gv);var Sae=ru,_ae=ZI,Eae=Vd.CONSTRUCTOR,mv=Eae||!_ae(function(t){Sae.all(t).then(void 0,function(){})}),Cae=ve,Oae=tn,Tae=Jn,Pae=Fo,Mae=nu,Iae=vs,Rae=mv;Cae({target:"Promise",stat:!0,forced:Rae},{all:function(t){var e=this,n=Pae.f(e),r=n.resolve,o=n.reject,i=Mae(function(){var a=Tae(e.resolve),s=[],l=0,u=1;Iae(t,function(c){var h=l++,d=!1;u++,Oae(a,e,c).then(function(f){d||(d=!0,s[h]=f,--u||r(s))},o)}),--u||r(s)});return i.error&&o(i.value),n.promise}});var Aae=ve,Dae=Vd.CONSTRUCTOR,$D=ru;$D&&$D.prototype,Aae({target:"Promise",proto:!0,forced:Dae,real:!0},{catch:function(t){return this.then(void 0,t)}});var jae=ve,Nae=tn,zae=Jn,Fae=Fo,Lae=nu,Bae=vs,$ae=mv;jae({target:"Promise",stat:!0,forced:$ae},{race:function(t){var e=this,n=Fae.f(e),r=n.reject,o=Lae(function(){var i=zae(e.resolve);Bae(t,function(a){Nae(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Wae=ve,Hae=tn,Vae=Fo,Uae=Vd.CONSTRUCTOR;Wae({target:"Promise",stat:!0,forced:Uae},{reject:function(t){var e=Vae.f(this);return Hae(e.reject,void 0,t),e.promise}});var qae=wr,Kae=vn,Yae=Fo,WD=function(t,e){if(qae(t),Kae(e)&&e.constructor===t)return e;var n=Yae.f(t),r=n.resolve;return r(e),n.promise},Xae=ve,Gae=zn,Qae=a9,Jae=ru,Zae=Vd.CONSTRUCTOR,ese=WD,tse=Gae("Promise"),nse=!Zae;Xae({target:"Promise",stat:!0,forced:Qae},{resolve:function(t){return ese(nse&&this===tse?Jae:this,t)}});var rse=ve,ose=tn,ise=Jn,ase=Fo,sse=nu,lse=vs,use=mv;rse({target:"Promise",stat:!0,forced:use},{allSettled:function(t){var e=this,n=ase.f(e),r=n.resolve,o=n.reject,i=sse(function(){var a=ise(e.resolve),s=[],l=0,u=1;lse(t,function(c){var h=l++,d=!1;u++,ose(a,e,c).then(function(f){d||(d=!0,s[h]={status:"fulfilled",value:f},--u||r(s))},function(f){d||(d=!0,s[h]={status:"rejected",reason:f},--u||r(s))})}),--u||r(s)});return i.error&&o(i.value),n.promise}});var cse=ve,dse=tn,hse=Jn,fse=zn,pse=Fo,gse=nu,vse=vs,mse=mv,HD="No one promise resolved";cse({target:"Promise",stat:!0,forced:mse},{any:function(t){var e=this,n=fse("AggregateError"),r=pse.f(e),o=r.resolve,i=r.reject,a=gse(function(){var s=hse(e.resolve),l=[],u=0,c=1,h=!1;vse(t,function(d){var f=u++,p=!1;c++,dse(s,e,d).then(function(g){p||h||(h=!0,o(g))},function(g){p||h||(p=!0,l[f]=g,--c||i(new n(l,HD)))})}),--c||i(new n(l,HD))});return a.error&&i(a.value),r.promise}});var yse=ve,tk=ru,bse=Ke,wse=zn,xse=_t,kse=nD,VD=WD,Sse=tk&&tk.prototype,_se=!!tk&&bse(function(){Sse.finally.call({then:function(){}},function(){})});yse({target:"Promise",proto:!0,real:!0,forced:_se},{finally:function(t){var e=kse(this,wse("Promise")),n=xse(t);return this.then(n?function(r){return VD(e,t()).then(function(){return r})}:t,n?function(r){return VD(e,t()).then(function(){throw r})}:t)}});var Ese=pt,Cse=Ese.Promise,Ose=Cse,Tse=Ose,Pse=ve,Mse=Fo;Pse({target:"Promise",stat:!0},{withResolvers:function(){var t=Mse.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Ise=Tse,Rse=Ise,Ase=ve,Dse=Fo,jse=nu;Ase({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=Dse.f(this),n=jse(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var Nse=Rse,zse=Nse,Fse=zse,Lse=mR,Bse=Lse,$se=Bse,Wse=$se,Hse=Wse;(function(t){var e=voe.default,n=jP,r=Ww,o=FA,i=$A,a=xoe,s=aR,l=LA,u=Fse,c=Hse,h=cR;function d(){t.exports=d=function(){return p},t.exports.__esModule=!0,t.exports.default=t.exports;var f,p={},g=Object.prototype,b=g.hasOwnProperty,m=n||function(z,$,L){z[$]=L.value},v=typeof r=="function"?r:{},y=v.iterator||"@@iterator",x=v.asyncIterator||"@@asyncIterator",S=v.toStringTag||"@@toStringTag";function _(z,$,L){return n(z,$,{value:L,enumerable:!0,configurable:!0,writable:!0}),z[$]}try{_({},"")}catch{_=function(z,$,L){return z[$]=L}}function E(z,$,L,re){var U=$&&$.prototype instanceof R?$:R,ie=o(U.prototype),Te=new we(re||[]);return m(ie,"_invoke",{value:te(z,L,Te)}),ie}function O(z,$,L){try{return{type:"normal",arg:z.call($,L)}}catch(re){return{type:"throw",arg:re}}}p.wrap=E;var w="suspendedStart",T="suspendedYield",I="executing",A="completed",D={};function R(){}function P(){}function M(){}var N={};_(N,y,function(){return this});var j=i,W=j&&j(j(xe([])));W&&W!==g&&b.call(W,y)&&(N=W);var B=M.prototype=R.prototype=o(N);function ee(z){var $;a($=["next","throw","return"]).call($,function(L){_(z,L,function(re){return this._invoke(L,re)})})}function X(z,$){function L(U,ie,Te,Ne){var Ee=O(z[U],z,ie);if(Ee.type!=="throw"){var We=Ee.arg,kt=We.value;return kt&&e(kt)=="object"&&b.call(kt,"__await")?$.resolve(kt.__await).then(function(ke){L("next",ke,Te,Ne)},function(ke){L("throw",ke,Te,Ne)}):$.resolve(kt).then(function(ke){We.value=ke,Te(We)},function(ke){return L("throw",ke,Te,Ne)})}Ne(Ee.arg)}var re;m(this,"_invoke",{value:function(U,ie){function Te(){return new $(function(Ne,Ee){L(U,ie,Ne,Ee)})}return re=re?re.then(Te,Te):Te()}})}function te(z,$,L){var re=w;return function(U,ie){if(re===I)throw new Error("Generator is already running");if(re===A){if(U==="throw")throw ie;return{value:f,done:!0}}for(L.method=U,L.arg=ie;;){var Te=L.delegate;if(Te){var Ne=ae(Te,L);if(Ne){if(Ne===D)continue;return Ne}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(re===w)throw re=A,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);re=I;var Ee=O(z,$,L);if(Ee.type==="normal"){if(re=L.done?A:T,Ee.arg===D)continue;return{value:Ee.arg,done:L.done}}Ee.type==="throw"&&(re=A,L.method="throw",L.arg=Ee.arg)}}}function ae(z,$){var L=$.method,re=z.iterator[L];if(re===f)return $.delegate=null,L==="throw"&&z.iterator.return&&($.method="return",$.arg=f,ae(z,$),$.method==="throw")||L!=="return"&&($.method="throw",$.arg=new TypeError("The iterator does not provide a '"+L+"' method")),D;var U=O(re,z.iterator,$.arg);if(U.type==="throw")return $.method="throw",$.arg=U.arg,$.delegate=null,D;var ie=U.arg;return ie?ie.done?($[z.resultName]=ie.value,$.next=z.nextLoc,$.method!=="return"&&($.method="next",$.arg=f),$.delegate=null,D):ie:($.method="throw",$.arg=new TypeError("iterator result is not an object"),$.delegate=null,D)}function ge(z){var $,L={tryLoc:z[0]};1 in z&&(L.catchLoc=z[1]),2 in z&&(L.finallyLoc=z[2],L.afterLoc=z[3]),s($=this.tryEntries).call($,L)}function Q(z){var $=z.completion||{};$.type="normal",delete $.arg,z.completion=$}function we(z){this.tryEntries=[{tryLoc:"root"}],a(z).call(z,ge,this),this.reset(!0)}function xe(z){if(z||z===""){var $=z[y];if($)return $.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var L=-1,re=function U(){for(;++L=0;--re){var U=this.tryEntries[re],ie=U.completion;if(U.tryLoc==="root")return L("end");if(U.tryLoc<=this.prev){var Te=b.call(U,"catchLoc"),Ne=b.call(U,"finallyLoc");if(Te&&Ne){if(this.prev=0;--L){var re=this.tryEntries[L];if(re.tryLoc<=this.prev&&b.call(re,"finallyLoc")&&this.prev=0;--$){var L=this.tryEntries[$];if(L.finallyLoc===z)return this.complete(L.completion,L.afterLoc),Q(L),D}},catch:function(z){for(var $=this.tryEntries.length-1;$>=0;--$){var L=this.tryEntries[$];if(L.tryLoc===z){var re=L.completion;if(re.type==="throw"){var U=re.arg;Q(L)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(z,$,L){return this.delegate={iterator:xe(z),resultName:$,nextLoc:L},this.method==="next"&&(this.arg=f),D}},p}t.exports=d,t.exports.__esModule=!0,t.exports.default=t.exports})(HA);var Vse=HA.exports,yv=Vse(),Use=yv;try{regeneratorRuntime=yv}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=yv:Function("r","regeneratorRuntime = r")(yv)}var ir=be(Use),UD={exports:{}},qse=Ke,Kse=qse(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Yse=Ke,Xse=vn,Gse=sa,qD=Kse,bv=Object.isExtensible,Qse=Yse(function(){bv(1)}),Jse=Qse||qD?function(t){return!Xse(t)||qD&&Gse(t)==="ArrayBuffer"?!1:bv?bv(t):!0}:bv,Zse=Ke,ele=!Zse(function(){return Object.isExtensible(Object.preventExtensions({}))}),tle=ve,nle=dt,rle=vd,ole=vn,nk=Wt,ile=er.f,KD=md,ale=fw,rk=Jse,sle=pg,lle=ele,YD=!1,Ei=sle("meta"),ule=0,ok=function(t){ile(t,Ei,{value:{objectID:"O"+ule++,weakData:{}}})},cle=function(t,e){if(!ole(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!nk(t,Ei)){if(!rk(t))return"F";if(!e)return"E";ok(t)}return t[Ei].objectID},dle=function(t,e){if(!nk(t,Ei)){if(!rk(t))return!0;if(!e)return!1;ok(t)}return t[Ei].weakData},hle=function(t){return lle&&YD&&rk(t)&&!nk(t,Ei)&&ok(t),t},fle=function(){ple.enable=function(){},YD=!0;var t=KD.f,e=nle([].splice),n={};n[Ei]=1,t(n).length&&(KD.f=function(r){for(var o=t(r),i=0,a=o.length;i1?arguments[1]:void 0),d;d=d?d.next:c.first;)for(h(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),JD(i,n?{get:function(u){var c=l(this,u);return c&&c.value},set:function(u,c){return s(this,u===0?0:u,c)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),qd&&Dle(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=ik(e),i=ik(r);Lle(t,e,function(a,s){nj(this,{type:r,target:a,state:o(a),kind:s,last:void 0})},function(){for(var a=i(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,ZD(void 0,!0)):ZD(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},n?"entries":"values",!n,!0),Ble(e)}},$le=QD,Wle=rj;$le("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Wle);var Hle=pt,Vle=Hle.Map,Ule=Vle,qle=Ule,Kle=qle,oj=be(Kle),Yle=ve,Xle=Bl.some,Gle=Vg,Qle=Gle("some");Yle({target:"Array",proto:!0,forced:!Qle},{some:function(t){return Xle(this,t,arguments.length>1?arguments[1]:void 0)}});var Jle=Cn,Zle=Jle("Array","some"),eue=$t,tue=Zle,ak=Array.prototype,nue=function(t){var e=t.some;return t===ak||eue(ak,t)&&e===ak.some?tue:e},rue=nue,oue=rue,iue=oue,aue=be(iue),sue=Cn,lue=sue("Array","keys"),uue=lue,cue=uue,due=yi,hue=Wt,fue=$t,pue=cue,sk=Array.prototype,gue={DOMTokenList:!0,NodeList:!0},vue=function(t){var e=t.keys;return t===sk||fue(sk,t)&&e===sk.keys||hue(gue,due(t))?pue:e},mue=vue,su=be(mue),ij=iM,yue=Math.floor,lk=function(t,e){var n=t.length,r=yue(n/2);return n<8?bue(t,e):wue(t,lk(ij(t,0,r),e),lk(ij(t,r),e),e)},bue=function(t,e){for(var n=t.length,r=1,o,i;r0;)t[i]=t[--i];i!==r++&&(t[i]=o)}return t},wue=function(t,e,n,r){for(var o=e.length,i=n.length,a=0,s=0;a3)){if(Due)return!0;if(fj)return fj<603;var t="",e,n,r,o;for(e=65;e<76;e++){switch(n=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(o=0;o<47;o++)va.push({k:n+o,v:r})}for(va.sort(function(i,a){return a.v-i.v}),o=0;ocj(n)?1:-1}};Tue({target:"Array",proto:!0,forced:Lue},{sort:function(t){t!==void 0&&Pue(t);var e=Mue(this);if(gj)return t===void 0?pj(e):pj(e,t);var n=[],r=uj(e),o,i;for(i=0;ithis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=Qte(function(){e.flush()},this.delay))}},{key:"flush",value:function(){var e,n;ls(e=wR(n=this._queue).call(n,0)).call(e,function(r){r.fn.apply(r.context||r.fn,r.args||[])})}}],[{key:"extend",value:function(e,n){var r=new t(n);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=function(){r.flush()};var o=[{name:"flush",original:void 0}];if(n&&n.replace)for(var i=0;i=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function Wce(t,e){var n;if(t){if(typeof t=="string")return bj(t,e);var r=Yg(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Gw(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bj(t,e)}}function bj(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);na&&(a=c,i=u)}return i}},{key:"min",value:function(n){var r=gk(this._pairs),o=r.next();if(o.done)return null;for(var i=o.value[1],a=n(o.value[1],o.value[0]);!(o=r.next()).done;){var s=nr(o.value,2),l=s[0],u=s[1],c=n(u,l);c=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function Hce(t,e){var n;if(t){if(typeof t=="string")return Sj(t,e);var r=Yg(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Gw(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sj(t,e)}}function Sj(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n"u"||!iv||iv.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(iv(Boolean,[],function(){})),!0}catch{return!1}}function qce(t,e){return t[e]==null&&(t[e]=kce()),t}var uu=function(t){coe(n,t);var e=Vce(n);function n(r,o){var i;return lg(this,n),i=e.call(this),fa(zA(i),"_queue",null),r&&!kr(r)&&(o=r,r=[]),i._options=o||{},i._data=new oj,i.length=0,i._idProp=i._options.fieldId||"id",r&&r.length&&i.add(r),i.setOptions(o),i}return Hg(n,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(r){r&&r.queue!==void 0&&(r.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Sce.extend(this,{replace:["add","update","remove"]})),r.queue&&typeof r.queue=="object"&&this._queue.setOptions(r.queue)))}},{key:"add",value:function(r,o){var i=this,a=[],s;if(kr(r)){var l=bo(r).call(r,function(h){return h[i._idProp]});if(aue(l).call(l,function(h){return i._data.has(h)}))throw new Error("A duplicate id was found in the parameter array.");for(var u=0,c=r.length;uu?1:la)&&(i=u,a=c)}}catch(h){s.e(h)}finally{s.f()}return i||null}},{key:"min",value:function(r){var o,i=null,a=null,s=vk(vj(o=this._data).call(o)),l;try{for(s.s();!(l=s.n()).done;){var u=l.value,c=u[r];typeof c=="number"&&(a==null||c"u"&&wk!==void 0,Ij={all:wk,IS_HTMLDDA:tde},Rj=Ij,nde=Rj.all,rn=Rj.IS_HTMLDDA?function(t){return typeof t=="function"||t===nde}:function(t){return typeof t=="function"},cu={},rde=Le,on=!rde(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),ode=Kd,kv=Function.prototype.call,_r=ode?kv.bind(kv):function(){return kv.apply(kv,arguments)},Sv={},Aj={}.propertyIsEnumerable,Dj=Object.getOwnPropertyDescriptor,ide=Dj&&!Aj.call({1:2},1);Sv.f=ide?function(t){var e=Dj(this,t);return!!e&&e.enumerable}:Aj;var Xd=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},ade=He,sde=Le,lde=Ci,xk=Object,ude=ade("".split),_v=sde(function(){return!xk("z").propertyIsEnumerable(0)})?function(t){return lde(t)==="String"?ude(t,""):xk(t)}:xk,du=function(t){return t==null},cde=du,dde=TypeError,Gd=function(t){if(cde(t))throw new dde("Can't call method on "+t);return t},hde=_v,fde=Gd,Bo=function(t){return hde(fde(t))},jj=rn,Nj=Ij,pde=Nj.all,an=Nj.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:jj(t)||t===pde}:function(t){return typeof t=="object"?t!==null:jj(t)},Be={},kk=Be,Sk=Ct,gde=rn,zj=function(t){return gde(t)?t:void 0},Wr=function(t,e){return arguments.length<2?zj(kk[t])||zj(Sk[t]):kk[t]&&kk[t][e]||Sk[t]&&Sk[t][e]},vde=He,Nt=vde({}.isPrototypeOf),Qd=typeof navigator<"u"&&String(navigator.userAgent)||"",Fj=Ct,_k=Qd,Lj=Fj.process,Bj=Fj.Deno,$j=Lj&&Lj.versions||Bj&&Bj.version,Wj=$j&&$j.v8,xo,Ev;Wj&&(xo=Wj.split("."),Ev=xo[0]>0&&xo[0]<4?1:+(xo[0]+xo[1])),!Ev&&_k&&(xo=_k.match(/Edge\/(\d+)/),(!xo||xo[1]>=74)&&(xo=_k.match(/Chrome\/(\d+)/),xo&&(Ev=+xo[1])));var Jd=Ev,Hj=Jd,mde=Le,yde=Ct,bde=yde.String,hu=!!Object.getOwnPropertySymbols&&!mde(function(){var t=Symbol("symbol detection");return!bde(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Hj&&Hj<41}),wde=hu,Vj=wde&&!Symbol.sham&&typeof Symbol.iterator=="symbol",xde=Wr,kde=rn,Sde=Nt,_de=Vj,Ede=Object,Zd=_de?function(t){return typeof t=="symbol"}:function(t){var e=xde("Symbol");return kde(e)&&Sde(e.prototype,Ede(t))},Cde=String,fu=function(t){try{return Cde(t)}catch{return"Object"}},Ode=rn,Tde=fu,Pde=TypeError,bs=function(t){if(Ode(t))return t;throw new Pde(Tde(t)+" is not a function")},Mde=bs,Ide=du,Ek=function(t,e){var n=t[e];return Ide(n)?void 0:Mde(n)},Ck=_r,Ok=rn,Tk=an,Rde=TypeError,Ade=function(t,e){var n,r;if(e==="string"&&Ok(n=t.toString)&&!Tk(r=Ck(n,t))||Ok(n=t.valueOf)&&!Tk(r=Ck(n,t))||e!=="string"&&Ok(n=t.toString)&&!Tk(r=Ck(n,t)))return r;throw new Rde("Can't convert object to primitive value")},Uj={exports:{}},qj=Ct,Dde=Object.defineProperty,jde=function(t,e){try{Dde(qj,t,{value:e,configurable:!0,writable:!0})}catch{qj[t]=e}return e},Nde=Ct,zde=jde,Kj="__core-js_shared__",Fde=Nde[Kj]||zde(Kj,{}),Pk=Fde,Yj=Pk;(Uj.exports=function(t,e){return Yj[t]||(Yj[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var pu=Uj.exports,Lde=Gd,Bde=Object,ar=function(t){return Bde(Lde(t))},$de=He,Wde=ar,Hde=$de({}.hasOwnProperty),sn=Object.hasOwn||function(t,e){return Hde(Wde(t),e)},Vde=He,Ude=0,qde=Math.random(),Kde=Vde(1 .toString),Cv=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Kde(++Ude+qde,36)},Yde=Ct,Xde=pu,Xj=sn,Gde=Cv,Qde=hu,Jde=Vj,gu=Yde.Symbol,Mk=Xde("wks"),Zde=Jde?gu.for||gu:gu&&gu.withoutSetter||Gde,Ot=function(t){return Xj(Mk,t)||(Mk[t]=Qde&&Xj(gu,t)?gu[t]:Zde("Symbol."+t)),Mk[t]},ehe=_r,Gj=an,Qj=Zd,the=Ek,nhe=Ade,rhe=Ot,ohe=TypeError,ihe=rhe("toPrimitive"),ahe=function(t,e){if(!Gj(t)||Qj(t))return t;var n=the(t,ihe),r;if(n){if(e===void 0&&(e="default"),r=ehe(n,t,e),!Gj(r)||Qj(r))return r;throw new ohe("Can't convert object to primitive value")}return e===void 0&&(e="number"),nhe(t,e)},she=ahe,lhe=Zd,Ov=function(t){var e=she(t,"string");return lhe(e)?e:e+""},uhe=Ct,Jj=an,Ik=uhe.document,che=Jj(Ik)&&Jj(Ik.createElement),Zj=function(t){return che?Ik.createElement(t):{}},dhe=on,hhe=Le,fhe=Zj,eN=!dhe&&!hhe(function(){return Object.defineProperty(fhe("div"),"a",{get:function(){return 7}}).a!==7}),phe=on,ghe=_r,vhe=Sv,mhe=Xd,yhe=Bo,bhe=Ov,whe=sn,xhe=eN,tN=Object.getOwnPropertyDescriptor;cu.f=phe?tN:function(t,e){if(t=yhe(t),e=bhe(e),xhe)try{return tN(t,e)}catch{}if(whe(t,e))return mhe(!ghe(vhe.f,t,e),t[e])};var khe=Le,She=rn,_he=/#|\.prototype\./,eh=function(t,e){var n=Che[Ehe(t)];return n===The?!0:n===Ohe?!1:She(e)?khe(e):!!e},Ehe=eh.normalize=function(t){return String(t).replace(_he,".").toLowerCase()},Che=eh.data={},Ohe=eh.NATIVE="N",The=eh.POLYFILL="P",Phe=eh,nN=bk,Mhe=bs,Ihe=Kd,Rhe=nN(nN.bind),th=function(t,e){return Mhe(t),e===void 0?t:Ihe?Rhe(t,e):function(){return t.apply(e,arguments)}},Er={},Ahe=on,Dhe=Le,rN=Ahe&&Dhe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),jhe=an,Nhe=String,zhe=TypeError,Cr=function(t){if(jhe(t))return t;throw new zhe(Nhe(t)+" is not an object")},Fhe=on,Lhe=eN,Bhe=rN,Tv=Cr,oN=Ov,$he=TypeError,Rk=Object.defineProperty,Whe=Object.getOwnPropertyDescriptor,Ak="enumerable",Dk="configurable",jk="writable";Er.f=Fhe?Bhe?function(t,e,n){if(Tv(t),e=oN(e),Tv(n),typeof t=="function"&&e==="prototype"&&"value"in n&&jk in n&&!n[jk]){var r=Whe(t,e);r&&r[jk]&&(t[e]=n.value,n={configurable:Dk in n?n[Dk]:r[Dk],enumerable:Ak in n?n[Ak]:r[Ak],writable:!1})}return Rk(t,e,n)}:Rk:function(t,e,n){if(Tv(t),e=oN(e),Tv(n),Lhe)try{return Rk(t,e,n)}catch{}if("get"in n||"set"in n)throw new $he("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Hhe=on,Vhe=Er,Uhe=Xd,vu=Hhe?function(t,e,n){return Vhe.f(t,e,Uhe(1,n))}:function(t,e,n){return t[e]=n,t},Pv=Ct,qhe=Yd,Khe=bk,Yhe=rn,Xhe=cu.f,Ghe=Phe,mu=Be,Qhe=th,yu=vu,iN=sn,Jhe=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return qhe(t,this,arguments)};return e.prototype=t.prototype,e},me=function(t,e){var n=t.target,r=t.global,o=t.stat,i=t.proto,a=r?Pv:o?Pv[n]:(Pv[n]||{}).prototype,s=r?mu:mu[n]||yu(mu,n,{})[n],l=s.prototype,u,c,h,d,f,p,g,b,m;for(d in e)u=Ghe(r?d:n+(o?".":"#")+d,t.forced),c=!u&&a&&iN(a,d),p=s[d],c&&(t.dontCallGetSet?(m=Xhe(a,d),g=m&&m.value):g=a[d]),f=c&&g?g:e[d],!(c&&typeof p==typeof f)&&(t.bind&&c?b=Qhe(f,Pv):t.wrap&&c?b=Jhe(f):i&&Yhe(f)?b=Khe(f):b=f,(t.sham||f&&f.sham||p&&p.sham)&&yu(b,"sham",!0),yu(s,d,b),i&&(h=n+"Prototype",iN(mu,h)||yu(mu,h,{}),yu(mu[h],d,f),t.real&&l&&(u||!l[d])&&yu(l,d,f)))},Zhe=Math.ceil,efe=Math.floor,tfe=Math.trunc||function(t){var e=+t;return(e>0?efe:Zhe)(e)},nfe=tfe,Mv=function(t){var e=+t;return e!==e||e===0?0:nfe(e)},rfe=Mv,ofe=Math.max,ife=Math.min,nh=function(t,e){var n=rfe(t);return n<0?ofe(n+e,0):ife(n,e)},afe=Mv,sfe=Math.min,lfe=function(t){return t>0?sfe(afe(t),9007199254740991):0},ufe=lfe,Hr=function(t){return ufe(t.length)},cfe=Bo,dfe=nh,hfe=Hr,aN=function(t){return function(e,n,r){var o=cfe(e),i=hfe(o),a=dfe(r,i),s;if(t&&n!==n){for(;i>a;)if(s=o[a++],s!==s)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},Nk={includes:aN(!0),indexOf:aN(!1)},rh={},ffe=He,zk=sn,pfe=Bo,gfe=Nk.indexOf,vfe=rh,sN=ffe([].push),lN=function(t,e){var n=pfe(t),r=0,o=[],i;for(i in n)!zk(vfe,i)&&zk(n,i)&&sN(o,i);for(;e.length>r;)zk(n,i=e[r++])&&(~gfe(o,i)||sN(o,i));return o},Fk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mfe=lN,yfe=Fk,Iv=Object.keys||function(t){return mfe(t,yfe)},oh={};oh.f=Object.getOwnPropertySymbols;var uN=on,bfe=He,wfe=_r,xfe=Le,Lk=Iv,kfe=oh,Sfe=Sv,_fe=ar,Efe=_v,bu=Object.assign,cN=Object.defineProperty,Cfe=bfe([].concat),Ofe=!bu||xfe(function(){if(uN&&bu({b:1},bu(cN({},"a",{enumerable:!0,get:function(){cN(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),bu({},t)[n]!==7||Lk(bu({},e)).join("")!==r})?function(t,e){for(var n=_fe(t),r=arguments.length,o=1,i=kfe.f,a=Sfe.f;r>o;)for(var s=Efe(arguments[o++]),l=i?Cfe(Lk(s),i(s)):Lk(s),u=l.length,c=0,h;u>c;)h=l[c++],(!uN||wfe(a,s,h))&&(n[h]=s[h]);return n}:bu,Tfe=me,dN=Ofe;Tfe({target:"Object",stat:!0,arity:2,forced:Object.assign!==dN},{assign:dN});var Pfe=Be,Mfe=Pfe.Object.assign,Ife=Mfe,Rfe=Ife,Afe=Rfe,Vt=de(Afe),Dfe=He,Rv=Dfe([].slice),hN=He,jfe=bs,Nfe=an,zfe=sn,fN=Rv,Ffe=Kd,pN=Function,Lfe=hN([].concat),Bfe=hN([].join),Bk={},$fe=function(t,e,n){if(!zfe(Bk,e)){for(var r=[],o=0;o=.1;)p=+i[h++%a],p>c&&(p=c),f=Math.sqrt(p*p/(1+u*u)),f=s<0?-f:f,e+=f,n+=u*f,d===!0?t.lineTo(e,n):t.moveTo(e,n),c-=p,d=!d}function npe(t,e,n,r){t.beginPath();var o=6,i=Math.PI*2/o;t.moveTo(e+r,n);for(var a=1;a1?n-1:0),o=1;o=i?t?"":void 0:(a=EN(r,o),a<55296||a>56319||o+1===i||(s=EN(r,o+1))<56320||s>57343?t?bpe(r,o):a:t?wpe(r,o,o+2):(a-55296<<10)+(s-56320)+65536)}},xpe={codeAt:CN(!1),charAt:CN(!0)},kpe=Ct,Spe=rn,ON=kpe.WeakMap,TN=Spe(ON)&&/native code/.test(String(ON)),_pe=pu,Epe=Cv,PN=_pe("keys"),Dv=function(t){return PN[t]||(PN[t]=Epe(t))},Cpe=TN,MN=Ct,Ope=an,Tpe=vu,qk=sn,Kk=Pk,Ppe=Dv,Mpe=rh,IN="Object already initialized",Yk=MN.TypeError,Ipe=MN.WeakMap,jv,ih,Nv,Rpe=function(t){return Nv(t)?ih(t):jv(t,{})},Ape=function(t){return function(e){var n;if(!Ope(e)||(n=ih(e)).type!==t)throw new Yk("Incompatible receiver, "+t+" required");return n}};if(Cpe||Kk.state){var Wo=Kk.state||(Kk.state=new Ipe);Wo.get=Wo.get,Wo.has=Wo.has,Wo.set=Wo.set,jv=function(t,e){if(Wo.has(t))throw new Yk(IN);return e.facade=t,Wo.set(t,e),e},ih=function(t){return Wo.get(t)||{}},Nv=function(t){return Wo.has(t)}}else{var wu=Ppe("state");Mpe[wu]=!0,jv=function(t,e){if(qk(t,wu))throw new Yk(IN);return e.facade=t,Tpe(t,wu,e),e},ih=function(t){return qk(t,wu)?t[wu]:{}},Nv=function(t){return qk(t,wu)}}var xs={set:jv,get:ih,has:Nv,enforce:Rpe,getterFor:Ape},Xk=on,Dpe=sn,RN=Function.prototype,jpe=Xk&&Object.getOwnPropertyDescriptor,Gk=Dpe(RN,"name"),Npe=Gk&&(function(){}).name==="something",zpe=Gk&&(!Xk||Xk&&jpe(RN,"name").configurable),Fpe={EXISTS:Gk,PROPER:Npe,CONFIGURABLE:zpe},zv={},Lpe=on,Bpe=rN,$pe=Er,Wpe=Cr,Hpe=Bo,Vpe=Iv;zv.f=Lpe&&!Bpe?Object.defineProperties:function(t,e){Wpe(t);for(var n=Hpe(e),r=Vpe(e),o=r.length,i=0,a;o>i;)$pe.f(t,a=r[i++],n[a]);return t};var Upe=Wr,qpe=Upe("document","documentElement"),Kpe=Cr,Ype=zv,AN=Fk,Xpe=rh,Gpe=qpe,Qpe=Zj,Jpe=Dv,DN=">",jN="<",Qk="prototype",Jk="script",NN=Jpe("IE_PROTO"),Zk=function(){},zN=function(t){return jN+Jk+DN+t+jN+"/"+Jk+DN},FN=function(t){t.write(zN("")),t.close();var e=t.parentWindow.Object;return t=null,e},Zpe=function(){var t=Qpe("iframe"),e="java"+Jk+":",n;return t.style.display="none",Gpe.appendChild(t),t.src=String(e),n=t.contentWindow.document,n.open(),n.write(zN("document.F=Object")),n.close(),n.F},Fv,Lv=function(){try{Fv=new ActiveXObject("htmlfile")}catch{}Lv=typeof document<"u"?document.domain&&Fv?FN(Fv):Zpe():FN(Fv);for(var t=AN.length;t--;)delete Lv[Qk][AN[t]];return Lv()};Xpe[NN]=!0;var xu=Object.create||function(t,e){var n;return t!==null?(Zk[Qk]=Kpe(t),n=new Zk,Zk[Qk]=null,n[NN]=t):n=Lv(),e===void 0?n:Ype.f(n,e)},ege=Le,LN=!ege(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),tge=sn,nge=rn,rge=ar,oge=Dv,ige=LN,BN=oge("IE_PROTO"),eS=Object,age=eS.prototype,Bv=ige?eS.getPrototypeOf:function(t){var e=rge(t);if(tge(e,BN))return e[BN];var n=e.constructor;return nge(n)&&e instanceof n?n.prototype:e instanceof eS?age:null},sge=vu,ah=function(t,e,n,r){return r&&r.enumerable?t[e]=n:sge(t,e,n),t},lge=Le,uge=rn,cge=an,dge=xu,$N=Bv,hge=ah,fge=Ot,tS=fge("iterator"),WN=!1,Oi,nS,rS;[].keys&&(rS=[].keys(),"next"in rS?(nS=$N($N(rS)),nS!==Object.prototype&&(Oi=nS)):WN=!0);var pge=!cge(Oi)||lge(function(){var t={};return Oi[tS].call(t)!==t});pge?Oi={}:Oi=dge(Oi),uge(Oi[tS])||hge(Oi,tS,function(){return this});var HN={IteratorPrototype:Oi,BUGGY_SAFARI_ITERATORS:WN},gge=Vk,vge=ws,mge=gge?{}.toString:function(){return"[object "+vge(this)+"]"},yge=Vk,bge=Er.f,wge=vu,xge=sn,kge=mge,Sge=Ot,VN=Sge("toStringTag"),ku=function(t,e,n,r){if(t){var o=n?t:t.prototype;xge(o,VN)||bge(o,VN,{configurable:!0,value:e}),r&&!yge&&wge(o,"toString",kge)}},Su={},_ge=HN.IteratorPrototype,Ege=xu,Cge=Xd,Oge=ku,Tge=Su,Pge=function(){return this},Mge=function(t,e,n,r){var o=e+" Iterator";return t.prototype=Ege(_ge,{next:Cge(+!r,n)}),Oge(t,o,!1,!0),Tge[o]=Pge,t},Ige=He,Rge=bs,Age=function(t,e,n){try{return Ige(Rge(Object.getOwnPropertyDescriptor(t,e)[n]))}catch{}},Dge=rn,jge=String,Nge=TypeError,zge=function(t){if(typeof t=="object"||Dge(t))return t;throw new Nge("Can't set "+jge(t)+" as a prototype")},Fge=Age,Lge=Cr,Bge=zge,$ge=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},n;try{n=Fge(Object.prototype,"__proto__","set"),n(e,[]),t=e instanceof Array}catch{}return function(r,o){return Lge(r),Bge(o),t?n(r,o):r.__proto__=o,r}}():void 0),Wge=me,Hge=_r,Vge=Fpe,Uge=Mge,qge=Bv,Kge=ku,UN=ah,Yge=Ot,qN=Su,Xge=HN,Gge=Vge.PROPER,$v=Xge.BUGGY_SAFARI_ITERATORS,oS=Yge("iterator"),KN="keys",Wv="values",YN="entries",Qge=function(){return this},iS=function(t,e,n,r,o,i,a){Uge(n,e,r);var s=function(m){if(m===o&&d)return d;if(!$v&&m&&m in c)return c[m];switch(m){case KN:return function(){return new n(this,m)};case Wv:return function(){return new n(this,m)};case YN:return function(){return new n(this,m)}}return function(){return new n(this)}},l=e+" Iterator",u=!1,c=t.prototype,h=c[oS]||c["@@iterator"]||o&&c[o],d=!$v&&h||s(o),f=e==="Array"&&c.entries||h,p,g,b;if(f&&(p=qge(f.call(new t)),p!==Object.prototype&&p.next&&(Kge(p,l,!0,!0),qN[l]=Qge)),Gge&&o===Wv&&h&&h.name!==Wv&&(u=!0,d=function(){return Hge(h,this)}),o)if(g={values:s(Wv),keys:i?d:s(KN),entries:s(YN)},a)for(b in g)($v||u||!(b in c))&&UN(c,b,g[b]);else Wge({target:e,proto:!0,forced:$v||u},g);return a&&c[oS]!==d&&UN(c,oS,d,{name:o}),qN[e]=d,g},aS=function(t,e){return{value:t,done:e}},Jge=xpe.charAt,Zge=$o,XN=xs,eve=iS,GN=aS,QN="String Iterator",tve=XN.set,nve=XN.getterFor(QN);eve(String,"String",function(t){tve(this,{type:QN,string:Zge(t),index:0})},function(){var t=nve(this),e=t.string,n=t.index,r;return n>=e.length?GN(void 0,!0):(r=Jge(e,n),t.index+=r.length,GN(r,!1))});var rve=_r,JN=Cr,ove=Ek,ZN=function(t,e,n){var r,o;JN(t);try{if(r=ove(t,"return"),!r){if(e==="throw")throw n;return n}r=rve(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return JN(r),n},ive=Cr,ave=ZN,sve=function(t,e,n,r){try{return r?e(ive(n)[0],n[1]):e(n)}catch(o){ave(t,"throw",o)}},lve=Ot,uve=Su,cve=lve("iterator"),dve=Array.prototype,ez=function(t){return t!==void 0&&(uve.Array===t||dve[cve]===t)},hve=He,fve=rn,sS=Pk,pve=hve(Function.toString);fve(sS.inspectSource)||(sS.inspectSource=function(t){return pve(t)});var gve=sS.inspectSource,vve=He,mve=Le,tz=rn,yve=ws,bve=Wr,wve=gve,nz=function(){},xve=[],rz=bve("Reflect","construct"),lS=/^\s*(?:class|function)\b/,kve=vve(lS.exec),Sve=!lS.test(nz),sh=function(t){if(!tz(t))return!1;try{return rz(nz,xve,t),!0}catch{return!1}},oz=function(t){if(!tz(t))return!1;switch(yve(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Sve||!!kve(lS,wve(t))}catch{return!0}};oz.sham=!0;var Hv=!rz||mve(function(){var t;return sh(sh.call)||!sh(Object)||!sh(function(){t=!0})||t})?oz:sh,_ve=Ov,Eve=Er,Cve=Xd,_u=function(t,e,n){var r=_ve(e);r in t?Eve.f(t,r,Cve(0,n)):t[r]=n},Ove=ws,iz=Ek,Tve=du,Pve=Su,Mve=Ot,Ive=Mve("iterator"),Vv=function(t){if(!Tve(t))return iz(t,Ive)||iz(t,"@@iterator")||Pve[Ove(t)]},Rve=_r,Ave=bs,Dve=Cr,jve=fu,Nve=Vv,zve=TypeError,az=function(t,e){var n=arguments.length<2?Nve(t):e;if(Ave(n))return Dve(Rve(n,t));throw new zve(jve(t)+" is not iterable")},Fve=th,Lve=_r,Bve=ar,$ve=sve,Wve=ez,Hve=Hv,Vve=Hr,sz=_u,Uve=az,qve=Vv,lz=Array,Kve=function(t){var e=Bve(t),n=Hve(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Fve(o,r>2?arguments[2]:void 0));var a=qve(e),s=0,l,u,c,h,d,f;if(a&&!(this===lz&&Wve(a)))for(h=Uve(e,a),d=h.next,u=n?new this:[];!(c=Lve(d,h)).done;s++)f=i?$ve(h,o,[c.value,s],!0):c.value,sz(u,s,f);else for(l=Vve(e),u=n?new this(l):lz(l);l>s;s++)f=i?o(e[s],s):e[s],sz(u,s,f);return u.length=s,u},Yve=Ot,uz=Yve("iterator"),cz=!1;try{var Xve=0,dz={next:function(){return{done:!!Xve++}},return:function(){cz=!0}};dz[uz]=function(){return this},Array.from(dz,function(){throw 2})}catch{}var Gve=function(t,e){try{if(!e&&!cz)return!1}catch{return!1}var n=!1;try{var r={};r[uz]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},Qve=me,Jve=Kve,Zve=Gve,eme=!Zve(function(t){Array.from(t)});Qve({target:"Array",stat:!0,forced:eme},{from:Jve});var tme=Be,nme=tme.Array.from,rme=nme,hz=rme,ome=hz,ks=de(ome),ime=Bo,fz=Su,pz=xs;Er.f;var ame=iS,Uv=aS,gz="Array Iterator",sme=pz.set,lme=pz.getterFor(gz);ame(Array,"Array",function(t,e){sme(this,{type:gz,target:ime(t),index:0,kind:e})},function(){var t=lme(this),e=t.target,n=t.kind,r=t.index++;if(!e||r>=e.length)return t.target=void 0,Uv(void 0,!0);switch(n){case"keys":return Uv(r,!1);case"values":return Uv(e[r],!1)}return Uv([r,e[r]],!1)},"values"),fz.Arguments=fz.Array;var ume=Vv,cme=ume,dme={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},hme=dme,fme=Ct,pme=ws,gme=vu,vz=Su,vme=Ot,mz=vme("toStringTag");for(var uS in hme){var yz=fme[uS],cS=yz&&yz.prototype;cS&&pme(cS)!==mz&&gme(cS,mz,uS),vz[uS]=vz.Array}var mme=cme,yme=mme,bme=yme,wme=bme,xme=wme,kme=xme,bz=kme,wz=de(bz),Sme=bz,Ss=de(Sme);function J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var xz={exports:{}},_me=me,Eme=on,kz=Er.f;_me({target:"Object",stat:!0,forced:Object.defineProperty!==kz,sham:!Eme},{defineProperty:kz});var Cme=Be,Sz=Cme.Object,Ome=xz.exports=function(t,e,n){return Sz.defineProperty(t,e,n)};Sz.defineProperty.sham&&(Ome.sham=!0);var Tme=xz.exports,Pme=Tme,_z=Pme,Mme=_z,Ime=Mme,Rme=Ime,Ame=Rme,Dme=Ame,qv=de(Dme),jme=Ci,_s=Array.isArray||function(t){return jme(t)==="Array"},Nme=TypeError,zme=9007199254740991,dS=function(t){if(t>zme)throw Nme("Maximum allowed index exceeded");return t},Ez=_s,Fme=Hv,Lme=an,Bme=Ot,$me=Bme("species"),Cz=Array,Wme=function(t){var e;return Ez(t)&&(e=t.constructor,Fme(e)&&(e===Cz||Ez(e.prototype))?e=void 0:Lme(e)&&(e=e[$me],e===null&&(e=void 0))),e===void 0?Cz:e},Hme=Wme,hS=function(t,e){return new(Hme(t))(e===0?0:e)},Vme=Le,Ume=Ot,qme=Jd,Kme=Ume("species"),lh=function(t){return qme>=51||!Vme(function(){var e=[],n=e.constructor={};return n[Kme]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Yme=me,Xme=Le,Gme=_s,Qme=an,Jme=ar,Zme=Hr,Oz=dS,Tz=_u,eye=hS,tye=lh,nye=Ot,rye=Jd,Pz=nye("isConcatSpreadable"),oye=rye>=51||!Xme(function(){var t=[];return t[Pz]=!1,t.concat()[0]!==t}),iye=function(t){if(!Qme(t))return!1;var e=t[Pz];return e!==void 0?!!e:Gme(t)},aye=!oye||!tye("concat");Yme({target:"Array",proto:!0,arity:1,forced:aye},{concat:function(t){var e=Jme(this),n=eye(e,0),r=0,o,i,a,s,l;for(o=-1,a=arguments.length;ob;b++)if((s||b in f)&&(y=f[b],x=p(y,b,d),t))if(e)v[b]=x;else if(x)switch(t){case 3:return!0;case 5:return y;case 6:return b;case 2:Nz(v,y)}else switch(t){case 4:return!1;case 7:Nz(v,y)}return i?-1:r||o?o:v}},ya={forEach:ma(0),map:ma(1),filter:ma(2),some:ma(3),every:ma(4),find:ma(5),findIndex:ma(6),filterReject:ma(7)},Yv=me,Xv=Ct,pS=_r,Aye=He,Eu=on,Cu=hu,Dye=Le,un=sn,jye=Nt,gS=Cr,Gv=Bo,vS=Ov,Nye=$o,mS=Xd,dh=xu,zz=Iv,zye=uh,Fz=Kv,Fye=oh,Lz=cu,Bz=Er,Lye=zv,$z=Sv,Wz=ah,Bye=fS,yS=pu,$ye=Dv,Hz=rh,Vz=Cv,Wye=Ot,Hye=ch,Vye=Tt,Uye=jz,qye=ku,Uz=xs,Qv=ya.forEach,sr=$ye("hidden"),Jv="Symbol",hh="prototype",Kye=Uz.set,qz=Uz.getterFor(Jv),ko=Object[hh],Es=Xv.Symbol,fh=Es&&Es[hh],Yye=Xv.RangeError,Xye=Xv.TypeError,bS=Xv.QObject,Kz=Lz.f,Cs=Bz.f,Yz=Fz.f,Gye=$z.f,Xz=Aye([].push),Ti=yS("symbols"),ph=yS("op-symbols"),Qye=yS("wks"),wS=!bS||!bS[hh]||!bS[hh].findChild,Gz=function(t,e,n){var r=Kz(ko,e);r&&delete ko[e],Cs(t,e,n),r&&t!==ko&&Cs(ko,e,r)},xS=Eu&&Dye(function(){return dh(Cs({},"a",{get:function(){return Cs(this,"a",{value:7}).a}})).a!==7})?Gz:Cs,kS=function(t,e){var n=Ti[t]=dh(fh);return Kye(n,{type:Jv,tag:t,description:e}),Eu||(n.description=e),n},Zv=function(t,e,n){t===ko&&Zv(ph,e,n),gS(t);var r=vS(e);return gS(n),un(Ti,r)?(n.enumerable?(un(t,sr)&&t[sr][r]&&(t[sr][r]=!1),n=dh(n,{enumerable:mS(0,!1)})):(un(t,sr)||Cs(t,sr,mS(1,{})),t[sr][r]=!0),xS(t,r,n)):Cs(t,r,n)},SS=function(t,e){gS(t);var n=Gv(e),r=zz(n).concat(eF(n));return Qv(r,function(o){(!Eu||pS(Qz,n,o))&&Zv(t,o,n[o])}),t},Jye=function(t,e){return e===void 0?dh(t):SS(dh(t),e)},Qz=function(t){var e=vS(t),n=pS(Gye,this,e);return this===ko&&un(Ti,e)&&!un(ph,e)?!1:n||!un(this,e)||!un(Ti,e)||un(this,sr)&&this[sr][e]?n:!0},Jz=function(t,e){var n=Gv(t),r=vS(e);if(!(n===ko&&un(Ti,r)&&!un(ph,r))){var o=Kz(n,r);return o&&un(Ti,r)&&!(un(n,sr)&&n[sr][r])&&(o.enumerable=!0),o}},Zz=function(t){var e=Yz(Gv(t)),n=[];return Qv(e,function(r){!un(Ti,r)&&!un(Hz,r)&&Xz(n,r)}),n},eF=function(t){var e=t===ko,n=Yz(e?ph:Gv(t)),r=[];return Qv(n,function(o){un(Ti,o)&&(!e||un(ko,o))&&Xz(r,Ti[o])}),r};Cu||(Es=function(){if(jye(fh,this))throw new Xye("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:Nye(arguments[0]),e=Vz(t),n=function(r){this===ko&&pS(n,ph,r),un(this,sr)&&un(this[sr],e)&&(this[sr][e]=!1);var o=mS(1,r);try{xS(this,e,o)}catch(i){if(!(i instanceof Yye))throw i;Gz(this,e,o)}};return Eu&&wS&&xS(ko,e,{configurable:!0,set:n}),kS(e,t)},fh=Es[hh],Wz(fh,"toString",function(){return qz(this).tag}),Wz(Es,"withoutSetter",function(t){return kS(Vz(t),t)}),$z.f=Qz,Bz.f=Zv,Lye.f=SS,Lz.f=Jz,zye.f=Fz.f=Zz,Fye.f=eF,Hye.f=function(t){return kS(Wye(t),t)},Eu&&Bye(fh,"description",{configurable:!0,get:function(){return qz(this).description}})),Yv({global:!0,constructor:!0,wrap:!0,forced:!Cu,sham:!Cu},{Symbol:Es}),Qv(zz(Qye),function(t){Vye(t)}),Yv({target:Jv,stat:!0,forced:!Cu},{useSetter:function(){wS=!0},useSimple:function(){wS=!1}}),Yv({target:"Object",stat:!0,forced:!Cu,sham:!Eu},{create:Jye,defineProperty:Zv,defineProperties:SS,getOwnPropertyDescriptor:Jz}),Yv({target:"Object",stat:!0,forced:!Cu},{getOwnPropertyNames:Zz}),Uye(),qye(Es,Jv),Hz[sr]=!0;var Zye=hu,tF=Zye&&!!Symbol.for&&!!Symbol.keyFor,e0e=me,t0e=Wr,n0e=sn,r0e=$o,nF=pu,o0e=tF,_S=nF("string-to-symbol-registry"),i0e=nF("symbol-to-string-registry");e0e({target:"Symbol",stat:!0,forced:!o0e},{for:function(t){var e=r0e(t);if(n0e(_S,e))return _S[e];var n=t0e("Symbol")(e);return _S[e]=n,i0e[n]=e,n}});var a0e=me,s0e=sn,l0e=Zd,u0e=fu,c0e=pu,d0e=tF,rF=c0e("symbol-to-string-registry");a0e({target:"Symbol",stat:!0,forced:!d0e},{keyFor:function(t){if(!l0e(t))throw new TypeError(u0e(t)+" is not a symbol");if(s0e(rF,t))return rF[t]}});var h0e=He,oF=_s,f0e=rn,iF=Ci,p0e=$o,aF=h0e([].push),g0e=function(t){if(f0e(t))return t;if(oF(t)){for(var e=t.length,n=[],r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)}});var Lwe=ln,Bwe=Lwe("Array").map,$we=Nt,Wwe=Bwe,AS=Array.prototype,Hwe=function(t){var e=t.map;return t===AS||$we(AS,t)&&e===AS.map?Wwe:e},Vwe=Hwe,Uwe=Vwe,qwe=Uwe,Tu=de(qwe),Kwe=me,Ywe=ar,BF=Iv,Xwe=Le,Gwe=Xwe(function(){BF(1)});Kwe({target:"Object",stat:!0,forced:Gwe},{keys:function(t){return BF(Ywe(t))}});var Qwe=Be,Jwe=Qwe.Object.keys,Zwe=Jwe,exe=Zwe,txe=exe,Mt=de(txe),nxe=me,rxe=He,$F=Date,oxe=rxe($F.prototype.getTime);nxe({target:"Date",stat:!0},{now:function(){return oxe(new $F)}});var ixe=Be,axe=ixe.Date.now,sxe=axe,lxe=sxe,uxe=lxe,nm=de(uxe),cxe=Le,Pu=function(t,e){var n=[][t];return!!n&&cxe(function(){n.call(null,e||function(){return 1},1)})},dxe=ya.forEach,hxe=Pu,fxe=hxe("forEach"),pxe=fxe?[].forEach:function(t){return dxe(this,t,arguments.length>1?arguments[1]:void 0)},gxe=me,WF=pxe;gxe({target:"Array",proto:!0,forced:[].forEach!==WF},{forEach:WF});var vxe=ln,mxe=vxe("Array").forEach,yxe=mxe,bxe=yxe,wxe=ws,xxe=sn,kxe=Nt,Sxe=bxe,DS=Array.prototype,_xe={DOMTokenList:!0,NodeList:!0},Exe=function(t){var e=t.forEach;return t===DS||kxe(DS,t)&&e===DS.forEach||xxe(_xe,wxe(t))?Sxe:e},Cxe=Exe,nt=de(Cxe),Oxe=me,Txe=He,Pxe=_s,Mxe=Txe([].reverse),HF=[1,2];Oxe({target:"Array",proto:!0,forced:String(HF)===String(HF.reverse())},{reverse:function(){return Pxe(this)&&(this.length=this.length),Mxe(this)}});var Ixe=ln,Rxe=Ixe("Array").reverse,Axe=Nt,Dxe=Rxe,jS=Array.prototype,jxe=function(t){var e=t.reverse;return t===jS||Axe(jS,t)&&e===jS.reverse?Dxe:e},Nxe=jxe,zxe=Nxe,Fxe=zxe,Os=de(Fxe),VF=fu,Lxe=TypeError,UF=function(t,e){if(!delete t[e])throw new Lxe("Cannot delete property "+VF(e)+" of "+VF(t))},Bxe=me,$xe=ar,Wxe=nh,Hxe=Mv,Vxe=Hr,Uxe=DF,qxe=dS,Kxe=hS,Yxe=_u,NS=UF,Xxe=lh,Gxe=Xxe("splice"),Qxe=Math.max,Jxe=Math.min;Bxe({target:"Array",proto:!0,forced:!Gxe},{splice:function(t,e){var n=$xe(this),r=Vxe(n),o=Wxe(t,r),i=arguments.length,a,s,l,u,c,h;for(i===0?a=s=0:i===1?(a=0,s=r-o):(a=i-2,s=Jxe(Qxe(Hxe(e),0),r-o)),qxe(r+a-s),l=Kxe(n,s),u=0;ur-s+a;u--)NS(n,u-1)}else if(a>s)for(u=r-s;u>o;u--)c=u+s-1,h=u+a-1,c in n?n[h]=n[c]:NS(n,h);for(u=0;u1?arguments[1]:void 0)}});var dke=ln,hke=dke("Array").includes,fke=an,pke=Ci,gke=Ot,vke=gke("match"),mke=function(t){var e;return fke(t)&&((e=t[vke])!==void 0?!!e:pke(t)==="RegExp")},yke=mke,bke=TypeError,wke=function(t){if(yke(t))throw new bke("The method doesn't accept regular expressions");return t},xke=Ot,kke=xke("match"),Ske=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[kke]=!1,"/./"[t](e)}catch{}}return!1},_ke=me,Eke=He,Cke=wke,Oke=Gd,qF=$o,Tke=Ske,Pke=Eke("".indexOf);_ke({target:"String",proto:!0,forced:!Tke("includes")},{includes:function(t){return!!~Pke(qF(Oke(this)),qF(Cke(t)),arguments.length>1?arguments[1]:void 0)}});var Mke=ln,Ike=Mke("String").includes,KF=Nt,Rke=hke,Ake=Ike,FS=Array.prototype,LS=String.prototype,Dke=function(t){var e=t.includes;return t===FS||KF(FS,t)&&e===FS.includes?Rke:typeof t=="string"||t===LS||KF(LS,t)&&e===LS.includes?Ake:e},jke=Dke,Nke=jke,zke=Nke,xa=de(zke),Fke=me,Lke=Le,Bke=ar,YF=Bv,$ke=LN,Wke=Lke(function(){YF(1)});Fke({target:"Object",stat:!0,forced:Wke,sham:!$ke},{getPrototypeOf:function(t){return YF(Bke(t))}});var Hke=Be,Vke=Hke.Object.getPrototypeOf,Uke=Vke,XF=Uke,qke=XF,GF=de(qke),Kke=me,Yke=ya.filter,Xke=lh,Gke=Xke("filter");Kke({target:"Array",proto:!0,forced:!Gke},{filter:function(t){return Yke(this,t,arguments.length>1?arguments[1]:void 0)}});var Qke=ln,Jke=Qke("Array").filter,Zke=Nt,eSe=Jke,BS=Array.prototype,tSe=function(t){var e=t.filter;return t===BS||Zke(BS,t)&&e===BS.filter?eSe:e},nSe=tSe,rSe=nSe,oSe=rSe,lr=de(oSe),$S=` -\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,iSe=He,aSe=Gd,sSe=$o,WS=$S,QF=iSe("".replace),lSe=RegExp("^["+WS+"]+"),uSe=RegExp("(^|[^"+WS+"])["+WS+"]+$"),HS=function(t){return function(e){var n=sSe(aSe(e));return t&1&&(n=QF(n,lSe,"")),t&2&&(n=QF(n,uSe,"$1")),n}},JF={start:HS(1),end:HS(2),trim:HS(3)},ZF=Ct,cSe=Le,dSe=He,hSe=$o,fSe=JF.trim,eL=$S,vh=ZF.parseInt,tL=ZF.Symbol,nL=tL&&tL.iterator,rL=/^[+-]?0x/i,pSe=dSe(rL.exec),gSe=vh(eL+"08")!==8||vh(eL+"0x16")!==22||nL&&!cSe(function(){vh(Object(nL))}),vSe=gSe?function(t,e){var n=fSe(hSe(t));return vh(n,e>>>0||(pSe(rL,n)?16:10))}:vh,mSe=me,oL=vSe;mSe({global:!0,forced:parseInt!==oL},{parseInt:oL});var ySe=Be,bSe=ySe.parseInt,wSe=bSe,xSe=wSe,kSe=xSe,So=de(kSe),SSe=me,_Se=bk,ESe=Nk.indexOf,CSe=Pu,VS=_Se([].indexOf),iL=!!VS&&1/VS([1],1,-0)<0,OSe=iL||!CSe("indexOf");SSe({target:"Array",proto:!0,forced:OSe},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return iL?VS(this,t,e)||0:ESe(this,t,e)}});var TSe=ln,PSe=TSe("Array").indexOf,MSe=Nt,ISe=PSe,US=Array.prototype,RSe=function(t){var e=t.indexOf;return t===US||MSe(US,t)&&e===US.indexOf?ISe:e},ASe=RSe,DSe=ASe,jSe=DSe,$e=de(jSe),NSe=me,zSe=on,FSe=xu;NSe({target:"Object",stat:!0,sham:!zSe},{create:FSe});var LSe=Be,BSe=LSe.Object,$Se=function(t,e){return BSe.create(t,e)},WSe=$Se,aL=WSe,HSe=aL,Ts=de(HSe),qS=Be,VSe=Yd;qS.JSON||(qS.JSON={stringify:JSON.stringify});var USe=function(t,e,n){return VSe(qS.JSON.stringify,null,arguments)},qSe=USe,KSe=qSe,YSe=KSe,mh=de(YSe),XSe=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",GSe=TypeError,QSe=function(t,e){if(tn,a=ZSe(r)?r:o_e(r),s=i?n_e(arguments,n):[],l=i?function(){JSe(a,this,s)}:a;return e?t(l,o):t(l)}:t},a_e=me,uL=Ct,s_e=lL,cL=s_e(uL.setInterval,!0);a_e({global:!0,bind:!0,forced:uL.setInterval!==cL},{setInterval:cL});var l_e=me,dL=Ct,u_e=lL,hL=u_e(dL.setTimeout,!0);l_e({global:!0,bind:!0,forced:dL.setTimeout!==hL},{setTimeout:hL});var c_e=Be,d_e=c_e.setTimeout,h_e=d_e,Vo=de(h_e),f_e=ar,fL=nh,p_e=Hr,g_e=function(t){for(var e=f_e(this),n=p_e(e),r=arguments.length,o=fL(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=i===void 0?n:fL(i,n);a>o;)e[o++]=t;return e},v_e=me,m_e=g_e;v_e({target:"Array",proto:!0},{fill:m_e});var y_e=ln,b_e=y_e("Array").fill,w_e=Nt,x_e=b_e,KS=Array.prototype,k_e=function(t){var e=t.fill;return t===KS||w_e(KS,t)&&e===KS.fill?x_e:e},S_e=k_e,__e=S_e,E_e=__e,yh=de(E_e);function _o(){return _o=Object.assign||function(t){for(var e=1;e"u"?{style:{}}:document.createElement("div"),O_e="function",Mu=Math.round,Ms=Math.abs,XS=Date.now;function om(t,e){for(var n,r,o=e[0].toUpperCase()+e.slice(1),i=0;i"u"?Mi={}:Mi=window;var gL=om(C_e.style,"touchAction"),vL=gL!==void 0;function T_e(){if(!vL)return!1;var t={},e=Mi.CSS&&Mi.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=e?Mi.CSS.supports("touch-action",n):!0}),t}var mL="compute",yL="auto",GS="manipulation",Is="none",bh="pan-x",wh="pan-y",im=T_e(),P_e=/mobile|tablet|ip(ad|hone|od)|android/i,bL="ontouchstart"in Mi,M_e=om(Mi,"PointerEvent")!==void 0,I_e=bL&&P_e.test(navigator.userAgent),xh="touch",R_e="pen",QS="mouse",A_e="kinect",D_e=25,Ln=1,Rs=2,Ut=4,ur=8,am=1,kh=2,Sh=4,_h=8,Iu=16,Uo=kh|Sh,As=_h|Iu,wL=Uo|As,xL=["x","y"],sm=["clientX","clientY"];function Ii(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==void 0)for(r=0;r-1}function j_e(t){if(Ds(t,Is))return Is;var e=Ds(t,bh),n=Ds(t,wh);return e&&n?Is:e||n?e?bh:wh:Ds(t,GS)?GS:yL}var kL=function(){function t(n,r){this.manager=n,this.set(r)}var e=t.prototype;return e.set=function(n){n===mL&&(n=this.compute()),vL&&this.manager.element.style&&im[n]&&(this.manager.element.style[gL]=n),this.actions=n.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var n=[];return Ii(this.manager.recognizers,function(r){lm(r.options.enable,[r])&&(n=n.concat(r.getTouchAction()))}),j_e(n.join(" "))},e.preventDefaults=function(n){var r=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){r.preventDefault();return}var i=this.actions,a=Ds(i,Is)&&!im[Is],s=Ds(i,wh)&&!im[wh],l=Ds(i,bh)&&!im[bh];if(a){var u=n.pointers.length===1,c=n.distance<2,h=n.deltaTime<250;if(u&&c&&h)return}if(!(l&&s)&&(a||s&&o&Uo||l&&o&As))return this.preventSrc(r)},e.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function JS(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function SL(t){var e=t.length;if(e===1)return{x:Mu(t[0].clientX),y:Mu(t[0].clientY)};for(var n=0,r=0,o=0;o=Ms(e)?t<0?kh:Sh:e<0?_h:Iu}function N_e(t,e){var n=e.center,r=t.offsetDelta||{},o=t.prevDelta||{},i=t.prevInput||{};(e.eventType===Ln||i.eventType===Ut)&&(o=t.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-r.x),e.deltaY=o.y+(n.y-r.y)}function CL(t,e,n){return{x:e/t||0,y:n/t||0}}function z_e(t,e){return um(e[0],e[1],sm)/um(t[0],t[1],sm)}function F_e(t,e){return ZS(e[1],e[0],sm)+ZS(t[1],t[0],sm)}function L_e(t,e){var n=t.lastInterval||e,r=e.timeStamp-n.timeStamp,o,i,a,s;if(e.eventType!==ur&&(r>D_e||n.velocity===void 0)){var l=e.deltaX-n.deltaX,u=e.deltaY-n.deltaY,c=CL(r,l,u);i=c.x,a=c.y,o=Ms(c.x)>Ms(c.y)?c.x:c.y,s=EL(l,u),t.lastInterval=e}else o=n.velocity,i=n.velocityX,a=n.velocityY,s=n.direction;e.velocity=o,e.velocityX=i,e.velocityY=a,e.direction=s}function B_e(t,e){var n=t.session,r=e.pointers,o=r.length;n.firstInput||(n.firstInput=_L(e)),o>1&&!n.firstMultiple?n.firstMultiple=_L(e):o===1&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,s=a?a.center:i.center,l=e.center=SL(r);e.timeStamp=XS(),e.deltaTime=e.timeStamp-i.timeStamp,e.angle=ZS(s,l),e.distance=um(s,l),N_e(n,e),e.offsetDirection=EL(e.deltaX,e.deltaY);var u=CL(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=Ms(u.x)>Ms(u.y)?u.x:u.y,e.scale=a?z_e(a.pointers,r):1,e.rotation=a?F_e(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,L_e(n,e);var c=t.element,h=e.srcEvent,d;h.composedPath?d=h.composedPath()[0]:h.path?d=h.path[0]:d=h.target,JS(d,c)&&(c=d),e.target=c}function $_e(t,e,n){var r=n.pointers.length,o=n.changedPointers.length,i=e&Ln&&r-o===0,a=e&(Ut|ur)&&r-o===0;n.isFirst=!!i,n.isFinal=!!a,i&&(t.session={}),n.eventType=e,B_e(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Eh(t){return t.trim().split(/\s+/g)}function Ch(t,e,n){Ii(Eh(e),function(r){t.addEventListener(r,n,!1)})}function Oh(t,e,n){Ii(Eh(e),function(r){t.removeEventListener(r,n,!1)})}function OL(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Ru=function(){function t(n,r){var o=this;this.manager=n,this.callback=r,this.element=n.element,this.target=n.options.inputTarget,this.domHandler=function(i){lm(n.options.enable,[n])&&o.handler(i)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Ch(this.element,this.evEl,this.domHandler),this.evTarget&&Ch(this.target,this.evTarget,this.domHandler),this.evWin&&Ch(OL(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Oh(this.element,this.evEl,this.domHandler),this.evTarget&&Oh(this.target,this.evTarget,this.domHandler),this.evWin&&Oh(OL(this.element),this.evWin,this.domHandler)},t}();function js(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rl[e]}):r=r.sort()),r}var V_e={touchstart:Ln,touchmove:Rs,touchend:Ut,touchcancel:ur},U_e="touchstart touchmove touchend touchcancel",t_=function(t){Vr(e,t);function e(){var r;return e.prototype.evTarget=U_e,r=t.apply(this,arguments)||this,r.targetIds={},r}var n=e.prototype;return n.handler=function(r){var o=V_e[r.type],i=q_e.call(this,r,o);i&&this.callback(this.manager,o,{pointers:i[0],changedPointers:i[1],pointerType:xh,srcEvent:r})},e}(Ru);function q_e(t,e){var n=Th(t.touches),r=this.targetIds;if(e&(Ln|Rs)&&n.length===1)return r[n[0].identifier]=!0,[n,n];var o,i,a=Th(t.changedTouches),s=[],l=this.target;if(i=n.filter(function(u){return JS(u.target,l)}),e===Ln)for(o=0;o-1&&o.splice(a,1)};setTimeout(i,G_e)}}function Q_e(t,e){t&Ln?(this.primaryTouch=e.changedPointers[0].identifier,RL.call(this,e)):t&(Ut|ur)&&RL.call(this,e)}function J_e(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(r,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},e.emit=function(n){var r=this,o=this.state;function i(a){r.manager.emit(a,n)}o=ka&&i(r.options.event+DL(o))},e.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=qo},e.canEmit=function(){for(var n=0;no.threshold&&s&o.direction},n.attrTest=function(r){return ju.prototype.attrTest.call(this,r)&&(this.state&Ur||!(this.state&Ur)&&this.directionTest(r))},n.emit=function(r){this.pX=r.deltaX,this.pY=r.deltaY;var o=jL(r.direction);o&&(r.additionalEvent=this.options.event+o),t.prototype.emit.call(this,r)},e}(ju),NL=function(t){Vr(e,t);function e(r){return r===void 0&&(r={}),t.call(this,_o({event:"swipe",threshold:10,velocity:.3,direction:Uo|As,pointers:1},r))||this}var n=e.prototype;return n.getTouchAction=function(){return o_.prototype.getTouchAction.call(this)},n.attrTest=function(r){var o=this.options.direction,i;return o&(Uo|As)?i=r.overallVelocity:o&Uo?i=r.overallVelocityX:o&As&&(i=r.overallVelocityY),t.prototype.attrTest.call(this,r)&&o&r.offsetDirection&&r.distance>this.options.threshold&&r.maxPointers===this.options.pointers&&Ms(i)>this.options.velocity&&r.eventType&Ut},n.emit=function(r){var o=jL(r.offsetDirection);o&&this.manager.emit(this.options.event+o,r),this.manager.emit(this.options.event,r)},e}(ju),zL=function(t){Vr(e,t);function e(r){return r===void 0&&(r={}),t.call(this,_o({event:"pinch",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[Is]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.scale-1)>this.options.threshold||this.state&Ur)},n.emit=function(r){if(r.scale!==1){var o=r.scale<1?"in":"out";r.additionalEvent=this.options.event+o}t.prototype.emit.call(this,r)},e}(ju),FL=function(t){Vr(e,t);function e(r){return r===void 0&&(r={}),t.call(this,_o({event:"rotate",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[Is]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.rotation)>this.options.threshold||this.state&Ur)},e}(ju),LL=function(t){Vr(e,t);function e(r){var o;return r===void 0&&(r={}),o=t.call(this,_o({event:"press",pointers:1,time:251,threshold:9},r))||this,o._timer=null,o._input=null,o}var n=e.prototype;return n.getTouchAction=function(){return[yL]},n.process=function(r){var o=this,i=this.options,a=r.pointers.length===i.pointers,s=r.distancei.time;if(this._input=r,!s||!a||r.eventType&(Ut|ur)&&!l)this.reset();else if(r.eventType&Ln)this.reset(),this._timer=setTimeout(function(){o.state=Ri,o.tryEmit()},i.time);else if(r.eventType&Ut)return Ri;return qo},n.reset=function(){clearTimeout(this._timer)},n.emit=function(r){this.state===Ri&&(r&&r.eventType&Ut?this.manager.emit(this.options.event+"up",r):(this._input.timeStamp=XS(),this.manager.emit(this.options.event,this._input)))},e}(Mh),BL={domEvents:!1,touchAction:mL,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},$L=[[FL,{enable:!1}],[zL,{enable:!1},["rotate"]],[NL,{direction:Uo}],[o_,{direction:Uo},["swipe"]],[r_],[r_,{event:"doubletap",taps:2},["tap"]],[LL]],nEe=1,WL=2;function HL(t,e){var n=t.element;if(n.style){var r;Ii(t.options.cssProps,function(o,i){r=om(n.style,i),e?(t.oldCssProps[r]=n.style[r],n.style[r]=o):n.style[r]=t.oldCssProps[r]||""}),e||(t.oldCssProps={})}}function rEe(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var VL=function(){function t(n,r){var o=this;this.options=Ps({},BL,r||{}),this.options.inputTarget=this.options.inputTarget||n,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=n,this.input=Z_e(this),this.touchAction=new kL(this,this.options.touchAction),HL(this,!0),Ii(this.options.recognizers,function(i){var a=o.add(new i[0](i[1]));i[2]&&a.recognizeWith(i[2]),i[3]&&a.requireFailure(i[3])},this)}var e=t.prototype;return e.set=function(n){return Ps(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},e.stop=function(n){this.session.stopped=n?WL:nEe},e.recognize=function(n){var r=this.session;if(!r.stopped){this.touchAction.preventDefaults(n);var o,i=this.recognizers,a=r.curRecognizer;(!a||a&&a.state&Ri)&&(r.curRecognizer=null,a=null);for(var s=0;s\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,r,i),t.apply(this,arguments)}}var qL=UL(function(t,e,n){for(var r=Object.keys(e),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function hEe(t,e){var n;if(t){if(typeof t=="string")return GL(t,e);var r=yn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GL(t,e)}}function GL(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n>>0,o-=t,o*=t,t=o>>>0,o-=t,t+=o*4294967296}return(t>>>0)*23283064365386963e-26}}function vEe(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}var i_=typeof window<"u"?window.Hammer||dEe:function(){return vEe()};function Ko(t){var e=this,n;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){e._dom.overlay.parentNode.removeChild(e._dom.overlay)});var r=i_(this._dom.overlay);r.on("tap",Y(n=this._onTapOverlay).call(n,this)),this._cleanupQueue.push(function(){r.destroy()});var o=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];nt(o).call(o,function(i){r.on(i,function(a){a.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(i){mEe(i.target,t)||e.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",e._onClick)})),this._escListener=function(i){("key"in i?i.key==="Escape":i.keyCode===27)&&e.deactivate()}}SN(Ko.prototype),Ko.current=null,Ko.prototype.destroy=function(){var t,e;this.deactivate();var n=XL(Os(t=Pi(e=this._cleanupQueue).call(e,0)).call(t)),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;o()}}catch(i){n.e(i)}finally{n.f()}},Ko.prototype.activate=function(){Ko.current&&Ko.current.deactivate(),Ko.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},Ko.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},Ko.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};function mEe(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}var yEe=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,bEe=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,wEe=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,xEe=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Sa(t){if(t)for(;t.hasChildNodes()===!0;){var e=t.firstChild;e&&(Sa(e),t.removeChild(e))}}function Nu(t){return t instanceof String||typeof t=="string"}function QL(t){return Ze(t)==="object"&&t!==null}function Ns(t,e,n,r){var o=!1;r===!0&&(o=e[n]===null&&t[n]!==void 0),o?delete t[n]:t[n]=e[n]}function JL(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var r in t)if(e[r]!==void 0)if(e[r]===null||Ze(e[r])!=="object")Ns(t,e,r,n);else{var o=t[r],i=e[r];QL(o)&&QL(i)&&JL(o,i,n)}}function zu(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ge(n))throw new TypeError("Arrays are not supported by deepExtend");for(var o=0;o3&&arguments[3]!==void 0?arguments[3]:!1;if(Ge(n))throw new TypeError("Arrays are not supported by deepExtend");for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&!xa(t).call(t,o))if(n[o]&&n[o].constructor===Object)e[o]===void 0&&(e[o]={}),e[o].constructor===Object?at(e[o],n[o]):Ns(e,n,o,r);else if(Ge(n[o])){e[o]=[];for(var i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)||n===!0)if(Ze(e[o])==="object"&&e[o]!==null&&GF(e[o])===Object.prototype)t[o]===void 0?t[o]=at({},e[o],n):Ze(t[o])==="object"&&t[o]!==null&&GF(t[o])===Object.prototype?at(t[o],e[o],n):Ns(t,e,o,r);else if(Ge(e[o])){var i;t[o]=yn(i=e[o]).call(i)}else Ns(t,e,o,r);return t}function pm(t,e){var n;return RS(n=[]).call(n,Ho(t),[e])}function kEe(t){return yn(t).call(t)}function SEe(t){return t.getBoundingClientRect().left}function _Ee(t){return t.getBoundingClientRect().top}function Me(t,e){if(Ge(t))for(var n=t.length,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=function(f){return f!=null},i=function(f){return f!==null&&Ze(f)==="object"},a=function(f){for(var p in f)if(Object.prototype.hasOwnProperty.call(f,p))return!1;return!0};if(!i(t))throw new Error("Parameter mergeTarget must be an object");if(!i(e))throw new Error("Parameter options must be an object");if(!o(n))throw new Error("Parameter option must have a value");if(!i(r))throw new Error("Parameter globalOptions must be an object");var s=function(f,p,g){i(f[g])||(f[g]={});var b=p[g],m=f[g];for(var v in b)Object.prototype.hasOwnProperty.call(b,v)&&(m[v]=b[v])},l=e[n],u=i(r)&&!a(r),c=u?r[n]:void 0,h=c?c.enabled:void 0;if(l!==void 0){if(typeof l=="boolean"){i(t[n])||(t[n]={}),t[n].enabled=l;return}if(l===null&&!i(t[n]))if(o(c))t[n]=Ts(c);else return;if(i(l)){var d=!0;l.enabled!==void 0?d=l.enabled:h!==void 0&&(d=c.enabled),s(t,e,n),t[n].enabled=d}}}var OEe={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function Ea(t,e){var n;Ge(e)||(e=[e]);var r=XL(t),o;try{for(r.s();!(o=r.n()).done;){var i=o.value;if(i){n=i[e[0]];for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:1;J(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Z(t,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(e){if(typeof e=="string")return TEe[e]}},{key:"setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e!=="none"){var r,o=this._isColorString(e);if(o!==void 0&&(e=o),Nu(e)===!0){if(tB(e)===!0){var i=e.substr(4).substr(0,e.length-5).split(",");r={r:i[0],g:i[1],b:i[2],a:1}}else if(CEe(e)===!0){var a=e.substr(5).substr(0,e.length-6).split(",");r={r:a[0],g:a[1],b:a[2],a:a[3]}}else if(eB(e)===!0){var s=a_(e);r={r:s.r,g:s.g,b:s.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var l=e.a!==void 0?e.a:"1.0";r={r:e.r,g:e.g,b:e.b,a:l}}if(r===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+mh(e));this._setColor(r,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n===!0&&(this.previousColor=Vt({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Vo(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n===!0&&(this.initialColor=Vt({},e)),this.color=e;var r=Ih(e.r,e.g,e.b),o=2*Math.PI,i=this.r*r.s,a=this.centerCoordinates.x+i*Math.sin(o*r.h),s=this.centerCoordinates.y+i*Math.cos(o*r.h);this.colorPickerSelector.style.left=a-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var n=Ih(this.color.r,this.color.g,this.color.b);n.v=e/100;var r=gm(n.h,n.s,n.v);r.a=this.color.a,this.color=r,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=Ih(e.r,e.g,e.b),r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,o,i),r.putImageData(this.hueCircle,0,0),r.fillStyle="rgba(0,0,0,"+(1-n.v)+")",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),yh(r).call(r),this.brightnessRange.value=100*n.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,n,r,o;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var a=document.createElement("DIV");a.style.color="red",a.style.fontWeight="bold",a.style.padding="10px",a.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(a)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=Y(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=Y(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Y(r=this._save).call(r,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Y(o=this._loadLast).call(o,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new i_(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(n){n.isFirst&&e._moveSelector(n)}),this.hammer.on("tap",function(n){e._moveSelector(n)}),this.hammer.on("panstart",function(n){e._moveSelector(n)}),this.hammer.on("panmove",function(n){e._moveSelector(n)}),this.hammer.on("panend",function(n){e._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,n,r);var o,i,a,s;this.centerCoordinates={x:n*.5,y:r*.5},this.r=.49*n;var l=2*Math.PI/360,u=1/360,c=1/this.r,h;for(a=0;a<360;a++)for(s=0;s3&&arguments[3]!==void 0?arguments[3]:1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};J(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=i,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Vt(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new PEe(o),this.wrapper=void 0}return Z(t,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof e=="string")this.options.filter=e;else if(Ge(e))this.options.filter=e.join();else if(Ze(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),lr(e)!==void 0&&(this.options.filter=lr(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(n=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,n=e):typeof e=="function"&&(this.options.filter=e,n=!0);lr(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=lr(this.options),n=0,r=!1;for(var o in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,o)&&(this.allowCreation=!1,r=!1,typeof e=="function"?(r=e(o,[]),r=r||this._handleObject(this.configureOptions[o],[o],!0)):(e===!0||$e(e).call(e,o)!==-1)&&(r=!0),r!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),n++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e1?r-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:!1,o=document.createElement("div");if(o.className="vis-configuration vis-config-label vis-config-s"+n.length,r===!0){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(u_("i","b",e))}else o.innerText=e+":";return o}},{key:"_makeDropdown",value:function(e,n,r){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var i=0;n!==void 0&&$e(e).call(e,n)!==-1&&(i=$e(e).call(e,n));for(var a=0;aa&&a!==1&&(l.max=Math.ceil(n*h),c=l.max,u="range increased"),l.value=n}else l.value=o;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=l.value;var f=this;l.onchange=function(){d.value=this.value,f._update(Number(this.value),r)},l.oninput=function(){d.value=this.value};var p=this._makeLabel(r[r.length-1],r),g=this._makeItem(r,p,l,d);u!==""&&this.popupHistory[g]!==c&&(this.popupHistory[g]=c,this._setupPopup(u,g))}},{key:"_makeButton",value:function(){var e=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerText="generate options",n.onclick=function(){e._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(n)}}},{key:"_setupPopup",value:function(e,n){var r=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=!1,i=lr(this.options),a=!1;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){o=!0;var l=e[s],u=pm(n,s);if(typeof i=="function"&&(o=i(s,n),o===!1&&!Ge(l)&&typeof l!="string"&&typeof l!="boolean"&&l instanceof Object&&(this.allowCreation=!1,o=this._handleObject(l,u,!0),this.allowCreation=r===!1)),o!==!1){a=!0;var c=this._getValue(u);if(Ge(l))this._handleArray(l,c,u);else if(typeof l=="string")this._makeTextInput(l,c,u);else if(typeof l=="boolean")this._makeCheckbox(l,c,u);else if(l instanceof Object){if(!this.hideOption(n,s,this.moduleOptions))if(l.enabled!==void 0){var h=pm(u,"enabled"),d=this._getValue(h);if(d===!0){var f=this._makeLabel(s,u,!0);this._makeItem(u,f),a=this._handleObject(l,u)||a}else this._makeCheckbox(l,d,u)}else{var p=this._makeLabel(s,u,!0);this._makeItem(u,p),a=this._handleObject(l,u)||a}}else console.error("dont know how to handle",l,s,u)}}return a}},{key:"_handleArray",value:function(e,n,r){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,n,r),e[1]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="string"?(this._makeDropdown(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="number"&&(this._makeRange(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:Number(n)}))}},{key:"_update",value:function(e,n){var r=this._constructOptions(e,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",r),this.initialized=!0,this.parent.setOptions(r)}},{key:"_constructOptions",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r;e=e==="true"?!0:e,e=e==="false"?!1:e;for(var i=0;ii-this.padding&&(l=!0),l?a=this.x-r:a=this.x,u?s=this.y-n:s=this.y}else s=this.y-n,s+n+this.padding>o&&(s=o-n-this.padding),si&&(a=i-r-this.padding),ai.distance?l=" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(i.path,i.closestMatch,""):o.distance<=a?l='. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):l=". Did you mean one of these: "+t.print(Mt(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+l,c_),Rh=!0}},{key:"findInOptions",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=1e9,a="",s=[],l=e.toLowerCase(),u=void 0;for(var c in n){var h=void 0;if(n[c].__type__!==void 0&&o===!0){var d=t.findInOptions(e,n[c],pm(r,c));i>d.distance&&(a=d.closestMatch,s=d.path,i=d.distance,u=d.indexMatch)}else{var f;$e(f=c.toLowerCase()).call(f,l)!==-1&&(u=c),h=t.levenshteinDistance(e,c),i>h&&(a=c,s=kEe(r),i=h)}}return{closestMatch:a,path:s,distance:i,indexMatch:u}}},{key:"printLocation",value:function(e,n){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: -`,o=` - -`+r+`options = { -`,i=0;i":!0,"--":!0},Ca="",Lu=0,Oe="",ye="",cr=Bn.NULL;function FEe(){Lu=0,Oe=Ca.charAt(0)}function cn(){Lu++,Oe=Ca.charAt(Lu)}function Bu(){return Ca.charAt(Lu+1)}function aB(t){var e=t.charCodeAt(0);return e<47?e===35||e===46:e<59?e>47:e<91?e>64:e<96?e===95:e<123?e>96:!1}function Oa(t,e){if(t||(t={}),e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function LEe(t,e,n){for(var r=e.split("."),o=t;r.length;){var i=r.shift();r.length?(o[i]||(o[i]={}),o=o[i]):o[i]=n}}function sB(t,e){for(var n,r,o=null,i=[t],a=t;a.parent;)i.push(a.parent),a=a.parent;if(a.nodes){for(n=0,r=a.nodes.length;n=0;n--){var s,l=i[n];l.nodes||(l.nodes=[]),$e(s=l.nodes).call(s,o)===-1&&l.nodes.push(o)}e.attr&&(o.attr=Oa(o.attr,e.attr))}function BEe(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var n=Oa({},t.edge);e.attr=Oa(n,e.attr)}}function lB(t,e,n,r,o){var i={from:e,to:n,type:r};return t.edge&&(i.attr=Oa({},t.edge)),i.attr=Oa(i.attr||{},o),o!=null&&o.hasOwnProperty("arrows")&&o.arrows!=null&&(i.arrows={to:{enabled:!0,type:o.arrows.type}},o.arrows=null),i}function st(){for(cr=Bn.NULL,ye="";Oe===" "||Oe===" "||Oe===` -`||Oe==="\r";)cn();do{var t=!1;if(Oe==="#"){for(var e=Lu-1;Ca.charAt(e)===" "||Ca.charAt(e)===" ";)e--;if(Ca.charAt(e)===` -`||Ca.charAt(e)===""){for(;Oe!=""&&Oe!=` -`;)cn();t=!0}}if(Oe==="/"&&Bu()==="/"){for(;Oe!=""&&Oe!=` -`;)cn();t=!0}if(Oe==="/"&&Bu()==="*"){for(;Oe!="";)if(Oe==="*"&&Bu()==="/"){cn(),cn();break}else cn();t=!0}for(;Oe===" "||Oe===" "||Oe===` -`||Oe==="\r";)cn()}while(t);if(Oe===""){cr=Bn.DELIMITER;return}var n=Oe+Bu();if(iB[n]){cr=Bn.DELIMITER,ye=n,cn(),cn();return}if(iB[Oe]){cr=Bn.DELIMITER,ye=Oe,cn();return}if(aB(Oe)||Oe==="-"){for(ye+=Oe,cn();aB(Oe);)ye+=Oe,cn();ye==="false"?ye=!1:ye==="true"?ye=!0:isNaN(Number(ye))||(ye=Number(ye)),cr=Bn.IDENTIFIER;return}if(Oe==='"'){for(cn();Oe!=""&&(Oe!='"'||Oe==='"'&&Bu()==='"');)Oe==='"'?(ye+=Oe,cn()):Oe==="\\"&&Bu()==="n"?(ye+=` -`,cn()):ye+=Oe,cn();if(Oe!='"')throw $n('End of string " expected');cn(),cr=Bn.IDENTIFIER;return}for(cr=Bn.UNKNOWN;Oe!="";)ye+=Oe,cn();throw new SyntaxError('Syntax error in part "'+hB(ye,30)+'"')}function $Ee(){var t={};if(FEe(),st(),ye==="strict"&&(t.strict=!0,st()),(ye==="graph"||ye==="digraph")&&(t.type=ye,st()),cr===Bn.IDENTIFIER&&(t.id=ye,st()),ye!="{")throw $n("Angle bracket { expected");if(st(),uB(t),ye!="}")throw $n("Angle bracket } expected");if(st(),ye!=="")throw $n("End of file expected");return st(),delete t.node,delete t.edge,delete t.graph,t}function uB(t){for(;ye!==""&&ye!="}";)WEe(t),ye===";"&&st()}function WEe(t){var e=cB(t);if(e){dB(t,e);return}var n=HEe(t);if(!n){if(cr!=Bn.IDENTIFIER)throw $n("Identifier expected");var r=ye;if(st(),ye==="="){if(st(),cr!=Bn.IDENTIFIER)throw $n("Identifier expected");t[r]=ye,st()}else VEe(t,r)}}function cB(t){var e=null;if(ye==="subgraph"&&(e={},e.type="subgraph",st(),cr===Bn.IDENTIFIER&&(e.id=ye,st())),ye==="{"){if(st(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,uB(e),ye!="}")throw $n("Angle bracket } expected");st(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function HEe(t){return ye==="node"?(st(),t.node=Ah(),"node"):ye==="edge"?(st(),t.edge=Ah(),"edge"):ye==="graph"?(st(),t.graph=Ah(),"graph"):null}function VEe(t,e){var n={id:e},r=Ah();r&&(n.attr=r),sB(t,n),dB(t,e)}function dB(t,e){for(;ye==="->"||ye==="--";){var n,r=ye;st();var o=cB(t);if(o)n=o;else{if(cr!=Bn.IDENTIFIER)throw $n("Identifier or subgraph expected");n=ye,sB(t,{id:n}),st()}var i=Ah(),a=lB(t,e,n,r,i);BEe(t,a),e=n}}function Ah(){for(var t,e=null,n={dashed:!0,solid:!1,dotted:[1,5]},r={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},o=new Array,i=new Array;ye==="[";){for(st(),e={};ye!==""&&ye!="]";){if(cr!=Bn.IDENTIFIER)throw $n("Attribute name expected");var a=ye;if(st(),ye!="=")throw $n("Equal sign = expected");if(st(),cr!=Bn.IDENTIFIER)throw $n("Attribute value expected");var s=ye;a==="style"&&(s=n[s]);var l;a==="arrowhead"&&(l=r[s],a="arrows",s={to:{enabled:!0,type:l}}),a==="arrowtail"&&(l=r[s],a="arrows",s={from:{enabled:!0,type:l}}),o.push({attr:e,name:a,value:s}),i.push(a),st(),ye==","&&st()}if(ye!="]")throw $n("Bracket ] expected");st()}if(xa(i).call(i,"dir")){var u={};for(u.arrows={},t=0;t"&&(s.arrows="to"),s};nt(o=e.edges).call(o,function(a){var s,l;if(a.from instanceof Object?s=a.from.nodes:s={id:a.from},a.to instanceof Object?l=a.to.nodes:l={id:a.to},a.from instanceof Object&&a.from.edges){var u;nt(u=a.from.edges).call(u,function(h){var d=i(h);n.edges.push(d)})}if(UEe(s,l,function(h,d){var f=lB(n,h.id,d.id,a.type,a.attr),p=i(f);n.edges.push(p)}),a.to instanceof Object&&a.to.edges){var c;nt(c=a.to.edges).call(c,function(h){var d=i(h);n.edges.push(d)})}})}return e.attr&&(n.options=e.attr),n}function KEe(t,e){var n,r={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};e!=null&&(e.fixed!=null&&(r.nodes.fixed=e.fixed),e.parseColor!=null&&(r.nodes.parseColor=e.parseColor),e.inheritColor!=null&&(r.edges.inheritColor=e.inheritColor));var o=t.edges,i=Tu(o).call(o,function(s){var l={from:s.source,id:s.id,to:s.target};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.type==="Directed"&&(l.arrows="to"),s.color&&r.edges.inheritColor===!1&&(l.color=s.color),l}),a=Tu(n=t.nodes).call(n,function(s){var l={id:s.id,fixed:r.nodes.fixed&&s.x!=null&&s.y!=null};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.size!=null&&(l.size=s.size),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.title!=null&&(l.title=s.title),s.x!=null&&(l.x=s.x),s.y!=null&&(l.y=s.y),s.color!=null&&(r.nodes.parseColor===!0?l.color=s.color:l.color={background:s.color,border:s.color,highlight:{background:s.color,border:s.color},hover:{background:s.color,border:s.color}}),l});return{nodes:a,edges:i}}var YEe={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},XEe={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzuf\xFCgen",addNode:"Knoten hinzuf\xFCgen",back:"Zur\xFCck",close:"Schlie\xDFen",createEdgeError:"Es ist nicht m\xF6glich, Kanten mit Clustern zu verbinden.",del:"L\xF6sche Auswahl",deleteClusterError:"Cluster k\xF6nnen nicht gel\xF6scht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster k\xF6nnen nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},GEe={addDescription:"Haga clic en un lugar vac\xEDo para colocar un nuevo nodo.",addEdge:"A\xF1adir arista",addNode:"A\xF1adir nodo",back:"Atr\xE1s",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selecci\xF3n",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},QEe={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},JEe={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},ZEe={addDescription:"Clique em um espa\xE7o em branco para adicionar um novo n\xF3",addEdge:"Adicionar aresta",addNode:"Adicionar n\xF3",back:"Voltar",close:"Fechar",createEdgeError:"N\xE3o foi poss\xEDvel linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters n\xE3o puderam ser removidos.",edgeDescription:"Clique em um n\xF3 e arraste a aresta at\xE9 outro n\xF3 para conect\xE1-los",edit:"Editar",editClusterError:"Clusters n\xE3o puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um n\xF3 para conect\xE1-los",editNode:"Editar n\xF3"},eCe={addDescription:"\u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u0432 \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u043E\u0435 \u043C\u0435\u0441\u0442\u043E, \u0447\u0442\u043E\u0431\u044B \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0443\u0437\u0435\u043B.",addEdge:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u0435\u0431\u0440\u043E",addNode:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0443\u0437\u0435\u043B",back:"\u041D\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043A\u0440\u044B\u0432\u0430\u0442\u044C",createEdgeError:"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C \u0440\u0435\u0431\u0440\u0430 \u0432 \u043A\u043B\u0430\u0441\u0442\u0435\u0440.",del:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435",deleteClusterError:"\u041A\u043B\u0430\u0441\u0442\u0435\u0440\u044B \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u0443\u0434\u0430\u043B\u0435\u043D\u044B",edgeDescription:"\u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u0443\u0437\u0435\u043B \u0438 \u043F\u0440\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0440\u0435\u0431\u0440\u043E \u043A \u0434\u0440\u0443\u0433\u043E\u043C\u0443 \u0443\u0437\u043B\u0443, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C \u0438\u0445.",edit:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",editClusterError:"\u041A\u043B\u0430\u0441\u0442\u0435\u0440\u044B \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B \u0434\u043B\u044F \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F.",editEdge:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0440\u0435\u0431\u0440\u043E",editEdgeDescription:"\u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u044B\u0435 \u0442\u043E\u0447\u043A\u0438 \u0438 \u043F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0438\u0445 \u0432 \u0443\u0437\u0435\u043B, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F \u043A \u043D\u0435\u043C\u0443.",editNode:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0443\u0437\u0435\u043B"},tCe={addDescription:"\u5355\u51FB\u7A7A\u767D\u5904\u653E\u7F6E\u65B0\u8282\u70B9\u3002",addEdge:"\u6DFB\u52A0\u8FDE\u63A5\u7EBF",addNode:"\u6DFB\u52A0\u8282\u70B9",back:"\u8FD4\u56DE",close:"\u95DC\u9589",createEdgeError:"\u65E0\u6CD5\u5C06\u8FDE\u63A5\u7EBF\u8FDE\u63A5\u5230\u7FA4\u96C6\u3002",del:"\u5220\u9664\u9009\u5B9A",deleteClusterError:"\u65E0\u6CD5\u5220\u9664\u7FA4\u96C6\u3002",edgeDescription:"\u5355\u51FB\u67D0\u4E2A\u8282\u70B9\u5E76\u5C06\u8BE5\u8FDE\u63A5\u7EBF\u62D6\u52A8\u5230\u53E6\u4E00\u4E2A\u8282\u70B9\u4EE5\u8FDE\u63A5\u5B83\u4EEC\u3002",edit:"\u7F16\u8F91",editClusterError:"\u65E0\u6CD5\u7F16\u8F91\u7FA4\u96C6\u3002",editEdge:"\u7F16\u8F91\u8FDE\u63A5\u7EBF",editEdgeDescription:"\u5355\u51FB\u63A7\u5236\u8282\u70B9\u5E76\u5C06\u5B83\u4EEC\u62D6\u5230\u8282\u70B9\u4E0A\u8FDE\u63A5\u3002",editNode:"\u7F16\u8F91\u8282\u70B9"},nCe={addDescription:"K\u043B\u0456\u043A\u043D\u0456\u0442\u044C \u043D\u0430 \u0432\u0456\u043B\u044C\u043D\u0435 \u043C\u0456\u0441\u0446\u0435, \u0449\u043E\u0431 \u0434\u043E\u0434\u0430\u0442\u0438 \u043D\u043E\u0432\u0438\u0439 \u0432\u0443\u0437\u043E\u043B.",addEdge:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u0440\u0430\u0439",addNode:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0432\u0443\u0437\u043E\u043B",back:"\u041D\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",createEdgeError:"\u041D\u0435 \u043C\u043E\u0436\u043B\u0438\u0432\u043E \u043E\u0431'\u0454\u0434\u043D\u0430\u0442\u0438 \u043A\u0440\u0430\u0457 \u0432 \u0433\u0440\u0443\u043F\u0443.",del:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043E\u0431\u0440\u0430\u043D\u0435",deleteClusterError:"\u0413\u0440\u0443\u043F\u0438 \u043D\u0435 \u043C\u043E\u0436\u0443\u0442\u044C \u0431\u0443\u0442\u0438 \u0432\u0438\u0434\u0430\u043B\u0435\u043D\u0456.",edgeDescription:"\u041A\u043B\u0456\u043A\u043D\u0456\u0442\u044C \u043D\u0430 \u0432\u0443\u0437\u043E\u043B \u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0456\u0442\u044C \u043A\u0440\u0430\u0439 \u0434\u043E \u0456\u043D\u0448\u043E\u0433\u043E \u0432\u0443\u0437\u043B\u0430, \u0449\u043E\u0431 \u0457\u0445 \u0437'\u0454\u0434\u043D\u0430\u0442\u0438.",edit:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438",editClusterError:"\u0413\u0440\u0443\u043F\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0456 \u0434\u043B\u044F \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",editEdge:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u043A\u0440\u0430\u0439",editEdgeDescription:"\u041A\u043B\u0456\u043A\u043D\u0456\u0442\u044C \u043D\u0430 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u0456 \u0442\u043E\u0447\u043A\u0438 \u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0456\u0442\u044C \u0457\u0445 \u0443 \u0432\u0443\u0437\u043E\u043B, \u0449\u043E\u0431 \u043F\u0456\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0438\u0441\u044F \u0434\u043E \u043D\u044C\u043E\u0433\u043E.",editNode:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0432\u0443\u0437\u043E\u043B"},rCe={addDescription:"Cliquez dans un endroit vide pour placer un n\u0153ud.",addEdge:"Ajouter un lien",addNode:"Ajouter un n\u0153ud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de cr\xE9er un lien vers un cluster.",del:"Effacer la s\xE9lection",deleteClusterError:"Les clusters ne peuvent pas \xEAtre effac\xE9s.",edgeDescription:"Cliquez sur un n\u0153ud et glissez le lien vers un autre n\u0153ud pour les connecter.",edit:"\xC9diter",editClusterError:"Les clusters ne peuvent pas \xEAtre \xE9dit\xE9s.",editEdge:"\xC9diter le lien",editEdgeDescription:"Cliquez sur les points de contr\xF4le et glissez-les pour connecter un n\u0153ud.",editNode:"\xC9diter le n\u0153ud"},oCe={addDescription:"Kluknut\xEDm do pr\xE1zdn\xE9ho prostoru m\u016F\u017Eete p\u0159idat nov\xFD vrchol.",addEdge:"P\u0159idat hranu",addNode:"P\u0159idat vrchol",back:"Zp\u011Bt",close:"Zav\u0159\xEDt",createEdgeError:"Nelze p\u0159ipojit hranu ke shluku.",del:"Smazat v\xFDb\u011Br",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"P\u0159eta\u017Een\xEDm z jednoho vrcholu do druh\xE9ho m\u016F\u017Eete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"P\u0159eta\u017Een\xEDm kontroln\xEDho vrcholu hrany ji m\u016F\u017Eete p\u0159ipojit k jin\xE9mu vrcholu.",editNode:"Upravit vrchol"},iCe=Object.freeze({__proto__:null,cn:tCe,cs:oCe,de:XEe,en:YEe,es:GEe,fr:rCe,it:QEe,nl:JEe,pt:ZEe,ru:eCe,uk:nCe});function aCe(t,e){try{var n=e.split(/[-_ /]/,2),r=Pt(n,2),o=r[0],i=r[1],a=o!=null?o.toLowerCase():null,s=i!=null?i.toUpperCase():null;if(a&&s){var l=a+"-"+s;if(Object.prototype.hasOwnProperty.call(t,l))return l;var u;console.warn(RS(u="Unknown variant ".concat(s," of language ")).call(u,a,"."))}if(a){var c=a;if(Object.prototype.hasOwnProperty.call(t,c))return c;console.warn("Unknown language ".concat(a))}return console.warn("Unknown locale ".concat(e,", falling back to English.")),"en"}catch(h){return console.error(h),console.warn("Unexpected error while normalizing locale ".concat(e,", falling back to English.")),"en"}}var sCe=function(){function t(){J(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return Z(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var e=this.image.width,n=this.image.height;this.width=e,this.height=n;var r=Math.floor(n/2),o=Math.floor(n/4),i=Math.floor(n/8),a=Math.floor(n/16),s=Math.floor(e/2),l=Math.floor(e/4),u=Math.floor(e/8),c=Math.floor(e/16);this.canvas.width=3*l,this.canvas.height=r,this.coordinates=[[0,0,s,r],[s,0,l,o],[s,o,u,i],[5*u,o,c,a]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var e=this.canvas.getContext("2d"),n=this.coordinates[0];e.drawImage(this.image,n[0],n[1],n[2],n[3]);for(var r=1;r2){n*=.5;for(var s=0;n>2&&s=this.NUM_ITERATIONS&&(s=this.NUM_ITERATIONS-1);var l=this.coordinates[s];e.drawImage(this.canvas,l[0],l[1],l[2],l[3],r,o,i,a)}else e.drawImage(this.image,r,o,i,a)}}]),t}(),lCe=function(){function t(e){J(this,t),this.images={},this.imageBroken={},this.callback=e}return Z(t,[{key:"_tryloadBrokenUrl",value:function(e,n,r){if(!(e===void 0||r===void 0)){if(n===void 0){console.warn("No broken url image defined");return}r.image.onerror=function(){console.error("Could not load brokenImage:",n)},r.image.src=n}}},{key:"_redrawWithImage",value:function(e){this.callback&&this.callback(e)}},{key:"load",value:function(e,n){var r=this,o=this.images[e];if(o)return o;var i=new sCe;return this.images[e]=i,i.image.onload=function(){r._fixImageCoordinates(i.image),i.init(),r._redrawWithImage(i)},i.image.onerror=function(){console.error("Could not load image:",e),r._tryloadBrokenUrl(e,n,i)},i.image.src=e,i}},{key:"_fixImageCoordinates",value:function(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}]),t}(),pB={exports:{}},uCe=Le,cCe=uCe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),dCe=Le,hCe=an,fCe=Ci,gB=cCe,vm=Object.isExtensible,pCe=dCe(function(){vm(1)}),gCe=pCe||gB?function(t){return!hCe(t)||gB&&fCe(t)==="ArrayBuffer"?!1:vm?vm(t):!0}:vm,vCe=Le,vB=!vCe(function(){return Object.isExtensible(Object.preventExtensions({}))}),mCe=me,yCe=He,bCe=rh,wCe=an,f_=sn,xCe=Er.f,mB=uh,kCe=Kv,p_=gCe,SCe=Cv,_Ce=vB,yB=!1,Ai=SCe("meta"),ECe=0,g_=function(t){xCe(t,Ai,{value:{objectID:"O"+ECe++,weakData:{}}})},CCe=function(t,e){if(!wCe(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!f_(t,Ai)){if(!p_(t))return"F";if(!e)return"E";g_(t)}return t[Ai].objectID},OCe=function(t,e){if(!f_(t,Ai)){if(!p_(t))return!0;if(!e)return!1;g_(t)}return t[Ai].weakData},TCe=function(t){return _Ce&&yB&&p_(t)&&!f_(t,Ai)&&g_(t),t},PCe=function(){MCe.enable=function(){},yB=!0;var t=mB.f,e=yCe([].splice),n={};n[Ai]=1,t(n).length&&(mB.f=function(r){for(var o=t(r),i=0,a=o.length;ih;h++)if(f=m(t[h]),f&&bB(xB,f))return f;return new ym(!1)}u=zCe(t,c)}for(p=i?t.next:u.next;!(g=RCe(p,u)).done;){try{f=m(g.value)}catch(v){wB(u,"throw",v)}if(typeof f=="object"&&f&&bB(xB,f))return f}return new ym(!1)},BCe=Nt,$Ce=TypeError,m_=function(t,e){if(BCe(e,t))return t;throw new $Ce("Incorrect invocation")},WCe=me,HCe=Ct,VCe=mm,UCe=Le,qCe=vu,KCe=v_,YCe=m_,XCe=rn,GCe=an,QCe=du,JCe=ku,ZCe=Er.f,eOe=ya.forEach,tOe=on,kB=xs,nOe=kB.set,rOe=kB.getterFor,y_=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=HCe[t],s=a&&a.prototype,l={},u;if(!tOe||!XCe(a)||!(o||s.forEach&&!UCe(function(){new a().entries().next()})))u=n.getConstructor(e,t,r,i),VCe.enable();else{u=e(function(d,f){nOe(YCe(d,c),{type:t,collection:new a}),QCe(f)||KCe(f,d[i],{that:d,AS_ENTRIES:r})});var c=u.prototype,h=rOe(t);eOe(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(d){var f=d==="add"||d==="set";d in s&&!(o&&d==="clear")&&qCe(c,d,function(p,g){var b=h(this).collection;if(!f&&o&&!GCe(p))return d==="get"?void 0:!1;var m=b[d](p===0?0:p,g);return f?this:m})}),o||ZCe(c,"size",{configurable:!0,get:function(){return h(this).collection.size}})}return JCe(u,t,!1,!0),l[t]=u,WCe({global:!0,forced:!0},l),o||n.setStrong(u,t,r),u},oOe=ah,b_=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:oOe(t,r,e[r],n);return t},iOe=Wr,aOe=fS,sOe=Ot,lOe=on,SB=sOe("species"),uOe=function(t){var e=iOe(t);lOe&&e&&!e[SB]&&aOe(e,SB,{configurable:!0,get:function(){return this}})},cOe=xu,dOe=fS,_B=b_,hOe=th,fOe=m_,pOe=du,gOe=v_,vOe=iS,EB=aS,mOe=uOe,Dh=on,CB=mm.fastKey,OB=xs,TB=OB.set,w_=OB.getterFor,PB={getConstructor:function(t,e,n,r){var o=t(function(u,c){fOe(u,i),TB(u,{type:e,index:cOe(null),first:void 0,last:void 0,size:0}),Dh||(u.size=0),pOe(c)||gOe(c,u[r],{that:u,AS_ENTRIES:n})}),i=o.prototype,a=w_(e),s=function(u,c,h){var d=a(u),f=l(u,c),p,g;return f?f.value=h:(d.last=f={index:g=CB(c,!0),key:c,value:h,previous:p=d.last,next:void 0,removed:!1},d.first||(d.first=f),p&&(p.next=f),Dh?d.size++:u.size++,g!=="F"&&(d.index[g]=f)),u},l=function(u,c){var h=a(u),d=CB(c),f;if(d!=="F")return h.index[d];for(f=h.first;f;f=f.next)if(f.key===c)return f};return _B(i,{clear:function(){for(var u=this,c=a(u),h=c.index,d=c.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete h[d.index],d=d.next;c.first=c.last=void 0,Dh?c.size=0:u.size=0},delete:function(u){var c=this,h=a(c),d=l(c,u);if(d){var f=d.next,p=d.previous;delete h.index[d.index],d.removed=!0,p&&(p.next=f),f&&(f.previous=p),h.first===d&&(h.first=f),h.last===d&&(h.last=p),Dh?h.size--:c.size--}return!!d},forEach:function(u){for(var c=a(this),h=hOe(u,arguments.length>1?arguments[1]:void 0),d;d=d?d.next:c.first;)for(h(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),_B(i,n?{get:function(u){var c=l(this,u);return c&&c.value},set:function(u,c){return s(this,u===0?0:u,c)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),Dh&&dOe(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=w_(e),i=w_(r);vOe(t,e,function(a,s){TB(this,{type:r,target:a,state:o(a),kind:s,last:void 0})},function(){for(var a=i(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,EB(void 0,!0)):EB(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},n?"entries":"values",!n,!0),mOe(e)}},yOe=y_,bOe=PB;yOe("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},bOe);var wOe=Be,xOe=wOe.Map,kOe=xOe,SOe=kOe,_Oe=SOe,MB=de(_Oe),EOe=function(){function t(){J(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Vt(this.options,this.defaultOptions)}return Z(t,[{key:"setOptions",value:function(e){var n=["useDefaultGroups"];if(e!==void 0){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&$e(n).call(n,r)===-1){var o=e[r];this.add(r,o)}}}},{key:"clear",value:function(){this._groups=new MB,this._groupNames=[]}},{key:"get",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this._groups.get(e);if(r===void 0&&n)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var o=this._groupIndex%this._groupNames.length;++this._groupIndex,r={},r.color=this._groups.get(this._groupNames[o]),this._groups.set(e,r)}else{var i=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,r={},r.color=this._defaultGroups[i],this._groups.set(e,r)}return r}},{key:"add",value:function(e,n){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,n),n}}]),t}(),COe=me;COe({target:"Number",stat:!0},{isNaN:function(t){return t!==t}});var OOe=Be,TOe=OOe.Number.isNaN,POe=TOe,MOe=POe,IOe=MOe,x_=de(IOe),ROe=Ct,AOe=ROe.isFinite,DOe=Number.isFinite||function(t){return typeof t=="number"&&AOe(t)},jOe=me,NOe=DOe;jOe({target:"Number",stat:!0},{isFinite:NOe});var zOe=Be,FOe=zOe.Number.isFinite,LOe=FOe,BOe=LOe,$Oe=BOe,zs=de($Oe),WOe=me,HOe=ya.some,VOe=Pu,UOe=VOe("some");WOe({target:"Array",proto:!0,forced:!UOe},{some:function(t){return HOe(this,t,arguments.length>1?arguments[1]:void 0)}});var qOe=ln,KOe=qOe("Array").some,YOe=Nt,XOe=KOe,k_=Array.prototype,GOe=function(t){var e=t.some;return t===k_||YOe(k_,t)&&e===k_.some?XOe:e},QOe=GOe,JOe=QOe,ZOe=JOe,eTe=de(ZOe),tTe=Be,nTe=tTe.Object.getOwnPropertySymbols,rTe=nTe,oTe=rTe,iTe=oTe,Ta=de(iTe),IB={exports:{}},aTe=me,sTe=Le,lTe=Bo,RB=cu.f,AB=on,uTe=!AB||sTe(function(){RB(1)});aTe({target:"Object",stat:!0,forced:uTe,sham:!AB},{getOwnPropertyDescriptor:function(t,e){return RB(lTe(t),e)}});var cTe=Be,DB=cTe.Object,dTe=IB.exports=function(t,e){return DB.getOwnPropertyDescriptor(t,e)};DB.getOwnPropertyDescriptor.sham&&(dTe.sham=!0);var hTe=IB.exports,fTe=hTe,jB=fTe,pTe=jB,Pa=de(pTe),gTe=me,vTe=on,mTe=Awe,yTe=Bo,bTe=cu,wTe=_u;gTe({target:"Object",stat:!0,sham:!vTe},{getOwnPropertyDescriptors:function(t){for(var e=yTe(t),n=bTe.f,r=mTe(e),o={},i=0,a,s;r.length>i;)s=n(e,a=r[i++]),s!==void 0&&wTe(o,a,s);return o}});var xTe=Be,kTe=xTe.Object.getOwnPropertyDescriptors,STe=kTe,_Te=STe,ETe=_Te,Ma=de(ETe),NB={exports:{}},CTe=me,OTe=on,zB=zv.f;CTe({target:"Object",stat:!0,forced:Object.defineProperties!==zB,sham:!OTe},{defineProperties:zB});var TTe=Be,FB=TTe.Object,PTe=NB.exports=function(t,e){return FB.defineProperties(t,e)};FB.defineProperties.sham&&(PTe.sham=!0);var MTe=NB.exports,ITe=MTe,RTe=ITe,ATe=RTe,bm=de(ATe),DTe=_z,wm=de(DTe);function xm(t,e,n){return e=MF(e),e in t?qv(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var LB=Ct,jTe=Le,NTe=He,zTe=$o,FTe=JF.trim,LTe=$S,BTe=NTe("".charAt),km=LB.parseFloat,BB=LB.Symbol,$B=BB&&BB.iterator,$Te=1/km(LTe+"-0")!==-1/0||$B&&!jTe(function(){km(Object($B))}),WTe=$Te?function(t){var e=FTe(zTe(t)),n=km(e);return n===0&&BTe(e,0)==="-"?-0:n}:km,HTe=me,WB=WTe;HTe({global:!0,forced:parseFloat!==WB},{parseFloat:WB});var VTe=Be,UTe=VTe.parseFloat,qTe=UTe,KTe=qTe,YTe=KTe,HB=de(YTe),XTe=me,GTe=Le,QTe=Kv.f,JTe=GTe(function(){return!Object.getOwnPropertyNames(1)});XTe({target:"Object",stat:!0,forced:JTe},{getOwnPropertyNames:QTe});var ZTe=Be,e2e=ZTe.Object,t2e=function(t){return e2e.getOwnPropertyNames(t)},n2e=t2e,r2e=n2e,o2e=r2e,i2e=de(o2e);function S_(t,e){var n=["node","edge","label"],r=!0,o=Ea(e,"chosen");if(typeof o=="boolean")r=o;else if(Ze(o)==="object"){if($e(n).call(n,t)===-1)throw new Error("choosify: subOption '"+t+"' should be one of '"+n.join("', '")+"'");var i=Ea(e,["chosen",t]);(typeof i=="boolean"||typeof i=="function")&&(r=i)}return r}function __(t,e,n){if(t.width<=0||t.height<=0)return!1;if(n!==void 0){var r={x:e.x-n.x,y:e.y-n.y};if(n.angle!==0){var o=-n.angle,i={x:Math.cos(o)*r.x-Math.sin(o)*r.y,y:Math.sin(o)*r.x+Math.cos(o)*r.y};e=i}else e=r}var a=t.x+t.width,s=t.y+t.width;return t.lefte.x&&t.tope.y}function Sm(t){return typeof t=="string"&&t!==""}function VB(t,e,n,r){var o=r.x,i=r.y;if(typeof r.distanceToBorder=="function"){var a=r.distanceToBorder(t,e),s=Math.sin(e)*a,l=Math.cos(e)*a;l===a?(o+=a,i=r.y):s===a?(o=r.x,i-=a):(o+=l,i-=s)}else r.shape.width>r.shape.height?(o=r.x+r.shape.width*.5,i=r.y-n):(o=r.x+n,i=r.y-r.shape.height*.5);return{x:o,y:i}}var a2e=ln,s2e=a2e("Array").values,l2e=s2e,u2e=l2e,c2e=ws,d2e=sn,h2e=Nt,f2e=u2e,E_=Array.prototype,p2e={DOMTokenList:!0,NodeList:!0},g2e=function(t){var e=t.values;return t===E_||h2e(E_,t)&&e===E_.values||d2e(p2e,c2e(t))?f2e:e},v2e=g2e,UB=de(v2e),m2e=function(){function t(e){J(this,t),this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}return Z(t,[{key:"_add",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});var o=n;(n===void 0||n==="")&&(o=" ");var i=this.measureText(o,r),a=Vt({},UB(i));a.text=n,a.width=i.width,a.mod=r,(n===void 0||n==="")&&(a.width=0),this.lines[e].blocks.push(a),this.lines[e].width+=a.width}},{key:"curWidth",value:function(){var e=this.lines[this.current];return e===void 0?0:e.width}},{key:"append",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n)}},{key:"newLine",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n),this.current++}},{key:"determineLineHeights",value:function(){for(var e=0;ee&&(e=o.width),n+=o.height}this.width=e,this.height=n}},{key:"removeEmptyBlocks",value:function(){for(var e=[],n=0;n"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},qB=function(){function t(e){J(this,t),this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return Z(t,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}},{key:"parseWS",value:function(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}},{key:"setTag",value:function(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}},{key:"unsetTag",value:function(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(e,n){return!this.mono&&!this[e]&&this.match(n)?(this.setTag(e),!0):!1}},{key:"match",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this.prepareRegExp(e),o=Pt(r,2),i=o[0],a=o[1],s=i.test(this.text.substr(this.position,a));return s&&n&&(this.position+=a-1),s}},{key:"parseEndTag",value:function(e,n,r){var o=this.mod()===e;return e==="mono"?o=o&&this.mono:o=o&&!this.mono,o&&this.match(n)?(r!==void 0?(this.position===this.text.length-1||this.match(r,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}},{key:"replace",value:function(e,n){return this.match(e)?(this.add(n),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(e){var n,r;if(e instanceof RegExp)r=e,n=1;else{var o=y2e[e];o!==void 0?r=o:r=new RegExp(e),n=e.length}return[r,n]}}]),t}(),b2e=function(){function t(e,n,r,o){var i=this;J(this,t),this.ctx=e,this.parent=n,this.selected=r,this.hover=o;var a=function(s,l){if(s===void 0)return 0;var u=i.parent.getFormattingValues(e,r,o,l),c=0;if(s!==""){var h=i.ctx.measureText(s);c=h.width}return{width:c,values:u}};this.lines=new m2e(a)}return Z(t,[{key:"process",value:function(e){if(!Sm(e))return this.lines.finalize();var n=this.parent.fontOptions;e=e.replace(/\r\n/g,` -`),e=e.replace(/\r/g,` -`);var r=String(e).split(` -`),o=r.length;if(n.multi)for(var i=0;i0)for(var s=0;s0)for(var f=0;f")||n.parseStartTag("ital","")||n.parseStartTag("mono","")||n.parseEndTag("bold","")||n.parseEndTag("ital","")||n.parseEndTag("mono",""))||r(o);i||n.add(o),n.position++}return n.emitBlock(),n.blocks}},{key:"splitMarkdownBlocks",value:function(e){for(var n=this,r=new qB(e),o=!0,i=function(l){return/\\/.test(l)?(r.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(e){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:"normal",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,n),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var o=e.split("\r");o.length>0;){var i=this.getLongestFit(o);if(i===0){var a=o[0],s=this.getLongestFitWord(a);this.lines.newLine(yn(a).call(a,0,s),n),o[0]=yn(a).call(a,s)}else{var l=i;o[i-1]===" "?i--:o[l]===" "&&l++;var u=yn(o).call(o,0,i).join("");i==o.length&&r?this.lines.append(u,n):this.lines.newLine(u,n),o=yn(o).call(o,l)}}}}]),t}(),jh=["bold","ital","boldital","mono"],KB=function(){function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;J(this,t),this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(n),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=r}return Z(t,[{key:"setOptions",value:function(e){if(this.elementOptions=e,this.initFontOptions(e.font),Sm(e.label)?this.labelDirty=!0:e.label=void 0,e.font!==void 0&&e.font!==null){if(typeof e.font=="string")this.baseSize=this.fontOptions.size;else if(Ze(e.font)==="object"){var n=e.font.size;n!==void 0&&(this.baseSize=n)}}}},{key:"initFontOptions",value:function(e){var n=this;if(Me(jh,function(r){n.fontOptions[r]={}}),t.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}Me(e,function(r,o){r!=null&&Ze(r)!=="object"&&(n.fontOptions[o]=r)})}},{key:"constrain",value:function(e){var n={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},r=Ea(e,"widthConstraint");if(typeof r=="number")n.maxWdt=Number(r),n.minWdt=Number(r);else if(Ze(r)==="object"){var o=Ea(e,["widthConstraint","maximum"]);typeof o=="number"&&(n.maxWdt=Number(o));var i=Ea(e,["widthConstraint","minimum"]);typeof i=="number"&&(n.minWdt=Number(i))}var a=Ea(e,"heightConstraint");if(typeof a=="number")n.minHgt=Number(a);else if(Ze(a)==="object"){var s=Ea(e,["heightConstraint","minimum"]);typeof s=="number"&&(n.minHgt=Number(s));var l=Ea(e,["heightConstraint","valign"]);typeof l=="string"&&(l==="top"||l==="bottom")&&(n.valign=l)}return n}},{key:"update",value:function(e,n){this.setOptions(e,!0),this.propagateFonts(n),at(this.fontOptions,this.constrain(n)),this.fontOptions.chooser=S_("label",n)}},{key:"adjustSizes",value:function(e){var n=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=n,this.fontOptions.minWdt-=n);var r=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=r)}},{key:"addFontOptionsToPile",value:function(e,n){for(var r=0;r5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var s=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&s=this.elementOptions.scaling.label.maxVisible&&(s=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,o,i,n,r,a),this._drawBackground(e),this._drawText(e,n,this.size.yLine,a,s))}}},{key:"_drawBackground",value:function(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;var n=this.getSize();e.fillRect(n.left,n.top,n.width,n.height)}}},{key:"_drawText",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",i=arguments.length>4?arguments[4]:void 0,a=this._setAlignment(e,n,r,o),s=Pt(a,2);n=s[0],r=s[1],e.textAlign="left",n=n-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(r-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(r+=(this.size.height-this.size.labelHeight)/2));for(var l=0;l0&&(e.lineWidth=d.strokeWidth,e.strokeStyle=b,e.lineJoin="round"),e.fillStyle=g,d.strokeWidth>0&&e.strokeText(d.text,n+c,r+d.vadjust),e.fillText(d.text,n+c,r+d.vadjust),c+=d.width}r+=u.height}}}},{key:"_setAlignment",value:function(e,n,r,o){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){n=0,r=0;var i=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",r-=2*i):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",r+=2*i):e.textBaseline="middle"}else e.textBaseline=o;return[n,r]}},{key:"_getColor",value:function(e,n,r){var o=e||"#000000",i=r||"#ffffff";if(n<=this.elementOptions.scaling.label.drawThreshold){var a=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-n)));o=qr(o,a),i=qr(i,a)}return[o,i]}},{key:"getTextSize",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(e,n,r),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var e=2,n=this.size.left,r=this.size.top-.5*e;if(this.isEdgeLabel){var o=-this.size.width*.5;switch(this.fontOptions.align){case"middle":n=o,r=-this.size.height*.5;break;case"top":n=o,r=-(this.size.height+e);break;case"bottom":n=o,r=e;break}}var i={left:n,top:r,width:this.size.width,height:this.size.height};return i}},{key:"calculateLabelSize",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,n,r),this.size.left=o-this.size.width*.5,this.size.top=i-this.size.height*.5,this.size.yLine=i+(1-this.lineCount)*.5*this.fontOptions.size,a==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(e,n,r,o){var i=function(l,u,c){return u==="normal"?c==="mod"?"":l[c]:l[u][c]!==void 0?l[u][c]:l[c]},a={color:i(this.fontOptions,o,"color"),size:i(this.fontOptions,o,"size"),face:i(this.fontOptions,o,"face"),mod:i(this.fontOptions,o,"mod"),vadjust:i(this.fontOptions,o,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(n||r)&&(o==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?a.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(a,this.elementOptions.id,n,r));var s="";return a.mod!==void 0&&a.mod!==""&&(s+=a.mod+" "),s+=a.size+"px "+a.face,e.font=s.replace(/"/g,""),a.font=e.font,a.height=a.size,a}},{key:"differentState",value:function(e,n){return e!==this.selectedState||n!==this.hoverState}},{key:"_processLabelText",value:function(e,n,r,o){var i=new b2e(e,this,n,r);return i.process(o)}},{key:"_processLabel",value:function(e,n,r){if(!(this.labelDirty===!1&&!this.differentState(n,r))){var o=this._processLabelText(e,n,r,this.elementOptions.label);this.fontOptions.minWdt>0&&o.width0&&o.height0&&(this.enableBorderDashes(e,n),e.stroke(),this.disableBorderDashes(e,n)),e.restore()}},{key:"performFill",value:function(e,n){e.save(),e.fillStyle=n.color,this.enableShadow(e,n),yh(e).call(e),this.disableShadow(e,n),e.restore(),this.performStroke(e,n)}},{key:"_addBoundingBoxMargin",value:function(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}},{key:"_updateBoundingBox",value:function(e,n,r,o,i){r!==void 0&&this.resize(r,o,i),this.left=e-this.width/2,this.top=n-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(e,n,r,o,i){this._updateBoundingBox(e,n,r,o,i)}},{key:"getDimensionsFromLabel",value:function(e,n,r){this.textSize=this.labelModule.getTextSize(e,n,r);var o=this.textSize.width,i=this.textSize.height,a=14;return o===0&&(o=a,i=a),{width:o,height:i}}}]),t}();function cPe(t){var e=dPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function dPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var hPe=function(t){Ve(n,t);var e=cPe(n);function n(r,o,i){var a;return J(this,n),a=e.call(this,r,o,i),a._setMargins(i),a}return Z(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,i)){var a=this.getDimensionsFromLabel(r,o,i);this.width=a.width+this.margin.right+this.margin.left,this.height=a.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s),this.left=o-this.width/2,this.top=i-this.height/2,this.initContextForDraw(r,l),yN(r,this.left,this.top,this.width,this.height,l.borderRadius),this.performFill(r,l),this.updateBoundingBox(o,i,r,a,s),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,a,s)}},{key:"updateBoundingBox",value:function(r,o,i,a,s){this._updateBoundingBox(r,o,i,a,s);var l=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(l)}},{key:"distanceToBorder",value:function(r,o){r&&this.resize(r);var i=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(o)),Math.abs(this.height/2/Math.sin(o)))+i}}]),n}(Fs);function fPe(t){var e=pPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function pPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var I_=function(t){Ve(n,t);var e=fPe(n);function n(r,o,i){var a;return J(this,n),a=e.call(this,r,o,i),a.labelOffset=0,a.selected=!1,a}return Z(n,[{key:"setOptions",value:function(r,o,i){this.options=r,o===void 0&&i===void 0||this.setImages(o,i)}},{key:"setImages",value:function(r,o){o&&this.selected?(this.imageObj=o,this.imageObjAlt=r):(this.imageObj=r,this.imageObjAlt=o)}},{key:"switchImages",value:function(r){var o=r&&!this.selected||!r&&this.selected;if(this.selected=r,this.imageObjAlt!==void 0&&o){var i=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=i}}},{key:"_getImagePadding",value:function(){var r={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var o=this.options.imagePadding;Ze(o)=="object"?(r.top=o.top,r.right=o.right,r.bottom=o.bottom,r.left=o.left):(r.top=o,r.right=o,r.bottom=o,r.left=o)}return r}},{key:"_resizeImage",value:function(){var r,o;if(this.options.shapeProperties.useImageSize===!1){var i=1,a=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?i=this.imageObj.width/this.imageObj.height:a=this.imageObj.height/this.imageObj.width),r=this.options.size*2*i,o=this.options.size*2*a}else{var s=this._getImagePadding();r=this.imageObj.width+s.left+s.right,o=this.imageObj.height+s.top+s.bottom}this.width=r,this.height=o,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(r,o,i,a){this.initContextForDraw(r,a),Wk(r,o,i,a.size),this.performFill(r,a)}},{key:"_drawImageAtPosition",value:function(r,o){if(this.imageObj.width!=0){r.globalAlpha=o.opacity!==void 0?o.opacity:1,this.enableShadow(r,o);var i=1;this.options.shapeProperties.interpolation===!0&&(i=this.imageObj.width/this.width/this.body.view.scale);var a=this._getImagePadding(),s=this.left+a.left,l=this.top+a.top,u=this.width-a.left-a.right,c=this.height-a.top-a.bottom;this.imageObj.drawImageAtPosition(r,i,s,l,u,c),this.disableShadow(r,o)}}},{key:"_drawImageLabel",value:function(r,o,i,a,s){var l=0;if(this.height!==void 0){l=this.height*.5;var u=this.labelModule.getTextSize(r,a,s);u.lineCount>=1&&(l+=u.height/2)}var c=i+l;this.options.label&&(this.labelOffset=l),this.labelModule.draw(r,o,c,a,s,"hanging")}}]),n}(Fs);function gPe(t){var e=vPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function vPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var mPe=function(t){Ve(n,t);var e=gPe(n);function n(r,o,i){var a;return J(this,n),a=e.call(this,r,o,i),a._setMargins(i),a}return Z(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,i)){var a=this.getDimensionsFromLabel(r,o,i),s=Math.max(a.width+this.margin.right+this.margin.left,a.height+this.margin.top+this.margin.bottom);this.options.size=s/2,this.width=s,this.height=s,this.radius=this.width/2}}},{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s),this.left=o-this.width/2,this.top=i-this.height/2,this._drawRawCircle(r,o,i,l),this.updateBoundingBox(o,i),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,i,a,s)}},{key:"updateBoundingBox",value:function(r,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=o+this.options.size}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.width*.5}}]),n}(I_);function yPe(t){var e=bPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function bPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var wPe=function(t){Ve(n,t);var e=yPe(n);function n(r,o,i,a,s){var l;return J(this,n),l=e.call(this,r,o,i),l.setImages(a,s),l}return Z(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,a=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(a){var s=this.options.size*2;this.width=s,this.height=s,this.radius=.5*this.width;return}this.needsRefresh(o,i)&&this._resizeImage()}},{key:"draw",value:function(r,o,i,a,s,l){this.switchImages(a),this.resize();var u=o,c=i;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=i,u+=this.width/2,c+=this.height/2):(this.left=o-this.width/2,this.top=i-this.height/2),this._drawRawCircle(r,u,c,l),r.save(),r.clip(),this._drawImageAtPosition(r,l),r.restore(),this._drawImageLabel(r,u,c,a,s),this.updateBoundingBox(o,i)}},{key:"updateBoundingBox",value:function(r,o){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=o,this.boundingBox.left=r,this.boundingBox.right=r+this.options.size*2,this.boundingBox.bottom=o+this.options.size*2):(this.boundingBox.top=o-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=o+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.width*.5}}]),n}(I_);function xPe(t){var e=kPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function kPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var Ia=function(t){Ve(n,t);var e=xPe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(o,i)){var s,l;this.labelModule.getTextSize(r,o,i);var u=2*a.size;this.width=(s=this.customSizeWidth)!==null&&s!==void 0?s:u,this.height=(l=this.customSizeHeight)!==null&&l!==void 0?l:u,this.radius=.5*this.width}}},{key:"_drawShape",value:function(r,o,i,a,s,l,u,c){var h=this;return this.resize(r,l,u,c),this.left=a-this.width/2,this.top=s-this.height/2,this.initContextForDraw(r,c),rpe(o)(r,a,s,c.size),this.performFill(r,c),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(r.font=(l?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),r.fillStyle=this.options.icon.color||"black",r.textAlign="center",r.textBaseline="middle",r.fillText(this.options.icon.code,a,s)),{drawExternalLabel:function(){if(h.options.label!==void 0){h.labelModule.calculateLabelSize(r,l,u,a,s,"hanging");var d=s+.5*h.height+.5*h.labelModule.size.height;h.labelModule.draw(r,a,d,l,u,"hanging")}h.updateBoundingBox(a,s)}}}},{key:"updateBoundingBox",value:function(r,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=o+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),n}(Fs);function t5(t,e){var n=Mt(t);if(Ta){var r=Ta(t);e&&(r=lr(r).call(r,function(o){return Pa(t,o).enumerable})),n.push.apply(n,r)}return n}function SPe(t){for(var e=1;e"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var CPe=function(t){Ve(n,t);var e=_Pe(n);function n(r,o,i,a){var s;return J(this,n),s=e.call(this,r,o,i,a),s.ctxRenderer=a,s}return Z(n,[{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s,l),this.left=o-this.width/2,this.top=i-this.height/2,r.save();var u=this.ctxRenderer({ctx:r,id:this.options.id,x:o,y:i,state:{selected:a,hover:s},style:SPe({},l),label:this.options.label});if(u.drawNode!=null&&u.drawNode(),r.restore(),u.drawExternalLabel){var c=u.drawExternalLabel;u.drawExternalLabel=function(){r.save(),c(),r.restore()}}return u.nodeDimensions&&(this.customSizeWidth=u.nodeDimensions.width,this.customSizeHeight=u.nodeDimensions.height),u}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function OPe(t){var e=TPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function TPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var PPe=function(t){Ve(n,t);var e=OPe(n);function n(r,o,i){var a;return J(this,n),a=e.call(this,r,o,i),a._setMargins(i),a}return Z(n,[{key:"resize",value:function(r,o,i){if(this.needsRefresh(o,i)){var a=this.getDimensionsFromLabel(r,o,i),s=a.width+this.margin.right+this.margin.left;this.width=s,this.height=s,this.radius=this.width/2}}},{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s),this.left=o-this.width/2,this.top=i-this.height/2,this.initContextForDraw(r,l),bN(r,o-this.width/2,i-this.height/2,this.width,this.height),this.performFill(r,l),this.updateBoundingBox(o,i,r,a,s),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,a,s)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Fs);function MPe(t){var e=IPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function IPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var RPe=function(t){Ve(n,t);var e=MPe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"diamond",4,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function APe(t){var e=DPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function DPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var jPe=function(t){Ve(n,t);var e=APe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"circle",2,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.options.size}}]),n}(Ia);function NPe(t){var e=zPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function zPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var n5=function(t){Ve(n,t);var e=NPe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,i)){var a=this.getDimensionsFromLabel(r,o,i);this.height=a.height*2,this.width=a.width+a.height,this.radius=.5*this.width}}},{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s),this.left=o-this.width*.5,this.top=i-this.height*.5,this.initContextForDraw(r,l),Hk(r,this.left,this.top,this.width,this.height),this.performFill(r,l),this.updateBoundingBox(o,i,r,a,s),this.labelModule.draw(r,o,i,a,s)}},{key:"distanceToBorder",value:function(r,o){r&&this.resize(r);var i=this.width*.5,a=this.height*.5,s=Math.sin(o)*i,l=Math.cos(o)*a;return i*a/Math.sqrt(s*s+l*l)}}]),n}(Fs);function FPe(t){var e=LPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function LPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var BPe=function(t){Ve(n,t);var e=FPe(n);function n(r,o,i){var a;return J(this,n),a=e.call(this,r,o,i),a._setMargins(i),a}return Z(n,[{key:"resize",value:function(r,o,i){this.needsRefresh(o,i)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(r,o,i,a,s,l){var u=this;return this.resize(r,a,s),this.options.icon.size=this.options.icon.size||50,this.left=o-this.width/2,this.top=i-this.height/2,this._icon(r,o,i,a,s,l),{drawExternalLabel:function(){if(u.options.label!==void 0){var c=5;u.labelModule.draw(r,u.left+u.iconSize.width/2+u.margin.left,i+u.height/2+c,a)}u.updateBoundingBox(o,i)}}}},{key:"updateBoundingBox",value:function(r,o){if(this.boundingBox.top=o-this.options.icon.size*.5,this.boundingBox.left=r-this.options.icon.size*.5,this.boundingBox.right=r+this.options.icon.size*.5,this.boundingBox.bottom=o+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0){var i=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+i)}}},{key:"_icon",value:function(r,o,i,a,s,l){var u=Number(this.options.icon.size);this.options.icon.code!==void 0?(r.font=[this.options.icon.weight!=null?this.options.icon.weight:a?"bold":"",(this.options.icon.weight!=null&&a?5:0)+u+"px",this.options.icon.face].join(" "),r.fillStyle=this.options.icon.color||"black",r.textAlign="center",r.textBaseline="middle",this.enableShadow(r,l),r.fillText(this.options.icon.code,o,i),this.disableShadow(r,l)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Fs);function $Pe(t){var e=WPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function WPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var HPe=function(t){Ve(n,t);var e=$Pe(n);function n(r,o,i,a,s){var l;return J(this,n),l=e.call(this,r,o,i),l.setImages(a,s),l}return Z(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,a=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(a){var s=this.options.size*2;this.width=s,this.height=s;return}this.needsRefresh(o,i)&&this._resizeImage()}},{key:"draw",value:function(r,o,i,a,s,l){r.save(),this.switchImages(a),this.resize();var u=o,c=i;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=i,u+=this.width/2,c+=this.height/2):(this.left=o-this.width/2,this.top=i-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var h=this.options.borderWidth,d=this.options.borderWidthSelected||2*this.options.borderWidth,f=(a?d:h)/this.body.view.scale;r.lineWidth=Math.min(this.width,f),r.beginPath();var p=a?this.options.color.highlight.border:s?this.options.color.hover.border:this.options.color.border,g=a?this.options.color.highlight.background:s?this.options.color.hover.background:this.options.color.background;l.opacity!==void 0&&(p=qr(p,l.opacity),g=qr(g,l.opacity)),r.strokeStyle=p,r.fillStyle=g,r.rect(this.left-.5*r.lineWidth,this.top-.5*r.lineWidth,this.width+r.lineWidth,this.height+r.lineWidth),yh(r).call(r),this.performStroke(r,l),r.closePath()}this._drawImageAtPosition(r,l),this._drawImageLabel(r,u,c,a,s),this.updateBoundingBox(o,i),r.restore()}},{key:"updateBoundingBox",value:function(r,o){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=r,this.top=o):(this.left=r-this.width/2,this.top=o-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(I_);function VPe(t){var e=UPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function UPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var qPe=function(t){Ve(n,t);var e=VPe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"square",2,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function KPe(t){var e=YPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function YPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var XPe=function(t){Ve(n,t);var e=KPe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"hexagon",4,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function GPe(t){var e=QPe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function QPe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var JPe=function(t){Ve(n,t);var e=GPe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"star",4,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function ZPe(t){var e=eMe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function eMe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var tMe=function(t){Ve(n,t);var e=ZPe(n);function n(r,o,i){var a;return J(this,n),a=e.call(this,r,o,i),a._setMargins(i),a}return Z(n,[{key:"resize",value:function(r,o,i){this.needsRefresh(o,i)&&(this.textSize=this.labelModule.getTextSize(r,o,i),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s),this.left=o-this.width/2,this.top=i-this.height/2,this.enableShadow(r,l),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,a,s),this.disableShadow(r,l),this.updateBoundingBox(o,i,r,a,s)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Fs);function nMe(t){var e=rMe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function rMe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var oMe=function(t){Ve(n,t);var e=nMe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"triangle",3,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function iMe(t){var e=aMe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function aMe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var sMe=function(t){Ve(n,t);var e=iMe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"triangleDown",3,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function r5(t,e){var n=Mt(t);if(Ta){var r=Ta(t);e&&(r=lr(r).call(r,function(o){return Pa(t,o).enumerable})),n.push.apply(n,r)}return n}function o5(t){for(var e=1;ee.left&&this.shape.tope.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}}],[{key:"checkOpacity",value:function(e){return 0<=e&&e<=1}},{key:"checkCoordinateOrigin",value:function(e){return e===void 0||e==="center"||e==="top-left"}},{key:"updateGroupOptions",value:function(e,n,r){var o;if(r!==void 0){var i=e.group;if(n!==void 0&&n.group!==void 0&&i!==n.group)throw new Error("updateGroupOptions: group values in options don't match.");var a=typeof i=="number"||typeof i=="string"&&i!="";if(a){var s=r.get(i);s.opacity!==void 0&&n.opacity===void 0&&(t.checkOpacity(s.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+s.opacity),s.opacity=void 0));var l=lr(o=i2e(n)).call(o,function(u){return n[u]!=null});l.push("font"),fm(l,e,s),e.color=s_(e.color)}}}},{key:"parseOptions",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,a=["color","fixed","shadow"];if(fm(a,e,n,r),t.checkMass(n),e.opacity!==void 0&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),n.opacity!==void 0&&(t.checkOpacity(n.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+n.opacity),n.opacity=void 0)),n.shapeProperties&&!t.checkCoordinateOrigin(n.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+n.shapeProperties.coordinateOrigin),Kr(e,n,"shadow",o),n.color!==void 0&&n.color!==null){var s=s_(n.color);JL(e.color,s)}else r===!0&&n.color===null&&(e.color=_a(o.color));n.fixed!==void 0&&n.fixed!==null&&(typeof n.fixed=="boolean"?(e.fixed.x=n.fixed,e.fixed.y=n.fixed):(n.fixed.x!==void 0&&typeof n.fixed.x=="boolean"&&(e.fixed.x=n.fixed.x),n.fixed.y!==void 0&&typeof n.fixed.y=="boolean"&&(e.fixed.y=n.fixed.y))),r===!0&&n.font===null&&(e.font=_a(o.font)),t.updateGroupOptions(e,n,i),n.scaling!==void 0&&Kr(e.scaling,n.scaling,"label",o.scaling)}},{key:"checkMass",value:function(e,n){if(e.mass!==void 0&&e.mass<=0){var r="";n!==void 0&&(r=" in node id: "+n),console.error("%cNegative or zero mass disallowed"+r+", setting mass to 1.",rB),e.mass=1}}}]),t}();function lMe(t,e){var n=typeof wa<"u"&&Ss(t)||t["@@iterator"];if(!n){if(Ge(t)||(n=uMe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function uMe(t,e){var n;if(t){if(typeof t=="string")return i5(t,e);var r=yn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i5(t,e)}}function i5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(var n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&this.body.nodes[n].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(var r=0,o=Mt(this.body.nodes);r1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.data.nodes;if(_j("id",e))this.body.data.nodes=e;else if(Ge(e))this.body.data.nodes=new uu,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new uu;else throw new TypeError("Array or DataSet expected");if(r&&Me(this.nodesListeners,function(a,s){r.off(s,a)}),this.body.nodes={},this.body.data.nodes){var o=this;Me(this.nodesListeners,function(a,s){o.body.data.nodes.on(s,a)});var i=this.body.data.nodes.getIds();this.add(i,!0)}n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r,o=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:Or;return new n(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Me(this.body.nodes,function(r,o){var i=e.body.data.nodes.get(o);i!==void 0&&(n===!0&&r.setOptions({x:null,y:null}),r.setOptions({fixed:!1}),r.setOptions(i))})}},{key:"getPositions",value:function(e){var n={};if(e!==void 0){if(Ge(e)===!0){for(var r=0;r0?(s=a/i,n+=s*s):n+=a;return i===1/0?1/0:i*zMe(n)}});var LMe=Be,BMe=LMe.Math.hypot,$Me=BMe,WMe=$Me,HMe=WMe,VMe=de(HMe);function c5(t){var e=UMe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function UMe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var zt=function(){function t(){J(this,t)}return Z(t,null,[{key:"transform",value:function(e,n){Ge(e)||(e=[e]);for(var r=n.point.x,o=n.point.y,i=n.angle,a=n.length,s=0;s4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,n),e.lineWidth=n.width,n.dashes!==!1?this._drawDashedLine(e,n,i):this._drawLine(e,n,i)}},{key:"_drawLine",value:function(e,n,r,o,i){if(this.from!=this.to)this._line(e,n,r,o,i);else{var a=this._getCircleData(e),s=Pt(a,3),l=s[0],u=s[1],c=s[2];this._circle(e,n,l,u,c)}}},{key:"_drawDashedLine",value:function(e,n,r,o,i){e.lineCap="round";var a=Ge(n.dashes)?n.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(a),e.lineDashOffset=0,this.from!=this.to)this._line(e,n,r);else{var s=this._getCircleData(e),l=Pt(s,3),u=l[0],c=l[1],h=l[2];this._circle(e,n,u,c,h)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)wN(e,this.from.x,this.from.y,this.to.x,this.to.y,a);else{var d=this._getCircleData(e),f=Pt(d,3),p=f[0],g=f[1],b=f[2];this._circle(e,n,p,g,b)}this.enableShadow(e,n),e.stroke(),this.disableShadow(e,n)}}},{key:"findBorderPosition",value:function(e,n,r){return this.from!=this.to?this._findBorderPosition(e,n,r):this._findBorderPositionCircle(e,n,r)}},{key:"findBorderPositions",value:function(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};var n,r=yn(n=this._getCircleData(e)).call(n,0,2),o=Pt(r,2),i=o[0],a=o[1];return{from:this._findBorderPositionCircle(this.from,e,{x:i,y:a,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:i,y:a,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(e){var n=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);var r=VB(e,this.options.selfReference.angle,n,this.from);return[r.x,r.y,n]}},{key:"_pointOnCircle",value:function(e,n,r,o){var i=o*2*Math.PI;return{x:e+r*Math.cos(i),y:n-r*Math.sin(i)}}},{key:"_findBorderPositionCircle",value:function(e,n,r){var o=r.x,i=r.y,a=r.low,s=r.high,l=r.direction,u=10,c=this.options.selfReference.size,h=.05,d,f=(a+s)*.5,p=0;this.options.arrowStrikethrough===!0&&(l===-1?p=this.options.endPointOffset.from:l===1&&(p=this.options.endPointOffset.to));var g=0;do{f=(a+s)*.5,d=this._pointOnCircle(o,i,c,f);var b=Math.atan2(e.y-d.y,e.x-d.x),m=e.distanceToBorder(n,b)+p,v=Math.sqrt(Math.pow(d.x-e.x,2)+Math.pow(d.y-e.y,2)),y=m-v;if(Math.abs(y)0?l>0?a=f:s=f:l>0?s=f:a=f,++g}while(a<=s&&g1?c=1:c<0&&(c=0);var h=e+c*s,d=n+c*l,f=h-i,p=d-a;return Math.sqrt(f*f+p*p)}},{key:"getArrowData",value:function(e,n,r,o,i,a){var s,l,u,c,h,d,f,p=a.width;n==="from"?(u=this.from,c=this.to,h=a.fromArrowScale<0,d=Math.abs(a.fromArrowScale),f=a.fromArrowType):n==="to"?(u=this.to,c=this.from,h=a.toArrowScale<0,d=Math.abs(a.toArrowScale),f=a.toArrowType):(u=this.to,c=this.from,h=a.middleArrowScale<0,d=Math.abs(a.middleArrowScale),f=a.middleArrowType);var g=15*d+3*p;if(u!=c){var b=VMe(u.x-c.x,u.y-c.y),m=g/b;if(n!=="middle")if(this.options.smooth.enabled===!0){var v=this._findBorderPosition(u,e,{via:r}),y=this.getPoint(v.t+m*(n==="from"?1:-1),r);s=Math.atan2(v.y-y.y,v.x-y.x),l=v}else s=Math.atan2(u.y-c.y,u.x-c.x),l=this._findBorderPosition(u,e);else{var x=(h?-m:m)/2,S=this.getPoint(.5+x,r),_=this.getPoint(.5-x,r);s=Math.atan2(S.y-_.y,S.x-_.x),l=this.getPoint(.5,r)}}else{var E=this._getCircleData(e),O=Pt(E,3),w=O[0],T=O[1],I=O[2];if(n==="from"){var A=this.options.selfReference.angle,D=this.options.selfReference.angle+Math.PI,R=this._findBorderPositionCircle(this.from,e,{x:w,y:T,low:A,high:D,direction:-1});s=R.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,l=R}else if(n==="to"){var P=this.options.selfReference.angle,M=this.options.selfReference.angle+Math.PI,N=this._findBorderPositionCircle(this.from,e,{x:w,y:T,low:P,high:M,direction:1});s=N.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,l=N}else{var j=this.options.selfReference.angle/(2*Math.PI);l=this._pointOnCircle(w,T,I,j),s=j*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var W=l.x-g*.9*Math.cos(s),B=l.y-g*.9*Math.sin(s),ee={x:W,y:B};return{point:l,core:ee,angle:s,length:g,type:f}}},{key:"drawArrowHead",value:function(e,n,r,o,i){e.strokeStyle=this.getColor(e,n),e.fillStyle=e.strokeStyle,e.lineWidth=n.width;var a=d5.draw(e,i);a&&(this.enableShadow(e,n),yh(e).call(e),this.disableShadow(e,n))}},{key:"enableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor=n.shadowColor,e.shadowBlur=n.shadowSize,e.shadowOffsetX=n.shadowX,e.shadowOffsetY=n.shadowY)}},{key:"disableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"drawBackground",value:function(e,n){if(n.background!==!1){var r={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=n.backgroundColor,e.lineWidth=n.backgroundSize,this.setStrokeDashed(e,n.backgroundDashes),e.stroke(),e.strokeStyle=r.strokeStyle,e.lineWidth=r.lineWidth,e.dashes=r.dashes,this.setStrokeDashed(e,n.dashes)}}},{key:"setStrokeDashed",value:function(e,n){if(n!==!1)if(e.setLineDash!==void 0){var r=Ge(n)?n:[5,5];e.setLineDash(r)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function g5(t,e){var n=Mt(t);if(Ta){var r=Ta(t);e&&(r=lr(r).call(r,function(o){return Pa(t,o).enumerable})),n.push.apply(n,r)}return n}function v5(t){for(var e=1;e"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var R_=function(t){Ve(n,t);var e=oIe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"_findBorderPositionBezier",value:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),a=10,s=.2,l=!1,u=1,c=0,h=this.to,d,f,p=this.options.endPointOffset?this.options.endPointOffset.to:0;r.id===this.from.id&&(h=this.from,l=!0,p=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(p=0);var g=0;do{f=(c+u)*.5,d=this.getPoint(f,i);var b=Math.atan2(h.y-d.y,h.x-d.x),m=h.distanceToBorder(o,b)+p,v=Math.sqrt(Math.pow(d.x-h.x,2)+Math.pow(d.y-h.y,2)),y=m-v;if(Math.abs(y)0&&(h=this._getDistanceToLine(b,m,p,g,s,l),c=h"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var m5=function(t){Ve(n,t);var e=aIe(n);function n(r,o,i){var a;return J(this,n),a=e.call(this,r,o,i),a.via=a.via,a._boundFunction=function(){a.positionBezierNode()},a._body.emitter.on("_repositionBezierNodes",a._boundFunction),a}return Z(n,[{key:"setOptions",value:function(r){_m(se(n.prototype),"setOptions",this).call(this,r);var o=!1;this.options.physics!==r.physics&&(o=!0),this.options=r,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),o===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}},{key:"setupSupportNode",value:function(){if(this.via===void 0){var r="edgeId:"+this.id,o=this._body.functions.createNode({id:r,shape:"circle",physics:!0,hidden:!0});this._body.nodes[r]=o,this.via=o,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(r,o,i){this._bezierCurve(r,o,i)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var i=this._getCircleData(),a=Pt(i,3),s=a[0],l=a[1],u=a[2],c=2*Math.PI*(1-r);return{x:s+u*Math.sin(c),y:l+u-u*(1-Math.cos(c))}}else return{x:Math.pow(1-r,2)*this.fromPoint.x+2*r*(1-r)*o.x+Math.pow(r,2)*this.toPoint.x,y:Math.pow(1-r,2)*this.fromPoint.y+2*r*(1-r)*o.y+Math.pow(r,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(r,o){return this._findBorderPositionBezier(r,o,this.via)}},{key:"_getDistanceToEdge",value:function(r,o,i,a,s,l){return this._getDistanceToBezierEdge(r,o,i,a,s,l,this.via)}}]),n}(R_);function lIe(t){var e=uIe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function uIe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var y5=function(t){Ve(n,t);var e=lIe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"_line",value:function(r,o,i){this._bezierCurve(r,o,i)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var r=this.options.smooth.roundness,o=this.options.smooth.type,i=Math.abs(this.from.x-this.to.x),a=Math.abs(this.from.y-this.to.y);if(o==="discrete"||o==="diagonalCross"){var s,l;i<=a?s=l=r*a:s=l=r*i,this.from.x>this.to.x&&(s=-s),this.from.y>=this.to.y&&(l=-l);var u=this.from.x+s,c=this.from.y+l;return o==="discrete"&&(i<=a?u=ithis.to.x&&(E=-E),this.from.y>=this.to.y&&(O=-O);var w=this.from.x+E,T=this.from.y+O;return i<=a?this.from.x<=this.to.x?w=this.to.xw?this.to.x:w:this.from.y>=this.to.y?T=this.to.y>T?this.to.y:T:T=this.to.y2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(r,o,i.via)}},{key:"_getDistanceToEdge",value:function(r,o,i,a,s,l){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(r,o,i,a,s,l,u)}},{key:"getPoint",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),i=r,a=Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*o.x+Math.pow(i,2)*this.toPoint.x,s=Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*o.y+Math.pow(i,2)*this.toPoint.y;return{x:a,y:s}}}]),n}(R_);function cIe(t){var e=dIe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function dIe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var hIe=function(t){Ve(n,t);var e=cIe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"_getDistanceToBezierEdge2",value:function(r,o,i,a,s,l,u,c){for(var h=1e9,d=r,f=o,p=[0,0,0,0],g=1;g<10;g++){var b=.1*g;p[0]=Math.pow(1-b,3),p[1]=3*b*Math.pow(1-b,2),p[2]=3*Math.pow(b,2)*(1-b),p[3]=Math.pow(b,3);var m=p[0]*r+p[1]*u.x+p[2]*c.x+p[3]*i,v=p[0]*o+p[1]*u.y+p[2]*c.y+p[3]*a;if(g>0){var y=this._getDistanceToLine(d,f,m,v,s,l);h=y"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var b5=function(t){Ve(n,t);var e=fIe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"_line",value:function(r,o,i){var a=i[0],s=i[1];this._bezierCurve(r,o,a,s)}},{key:"_getViaCoordinates",value:function(){var r=this.from.x-this.to.x,o=this.from.y-this.to.y,i,a,s,l,u=this.options.smooth.roundness;return(Math.abs(r)>Math.abs(o)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(a=this.from.y,l=this.to.y,i=this.from.x-u*r,s=this.to.x+u*r):(a=this.from.y-u*o,l=this.to.y+u*o,i=this.from.x,s=this.to.x),[{x:i,y:a},{x:s,y:l}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(r,o){return this._findBorderPositionBezier(r,o)}},{key:"_getDistanceToEdge",value:function(r,o,i,a,s,l){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),c=Pt(u,2),h=c[0],d=c[1];return this._getDistanceToBezierEdge2(r,o,i,a,s,l,h,d)}},{key:"getPoint",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),i=Pt(o,2),a=i[0],s=i[1],l=r,u=[Math.pow(1-l,3),3*l*Math.pow(1-l,2),3*Math.pow(l,2)*(1-l),Math.pow(l,3)],c=u[0]*this.fromPoint.x+u[1]*a.x+u[2]*s.x+u[3]*this.toPoint.x,h=u[0]*this.fromPoint.y+u[1]*a.y+u[2]*s.y+u[3]*this.toPoint.y;return{x:c,y:h}}}]),n}(hIe);function gIe(t){var e=vIe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function vIe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var w5=function(t){Ve(n,t);var e=gIe(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"_line",value:function(r,o){r.beginPath(),r.moveTo(this.fromPoint.x,this.fromPoint.y),r.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(r,o),r.stroke(),this.disableShadow(r,o)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(r){return{x:(1-r)*this.fromPoint.x+r*this.toPoint.x,y:(1-r)*this.fromPoint.y+r*this.toPoint.y}}},{key:"_findBorderPosition",value:function(r,o){var i=this.to,a=this.from;r.id===this.from.id&&(i=this.from,a=this.to);var s=Math.atan2(i.y-a.y,i.x-a.x),l=i.x-a.x,u=i.y-a.y,c=Math.sqrt(l*l+u*u),h=r.distanceToBorder(o,s),d=(c-h)/c;return{x:(1-d)*a.x+d*i.x,y:(1-d)*a.y+d*i.y,t:0}}},{key:"_getDistanceToEdge",value:function(r,o,i,a,s,l){return this._getDistanceToLine(r,o,i,a,s,l)}}]),n}(p5),$u=function(){function t(e,n,r,o,i){if(J(this,t),n===void 0)throw new Error("No body provided");this.options=_a(o),this.globalOptions=o,this.defaultOptions=i,this.body=n,this.imagelist=r,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new KB(this.body,this.options,!0),this.setOptions(e)}return Z(t,[{key:"setOptions",value:function(e){if(e){var n=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=HB(e.value));var r=[e,this.options,this.defaultOptions];return this.chooser=S_("edge",r),this.updateLabelModule(e),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,n=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,r=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,o=this.options.color.inherit,i={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:r,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:n,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:o?void 0:this.options.color.color,inheritsColor:o,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){var a=this.options.selectionWidth;typeof a=="function"?i.width=a(i.width):typeof a=="number"&&(i.width+=a),i.width=Math.max(i.width,.3/this.body.view.scale),i.color=this.options.color.highlight,i.shadow=this.options.shadow.enabled}else if(this.hover){var s=this.options.hoverWidth;typeof s=="function"?i.width=s(i.width):typeof s=="number"&&(i.width+=s),i.width=Math.max(i.width,.3/this.body.view.scale),i.color=this.options.color.hover,i.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(i,this.options.id,this.selected,this.hover),i.color!==void 0&&(i.inheritsColor=!1),i.shadow===!1&&(i.shadowColor!==this.options.shadow.color||i.shadowSize!==this.options.shadow.size||i.shadowX!==this.options.shadow.x||i.shadowY!==this.options.shadow.y)&&(i.shadow=!0));else i.shadow=this.options.shadow.enabled,i.width=Math.max(i.width,.3/this.body.view.scale);return i}},{key:"updateLabelModule",value:function(e){var n=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,n),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var e=this.options.smooth,n=!1,r=!0;return this.edgeType!==void 0&&((this.edgeType instanceof m5&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof b5&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof y5&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof w5&&e.type.enabled===!1)&&(r=!1),r===!0&&(n=this.cleanup())),r===!0?e.enabled===!0?e.type==="dynamic"?(n=!0,this.edgeType=new m5(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new b5(this.options,this.body,this.labelModule):this.edgeType=new y5(this.options,this.body,this.labelModule):this.edgeType=new w5(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),n}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(e,n,r){if(this.options.value!==void 0){var o=this.options.scaling.customScalingFunction(e,n,r,this.options.value),i=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var a=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*a}this.options.width=this.options.scaling.min+o*i}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var r=this.edgeType.getViaNode();this.edgeType.drawLine(e,n,this.selected,this.hover,r),this.drawLabel(e,r)}}},{key:"drawArrows",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var r=this.edgeType.getViaNode(),o={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,n.fromArrow&&(o.from=this.edgeType.getArrowData(e,"from",r,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.fromPoint=o.from.core),n.fromArrowSrc&&(o.from.image=this.imagelist.load(n.fromArrowSrc)),n.fromArrowImageWidth&&(o.from.imageWidth=n.fromArrowImageWidth),n.fromArrowImageHeight&&(o.from.imageHeight=n.fromArrowImageHeight)),n.toArrow&&(o.to=this.edgeType.getArrowData(e,"to",r,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.toPoint=o.to.core),n.toArrowSrc&&(o.to.image=this.imagelist.load(n.toArrowSrc)),n.toArrowImageWidth&&(o.to.imageWidth=n.toArrowImageWidth),n.toArrowImageHeight&&(o.to.imageHeight=n.toArrowImageHeight)),n.middleArrow&&(o.middle=this.edgeType.getArrowData(e,"middle",r,this.selected,this.hover,n),n.middleArrowSrc&&(o.middle.image=this.imagelist.load(n.middleArrowSrc)),n.middleArrowImageWidth&&(o.middle.imageWidth=n.middleArrowImageWidth),n.middleArrowImageHeight&&(o.middle.imageHeight=n.middleArrowImageHeight)),n.fromArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.from),n.middleArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.middle),n.toArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.to)}}},{key:"drawLabel",value:function(e,n){if(this.options.label!==void 0){var r=this.from,o=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);var i;if(r.id!=o.id){this.labelModule.pointToSelf=!1,i=this.edgeType.getPoint(.5,n),e.save();var a=this._getRotation(e);a.angle!=0&&(e.translate(a.x,a.y),e.rotate(a.angle)),this.labelModule.draw(e,i.x,i.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;var s=VB(e,this.options.selfReference.angle,this.options.selfReference.size,r);i=this._pointOnCircle(s.x,s.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,i.x,i.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(e){var n=[];if(this.labelModule.visible()){var r=this._getRotation();__(this.labelModule.getSize(),e,r)&&n.push({edgeId:this.id,labelId:0})}var o={left:e.x,top:e.y};return this.isOverlappingWith(o)&&n.push({edgeId:this.id}),n}},{key:"isOverlappingWith",value:function(e){if(this.connected){var n=10,r=this.from.x,o=this.from.y,i=this.to.x,a=this.to.y,s=e.left,l=e.top,u=this.edgeType.getDistanceToEdge(r,o,i,a,s,l);return u0&&a<0)&&(s+=Math.PI),o.angle=s,o}},{key:"_pointOnCircle",value:function(e,n,r,o){return{x:e+r*Math.cos(o),y:n-r*Math.sin(o)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}],[{key:"parseOptions",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(zu(a,e,n,r),n.endPointOffset!==void 0&&n.endPointOffset.from!==void 0&&(zs(n.endPointOffset.from)?e.endPointOffset.from=n.endPointOffset.from:(e.endPointOffset.from=o.endPointOffset.from!==void 0?o.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),n.endPointOffset!==void 0&&n.endPointOffset.to!==void 0&&(zs(n.endPointOffset.to)?e.endPointOffset.to=n.endPointOffset.to:(e.endPointOffset.to=o.endPointOffset.to!==void 0?o.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),Sm(n.label)?e.label=n.label:Sm(e.label)||(e.label=void 0),Kr(e,n,"smooth",o),Kr(e,n,"shadow",o),Kr(e,n,"background",o),n.dashes!==void 0&&n.dashes!==null?e.dashes=n.dashes:r===!0&&n.dashes===null&&(e.dashes=Ts(o.dashes)),n.scaling!==void 0&&n.scaling!==null?(n.scaling.min!==void 0&&(e.scaling.min=n.scaling.min),n.scaling.max!==void 0&&(e.scaling.max=n.scaling.max),Kr(e.scaling,n.scaling,"label",o.scaling)):r===!0&&n.scaling===null&&(e.scaling=Ts(o.scaling)),n.arrows!==void 0&&n.arrows!==null)if(typeof n.arrows=="string"){var s=n.arrows.toLowerCase();e.arrows.to.enabled=$e(s).call(s,"to")!=-1,e.arrows.middle.enabled=$e(s).call(s,"middle")!=-1,e.arrows.from.enabled=$e(s).call(s,"from")!=-1}else if(Ze(n.arrows)==="object")Kr(e.arrows,n.arrows,"to",o.arrows),Kr(e.arrows,n.arrows,"middle",o.arrows),Kr(e.arrows,n.arrows,"from",o.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+mh(n.arrows));else r===!0&&n.arrows===null&&(e.arrows=Ts(o.arrows));if(n.color!==void 0&&n.color!==null){var l=Nu(n.color)?{color:n.color,highlight:n.color,hover:n.color,inherit:!1,opacity:1}:n.color,u=e.color;if(i)at(u,o.color,!1,r);else for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&delete u[c];if(Nu(u))u.color=u,u.highlight=u,u.hover=u,u.inherit=!1,l.opacity===void 0&&(u.opacity=1);else{var h=!1;l.color!==void 0&&(u.color=l.color,h=!0),l.highlight!==void 0&&(u.highlight=l.highlight,h=!0),l.hover!==void 0&&(u.hover=l.hover,h=!0),l.inherit!==void 0&&(u.inherit=l.inherit),l.opacity!==void 0&&(u.opacity=Math.min(1,Math.max(0,l.opacity))),h===!0?u.inherit=!1:u.inherit===void 0&&(u.inherit="from")}}else r===!0&&n.color===null&&(e.color=_a(o.color));r===!0&&n.font===null&&(e.font=_a(o.font)),Object.prototype.hasOwnProperty.call(n,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=n.selfReferenceSize)}}]),t}(),mIe=function(){function t(e,n,r){var o,i=this;J(this,t),this.body=e,this.images=n,this.groups=r,this.body.functions.createEdge=Y(o=this.create).call(o,this),this.edgesListeners={add:function(a,s){i.add(s.items)},update:function(a,s){i.update(s.items)},remove:function(a,s){i.remove(s.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(a,s,l,u){if(s===a)return .5;var c=1/(s-a);return Math.max(0,(u-a)*c)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},at(this.options,this.defaultOptions),this.bindEventListeners()}return Z(t,[{key:"bindEventListeners",value:function(){var e=this,n,r;this.body.emitter.on("_forceDisableDynamicCurves",function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;o==="dynamic"&&(o="continuous");var a=!1;for(var s in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,s)){var l=e.body.edges[s],u=e.body.data.edges.get(s);if(u!=null){var c=u.smooth;c!==void 0&&c.enabled===!0&&c.type==="dynamic"&&(o===void 0?l.setOptions({smooth:!1}):l.setOptions({smooth:{type:o}}),a=!0)}}i===!0&&a===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",Y(n=this.refresh).call(n,this)),this.body.emitter.on("refresh",Y(r=this.refresh).call(r,this)),this.body.emitter.on("destroy",function(){Me(e.edgesListeners,function(o,i){e.body.data.edges&&e.body.data.edges.off(i,o)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){$u.parseOptions(this.options,e,!0,this.defaultOptions,!0);var n=!1;if(e.smooth!==void 0)for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&(n=this.body.edges[r].updateEdgeType()||n);if(e.font!==void 0)for(var o in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,o)&&this.body.edges[o].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||n===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.body.data.edges;if(_j("id",e))this.body.data.edges=e;else if(Ge(e))this.body.data.edges=new uu,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new uu;else throw new TypeError("Array or DataSet expected");if(o&&Me(this.edgesListeners,function(a,s){o.off(s,a)}),this.body.edges={},this.body.data.edges){Me(this.edgesListeners,function(a,s){n.body.data.edges.on(s,a)});var i=this.body.data.edges.getIds();this.add(i,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),r===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.edges,o=this.body.data.edges,i=0;i1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length!==0){var r=this.body.edges;Me(e,function(o){var i=r[o];i!==void 0&&i.remove()}),n&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var e=this;Me(this.body.edges,function(n,r){var o=e.body.data.edges.get(r);o!==void 0&&n.setOptions(o)})}},{key:"create",value:function(e){return new $u(e,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var e,n=this.body.nodes,r=this.body.edges;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e].edges=[]);for(e in r)if(Object.prototype.hasOwnProperty.call(r,e)){var o=r[e];o.from=null,o.to=null,o.connect()}}},{key:"getConnectedNodes",value:function(e){var n=[];if(this.body.edges[e]!==void 0){var r=this.body.edges[e];r.fromId!==void 0&&n.push(r.fromId),r.toId!==void 0&&n.push(r.toId)}return n}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var e=this,n=[];Me(this.body.edges,function(r,o){var i=e.body.nodes[r.toId],a=e.body.nodes[r.fromId];i!==void 0&&i.isCluster===!0||a!==void 0&&a.isCluster===!0||(i===void 0||a===void 0)&&n.push(o)}),this.remove(n,!1)}},{key:"_addMissingEdges",value:function(){var e=this.body.data.edges;if(e!=null){var n=this.body.edges,r=[];nt(e).call(e,function(o,i){var a=n[i];a===void 0&&r.push(i)}),this.add(r,!0)}}}]),t}(),x5=function(){function t(e,n,r){J(this,t),this.body=e,this.physicsBody=n,this.barnesHutTree,this.setOptions(r),this._rng=hm("BARNES HUT SOLVER")}return Z(t,[{key:"setOptions",value:function(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var e,n=this.body.nodes,r=this.physicsBody.physicsNodeIndices,o=r.length,i=this._formBarnesHutTree(n,r);this.barnesHutTree=i;for(var a=0;a0&&this._getForceContributions(i.root,e)}}},{key:"_getForceContributions",value:function(e,n){this._getForceContribution(e.children.NW,n),this._getForceContribution(e.children.NE,n),this._getForceContribution(e.children.SW,n),this._getForceContribution(e.children.SE,n)}},{key:"_getForceContribution",value:function(e,n){if(e.childrenCount>0){var r=e.centerOfMass.x-n.x,o=e.centerOfMass.y-n.y,i=Math.sqrt(r*r+o*o);i*e.calcSize>this.thetaInversed?this._calculateForces(i,r,o,n,e):e.childrenCount===4?this._getForceContributions(e,n):e.children.data.id!=n.id&&this._calculateForces(i,r,o,n,e)}}},{key:"_calculateForces",value:function(e,n,r,o,i){e===0&&(e=.1,n=e),this.overlapAvoidanceFactor<1&&o.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*o.shape.radius,e-o.shape.radius));var a=this.options.gravitationalConstant*i.mass*o.options.mass/Math.pow(e,3),s=n*a,l=r*a;this.physicsBody.forces[o.id].x+=s,this.physicsBody.forces[o.id].y+=l}},{key:"_formBarnesHutTree",value:function(e,n){for(var r,o=n.length,i=e[n[0]].x,a=e[n[0]].y,s=e[n[0]].x,l=e[n[0]].y,u=1;u0&&(hs&&(s=h),dl&&(l=d))}var f=Math.abs(s-i)-Math.abs(l-a);f>0?(a-=.5*f,l+=.5*f):(i+=.5*f,s-=.5*f);var p=1e-5,g=Math.max(p,Math.abs(s-i)),b=.5*g,m=.5*(i+s),v=.5*(a+l),y={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:m-b,maxX:m+b,minY:v-b,maxY:v+b},size:g,calcSize:1/g,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(y.root);for(var x=0;x0&&this._placeInTree(y.root,r);return y}},{key:"_updateBranchMass",value:function(e,n){var r=e.centerOfMass,o=e.mass+n.options.mass,i=1/o;r.x=r.x*e.mass+n.x*n.options.mass,r.x*=i,r.y=r.y*e.mass+n.y*n.options.mass,r.y*=i,e.mass=o;var a=Math.max(Math.max(n.height,n.radius),n.width);e.maxWidth=e.maxWidthn.x?o.maxY>n.y?i="NW":i="SW":o.maxY>n.y?i="NE":i="SE",this._placeInRegion(e,n,i)}},{key:"_placeInRegion",value:function(e,n,r){var o=e.children[r];switch(o.childrenCount){case 0:o.children.data=n,o.childrenCount=1,this._updateBranchMass(o,n);break;case 1:o.children.data.x===n.x&&o.children.data.y===n.y?(n.x+=this._rng(),n.y+=this._rng()):(this._splitBranch(o),this._placeInTree(o,n));break;case 4:this._placeInTree(o,n);break}}},{key:"_splitBranch",value:function(e){var n=null;e.childrenCount===1&&(n=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),n!=null&&this._placeInTree(e,n)}},{key:"_insertRegion",value:function(e,n){var r,o,i,a,s=.5*e.size;switch(n){case"NW":r=e.range.minX,o=e.range.minX+s,i=e.range.minY,a=e.range.minY+s;break;case"NE":r=e.range.minX+s,o=e.range.maxX,i=e.range.minY,a=e.range.minY+s;break;case"SW":r=e.range.minX,o=e.range.minX+s,i=e.range.minY+s,a=e.range.maxY;break;case"SE":r=e.range.minX+s,o=e.range.maxX,i=e.range.minY+s,a=e.range.maxY;break}e.children[n]={centerOfMass:{x:0,y:0},mass:0,range:{minX:r,maxX:o,minY:i,maxY:a},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,n){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,n))}},{key:"_drawBranch",value:function(e,n,r){r===void 0&&(r="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,n),this._drawBranch(e.children.NE,n),this._drawBranch(e.children.SE,n),this._drawBranch(e.children.SW,n)),n.strokeStyle=r,n.beginPath(),n.moveTo(e.range.minX,e.range.minY),n.lineTo(e.range.maxX,e.range.minY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.minY),n.lineTo(e.range.maxX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.maxY),n.lineTo(e.range.minX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.minX,e.range.maxY),n.lineTo(e.range.minX,e.range.minY),n.stroke()}}]),t}(),yIe=function(){function t(e,n,r){J(this,t),this._rng=hm("REPULSION SOLVER"),this.body=e,this.physicsBody=n,this.setOptions(r)}return Z(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,r,o,i,a,s,l,u=this.body.nodes,c=this.physicsBody.physicsNodeIndices,h=this.physicsBody.forces,d=this.options.nodeDistance,f=-2/3/d,p=4/3,g=0;g"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var SIe=function(t){Ve(n,t);var e=xIe(n);function n(r,o,i){var a;return J(this,n),a=e.call(this,r,o,i),a._rng=hm("FORCE ATLAS 2 BASED REPULSION SOLVER"),a}return Z(n,[{key:"_calculateForces",value:function(r,o,i,a,s){r===0&&(r=.1*this._rng(),o=r),this.overlapAvoidanceFactor<1&&a.shape.radius&&(r=Math.max(.1+this.overlapAvoidanceFactor*a.shape.radius,r-a.shape.radius));var l=a.edges.length+1,u=this.options.gravitationalConstant*s.mass*a.options.mass*l/Math.pow(r,2),c=o*u,h=i*u;this.physicsBody.forces[a.id].x+=c,this.physicsBody.forces[a.id].y+=h}}]),n}(x5);function _Ie(t){var e=EIe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function EIe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var CIe=function(t){Ve(n,t);var e=_Ie(n);function n(r,o,i){return J(this,n),e.call(this,r,o,i)}return Z(n,[{key:"_calculateForces",value:function(r,o,i,a,s){if(r>0){var l=s.edges.length+1,u=this.options.centralGravity*l*s.options.mass;a[s.id].x=o*u,a[s.id].y=i*u}}}]),n}(Em),OIe=function(){function t(e){J(this,t),this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Vt(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return Z(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,fm(["stabilization"],this.options,e),Kr(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());var n=this.options.wind;n&&((typeof n.x!="number"||x_(n.x))&&(n.x=0),(typeof n.y!="number"||x_(n.y))&&(n.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new SIe(this.body,this.physicsBody,e),this.edgesSolver=new A_(this.body,this.physicsBody,e),this.gravitySolver=new CIe(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new yIe(this.body,this.physicsBody,e),this.edgesSolver=new A_(this.body,this.physicsBody,e),this.gravitySolver=new Em(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new bIe(this.body,this.physicsBody,e),this.edgesSolver=new wIe(this.body,this.physicsBody,e),this.gravitySolver=new Em(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new x5(this.body,this.physicsBody,e),this.edgesSolver=new A_(this.body,this.physicsBody,e),this.gravitySolver=new Em(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=Y(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var e=nm();this.physicsTick();var n=nm()-e;(n<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&Vo(function(){e.body.emitter.emit("stabilized",{iterations:n}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var e=1.2;this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/ea))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,n=0,r=0,o=5,i=0;ia&&(e=e>0?a:-a),e}},{key:"_performStep",value:function(e){var n=this.body.nodes[e],r=this.physicsBody.forces[e];this.options.wind&&(r.x+=this.options.wind.x,r.y+=this.options.wind.y);var o=this.physicsBody.velocities[e];this.previousStates[e]={x:n.x,y:n.y,vx:o.x,vy:o.y},n.options.fixed.x===!1?(o.x=this.calculateComponentVelocity(o.x,r.x,n.options.mass),n.x+=o.x*this.timestep):(r.x=0,o.x=0),n.options.fixed.y===!1?(o.y=this.calculateComponentVelocity(o.y,r.y,n.options.mass),n.y+=o.y*this.timestep):(r.y=0,o.y=0);var i=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2));return i}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n].x&&e[n].y){var r=e[n].options.fixed;this.freezeCache[n]={x:r.x,y:r.y},r.x=!0,r.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.freezeCache[n]!==void 0&&(e[n].options.fixed.x=this.freezeCache[n].x,e[n].options.fixed.y=this.freezeCache[n].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof n!="number"&&(n=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",n)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=n,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,Vo(function(){return e._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var e=this,n=function(){return e.stabilized===!1&&e.stabilizationIterations1&&arguments[1]!==void 0?arguments[1]:[],r=1e9,o=-1e9,i=1e9,a=-1e9,s;if(n.length>0)for(var l=0;ls.shape.boundingBox.left&&(i=s.shape.boundingBox.left),as.shape.boundingBox.top&&(r=s.shape.boundingBox.top),o1&&arguments[1]!==void 0?arguments[1]:[],r=1e9,o=-1e9,i=1e9,a=-1e9,s;if(n.length>0)for(var l=0;ls.x&&(i=s.x),as.y&&(r=s.y),o"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var AIe=function(t){Ve(n,t);var e=IIe(n);function n(r,o,i,a,s,l){var u;return J(this,n),u=e.call(this,r,o,i,a,s,l),u.isCluster=!0,u.containedNodes={},u.containedEdges={},u}return Z(n,[{key:"_openChildCluster",value:function(r){var o=this,i=this.body.nodes[r];if(this.containedNodes[r]===void 0)throw new Error("node with id: "+r+" not in current cluster");if(!i.isCluster)throw new Error("node with id: "+r+" is not a cluster");delete this.containedNodes[r],Me(i.edges,function(a){delete o.containedEdges[a.id]}),Me(i.containedNodes,function(a,s){o.containedNodes[s]=a}),i.containedNodes={},Me(i.containedEdges,function(a,s){o.containedEdges[s]=a}),i.containedEdges={},Me(i.edges,function(a){Me(o.edges,function(s){var l,u,c=$e(l=s.clusteringEdgeReplacingIds).call(l,a.id);c!==-1&&(Me(a.clusteringEdgeReplacingIds,function(h){s.clusteringEdgeReplacingIds.push(h),o.body.edges[h].edgeReplacedById=s.id}),Pi(u=s.clusteringEdgeReplacingIds).call(u,c,1))})}),i.edges=[]}}]),n}(Or),DIe=function(){function t(e){var n=this;J(this,t),this.body=e,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Vt(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){n.clusteredNodes={},n.clusteredEdges={}})}return Z(t,[{key:"clusterByHubsize",value:function(e,n){e===void 0?e=this._getHubSize():Ze(e)==="object"&&(n=this._checkOptions(e),e=this._getHubSize());for(var r=[],o=0;o=e&&r.push(i.id)}for(var a=0;a0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(n.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");n=this._checkOptions(n);var o={},i={};Me(this.body.nodes,function(a,s){a.options&&n.joinCondition(a.options)===!0&&(o[s]=a,Me(a.edges,function(l){e.clusteredEdges[l.id]===void 0&&(i[l.id]=l)}))}),this._cluster(o,i,n,r)}},{key:"clusterByEdgeCount",value:function(e,n){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;n=this._checkOptions(n);for(var i=[],a={},s,l,u,c=function(){var f={},p={},g=r.body.nodeIndices[h],b=r.body.nodes[g];if(a[g]===void 0){u=0,l=[];for(var m=0;m0&&Mt(p).length>0&&y===!0){var _=function(){for(var T=0;T1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,n)}},{key:"clusterBridges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,n)}},{key:"clusterByConnection",value:function(e,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");var i=this.body.nodes[e];n=this._checkOptions(n,i),n.clusterNodeProperties.x===void 0&&(n.clusterNodeProperties.x=i.x),n.clusterNodeProperties.y===void 0&&(n.clusterNodeProperties.y=i.y),n.clusterNodeProperties.fixed===void 0&&(n.clusterNodeProperties.fixed={},n.clusterNodeProperties.fixed.x=i.options.fixed.x,n.clusterNodeProperties.fixed.y=i.options.fixed.y);var a={},s={},l=i.id,u=Wn.cloneOptions(i);a[l]=i;for(var c=0;c-1&&(s[v.id]=v)}this._cluster(a,s,n,o)}},{key:"_createClusterEdges",value:function(e,n,r,o){for(var i,a,s,l,u,c,h=Mt(e),d=[],f=0;f0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=[];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&this.clusteredNodes[a]!==void 0&&i.push(a);for(var s=0;so?s.x:o,i=s.ya?s.y:a;return{x:.5*(r+o),y:.5*(i+a)}}},{key:"openCluster",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var o=this.body.nodes[e];if(o===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(o.isCluster!==!0||o.containedNodes===void 0||o.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");var i=this.findNode(e),a=$e(i).call(i,e)-1;if(a>=0){var s=i[a],l=this.body.nodes[s];l._openChildCluster(e),delete this.body.nodes[e],r===!0&&this.body.emitter.emit("_dataChanged");return}var u=o.containedNodes,c=o.containedEdges;if(n!==void 0&&n.releaseFunction!==void 0&&typeof n.releaseFunction=="function"){var h={},d={x:o.x,y:o.y};for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var p=this.body.nodes[f];h[f]={x:p.x,y:p.y}}var g=n.releaseFunction(d,h);for(var b in u)if(Object.prototype.hasOwnProperty.call(u,b)){var m=this.body.nodes[b];g[b]!==void 0&&(m.x=g[b].x===void 0?o.x:g[b].x,m.y=g[b].y===void 0?o.y:g[b].y)}}else Me(u,function(N){N.options.fixed.x===!1&&(N.x=o.x),N.options.fixed.y===!1&&(N.y=o.y)});for(var v in u)if(Object.prototype.hasOwnProperty.call(u,v)){var y=this.body.nodes[v];y.vx=o.vx,y.vy=o.vy,y.setOptions({physics:!0}),delete this.clusteredNodes[v]}for(var x=[],S=0;S0&&ao&&(o=a.edges.length),e+=a.edges.length,n+=Math.pow(a.edges.length,2),r+=1}e=e/r,n=n/r;var s=n-Math.pow(e,2),l=Math.sqrt(s),u=Math.floor(e+2*l);return u>o&&(u=o),u}},{key:"_createClusteredEdge",value:function(e,n,r,o,i){var a=Wn.cloneOptions(r,"edge");at(a,o),a.from=e,a.to=n,a.id="clusterEdge:"+Nh(),i!==void 0&&at(a,i);var s=this.body.functions.createEdge(a);return s.clusteringEdgeReplacingIds=[r.id],s.connect(),this.body.edges[s.id]=s,s}},{key:"_clusterEdges",value:function(e,n,r,o){if(n instanceof $u){var i=n,a={};a[i.id]=i,n=a}if(e instanceof Or){var s=e,l={};l[s.id]=s,e=l}if(r==null)throw new Error("_clusterEdges: parameter clusterNode required");o===void 0&&(o=r.clusterEdgeProperties),this._createClusterEdges(e,n,r,o);for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)&&this.body.edges[u]!==void 0){var c=this.body.edges[u];this._backupEdgeOptions(c),c.setOptions({physics:!1})}for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(this.clusteredNodes[h]={clusterId:r.id,node:this.body.nodes[h]},this.body.nodes[h].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(e){if(e!==void 0){var n=this.clusteredNodes[e];if(n!==void 0){var r=n.clusterId;if(r!==void 0)return this.body.nodes[r]}}}},{key:"_filter",value:function(e,n){var r=[];return Me(e,function(o){n(o)&&r.push(o)}),r}},{key:"_updateState",value:function(){var e=this,n,r=[],o={},i=function(d){Me(e.body.nodes,function(f){f.isCluster===!0&&d(f)})};for(n in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,n)){var a=this.body.nodes[n];a===void 0&&r.push(n)}i(function(d){for(var f=0;f0}(!d.endPointsValid()||!p)&&(o[f]=f)}),i(function(d){Me(o,function(f){delete d.containedEdges[f],Me(d.edges,function(p,g){if(p.id===f){d.edges[g]=null;return}p.clusteringEdgeReplacingIds=e._filter(p.clusteringEdgeReplacingIds,function(b){return!o[b]})}),d.edges=e._filter(d.edges,function(p){return p!==null})})}),Me(o,function(d){delete e.clusteredEdges[d]}),Me(o,function(d){delete e.body.edges[d]});var l=Mt(this.body.edges);Me(l,function(d){var f=e.body.edges[d],p=e._isClusteredNode(f.fromId)||e._isClusteredNode(f.toId);if(p!==e._isClusteredEdge(f.id))if(p){var g=e._getClusterNodeForNode(f.fromId);g!==void 0&&e._clusterEdges(e.body.nodes[f.fromId],f,g);var b=e._getClusterNodeForNode(f.toId);b!==void 0&&e._clusterEdges(e.body.nodes[f.toId],f,b)}else delete e._clusterEdges[d],e._restoreEdge(f)});for(var u=!1,c=!0,h=function(){var d=[];i(function(p){var g=Mt(p.containedNodes).length,b=p.options.allowSingleNodeCluster===!0;(b&&g<1||!b&&g<2)&&d.push(p.id)});for(var f=0;f0,u=u||c};c;)h();u&&this._updateState()}},{key:"_isClusteredNode",value:function(e){return this.clusteredNodes[e]!==void 0}},{key:"_isClusteredEdge",value:function(e){return this.clusteredEdges[e]!==void 0}}]),t}();function jIe(){var t;window!==void 0&&(t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),t===void 0?window.requestAnimationFrame=function(e){e()}:window.requestAnimationFrame=t}var NIe=function(){function t(e,n){J(this,t),jIe(),this.body=e,this.canvas=n,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Vt(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return Z(t,[{key:"bindEventListeners",value:function(){var e=this,n;this.body.emitter.on("dragStart",function(){e.dragging=!0}),this.body.emitter.on("dragEnd",function(){e.dragging=!1}),this.body.emitter.on("zoom",function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=Vo(function(){var r;e.zooming=!1,Y(r=e._requestRedraw).call(r,e)()},250)}),this.body.emitter.on("_resizeNodes",function(){e._resizeNodes()}),this.body.emitter.on("_redraw",function(){e.renderingActive===!1&&e._redraw()}),this.body.emitter.on("_blockRedraw",function(){e.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){e.allowRedraw=!0,e.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",Y(n=this._requestRedraw).call(n,this)),this.body.emitter.on("_startRendering",function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()}),this.body.emitter.on("_stopRendering",function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(e!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];zu(n,this.options,e)}}},{key:"_requestNextFrame",value:function(e,n){if(!(typeof window>"u")){var r,o=window;return this.requiresTimeout===!0?r=Vo(e,n):o.requestAnimationFrame&&(r=o.requestAnimationFrame(e)),r}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var e;this.renderTimer=this._requestNextFrame(Y(e=this._renderStep).call(e,this),this.simulationInterval)}}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){e._redraw(!1)},0))}},{key:"_redraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var n={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();var r=this.canvas.getContext(),o=this.canvas.frame.canvas.clientWidth,i=this.canvas.frame.canvas.clientHeight;if(r.clearRect(0,0,o,i),this.canvas.frame.clientWidth===0)return;if(r.save(),r.translate(this.body.view.translation.x,this.body.view.translation.y),r.scale(this.body.view.scale,this.body.view.scale),r.beginPath(),this.body.emitter.emit("beforeDrawing",r),r.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(r),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){var a=this._drawNodes(r,e),s=a.drawExternalLabels;n.drawExternalLabels=s}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(r),n.drawExternalLabels!=null&&n.drawExternalLabels(),e===!1&&this._drawSelectionBox(r),r.beginPath(),this.body.emitter.emit("afterDrawing",r),r.closePath(),r.restore(),e===!0&&r.clearRect(0,0,o,i)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);var n=this.body.nodes,r;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r=n[o],r.resize(e),r.updateBoundingBox(e,r.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.nodes,o=this.body.nodeIndices,i,a=[],s=[],l=20,u=this.canvas.DOMtoCanvas({x:-l,y:-l}),c=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+l,y:this.canvas.frame.canvas.clientHeight+l}),h={top:u.y,left:u.x,bottom:c.y,right:c.x},d=[],f=0;f0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}},{key:"_setCameraState",value:function(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,n=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,r=this.cameraState.scale;e!=1&&n!=1?r=this.cameraState.scale*.5*(e+n):e!=1?r=this.cameraState.scale*e:n!=1&&(r=this.cameraState.scale*n),this.body.view.scale=r;var o=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),i={x:o.x-this.cameraState.position.x,y:o.y-this.cameraState.position.y};this.body.view.translation.x+=i.x*this.body.view.scale,this.body.view.translation.y+=i.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if($e(e).call(e,"%")!==-1||$e(e).call(e,"px")!==-1)return e;if($e(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var e=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new Fu(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:Fu.DIRECTION_ALL}),Om(this.hammer,function(n){e.body.eventListeners.onTouch(n)}),this.hammer.on("tap",function(n){e.body.eventListeners.onTap(n)}),this.hammer.on("doubletap",function(n){e.body.eventListeners.onDoubleTap(n)}),this.hammer.on("press",function(n){e.body.eventListeners.onHold(n)}),this.hammer.on("panstart",function(n){e.body.eventListeners.onDragStart(n)}),this.hammer.on("panmove",function(n){e.body.eventListeners.onDrag(n)}),this.hammer.on("panend",function(n){e.body.eventListeners.onDragEnd(n)}),this.hammer.on("pinch",function(n){e.body.eventListeners.onPinch(n)}),this.frame.canvas.addEventListener("wheel",function(n){e.body.eventListeners.onMouseWheel(n)}),this.frame.canvas.addEventListener("mousemove",function(n){e.body.eventListeners.onMouseMove(n)}),this.frame.canvas.addEventListener("contextmenu",function(n){e.body.eventListeners.onContext(n)}),this.hammerFrame=new Fu(this.frame),S5(this.hammerFrame,function(n){e.body.eventListeners.onRelease(n)})}},{key:"setSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),n=this._prepareValue(n);var r=!1,o=this.frame.canvas.width,i=this.frame.canvas.height,a=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||n!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=n)this._getCameraState(a),this.frame.style.width=e,this.frame.style.height=n,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=n,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},r=!0;else{var s=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),l=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==s||this.frame.canvas.height!==l)&&this._getCameraState(a),this.frame.canvas.width!==s&&(this.frame.canvas.width=s,r=!0),this.frame.canvas.height!==l&&(this.frame.canvas.height=l,r=!0)}return r===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(o/this.pixelRatio),oldHeight:Math.round(i/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,r}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");var n=1;typeof window<"u"&&(n=window.devicePixelRatio||1);var r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/r}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),t}();function WIe(t,e){var n=Vt({nodes:e,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},t??{});if(!Ge(n.nodes))throw new TypeError("Nodes has to be an array of ids.");if(n.nodes.length===0&&(n.nodes=e),!(typeof n.minZoomLevel=="number"&&n.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof n.maxZoomLevel=="number"&&n.minZoomLevel<=n.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return n}var HIe=function(){function t(e,n){var r,o=this,i;J(this,t),this.body=e,this.canvas=n,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",Y(r=this.fit).call(r,this)),this.body.emitter.on("animationFinished",function(){o.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",Y(i=this.releaseNode).call(i,this))}return Z(t,[{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}},{key:"fit",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=WIe(e,this.body.nodeIndices);var r=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight,i,a;if(r===0||o===0)a=1,i=Wn.getRange(this.body.nodes,e.nodes);else if(n===!0){var s=0;for(var l in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,l)){var u=this.body.nodes[l];u.predefinedPosition===!0&&(s+=1)}if(s>.5*this.body.nodeIndices.length){this.fit(e,!1);return}i=Wn.getRange(this.body.nodes,e.nodes);var c=this.body.nodeIndices.length;a=12.662/(c+7.4147)+.0964822;var h=Math.min(r/600,o/600);a*=h}else{this.body.emitter.emit("_resizeNodes"),i=Wn.getRange(this.body.nodes,e.nodes);var d=Math.abs(i.maxX-i.minX)*1.1,f=Math.abs(i.maxY-i.minY)*1.1,p=r/d,g=o/f;a=p<=g?p:g}a>e.maxZoomLevel?a=e.maxZoomLevel:a1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){var r={x:this.body.nodes[e].x,y:this.body.nodes[e].y};n.position=r,n.lockedOnNode=e,this.moveTo(n)}else console.error("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!zs(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!zs(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!zs(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!zs(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}},{key:"animateView",value:function(e){if(e!==void 0){this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;var n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r={x:n.x-e.position.x,y:n.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+r.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+r.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var o;this.viewFunction=Y(o=this._lockedRedraw).call(o,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var i;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=Y(i=this._transitionRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r={x:n.x-e.x,y:n.y-e.y},o=this.body.view.translation,i={x:o.x+r.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+r.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=i}},{key:"releaseNode",value:function(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var n=OEe[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*n,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*n,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*n},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var r;this.viewFunction=Y(r=this._lockedRedraw).call(r,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();function _5(t){var e=t&&t.preventDefault||!1,n=t&&t.container||window,r={},o={keydown:{},keyup:{}},i={},a;for(a=97;a<=122;a++)i[String.fromCharCode(a)]={code:65+(a-97),shift:!1};for(a=65;a<=90;a++)i[String.fromCharCode(a)]={code:a,shift:!0};for(a=0;a<=9;a++)i[""+a]={code:48+a,shift:!1};for(a=1;a<=12;a++)i["F"+a]={code:111+a,shift:!1};for(a=0;a<=9;a++)i["num"+a]={code:96+a,shift:!1};i["num*"]={code:106,shift:!1},i["num+"]={code:107,shift:!1},i["num-"]={code:109,shift:!1},i["num/"]={code:111,shift:!1},i["num."]={code:110,shift:!1},i.left={code:37,shift:!1},i.up={code:38,shift:!1},i.right={code:39,shift:!1},i.down={code:40,shift:!1},i.space={code:32,shift:!1},i.enter={code:13,shift:!1},i.shift={code:16,shift:void 0},i.esc={code:27,shift:!1},i.backspace={code:8,shift:!1},i.tab={code:9,shift:!1},i.ctrl={code:17,shift:!1},i.alt={code:18,shift:!1},i.delete={code:46,shift:!1},i.pageup={code:33,shift:!1},i.pagedown={code:34,shift:!1},i["="]={code:187,shift:!1},i["-"]={code:189,shift:!1},i["]"]={code:221,shift:!1},i["["]={code:219,shift:!1};var s=function(c){u(c,"keydown")},l=function(c){u(c,"keyup")},u=function(c,h){if(o[h][c.keyCode]!==void 0){for(var d=o[h][c.keyCode],f=0;f700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}},{key:"_stopMovement",value:function(){for(var e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,n=this.body.view.scale*(1+this.options.keyboard.speed.zoom),r=this.body.view.translation,o=n/e,i=(1-o)*this.canvas.canvasViewCenter.x+r.x*o,a=(1-o)*this.canvas.canvasViewCenter.y+r.y*o;this.body.view.scale=n,this.body.view.translation={x:i,y:a},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,n=this.body.view.scale/(1+this.options.keyboard.speed.zoom),r=this.body.view.translation,o=n/e,i=(1-o)*this.canvas.canvasViewCenter.x+r.x*o,a=(1-o)*this.canvas.canvasViewCenter.y+r.y*o;this.body.view.scale=n,this.body.view.translation={x:i,y:a},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=_5({container:window,preventDefault:!0}):this.keycharm=_5({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var n,r,o,i,a,s,l,u,c,h,d,f,p,g,b,m,v,y,x,S,_,E,O,w;Y(n=this.keycharm).call(n,"up",function(){e.bindToRedraw("_moveUp")},"keydown"),Y(r=this.keycharm).call(r,"down",function(){e.bindToRedraw("_moveDown")},"keydown"),Y(o=this.keycharm).call(o,"left",function(){e.bindToRedraw("_moveLeft")},"keydown"),Y(i=this.keycharm).call(i,"right",function(){e.bindToRedraw("_moveRight")},"keydown"),Y(a=this.keycharm).call(a,"=",function(){e.bindToRedraw("_zoomIn")},"keydown"),Y(s=this.keycharm).call(s,"num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),Y(l=this.keycharm).call(l,"num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),Y(u=this.keycharm).call(u,"-",function(){e.bindToRedraw("_zoomOut")},"keydown"),Y(c=this.keycharm).call(c,"[",function(){e.bindToRedraw("_zoomOut")},"keydown"),Y(h=this.keycharm).call(h,"]",function(){e.bindToRedraw("_zoomIn")},"keydown"),Y(d=this.keycharm).call(d,"pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),Y(f=this.keycharm).call(f,"pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),Y(p=this.keycharm).call(p,"up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),Y(g=this.keycharm).call(g,"down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),Y(b=this.keycharm).call(b,"left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),Y(m=this.keycharm).call(m,"right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),Y(v=this.keycharm).call(v,"=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Y(y=this.keycharm).call(y,"num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Y(x=this.keycharm).call(x,"num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),Y(S=this.keycharm).call(S,"-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),Y(_=this.keycharm).call(_,"[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),Y(E=this.keycharm).call(E,"]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Y(O=this.keycharm).call(O,"pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Y(w=this.keycharm).call(w,"pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")}}}]),t}();function UIe(t,e){var n=typeof wa<"u"&&Ss(t)||t["@@iterator"];if(!n){if(Ge(t)||(n=qIe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function qIe(t,e){var n;if(t){if(typeof t=="string")return E5(t,e);var r=yn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E5(t,e)}}function E5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(e){var n=this.getPointer(e.center),r=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(n,r),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n)}},{key:"onDoubleTap",value:function(e){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,n)}},{key:"onHold",value:function(e){var n=this.getPointer(e.center),r=this.selectionHandler.options.multiselect;this.checkSelectionChanges(n,r),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n),this.selectionHandler.generateClickEvent("hold",e,n)}},{key:"onRelease",value:function(e){if(new Date().valueOf()-this.touchTime>10){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,n),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(e){var n=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,n)}},{key:"checkSelectionChanges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}},{key:"_determineDifference",value:function(e,n){var r=function(o,i){for(var a=[],s=0;s=i.minX&&c.x<=i.maxX&&c.y>=i.minY&&c.y<=i.maxY});nt(a).call(a,function(u){return n.selectionHandler.selectObject(n.body.nodes[u])});var s=this.getPointer(e.center);this.selectionHandler.commitAndEmit(s,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var l=this.drag.selection;l&&l.length?(nt(l).call(l,function(u){u.node.options.fixed.x=u.xFixed,u.node.options.fixed.y=u.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(e){var n=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var r=this.pinch.scale*e.scale;this.zoom(r,n)}},{key:"zoom",value:function(e,n){if(this.options.zoomView===!0){var r=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);var o=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(o=this.canvas.DOMtoCanvas(this.drag.pointer));var i=this.body.view.translation,a=e/r,s=(1-a)*n.x+i.x*a,l=(1-a)*n.y+i.y*a;if(this.body.view.scale=e,this.body.view.translation={x:s,y:l},o!=null){var u=this.canvas.canvasToDOM(o);this.drag.pointer.x=u.x,this.drag.pointer.y=u.y}this.body.emitter.emit("_requestRedraw"),r0&&(this.popupObj=u[h[h.length-1]],a=!0)}if(this.popupObj===void 0&&a===!1){for(var f=this.body.edgeIndices,p=this.body.edges,g,b=[],m=0;m0&&(this.popupObj=p[b[b.length-1]],s="edge")}this.popupObj!==void 0?this.popupObj.id!==i&&(this.popup===void 0&&(this.popup=new jEe(this.canvas.frame)),this.popup.popupTargetType=s,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(e){var n=this.selectionHandler._pointerToPositionObject(e),r=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(r=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(n),r===!0)){var o=this.selectionHandler.getNodeAt(e);r=o===void 0?!1:o.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(r=this.body.edges[this.popup.popupTargetId].isOverlappingWith(n));r===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),YIe=y_,XIe=PB;YIe("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},XIe);var GIe=Be,QIe=GIe.Set,JIe=QIe,ZIe=JIe,eRe=ZIe,Ls=de(eRe),tRe=He,C5=b_,Tm=mm.getWeakData,nRe=m_,rRe=Cr,oRe=du,D_=an,iRe=v_,O5=ya,T5=sn,P5=xs,aRe=P5.set,sRe=P5.getterFor,lRe=O5.find,uRe=O5.findIndex,cRe=tRe([].splice),dRe=0,Pm=function(t){return t.frozen||(t.frozen=new M5)},M5=function(){this.entries=[]},j_=function(t,e){return lRe(t.entries,function(n){return n[0]===e})};M5.prototype={get:function(t){var e=j_(this,t);if(e)return e[1]},has:function(t){return!!j_(this,t)},set:function(t,e){var n=j_(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=uRe(this.entries,function(n){return n[0]===t});return~e&&cRe(this.entries,e,1),!!~e}};var hRe={getConstructor:function(t,e,n,r){var o=t(function(l,u){nRe(l,i),aRe(l,{type:e,id:dRe++,frozen:void 0}),oRe(u)||iRe(u,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=sRe(e),s=function(l,u,c){var h=a(l),d=Tm(rRe(u),!0);return d===!0?Pm(h).set(u,c):d[h.id]=c,l};return C5(i,{delete:function(l){var u=a(this);if(!D_(l))return!1;var c=Tm(l);return c===!0?Pm(u).delete(l):c&&T5(c,u.id)&&delete c[u.id]},has:function(l){var u=a(this);if(!D_(l))return!1;var c=Tm(l);return c===!0?Pm(u).has(l):c&&T5(c,u.id)}}),C5(i,n?{get:function(l){var u=a(this);if(D_(l)){var c=Tm(l);return c===!0?Pm(u).get(l):c?c[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),o}},fRe=vB,I5=Ct,Mm=He,R5=b_,pRe=mm,gRe=y_,A5=hRe,Im=an,Rm=xs.enforce,vRe=Le,mRe=TN,zh=Object,yRe=Array.isArray,Am=zh.isExtensible,D5=zh.isFrozen,bRe=zh.isSealed,j5=zh.freeze,wRe=zh.seal,N5={},z5={},xRe=!I5.ActiveXObject&&"ActiveXObject"in I5,Fh,F5=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},L5=gRe("WeakMap",F5,A5),Wu=L5.prototype,Dm=Mm(Wu.set),kRe=function(){return fRe&&vRe(function(){var t=j5([]);return Dm(new L5,t,1),!D5(t)})};if(mRe)if(xRe){Fh=A5.getConstructor(F5,"WeakMap",!0),pRe.enable();var B5=Mm(Wu.delete),jm=Mm(Wu.has),$5=Mm(Wu.get);R5(Wu,{delete:function(t){if(Im(t)&&!Am(t)){var e=Rm(this);return e.frozen||(e.frozen=new Fh),B5(this,t)||e.frozen.delete(t)}return B5(this,t)},has:function(t){if(Im(t)&&!Am(t)){var e=Rm(this);return e.frozen||(e.frozen=new Fh),jm(this,t)||e.frozen.has(t)}return jm(this,t)},get:function(t){if(Im(t)&&!Am(t)){var e=Rm(this);return e.frozen||(e.frozen=new Fh),jm(this,t)?$5(this,t):e.frozen.get(t)}return $5(this,t)},set:function(t,e){if(Im(t)&&!Am(t)){var n=Rm(this);n.frozen||(n.frozen=new Fh),jm(this,t)?Dm(this,t,e):n.frozen.set(t,e)}else Dm(this,t,e);return this}})}else kRe()&&R5(Wu,{set:function(t,e){var n;return yRe(t)&&(D5(t)?n=N5:bRe(t)&&(n=z5)),Dm(this,t,e),n===N5&&j5(t),n===z5&&wRe(t),this}});var SRe=Be,_Re=SRe.WeakMap,ERe=_Re,CRe=ERe,ORe=CRe,Lh=de(ORe);function lt(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function N_(t,e,n,r,o){if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}function z_(t,e){var n=typeof wa<"u"&&Ss(t)||t["@@iterator"];if(!n){if(Ge(t)||(n=TRe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function TRe(t,e){var n;if(t){if(typeof t=="string")return W5(t,e);var r=yn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return W5(t,e)}}function W5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&arguments[0]!==void 0?arguments[0]:function(){};J(this,t),Ra.set(this,new V5),Aa.set(this,new V5),Nm.set(this,void 0),N_(this,Nm,e)}return Z(t,[{key:"sizeNodes",get:function(){return lt(this,Ra,"f").size}},{key:"sizeEdges",get:function(){return lt(this,Aa,"f").size}},{key:"getNodes",value:function(){return lt(this,Ra,"f").getSelection()}},{key:"getEdges",value:function(){return lt(this,Aa,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=lt(this,Ra,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=lt(this,Aa,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){lt(this,Ra,"f").delete(e)}},{key:"deleteEdges",value:function(e){lt(this,Aa,"f").delete(e)}},{key:"clear",value:function(){lt(this,Ra,"f").clear(),lt(this,Aa,"f").clear()}},{key:"commit",value:function(){for(var e,n,r={nodes:lt(this,Ra,"f").commit(),edges:lt(this,Aa,"f").commit()},o=arguments.length,i=new Array(o),a=0;a=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function MRe(t,e){var n;if(t){if(typeof t=="string")return q5(t,e);var r=yn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q5(t,e)}}function q5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n4&&arguments[4]!==void 0?arguments[4]:!1,a=this._initBaseEvent(n,r);if(i===!0)a.nodes=[],a.edges=[];else{var s=this.getSelection();a.nodes=s.nodes,a.edges=s.edges}o!==void 0&&(a.previousSelection=o),e=="click"&&(a.items=this.getClickedItems(r)),n.controlEdge!==void 0&&(a.controlEdge=n.controlEdge),this.body.emitter.emit(e,a)}},{key:"selectObject",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof Or){if(n===!0){var r;(r=this._selectionAccumulator).addEdges.apply(r,Ho(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var n=[],r=this.body.nodes,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,r=this._pointerToPositionObject(e),o=this._getAllNodesOverlappingWith(r);if(o.length>0)return n===!0?this.body.nodes[o[o.length-1]]:o[o.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,n){for(var r=this.body.edges,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,r=this.canvas.DOMtoCanvas(e),o=10,i=null,a=this.body.edges,s=0;s0&&(this.generateClickEvent("deselectEdge",n,e,i),r=!0),o.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",n,e,i),r=!0),o.nodes.added.length>0&&(this.generateClickEvent("selectNode",n,e),r=!0),o.edges.added.length>0&&(this.generateClickEvent("selectEdge",n,e),r=!0),r===!0&&this.generateClickEvent("select",n,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return Tu(e=this._selectionAccumulator.getNodes()).call(e,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return Tu(e=this._selectionAccumulator.getEdges()).call(e,function(n){return n.id})}},{key:"setSelection",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((n.unselectAll||n.unselectAll===void 0)&&this.unselectAll(),e.nodes){var r=U5(e.nodes),o;try{for(r.s();!(o=r.n()).done;){var i=o.value,a=this.body.nodes[i];if(!a)throw new RangeError('Node with id "'+i+'" not found');this.selectObject(a,n.highlightEdges)}}catch(h){r.e(h)}finally{r.f()}}if(e.edges){var s=U5(e.edges),l;try{for(s.s();!(l=s.n()).done;){var u=l.value,c=this.body.edges[u];if(!c)throw new RangeError('Edge with id "'+u+'" not found');this.selectObject(c)}}catch(h){s.e(h)}finally{s.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:n})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var n in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,n.id)||this._selectionAccumulator.deleteEdges(n)}},{key:"getClickedItems",value:function(e){for(var n=this.canvas.DOMtoCanvas(e),r=[],o=this.body.nodeIndices,i=this.body.nodes,a=o.length-1;a>=0;a--){var s=i[o[a]],l=s.getItemsOnPoint(n);r.push.apply(r,l)}for(var u=this.body.edgeIndices,c=this.body.edges,h=u.length-1;h>=0;h--){var d=c[u[h]],f=d.getItemsOnPoint(n);r.push.apply(r,f)}return r}}]),t}(),K5=Iz,RRe=Math.floor,F_=function(t,e){var n=t.length,r=RRe(n/2);return n<8?ARe(t,e):DRe(t,F_(K5(t,0,r),e),F_(K5(t,r),e),e)},ARe=function(t,e){for(var n=t.length,r=1,o,i;r0;)t[i]=t[--i];i!==r++&&(t[i]=o)}return t},DRe=function(t,e,n,r){for(var o=e.length,i=n.length,a=0,s=0;a3)){if(YRe)return!0;if(t3)return t3<603;var t="",e,n,r,o;for(e=65;e<76;e++){switch(n=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(o=0;o<47;o++)Da.push({k:n+o,v:r})}for(Da.sort(function(i,a){return a.v-i.v}),o=0;oJ5(n)?1:-1}};WRe({target:"Array",proto:!0,forced:ZRe},{sort:function(t){t!==void 0&&HRe(t);var e=VRe(this);if(r3)return t===void 0?n3(e):n3(e,t);var n=[],r=Q5(e),o,i;for(i=0;i=0:s>l;l+=u)l in a&&(o=n(o,a[l],l,i));return o}},pAe={left:o3(!1),right:o3(!0)},gAe=Ct,vAe=Ci,mAe=vAe(gAe.process)==="process",yAe=me,bAe=pAe.left,wAe=Pu,i3=Jd,xAe=mAe,kAe=!xAe&&i3>79&&i3<83,SAe=kAe||!wAe("reduce");yAe({target:"Array",proto:!0,forced:SAe},{reduce:function(t){var e=arguments.length;return bAe(this,t,e,e>1?arguments[1]:void 0)}});var _Ae=ln,EAe=_Ae("Array").reduce,CAe=Nt,OAe=EAe,$_=Array.prototype,TAe=function(t){var e=t.reduce;return t===$_||CAe($_,t)&&e===$_.reduce?OAe:e},PAe=TAe,MAe=PAe,IAe=MAe,a3=de(IAe);function s3(t){var e=RAe();return function(){var n=se(t),r;if(e){var o=se(this).constructor;r=V(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function RAe(){if(typeof Reflect>"u"||!V||V.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(V(Boolean,[],function(){})),!0}catch{return!1}}var l3=function(){function t(){J(this,t)}return Z(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,n,r),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,n){this.fake_use(e,n),this.abstract()}},{key:"shift",value:function(e,n){this.fake_use(e,n),this.abstract()}}]),t}(),AAe=function(t){Ve(n,t);var e=s3(n);function n(r){var o;return J(this,n),o=e.call(this),o.layout=r,o}return Z(n,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(r){return r.x}},{key:"setPosition",value:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;i!==void 0&&this.layout.hierarchical.addToOrdering(r,i),r.x=o}},{key:"getTreeSize",value:function(r){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,r);return{min:o.min_x,max:o.max_x}}},{key:"sort",value:function(r){Bh(r).call(r,function(o,i){return o.x-i.x})}},{key:"fix",value:function(r,o){r.y=this.layout.options.hierarchical.levelSeparation*o,r.options.fixed.y=!0}},{key:"shift",value:function(r,o){this.layout.body.nodes[r].x+=o}}]),n}(l3),DAe=function(t){Ve(n,t);var e=s3(n);function n(r){var o;return J(this,n),o=e.call(this),o.layout=r,o}return Z(n,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(r){return r.y}},{key:"setPosition",value:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;i!==void 0&&this.layout.hierarchical.addToOrdering(r,i),r.y=o}},{key:"getTreeSize",value:function(r){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,r);return{min:o.min_y,max:o.max_y}}},{key:"sort",value:function(r){Bh(r).call(r,function(o,i){return o.y-i.y})}},{key:"fix",value:function(r,o){r.x=this.layout.options.hierarchical.levelSeparation*o,r.options.fixed.x=!0}},{key:"shift",value:function(r,o){this.layout.body.nodes[r].y+=o}}]),n}(l3),jAe=me,NAe=ya.every,zAe=Pu,FAe=zAe("every");jAe({target:"Array",proto:!0,forced:!FAe},{every:function(t){return NAe(this,t,arguments.length>1?arguments[1]:void 0)}});var LAe=ln,BAe=LAe("Array").every,$Ae=Nt,WAe=BAe,W_=Array.prototype,HAe=function(t){var e=t.every;return t===W_||$Ae(W_,t)&&e===W_.every?WAe:e},VAe=HAe,UAe=VAe,qAe=UAe,u3=de(qAe);function KAe(t,e){var n=typeof wa<"u"&&Ss(t)||t["@@iterator"];if(!n){if(Ge(t)||(n=YAe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function YAe(t,e){var n;if(t){if(typeof t=="string")return c3(t,e);var r=yn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c3(t,e)}}function c3(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=e[i])&&(e[i]=e[o]+1)}),e}function GAe(t){return d3(function(e){var n,r;return u3(n=lr(r=e.edges).call(r,function(o){return t.has(o.toId)})).call(n,function(o){return o.to===e})},function(e,n){return n>e},"from",t)}function QAe(t){return d3(function(e){var n,r;return u3(n=lr(r=e.edges).call(r,function(o){return t.has(o.toId)})).call(n,function(o){return o.from===e})},function(e,n){return na)return{v:{v:XAe(r,i)}};++m},x;v=b.pop();)if(x=y(),x!==0&&x)return x.v},d;for(u.s();!(c=u.n()).done;)if(d=h(),d!==0&&d)return d.v}catch(f){u.e(f)}finally{u.f()}return i}var JAe=function(){function t(){J(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return Z(t,[{key:"addRelation",value:function(e,n){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(n),this.parentReference[n]===void 0&&(this.parentReference[n]=[]),this.parentReference[n].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,n){n!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=n,this.treeIndex=Math.max(n,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var n=this,r={},o=function i(a){if(r[a]!==void 0)return r[a];var s=n.levels[a];if(n.childrenReference[a]){var l=n.childrenReference[a];if(l.length>0)for(var u=0;u0&&(r.levelSeparation*=-1):r.levelSeparation<0&&(r.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(n);if(o===!0)return this.body.emitter.emit("refresh"),at(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=hm(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var n=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:n.enabled===void 0?!0:n.enabled,solver:"hierarchicalRepulsion"},n.enabled=n.enabled===void 0?!0:n.enabled,n.solver=n.solver||"barnesHut"):Ze(e.physics)==="object"?(n.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,n.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(n.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var r=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:r};else{var o=e.edges.smooth;o.type!==void 0&&o.type!=="dynamic"&&(r=o.type),this.optionsBackup.edges={smooth:{enabled:o.enabled===void 0?!0:o.enabled,type:o.type===void 0?"dynamic":o.type,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}},e.edges.smooth={enabled:o.enabled===void 0?!0:o.enabled,type:r,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",r)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var n=e.length+50,r=0;rs){for(var u=e.length;e.length>s&&a<=i;){a+=1;var c=e.length;a%3===0?this.body.modules.clustering.clusterBridges(l):this.body.modules.clustering.clusterOutliers(l);var h=e.length;if(c==h&&a%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*u)})}a>i&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();for(var d=70,f=0;f0){var e,n,r=!1,o=!1;this.lastNodeOnLevel={},this.hierarchical=new JAe;for(n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&(e=this.body.nodes[n],e.options.level!==void 0?(r=!0,this.hierarchical.levels[n]=e.options.level):o=!0);if(o===!0&&r===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(o===!0){var i=this.options.hierarchical.sortMethod;i==="hubsize"?this._determineLevelsByHubsize():i==="directed"?this._determineLevelsDirected():i==="custom"&&this._determineLevelsCustomCallback()}for(var a in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,a)&&this.hierarchical.ensureLevel(a);var s=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(s),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,n=!1,r={},o=function(){for(var m=a(),v=0,y=0;y0)for(var S=0;S1&&arguments[1]!==void 0?arguments[1]:1e9,y=1e9,x=1e9,S=1e9,_=-1e9;for(var E in m)if(Object.prototype.hasOwnProperty.call(m,E)){var O=e.body.nodes[E],w=e.hierarchical.levels[O.id],T=e.direction.getPosition(O),I=e._getSpaceAroundNode(O,m),A=Pt(I,2),D=A[0],R=A[1];y=Math.min(D,y),x=Math.min(R,x),w<=v&&(S=Math.min(T,S),_=Math.max(T,_))}return[S,_,y,x]},u=function(m,v){var y=e.hierarchical.getMaxLevel(m.id),x=e.hierarchical.getMaxLevel(v.id);return Math.min(y,x)},c=function(m,v,y){for(var x=e.hierarchical,S=0;S1)for(var O=0;O2&&arguments[2]!==void 0?arguments[2]:!1,x=e.direction.getPosition(m),S=e.direction.getPosition(v),_=Math.abs(S-x),E=e.options.hierarchical.nodeSpacing;if(_>E){var O={},w={};s(m,O),s(v,w);var T=u(m,v),I=l(O,T),A=l(w,T),D=I[1],R=A[0],P=A[2],M=Math.abs(D-R);if(M>E){var N=D-R+E;N<-P+E&&(N=-P+E),N<0&&(e._shiftBlock(v.id,N),n=!0,y===!0&&e._centerParent(v))}}},d=function(m,v){for(var y=v.id,x=v.edges,S=e.hierarchical.levels[v.id],_=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,E={},O=[],w=0;w0?ge=Math.min(ae,te-e.options.hierarchical.nodeSpacing):ae<0&&(ge=-Math.min(-ae,X-e.options.hierarchical.nodeSpacing)),ge!=0&&(e._shiftBlock(v.id,ge),n=!0)},M=function(j){var W=e.direction.getPosition(v),B=e._getSpaceAroundNode(v),ee=Pt(B,2),X=ee[0],te=ee[1],ae=j-W,ge=W;ae>0?ge=Math.min(W+(te-e.options.hierarchical.nodeSpacing),j):ae<0&&(ge=Math.max(W-(X-e.options.hierarchical.nodeSpacing),j)),ge!==W&&(e.direction.setPosition(v,ge),n=!0)},N=R(m,O);P(N),N=R(m,x),M(N)},f=function(m){var v=e.hierarchical.getLevels();v=Os(v).call(v);for(var y=0;y0&&Math.abs(f)0&&(u=this.direction.getPosition(o[a-1])+l),this.direction.setPosition(s,u,n),this._validatePositionAndContinue(s,n,u),i++}}}}},{key:"_placeBranchNodes",value:function(e,n){var r,o=this.hierarchical.childrenReference[e];if(o!==void 0){for(var i=[],a=0;an&&this.positionedNodes[l.id]===void 0){var c=this.options.hierarchical.nodeSpacing,h=void 0;s===0?h=this.direction.getPosition(this.body.nodes[e]):h=this.direction.getPosition(i[s-1])+c,this.direction.setPosition(l,h,u),this._validatePositionAndContinue(l,u,h)}else return}var d=this._getCenterPosition(i);this.direction.setPosition(this.body.nodes[e],d,n)}}},{key:"_validatePositionAndContinue",value:function(e,n,r){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[n]!==void 0){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[n]]);if(r-oe.hierarchical.levels[r.id]&&e.hierarchical.addRelation(r.id,o.id)};this._crawlNetwork(n),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},r=arguments.length>1?arguments[1]:void 0,o={},i=function h(d,f){if(o[d.id]===void 0){e.hierarchical.setTreeIndex(d,f),o[d.id]=!0;for(var p,g=e._getActiveEdges(d),b=0;b=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function tDe(t,e){var n;if(t){if(typeof t=="string")return h3(t,e);var r=yn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h3(t,e)}}function h3(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&this.options.deleteNode!==!1?(s===!0&&this._createSeperator(4),this._createDeleteButton(a)):r===0&&this.options.deleteEdge!==!1&&(s===!0&&this._createSeperator(4),this._createDeleteButton(a))),this._bindElementEvents(this.closeDiv,Y(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",Y(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,r=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(r),this._createSeperator(),this._createDescription(r.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,Y(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",Y(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var n=this.selectionHandler.getSelectedNodes()[0];if(n!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(n.isCluster!==!0){var r=at({},n.options,!1);if(r.x=n.x,r.y=n.y,this.options.editNode.length===2)this.options.editNode(r,function(o){o!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(o),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,n,r,o,i;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var a,s=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(s),this._createSeperator(),this._createDescription(s.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Y(a=this.toggleEditMode).call(a,this))}this._temporaryBindUI("onTouch",Y(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",Y(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",Y(r=this._dragControlNode).call(r,this)),this._temporaryBindUI("onRelease",Y(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",Y(i=this._dragStartEdge).call(i,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",Ze(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var n,r=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(r),this._createSeperator(),this._createDescription(r.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Y(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var o,i,a,s,l=this.body.edges[this.edgeBeingEditedId],u=this._getNewTargetNode(l.from.x,l.from.y),c=this._getNewTargetNode(l.to.x,l.to.y);this.temporaryIds.nodes.push(u.id),this.temporaryIds.nodes.push(c.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this.body.nodes[c.id]=c,this.body.nodeIndices.push(c.id),this._temporaryBindUI("onTouch",Y(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",Y(i=this._controlNodeDragStart).call(i,this)),this._temporaryBindUI("onDrag",Y(a=this._controlNodeDrag).call(a,this)),this._temporaryBindUI("onDragEnd",Y(s=this._controlNodeDragEnd).call(s,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(h){var d=l.edgeType.findBorderPositions(h);u.selected===!1&&(u.x=d.from.x,u.y=d.from.y),c.selected===!1&&(c.x=d.to.x,c.y=d.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),r=this.selectionHandler.getSelectedEdgeIds(),o=void 0;if(n.length>0){for(var i=0;i0&&typeof this.options.deleteEdge=="function"&&(o=this.options.deleteEdge);if(typeof o=="function"){var a={nodes:n,edges:r};if(o.length===2)o(a,function(s){s!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(s.edges),e.body.data.nodes.getDataSet().remove(s.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(r),this.body.data.nodes.getDataSet().remove(n),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,n){var r=at({},this.options.controlNodeStyle);r.id="targetNode"+Nh(),r.hidden=!1,r.physics=!1,r.x=e,r.y=n;var o=this.body.functions.createNode(r);return o.shape.boundingBox={left:e,right:e,top:n,bottom:n},o}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},Sa(this.editModeDiv);var n=this.options.locales[this.options.locale],r=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(r),this._bindElementEvents(r,Y(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(Sa(this.editModeDiv),Sa(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=eDe(Pi(e=this._domEventListenerCleanupQueue).call(e,0)),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;o()}}catch(i){n.e(i)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),Sa(this.manipulationDiv),Sa(this.editModeDiv),Sa(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var n,r=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,Y(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(e){var n,r=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,Y(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(e){var n,r=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,Y(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(e){var n,r=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,Y(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(e){var n,r;this.options.rtl?r="vis-delete-rtl":r="vis-delete";var o=this._createButton("delete",r,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(o),this._bindElementEvents(o,Y(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(e){var n,r=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,Y(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+n,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=o,this.manipulationDOM[e+"Label"].innerText=r,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,n){this.temporaryEventFunctions.push({event:e,boundFunction:n}),this.body.emitter.on(e,n)}},{key:"_temporaryBindUI",value:function(e,n){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+mh(Mt(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e=0;s--)if(i[s]!==this.selectedControlNode.id){a=this.body.nodes[i[s]];break}if(a!==void 0&&this.selectedControlNode!==void 0)if(a.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var l=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===l.id?this._performEditEdge(a.id,o.to.id):this._performEditEdge(o.from.id,a.id)}else o.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Vt({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,r=this.selectionHandler.getNodeAt(n);if(r!==void 0)if(r.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var o=this._getNewTargetNode(r.x,r.y);this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id);var i=this.body.functions.createEdge({id:"connectionEdge"+Nh(),from:r.id,to:o.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[i.id]=i,this.body.edgeIndices.push(i.id),this.temporaryIds.nodes.push(o.id),this.temporaryIds.edges.push(i.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var n=this.body.functions.getPointer(e.center),r=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var i=this.selectionHandler._getAllNodesOverlappingWith(r),a=void 0,s=i.length-1;s>=0;s--){var l;if($e(l=this.temporaryIds.nodes).call(l,i[s])===-1){a=this.body.nodes[i[s]];break}}if(e.controlEdge={from:o,to:a?a.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,n),this.temporaryIds.nodes[0]!==void 0){var u=this.body.nodes[this.temporaryIds.nodes[0]];u.x=this.canvas._XconvertDOMtoCanvas(n.x),u.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var n=this.body.functions.getPointer(e.center),r=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var i=this.selectionHandler._getAllNodesOverlappingWith(r),a=void 0,s=i.length-1;s>=0;s--){var l;if($e(l=this.temporaryIds.nodes).call(l,i[s])===-1){a=this.body.nodes[i[s]];break}}this._cleanupTemporaryNodesAndEdges(),a!==void 0&&(a.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[o]!==void 0&&this.body.nodes[a.id]!==void 0&&this._performAddEdge(o,a.id)),e.controlEdge={from:o,to:a?a.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,n,void 0,!0)}},{key:"_performAddNode",value:function(e){var n=this,r={id:Nh(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(r,function(o){o!=null&&n.inMode==="addNode"&&n.body.data.nodes.getDataSet().add(o),n.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(r),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,n){var r=this,o={from:e,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(o,function(i){i!=null&&r.inMode==="addEdge"&&(r.body.data.edges.getDataSet().add(i),r.selectionHandler.unselectAll(),r.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,n){var r=this,o={id:this.edgeBeingEditedId,from:e,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},i=this.options.editEdge;if(Ze(i)==="object"&&(i=i.editWithoutDrag),typeof i=="function")if(i.length===2)i(o,function(a){a==null||r.inMode!=="editEdge"?(r.body.edges[o.id].updateEdgeType(),r.body.emitter.emit("_redraw"),r.showManipulatorToolbar()):(r.body.data.edges.getDataSet().update(a),r.selectionHandler.unselectAll(),r.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),G="string",K="boolean",F="number",$h="array",he="object",f3="dom",rDe="any",H_=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],V_={borderWidth:{number:F},borderWidthSelected:{number:F,undefined:"undefined"},brokenImage:{string:G,undefined:"undefined"},chosen:{label:{boolean:K,function:"function"},node:{boolean:K,function:"function"},__type__:{object:he,boolean:K}},color:{border:{string:G},background:{string:G},highlight:{border:{string:G},background:{string:G},__type__:{object:he,string:G}},hover:{border:{string:G},background:{string:G},__type__:{object:he,string:G}},__type__:{object:he,string:G}},opacity:{number:F,undefined:"undefined"},fixed:{x:{boolean:K},y:{boolean:K},__type__:{object:he,boolean:K}},font:{align:{string:G},color:{string:G},size:{number:F},face:{string:G},background:{string:G},strokeWidth:{number:F},strokeColor:{string:G},vadjust:{number:F},multi:{boolean:K,string:G},bold:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:he,string:G}},boldital:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:he,string:G}},ital:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:he,string:G}},mono:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:he,string:G}},__type__:{object:he,string:G}},group:{string:G,number:F,undefined:"undefined"},heightConstraint:{minimum:{number:F},valign:{string:G},__type__:{object:he,boolean:K,number:F}},hidden:{boolean:K},icon:{face:{string:G},code:{string:G},size:{number:F},color:{string:G},weight:{string:G,number:F},__type__:{object:he}},id:{string:G,number:F},image:{selected:{string:G,undefined:"undefined"},unselected:{string:G,undefined:"undefined"},__type__:{object:he,string:G}},imagePadding:{top:{number:F},right:{number:F},bottom:{number:F},left:{number:F},__type__:{object:he,number:F}},label:{string:G,undefined:"undefined"},labelHighlightBold:{boolean:K},level:{number:F,undefined:"undefined"},margin:{top:{number:F},right:{number:F},bottom:{number:F},left:{number:F},__type__:{object:he,number:F}},mass:{number:F},physics:{boolean:K},scaling:{min:{number:F},max:{number:F},label:{enabled:{boolean:K},min:{number:F},max:{number:F},maxVisible:{number:F},drawThreshold:{number:F},__type__:{object:he,boolean:K}},customScalingFunction:{function:"function"},__type__:{object:he}},shadow:{enabled:{boolean:K},color:{string:G},size:{number:F},x:{number:F},y:{number:F},__type__:{object:he,boolean:K}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:K,array:$h},borderRadius:{number:F},interpolation:{boolean:K},useImageSize:{boolean:K},useBorderWithImage:{boolean:K},coordinateOrigin:{string:["center","top-left"]},__type__:{object:he}},size:{number:F},title:{string:G,dom:f3,undefined:"undefined"},value:{number:F,undefined:"undefined"},widthConstraint:{minimum:{number:F},maximum:{number:F},__type__:{object:he,boolean:K,number:F}},x:{number:F},y:{number:F},__type__:{object:he}},oDe={configure:{enabled:{boolean:K},filter:{boolean:K,string:G,array:$h,function:"function"},container:{dom:f3},showButton:{boolean:K},__type__:{object:he,boolean:K,string:G,array:$h,function:"function"}},edges:{arrows:{to:{enabled:{boolean:K},scaleFactor:{number:F},type:{string:H_},imageHeight:{number:F},imageWidth:{number:F},src:{string:G},__type__:{object:he,boolean:K}},middle:{enabled:{boolean:K},scaleFactor:{number:F},type:{string:H_},imageWidth:{number:F},imageHeight:{number:F},src:{string:G},__type__:{object:he,boolean:K}},from:{enabled:{boolean:K},scaleFactor:{number:F},type:{string:H_},imageWidth:{number:F},imageHeight:{number:F},src:{string:G},__type__:{object:he,boolean:K}},__type__:{string:["from","to","middle"],object:he}},endPointOffset:{from:{number:F},to:{number:F},__type__:{object:he,number:F}},arrowStrikethrough:{boolean:K},background:{enabled:{boolean:K},color:{string:G},size:{number:F},dashes:{boolean:K,array:$h},__type__:{object:he,boolean:K}},chosen:{label:{boolean:K,function:"function"},edge:{boolean:K,function:"function"},__type__:{object:he,boolean:K}},color:{color:{string:G},highlight:{string:G},hover:{string:G},inherit:{string:["from","to","both"],boolean:K},opacity:{number:F},__type__:{object:he,string:G}},dashes:{boolean:K,array:$h},font:{color:{string:G},size:{number:F},face:{string:G},background:{string:G},strokeWidth:{number:F},strokeColor:{string:G},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:F},multi:{boolean:K,string:G},bold:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:he,string:G}},boldital:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:he,string:G}},ital:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:he,string:G}},mono:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:he,string:G}},__type__:{object:he,string:G}},hidden:{boolean:K},hoverWidth:{function:"function",number:F},label:{string:G,undefined:"undefined"},labelHighlightBold:{boolean:K},length:{number:F,undefined:"undefined"},physics:{boolean:K},scaling:{min:{number:F},max:{number:F},label:{enabled:{boolean:K},min:{number:F},max:{number:F},maxVisible:{number:F},drawThreshold:{number:F},__type__:{object:he,boolean:K}},customScalingFunction:{function:"function"},__type__:{object:he}},selectionWidth:{function:"function",number:F},selfReferenceSize:{number:F},selfReference:{size:{number:F},angle:{number:F},renderBehindTheNode:{boolean:K},__type__:{object:he}},shadow:{enabled:{boolean:K},color:{string:G},size:{number:F},x:{number:F},y:{number:F},__type__:{object:he,boolean:K}},smooth:{enabled:{boolean:K},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:F},forceDirection:{string:["horizontal","vertical","none"],boolean:K},__type__:{object:he,boolean:K}},title:{string:G,undefined:"undefined"},width:{number:F},widthConstraint:{maximum:{number:F},__type__:{object:he,boolean:K,number:F}},value:{number:F,undefined:"undefined"},__type__:{object:he}},groups:{useDefaultGroups:{boolean:K},__any__:V_,__type__:{object:he}},interaction:{dragNodes:{boolean:K},dragView:{boolean:K},hideEdgesOnDrag:{boolean:K},hideEdgesOnZoom:{boolean:K},hideNodesOnDrag:{boolean:K},hover:{boolean:K},keyboard:{enabled:{boolean:K},speed:{x:{number:F},y:{number:F},zoom:{number:F},__type__:{object:he}},bindToWindow:{boolean:K},autoFocus:{boolean:K},__type__:{object:he,boolean:K}},multiselect:{boolean:K},navigationButtons:{boolean:K},selectable:{boolean:K},selectConnectedEdges:{boolean:K},hoverConnectedEdges:{boolean:K},tooltipDelay:{number:F},zoomView:{boolean:K},zoomSpeed:{number:F},__type__:{object:he}},layout:{randomSeed:{undefined:"undefined",number:F,string:G},improvedLayout:{boolean:K},clusterThreshold:{number:F},hierarchical:{enabled:{boolean:K},levelSeparation:{number:F},nodeSpacing:{number:F},treeSpacing:{number:F},blockShifting:{boolean:K},edgeMinimization:{boolean:K},parentCentralization:{boolean:K},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:he,boolean:K}},__type__:{object:he}},manipulation:{enabled:{boolean:K},initiallyActive:{boolean:K},addNode:{boolean:K,function:"function"},addEdge:{boolean:K,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:he,boolean:K,function:"function"}},deleteNode:{boolean:K,function:"function"},deleteEdge:{boolean:K,function:"function"},controlNodeStyle:V_,__type__:{object:he,boolean:K}},nodes:V_,physics:{enabled:{boolean:K},barnesHut:{theta:{number:F},gravitationalConstant:{number:F},centralGravity:{number:F},springLength:{number:F},springConstant:{number:F},damping:{number:F},avoidOverlap:{number:F},__type__:{object:he}},forceAtlas2Based:{theta:{number:F},gravitationalConstant:{number:F},centralGravity:{number:F},springLength:{number:F},springConstant:{number:F},damping:{number:F},avoidOverlap:{number:F},__type__:{object:he}},repulsion:{centralGravity:{number:F},springLength:{number:F},springConstant:{number:F},nodeDistance:{number:F},damping:{number:F},__type__:{object:he}},hierarchicalRepulsion:{centralGravity:{number:F},springLength:{number:F},springConstant:{number:F},nodeDistance:{number:F},damping:{number:F},avoidOverlap:{number:F},__type__:{object:he}},maxVelocity:{number:F},minVelocity:{number:F},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:K},iterations:{number:F},updateInterval:{number:F},onlyDynamicEdges:{boolean:K},fit:{boolean:K},__type__:{object:he,boolean:K}},timestep:{number:F},adaptiveTimestep:{boolean:K},wind:{x:{number:F},y:{number:F},__type__:{object:he}},__type__:{object:he,boolean:K}},autoResize:{boolean:K},clickToUse:{boolean:K},locale:{string:G},locales:{__any__:{any:rDe},__type__:{object:he}},height:{string:G},width:{string:G},__type__:{object:he}},p3={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},iDe=function(t,e,n){var r;return!!(xa(t).call(t,"physics")&&xa(r=p3.physics.solver).call(r,e)&&n.physics.solver!==e&&e!=="wind")},aDe=function(){function t(){J(this,t)}return Z(t,[{key:"getDistances",value:function(e,n,r){for(var o={},i=e.edges,a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,o=this.distanceSolver.getDistances(this.body,e,n);this._createL_matrix(o),this._createK_matrix(o),this._createE_matrix();for(var i=.01,a=1,s=0,l=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),u=5,c=1e9,h=0,d=0,f=0,p=0,g=0;c>i&&sa&&g{const l=a;if(!(!l||!l.clauses||l.clauses.length===0))return l.clauses.map(u=>`${u.lhs.name} ${u.op} ${u.rhs}`).join(s)},[]),e=k.useCallback((a,s=!1)=>{if(!(!a||a.length===0))return s?`{${a.map(l=>l.name).join(",")}}`:`{ ${a.map(l=>l.name).join(", ")} }`},[]),n=k.useCallback(a=>{const s=t(a.invariant);return[a.name,s].filter(l=>l!==void 0).join(", ")},[t]),r=k.useCallback(a=>{const s=t(a.invariant);return s?`${a.name} -${s}`:a.name},[t]),o=k.useCallback(a=>{const s=t(a.guard),l=e(a.reset,!0);return[a.source.name,a.actionLabel,s,l,a.target.name].filter(u=>u!==void 0).join(", ")},[t,e]),i=k.useCallback(a=>{const s=t(a.guard,` \u2227 -`),l=e(a.reset);return[a.actionLabel,s,l].filter(u=>u!==void 0).join(` -`)},[t,e]);return{formatClockConstraint:t,formatReset:e,formatLocationLabelTable:n,formatLocationLabelVisual:r,formatSwitchTable:o,formatSwitchLabelVisual:i}}function lDe(){const{formatLocationLabelVisual:t,formatSwitchLabelVisual:e}=g3();return{mapTaToVisDataModel:k.useCallback(n=>{const r=new uu,o=new uu;return n.locations.forEach(i=>{r.add({id:`${i.name}`,label:t(i),x:i.xCoordinate,y:i.yCoordinate})}),n.switches.forEach((i,a)=>{o.add({id:a,from:`${i.source.name}`,to:`${i.target.name}`,label:e(i)})}),{nodes:r,edges:o}},[t,e])}}const uDe=t=>{const{viewModel:e}=t,{ta:n,updateLocationCoordinates:r}=e,{mapTaToVisDataModel:o}=lDe(),i=k.useRef(null);return k.useEffect(()=>{if(!i.current)return;const a=o(n),s={nodes:{shape:"box",color:{background:"white",border:"black"},font:{size:20}},edges:{color:"gray",arrows:{to:{enabled:!0,type:"arrow"}},font:{size:20}},physics:{enabled:!1}},l=new le(i.current,a,s);l.on("dragEnd",u=>{if(u.nodes.length>0){const c=u.nodes[0],h=l.getPositions([c]);n.locations.forEach(d=>{d.name===c&&r(e,d.name,h[c].x,h[c].y)})}})},[n,e,r,o]),C.jsx("div",{ref:i,style:{width:"100%",height:"100%"}})},Wh={black:"#000",white:"#fff"},Hu={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"},Vu={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"},Uu={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"},qu={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"},Ku={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"},Hh={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"},cDe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Di(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;n0?wn(Xu,--dr):0,Yu--,qt===10&&(Yu=1,$m--),qt}function Tr(){return qt=dr2||Yh(qt)>3?"":" "}function ODe(t,e){for(;--e&&Tr()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return Kh(t,Hm()+(e<6&&Xo()==32&&Tr()==32))}function X_(t){for(;Tr();)switch(qt){case t:return dr;case 34:case 39:t!==34&&t!==39&&X_(qt);break;case 40:t===41&&X_(t);break;case 92:Tr();break}return dr}function TDe(t,e){for(;Tr()&&t+qt!==57&&!(t+qt===84&&Xo()===47););return"/*"+Kh(e,dr-1)+"*"+Lm(t===47?t:Tr())}function PDe(t){for(;!Yh(Xo());)Tr();return Kh(t,dr)}function MDe(t){return k3(Um("",null,null,null,[""],t=x3(t),0,[0],t))}function Um(t,e,n,r,o,i,a,s,l){for(var u=0,c=0,h=a,d=0,f=0,p=0,g=1,b=1,m=1,v=0,y="",x=o,S=i,_=r,E=y;b;)switch(p=v,v=Tr()){case 40:if(p!=108&&wn(E,h-1)==58){K_(E+=qe(Vm(v),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:E+=Vm(v);break;case 9:case 10:case 13:case 32:E+=CDe(p);break;case 92:E+=ODe(Hm()-1,7);continue;case 47:switch(Xo()){case 42:case 47:Bm(IDe(TDe(Tr(),Hm()),e,n),l);break;default:E+="/"}break;case 123*g:s[u++]=Yo(E)*m;case 125*g:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:m==-1&&(E=qe(E,/\f/g,"")),f>0&&Yo(E)-h&&Bm(f>32?_3(E+";",r,n,h-1):_3(qe(E," ","")+";",r,n,h-2),l);break;case 59:E+=";";default:if(Bm(_=S3(E,e,n,u,c,o,s,y,x=[],S=[],h),i),v===123)if(c===0)Um(E,e,_,_,x,i,h,s,S);else switch(d===99&&wn(E,3)===110?100:d){case 100:case 108:case 109:case 115:Um(t,_,_,r&&Bm(S3(t,_,_,0,0,o,s,y,o,x=[],h),S),o,S,h,s,r?x:S);break;default:Um(E,_,_,_,[""],S,0,s,S)}}u=c=f=0,g=m=1,y=E="",h=a;break;case 58:h=1+Yo(E),f=p;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&EDe()==125)continue}switch(E+=Lm(v),v*g){case 38:m=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(Yo(E)-1)*m,m=1;break;case 64:Xo()===45&&(E+=Vm(Tr())),d=Xo(),c=h=Yo(y=E+=PDe(Hm())),v++;break;case 45:p===45&&Yo(E)==2&&(g=0)}}return i}function S3(t,e,n,r,o,i,a,s,l,u,c){for(var h=o-1,d=o===0?i:[""],f=Y_(d),p=0,g=0,b=0;p0?d[m]+" "+v:qe(v,/&\f/g,d[m])))&&(l[b++]=y);return Wm(t,e,n,o===0?U_:s,l,u,c)}function IDe(t,e,n){return Wm(t,e,n,m3,Lm(_De()),Uh(t,2,-2),0)}function _3(t,e,n,r){return Wm(t,e,n,q_,Uh(t,0,r),Uh(t,r+1,-1),r)}function Gu(t,e){for(var n="",r=Y_(t),o=0;o6)switch(wn(t,e+1)){case 109:if(wn(t,e+4)!==45)break;case 102:return qe(t,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+Fm+(wn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~K_(t,"stretch")?C3(qe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(wn(t,e+1)!==115)break;case 6444:switch(wn(t,Yo(t)-3-(~K_(t,"!important")&&10))){case 107:return qe(t,":",":"+Ue)+t;case 101:return qe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(wn(t,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+On+"$2box$3")+t}break;case 5936:switch(wn(t,e+11)){case 114:return Ue+t+On+qe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ue+t+On+qe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ue+t+On+qe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ue+t+On+t+t}return t}var BDe=function(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case q_:t.return=C3(t.value,t.length);break;case y3:return Gu([qh(t,{value:qe(t.value,"@","@"+Ue)})],r);case U_:if(t.length)return SDe(t.props,function(o){switch(kDe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Gu([qh(t,{props:[qe(o,/:(read-\w+)/,":"+Fm+"$1")]})],r);case"::placeholder":return Gu([qh(t,{props:[qe(o,/:(plac\w+)/,":"+Ue+"input-$1")]}),qh(t,{props:[qe(o,/:(plac\w+)/,":"+Fm+"$1")]}),qh(t,{props:[qe(o,/:(plac\w+)/,On+"input-$1")]})],r)}return""})}},$De=[BDe],WDe=function(t){var e=t.key;if(e==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var r=t.stylisPlugins||$De,o={},i,a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),b=1;b=4;++r,o-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var eje={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tje=!1,nje=/[A-Z]|^ms/g,rje=/_EMO_([^_]+?)_([^]*?)_EMO_/g,A3=function(t){return t.charCodeAt(1)===45},D3=function(t){return t!=null&&typeof t!="boolean"},Z_=v3(function(t){return A3(t)?t:t.replace(nje,"-$&").toLowerCase()}),j3=function(t,e){switch(t){case"animation":case"animationName":if(typeof e=="string")return e.replace(rje,function(n,r,o){return Go={name:r,styles:o,next:Go},r})}return eje[t]!==1&&!A3(t)&&typeof e=="number"&&e!==0?e+"px":e},oje="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Xh(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Go={name:o.name,styles:o.styles,next:Go},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Go={name:a.name,styles:a.styles,next:Go},a=a.next;var s=i.styles+";";return s}return ije(t,e,n)}case"function":{if(t!==void 0){var l=Go,u=n(t);return Go=l,Xh(t,e,u)}break}}var c=n;if(e==null)return c;var h=e[c];return h!==void 0?h:c}function ije(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o96?cje:dje},W3=function(t,e,n){var r;if(e){var o=e.shouldForwardProp;r=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof r!="function"&&n&&(r=t.__emotion_forwardProp),r},hje=!1,fje=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return I3(e,n,r),sje(function(){return R3(e,n,r)}),null},pje=function t(e,n){var r=e.__emotion_real===e,o=r&&e.__emotion_base||e,i,a;n!==void 0&&(i=n.label,a=n.target);var s=W3(e,n,r),l=s||$3(o),u=!l("as");return function(){var c=arguments,h=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)h.push.apply(h,c);else{h.push(c[0][0]);for(var d=c.length,f=1;fe(vje(o)?n:o):e;return C.jsx(lje,{styles:r})}function H3(t,e){return rE(t,e)}const yje=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))};function Qo(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function V3(t){if(!Qo(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=V3(t[n])}),e}function Tn(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return Qo(t)&&Qo(e)&&Object.keys(e).forEach(o=>{Qo(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Qo(t[o])?r[o]=Tn(t[o],e[o],n):n.clone?r[o]=Qo(e[o])?V3(e[o]):e[o]:r[o]=e[o]}),r}const bje=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function wje(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=t,i=bje(e),a=Object.keys(i);function s(d){return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof e[d]=="number"?e[d]:d)-r/100}${n})`}function u(d,f){const p=a.indexOf(f);return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${n}) and (max-width:${(p!==-1&&typeof e[a[p]]=="number"?e[a[p]]:f)-r/100}${n})`}function c(d){return a.indexOf(d)+1r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const i=e[o];return delete r[o],r[o]=i,r},{...e}):e}function kje(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function Sje(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return t.containerQueries(o).up(i)}function _je(t){const e=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>e(t.breakpoints.up(...s),a),i.down=(...s)=>e(t.breakpoints.down(...s),a),i.between=(...s)=>e(t.breakpoints.between(...s),a),i.only=(...s)=>e(t.breakpoints.only(...s),a),i.not=(...s)=>{const l=e(t.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...t,containerQueries:o}}const Eje={borderRadius:4};function Gh(t,e){return e?Tn(t,e,{clone:!1}):t}const ny={xs:0,sm:600,md:900,lg:1200,xl:1536},U3={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${ny[t]}px)`},Cje={containerQueries:t=>({up:e=>{let n=typeof e=="number"?e:ny[e]||e;return typeof n=="number"&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function Xr(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const o=r.breakpoints||U3;return e.reduce((i,a,s)=>(i[o.up(o.keys[s])]=n(e[s]),i),{})}if(typeof e=="object"){const o=r.breakpoints||U3;return Object.keys(e).reduce((i,a)=>{if(kje(o.keys,a)){const s=Sje(r.containerQueries?r:Cje,a);s&&(i[s]=n(e[a],a))}else if(Object.keys(o.values||ny).includes(a)){const s=o.up(a);i[s]=n(e[a],a)}else{const s=a;i[s]=e[s]}return i},{})}return n(e)}function Oje(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((n,r)=>{const o=t.up(r);return n[o]={},n},{}))||{}}function Tje(t,e){return t.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},e)}function Pje(t,e){if(typeof t!="object")return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach((o,i)=>{i{t[o]!=null&&(n[o]=!0)}),n}function ry({values:t,breakpoints:e,base:n}){const r=n||Pje(t,e),o=Object.keys(r);if(o.length===0)return t;let i;return o.reduce((a,s,l)=>(Array.isArray(t)?(a[s]=t[l]!=null?t[l]:t[i],i=l):typeof t=="object"?(a[s]=t[s]!=null?t[s]:t[i],i=s):a[s]=t,a),{})}function ue(t){if(typeof t!="string")throw new Error(Di(7));return t.charAt(0).toUpperCase()+t.slice(1)}function oy(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,t);if(r!=null)return r}return e.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,t)}function iy(t,e,n,r=n){let o;return typeof t=="function"?o=t(n):Array.isArray(t)?o=t[n]||r:o=oy(t,n)||r,e&&(o=e(o,r,t)),o}function Ft(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:o}=t,i=a=>{if(a[e]==null)return null;const s=a[e],l=a.theme,u=oy(l,r)||{};return Xr(a,s,c=>{let h=iy(u,o,c);return c===h&&typeof c=="string"&&(h=iy(u,o,`${e}${c==="default"?"":ue(c)}`,c)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[e],i}function Mje(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const Ije={m:"margin",p:"padding"},Rje={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},q3={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Aje=Mje(t=>{if(t.length>2)if(q3[t])t=q3[t];else return[t];const[e,n]=t.split(""),r=Ije[e],o=Rje[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),oE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],iE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...oE,...iE];function Qh(t,e,n,r){const o=oy(t,e,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function aE(t){return Qh(t,"spacing",8)}function Jh(t,e){return typeof e=="string"||e==null?e:t(e)}function Dje(t,e){return n=>t.reduce((r,o)=>(r[o]=Jh(e,n),r),{})}function jje(t,e,n,r){if(!e.includes(n))return null;const o=Aje(n),i=Dje(o,r),a=t[n];return Xr(t,a,i)}function K3(t,e){const n=aE(t.theme);return Object.keys(t).map(r=>jje(t,e,r,n)).reduce(Gh,{})}function It(t){return K3(t,oE)}It.propTypes={},It.filterProps=oE;function Rt(t){return K3(t,iE)}Rt.propTypes={},Rt.filterProps=iE;function Y3(t=8,e=aE({spacing:t})){if(t.mui)return t;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const i=e(o);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function ay(...t){const e=t.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>e[i]?Gh(o,e[i](r)):o,{});return n.propTypes={},n.filterProps=t.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Gr(t){return typeof t!="number"?t:`${t}px solid`}function Qr(t,e){return Ft({prop:t,themeKey:"borders",transform:e})}const Nje=Qr("border",Gr),zje=Qr("borderTop",Gr),Fje=Qr("borderRight",Gr),Lje=Qr("borderBottom",Gr),Bje=Qr("borderLeft",Gr),$je=Qr("borderColor"),Wje=Qr("borderTopColor"),Hje=Qr("borderRightColor"),Vje=Qr("borderBottomColor"),Uje=Qr("borderLeftColor"),qje=Qr("outline",Gr),Kje=Qr("outlineColor"),sy=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Qh(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:Jh(e,r)});return Xr(t,t.borderRadius,n)}return null};sy.propTypes={},sy.filterProps=["borderRadius"],ay(Nje,zje,Fje,Lje,Bje,$je,Wje,Hje,Vje,Uje,sy,qje,Kje);const ly=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Qh(t.theme,"spacing",8),n=r=>({gap:Jh(e,r)});return Xr(t,t.gap,n)}return null};ly.propTypes={},ly.filterProps=["gap"];const uy=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Qh(t.theme,"spacing",8),n=r=>({columnGap:Jh(e,r)});return Xr(t,t.columnGap,n)}return null};uy.propTypes={},uy.filterProps=["columnGap"];const cy=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Qh(t.theme,"spacing",8),n=r=>({rowGap:Jh(e,r)});return Xr(t,t.rowGap,n)}return null};cy.propTypes={},cy.filterProps=["rowGap"];const Yje=Ft({prop:"gridColumn"}),Xje=Ft({prop:"gridRow"}),Gje=Ft({prop:"gridAutoFlow"}),Qje=Ft({prop:"gridAutoColumns"}),Jje=Ft({prop:"gridAutoRows"}),Zje=Ft({prop:"gridTemplateColumns"}),eNe=Ft({prop:"gridTemplateRows"}),tNe=Ft({prop:"gridTemplateAreas"}),nNe=Ft({prop:"gridArea"});ay(ly,uy,cy,Yje,Xje,Gje,Qje,Jje,Zje,eNe,tNe,nNe);function Qu(t,e){return e==="grey"?e:t}const rNe=Ft({prop:"color",themeKey:"palette",transform:Qu}),oNe=Ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qu}),iNe=Ft({prop:"backgroundColor",themeKey:"palette",transform:Qu});ay(rNe,oNe,iNe);function Mr(t){return t<=1&&t!==0?`${t*100}%`:t}const aNe=Ft({prop:"width",transform:Mr}),sE=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var o,i,a,s,l;const r=((a=(i=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||ny[n];return r?((l=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Mr(n)}};return Xr(t,t.maxWidth,e)}return null};sE.filterProps=["maxWidth"];const sNe=Ft({prop:"minWidth",transform:Mr}),lNe=Ft({prop:"height",transform:Mr}),uNe=Ft({prop:"maxHeight",transform:Mr}),cNe=Ft({prop:"minHeight",transform:Mr});Ft({prop:"size",cssProperty:"width",transform:Mr}),Ft({prop:"size",cssProperty:"height",transform:Mr});const dNe=Ft({prop:"boxSizing"});ay(aNe,sE,sNe,lNe,uNe,cNe,dNe);const Zh={border:{themeKey:"borders",transform:Gr},borderTop:{themeKey:"borders",transform:Gr},borderRight:{themeKey:"borders",transform:Gr},borderBottom:{themeKey:"borders",transform:Gr},borderLeft:{themeKey:"borders",transform:Gr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sy},color:{themeKey:"palette",transform:Qu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qu},backgroundColor:{themeKey:"palette",transform:Qu},p:{style:Rt},pt:{style:Rt},pr:{style:Rt},pb:{style:Rt},pl:{style:Rt},px:{style:Rt},py:{style:Rt},padding:{style:Rt},paddingTop:{style:Rt},paddingRight:{style:Rt},paddingBottom:{style:Rt},paddingLeft:{style:Rt},paddingX:{style:Rt},paddingY:{style:Rt},paddingInline:{style:Rt},paddingInlineStart:{style:Rt},paddingInlineEnd:{style:Rt},paddingBlock:{style:Rt},paddingBlockStart:{style:Rt},paddingBlockEnd:{style:Rt},m:{style:It},mt:{style:It},mr:{style:It},mb:{style:It},ml:{style:It},mx:{style:It},my:{style:It},margin:{style:It},marginTop:{style:It},marginRight:{style:It},marginBottom:{style:It},marginLeft:{style:It},marginX:{style:It},marginY:{style:It},marginInline:{style:It},marginInlineStart:{style:It},marginInlineEnd:{style:It},marginBlock:{style:It},marginBlockStart:{style:It},marginBlockEnd:{style:It},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ly},rowGap:{style:cy},columnGap:{style:uy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mr},maxWidth:{style:sE},minWidth:{transform:Mr},height:{transform:Mr},maxHeight:{transform:Mr},minHeight:{transform:Mr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function hNe(...t){const e=t.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function fNe(t,e){return typeof t=="function"?t(e):t}function pNe(){function t(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:h}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const d=oy(o,u)||{};return h?h(a):Xr(a,r,f=>{let p=iy(d,c,f);return f===p&&typeof f=="string"&&(p=iy(d,c,`${n}${f==="default"?"":ue(f)}`,f)),l===!1?p:{[l]:p}})}function e(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Zh;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const u=Oje(o.breakpoints),c=Object.keys(u);let h=u;return Object.keys(l).forEach(d=>{const f=fNe(l[d],o);if(f!=null)if(typeof f=="object")if(i[d])h=Gh(h,t(d,f,o,i));else{const p=Xr({theme:o},f,g=>({[d]:g}));hNe(p,f)?h[d]=e({sx:f,theme:o}):h=Gh(h,p)}else h=Gh(h,t(d,f,o,i))}),xje(o,Tje(c,h))}return Array.isArray(r)?r.map(a):a(r)}return e}const Ju=pNe();Ju.filterProps=["sx"];function gNe(t,e){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[t])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(t);return(o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e}}return n.palette.mode===t?e:{}}function lE(t={},...e){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=t,s=wje(n),l=Y3(o);let u=Tn({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Eje,...i}},a);return u=_je(u),u.applyStyles=gNe,u=e.reduce((c,h)=>Tn(c,h),u),u.unstable_sxConfig={...Zh,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(c){return Ju({sx:c,theme:this})},u}function vNe(t){return Object.keys(t).length===0}function mNe(t=null){const e=k.useContext(tE);return!e||vNe(e)?t:e}const yNe=lE();function dy(t=yNe){return mNe(t)}function bNe({styles:t,themeId:e,defaultTheme:n={}}){const r=dy(n),o=typeof t=="function"?t(e&&r[e]||r):t;return C.jsx(mje,{styles:o})}const wNe=t=>{var r;const e={systemProps:{},otherProps:{}},n=((r=t==null?void 0:t.theme)==null?void 0:r.unstable_sxConfig)??Zh;return Object.keys(t).forEach(o=>{n[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function uE(t){const{sx:e,...n}=t,{systemProps:r,otherProps:o}=wNe(n);let i;return Array.isArray(e)?i=[r,...e]:typeof e=="function"?i=(...a)=>{const s=e(...a);return Qo(s)?{...r,...s}:r}:i={...r,...e},{...o,sx:i}}const X3=t=>t,xNe=()=>{let t=X3;return{configure(e){t=e},generate(e){return t(e)},reset(){t=X3}}},cE=xNe();function G3(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;ea!=="theme"&&a!=="sx"&&a!=="as"})(Ju);return k.forwardRef(function(a,s){const l=dy(n),{className:u,component:c="div",...h}=uE(a);return C.jsx(i,{as:c,ref:s,className:ce(u,o?o(r):r),theme:e&&l[e]||l,...h})})}const SNe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _e(t,e,n="Mui"){const r=SNe[e];return r?`${n}-${r}`:`${cE.generate(t)}-${e}`}function Se(t,e,n="Mui"){const r={};return e.forEach(o=>{r[o]=_e(t,o,n)}),r}var et={},dE=Symbol.for("react.element"),hE=Symbol.for("react.portal"),hy=Symbol.for("react.fragment"),fy=Symbol.for("react.strict_mode"),py=Symbol.for("react.profiler"),gy=Symbol.for("react.provider"),vy=Symbol.for("react.context"),_Ne=Symbol.for("react.server_context"),my=Symbol.for("react.forward_ref"),yy=Symbol.for("react.suspense"),by=Symbol.for("react.suspense_list"),wy=Symbol.for("react.memo"),xy=Symbol.for("react.lazy"),ENe=Symbol.for("react.offscreen"),Q3;Q3=Symbol.for("react.module.reference");function Jr(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case dE:switch(t=t.type,t){case hy:case py:case fy:case yy:case by:return t;default:switch(t=t&&t.$$typeof,t){case _Ne:case vy:case my:case xy:case wy:case gy:return t;default:return e}}case hE:return e}}}et.ContextConsumer=vy,et.ContextProvider=gy,et.Element=dE,et.ForwardRef=my,et.Fragment=hy,et.Lazy=xy,et.Memo=wy,et.Portal=hE,et.Profiler=py,et.StrictMode=fy,et.Suspense=yy,et.SuspenseList=by,et.isAsyncMode=function(){return!1},et.isConcurrentMode=function(){return!1},et.isContextConsumer=function(t){return Jr(t)===vy},et.isContextProvider=function(t){return Jr(t)===gy},et.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===dE},et.isForwardRef=function(t){return Jr(t)===my},et.isFragment=function(t){return Jr(t)===hy},et.isLazy=function(t){return Jr(t)===xy},et.isMemo=function(t){return Jr(t)===wy},et.isPortal=function(t){return Jr(t)===hE},et.isProfiler=function(t){return Jr(t)===py},et.isStrictMode=function(t){return Jr(t)===fy},et.isSuspense=function(t){return Jr(t)===yy},et.isSuspenseList=function(t){return Jr(t)===by},et.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===hy||t===py||t===fy||t===yy||t===by||t===ENe||typeof t=="object"&&t!==null&&(t.$$typeof===xy||t.$$typeof===wy||t.$$typeof===gy||t.$$typeof===vy||t.$$typeof===my||t.$$typeof===Q3||t.getModuleId!==void 0)},et.typeOf=Jr;const CNe=lE();function fE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function pE(t,e,n){return PNe(e)?n:e[t]||e}const ky=Symbol("mui.processed_props");function Sy(t,e,n){if(ky in t)return t[ky];const r={...t,theme:pE(e,t.theme,n)};return t[ky]=r,r[ky]=r,r}function ONe(t){return t?(e,n)=>n[t]:null}function _y(t,e){var r;const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>_y(o,e));if(Array.isArray(n==null?void 0:n.variants)){const{variants:o,...i}=n;let a=i,s;e:for(let l=0;lJu(Sy(a,e,n));return i.__mui_systemSx=!0,(a,s={})=>{yje(a,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:h,overridesResolver:d=ONe(INe(u)),...f}=s,p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=h||!1;let b,m=fE;u==="Root"||u==="root"?m=r:u?m=o:MNe(a)&&(m=void 0);const v=H3(a,{shouldForwardProp:m,label:b,...f}),y=S=>typeof S=="function"&&S.__emotion_real!==S||Qo(S)?_=>_y(S,Sy(_,e,n)):S,x=(S,..._)=>{let E=y(S);const O=_?_.map(y):[];l&&d&&O.push(I=>{const A=pE(e,I.theme,n);if(!A.components||!A.components[l]||!A.components[l].styleOverrides)return null;const D=A.components[l].styleOverrides,R={},P=Sy(I,e,n);for(const M in D)R[M]=_y(D[M],P);return d(I,R)}),l&&!p&&O.push(I=>{var D,R,P;const A=(P=(R=(D=pE(e,I.theme,n))==null?void 0:D.components)==null?void 0:R[l])==null?void 0:P.variants;return A?_y({variants:A},Sy(I,e,n)):null}),g||O.push(i);const w=O.length-_.length;if(Array.isArray(S)&&w>0){const I=new Array(w).fill("");E=[...S,...I],E.raw=[...S.raw,...I]}const T=v(E,...O);return a.muiName&&(T.muiName=a.muiName),T};return v.withConfig&&(x.withConfig=v.withConfig),x}}function PNe(t){for(const e in t)return!1;return!0}function MNe(t){return typeof t=="string"&&t.charCodeAt(0)>96}function INe(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function ef(t,e){const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const o=r;if(o==="components"||o==="slots")n[o]={...t[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=t[o],a=e[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=ef(i[l],a[l])}}}else n[o]===void 0&&(n[o]=t[o])}return n}function RNe(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:ef(e.components[n].defaultProps,r)}function ANe({props:t,name:e,defaultTheme:n,themeId:r}){let o=dy(n);return r&&(o=o[r]||o),RNe({theme:o,name:e,props:t})}const Eo=typeof window<"u"?k.useLayoutEffect:k.useEffect;function DNe(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}function gE(t,e=0,n=1){return DNe(t,e,n)}function jNe(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ja(t){if(t.type)return t;if(t.charAt(0)==="#")return ja(jNe(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Di(9,t));let r=t.substring(e+1,t.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Di(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const NNe=t=>{const e=ja(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},tf=(t,e)=>{try{return NNe(t)}catch{return t}};function Ey(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function J3(t){t=ja(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return t.type==="hsla"&&(s+="a",l.push(e[3])),Ey({type:s,values:l})}function vE(t){t=ja(t);let e=t.type==="hsl"||t.type==="hsla"?ja(J3(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function zNe(t,e){const n=vE(t),r=vE(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function xt(t,e){return t=ja(t),e=gE(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Ey(t)}function Cy(t,e,n){try{return xt(t,e)}catch{return t}}function Oy(t,e){if(t=ja(t),e=gE(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Ey(t)}function rt(t,e,n){try{return Oy(t,e)}catch{return t}}function Ty(t,e){if(t=ja(t),e=gE(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Ey(t)}function ot(t,e,n){try{return Ty(t,e)}catch{return t}}function FNe(t,e=.15){return vE(t)>.5?Oy(t,e):Ty(t,e)}function Py(t,e,n){try{return FNe(t,e)}catch{return t}}function mE(...t){return t.reduce((e,n)=>n==null?e:function(...r){e.apply(this,r),n.apply(this,r)},()=>{})}function yE(t,e=166){let n;function r(...o){const i=()=>{t.apply(this,o)};clearTimeout(n),n=setTimeout(i,e)}return r.clear=()=>{clearTimeout(n)},r}function LNe(t,e){return()=>null}function My(t,e){var n,r,o;return k.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(r=(n=t.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function Pn(t){return t&&t.ownerDocument||document}function Na(t){return Pn(t).defaultView||window}function BNe(t,e){return()=>null}function Iy(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let Z3=0;function $Ne(t){const[e,n]=k.useState(t),r=t||e;return k.useEffect(()=>{e==null&&(Z3+=1,n(`mui-${Z3}`))},[e]),r}const e4=T0.useId;function nf(t){if(e4!==void 0){const e=e4();return t??e}return $Ne(t)}function WNe(t,e,n,r,o){return null}function rf({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=k.useRef(t!==void 0),[i,a]=k.useState(e),s=o?t:i,l=k.useCallback(u=>{o||a(u)},[]);return[s,l]}function ji(t){const e=k.useRef(t);return Eo(()=>{e.current=t}),k.useRef((...n)=>(0,e.current)(...n)).current}function Lt(...t){return k.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Iy(n,e)})},t)}const t4={};function n4(t,e){const n=k.useRef(t4);return n.current===t4&&(n.current=t(e)),n}const HNe=[];function VNe(t){k.useEffect(t,HNe)}class Ry{constructor(){Uf(this,"currentId",null);Uf(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Uf(this,"disposeEffect",()=>this.clear)}static create(){return new Ry}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function Zu(){const t=n4(Ry.create).current;return VNe(t.disposeEffect),t}function Ay(t){try{return t.matches(":focus-visible")}catch{}return!1}function r4(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}function Ce(t,e,n=void 0){const r={};for(const o in t){const i=t[o];let a="";for(let s=0;sr.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function i4(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function a4(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=t;if(!e){const f=ce(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...n,...o,...r};return f.length>0&&(g.className=f),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:void 0}}const a=o4({...o,...r}),s=i4(r),l=i4(o),u=e(a),c=ce(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},d={...u,...n,...l,...s};return c.length>0&&(d.className=c),Object.keys(h).length>0&&(d.style=h),{props:d,internalRef:u.ref}}function s4(t,e,n){return typeof t=="function"?t(e,n):t}function bE(t){var c;const{elementType:e,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=t,a=o?{}:s4(n,r),{props:s,internalRef:l}=a4({...i,externalSlotProps:a}),u=Lt(l,a==null?void 0:a.ref,(c=t.additionalProps)==null?void 0:c.ref);return ec(e,{...s,ref:u},r)}function tc(t){return!t||!k.isValidElement(t)?null:t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}const qNe=k.createContext(),wE=()=>k.useContext(qNe)??!1,KNe=k.createContext(void 0);function YNe(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const o=e.components[n];return o.defaultProps?ef(o.defaultProps,r):!o.styleOverrides&&!o.variants?ef(o,r):r}function XNe({props:t,name:e}){const n=k.useContext(KNe);return YNe({props:t,name:e,theme:{components:n}})}function GNe(t=""){function e(...n){if(!n.length)return"";const r=n[0];return typeof r=="string"&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${r}${e(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${t?`${t}-`:""}${n}${e(...r)})`}const l4=(t,e,n,r=[])=>{let o=t;e.forEach((i,a)=>{a===e.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},QNe=(t,e,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):e([...i,s],l,a))})}r(t)},JNe=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().indexOf("opacity")>=0?e:`${e}px`:e;function xE(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},o={},i={},a={};return QNe(t,(s,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const c=`--${n?`${n}-`:""}${s.join("-")}`,h=JNe(s,l);Object.assign(o,{[c]:h}),l4(i,s,`var(${c})`,u),l4(a,s,`var(${c}, ${h})`,u)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function ZNe(t,e={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:o}=e,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=t,{vars:u,css:c,varsWithDefaults:h}=xE(l,e);let d=h;const f={},{[s]:p,...g}=i;if(Object.entries(g||{}).forEach(([m,v])=>{const{vars:y,css:x,varsWithDefaults:S}=xE(v,e);d=Tn(d,S),f[m]={css:x,vars:y}}),p){const{css:m,vars:v,varsWithDefaults:y}=xE(p,e);d=Tn(d,y),f[s]={css:m,vars:v}}function b(m,v){var x,S;let y=o;if(o==="class"&&(y=".%s"),o==="data"&&(y="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(y=`[${o}="%s"]`),m){if(y==="media")return t.defaultColorScheme===m?":root":{[`@media (prefers-color-scheme: ${((S=(x=i[m])==null?void 0:x.palette)==null?void 0:S.mode)||m})`]:{":root":v}};if(y)return t.defaultColorScheme===m?`:root, ${y.replace("%s",String(m))}`:y.replace("%s",String(m))}return":root"}return{vars:d,generateThemeVars:()=>{let m={...u};return Object.entries(f).forEach(([,{vars:v}])=>{m=Tn(m,v)}),m},generateStyleSheets:()=>{var _,E;const m=[],v=t.defaultColorScheme||"light";function y(O,w){Object.keys(w).length&&m.push(typeof O=="string"?{[O]:{...w}}:O)}y(n(void 0,{...c}),c);const{[v]:x,...S}=f;if(x){const{css:O}=x,w=(E=(_=i[v])==null?void 0:_.palette)==null?void 0:E.mode,T=!r&&w?{colorScheme:w,...O}:{...O};y(n(v,{...T}),T)}return Object.entries(S).forEach(([O,{css:w}])=>{var A,D;const T=(D=(A=i[O])==null?void 0:A.palette)==null?void 0:D.mode,I=!r&&T?{colorScheme:T,...w}:{...w};y(n(O,{...I}),I)}),m}}}function eze(t){return function(e){return t==="media"?`@media (prefers-color-scheme: ${e})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${e}"] &`:t==="class"?`.${e} &`:t==="data"?`[data-${e}] &`:`${t.replace("%s",e)} &`:"&"}}const u4={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:Wh.white,default:Wh.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}},kE={text:{primary:Wh.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:Wh.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 c4(t,e,n,r){const o=r.light||r,i=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=Ty(t.main,o):e==="dark"&&(t.dark=Oy(t.main,i)))}function tze(t="light"){return t==="dark"?{main:Uu[200],light:Uu[50],dark:Uu[400]}:{main:Uu[700],light:Uu[400],dark:Uu[800]}}function nze(t="light"){return t==="dark"?{main:Vu[200],light:Vu[50],dark:Vu[400]}:{main:Vu[500],light:Vu[300],dark:Vu[700]}}function rze(t="light"){return t==="dark"?{main:Hu[500],light:Hu[300],dark:Hu[700]}:{main:Hu[700],light:Hu[400],dark:Hu[800]}}function oze(t="light"){return t==="dark"?{main:qu[400],light:qu[300],dark:qu[700]}:{main:qu[700],light:qu[500],dark:qu[900]}}function ize(t="light"){return t==="dark"?{main:Ku[400],light:Ku[300],dark:Ku[700]}:{main:Ku[800],light:Ku[500],dark:Ku[900]}}function aze(t="light"){return t==="dark"?{main:Hh[400],light:Hh[300],dark:Hh[700]}:{main:"#ed6c02",light:Hh[500],dark:Hh[900]}}function SE(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=t,i=t.primary||tze(e),a=t.secondary||nze(e),s=t.error||rze(e),l=t.info||oze(e),u=t.success||ize(e),c=t.warning||aze(e);function h(p){return zNe(p,kE.text.primary)>=n?kE.text.primary:u4.text.primary}const d=({color:p,name:g,mainShade:b=500,lightShade:m=300,darkShade:v=700})=>{if(p={...p},!p.main&&p[b]&&(p.main=p[b]),!p.hasOwnProperty("main"))throw new Error(Di(11,g?` (${g})`:"",b));if(typeof p.main!="string")throw new Error(Di(12,g?` (${g})`:"",JSON.stringify(p.main)));return c4(p,"light",m,r),c4(p,"dark",v,r),p.contrastText||(p.contrastText=h(p.main)),p},f={dark:kE,light:u4};return Tn({common:{...Wh},mode:e,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:cDe,contrastThreshold:n,getContrastText:h,augmentColor:d,tonalOffset:r,...f[e]},o)}function sze(t){const e={};return Object.entries(t).forEach(n=>{const[r,o]=n;typeof o=="object"&&(e[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),e}function lze(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function uze(t){return Math.round(t*1e5)/1e5}const d4={textTransform:"uppercase"},h4='"Roboto", "Helvetica", "Arial", sans-serif';function cze(t,e){const{fontFamily:n=h4,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...h}=typeof e=="function"?e(t):e,d=r/14,f=c||(b=>`${b/l*d}rem`),p=(b,m,v,y,x)=>({fontFamily:n,fontWeight:b,fontSize:f(m),lineHeight:v,...n===h4?{letterSpacing:`${uze(y/m)}em`}:{},...x,...u}),g={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(i,48,1.167,0),h4:p(i,34,1.235,.25),h5:p(i,24,1.334,0),h6:p(a,20,1.6,.15),subtitle1:p(i,16,1.75,.15),subtitle2:p(a,14,1.57,.1),body1:p(i,16,1.5,.15),body2:p(i,14,1.43,.15),button:p(a,14,1.75,.4,d4),caption:p(i,12,1.66,.4),overline:p(i,12,2.66,1,d4),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Tn({htmlFontSize:l,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},h,{clone:!1})}const dze=.2,hze=.14,fze=.12;function gt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${dze})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${hze})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${fze})`].join(",")}const pze=["none",gt(0,2,1,-1,0,1,1,0,0,1,3,0),gt(0,3,1,-2,0,2,2,0,0,1,5,0),gt(0,3,3,-2,0,3,4,0,0,1,8,0),gt(0,2,4,-1,0,4,5,0,0,1,10,0),gt(0,3,5,-1,0,5,8,0,0,1,14,0),gt(0,3,5,-1,0,6,10,0,0,1,18,0),gt(0,4,5,-2,0,7,10,1,0,2,16,1),gt(0,5,5,-3,0,8,10,1,0,3,14,2),gt(0,5,6,-3,0,9,12,1,0,3,16,2),gt(0,6,6,-3,0,10,14,1,0,4,18,3),gt(0,6,7,-4,0,11,15,1,0,4,20,3),gt(0,7,8,-4,0,12,17,2,0,5,22,4),gt(0,7,8,-4,0,13,19,2,0,5,24,4),gt(0,7,9,-4,0,14,21,2,0,5,26,4),gt(0,8,9,-5,0,15,22,2,0,6,28,5),gt(0,8,10,-5,0,16,24,2,0,6,30,5),gt(0,8,11,-5,0,17,26,2,0,6,32,5),gt(0,9,11,-5,0,18,28,2,0,7,34,6),gt(0,9,12,-6,0,19,29,2,0,7,36,6),gt(0,10,13,-6,0,20,31,3,0,8,38,7),gt(0,10,13,-6,0,21,33,3,0,8,40,7),gt(0,10,14,-6,0,22,35,3,0,8,42,7),gt(0,11,14,-7,0,23,36,3,0,9,44,8),gt(0,11,15,-7,0,24,38,3,0,9,46,8)],gze={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)"},vze={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function f4(t){return`${Math.round(t)}ms`}function mze(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function yze(t){const e={...gze,...t.easing},n={...vze,...t.duration};return{getAutoHeightDuration:mze,create:(r=["all"],o={})=>{const{duration:i=n.standard,easing:a=e.easeInOut,delay:s=0,...l}=o;return(Array.isArray(r)?r:[r]).map(u=>`${u} ${typeof i=="string"?i:f4(i)} ${a} ${typeof s=="string"?s:f4(s)}`).join(",")},...t,easing:e,duration:n}}const bze={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function p4(t={},...e){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...u}=t;if(t.vars)throw new Error(Di(20));const c=SE(i),h=lE(t);let d=Tn(h,{mixins:lze(h.breakpoints,r),palette:c,shadows:pze.slice(),typography:cze(c,s),transitions:yze(a),zIndex:{...bze}});return d=Tn(d,u),d=e.reduce((f,p)=>Tn(f,p),d),d.unstable_sxConfig={...Zh,...u==null?void 0:u.unstable_sxConfig},d.unstable_sx=function(f){return Ju({sx:f,theme:this})},d}function _E(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const wze=[...Array(25)].map((t,e)=>{if(e===0)return;const n=_E(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function g4(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function v4(t){return t==="dark"?wze:[]}function xze(t){const{palette:e={mode:"light"},opacity:n,overlays:r,...o}=t,i=SE(e);return{palette:i,opacity:{...g4(i.mode),...n},overlays:r||v4(i.mode),...o}}function kze(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const Sze=t=>[...[...Array(24)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n+1}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],_ze=t=>(e,n)=>{const r=t.colorSchemeSelector;let o=r;if(r==="class"&&(o=".%s"),r==="data"&&(o="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(o=`[${r}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const i={};return Sze(t.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),o==="media"?{":root":n,"@media (prefers-color-scheme: dark)":{":root":i}}:o?{[o.replace("%s",e)]:i,[`:root, ${o.replace("%s",e)}`]:n}:{":root":{...n,...i}}}if(o&&o!=="media")return`:root, ${o.replace("%s",String(e))}`}else if(e){if(o==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{":root":n}};if(o)return o.replace("%s",String(e))}return":root"};function Eze(t){return Qo(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Cze(t={}){const e={...t};function n(r){const o=Object.entries(r);for(let i=0;i{t[n]||(t[n]={})})}function H(t,e,n){!t[e]&&n&&(t[e]=n)}function of(t){return!t||!t.startsWith("hsl")?t:J3(t)}function Ni(t,e){`${e}Channel`in t||(t[`${e}Channel`]=tf(of(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Tze(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Jo=t=>{try{return t()}catch{}},Pze=(t="mui")=>GNe(t);function EE(t,e,n,r){if(!e)return;e=e===!0?{}:e;const o=r==="dark"?"dark":"light";if(!n){t[r]=xze({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:i,...a}=p4({...n,palette:{mode:o,...e==null?void 0:e.palette}});return t[r]={...e,palette:i,opacity:{...g4(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||v4(o)},a}function Mze(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=kze,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,...l}=t,u=Object.keys(n)[0],c=r||(n.light&&u!=="light"?"light":u),h=Pze(i),{[c]:d,light:f,dark:p,...g}=n,b={...g};let m=d;if((c==="dark"&&!("dark"in n)||c==="light"&&!("light"in n))&&(m=!0),!m)throw new Error(Di(21,c));const v=EE(b,m,l,c);f&&!b.light&&EE(b,f,void 0,"light"),p&&!b.dark&&EE(b,p,void 0,"dark");let y={defaultColorScheme:c,...v,cssVarPrefix:i,colorSchemeSelector:s,getCssVar:h,colorSchemes:b,font:{...sze(v.typography),...v.font},spacing:Tze(l.spacing)};Object.keys(y.colorSchemes).forEach(O=>{const w=y.colorSchemes[O].palette,T=I=>{const A=I.split("-"),D=A[1],R=A[2];return h(I,w[D][R])};if(w.mode==="light"&&(H(w.common,"background","#fff"),H(w.common,"onBackground","#000")),w.mode==="dark"&&(H(w.common,"background","#000"),H(w.common,"onBackground","#fff")),Oze(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){H(w.Alert,"errorColor",rt(w.error.light,.6)),H(w.Alert,"infoColor",rt(w.info.light,.6)),H(w.Alert,"successColor",rt(w.success.light,.6)),H(w.Alert,"warningColor",rt(w.warning.light,.6)),H(w.Alert,"errorFilledBg",T("palette-error-main")),H(w.Alert,"infoFilledBg",T("palette-info-main")),H(w.Alert,"successFilledBg",T("palette-success-main")),H(w.Alert,"warningFilledBg",T("palette-warning-main")),H(w.Alert,"errorFilledColor",Jo(()=>w.getContrastText(w.error.main))),H(w.Alert,"infoFilledColor",Jo(()=>w.getContrastText(w.info.main))),H(w.Alert,"successFilledColor",Jo(()=>w.getContrastText(w.success.main))),H(w.Alert,"warningFilledColor",Jo(()=>w.getContrastText(w.warning.main))),H(w.Alert,"errorStandardBg",ot(w.error.light,.9)),H(w.Alert,"infoStandardBg",ot(w.info.light,.9)),H(w.Alert,"successStandardBg",ot(w.success.light,.9)),H(w.Alert,"warningStandardBg",ot(w.warning.light,.9)),H(w.Alert,"errorIconColor",T("palette-error-main")),H(w.Alert,"infoIconColor",T("palette-info-main")),H(w.Alert,"successIconColor",T("palette-success-main")),H(w.Alert,"warningIconColor",T("palette-warning-main")),H(w.AppBar,"defaultBg",T("palette-grey-100")),H(w.Avatar,"defaultBg",T("palette-grey-400")),H(w.Button,"inheritContainedBg",T("palette-grey-300")),H(w.Button,"inheritContainedHoverBg",T("palette-grey-A100")),H(w.Chip,"defaultBorder",T("palette-grey-400")),H(w.Chip,"defaultAvatarColor",T("palette-grey-700")),H(w.Chip,"defaultIconColor",T("palette-grey-700")),H(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),H(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),H(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),H(w.LinearProgress,"primaryBg",ot(w.primary.main,.62)),H(w.LinearProgress,"secondaryBg",ot(w.secondary.main,.62)),H(w.LinearProgress,"errorBg",ot(w.error.main,.62)),H(w.LinearProgress,"infoBg",ot(w.info.main,.62)),H(w.LinearProgress,"successBg",ot(w.success.main,.62)),H(w.LinearProgress,"warningBg",ot(w.warning.main,.62)),H(w.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.11)`),H(w.Slider,"primaryTrack",ot(w.primary.main,.62)),H(w.Slider,"secondaryTrack",ot(w.secondary.main,.62)),H(w.Slider,"errorTrack",ot(w.error.main,.62)),H(w.Slider,"infoTrack",ot(w.info.main,.62)),H(w.Slider,"successTrack",ot(w.success.main,.62)),H(w.Slider,"warningTrack",ot(w.warning.main,.62));const I=Py(w.background.default,.8);H(w.SnackbarContent,"bg",I),H(w.SnackbarContent,"color",Jo(()=>w.getContrastText(I))),H(w.SpeedDialAction,"fabHoverBg",Py(w.background.paper,.15)),H(w.StepConnector,"border",T("palette-grey-400")),H(w.StepContent,"border",T("palette-grey-400")),H(w.Switch,"defaultColor",T("palette-common-white")),H(w.Switch,"defaultDisabledColor",T("palette-grey-100")),H(w.Switch,"primaryDisabledColor",ot(w.primary.main,.62)),H(w.Switch,"secondaryDisabledColor",ot(w.secondary.main,.62)),H(w.Switch,"errorDisabledColor",ot(w.error.main,.62)),H(w.Switch,"infoDisabledColor",ot(w.info.main,.62)),H(w.Switch,"successDisabledColor",ot(w.success.main,.62)),H(w.Switch,"warningDisabledColor",ot(w.warning.main,.62)),H(w.TableCell,"border",ot(Cy(w.divider,1),.88)),H(w.Tooltip,"bg",Cy(w.grey[700],.92))}if(w.mode==="dark"){H(w.Alert,"errorColor",ot(w.error.light,.6)),H(w.Alert,"infoColor",ot(w.info.light,.6)),H(w.Alert,"successColor",ot(w.success.light,.6)),H(w.Alert,"warningColor",ot(w.warning.light,.6)),H(w.Alert,"errorFilledBg",T("palette-error-dark")),H(w.Alert,"infoFilledBg",T("palette-info-dark")),H(w.Alert,"successFilledBg",T("palette-success-dark")),H(w.Alert,"warningFilledBg",T("palette-warning-dark")),H(w.Alert,"errorFilledColor",Jo(()=>w.getContrastText(w.error.dark))),H(w.Alert,"infoFilledColor",Jo(()=>w.getContrastText(w.info.dark))),H(w.Alert,"successFilledColor",Jo(()=>w.getContrastText(w.success.dark))),H(w.Alert,"warningFilledColor",Jo(()=>w.getContrastText(w.warning.dark))),H(w.Alert,"errorStandardBg",rt(w.error.light,.9)),H(w.Alert,"infoStandardBg",rt(w.info.light,.9)),H(w.Alert,"successStandardBg",rt(w.success.light,.9)),H(w.Alert,"warningStandardBg",rt(w.warning.light,.9)),H(w.Alert,"errorIconColor",T("palette-error-main")),H(w.Alert,"infoIconColor",T("palette-info-main")),H(w.Alert,"successIconColor",T("palette-success-main")),H(w.Alert,"warningIconColor",T("palette-warning-main")),H(w.AppBar,"defaultBg",T("palette-grey-900")),H(w.AppBar,"darkBg",T("palette-background-paper")),H(w.AppBar,"darkColor",T("palette-text-primary")),H(w.Avatar,"defaultBg",T("palette-grey-600")),H(w.Button,"inheritContainedBg",T("palette-grey-800")),H(w.Button,"inheritContainedHoverBg",T("palette-grey-700")),H(w.Chip,"defaultBorder",T("palette-grey-700")),H(w.Chip,"defaultAvatarColor",T("palette-grey-300")),H(w.Chip,"defaultIconColor",T("palette-grey-300")),H(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),H(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),H(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),H(w.LinearProgress,"primaryBg",rt(w.primary.main,.5)),H(w.LinearProgress,"secondaryBg",rt(w.secondary.main,.5)),H(w.LinearProgress,"errorBg",rt(w.error.main,.5)),H(w.LinearProgress,"infoBg",rt(w.info.main,.5)),H(w.LinearProgress,"successBg",rt(w.success.main,.5)),H(w.LinearProgress,"warningBg",rt(w.warning.main,.5)),H(w.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.13)`),H(w.Slider,"primaryTrack",rt(w.primary.main,.5)),H(w.Slider,"secondaryTrack",rt(w.secondary.main,.5)),H(w.Slider,"errorTrack",rt(w.error.main,.5)),H(w.Slider,"infoTrack",rt(w.info.main,.5)),H(w.Slider,"successTrack",rt(w.success.main,.5)),H(w.Slider,"warningTrack",rt(w.warning.main,.5));const I=Py(w.background.default,.98);H(w.SnackbarContent,"bg",I),H(w.SnackbarContent,"color",Jo(()=>w.getContrastText(I))),H(w.SpeedDialAction,"fabHoverBg",Py(w.background.paper,.15)),H(w.StepConnector,"border",T("palette-grey-600")),H(w.StepContent,"border",T("palette-grey-600")),H(w.Switch,"defaultColor",T("palette-grey-300")),H(w.Switch,"defaultDisabledColor",T("palette-grey-600")),H(w.Switch,"primaryDisabledColor",rt(w.primary.main,.55)),H(w.Switch,"secondaryDisabledColor",rt(w.secondary.main,.55)),H(w.Switch,"errorDisabledColor",rt(w.error.main,.55)),H(w.Switch,"infoDisabledColor",rt(w.info.main,.55)),H(w.Switch,"successDisabledColor",rt(w.success.main,.55)),H(w.Switch,"warningDisabledColor",rt(w.warning.main,.55)),H(w.TableCell,"border",rt(Cy(w.divider,1),.68)),H(w.Tooltip,"bg",Cy(w.grey[700],.92))}Ni(w.background,"default"),Ni(w.background,"paper"),Ni(w.common,"background"),Ni(w.common,"onBackground"),Ni(w,"divider"),Object.keys(w).forEach(I=>{const A=w[I];A&&typeof A=="object"&&(A.main&&H(w[I],"mainChannel",tf(of(A.main))),A.light&&H(w[I],"lightChannel",tf(of(A.light))),A.dark&&H(w[I],"darkChannel",tf(of(A.dark))),A.contrastText&&H(w[I],"contrastTextChannel",tf(of(A.contrastText))),I==="text"&&(Ni(w[I],"primary"),Ni(w[I],"secondary")),I==="action"&&(A.active&&Ni(w[I],"active"),A.selected&&Ni(w[I],"selected")))})}),y=e.reduce((O,w)=>Tn(O,w),y);const x={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:_ze(y)},{vars:S,generateThemeVars:_,generateStyleSheets:E}=ZNe(y,x);return y.vars=S,Object.entries(y.colorSchemes[y.defaultColorScheme]).forEach(([O,w])=>{y[O]=w}),y.generateThemeVars=_,y.generateStyleSheets=E,y.generateSpacing=function(){return Y3(l.spacing,aE(this))},y.getColorSchemeSelector=eze(s),y.spacing=y.generateSpacing(),y.shouldSkipGeneratingVar=a,y.unstable_sxConfig={...Zh,...l==null?void 0:l.unstable_sxConfig},y.unstable_sx=function(O){return Ju({sx:O,theme:this})},y.toRuntimeSource=Cze,y}function m4(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:SE({...n===!0?{}:n,mode:e})})}function y4(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=t,s=i||"light",l=o==null?void 0:o[s],u={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){const c=p4(t,...e);return"colorSchemes"in t&&(c.defaultColorScheme=s,c.colorSchemes=u,c.palette.mode==="light"&&(c.colorSchemes.light={palette:c.palette},m4(c,"dark",u.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={palette:c.palette},m4(c,"light",u.light))),c}return!n&&!("light"in u)&&s==="light"&&(u.light=!0),Mze({...a,colorSchemes:u,defaultColorScheme:s,...typeof r!="boolean"&&r},...e)}const Dy=y4();function nc(){const t=dy(Dy);return t[Vh]||t}function b4({props:t,name:e}){return ANe({props:t,name:e,defaultTheme:Dy,themeId:Vh})}function w4(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Hn=t=>w4(t)&&t!=="classes",ne=TNe({themeId:Vh,defaultTheme:Dy,rootShouldForwardProp:Hn});function Ize(t){return C.jsx(bNe,{...t,defaultTheme:Dy,themeId:Vh})}function Rze(t){return function(e){return C.jsx(Ize,{styles:typeof t=="function"?n=>t({theme:n,...e}):t})}}function Aze(){return uE}const x4={theme:void 0};function ze(t){let e,n;return r=>{let o=e;return(o===void 0||r.theme!==n)&&(x4.theme=r.theme,o=t(x4),e=o,n=r.theme),o}}function Ie(t){return XNe(t)}function Dze(t){return _e("MuiSvgIcon",t)}Se("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jze=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${ue(e)}`,`fontSize${ue(n)}`]};return Ce(o,Dze,r)},Nze=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${ue(n.color)}`],e[`fontSize${ue(n.fontSize)}`]]}})(ze(({theme:t})=>{var e,n,r,o,i,a,s,l,u,c,h,d,f,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=t.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=t.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((c=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,g])=>g&&g.main).map(([g])=>{var b,m;return{props:{color:g},style:{color:(m=(b=(t.vars??t).palette)==null?void 0:b[g])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(d=(h=(t.vars??t).palette)==null?void 0:h.action)==null?void 0:d.active}},{props:{color:"disabled"},style:{color:(p=(f=(t.vars??t).palette)==null?void 0:f.action)==null?void 0:p.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),jy=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:h="0 0 24 24",...d}=n,f=k.isValidElement(r)&&r.type==="svg",p={...n,color:i,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:f},g={};u||(g.viewBox=h);const b=jze(p);return C.jsxs(Nze,{as:a,className:ce(b.root,o),focusable:"false",color:l,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:e,...g,...d,...f&&r.props,ownerState:p,children:[f?r.props.children:r,c?C.jsx("title",{children:c}):null]})});jy&&(jy.muiName="SvgIcon");function $s(t,e){function n(r,o){return C.jsx(jy,{"data-testid":`${e}Icon`,ref:o,...r,children:t})}return n.muiName=jy.muiName,k.memo(k.forwardRef(n))}const zze={configure:t=>{cE.configure(t)}},Fze=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ue,createChainedFunction:mE,createSvgIcon:$s,debounce:yE,deprecatedPropType:LNe,isMuiElement:My,ownerDocument:Pn,ownerWindow:Na,requirePropFactory:BNe,setRef:Iy,unstable_ClassNameGenerator:zze,unstable_memoTheme:ze,unstable_useEnhancedEffect:Eo,unstable_useId:nf,unsupportedProp:WNe,useControlled:rf,useEventCallback:ji,useForkRef:Lt},Symbol.toStringTag,{value:"Module"}));function k4(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function CE(t,e){return CE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},CE(t,e)}function S4(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,CE(t,e)}const _4={disabled:!1},Ny=lo.createContext(null);var Lze=function(t){return t.scrollTop},af="unmounted",Ws="exited",Hs="entering",rc="entered",OE="exiting",Zo=function(t){S4(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Ws,i.appearStatus=Hs):l=rc:r.unmountOnExit||r.mountOnEnter?l=af:l=Ws,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(r,o){var i=r.in;return i&&o.status===af?{status:Ws}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==Hs&&i!==rc&&(o=Hs):(i===Hs||i===rc)&&(o=OE)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,i,a;return o=i=a=r,r!=null&&typeof r!="number"&&(o=r.exit,i=r.enter,a=r.appear!==void 0?r.appear:i),{exit:o,enter:i,appear:a}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===Hs){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:sg.findDOMNode(this);i&&Lze(i)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ws&&this.setState({status:af})},n.performEnter=function(r){var o=this,i=this.props.enter,a=this.context?this.context.isMounting:r,s=this.props.nodeRef?[a]:[sg.findDOMNode(this),a],l=s[0],u=s[1],c=this.getTimeouts(),h=a?c.appear:c.enter;if(!r&&!i||_4.disabled){this.safeSetState({status:rc},function(){o.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:Hs},function(){o.props.onEntering(l,u),o.onTransitionEnd(h,function(){o.safeSetState({status:rc},function(){o.props.onEntered(l,u)})})})},n.performExit=function(){var r=this,o=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:sg.findDOMNode(this);if(!o||_4.disabled){this.safeSetState({status:Ws},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:OE},function(){r.props.onExiting(a),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:Ws},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,o.nextCallback=null,r(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:sg.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=s[0],u=s[1];this.props.addEndListener(l,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===af)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=k4(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return lo.createElement(Ny.Provider,{value:null},typeof i=="function"?i(r,a):lo.cloneElement(lo.Children.only(i),a))},e}(lo.Component);Zo.contextType=Ny,Zo.propTypes={};function oc(){}Zo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oc,onEntering:oc,onEntered:oc,onExit:oc,onExiting:oc,onExited:oc},Zo.UNMOUNTED=af,Zo.EXITED=Ws,Zo.ENTERING=Hs,Zo.ENTERED=rc,Zo.EXITING=OE;function Bze(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function TE(t,e){var n=function(o){return e&&k.isValidElement(o)?e(o):o},r=Object.create(null);return t&&k.Children.map(t,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function $ze(t,e){t=t||{},e=e||{};function n(c){return c in e?e[c]:t[c]}var r=Object.create(null),o=[];for(var i in t)i in e?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in e){if(r[l])for(a=0;at.scrollTop;function zy(t,e){const{timeout:n,easing:r,style:o={}}=t;return{duration:o.transitionDuration??(typeof n=="number"?n:n[e.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[e.mode]:r),delay:o.transitionDelay}}function qze(t){return _e("MuiPaper",t)}Se("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Kze=t=>{const{square:e,elevation:n,variant:r,classes:o}=t,i={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return Ce(i,qze,o)},Yze=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(ze(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Fy=k.forwardRef(function(t,e){var d;const n=Ie({props:t,name:"MuiPaper"}),r=nc(),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation",...u}=n,c={...n,component:i,elevation:a,square:s,variant:l},h=Kze(c);return C.jsx(Yze,{as:i,ownerState:c,className:ce(h.root,o),ref:e,...u,style:{...l==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":(d=r.vars.overlays)==null?void 0:d[a]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${xt("#fff",_E(a))}, ${xt("#fff",_E(a))})`}},...u.style}})});function Zr(t,e){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s,...l}=e,{component:u,slots:c={[t]:void 0},slotProps:h={[t]:void 0},...d}=i,f=c[t]||r,p=s4(h[t],o),{props:{component:g,...b},internalRef:m}=a4({className:n,...l,externalForwardedProps:t==="root"?d:void 0,externalSlotProps:p}),v=Lt(m,p==null?void 0:p.ref,e.ref),y=a?a(b):{},x={...o,...y},S=t==="root"?g||u:g,_=ec(f,{...t==="root"&&!u&&!c[t]&&s,...t!=="root"&&!c[t]&&s,...b,...S&&{as:S},ref:v},x);return Object.keys(y).forEach(E=>{delete _[E]}),[f,_]}class Ly{constructor(){Uf(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Ly}static use(){const e=n4(Ly.create).current,[n,r]=k.useState(!1);return e.shouldMount=n,e.setShouldMount=r,k.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=Gze(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function Xze(){return Ly.use()}function Gze(){let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n}function Qze(t){const{className:e,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=t,[c,h]=k.useState(!1),d=ce(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},p=ce(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&h(!0),k.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,u);return()=>{clearTimeout(g)}}},[l,s,u]),C.jsx("span",{className:d,style:f,children:C.jsx("span",{className:p})})}const eo=Se("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ME=550,Jze=80,Zze=nE` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`,eFe=nE` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`,tFe=nE` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`,nFe=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rFe=ne(Qze,{name:"MuiTouchRipple",slot:"Ripple"})` - opacity: 0; - position: absolute; - - &.${eo.rippleVisible} { - opacity: 0.3; - transform: scale(1); - animation-name: ${Zze}; - animation-duration: ${ME}ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - } - - &.${eo.ripplePulsate} { - animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; - } - - & .${eo.child} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${eo.childLeaving} { - opacity: 0; - animation-name: ${eFe}; - animation-duration: ${ME}ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - } - - & .${eo.childPulsate} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${tFe}; - animation-duration: 2500ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`,oFe=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...a}=n,[s,l]=k.useState([]),u=k.useRef(0),c=k.useRef(null);k.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const h=k.useRef(!1),d=Zu(),f=k.useRef(null),p=k.useRef(null),g=k.useCallback(y=>{const{pulsate:x,rippleX:S,rippleY:_,rippleSize:E,cb:O}=y;l(w=>[...w,C.jsx(rFe,{classes:{ripple:ce(o.ripple,eo.ripple),rippleVisible:ce(o.rippleVisible,eo.rippleVisible),ripplePulsate:ce(o.ripplePulsate,eo.ripplePulsate),child:ce(o.child,eo.child),childLeaving:ce(o.childLeaving,eo.childLeaving),childPulsate:ce(o.childPulsate,eo.childPulsate)},timeout:ME,pulsate:x,rippleX:S,rippleY:_,rippleSize:E},u.current)]),u.current+=1,c.current=O},[o]),b=k.useCallback((y={},x={},S=()=>{})=>{const{pulsate:_=!1,center:E=r||x.pulsate,fakeElement:O=!1}=x;if((y==null?void 0:y.type)==="mousedown"&&h.current){h.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(h.current=!0);const w=O?null:p.current,T=w?w.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,A,D;if(E||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)I=Math.round(T.width/2),A=Math.round(T.height/2);else{const{clientX:R,clientY:P}=y.touches&&y.touches.length>0?y.touches[0]:y;I=Math.round(R-T.left),A=Math.round(P-T.top)}if(E)D=Math.sqrt((2*T.width**2+T.height**2)/3),D%2===0&&(D+=1);else{const R=Math.max(Math.abs((w?w.clientWidth:0)-I),I)*2+2,P=Math.max(Math.abs((w?w.clientHeight:0)-A),A)*2+2;D=Math.sqrt(R**2+P**2)}y!=null&&y.touches?f.current===null&&(f.current=()=>{g({pulsate:_,rippleX:I,rippleY:A,rippleSize:D,cb:S})},d.start(Jze,()=>{f.current&&(f.current(),f.current=null)})):g({pulsate:_,rippleX:I,rippleY:A,rippleSize:D,cb:S})},[r,g,d]),m=k.useCallback(()=>{b({},{pulsate:!0})},[b]),v=k.useCallback((y,x)=>{if(d.clear(),(y==null?void 0:y.type)==="touchend"&&f.current){f.current(),f.current=null,d.start(0,()=>{v(y,x)});return}f.current=null,l(S=>S.length>0?S.slice(1):S),c.current=x},[d]);return k.useImperativeHandle(e,()=>({pulsate:m,start:b,stop:v}),[m,b,v]),C.jsx(nFe,{className:ce(eo.root,o.root,i),ref:p,...a,children:C.jsx(PE,{component:null,exit:!0,children:s})})});function iFe(t){return _e("MuiButtonBase",t)}const aFe=Se("MuiButtonBase",["root","disabled","focusVisible"]),sFe=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,i=Ce({root:["root",e&&"disabled",n&&"focusVisible"]},iFe,o);return n&&r&&(i.root+=` ${r}`),i},lFe=ne("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${aFe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),By=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:h=!1,focusVisibleClassName:d,LinkComponent:f="a",onBlur:p,onClick:g,onContextMenu:b,onDragLeave:m,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:_,onMouseLeave:E,onMouseUp:O,onTouchEnd:w,onTouchMove:T,onTouchStart:I,tabIndex:A=0,TouchRippleProps:D,touchRippleRef:R,type:P,...M}=n,N=k.useRef(null),j=Xze(),W=Lt(j.ref,R),[B,ee]=k.useState(!1);l&&B&&ee(!1),k.useImperativeHandle(r,()=>({focusVisible:()=>{ee(!0),N.current.focus()}}),[]);const X=j.shouldMount&&!u&&!l;k.useEffect(()=>{B&&h&&!u&&j.pulsate()},[u,h,B,j]);function te(fe,vt,Ar=c){return ji(xn=>(vt&&vt(xn),Ar||j[fe](xn),!0))}const ae=te("start",_),ge=te("stop",b),Q=te("stop",m),we=te("stop",O),xe=te("stop",fe=>{B&&fe.preventDefault(),E&&E(fe)}),z=te("start",I),$=te("stop",w),L=te("stop",T),re=te("stop",fe=>{Ay(fe.target)||ee(!1),p&&p(fe)},!1),U=ji(fe=>{N.current||(N.current=fe.currentTarget),Ay(fe.target)&&(ee(!0),y&&y(fe)),v&&v(fe)}),ie=()=>{const fe=N.current;return s&&s!=="button"&&!(fe.tagName==="A"&&fe.href)},Te=ji(fe=>{h&&!fe.repeat&&B&&fe.key===" "&&j.stop(fe,()=>{j.start(fe)}),fe.target===fe.currentTarget&&ie()&&fe.key===" "&&fe.preventDefault(),x&&x(fe),fe.target===fe.currentTarget&&ie()&&fe.key==="Enter"&&!l&&(fe.preventDefault(),g&&g(fe))}),Ne=ji(fe=>{h&&fe.key===" "&&B&&!fe.defaultPrevented&&j.stop(fe,()=>{j.pulsate(fe)}),S&&S(fe),g&&fe.target===fe.currentTarget&&ie()&&fe.key===" "&&!fe.defaultPrevented&&g(fe)});let Ee=s;Ee==="button"&&(M.href||M.to)&&(Ee=f);const We={};Ee==="button"?(We.type=P===void 0?"button":P,We.disabled=l):(!M.href&&!M.to&&(We.role="button"),l&&(We["aria-disabled"]=l));const kt=Lt(e,N),ke={...n,centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:h,tabIndex:A,focusVisible:B},Kt=sFe(ke);return C.jsxs(lFe,{as:Ee,className:ce(Kt.root,a),ownerState:ke,onBlur:re,onClick:g,onContextMenu:ge,onFocus:U,onKeyDown:Te,onKeyUp:Ne,onMouseDown:ae,onMouseLeave:xe,onMouseUp:we,onDragLeave:Q,onTouchEnd:$,onTouchMove:L,onTouchStart:z,ref:kt,tabIndex:l?-1:A,type:P,...We,...M,children:[i,X?C.jsx(oFe,{ref:W,center:o,...D}):null]})});function uFe(t){return _e("MuiIconButton",t)}const cFe=Se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),dFe=t=>{const{classes:e,disabled:n,color:r,edge:o,size:i}=t,a={root:["root",n&&"disabled",r!=="default"&&`color${ue(r)}`,o&&`edge${ue(o)}`,`size${ue(i)}`]};return Ce(a,uFe,e)},hFe=ne(By,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${ue(n.color)}`],n.edge&&e[`edge${ue(n.edge)}`],e[`size${ue(n.size)}`]]}})(ze(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:{disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ze(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:xt((t.vars||t).palette[e].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${cFe.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}}))),Us=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,disableRipple:u=!1,size:c="medium",...h}=n,d={...n,edge:r,color:a,disabled:s,disableFocusRipple:l,disableRipple:u,size:c},f=dFe(d);return C.jsx(hFe,{className:ce(f.root,i),centerRipple:!0,focusRipple:!l,disabled:s,disableRipple:u,ref:e,...h,ownerState:d,children:o})});function fFe(t){return _e("MuiTypography",t)}Se("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const pFe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},gFe=Aze(),vFe=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=t,s={root:["root",i,t.align!=="inherit"&&`align${ue(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ce(s,fFe,a)},mFe=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${ue(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(ze(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(t.palette).filter(([,n])=>n&&n.main).map(([n])=>({props:{color:n},style:{color:(t.vars||t).palette[n].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${ue(n)}`},style:{color:(t.vars||t).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),C4={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ic=k.forwardRef(function(t,e){const{color:n,...r}=Ie({props:t,name:"MuiTypography"}),o=!pFe[n],i=gFe({...r,...o&&{color:n}}),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:h=!1,variant:d="body1",variantMapping:f=C4,...p}=i,g={...i,align:a,color:n,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:h,variant:d,variantMapping:f},b=l||(h?"p":f[d]||C4[d])||"span",m=vFe(g);return C.jsx(mFe,{as:b,ref:e,className:ce(m.root,s),...p,ownerState:g,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...p.style}})});var hr="top",to="bottom",no="right",fr="left",IE="auto",sf=[hr,to,no,fr],ac="start",lf="end",yFe="clippingParents",O4="viewport",uf="popper",bFe="reference",T4=sf.reduce(function(t,e){return t.concat([e+"-"+ac,e+"-"+lf])},[]),P4=[].concat(sf,[IE]).reduce(function(t,e){return t.concat([e,e+"-"+ac,e+"-"+lf])},[]),wFe="beforeRead",xFe="read",kFe="afterRead",SFe="beforeMain",_Fe="main",EFe="afterMain",CFe="beforeWrite",OFe="write",TFe="afterWrite",PFe=[wFe,xFe,kFe,SFe,_Fe,EFe,CFe,OFe,TFe];function ei(t){return t?(t.nodeName||"").toLowerCase():null}function Ir(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function qs(t){var e=Ir(t).Element;return t instanceof e||t instanceof Element}function ro(t){var e=Ir(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function RE(t){if(typeof ShadowRoot>"u")return!1;var e=Ir(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function MFe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!ro(i)||!ei(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function IFe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!ro(o)||!ei(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const RFe={name:"applyStyles",enabled:!0,phase:"write",fn:MFe,effect:IFe,requires:["computeStyles"]};function ti(t){return t.split("-")[0]}var Ks=Math.max,$y=Math.min,sc=Math.round;function AE(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function M4(){return!/^((?!chrome|android).)*safari/i.test(AE())}function lc(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&ro(t)&&(o=t.offsetWidth>0&&sc(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&sc(r.height)/t.offsetHeight||1);var a=qs(t)?Ir(t):window,s=a.visualViewport,l=!M4()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,h=r.width/o,d=r.height/i;return{width:h,height:d,top:c,right:u+h,bottom:c+d,left:u,x:u,y:c}}function DE(t){var e=lc(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function I4(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&RE(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zi(t){return Ir(t).getComputedStyle(t)}function AFe(t){return["table","td","th"].indexOf(ei(t))>=0}function za(t){return((qs(t)?t.ownerDocument:t.document)||window.document).documentElement}function Wy(t){return ei(t)==="html"?t:t.assignedSlot||t.parentNode||(RE(t)?t.host:null)||za(t)}function R4(t){return!ro(t)||zi(t).position==="fixed"?null:t.offsetParent}function DFe(t){var e=/firefox/i.test(AE()),n=/Trident/i.test(AE());if(n&&ro(t)){var r=zi(t);if(r.position==="fixed")return null}var o=Wy(t);for(RE(o)&&(o=o.host);ro(o)&&["html","body"].indexOf(ei(o))<0;){var i=zi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function cf(t){for(var e=Ir(t),n=R4(t);n&&AFe(n)&&zi(n).position==="static";)n=R4(n);return n&&(ei(n)==="html"||ei(n)==="body"&&zi(n).position==="static")?e:n||DFe(t)||e}function jE(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function df(t,e,n){return Ks(t,$y(e,n))}function jFe(t,e,n){var r=df(t,e,n);return r>n?n:r}function A4(){return{top:0,right:0,bottom:0,left:0}}function D4(t){return Object.assign({},A4(),t)}function j4(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var NFe=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,D4(typeof t!="number"?t:j4(t,sf))};function zFe(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ti(n.placement),l=jE(s),u=[fr,no].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var h=NFe(o.padding,n),d=DE(i),f=l==="y"?hr:fr,p=l==="y"?to:no,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],b=a[l]-n.rects.reference[l],m=cf(i),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,y=g/2-b/2,x=h[f],S=v-d[c]-h[p],_=v/2-d[c]/2+y,E=df(x,_,S),O=l;n.modifiersData[r]=(e={},e[O]=E,e.centerOffset=E-_,e)}}function FFe(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||I4(e.elements.popper,o)&&(e.elements.arrow=o))}const LFe={name:"arrow",enabled:!0,phase:"main",fn:zFe,effect:FFe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uc(t){return t.split("-")[1]}var BFe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $Fe(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:sc(n*o)/o||0,y:sc(r*o)/o||0}}function N4(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,h=t.isFixed,d=a.x,f=d===void 0?0:d,p=a.y,g=p===void 0?0:p,b=typeof c=="function"?c({x:f,y:g}):{x:f,y:g};f=b.x,g=b.y;var m=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),y=fr,x=hr,S=window;if(u){var _=cf(n),E="clientHeight",O="clientWidth";if(_===Ir(n)&&(_=za(n),zi(_).position!=="static"&&s==="absolute"&&(E="scrollHeight",O="scrollWidth")),_=_,o===hr||(o===fr||o===no)&&i===lf){x=to;var w=h&&_===S&&S.visualViewport?S.visualViewport.height:_[E];g-=w-r.height,g*=l?1:-1}if(o===fr||(o===hr||o===to)&&i===lf){y=no;var T=h&&_===S&&S.visualViewport?S.visualViewport.width:_[O];f-=T-r.width,f*=l?1:-1}}var I=Object.assign({position:s},u&&BFe),A=c===!0?$Fe({x:f,y:g},Ir(n)):{x:f,y:g};if(f=A.x,g=A.y,l){var D;return Object.assign({},I,(D={},D[x]=v?"0":"",D[y]=m?"0":"",D.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",D))}return Object.assign({},I,(e={},e[x]=v?g+"px":"",e[y]=m?f+"px":"",e.transform="",e))}function WFe(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:ti(e.placement),variation:uc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,N4(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,N4(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const HFe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:WFe,data:{}};var Hy={passive:!0};function VFe(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Ir(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Hy)}),s&&l.addEventListener("resize",n.update,Hy),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Hy)}),s&&l.removeEventListener("resize",n.update,Hy)}}const UFe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:VFe,data:{}};var qFe={left:"right",right:"left",bottom:"top",top:"bottom"};function Vy(t){return t.replace(/left|right|bottom|top/g,function(e){return qFe[e]})}var KFe={start:"end",end:"start"};function z4(t){return t.replace(/start|end/g,function(e){return KFe[e]})}function NE(t){var e=Ir(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function zE(t){return lc(za(t)).left+NE(t).scrollLeft}function YFe(t,e){var n=Ir(t),r=za(t),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=M4();(u||!u&&e==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+zE(t),y:l}}function XFe(t){var e,n=za(t),r=NE(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=Ks(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ks(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+zE(t),l=-r.scrollTop;return zi(o||n).direction==="rtl"&&(s+=Ks(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function FE(t){var e=zi(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function F4(t){return["html","body","#document"].indexOf(ei(t))>=0?t.ownerDocument.body:ro(t)&&FE(t)?t:F4(Wy(t))}function hf(t,e){var n;e===void 0&&(e=[]);var r=F4(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Ir(r),a=o?[i].concat(i.visualViewport||[],FE(r)?r:[]):r,s=e.concat(a);return o?s:s.concat(hf(Wy(a)))}function LE(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function GFe(t,e){var n=lc(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function L4(t,e,n){return e===O4?LE(YFe(t,n)):qs(e)?GFe(e,n):LE(XFe(za(t)))}function QFe(t){var e=hf(Wy(t)),n=["absolute","fixed"].indexOf(zi(t).position)>=0,r=n&&ro(t)?cf(t):t;return qs(r)?e.filter(function(o){return qs(o)&&I4(o,r)&&ei(o)!=="body"}):[]}function JFe(t,e,n,r){var o=e==="clippingParents"?QFe(t):[].concat(e),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=L4(t,u,r);return l.top=Ks(c.top,l.top),l.right=$y(c.right,l.right),l.bottom=$y(c.bottom,l.bottom),l.left=Ks(c.left,l.left),l},L4(t,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function B4(t){var e=t.reference,n=t.element,r=t.placement,o=r?ti(r):null,i=r?uc(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(o){case hr:l={x:a,y:e.y-n.height};break;case to:l={x:a,y:e.y+e.height};break;case no:l={x:e.x+e.width,y:s};break;case fr:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var u=o?jE(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case ac:l[u]=l[u]-(e[c]/2-n[c]/2);break;case lf:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function ff(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,a=i===void 0?t.strategy:i,s=n.boundary,l=s===void 0?yFe:s,u=n.rootBoundary,c=u===void 0?O4:u,h=n.elementContext,d=h===void 0?uf:h,f=n.altBoundary,p=f===void 0?!1:f,g=n.padding,b=g===void 0?0:g,m=D4(typeof b!="number"?b:j4(b,sf)),v=d===uf?bFe:uf,y=t.rects.popper,x=t.elements[p?v:d],S=JFe(qs(x)?x:x.contextElement||za(t.elements.popper),l,c,a),_=lc(t.elements.reference),E=B4({reference:_,element:y,strategy:"absolute",placement:o}),O=LE(Object.assign({},y,E)),w=d===uf?O:_,T={top:S.top-w.top+m.top,bottom:w.bottom-S.bottom+m.bottom,left:S.left-w.left+m.left,right:w.right-S.right+m.right},I=t.modifiersData.offset;if(d===uf&&I){var A=I[o];Object.keys(T).forEach(function(D){var R=[no,to].indexOf(D)>=0?1:-1,P=[hr,to].indexOf(D)>=0?"y":"x";T[D]+=A[P]*R})}return T}function ZFe(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?P4:l,c=uc(r),h=c?s?T4:T4.filter(function(p){return uc(p)===c}):sf,d=h.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=h);var f=d.reduce(function(p,g){return p[g]=ff(t,{placement:g,boundary:o,rootBoundary:i,padding:a})[ti(g)],p},{});return Object.keys(f).sort(function(p,g){return f[p]-f[g]})}function eLe(t){if(ti(t)===IE)return[];var e=Vy(t);return[z4(t),e,z4(e)]}function tLe(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,h=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=f===void 0?!0:f,g=n.allowedAutoPlacements,b=e.options.placement,m=ti(b),v=m===b,y=l||(v||!p?[Vy(b)]:eLe(b)),x=[b].concat(y).reduce(function(ae,ge){return ae.concat(ti(ge)===IE?ZFe(e,{placement:ge,boundary:c,rootBoundary:h,padding:u,flipVariations:p,allowedAutoPlacements:g}):ge)},[]),S=e.rects.reference,_=e.rects.popper,E=new Map,O=!0,w=x[0],T=0;T=0,P=R?"width":"height",M=ff(e,{placement:I,boundary:c,rootBoundary:h,altBoundary:d,padding:u}),N=R?D?no:fr:D?to:hr;S[P]>_[P]&&(N=Vy(N));var j=Vy(N),W=[];if(i&&W.push(M[A]<=0),s&&W.push(M[N]<=0,M[j]<=0),W.every(function(ae){return ae})){w=I,O=!1;break}E.set(I,W)}if(O)for(var B=p?3:1,ee=function(ae){var ge=x.find(function(Q){var we=E.get(Q);if(we)return we.slice(0,ae).every(function(xe){return xe})});if(ge)return w=ge,"break"},X=B;X>0;X--){var te=ee(X);if(te==="break")break}e.placement!==w&&(e.modifiersData[r]._skip=!0,e.placement=w,e.reset=!0)}}const nLe={name:"flip",enabled:!0,phase:"main",fn:tLe,requiresIfExists:["offset"],data:{_skip:!1}};function $4(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function W4(t){return[hr,no,to,fr].some(function(e){return t[e]>=0})}function rLe(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=ff(e,{elementContext:"reference"}),s=ff(e,{altBoundary:!0}),l=$4(a,r),u=$4(s,o,i),c=W4(l),h=W4(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}const oLe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rLe};function iLe(t,e,n){var r=ti(t),o=[fr,hr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[fr,no].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function aLe(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,a=P4.reduce(function(c,h){return c[h]=iLe(h,e.rects,i),c},{}),s=a[e.placement],l=s.x,u=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}const sLe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aLe};function lLe(t){var e=t.state,n=t.name;e.modifiersData[n]=B4({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const uLe={name:"popperOffsets",enabled:!0,phase:"read",fn:lLe,data:{}};function cLe(t){return t==="x"?"y":"x"}function dLe(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,h=n.padding,d=n.tether,f=d===void 0?!0:d,p=n.tetherOffset,g=p===void 0?0:p,b=ff(e,{boundary:l,rootBoundary:u,padding:h,altBoundary:c}),m=ti(e.placement),v=uc(e.placement),y=!v,x=jE(m),S=cLe(x),_=e.modifiersData.popperOffsets,E=e.rects.reference,O=e.rects.popper,w=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,T=typeof w=="number"?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(_){if(i){var D,R=x==="y"?hr:fr,P=x==="y"?to:no,M=x==="y"?"height":"width",N=_[x],j=N+b[R],W=N-b[P],B=f?-O[M]/2:0,ee=v===ac?E[M]:O[M],X=v===ac?-O[M]:-E[M],te=e.elements.arrow,ae=f&&te?DE(te):{width:0,height:0},ge=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:A4(),Q=ge[R],we=ge[P],xe=df(0,E[M],ae[M]),z=y?E[M]/2-B-xe-Q-T.mainAxis:ee-xe-Q-T.mainAxis,$=y?-E[M]/2+B+xe+we+T.mainAxis:X+xe+we+T.mainAxis,L=e.elements.arrow&&cf(e.elements.arrow),re=L?x==="y"?L.clientTop||0:L.clientLeft||0:0,U=(D=I==null?void 0:I[x])!=null?D:0,ie=N+z-U-re,Te=N+$-U,Ne=df(f?$y(j,ie):j,N,f?Ks(W,Te):W);_[x]=Ne,A[x]=Ne-N}if(s){var Ee,We=x==="x"?hr:fr,kt=x==="x"?to:no,ke=_[S],Kt=S==="y"?"height":"width",fe=ke+b[We],vt=ke-b[kt],Ar=[hr,fr].indexOf(m)!==-1,xn=(Ee=I==null?void 0:I[S])!=null?Ee:0,Un=Ar?fe:ke-E[Kt]-O[Kt]-xn+T.altAxis,oo=Ar?ke+E[Kt]+O[Kt]-xn-T.altAxis:vt,Gt=f&&Ar?jFe(Un,ke,oo):df(f?Un:fe,ke,f?oo:vt);_[S]=Gt,A[S]=Gt-ke}e.modifiersData[r]=A}}const hLe={name:"preventOverflow",enabled:!0,phase:"main",fn:dLe,requiresIfExists:["offset"]};function fLe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function pLe(t){return t===Ir(t)||!ro(t)?NE(t):fLe(t)}function gLe(t){var e=t.getBoundingClientRect(),n=sc(e.width)/t.offsetWidth||1,r=sc(e.height)/t.offsetHeight||1;return n!==1||r!==1}function vLe(t,e,n){n===void 0&&(n=!1);var r=ro(e),o=ro(e)&&gLe(e),i=za(e),a=lc(t,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ei(e)!=="body"||FE(i))&&(s=pLe(e)),ro(e)?(l=lc(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=zE(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function mLe(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function yLe(t){var e=mLe(t);return PFe.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function bLe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function wLe(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var H4={placement:"bottom",modifiers:[],strategy:"absolute"};function V4(){for(var t=arguments.length,e=new Array(t),n=0;n{o||a(_Le(r)||document.body)},[r,o]),Eo(()=>{if(i&&!o)return Iy(e,i),()=>{Iy(e,null)}},[e,i,o]),o){if(k.isValidElement(n)){const l={ref:s};return k.cloneElement(n,l)}return C.jsx(k.Fragment,{children:n})}return C.jsx(k.Fragment,{children:i&&N1.createPortal(n,i)})});function ELe(t){return _e("MuiPopper",t)}Se("MuiPopper",["root"]);function CLe(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function BE(t){return typeof t=="function"?t():t}function OLe(t){return t.nodeType!==void 0}const TLe=t=>{const{classes:e}=t;return Ce({root:["root"]},ELe,e)},PLe={},MLe=k.forwardRef(function(t,e){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:a,open:s,placement:l,popperOptions:u,popperRef:c,slotProps:h={},slots:d={},TransitionProps:f,ownerState:p,...g}=t,b=k.useRef(null),m=Lt(b,e),v=k.useRef(null),y=Lt(v,c),x=k.useRef(y);Eo(()=>{x.current=y},[y]),k.useImperativeHandle(c,()=>v.current,[]);const S=CLe(l,o),[_,E]=k.useState(S),[O,w]=k.useState(BE(n));k.useEffect(()=>{v.current&&v.current.forceUpdate()}),k.useEffect(()=>{n&&w(BE(n))},[n]),Eo(()=>{if(!O||!s)return;const R=N=>{E(N.placement)};let P=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:N})=>{R(N)}}];a!=null&&(P=P.concat(a)),u&&u.modifiers!=null&&(P=P.concat(u.modifiers));const M=SLe(O,b.current,{placement:S,...u,modifiers:P});return x.current(M),()=>{M.destroy(),x.current(null)}},[O,i,a,s,u,S]);const T={placement:_};f!==null&&(T.TransitionProps=f);const I=TLe(t),A=d.root??"div",D=bE({elementType:A,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:I.root});return C.jsx(A,{...D,children:typeof r=="function"?r(T):r})}),ILe=k.forwardRef(function(t,e){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:u,placement:c="bottom",popperOptions:h=PLe,popperRef:d,style:f,transition:p=!1,slotProps:g={},slots:b={},...m}=t,[v,y]=k.useState(!0),x=()=>{y(!1)},S=()=>{y(!0)};if(!s&&!u&&(!p||v))return null;let _;if(o)_=o;else if(n){const w=BE(n);_=w&&OLe(w)?Pn(w).body:Pn(null).body}const E=!u&&s&&(!p||v)?"none":void 0,O=p?{in:u,onEnter:x,onExited:S}:void 0;return C.jsx(U4,{disablePortal:a,container:_,children:C.jsx(MLe,{anchorEl:n,direction:i,disablePortal:a,modifiers:l,ref:e,open:p?!v:u,placement:c,popperOptions:h,popperRef:d,slotProps:g,slots:b,...m,style:{position:"fixed",top:0,left:0,display:E,...f},TransitionProps:O,children:r})})}),RLe=ne(ILe,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),q4=k.forwardRef(function(t,e){const n=wE(),r=Ie({props:t,name:"MuiPopper"}),{anchorEl:o,component:i,components:a,componentsProps:s,container:l,disablePortal:u,keepMounted:c,modifiers:h,open:d,placement:f,popperOptions:p,popperRef:g,transition:b,slots:m,slotProps:v,...y}=r,x=(m==null?void 0:m.root)??(a==null?void 0:a.Root),S={anchorEl:o,container:l,disablePortal:u,keepMounted:c,modifiers:h,open:d,placement:f,popperOptions:p,popperRef:g,transition:b,...y};return C.jsx(RLe,{as:i,direction:n?"rtl":"ltr",slots:{root:x},slotProps:v??s,...S,ref:e})});function Uy(t){return parseInt(t,10)||0}const ALe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function DLe(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const jLe=k.forwardRef(function(t,e){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a,...s}=t,{current:l}=k.useRef(a!=null),u=k.useRef(null),c=Lt(e,u),h=k.useRef(null),d=k.useRef(null),f=k.useCallback(()=>{const b=u.current,m=Na(b).getComputedStyle(b);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const v=d.current;v.style.width=m.width,v.value=b.value||t.placeholder||"x",v.value.slice(-1)===` -`&&(v.value+=" ");const y=m.boxSizing,x=Uy(m.paddingBottom)+Uy(m.paddingTop),S=Uy(m.borderBottomWidth)+Uy(m.borderTopWidth),_=v.scrollHeight;v.value="x";const E=v.scrollHeight;let O=_;o&&(O=Math.max(Number(o)*E,O)),r&&(O=Math.min(Number(r)*E,O)),O=Math.max(O,E);const w=O+(y==="border-box"?x+S:0),T=Math.abs(O-_)<=1;return{outerHeightStyle:w,overflowing:T}},[r,o,t.placeholder]),p=k.useCallback(()=>{const b=f();if(DLe(b))return;const m=b.outerHeightStyle,v=u.current;h.current!==m&&(h.current=m,v.style.height=`${m}px`),v.style.overflow=b.overflowing?"hidden":""},[f]);Eo(()=>{const b=()=>{p()};let m;const v=yE(b),y=u.current,x=Na(y);x.addEventListener("resize",v);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(b),S.observe(y)),()=>{v.clear(),cancelAnimationFrame(m),x.removeEventListener("resize",v),S&&S.disconnect()}},[f,p]),Eo(()=>{p()});const g=b=>{l||p(),n&&n(b)};return C.jsxs(k.Fragment,{children:[C.jsx("textarea",{value:a,onChange:g,ref:c,rows:o,style:i,...s}),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:{...ALe.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function $E(t){return typeof t=="string"}function Ys({props:t,states:e,muiFormControl:n}){return e.reduce((r,o)=>(r[o]=t[o],n&&typeof t[o]>"u"&&(r[o]=n[o]),r),{})}const WE=k.createContext(void 0);function Fa(){return k.useContext(WE)}function K4(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function qy(t,e=!1){return t&&(K4(t.value)&&t.value!==""||e&&K4(t.defaultValue)&&t.defaultValue!=="")}function NLe(t){return t.startAdornment}function zLe(t){return _e("MuiInputBase",t)}const cc=Se("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Y4;const Ky=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${ue(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},Yy=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},FLe=t=>{const{classes:e,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:h,size:d,startAdornment:f,type:p}=t,g={root:["root",`color${ue(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",d&&d!=="medium"&&`size${ue(d)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return Ce(g,zLe,e)},Xy=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ky})(ze(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${cc.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:n})=>e.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Gy=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Yy})(ze(({theme:t})=>{const e=t.palette.mode==="light",n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},r={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${cc.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${cc.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),X4=Rze({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),LLe=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:a,color:s,components:l={},componentsProps:u={},defaultValue:c,disabled:h,disableInjectingGlobalStyles:d,endAdornment:f,error:p,fullWidth:g=!1,id:b,inputComponent:m="input",inputProps:v={},inputRef:y,margin:x,maxRows:S,minRows:_,multiline:E=!1,name:O,onBlur:w,onChange:T,onClick:I,onFocus:A,onKeyDown:D,onKeyUp:R,placeholder:P,readOnly:M,renderSuffix:N,rows:j,size:W,slotProps:B={},slots:ee={},startAdornment:X,type:te="text",value:ae,...ge}=n,Q=v.value!=null?v.value:ae,{current:we}=k.useRef(Q!=null),xe=k.useRef(),z=k.useCallback(Pe=>{},[]),$=Lt(xe,y,v.ref,z),[L,re]=k.useState(!1),U=Fa(),ie=Ys({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=U?U.focused:L,k.useEffect(()=>{!U&&h&&L&&(re(!1),w&&w())},[U,h,L,w]);const Te=U&&U.onFilled,Ne=U&&U.onEmpty,Ee=k.useCallback(Pe=>{qy(Pe)?Te&&Te():Ne&&Ne()},[Te,Ne]);Eo(()=>{we&&Ee({value:Q})},[Q,Ee,we]);const We=Pe=>{A&&A(Pe),v.onFocus&&v.onFocus(Pe),U&&U.onFocus?U.onFocus(Pe):re(!0)},kt=Pe=>{w&&w(Pe),v.onBlur&&v.onBlur(Pe),U&&U.onBlur?U.onBlur(Pe):re(!1)},ke=(Pe,...qn)=>{if(!we){const ii=Pe.target||xe.current;if(ii==null)throw new Error(Di(1));Ee({value:ii.value})}v.onChange&&v.onChange(Pe,...qn),T&&T(Pe,...qn)};k.useEffect(()=>{Ee(xe.current)},[]);const Kt=Pe=>{xe.current&&Pe.currentTarget===Pe.target&&xe.current.focus(),I&&I(Pe)};let fe=m,vt=v;E&&fe==="input"&&(j?vt={type:void 0,minRows:j,maxRows:j,...vt}:vt={type:void 0,maxRows:S,minRows:_,...vt},fe=jLe);const Ar=Pe=>{Ee(Pe.animationName==="mui-auto-fill-cancel"?xe.current:{value:"x"})};k.useEffect(()=>{U&&U.setAdornedStart(!!X)},[U,X]);const xn={...n,color:ie.color||"primary",disabled:ie.disabled,endAdornment:f,error:ie.error,focused:ie.focused,formControl:U,fullWidth:g,hiddenLabel:ie.hiddenLabel,multiline:E,size:ie.size,startAdornment:X,type:te},Un=FLe(xn),oo=ee.root||l.Root||Xy,Gt=B.root||u.root||{},io=ee.input||l.Input||Gy;return vt={...vt,...B.input??u.input},C.jsxs(k.Fragment,{children:[!d&&typeof X4=="function"&&(Y4||(Y4=C.jsx(X4,{}))),C.jsxs(oo,{...Gt,ref:e,onClick:Kt,...ge,...!$E(oo)&&{ownerState:{...xn,...Gt.ownerState}},className:ce(Un.root,Gt.className,a,M&&"MuiInputBase-readOnly"),children:[X,C.jsx(WE.Provider,{value:null,children:C.jsx(io,{"aria-invalid":ie.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:c,disabled:ie.disabled,id:b,onAnimationStart:Ar,name:O,placeholder:P,readOnly:M,required:ie.required,rows:j,value:Q,onKeyDown:D,onKeyUp:R,type:te,...vt,...!$E(io)&&{as:fe,ownerState:{...xn,...vt.ownerState}},ref:$,className:ce(Un.input,vt.className,M&&"MuiInputBase-readOnly"),onBlur:kt,onChange:ke,onFocus:We})}),f,N?N({...ie,startAdornment:X}):null]})]})}),HE=LLe;function BLe(t){return _e("MuiInput",t)}const pf={...cc,...Se("MuiInput",["root","underline","input"])};function $Le(t){return _e("MuiOutlinedInput",t)}const ni={...cc,...Se("MuiOutlinedInput",["root","notchedOutline","input"])};function WLe(t){return _e("MuiFilledInput",t)}const Xs={...cc,...Se("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},HLe=$s(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),VLe={entering:{opacity:1},entered:{opacity:1}},G4=k.forwardRef(function(t,e){const n=nc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:h,onExit:d,onExited:f,onExiting:p,style:g,timeout:b=r,TransitionComponent:m=Zo,...v}=t,y=k.useRef(null),x=Lt(y,tc(a),e),S=D=>R=>{if(D){const P=y.current;R===void 0?D(P):D(P,R)}},_=S(h),E=S((D,R)=>{E4(D);const P=zy({style:g,timeout:b,easing:s},{mode:"enter"});D.style.webkitTransition=n.transitions.create("opacity",P),D.style.transition=n.transitions.create("opacity",P),u&&u(D,R)}),O=S(c),w=S(p),T=S(D=>{const R=zy({style:g,timeout:b,easing:s},{mode:"exit"});D.style.webkitTransition=n.transitions.create("opacity",R),D.style.transition=n.transitions.create("opacity",R),d&&d(D)}),I=S(f),A=D=>{o&&o(y.current,D)};return C.jsx(m,{appear:i,in:l,nodeRef:y,onEnter:E,onEntered:O,onEntering:_,onExit:T,onExited:I,onExiting:w,addEndListener:A,timeout:b,...v,children:(D,R)=>k.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!l?"hidden":void 0,...VLe[D],...g,...a.props.style},ref:x,...R})})});function ULe(t){return _e("MuiBackdrop",t)}Se("MuiBackdrop",["root","invisible"]);const qLe=t=>{const{classes:e,invisible:n}=t;return Ce({root:["root",n&&"invisible"]},ULe,e)},KLe=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Q4=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:s,components:l={},componentsProps:u={},slotProps:c={},slots:h={},TransitionComponent:d,transitionDuration:f,...p}=n,g={...n,component:i,invisible:a},b=qLe(g),m={transition:d,root:l.Root,...h},v={...u,...c},y={slots:m,slotProps:v},[x,S]=Zr("root",{elementType:KLe,externalForwardedProps:y,className:ce(b.root,o),ownerState:g}),[_,E]=Zr("transition",{elementType:G4,externalForwardedProps:y,ownerState:g});return delete E.ownerState,C.jsx(_,{in:s,timeout:f,...p,...E,children:C.jsx(x,{"aria-hidden":!0,...S,classes:b,ref:e,children:r})})}),YLe=Se("MuiBox",["root"]),XLe=y4(),GLe=kNe({themeId:Vh,defaultTheme:XLe,defaultClassName:YLe.root,generateClassName:cE.generate});function QLe(t){return _e("MuiButton",t)}const dc=Se("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),JLe=k.createContext({}),ZLe=k.createContext(void 0),eBe=t=>{const{color:e,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=t,s={root:["root",i,`${i}${ue(e)}`,`size${ue(o)}`,`${i}Size${ue(o)}`,`color${ue(e)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ue(o)}`],endIcon:["icon","endIcon",`iconSize${ue(o)}`]},l=Ce(s,QLe,a);return{...a,...l}},J4=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],tBe=ne(By,{shouldForwardProp:t=>Hn(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${ue(n.color)}`],e[`size${ue(n.size)}`],e[`${n.variant}Size${ue(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})(ze(({theme:t})=>{var r,o;const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${dc.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${dc.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${dc.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${dc.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(([,i])=>i&&i.main&&i.dark&&i.contrastText).map(([i])=>({props:{color:i},style:{"--variant-textColor":(t.vars||t).palette[i].main,"--variant-outlinedColor":(t.vars||t).palette[i].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[i].mainChannel} / 0.5)`:xt(t.palette[i].main,.5),"--variant-containedColor":(t.vars||t).palette[i].contrastText,"--variant-containedBg":(t.vars||t).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[i].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[i].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette[i].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[i].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[i].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette[i].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{"--variant-containedColor":t.vars?t.vars.palette.text.primary:(o=(r=t.palette).getContrastText)==null?void 0:o.call(r,e),"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${dc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${dc.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),nBe=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e[`iconSize${ue(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...J4]}),rBe=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e[`iconSize${ue(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...J4]}),Vn=k.forwardRef(function(t,e){const n=k.useContext(JLe),r=k.useContext(ZLe),o=ef(n,t),i=Ie({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:h=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:g=!1,size:b="medium",startIcon:m,type:v,variant:y="text",...x}=i,S={...i,color:s,component:l,disabled:c,disableElevation:h,disableFocusRipple:d,fullWidth:g,size:b,type:v,variant:y},_=eBe(S),E=m&&C.jsx(nBe,{className:_.startIcon,ownerState:S,children:m}),O=f&&C.jsx(rBe,{className:_.endIcon,ownerState:S,children:f}),w=r||"";return C.jsxs(tBe,{ownerState:S,className:ce(n.className,_.root,u,w),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:ce(_.focusVisible,p),ref:e,type:v,...x,classes:_,children:[E,a,O]})});function oBe(t){return _e("PrivateSwitchBase",t)}Se("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const iBe=t=>{const{classes:e,checked:n,disabled:r,edge:o}=t,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ue(o)}`],input:["input"]};return Ce(i,oBe,e)},aBe=ne(By)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),sBe=ne("input",{shouldForwardProp:Hn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lBe=k.forwardRef(function(t,e){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:h,inputProps:d,inputRef:f,name:p,onBlur:g,onChange:b,onFocus:m,readOnly:v,required:y=!1,tabIndex:x,type:S,value:_,...E}=t,[O,w]=rf({controlled:r,default:!!a,name:"SwitchBase",state:"checked"}),T=Fa(),I=j=>{m&&m(j),T&&T.onFocus&&T.onFocus(j)},A=j=>{g&&g(j),T&&T.onBlur&&T.onBlur(j)},D=j=>{if(j.nativeEvent.defaultPrevented)return;const W=j.target.checked;w(W),b&&b(j,W)};let R=s;T&&typeof R>"u"&&(R=T.disabled);const P=S==="checkbox"||S==="radio",M={...t,checked:O,disabled:R,disableFocusRipple:l,edge:u},N=iBe(M);return C.jsxs(aBe,{component:"span",className:ce(N.root,i),centerRipple:!0,focusRipple:!l,disabled:R,tabIndex:null,role:void 0,onFocus:I,onBlur:A,ownerState:M,ref:e,...E,children:[C.jsx(sBe,{autoFocus:n,checked:r,defaultChecked:a,className:N.input,disabled:R,id:P?h:void 0,name:p,onChange:D,readOnly:v,ref:f,required:y,ownerState:M,tabIndex:x,type:S,...S==="checkbox"&&_===void 0?{}:{value:_},...d}),O?o:c]})}),uBe=$s(C.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),cBe=$s(C.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),dBe=$s(C.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function hBe(t){return _e("MuiCheckbox",t)}const VE=Se("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),fBe=t=>{const{classes:e,indeterminate:n,color:r,size:o}=t,i={root:["root",n&&"indeterminate",`color${ue(r)}`,`size${ue(o)}`]},a=Ce(i,hBe,e);return{...e,...a}},pBe=ne(lBe,{shouldForwardProp:t=>Hn(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.indeterminate&&e.indeterminate,e[`size${ue(n.size)}`],n.color!=="default"&&e[`color${ue(n.color)}`]]}})(ze(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{[`&.${VE.checked}, &.${VE.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${VE.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),gBe=C.jsx(cBe,{}),vBe=C.jsx(uBe,{}),mBe=C.jsx(dBe,{}),Qy=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiCheckbox"}),{checkedIcon:r=gBe,color:o="primary",icon:i=vBe,indeterminate:a=!1,indeterminateIcon:s=mBe,inputProps:l,size:u="medium",disableRipple:c=!1,className:h,...d}=n,f=a?s:i,p=a?s:r,g={...n,disableRipple:c,color:o,indeterminate:a,size:u},b=fBe(g);return C.jsx(pBe,{type:"checkbox",inputProps:{"data-indeterminate":a,...l},icon:k.cloneElement(f,{fontSize:f.props.fontSize??u}),checkedIcon:k.cloneElement(p,{fontSize:p.props.fontSize??u}),ownerState:g,ref:e,className:ce(b.root,h),...d,classes:b})});function yBe(t){const e=Pn(t);return e.body===t?Na(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function gf(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Z4(t){return parseInt(Na(t).getComputedStyle(t).paddingRight,10)||0}function bBe(t){const e=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName)!==-1,n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return e||n}function e$(t,e,n,r,o){const i=[e,n,...r];[].forEach.call(t.children,a=>{const s=i.indexOf(a)===-1,l=!bBe(a);s&&l&&gf(a,o)})}function UE(t,e){let n=-1;return t.some((r,o)=>e(r)?(n=o,!0):!1),n}function wBe(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(yBe(r)){const i=r4(Pn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Z4(r)+i}px`;const a=Pn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${Z4(s)+i}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Pn(r).body;else{const i=r.parentElement,a=Na(r);o=(i==null?void 0:i.nodeName)==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:i,property:a})=>{o?i.style.setProperty(a,o):i.style.removeProperty(a)})}}function xBe(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class kBe{constructor(){this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&gf(e.modalRef,!1);const o=xBe(n);e$(n,e.mount,e.modalRef,o,!0);const i=UE(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:o}),r)}mount(e,n){const r=UE(this.containers,i=>i.modals.indexOf(e)!==-1),o=this.containers[r];o.restore||(o.restore=wBe(o,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const o=UE(this.containers,a=>a.modals.indexOf(e)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&gf(e.modalRef,n),e$(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&gf(a.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const SBe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _Be(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function EBe(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function CBe(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||EBe(t))}function OBe(t){const e=[],n=[];return Array.from(t.querySelectorAll(SBe)).forEach((r,o)=>{const i=_Be(r);i===-1||!CBe(r)||(i===0?e.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(e)}function TBe(){return!0}function PBe(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=OBe,isEnabled:a=TBe,open:s}=t,l=k.useRef(!1),u=k.useRef(null),c=k.useRef(null),h=k.useRef(null),d=k.useRef(null),f=k.useRef(!1),p=k.useRef(null),g=Lt(tc(e),p),b=k.useRef(null);k.useEffect(()=>{!s||!p.current||(f.current=!n)},[n,s]),k.useEffect(()=>{if(!s||!p.current)return;const y=Pn(p.current);return p.current.contains(y.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),f.current&&p.current.focus()),()=>{o||(h.current&&h.current.focus&&(l.current=!0,h.current.focus()),h.current=null)}},[s]),k.useEffect(()=>{if(!s||!p.current)return;const y=Pn(p.current),x=E=>{b.current=E,!(r||!a()||E.key!=="Tab")&&y.activeElement===p.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())},S=()=>{var w,T;const E=p.current;if(E===null)return;if(!y.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(y.activeElement)||r&&y.activeElement!==u.current&&y.activeElement!==c.current)return;if(y.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!f.current)return;let O=[];if((y.activeElement===u.current||y.activeElement===c.current)&&(O=i(p.current)),O.length>0){const I=!!((w=b.current)!=null&&w.shiftKey&&((T=b.current)==null?void 0:T.key)==="Tab"),A=O[0],D=O[O.length-1];typeof A!="string"&&typeof D!="string"&&(I?D.focus():A.focus())}else E.focus()};y.addEventListener("focusin",S),y.addEventListener("keydown",x,!0);const _=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(_),y.removeEventListener("focusin",S),y.removeEventListener("keydown",x,!0)}},[n,r,o,a,s,i]);const m=y=>{h.current===null&&(h.current=y.relatedTarget),f.current=!0,d.current=y.target;const x=e.props.onFocus;x&&x(y)},v=y=>{h.current===null&&(h.current=y.relatedTarget),f.current=!0};return C.jsxs(k.Fragment,{children:[C.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),k.cloneElement(e,{ref:g,onFocus:m}),C.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}function MBe(t){return typeof t=="function"?t():t}function IBe(t){return t?t.props.hasOwnProperty("in"):!1}const RBe=new kBe;function ABe(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=RBe,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:h}=t,d=k.useRef({}),f=k.useRef(null),p=k.useRef(null),g=Lt(p,h),[b,m]=k.useState(!c),v=IBe(l);let y=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(y=!1);const x=()=>Pn(f.current),S=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),_=()=>{o.mount(S(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},E=ji(()=>{const D=MBe(e)||x().body;o.add(S(),D),p.current&&_()}),O=k.useCallback(()=>o.isTopModal(S()),[o]),w=ji(D=>{f.current=D,D&&(c&&O()?_():p.current&&gf(p.current,y))}),T=k.useCallback(()=>{o.remove(S(),y)},[y,o]);k.useEffect(()=>()=>{T()},[T]),k.useEffect(()=>{c?E():(!v||!i)&&T()},[c,T,v,i,E]);const I=D=>R=>{var P;(P=D.onKeyDown)==null||P.call(D,R),!(R.key!=="Escape"||R.which===229||!O())&&(n||(R.stopPropagation(),u&&u(R,"escapeKeyDown")))},A=D=>R=>{var P;(P=D.onClick)==null||P.call(D,R),R.target===R.currentTarget&&u&&u(R,"backdropClick")};return{getRootProps:(D={})=>{const R=o4(t);delete R.onTransitionEnter,delete R.onTransitionExited;const P={...R,...D};return{role:"presentation",...P,onKeyDown:I(P),ref:g}},getBackdropProps:(D={})=>{const R=D;return{"aria-hidden":!0,...R,onClick:A(R),open:c}},getTransitionProps:()=>{const D=()=>{m(!1),a&&a()},R=()=>{m(!0),s&&s(),i&&T()};return{onEnter:mE(D,l==null?void 0:l.props.onEnter),onExited:mE(R,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:w,isTopModal:O,exited:b,hasTransition:v}}function DBe(t){return _e("MuiModal",t)}Se("MuiModal",["root","hidden","backdrop"]);const jBe=t=>{const{open:e,exited:n,classes:r}=t;return Ce({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},DBe,r)},NBe=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(ze(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),zBe=ne(Q4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),t$=k.forwardRef(function(t,e){const n=Ie({name:"MuiModal",props:t}),{BackdropComponent:r=zBe,BackdropProps:o,classes:i,className:a,closeAfterTransition:s=!1,children:l,container:u,component:c,components:h={},componentsProps:d={},disableAutoFocus:f=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:g=!1,disablePortal:b=!1,disableRestoreFocus:m=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:x=!1,onBackdropClick:S,onClose:_,onTransitionEnter:E,onTransitionExited:O,open:w,slotProps:T={},slots:I={},theme:A,...D}=n,R={...n,closeAfterTransition:s,disableAutoFocus:f,disableEnforceFocus:p,disableEscapeKeyDown:g,disablePortal:b,disableRestoreFocus:m,disableScrollLock:v,hideBackdrop:y,keepMounted:x},{getRootProps:P,getBackdropProps:M,getTransitionProps:N,portalRef:j,isTopModal:W,exited:B,hasTransition:ee}=ABe({...R,rootRef:e}),X={...R,exited:B},te=jBe(X),ae={};if(l.props.tabIndex===void 0&&(ae.tabIndex="-1"),ee){const{onEnter:L,onExited:re}=N();ae.onEnter=L,ae.onExited=re}const ge={slots:{root:h.Root,backdrop:h.Backdrop,...I},slotProps:{...d,...T}},[Q,we]=Zr("root",{elementType:NBe,externalForwardedProps:ge,getSlotProps:P,additionalProps:{ref:e,as:c},ownerState:X,className:ce(a,te==null?void 0:te.root,!X.open&&X.exited&&(te==null?void 0:te.hidden))}),[xe,z]=Zr("backdrop",{elementType:r,externalForwardedProps:ge,additionalProps:o,getSlotProps:L=>M({...L,onClick:re=>{S&&S(re),L!=null&&L.onClick&&L.onClick(re)}}),className:ce(o==null?void 0:o.className,te==null?void 0:te.backdrop),ownerState:X}),$=Lt(o==null?void 0:o.ref,z.ref);return!x&&!w&&(!ee||B)?null:C.jsx(U4,{ref:j,container:u,disablePortal:b,children:C.jsxs(Q,{...we,...D,children:[!y&&r?C.jsx(xe,{...z,ref:$}):null,C.jsx(PBe,{disableEnforceFocus:p,disableAutoFocus:f,disableRestoreFocus:m,isEnabled:W,open:w,children:k.cloneElement(l,ae)})]})})});function FBe(t){return _e("MuiDialog",t)}const qE=Se("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),n$=k.createContext({}),LBe=ne(Q4,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),BBe=t=>{const{classes:e,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=t,a={root:["root"],container:["container",`scroll${ue(n)}`],paper:["paper",`paperScroll${ue(n)}`,`paperWidth${ue(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ce(a,FBe,e)},$Be=ne(t$,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),WBe=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${ue(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),HBe=ne(Fy,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${ue(n.scroll)}`],e[`paperWidth${ue(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(ze(({theme:t})=>({margin:32,position:"relative","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${qE.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${qE.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${qE.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),vf=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiDialog"}),r=nc(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,BackdropComponent:s,BackdropProps:l,children:u,className:c,disableEscapeKeyDown:h=!1,fullScreen:d=!1,fullWidth:f=!1,maxWidth:p="sm",onBackdropClick:g,onClick:b,onClose:m,open:v,PaperComponent:y=Fy,PaperProps:x={},scroll:S="paper",TransitionComponent:_=G4,transitionDuration:E=o,TransitionProps:O,...w}=n,T={...n,disableEscapeKeyDown:h,fullScreen:d,fullWidth:f,maxWidth:p,scroll:S},I=BBe(T),A=k.useRef(),D=N=>{A.current=N.target===N.currentTarget},R=N=>{b&&b(N),A.current&&(A.current=null,g&&g(N),m&&m(N,"backdropClick"))},P=nf(a),M=k.useMemo(()=>({titleId:P}),[P]);return C.jsx($Be,{className:ce(I.root,c),closeAfterTransition:!0,components:{Backdrop:LBe},componentsProps:{backdrop:{transitionDuration:E,as:s,...l}},disableEscapeKeyDown:h,onClose:m,open:v,ref:e,onClick:R,ownerState:T,...w,children:C.jsx(_,{appear:!0,in:v,timeout:E,role:"presentation",...O,children:C.jsx(WBe,{className:ce(I.container),onMouseDown:D,ownerState:T,children:C.jsx(HBe,{as:y,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":P,...x,className:ce(I.paper,x.className),ownerState:T,children:C.jsx(n$.Provider,{value:M,children:u})})})})})});function VBe(t){return _e("MuiDialogActions",t)}Se("MuiDialogActions",["root","spacing"]);const UBe=t=>{const{classes:e,disableSpacing:n}=t;return Ce({root:["root",!n&&"spacing"]},VBe,e)},qBe=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),mf=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...i}=n,a={...n,disableSpacing:o},s=UBe(a);return C.jsx(qBe,{className:ce(s.root,r),ownerState:a,ref:e,...i})});function KBe(t){return _e("MuiDialogContent",t)}Se("MuiDialogContent",["root","dividers"]);function YBe(t){return _e("MuiDialogTitle",t)}const XBe=Se("MuiDialogTitle",["root"]),GBe=t=>{const{classes:e,dividers:n}=t;return Ce({root:["root",n&&"dividers"]},KBe,e)},QBe=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(ze(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${XBe.root} + &`]:{paddingTop:0}}}]}))),yf=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...i}=n,a={...n,dividers:o},s=GBe(a);return C.jsx(QBe,{className:ce(s.root,r),ownerState:a,ref:e,...i})});function JBe(t){return _e("MuiDialogContentText",t)}Se("MuiDialogContentText",["root"]);const ZBe=t=>{const{classes:e}=t,n=Ce({root:["root"]},JBe,e);return{...e,...n}},e5e=ne(ic,{shouldForwardProp:t=>Hn(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),t5e=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiDialogContentText"}),{children:r,className:o,...i}=n,a=ZBe(i);return C.jsx(e5e,{component:"p",variant:"body1",color:"textSecondary",ref:e,ownerState:i,className:ce(a.root,o),...n,classes:a})}),n5e=t=>{const{classes:e}=t;return Ce({root:["root"]},YBe,e)},r5e=ne(ic,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),bf=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiDialogTitle"}),{className:r,id:o,...i}=n,a=n,s=n5e(a),{titleId:l=o}=k.useContext(n$);return C.jsx(r5e,{component:"h2",className:ce(s.root,r),ownerState:a,ref:e,variant:"h6",id:o??l,...i})});function o5e(t){return _e("MuiDivider",t)}const r$=Se("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),i5e=t=>{const{absolute:e,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=t;return Ce({root:["root",e&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},o5e,r)},a5e=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.absolute&&e.absolute,e[n.variant],n.light&&e.light,n.orientation==="vertical"&&e.vertical,n.flexItem&&e.flexItem,n.children&&e.withChildren,n.children&&n.orientation==="vertical"&&e.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&e.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&e.textAlignLeft]}})(ze(({theme:t})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:xt(t.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&e.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>e.orientation==="vertical"&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>e.textAlign==="right"&&e.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>e.textAlign==="left"&&e.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),s5e=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.wrapper,n.orientation==="vertical"&&e.wrapperVertical]}})(ze(({theme:t})=>({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`,variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}}]}))),KE=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,orientation:a="horizontal",component:s=o||a==="vertical"?"div":"hr",flexItem:l=!1,light:u=!1,role:c=s!=="hr"?"separator":void 0,textAlign:h="center",variant:d="fullWidth",...f}=n,p={...n,absolute:r,component:s,flexItem:l,light:u,orientation:a,role:c,textAlign:h,variant:d},g=i5e(p);return C.jsx(a5e,{as:s,className:ce(g.root,i),role:c,ref:e,ownerState:p,"aria-orientation":c==="separator"&&(s!=="hr"||a==="vertical")?a:void 0,...f,children:o?C.jsx(s5e,{className:g.wrapper,ownerState:p,children:o}):null})});KE&&(KE.muiSkipListHighlight=!0);const l5e=t=>{const{classes:e,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=t,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${ue(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},u=Ce(l,WLe,e);return{...e,...u}},u5e=ne(Xy,{shouldForwardProp:t=>Hn(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Ky(t,e),!n.disableUnderline&&e.underline]}})(ze(({theme:t})=>{const e=t.palette.mode==="light",n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${Xs.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${Xs.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xs.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xs.disabled}, .${Xs.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Xs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(([,a])=>a&&a.main).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(t.vars||t).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),c5e=ne(Gy,{name:"MuiFilledInput",slot:"Input",overridesResolver:Yy})(ze(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Jy=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,hiddenLabel:s,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:h={},type:d="text",...f}=n,p={...n,disableUnderline:r,fullWidth:a,inputComponent:l,multiline:u,type:d},g=l5e(n),b={root:{ownerState:p},input:{ownerState:p}},m=c??i?Tn(b,c??i):b,v=h.root??o.Root??u5e,y=h.input??o.Input??c5e;return C.jsx(HE,{slots:{root:v,input:y},componentsProps:m,fullWidth:a,inputComponent:l,multiline:u,ref:e,type:d,...f,classes:g})});Jy&&(Jy.muiName="Input");function d5e(t){return _e("MuiFormControl",t)}Se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const h5e=t=>{const{classes:e,margin:n,fullWidth:r}=t,o={root:["root",n!=="none"&&`margin${ue(n)}`,r&&"fullWidth"]};return Ce(o,d5e,e)},f5e=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},e)=>({...e.root,...e[`margin${ue(t.margin)}`],...t.fullWidth&&e.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),wf=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiFormControl"}),{children:r,className:o,color:i="primary",component:a="div",disabled:s=!1,error:l=!1,focused:u,fullWidth:c=!1,hiddenLabel:h=!1,margin:d="none",required:f=!1,size:p="medium",variant:g="outlined",...b}=n,m={...n,color:i,component:a,disabled:s,error:l,fullWidth:c,hiddenLabel:h,margin:d,required:f,size:p,variant:g},v=h5e(m),[y,x]=k.useState(()=>{let A=!1;return r&&k.Children.forEach(r,D=>{if(!My(D,["Input","Select"]))return;const R=My(D,["Select"])?D.props.input:D;R&&NLe(R.props)&&(A=!0)}),A}),[S,_]=k.useState(()=>{let A=!1;return r&&k.Children.forEach(r,D=>{My(D,["Input","Select"])&&(qy(D.props,!0)||qy(D.props.inputProps,!0))&&(A=!0)}),A}),[E,O]=k.useState(!1);s&&E&&O(!1);const w=u!==void 0&&!s?u:E;let T;const I=k.useMemo(()=>({adornedStart:y,setAdornedStart:x,color:i,disabled:s,error:l,filled:S,focused:w,fullWidth:c,hiddenLabel:h,size:p,onBlur:()=>{O(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{O(!0)},registerEffect:T,required:f,variant:g}),[y,i,s,l,S,w,c,h,T,f,p,g]);return C.jsx(WE.Provider,{value:I,children:C.jsx(f5e,{as:a,ownerState:m,className:ce(v.root,o),ref:e,...b,children:r})})});function p5e(t){return _e("MuiFormControlLabel",t)}const xf=Se("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),g5e=t=>{const{classes:e,disabled:n,labelPlacement:r,error:o,required:i}=t,a={root:["root",n&&"disabled",`labelPlacement${ue(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ce(a,p5e,e)},v5e=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${xf.label}`]:e.label},e.root,e[`labelPlacement${ue(n.labelPlacement)}`]]}})(ze(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${xf.disabled}`]:{cursor:"default"},[`& .${xf.label}`]:{[`&.${xf.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),m5e=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(ze(({theme:t})=>({[`&.${xf.error}`]:{color:(t.vars||t).palette.error.main}}))),Zy=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:i={},control:a,disabled:s,disableTypography:l,inputRef:u,label:c,labelPlacement:h="end",name:d,onChange:f,required:p,slots:g={},slotProps:b={},value:m,...v}=n,y=Fa(),x=s??a.props.disabled??(y==null?void 0:y.disabled),S=p??a.props.required,_={disabled:x,required:S};["checked","name","onChange","value","inputRef"].forEach(R=>{typeof a.props[R]>"u"&&typeof n[R]<"u"&&(_[R]=n[R])});const E=Ys({props:n,muiFormControl:y,states:["error"]}),O={...n,disabled:x,labelPlacement:h,required:S,error:E.error},w=g5e(O),T={slots:g,slotProps:{...i,...b}},[I,A]=Zr("typography",{elementType:ic,externalForwardedProps:T,ownerState:O});let D=c;return D!=null&&D.type!==ic&&!l&&(D=C.jsx(I,{component:"span",...A,className:ce(w.label,A==null?void 0:A.className),children:D})),C.jsxs(v5e,{className:ce(w.root,o),ownerState:O,ref:e,...v,children:[k.cloneElement(a,_),S?C.jsxs("div",{children:[D,C.jsxs(m5e,{ownerState:O,"aria-hidden":!0,className:w.asterisk,children:["\u2009","*"]})]}):D]})});function y5e(t){return _e("MuiFormHelperText",t)}const o$=Se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var i$;const b5e=t=>{const{classes:e,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=t,u={root:["root",o&&"disabled",i&&"error",r&&`size${ue(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Ce(u,y5e,e)},w5e=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e[`size${ue(n.size)}`],n.contained&&e.contained,n.filled&&e.filled]}})(ze(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${o$.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${o$.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),x5e=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiFormHelperText"}),{children:r,className:o,component:i="p",disabled:a,error:s,filled:l,focused:u,margin:c,required:h,variant:d,...f}=n,p=Fa(),g=Ys({props:n,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),b={...n,component:i,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete b.ownerState;const m=b5e(b);return C.jsx(w5e,{as:i,className:ce(m.root,o),ref:e,...f,ownerState:b,children:r===" "?i$||(i$=C.jsx("span",{className:"notranslate",children:"\u200B"})):r})});function k5e(t){return _e("MuiFormLabel",t)}const kf=Se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),S5e=t=>{const{classes:e,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=t,l={root:["root",`color${ue(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Ce(l,k5e,e)},_5e=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:t},e)=>({...e.root,...t.color==="secondary"&&e.colorSecondary,...t.filled&&e.filled})})(ze(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{[`&.${kf.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${kf.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${kf.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),E5e=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(ze(({theme:t})=>({[`&.${kf.error}`]:{color:(t.vars||t).palette.error.main}}))),C5e=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiFormLabel"}),{children:r,className:o,color:i,component:a="label",disabled:s,error:l,filled:u,focused:c,required:h,...d}=n,f=Fa(),p=Ys({props:n,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),g={...n,color:p.color||"primary",component:a,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},b=S5e(g);return C.jsxs(_5e,{as:a,ownerState:g,className:ce(b.root,o),ref:e,...d,children:[r,p.required&&C.jsxs(E5e,{ownerState:g,"aria-hidden":!0,className:b.asterisk,children:["\u2009","*"]})]})}),a$=k.createContext();function O5e(t){return _e("MuiGrid",t)}const T5e=[0,1,2,3,4,5,6,7,8,9,10],P5e=["column-reverse","column","row-reverse","row"],M5e=["nowrap","wrap-reverse","wrap"],Sf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],_f=Se("MuiGrid",["root","container","item","zeroMinWidth",...T5e.map(t=>`spacing-xs-${t}`),...P5e.map(t=>`direction-xs-${t}`),...M5e.map(t=>`wrap-xs-${t}`),...Sf.map(t=>`grid-xs-${t}`),...Sf.map(t=>`grid-sm-${t}`),...Sf.map(t=>`grid-md-${t}`),...Sf.map(t=>`grid-lg-${t}`),...Sf.map(t=>`grid-xl-${t}`)]);function I5e({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,o)=>{let i={};if(e[o]&&(n=e[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=ry({values:e.columns,breakpoints:t.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const c=t.spacing(e.columnSpacing);if(c!=="0px"){const h=`calc(${l} + ${c})`;u={flexBasis:h,maxWidth:h}}}i={flexBasis:l,flexGrow:0,maxWidth:l,...u}}return t.breakpoints.values[o]===0?Object.assign(r,i):r[t.breakpoints.up(o)]=i,r},{})}function R5e({theme:t,ownerState:e}){const n=ry({values:e.direction,breakpoints:t.breakpoints.values});return Xr({theme:t},n,r=>{const o={flexDirection:r};return r.startsWith("column")&&(o[`& > .${_f.item}`]={maxWidth:"none"}),o})}function s$({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(o=>{n===""&&e[o]!==0&&(n=o)});const r=Object.keys(t).sort((o,i)=>t[o]-t[i]);return r.slice(0,r.indexOf(n))}function A5e({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let o={};if(n&&r!==0){const i=ry({values:r,breakpoints:t.breakpoints.values});let a;typeof i=="object"&&(a=s$({breakpoints:t.breakpoints.values,values:i})),o=Xr({theme:t},i,(s,l)=>{const u=t.spacing(s);return u!=="0px"?{marginTop:t.spacing(-s),[`& > .${_f.item}`]:{paddingTop:u}}:a!=null&&a.includes(l)?{}:{marginTop:0,[`& > .${_f.item}`]:{paddingTop:0}}})}return o}function D5e({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let o={};if(n&&r!==0){const i=ry({values:r,breakpoints:t.breakpoints.values});let a;typeof i=="object"&&(a=s$({breakpoints:t.breakpoints.values,values:i})),o=Xr({theme:t},i,(s,l)=>{const u=t.spacing(s);if(u!=="0px"){const c=t.spacing(-s);return{width:`calc(100% + ${u})`,marginLeft:c,[`& > .${_f.item}`]:{paddingLeft:u}}}return a!=null&&a.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${_f.item}`]:{paddingLeft:0}}})}return o}function j5e(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(o=>{const i=t[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const N5e=ne("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=j5e(a,u,e));const h=[];return u.forEach(d=>{const f=n[d];f&&h.push(e[`grid-${d}-${String(f)}`])}),[e.root,r&&e.container,i&&e.item,l&&e.zeroMinWidth,...c,o!=="row"&&e[`direction-xs-${String(o)}`],s!=="wrap"&&e[`wrap-xs-${String(s)}`],...h]}})(({ownerState:t})=>({boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...t.item&&{margin:0},...t.zeroMinWidth&&{minWidth:0},...t.wrap!=="wrap"&&{flexWrap:t.wrap}}),R5e,A5e,D5e,I5e);function z5e(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const o=t[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const F5e=t=>{const{classes:e,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=t;let u=[];n&&(u=z5e(i,l));const c=[];l.forEach(d=>{const f=t[d];f&&c.push(`grid-${d}-${String(f)}`)});const h={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return Ce(h,O5e,e)},Rr=k.forwardRef(function(t,e){const n=b4({props:t,name:"MuiGrid"}),{breakpoints:r}=nc(),o=uE(n),{className:i,columns:a,columnSpacing:s,component:l="div",container:u=!1,direction:c="row",item:h=!1,rowSpacing:d,spacing:f=0,wrap:p="wrap",zeroMinWidth:g=!1,...b}=o,m=d||f,v=s||f,y=k.useContext(a$),x=u?a||12:y,S={},_={...b};r.keys.forEach(w=>{b[w]!=null&&(S[w]=b[w],delete _[w])});const E={...o,columns:x,container:u,direction:c,item:h,rowSpacing:m,columnSpacing:v,wrap:p,zeroMinWidth:g,spacing:f,...S,breakpoints:r.keys},O=F5e(E);return C.jsx(a$.Provider,{value:x,children:C.jsx(N5e,{ownerState:E,className:ce(O.root,i),as:l,ref:e,..._})})});function YE(t){return`scale(${t}, ${t**2})`}const L5e={entering:{opacity:1,transform:YE(1)},entered:{opacity:1,transform:"none"}},XE=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ef=k.forwardRef(function(t,e){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:h,onExiting:d,style:f,timeout:p="auto",TransitionComponent:g=Zo,...b}=t,m=Zu(),v=k.useRef(),y=nc(),x=k.useRef(null),S=Lt(x,tc(o),e),_=R=>P=>{if(R){const M=x.current;P===void 0?R(M):R(M,P)}},E=_(u),O=_((R,P)=>{E4(R);const{duration:M,delay:N,easing:j}=zy({style:f,timeout:p,easing:i},{mode:"enter"});let W;p==="auto"?(W=y.transitions.getAutoHeightDuration(R.clientHeight),v.current=W):W=M,R.style.transition=[y.transitions.create("opacity",{duration:W,delay:N}),y.transitions.create("transform",{duration:XE?W:W*.666,delay:N,easing:j})].join(","),s&&s(R,P)}),w=_(l),T=_(d),I=_(R=>{const{duration:P,delay:M,easing:N}=zy({style:f,timeout:p,easing:i},{mode:"exit"});let j;p==="auto"?(j=y.transitions.getAutoHeightDuration(R.clientHeight),v.current=j):j=P,R.style.transition=[y.transitions.create("opacity",{duration:j,delay:M}),y.transitions.create("transform",{duration:XE?j:j*.666,delay:XE?M:M||j*.333,easing:N})].join(","),R.style.opacity=0,R.style.transform=YE(.75),c&&c(R)}),A=_(h),D=R=>{p==="auto"&&m.start(v.current||0,R),n&&n(x.current,R)};return C.jsx(g,{appear:r,in:a,nodeRef:x,onEnter:O,onEntered:w,onEntering:E,onExit:I,onExited:A,onExiting:T,addEndListener:D,timeout:p==="auto"?null:p,...b,children:(R,P)=>k.cloneElement(o,{style:{opacity:0,transform:YE(.75),visibility:R==="exited"&&!a?"hidden":void 0,...L5e[R],...f,...o.props.style},ref:S,...P})})});Ef&&(Ef.muiSupportAuto=!0);const B5e=t=>{const{classes:e,disableUnderline:n}=t,r=Ce({root:["root",!n&&"underline"],input:["input"]},BLe,e);return{...e,...r}},$5e=ne(Xy,{shouldForwardProp:t=>Hn(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Ky(t,e),!n.disableUnderline&&e.underline]}})(ze(({theme:t})=>{let e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(e=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${pf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pf.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${e}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${pf.disabled}, .${pf.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${e}`}},[`&.${pf.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(([,n])=>n&&n.main).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),W5e=ne(Gy,{name:"MuiInput",slot:"Input",overridesResolver:Yy})({}),e0=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,inputComponent:s="input",multiline:l=!1,slotProps:u,slots:c={},type:h="text",...d}=n,f=B5e(n),p={root:{ownerState:{disableUnderline:r}}},g=u??i?Tn(u??i,p):p,b=c.root??o.Root??$5e,m=c.input??o.Input??W5e;return C.jsx(HE,{slots:{root:b,input:m},slotProps:g,fullWidth:a,inputComponent:s,multiline:l,ref:e,type:h,...d,classes:f})});e0&&(e0.muiName="Input");function H5e(t){return _e("MuiInputLabel",t)}Se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const V5e=t=>{const{classes:e,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=t,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ue(r)}`,a],asterisk:[s&&"asterisk"]},u=Ce(l,H5e,e);return{...e,...u}},U5e=ne(C5e,{shouldForwardProp:t=>Hn(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${kf.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(ze(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:n,size:r})=>e==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Cf=k.forwardRef(function(t,e){const n=Ie({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:o,shrink:i,variant:a,className:s,...l}=n,u=Fa();let c=i;typeof c>"u"&&u&&(c=u.filled||u.focused||u.adornedStart);const h=Ys({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),d={...n,disableAnimation:r,formControl:u,shrink:c,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=V5e(d);return C.jsx(U5e,{"data-shrink":c,ref:e,className:ce(f.root,s),...l,ownerState:d,classes:f})}),GE=k.createContext({});function q5e(t){return _e("MuiList",t)}Se("MuiList",["root","padding","dense","subheader"]);const K5e=t=>{const{classes:e,disablePadding:n,dense:r,subheader:o}=t;return Ce({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},q5e,e)},Y5e=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),X5e=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l,...u}=n,c=k.useMemo(()=>({dense:a}),[a]),h={...n,component:i,dense:a,disablePadding:s},d=K5e(h);return C.jsx(GE.Provider,{value:c,children:C.jsxs(Y5e,{as:i,className:ce(d.root,o),ref:e,ownerState:h,...u,children:[l,r]})})}),l$=Se("MuiListItemIcon",["root","alignItemsFlexStart"]),u$=Se("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function QE(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function c$(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function d$(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.startsWith(e.keys.join(""))}function Of(t,e,n,r,o,i){let a=!1,s=o(t,e,e?n:!1);for(;s;){if(s===t.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!d$(s,i)||l)s=o(t,s,n);else return s.focus(),!0}return!1}const G5e=k.forwardRef(function(t,e){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu",...h}=t,d=k.useRef(null),f=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Eo(()=>{r&&d.current.focus()},[r]),k.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(v,{direction:y})=>{const x=!d.current.style.width;if(v.clientHeight{const y=d.current,x=v.key,S=Pn(y).activeElement;if(x==="ArrowDown")v.preventDefault(),Of(y,S,l,s,QE);else if(x==="ArrowUp")v.preventDefault(),Of(y,S,l,s,c$);else if(x==="Home")v.preventDefault(),Of(y,null,l,s,QE);else if(x==="End")v.preventDefault(),Of(y,null,l,s,c$);else if(x.length===1){const _=f.current,E=x.toLowerCase(),O=performance.now();_.keys.length>0&&(O-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&E!==_.keys[0]&&(_.repeating=!1)),_.lastTime=O,_.keys.push(E);const w=S&&!_.repeating&&d$(S,_);_.previousKeyMatched&&(w||Of(y,S,!1,s,QE,_))?v.preventDefault():_.previousKeyMatched=!1}u&&u(v)},g=Lt(d,e);let b=-1;k.Children.forEach(i,(v,y)=>{if(!k.isValidElement(v)){b===y&&(b+=1,b>=i.length&&(b=-1));return}v.props.disabled||(c==="selectedMenu"&&v.props.selected||b===-1)&&(b=y),b===y&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const m=k.Children.map(i,(v,y)=>{if(y===b){const x={};return o&&(x.autoFocus=!0),v.props.tabIndex===void 0&&c==="selectedMenu"&&(x.tabIndex=0),k.cloneElement(v,x)}return v});return C.jsx(X5e,{role:"menu",ref:g,className:a,onKeyDown:p,tabIndex:r?0:-1,...h,children:m})});function Q5e(t){return _e("MuiPopover",t)}Se("MuiPopover",["root","paper"]);function h$(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function f$(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function p$(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function JE(t){return typeof t=="function"?t():t}const J5e=t=>{const{classes:e}=t;return Ce({root:["root"],paper:["paper"]},Q5e,e)},Z5e=ne(t$,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),g$=ne(Fy,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),e3e=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:u,container:c,elevation:h=8,marginThreshold:d=16,open:f,PaperProps:p={},slots:g={},slotProps:b={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:v=Ef,transitionDuration:y="auto",TransitionProps:{onEntering:x,...S}={},disableScrollLock:_=!1,...E}=n,O=(b==null?void 0:b.paper)??p,w=k.useRef(),T={...n,anchorOrigin:i,anchorReference:s,elevation:h,marginThreshold:d,externalPaperSlotProps:O,transformOrigin:m,TransitionComponent:v,transitionDuration:y,TransitionProps:S},I=J5e(T),A=k.useCallback(()=>{if(s==="anchorPosition")return a;const z=JE(o),$=(z&&z.nodeType===1?z:Pn(w.current).body).getBoundingClientRect();return{top:$.top+h$($,i.vertical),left:$.left+f$($,i.horizontal)}},[o,i.horizontal,i.vertical,a,s]),D=k.useCallback(z=>({vertical:h$(z,m.vertical),horizontal:f$(z,m.horizontal)}),[m.horizontal,m.vertical]),R=k.useCallback(z=>{const $={width:z.offsetWidth,height:z.offsetHeight},L=D($);if(s==="none")return{top:null,left:null,transformOrigin:p$(L)};const re=A();let U=re.top-L.vertical,ie=re.left-L.horizontal;const Te=U+$.height,Ne=ie+$.width,Ee=Na(JE(o)),We=Ee.innerHeight-d,kt=Ee.innerWidth-d;if(d!==null&&UWe){const ke=Te-We;U-=ke,L.vertical+=ke}if(d!==null&&iekt){const ke=Ne-kt;ie-=ke,L.horizontal+=ke}return{top:`${Math.round(U)}px`,left:`${Math.round(ie)}px`,transformOrigin:p$(L)}},[o,s,A,D,d]),[P,M]=k.useState(f),N=k.useCallback(()=>{const z=w.current;if(!z)return;const $=R(z);$.top!==null&&(z.style.top=$.top),$.left!==null&&(z.style.left=$.left),z.style.transformOrigin=$.transformOrigin,M(!0)},[R]);k.useEffect(()=>(_&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[o,_,N]);const j=(z,$)=>{x&&x(z,$),N()},W=()=>{M(!1)};k.useEffect(()=>{f&&N()}),k.useImperativeHandle(r,()=>f?{updatePosition:()=>{N()}}:null,[f,N]),k.useEffect(()=>{if(!f)return;const z=yE(()=>{N()}),$=Na(o);return $.addEventListener("resize",z),()=>{z.clear(),$.removeEventListener("resize",z)}},[o,f,N]);let B=y;y==="auto"&&!v.muiSupportAuto&&(B=void 0);const ee=c||(o?Pn(JE(o)).body:void 0),X={slots:g,slotProps:{...b,paper:O}},[te,ae]=Zr("paper",{elementType:g$,externalForwardedProps:X,additionalProps:{elevation:h,className:ce(I.paper,O==null?void 0:O.className),style:P?O.style:{...O.style,opacity:0}},ownerState:T}),[ge,{slotProps:Q,...we}]=Zr("root",{elementType:Z5e,externalForwardedProps:X,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ee,open:f},ownerState:T,className:ce(I.root,u)}),xe=Lt(w,ae.ref);return C.jsx(ge,{...we,...!$E(ge)&&{slotProps:Q,disableScrollLock:_},...E,ref:e,children:C.jsx(v,{appear:!0,in:f,onEntering:j,onExited:W,timeout:B,...S,children:C.jsx(te,{...ae,ref:xe,children:l})})})});function t3e(t){return _e("MuiMenu",t)}Se("MuiMenu",["root","paper","list"]);const n3e={vertical:"top",horizontal:"right"},r3e={vertical:"top",horizontal:"left"},o3e=t=>{const{classes:e}=t;return Ce({root:["root"],paper:["paper"],list:["list"]},t3e,e)},i3e=ne(e3e,{shouldForwardProp:t=>Hn(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),a3e=ne(g$,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),s3e=ne(G5e,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),l3e=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:i,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:c={},PopoverClasses:h,transitionDuration:d="auto",TransitionProps:{onEntering:f,...p}={},variant:g="selectedMenu",slots:b={},slotProps:m={},...v}=n,y=wE(),x={...n,autoFocus:r,disableAutoFocusItem:a,MenuListProps:s,onEntering:f,PaperProps:c,transitionDuration:d,TransitionProps:p,variant:g},S=o3e(x),_=r&&!a&&u,E=k.useRef(null),O=(P,M)=>{E.current&&E.current.adjustStyleForScrollbar(P,{direction:y?"rtl":"ltr"}),f&&f(P,M)},w=P=>{P.key==="Tab"&&(P.preventDefault(),l&&l(P,"tabKeyDown"))};let T=-1;k.Children.map(o,(P,M)=>{k.isValidElement(P)&&(P.props.disabled||(g==="selectedMenu"&&P.props.selected||T===-1)&&(T=M))});const I=b.paper??a3e,A=m.paper??c,D=bE({elementType:b.root,externalSlotProps:m.root,ownerState:x,className:[S.root,i]}),R=bE({elementType:I,externalSlotProps:A,ownerState:x,className:S.paper});return C.jsx(i3e,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:y?"right":"left"},transformOrigin:y?n3e:r3e,slots:{paper:I,root:b.root},slotProps:{root:D,paper:R},open:u,ref:e,transitionDuration:d,TransitionProps:{onEntering:O,...p},ownerState:x,...v,classes:h,children:C.jsx(s3e,{onKeyDown:w,actions:E,autoFocus:r&&(T===-1||a),autoFocusItem:_,variant:g,...s,className:ce(S.list,s.className),children:o})})});function u3e(t){return _e("MuiMenuItem",t)}const Tf=Se("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),c3e=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]},d3e=t=>{const{disabled:e,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=t,s=Ce({root:["root",n&&"dense",e&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},u3e,a);return{...a,...s}},h3e=ne(By,{shouldForwardProp:t=>Hn(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:c3e})(ze(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Tf.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Tf.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:xt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Tf.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:xt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Tf.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Tf.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${r$.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${r$.inset}`]:{marginLeft:52},[`& .${u$.root}`]:{marginTop:0,marginBottom:0},[`& .${u$.inset}`]:{paddingLeft:36},[`& .${l$.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${l$.root} svg`]:{fontSize:"1.25rem"}}}]}))),ZE=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:h,...d}=n,f=k.useContext(GE),p=k.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),g=k.useRef(null);Eo(()=>{r&&g.current&&g.current.focus()},[r]);const b={...n,dense:p.dense,divider:a,disableGutters:s},m=d3e(n),v=Lt(g,e);let y;return n.disabled||(y=c!==void 0?c:-1),C.jsx(GE.Provider,{value:p,children:C.jsx(h3e,{ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:ce(m.focusVisible,l),className:ce(m.root,h),...d,ownerState:b,classes:m})})});function f3e(t){return _e("MuiNativeSelect",t)}const eC=Se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),p3e=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:a}=t,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"]};return Ce(s,f3e,e)},v$=ne("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${eC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),g3e=ne(v$,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Hn,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${eC.multiple}`]:e.multiple}]}})({}),m$=ne("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${eC.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),v3e=ne(m$,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${ue(n.variant)}`],n.open&&e.iconOpen]}})({}),m3e=k.forwardRef(function(t,e){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard",...l}=t,u={...t,disabled:r,variant:s,error:o},c=p3e(u);return C.jsxs(k.Fragment,{children:[C.jsx(g3e,{ownerState:u,className:ce(c.select,n),disabled:r,ref:a||e,...l}),t.multiple?null:C.jsx(v3e,{as:i,ownerState:u,className:c.icon})]})});var y$;const y3e=ne("fieldset",{shouldForwardProp:Hn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),b3e=ne("legend",{shouldForwardProp:Hn})(ze(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function w3e(t){const{children:e,classes:n,className:r,label:o,notched:i,...a}=t,s=o!=null&&o!=="",l={...t,notched:i,withLabel:s};return C.jsx(y3e,{"aria-hidden":!0,className:r,ownerState:l,...a,children:C.jsx(b3e,{ownerState:l,children:s?C.jsx("span",{children:o}):y$||(y$=C.jsx("span",{className:"notranslate",children:"\u200B"}))})})}const x3e=t=>{const{classes:e}=t,n=Ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$Le,e);return{...e,...n}},k3e=ne(Xy,{shouldForwardProp:t=>Hn(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ky})(ze(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${ni.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},[`&.${ni.focused} .${ni.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(([,n])=>n&&n.main).map(([n])=>({props:{color:n},style:{[`&.${ni.focused} .${ni.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}})),{props:{},style:{"@media (hover: none)":{[`&:hover .${ni.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${ni.error} .${ni.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${ni.disabled} .${ni.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),S3e=ne(w3e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(ze(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),_3e=ne(Gy,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Yy})(ze(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),t0=k.forwardRef(function(t,e){var n;const r=Ie({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:u,slots:c={},type:h="text",...d}=r,f=x3e(r),p=Fa(),g=Ys({props:r,muiFormControl:p,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:p,fullWidth:i,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:h},m=c.root??o.Root??k3e,v=c.input??o.Input??_3e;return C.jsx(HE,{slots:{root:m,input:v},renderSuffix:y=>C.jsx(S3e,{ownerState:b,className:f.notchedOutline,label:s!=null&&s!==""&&g.required?n||(n=C.jsxs(k.Fragment,{children:[s,"\u2009","*"]})):s,notched:typeof u<"u"?u:!!(y.startAdornment||y.filled||y.focused)}),fullWidth:i,inputComponent:a,multiline:l,ref:e,type:h,...d,classes:{...f,notchedOutline:null}})});t0&&(t0.muiName="Input");function E3e(t){return _e("MuiSelect",t)}const Pf=Se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var b$;const C3e=ne(v$,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${Pf.select}`]:e.select},{[`&.${Pf.select}`]:e[n.variant]},{[`&.${Pf.error}`]:e.error},{[`&.${Pf.multiple}`]:e.multiple}]}})({[`&.${Pf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),O3e=ne(m$,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${ue(n.variant)}`],n.open&&e.iconOpen]}})({}),T3e=ne("input",{shouldForwardProp:t=>w4(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function w$(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function P3e(t){return t==null||typeof t=="string"&&!t.trim()}const M3e=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:a}=t,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ce(s,E3e,e)},I3e=k.forwardRef(function(t,e){var ii;const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:i,children:a,className:s,defaultOpen:l,defaultValue:u,disabled:c,displayEmpty:h,error:d=!1,IconComponent:f,inputRef:p,labelId:g,MenuProps:b={},multiple:m,name:v,onBlur:y,onChange:x,onClose:S,onFocus:_,onOpen:E,open:O,readOnly:w,renderValue:T,SelectDisplayProps:I={},tabIndex:A,type:D,value:R,variant:P="standard",...M}=t,[N,j]=rf({controlled:R,default:u,name:"Select"}),[W,B]=rf({controlled:O,default:l,name:"Select"}),ee=k.useRef(null),X=k.useRef(null),[te,ae]=k.useState(null),{current:ge}=k.useRef(O!=null),[Q,we]=k.useState(),xe=Lt(e,p),z=k.useCallback(pe=>{X.current=pe,pe&&ae(pe)},[]),$=te==null?void 0:te.parentNode;k.useImperativeHandle(xe,()=>({focus:()=>{X.current.focus()},node:ee.current,value:N}),[N]),k.useEffect(()=>{l&&W&&te&&!ge&&(we(i?null:$.clientWidth),X.current.focus())},[te,i]),k.useEffect(()=>{o&&X.current.focus()},[o]),k.useEffect(()=>{if(!g)return;const pe=Pn(X.current).getElementById(g);if(pe){const Ye=()=>{getSelection().isCollapsed&&X.current.focus()};return pe.addEventListener("click",Ye),()=>{pe.removeEventListener("click",Ye)}}},[g]);const L=(pe,Ye)=>{pe?E&&E(Ye):S&&S(Ye),ge||(we(i?null:$.clientWidth),B(pe))},re=pe=>{pe.button===0&&(pe.preventDefault(),X.current.focus(),L(!0,pe))},U=pe=>{L(!1,pe)},ie=k.Children.toArray(a),Te=pe=>{const Ye=ie.find(Dt=>Dt.props.value===pe.target.value);Ye!==void 0&&(j(Ye.props.value),x&&x(pe,Ye))},Ne=pe=>Ye=>{let Dt;if(Ye.currentTarget.hasAttribute("tabindex")){if(m){Dt=Array.isArray(N)?N.slice():[];const ao=N.indexOf(pe.props.value);ao===-1?Dt.push(pe.props.value):Dt.splice(ao,1)}else Dt=pe.props.value;if(pe.props.onClick&&pe.props.onClick(Ye),N!==Dt&&(j(Dt),x)){const ao=Ye.nativeEvent||Ye,Qs=new ao.constructor(ao.type,ao);Object.defineProperty(Qs,"target",{writable:!0,value:{value:Dt,name:v}}),x(Qs,pe)}m||L(!1,Ye)}},Ee=pe=>{w||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),L(!0,pe))},We=te!==null&&W,kt=pe=>{!We&&y&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:N,name:v}}),y(pe))};delete M["aria-invalid"];let ke,Kt;const fe=[];let vt=!1;(qy({value:N})||h)&&(T?ke=T(N):vt=!0);const Ar=ie.map(pe=>{if(!k.isValidElement(pe))return null;let Ye;if(m){if(!Array.isArray(N))throw new Error(Di(2));Ye=N.some(Dt=>w$(Dt,pe.props.value)),Ye&&vt&&fe.push(pe.props.children)}else Ye=w$(N,pe.props.value),Ye&&vt&&(Kt=pe.props.children);return k.cloneElement(pe,{"aria-selected":Ye?"true":"false",onClick:Ne(pe),onKeyUp:Dt=>{Dt.key===" "&&Dt.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(Dt)},role:"option",selected:Ye,value:void 0,"data-value":pe.props.value})});vt&&(m?fe.length===0?ke=null:ke=fe.reduce((pe,Ye,Dt)=>(pe.push(Ye),Dt{const{classes:e}=t;return e},tC={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Hn(t)&&t!=="variant",slot:"Root"},A3e=ne(e0,tC)(""),D3e=ne(t0,tC)(""),j3e=ne(Jy,tC)(""),hc=k.forwardRef(function(t,e){const n=b4({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=HLe,id:c,input:h,inputProps:d,label:f,labelId:p,MenuProps:g,multiple:b=!1,native:m=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:_,variant:E="outlined",...O}=n,w=m?m3e:I3e,T=Fa(),I=Ys({props:n,muiFormControl:T,states:["variant","error"]}),A=I.variant||E,D={...n,variant:A,classes:i},R=R3e(D),{root:P,...M}=R,N=h||{standard:C.jsx(A3e,{ownerState:D}),outlined:C.jsx(D3e,{label:f,ownerState:D}),filled:C.jsx(j3e,{ownerState:D})}[A],j=Lt(e,tc(N));return C.jsx(k.Fragment,{children:k.cloneElement(N,{inputComponent:w,inputProps:{children:o,error:I.error,IconComponent:u,variant:A,type:void 0,multiple:b,...m?{id:c}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:p,MenuProps:g,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:{id:c,..._}},...d,classes:d?Tn(M,d.classes):M,...h?h.props.inputProps:{}},...(b&&m||l)&&A==="outlined"?{notched:!0}:{},ref:j,className:ce(N.props.className,a,R.root),...!h&&{variant:A},...O})})});hc.muiName="Select";function N3e(t){return _e("MuiTooltip",t)}const At=Se("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function z3e(t){return Math.round(t*1e5)/1e5}const F3e=t=>{const{classes:e,disableInteractive:n,arrow:r,touch:o,placement:i}=t,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ue(i.split("-")[0])}`],arrow:["arrow"]};return Ce(a,N3e,e)},L3e=ne(q4,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.popper,!n.disableInteractive&&e.popperInteractive,n.arrow&&e.popperArrow,!n.open&&e.popperClose]}})(ze(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${At.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${At.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${At.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${At.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${At.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${At.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${At.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${At.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),B3e=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.tooltip,n.touch&&e.touch,n.arrow&&e.tooltipArrow,e[`tooltipPlacement${ue(n.placement.split("-")[0])}`]]}})(ze(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:xt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${At.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${At.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${At.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${At.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${z3e(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${At.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${At.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${At.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${At.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),$3e=ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(ze(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:xt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let n0=!1;const x$=new Ry;let Mf={x:0,y:0};function r0(t,e){return(n,...r)=>{e&&e(n,...r),t(n,...r)}}const o0=k.forwardRef(function(t,e){var xc,Vf,R6;const n=Ie({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:a={},componentsProps:s={},describeChild:l=!1,disableFocusListener:u=!1,disableHoverListener:c=!1,disableInteractive:h=!1,disableTouchListener:d=!1,enterDelay:f=100,enterNextDelay:p=0,enterTouchDelay:g=700,followCursor:b=!1,id:m,leaveDelay:v=0,leaveTouchDelay:y=1500,onClose:x,onOpen:S,open:_,placement:E="bottom",PopperComponent:O,PopperProps:w={},slotProps:T={},slots:I={},title:A,TransitionComponent:D=Ef,TransitionProps:R,...P}=n,M=k.isValidElement(o)?o:C.jsx("span",{children:o}),N=nc(),j=wE(),[W,B]=k.useState(),[ee,X]=k.useState(null),te=k.useRef(!1),ae=h||b,ge=Zu(),Q=Zu(),we=Zu(),xe=Zu(),[z,$]=rf({controlled:_,default:!1,name:"Tooltip",state:"open"});let L=z;const re=nf(m),U=k.useRef(),ie=ji(()=>{U.current!==void 0&&(document.body.style.WebkitUserSelect=U.current,U.current=void 0),xe.clear()});k.useEffect(()=>ie,[ie]);const Te=je=>{x$.clear(),n0=!0,$(!0),S&&!L&&S(je)},Ne=ji(je=>{x$.start(800+v,()=>{n0=!1}),$(!1),x&&L&&x(je),ge.start(N.transitions.duration.shortest,()=>{te.current=!1})}),Ee=je=>{te.current&&je.type!=="touchstart"||(W&&W.removeAttribute("title"),Q.clear(),we.clear(),f||n0&&p?Q.start(n0?p:f,()=>{Te(je)}):Te(je))},We=je=>{Q.clear(),we.start(v,()=>{Ne(je)})},[,kt]=k.useState(!1),ke=je=>{Ay(je.target)||(kt(!1),We(je))},Kt=je=>{W||B(je.currentTarget),Ay(je.target)&&(kt(!0),Ee(je))},fe=je=>{te.current=!0;const Oo=M.props;Oo.onTouchStart&&Oo.onTouchStart(je)},vt=je=>{fe(je),we.clear(),ge.clear(),ie(),U.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",xe.start(g,()=>{document.body.style.WebkitUserSelect=U.current,Ee(je)})},Ar=je=>{M.props.onTouchEnd&&M.props.onTouchEnd(je),ie(),we.start(y,()=>{Ne(je)})};k.useEffect(()=>{if(!L)return;function je(Oo){Oo.key==="Escape"&&Ne(Oo)}return document.addEventListener("keydown",je),()=>{document.removeEventListener("keydown",je)}},[Ne,L]);const xn=Lt(tc(M),B,e);!A&&A!==0&&(L=!1);const Un=k.useRef(),oo=je=>{const Oo=M.props;Oo.onMouseMove&&Oo.onMouseMove(je),Mf={x:je.clientX,y:je.clientY},Un.current&&Un.current.update()},Gt={},io=typeof A=="string";l?(Gt.title=!L&&io&&!c?A:null,Gt["aria-describedby"]=L?re:null):(Gt["aria-label"]=io?A:null,Gt["aria-labelledby"]=L&&!io?re:null);const Pe={...Gt,...P,...M.props,className:ce(P.className,M.props.className),onTouchStart:fe,ref:xn,...b?{onMouseMove:oo}:{}},qn={};d||(Pe.onTouchStart=vt,Pe.onTouchEnd=Ar),c||(Pe.onMouseOver=r0(Ee,Pe.onMouseOver),Pe.onMouseLeave=r0(We,Pe.onMouseLeave),ae||(qn.onMouseOver=Ee,qn.onMouseLeave=We)),u||(Pe.onFocus=r0(Kt,Pe.onFocus),Pe.onBlur=r0(ke,Pe.onBlur),ae||(qn.onFocus=Kt,qn.onBlur=ke));const ii=k.useMemo(()=>{var Oo;let je=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return(Oo=w.popperOptions)!=null&&Oo.modifiers&&(je=je.concat(w.popperOptions.modifiers)),{...w.popperOptions,modifiers:je}},[ee,w]),pe={...n,isRtl:j,arrow:r,disableInteractive:ae,placement:E,PopperComponentProp:O,touch:te.current},Ye=F3e(pe),Dt=I.popper??a.Popper??L3e,ao=I.transition??a.Transition??D??Ef,Qs=I.tooltip??a.Tooltip??B3e,Hf=I.arrow??a.Arrow??$3e,De=ec(Dt,{...w,...T.popper??s.popper,className:ce(Ye.popper,w==null?void 0:w.className,(xc=T.popper??s.popper)==null?void 0:xc.className)},pe),tt=ec(ao,{...R,...T.transition??s.transition},pe),Rn=ec(Qs,{...T.tooltip??s.tooltip,className:ce(Ye.tooltip,(Vf=T.tooltip??s.tooltip)==null?void 0:Vf.className)},pe),so=ec(Hf,{...T.arrow??s.arrow,className:ce(Ye.arrow,(R6=T.arrow??s.arrow)==null?void 0:R6.className)},pe);return C.jsxs(k.Fragment,{children:[k.cloneElement(M,Pe),C.jsx(Dt,{as:O??q4,placement:E,anchorEl:b?{getBoundingClientRect:()=>({top:Mf.y,left:Mf.x,right:Mf.x,bottom:Mf.y,width:0,height:0})}:W,popperRef:Un,open:W?L:!1,id:re,transition:!0,...qn,...De,popperOptions:ii,children:({TransitionProps:je})=>C.jsx(ao,{timeout:N.transitions.duration.shorter,...je,...tt,children:C.jsxs(Qs,{...Rn,children:[A,r?C.jsx(Hf,{...so,ref:X}):null]})})})]})}),k$=k.createContext();function W3e(t){return _e("MuiTable",t)}Se("MuiTable",["root","stickyHeader"]);const H3e=t=>{const{classes:e,stickyHeader:n}=t;return Ce({root:["root",n&&"stickyHeader"]},W3e,e)},V3e=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.stickyHeader&&e.stickyHeader]}})(ze(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),S$="table",U3e=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiTable"}),{className:r,component:o=S$,padding:i="normal",size:a="medium",stickyHeader:s=!1,...l}=n,u={...n,component:o,padding:i,size:a,stickyHeader:s},c=H3e(u),h=k.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return C.jsx(k$.Provider,{value:h,children:C.jsx(V3e,{as:o,role:o===S$?null:"table",ref:e,className:ce(c.root,r),ownerState:u,...l})})}),i0=k.createContext();function q3e(t){return _e("MuiTableBody",t)}Se("MuiTableBody",["root"]);const K3e=t=>{const{classes:e}=t;return Ce({root:["root"]},q3e,e)},Y3e=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-row-group"}),X3e={variant:"body"},_$="tbody",G3e=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiTableBody"}),{className:r,component:o=_$,...i}=n,a={...n,component:o},s=K3e(a);return C.jsx(i0.Provider,{value:X3e,children:C.jsx(Y3e,{className:ce(s.root,r),as:o,ref:e,role:o===_$?null:"rowgroup",ownerState:a,...i})})});function Q3e(t){return _e("MuiTableCell",t)}const J3e=Se("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Z3e=t=>{const{classes:e,variant:n,align:r,padding:o,size:i,stickyHeader:a}=t,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ue(r)}`,o!=="normal"&&`padding${ue(o)}`,`size${ue(i)}`]};return Ce(s,Q3e,e)},e4e=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`size${ue(n.size)}`],n.padding!=="normal"&&e[`padding${ue(n.padding)}`],n.align!=="inherit"&&e[`align${ue(n.align)}`],n.stickyHeader&&e.stickyHeader]}})(ze(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid - ${t.palette.mode==="light"?Ty(xt(t.palette.divider,1),.88):Oy(xt(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${J3e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),a0=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c,...h}=n,d=k.useContext(k$),f=k.useContext(i0),p=f&&f.variant==="head";let g;i?g=i:g=p?"th":"td";let b=s;g==="td"?b=void 0:!b&&p&&(b="col");const m=c||f&&f.variant,v={...n,align:r,component:g,padding:a||(d&&d.padding?d.padding:"normal"),size:l||(d&&d.size?d.size:"medium"),sortDirection:u,stickyHeader:m==="head"&&d&&d.stickyHeader,variant:m},y=Z3e(v);let x=null;return u&&(x=u==="asc"?"ascending":"descending"),C.jsx(e4e,{as:g,ref:e,className:ce(y.root,o),"aria-sort":x,scope:b,ownerState:v,...h})});function t4e(t){return _e("MuiTableContainer",t)}Se("MuiTableContainer",["root"]);const n4e=t=>{const{classes:e}=t;return Ce({root:["root"]},t4e,e)},r4e=ne("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),o4e=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiTableContainer"}),{className:r,component:o="div",...i}=n,a={...n,component:o},s=n4e(a);return C.jsx(r4e,{ref:e,as:o,className:ce(s.root,r),ownerState:a,...i})});function i4e(t){return _e("MuiTableHead",t)}Se("MuiTableHead",["root"]);const a4e=t=>{const{classes:e}=t;return Ce({root:["root"]},i4e,e)},s4e=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-header-group"}),l4e={variant:"head"},E$="thead",u4e=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiTableHead"}),{className:r,component:o=E$,...i}=n,a={...n,component:o},s=a4e(a);return C.jsx(i0.Provider,{value:l4e,children:C.jsx(s4e,{as:o,className:ce(s.root,r),ref:e,role:o===E$?null:"rowgroup",ownerState:a,...i})})});function c4e(t){return _e("MuiTableRow",t)}const C$=Se("MuiTableRow",["root","selected","hover","head","footer"]),d4e=t=>{const{classes:e,selected:n,hover:r,head:o,footer:i}=t;return Ce({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},c4e,e)},h4e=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.head&&e.head,n.footer&&e.footer]}})(ze(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${C$.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${C$.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:xt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),O$="tr",T$=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiTableRow"}),{className:r,component:o=O$,hover:i=!1,selected:a=!1,...s}=n,l=k.useContext(i0),u={...n,component:o,hover:i,selected:a,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},c=d4e(u);return C.jsx(h4e,{as:o,ref:e,className:ce(c.root,r),role:o===O$?null:"row",ownerState:u,...s})});function f4e(t){return _e("MuiTextField",t)}Se("MuiTextField",["root"]);const p4e={standard:e0,filled:Jy,outlined:t0},g4e=t=>{const{classes:e}=t;return Ce({root:["root"]},f4e,e)},v4e=ne(wf,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),s0=k.forwardRef(function(t,e){const n=Ie({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:h,fullWidth:d=!1,helperText:f,id:p,InputLabelProps:g,inputProps:b,InputProps:m,inputRef:v,label:y,maxRows:x,minRows:S,multiline:_=!1,name:E,onBlur:O,onChange:w,onFocus:T,placeholder:I,required:A=!1,rows:D,select:R=!1,SelectProps:P,slots:M={},slotProps:N={},type:j,value:W,variant:B="outlined",...ee}=n,X={...n,autoFocus:o,color:s,disabled:u,error:c,fullWidth:d,multiline:_,required:A,select:R,variant:B},te=g4e(X),ae=nf(p),ge=f&&ae?`${ae}-helper-text`:void 0,Q=y&&ae?`${ae}-label`:void 0,we=p4e[B],xe={slots:M,slotProps:{input:m,inputLabel:g,htmlInput:b,formHelperText:h,select:P,...N}},z={},$=xe.slotProps.inputLabel;B==="outlined"&&($&&typeof $.shrink<"u"&&(z.notched=$.shrink),z.label=y),R&&((!P||!P.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const[L,re]=Zr("input",{elementType:we,externalForwardedProps:xe,additionalProps:z,ownerState:X}),[U,ie]=Zr("inputLabel",{elementType:Cf,externalForwardedProps:xe,ownerState:X}),[Te,Ne]=Zr("htmlInput",{elementType:"input",externalForwardedProps:xe,ownerState:X}),[Ee,We]=Zr("formHelperText",{elementType:x5e,externalForwardedProps:xe,ownerState:X}),[kt,ke]=Zr("select",{elementType:hc,externalForwardedProps:xe,ownerState:X}),Kt=C.jsx(L,{"aria-describedby":ge,autoComplete:r,autoFocus:o,defaultValue:l,fullWidth:d,multiline:_,name:E,rows:D,maxRows:x,minRows:S,type:j,value:W,id:ae,inputRef:v,onBlur:O,onChange:w,onFocus:T,placeholder:I,inputProps:Ne,slots:{input:M.htmlInput?Te:void 0},...re});return C.jsxs(v4e,{className:ce(te.root,a),disabled:u,error:c,fullWidth:d,ref:e,required:A,color:s,variant:B,ownerState:X,...ee,children:[y!=null&&y!==""&&C.jsx(U,{htmlFor:ae,id:Q,...ie,children:y}),R?C.jsx(kt,{"aria-describedby":ge,id:ae,labelId:Q,value:W,input:Kt,...ke,children:i}):Kt,f&&C.jsx(Ee,{id:ge,...We,children:f})]})});function m4e(){return{avgRounded:k.useCallback(t=>{if(!t||t.length===0)return 0;const e=t.reduce((n,r)=>n+r)/t.length;return Math.round(e)},[])}}var Mn=(t=>(t.EQ="=",t.LEQ="\u2264",t.GEQ="\u2265",t.LESSER="<",t.GREATER=">",t))(Mn||{});function fc(){const t=k.useCallback((a,s)=>!a&&!s?!0:!a||!s?!1:a.lhs.name===s.lhs.name&&a.op===s.op&&a.rhs===s.rhs,[]),e=k.useCallback((a,s)=>{if(!a&&!s)return!0;if(!a||!s)return!1;const l=a.clauses,u=s.clauses;if(l.length!==u.length)return!1;for(const c of l){let h=!1;if(u.forEach(d=>{t(c,d)&&(h=!0)}),!h)return!1}for(const c of u){let h=!1;if(l.forEach(d=>{t(d,c)&&(h=!0)}),!h)return!1}return!0},[t]),n=k.useCallback(a=>{if(!(!a||a.length===0)){for(const s of a)if(!s.clockValue||!s.comparisonValue||!s.numberInput)return;return a.map(s=>{const l={name:s.clockValue},u=Object.values(Mn).find(h=>h===s.comparisonValue);if(u===void 0)throw new Error(`Invalid comparison value: ${s.comparisonValue}`);const c=parseInt(s.numberInput);return{lhs:l,op:u,rhs:c}}).reduce((s,l)=>(s.clauses.push(l),s),{clauses:[]})}},[]),r=k.useCallback((a,s)=>s?s.clauses.map(l=>l.lhs.name).includes(a):!1,[]),o=k.useCallback((a,s)=>{if(!s||!a)return!1;const l=a.locations.map(c=>c.invariant),u=a.switches.map(c=>c.guard);return[...l,...u].filter(c=>r(s.name,c)).length>0},[r]),i=k.useCallback((a,s)=>{if(o(s,a)){for(const l of s.locations)if(l.invariant&&r(a.name,l.invariant)){const u=l.invariant.clauses.filter(c=>c.lhs.name!==a.name);u.length>0?l.invariant.clauses=u:l.invariant=void 0}for(const l of s.switches)if(l.guard&&r(a.name,l.guard)){const u=l.guard.clauses.filter(c=>c.lhs.name!==a.name);u.length>0?l.guard.clauses=u:l.guard=void 0}}},[r,o]);return{clausesEqual:t,clockConstraintsEqual:e,transformToClockConstraint:n,constraintUsesClock:r,taUsesClockInAnyConstraint:o,removeAllClausesUsingClock:i}}function nC(){const{clockConstraintsEqual:t}=fc(),e=k.useCallback((r,o)=>{if(!r&&!o)return!0;if(!r||!o||r.source.name!==o.source.name||r.target.name!==o.target.name||r.actionLabel!==o.actionLabel||!t(r.guard,o.guard))return!1;const i=r.reset.map(s=>s.name),a=o.reset.map(s=>s.name);return!(i.filter(s=>!a.includes(s)).length>0||a.filter(s=>!i.includes(s)).length>0)},[t]),n=k.useCallback((r,o)=>{for(const i of o.switches)i.reset=i.reset.filter(a=>a.name!==r.name)},[]);return{switchesEqual:e,removeClockFromAllResets:n}}function y4e(){const{constraintUsesClock:t}=fc();return{renameClock:k.useCallback((e,n,r)=>{const{locations:o,switches:i,clocks:a}=r,s={name:n},l=a.map(h=>h.name).indexOf(e);a[l]=s,i.map(h=>h.reset).forEach(h=>{if(h.filter(d=>d.name===e).length>0){const d=h.map(f=>f.name).indexOf(e);h[d]=s}});const u=i.map(h=>h.guard).filter(h=>t(e,h)),c=o.map(h=>h.invariant).filter(h=>t(e,h));[...u,...c].filter(h=>h!==void 0).map(h=>h.clauses).flat().filter(h=>h.lhs.name===e).forEach(h=>{h.lhs=s})},[t])}}const l0={name:"x"},P$={name:"y"},b4e={clauses:[{lhs:l0,op:Mn.LESSER,rhs:5}]},w4e={clauses:[{lhs:l0,op:Mn.GREATER,rhs:1},{lhs:P$,op:Mn.GEQ,rhs:3}]},M$={name:"init",isInitial:!0,invariant:b4e,xCoordinate:-100,yCoordinate:100},I$={name:"final",xCoordinate:100,yCoordinate:100},x4e={source:M$,guard:w4e,actionLabel:"start",reset:[l0],target:I$},R$={locations:[M$,I$],clocks:[l0,P$],switches:[x4e]};var ri=(t=>(t.INIT="INIT",t.ANALYZING="ANALYZING",t.READY="READY",t.RESET="RESET",t))(ri||{});function k4e(){const{avgRounded:t}=m4e(),{switchesEqual:e}=nC(),{removeAllClausesUsingClock:n}=fc(),{removeClockFromAllResets:r}=nC(),{renameClock:o}=y4e(),i=k.useCallback((x,S)=>{const _=x.ta,E=[..._.locations];E.forEach(w=>{w.name===S?w.isInitial=!0:w.isInitial=!1});const O={..._,locations:E};y({...x,ta:O})},[]),a=k.useCallback((x,S,_,E)=>{const O=x.ta,w=O.locations;let T;if(w){const D=t(w.map(P=>P.xCoordinate)),R=t(w.map(P=>P.yCoordinate));T={name:S,isInitial:_,invariant:E,xCoordinate:D,yCoordinate:R}}else T={name:S,isInitial:!0,invariant:E,xCoordinate:0,yCoordinate:0};const I=[...w,T];_&&I.forEach(D=>{D.name!==S&&(D.isInitial=!1)});const A={...O,locations:I};y({...x,ta:A})},[t]),s=k.useCallback((x,S,_,E,O)=>{const w=x.ta,T=[...w.locations],I=T.filter(P=>P.name===_)[0];I.name=S,I.invariant=O;const A={...w,locations:T},D={...x,ta:A};y(D);const R=T.filter(P=>P.name!==S).filter(P=>!!P.isInitial).length===1;E?i(D,S):R||i(D,T[0].name)},[i]),l=k.useCallback((x,S)=>{if(x.ta.locations.length<=1)return;const _=x.ta,E=_.locations.filter(I=>I.name===S)[0].isInitial,O=_.locations.filter(I=>I.name!==S);E&&O&&(O[0].isInitial=!0);const w=_.switches.filter(I=>I.source.name!==S&&I.target.name!==S),T={..._,locations:O,switches:w};y({...x,ta:T})},[]),u=k.useCallback((x,S,_,E)=>{const O=x.ta,w=[...O.locations],T=w.filter(A=>A.name===S)[0];T.xCoordinate=_,T.yCoordinate=E;const I={...O,locations:w};y({...x,ta:I})},[]),c=k.useCallback((x,S,_,E,O,w)=>{const T=x.ta,I={source:T.locations.filter(R=>R.name===S)[0],target:T.locations.filter(R=>R.name===O)[0],actionLabel:_,reset:T.clocks.filter(R=>E.includes(R.name)),guard:w},A=[...T.switches,I],D={...T,switches:A};y({...x,ta:D})},[]),h=k.useCallback((x,S,_,E,O,w,T)=>{const I=x.ta,A=[...I.switches],D=A.filter(M=>e(M,S))[0];D.source=I.locations.filter(M=>M.name===_)[0],D.target=I.locations.filter(M=>M.name===w)[0],D.actionLabel=E,D.reset=I.clocks.filter(M=>O.includes(M.name)),D.guard=T;const R={...I,switches:A},P={...x,ta:R};y(P)},[e]),d=k.useCallback((x,S)=>{const _=x.ta,E=[];for(const w of _.switches)e(w,S)||E.push(w);const O={..._,switches:E};y({...x,ta:O})},[e]),f=k.useCallback((x,S)=>{const _=x.ta,E=[..._.clocks,{name:S}],O={..._,clocks:E};y({...x,ta:O})},[]),p=k.useCallback((x,S,_)=>{const E={...x.ta};o(_,S,E),y({...x,ta:E}),y({...x,ta:E})},[o]),g=k.useCallback((x,S)=>{let _={...x.ta};n(S,_),r(S,_);const E=_.clocks.filter(O=>O.name!==S.name);_={..._,clocks:E},y({...x,ta:_})},[n,r]),b=k.useCallback(x=>{y({...x,state:"ANALYZING"})},[]),m=k.useCallback(x=>{y({...x,state:"READY"})},[]),[v,y]=k.useState({state:"INIT",ta:R$,addLocation:a,editLocation:s,removeLocation:l,setInitialLocation:i,updateLocationCoordinates:u,addSwitch:c,editSwitch:h,removeSwitch:d,addClock:f,editClock:p,removeClock:g,setStateAnalyzing:b,setStateReady:m});return k.useEffect(()=>{v.state==="INIT"&&y({...v,state:"READY"})},[v]),k.useEffect(()=>{v.state==="ANALYZING"&&y({...v,state:"READY"})},[v]),k.useEffect(()=>{v.state==="RESET"&&y({...v,ta:R$,state:"READY"})},[v]),v}var rC={},A$={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(A$);var If=A$.exports,D$={};const S4e=A6(Fze);var j$;function Rf(){return j$||(j$=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.createSvgIcon}});var e=S4e}(D$)),D$}var _4e=If;Object.defineProperty(rC,"__esModule",{value:!0});var N$=rC.default=void 0,E4e=_4e(Rf()),C4e=C;N$=rC.default=(0,E4e.default)((0,C4e.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var oC={},O4e=If;Object.defineProperty(oC,"__esModule",{value:!0});var iC=oC.default=void 0,T4e=O4e(Rf()),P4e=C;iC=oC.default=(0,T4e.default)((0,P4e.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var aC={},M4e=If;Object.defineProperty(aC,"__esModule",{value:!0});var z$=aC.default=void 0,I4e=M4e(Rf()),R4e=C;z$=aC.default=(0,I4e.default)((0,R4e.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");var sC={},A4e=If;Object.defineProperty(sC,"__esModule",{value:!0});var F$=sC.default=void 0,D4e=A4e(Rf()),j4e=C;F$=sC.default=(0,D4e.default)((0,j4e.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const N4e=$s(C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),z4e=$s(C.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),F4e="Enter",L4e=" ";function La(){return{executeOnKeyboardClick:k.useCallback((t,e)=>{(t===F4e||t===L4e)&&e()},[])}}const lC=t=>{const{rows:e,contentSingular:n,contentPlural:r,typeForTestId:o,state:i,onAddOpen:a,onEditOpen:s,onDelete:l}=t,{t:u}=vi(),{executeOnKeyboardClick:c}=La(),[h,d]=k.useState(!1),f=()=>{d(!h)},p=h?u("manipulation.table.showContent",{content:r}):u("manipulation.table.hideContent",{content:r}),g=k.useMemo(()=>({width:"1%",whiteSpace:"nowrap"}),[]),b=k.useMemo(()=>e.map(m=>C.jsxs(T$,{children:[C.jsxs(a0,{style:g,children:[C.jsx(Us,{onMouseDown:()=>s(m.id),onKeyDown:v=>c(v.key,()=>s(m.id)),size:"small","data-testid":`button-edit-${o}-${m.id}`,disabled:i!==ri.READY,children:C.jsx(o0,{title:u("manipulation.table.editLabel",{type:n}),children:C.jsx(N$,{})})}),C.jsx(Us,{onMouseDown:()=>l(m.id),onKeyDown:v=>c(v.key,()=>l(m.id)),size:"small","data-testid":`button-delete-${o}-${m.id}`,disabled:i!==ri.READY,children:C.jsx(o0,{title:u("manipulation.table.deleteLabel",{type:n}),children:C.jsx(iC,{})})})]}),C.jsx(a0,{"data-testid":`table-cell-${o}-${m.id}`,children:m.displayName})]},m.id)),[e,g,n,o,u,i,s,l,c]);return C.jsxs(C.Fragment,{children:[C.jsx(Vn,{startIcon:h?C.jsx(F$,{}):C.jsx(z$,{}),variant:"text",onMouseDown:f,onKeyDown:m=>c(m.key,f),disabled:i!==ri.READY,"data-testid":"button-hide-"+o,children:p}),!h&&C.jsxs(C.Fragment,{children:[C.jsx("div",{style:{marginBottom:"4px"},children:C.jsx(Vn,{startIcon:C.jsx(N4e,{}),variant:"contained",size:"small",onMouseDown:a,onKeyDown:m=>c(m.key,a),disabled:i!==ri.READY,"data-testid":"button-add-"+o,children:u("manipulation.table.addElement",{content:n})})}),C.jsx(o4e,{component:Fy,children:C.jsxs(U3e,{size:"small","data-testid":"table-"+o,children:[C.jsx(u4e,{children:C.jsxs(T$,{children:[C.jsx(a0,{style:g,children:u("manipulation.table.actions")}),C.jsx(a0,{children:n})]})}),C.jsx(G3e,{children:b})]})})]})]})};var uC={},B4e=If;Object.defineProperty(uC,"__esModule",{value:!0});var Af=uC.default=void 0,$4e=B4e(Rf()),W4e=C;Af=uC.default=(0,$4e.default)((0,W4e.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const L$=t=>{const{viewModel:e,clocks:n,downwardClosedOnly:r}=t,{clauses:o,deleteClause:i,changeClause:a}=e,{t:s}=vi(),{executeOnKeyboardClick:l}=La(),u=k.useMemo(()=>n.map(h=>C.jsx(ZE,{value:h.name,"data-testid":"menu-item-clock-"+h.name,children:h.name},h.name)),[n]),c=k.useMemo(()=>Object.values(Mn).filter(h=>!r||h===Mn.LESSER||h===Mn.LEQ).map(h=>C.jsx(ZE,{value:h,"data-testid":"menu-item-comparison-"+h,children:h},h)),[r]);return C.jsx(C.Fragment,{children:o.map(h=>C.jsxs(Rr,{container:!0,spacing:2,alignItems:"center",children:[C.jsx(Rr,{item:!0,xs:1,children:C.jsx(Us,{disabled:o.length<=1,onMouseDown:()=>i(e,h.id),onKeyDown:d=>l(d.key,()=>i(e,h.id)),"data-testid":"button-delete-clause-row-"+h.id,children:C.jsx(o0,{title:s("clauses.delete"),children:C.jsx(iC,{})})})}),C.jsx(Rr,{item:!0,xs:4,children:C.jsxs(wf,{fullWidth:!0,children:[C.jsx(Cf,{children:s("clauses.input.clock")}),C.jsx(hc,{value:h.clockValue,label:"Clock",onChange:d=>a(e,h.id,"clockValue",d.target.value),error:h.isClockInvalid,"data-testid":"select-clock-row",children:u})]})}),C.jsx(Rr,{item:!0,xs:4,children:C.jsxs(wf,{fullWidth:!0,children:[C.jsx(Cf,{children:s("clauses.input.comparison")}),C.jsx(hc,{value:h.comparisonValue,label:"Comparison",onChange:d=>a(e,h.id,"comparisonValue",d.target.value),error:h.isComparisonInvalid,"data-testid":"select-comparison-row",children:c})]})}),C.jsx(Rr,{item:!0,xs:3,children:C.jsx(s0,{margin:"dense",label:s("clauses.input.value"),type:"number",fullWidth:!0,variant:"outlined",value:h.numberInput,onChange:d=>a(e,h.id,"numberInput",d.target.value),InputProps:{inputProps:{min:0}},error:h.isNumberInvalid,"data-testid":"select-comparison-number-row"})})]},h.id))})};function B$(){const t=k.useMemo(()=>({id:Date.now(),clockValue:"",comparisonValue:"",numberInput:"0",isClockInvalid:!0,isComparisonInvalid:!0,isNumberInvalid:!1}),[]),e=k.useCallback(l=>{s({...l,clauses:[t]})},[t]),n=k.useCallback((l,u)=>{if(!u){s({...l,clauses:[t]});return}let c=Date.now();const h=u.clauses.map(d=>({id:c++,clockValue:d.lhs.name,comparisonValue:d.op,numberInput:""+d.rhs,isClockInvalid:!1,isComparisonInvalid:!1,isNumberInvalid:!1}));s({...l,clauses:h})},[t]),r=k.useCallback(l=>{const u=[...l.clauses,{...t,id:Date.now()}];s({...l,clauses:u})},[t]),o=k.useCallback((l,u)=>{if(l.clauses.length<=1)return;const c=l.clauses.filter(h=>h.id!==u);s({...l,clauses:c})},[]),i=k.useCallback((l,u,c,h)=>{const d=l.clauses.map(f=>{if(f.id===u){let p={...f,[c]:h};return c==="clockValue"&&(p.isClockInvalid=!h),c==="comparisonValue"&&(p.isComparisonInvalid=!h),c==="numberInput"&&(p.isNumberInvalid=!h),c==="numberInput"&&h&&(p={...p,[c]:""+Math.max(0,parseInt(h,10))}),p}return f});s({...l,clauses:d})},[]),[a,s]=k.useState({state:"INIT",clauses:[t],isValidationError:!0,resetClauses:e,setClausesFromClockConstraint:n,addClause:r,deleteClause:o,changeClause:i});return k.useEffect(()=>{a.state==="INIT"&&s({...a,state:"READY"})},[a]),k.useEffect(()=>{const l=a.clauses.map(u=>u.isClockInvalid||u.isComparisonInvalid||u.isNumberInvalid).reduce((u,c)=>u||c,!1);s(u=>({...u,isValidationError:l}))},[a.clauses]),a}const $$=t=>{const{open:e,locations:n,clocks:r,locPrevVersion:o,handleClose:i,handleSubmit:a}=t,s=B$(),{clauses:l,setClausesFromClockConstraint:u}=s,{t:c}=vi(),{executeOnKeyboardClick:h}=La(),{transformToClockConstraint:d}=fc(),[f,p]=k.useState(!0),[g,b]=k.useState(""),[m,v]=k.useState(!1),[y,x]=k.useState(!1),[S,_]=k.useState(""),[E,O]=k.useState(!1),[w,T]=k.useState(!1);k.useEffect(()=>{!e||!f||(o!==void 0&&(b(o.name),O(!!o.isInitial),o.invariant?(T(!0),u(s,o.invariant)):(T(!1),s.resetClauses(s))),p(!1))},[e,f,o,s,u]),k.useEffect(()=>{if(v(g.trim()===""),o){const R=o.name;x(n.filter(P=>P.name!==R).some(P=>P.name.toLowerCase()===g.toLowerCase()))}else x(n.some(R=>R.name.toLowerCase()===g.toLowerCase()));m&&_(c("locDialog.errorNameEmpty")),y&&_(c("locDialog.errorNameExists"))},[g,n,m,y,o,c]);const I=k.useMemo(()=>m||y||w&&s.isValidationError,[m,y,w,s.isValidationError]),A=()=>{b(""),T(!1),s.resetClauses(s),p(!0),i()},D=()=>{if(I)return;const R=w?d(l):void 0;o?a(g,E,R,o.name):(a(g,E,R),b(""),T(!1),s.resetClauses(s)),p(!0)};return C.jsxs(vf,{open:e,onClose:A,children:[C.jsxs(bf,{children:[c(o?"locDialog.editLoc":"locDialog.addLoc"),C.jsx(Us,{onMouseDown:A,onKeyDown:R=>h(R.key,A),sx:{position:"absolute",right:8,top:8,color:R=>R.palette.grey[500]},children:C.jsx(Af,{})})]}),C.jsxs(yf,{children:[C.jsx(s0,{margin:"dense",label:c("locDialog.name"),type:"text",fullWidth:!0,variant:"outlined",value:g,onChange:R=>b(R.target.value),error:m||y,helperText:m||y?S:"","data-testid":"input-location-name"}),C.jsx(Zy,{control:C.jsx(Qy,{checked:E,onChange:R=>O(R.target.checked)}),label:c("locDialog.isInitial"),"data-testid":"checkbox-location-isInitial"}),C.jsx(Zy,{control:C.jsx(Qy,{checked:w,onChange:R=>T(R.target.checked)}),label:c("locDialog.hasInvariant"),"data-testid":"checkbox-location-hasInvariant"}),w&&C.jsx(L$,{viewModel:s,clocks:r,downwardClosedOnly:!0}),w&&C.jsx(Vn,{variant:"outlined",onMouseDown:()=>s.addClause(s),onKeyDown:R=>h(R.key,()=>s.addClause(s)),sx:{marginTop:2},"data-testid":"button-add-clause",children:c("clauses.button.addClause")})]}),C.jsxs(mf,{children:[C.jsx(Vn,{onMouseDown:A,onKeyDown:R=>h(R.key,A),variant:"contained",color:"error",children:c("locDialog.button.cancel")}),C.jsx(Vn,{onMouseDown:D,onKeyDown:R=>h(R.key,D),variant:"contained",color:"primary",disabled:I,"data-testid":"button-add-location-ok",children:c(o?"locDialog.button.edit":"locDialog.button.add")})]})]})},W$=t=>{const{open:e,locations:n,switches:r,clocks:o,switchPrevVersion:i,handleClose:a,handleSubmit:s}=t,l=B$(),{clauses:u,setClausesFromClockConstraint:c}=l,{t:h}=vi(),{executeOnKeyboardClick:d}=La(),{transformToClockConstraint:f}=fc(),{switchesEqual:p}=nC(),[g,b]=k.useState(""),[m,v]=k.useState(""),[y,x]=k.useState(""),[S,_]=k.useState(!1),[E,O]=k.useState(!1),[w,T]=k.useState(!1),[I,A]=k.useState(o.reduce((Q,we)=>(Q[we.name]=!1,Q),{})),[D,R]=k.useState(!0),[P,M]=k.useState(!1),N=k.useCallback(Q=>{const we=Q.map(z=>z.name),xe=o.reduce((z,$)=>(z[$.name]=we.includes($.name),z),{});A(xe)},[o]);k.useEffect(()=>{!e||!D||(i!==void 0?(b(i.actionLabel),v(i.source.name),x(i.target.name),N(i.reset),i.guard?(M(!0),c(l,i.guard)):(M(!1),l.resetClauses(l))):N([]),R(!1))},[e,D,o,i,l,c,N]),k.useEffect(()=>{_(g.trim()===""),O(m.trim()===""),T(y.trim()==="")},[g,m,y]);const j=k.useMemo(()=>{let Q;i?Q=r.filter(re=>!p(re,i)):Q=r;const we={name:m,xCoordinate:0,yCoordinate:0},xe={name:y,xCoordinate:0,yCoordinate:0},z=P&&u.length>0?f(u):void 0,$=o.filter(re=>I[re.name]),L={source:we,guard:z,actionLabel:g,reset:$,target:xe};return Q.filter(re=>p(re,L)).length>0},[i,r,m,y,P,u,I,g,o,f,p]),W=k.useMemo(()=>{if(j)return C.jsx(ic,{variant:"body2",color:"error",children:h("switchDialog.switchAlreadyExists")})},[j,h]),B=k.useMemo(()=>S||E||w||j||P&&l.isValidationError,[S,E,w,P,j,l.isValidationError]),ee=(Q,we)=>{A(xe=>({...xe,[Q]:we}))},X=k.useMemo(()=>n.map(Q=>C.jsx(ZE,{value:Q.name,"data-testid":"menu-item-loc-"+Q.name,children:Q.name},Q.name)),[n]),te=()=>{b(""),v(""),x(""),o.forEach(Q=>ee(Q.name,!1)),M(!1),l.resetClauses(l),R(!0),a()},ae=()=>{if(B)return;const Q=P?f(u):void 0,we=o.filter(xe=>I[xe.name]).map(xe=>xe.name);i?s(m,g,we,y,Q,i):(s(m,g,we,y,Q),b(""),v(""),x(""),o.forEach(xe=>ee(xe.name,!1)),M(!1),l.resetClauses(l)),R(!0)},ge=k.useMemo(()=>o.map(Q=>C.jsx(Rr,{item:!0,xs:12,children:C.jsx(Zy,{control:C.jsx(Qy,{checked:!!I[Q.name],onChange:we=>ee(Q.name,we.target.checked),"data-testid":"checkbox-switch-reset-"+Q.name}),label:h("switchDialog.input.resetClock",{clockName:Q.name})})},Q.name)),[o,I,h]);return C.jsxs(vf,{open:e,onClose:te,PaperProps:{style:{minWidth:"450px"}},children:[C.jsxs(bf,{children:[h(i?"switchDialog.title.editSwitch":"switchDialog.title.addSwitch"),C.jsx(Us,{onMouseDown:te,onKeyDown:Q=>d(Q.key,te),sx:{position:"absolute",right:8,top:8,color:Q=>Q.palette.grey[500]},children:C.jsx(Af,{})})]}),C.jsxs(yf,{children:[C.jsx(s0,{margin:"dense",label:h("switchDialog.input.action"),type:"text",fullWidth:!0,variant:"outlined",value:g,onChange:Q=>b(Q.target.value),error:S,helperText:S?h("switchDialog.error.action"):"",style:{marginBottom:"16px"},"data-testid":"input-switch-action"}),C.jsxs(Rr,{container:!0,spacing:2,alignItems:"center",children:[C.jsx(Rr,{item:!0,xs:6,children:C.jsxs(wf,{fullWidth:!0,children:[C.jsx(Cf,{children:h("switchDialog.input.source")}),C.jsx(hc,{value:m,onChange:Q=>v(Q.target.value),label:"Source",error:E,"data-testid":"select-switch-source",children:X})]})}),C.jsx(Rr,{item:!0,xs:6,children:C.jsxs(wf,{fullWidth:!0,children:[C.jsx(Cf,{children:h("switchDialog.input.target")}),C.jsx(hc,{value:y,onChange:Q=>x(Q.target.value),label:"Target",error:w,"data-testid":"select-switch-target",children:X})]})})]}),C.jsx(Zy,{control:C.jsx(Qy,{checked:P,onChange:Q=>M(Q.target.checked),"data-testid":"checkbox-switch-hasGuard"}),label:h("switchDialog.hasGuard")}),P&&C.jsx(L$,{viewModel:l,clocks:o}),P&&C.jsx(Vn,{variant:"outlined",onMouseDown:()=>l.addClause(l),onKeyDown:Q=>d(Q.key,()=>l.addClause(l)),sx:{marginTop:2},"data-testid":"button-add-clause",children:h("clauses.button.addClause")}),C.jsx(KE,{sx:{my:1}}),C.jsx(Rr,{container:!0,spacing:1,alignItems:"center",children:ge}),W]}),C.jsxs(mf,{children:[C.jsx(Vn,{onMouseDown:te,onKeyDown:Q=>d(Q.key,te),variant:"contained",color:"error",children:h("switchDialog.button.cancel")}),C.jsx(Vn,{onMouseDown:ae,onKeyDown:Q=>d(Q.key,ae),variant:"contained",color:"primary",disabled:B,"data-testid":"button-add-switch-ok",children:h(i?"switchDialog.button.edit":"switchDialog.button.add")})]})]})},H4e=t=>{const{clock:e,open:n,onClose:r,onDelete:o}=t,{t:i}=vi(),{executeOnKeyboardClick:a}=La();if(!n)return C.jsx(C.Fragment,{});if(!e)throw Error("Clock for delete-confirm dialog is undefined or null");return C.jsxs(vf,{open:n,onClose:r,"data-testid":"dialog-delete-clock-confirm",children:[C.jsx(bf,{children:i("deleteClockConfirmDialog.title",{clockName:e.name})}),C.jsxs(yf,{children:[C.jsx(t5e,{children:i("deleteClockConfirmDialog.contentText",{clockName:e.name})}),C.jsx("p",{children:C.jsx("b",{children:i("deleteClockConfirmDialog.contentTextWarning")})})]}),C.jsxs(mf,{children:[C.jsx(Vn,{onMouseDown:r,onKeyDown:s=>a(s.key,r),variant:"contained",color:"primary",children:i("deleteClockConfirmDialog.button.cancel")}),C.jsx(Vn,{onMouseDown:()=>o(e),onKeyDown:s=>a(s.key,()=>o(e)),variant:"contained",color:"error","data-testid":"button-confirm-delete-clock",children:i("deleteClockConfirmDialog.button.confirm")})]})]})},H$=t=>{const{open:e,clocks:n,prevClockName:r,handleClose:o,handleSubmit:i}=t,{t:a}=vi(),{executeOnKeyboardClick:s}=La(),[l,u]=k.useState("");k.useEffect(()=>{e&&u(r||"")},[r,e]);const c=k.useMemo(()=>{const g=n.map(b=>b.name);return r?g.filter(b=>b!==r):g},[n,r]),h=k.useMemo(()=>!l||c.includes(l),[l,c]),d=k.useMemo(()=>{if(!h)return"";if(!l)return a("clockDialog.errorNameEmpty");if(c.includes(l))return a("clockDialog.errorNameExists")},[h,l,c,a]),f=()=>{u(""),o()},p=()=>{h||(r?i(l,r):(i(l),u("")))};return C.jsxs(vf,{open:e,onClose:f,PaperProps:{style:{minWidth:"450px"}},children:[C.jsxs(bf,{children:[a(r?"clockDialog.title.editClock":"clockDialog.title.addClock"),C.jsx(Us,{onMouseDown:f,onKeyDown:g=>s(g.key,f),sx:{position:"absolute",right:8,top:8,color:g=>g.palette.grey[500]},children:C.jsx(Af,{})})]}),C.jsx(yf,{children:C.jsx(s0,{margin:"dense",label:a("clockDialog.input.name"),type:"text",fullWidth:!0,variant:"outlined",value:l,onChange:g=>u(g.target.value),error:h,helperText:d,style:{marginBottom:"16px"},"data-testid":"input-clock-name"})}),C.jsxs(mf,{children:[C.jsx(Vn,{onMouseDown:f,onKeyDown:g=>s(g.key,f),variant:"contained",color:"error",children:a("clockDialog.button.cancel")}),C.jsx(Vn,{onMouseDown:p,onKeyDown:g=>s(g.key,p),variant:"contained",color:"primary",disabled:h,"data-testid":"button-add-clock-ok",children:a(r?"clockDialog.button.edit":"clockDialog.button.add")})]})]})},V4e="/timed-automata-analysis/assets/timed_automata_analyzer_bg-La1nU_Yn.wasm",U4e=async(t={},e)=>{let n;if(e.startsWith("data:")){const r=e.replace(/^data:.*?base64,/,"");let o;if(typeof Buffer=="function"&&typeof Buffer.from=="function")o=Buffer.from(r,"base64");else if(typeof atob=="function"){const i=atob(r);o=new Uint8Array(i.length);for(let a=0;a"u"?(0,wC.require)("util").TextDecoder:TextDecoder;let V$=new K4e("utf-8",{ignoreBOM:!0,fatal:!0});V$.decode();let u0=null;function c0(){return(u0===null||u0.byteLength===0)&&(u0=new Uint8Array(Ae.memory.buffer)),u0}function U$(t,e){return t=t>>>0,V$.decode(c0().subarray(t,t+e))}const Fi=new Array(128).fill(void 0);Fi.push(void 0,null,!0,!1);let Df=Fi.length;function q$(t){Df===Fi.length&&Fi.push(Fi.length+1);const e=Df;return Df=Fi[e],Fi[e]=t,e}function Y4e(t){return Fi[t]}function X4e(t){t<132||(Fi[t]=Df,Df=t)}function pc(t){const e=Y4e(t);return X4e(t),e}let Co=0;const G4e=typeof TextEncoder>"u"?(0,wC.require)("util").TextEncoder:TextEncoder;let d0=new G4e("utf-8");const Q4e=typeof d0.encodeInto=="function"?function(t,e){return d0.encodeInto(t,e)}:function(t,e){const n=d0.encode(t);return e.set(n),{read:t.length,written:n.length}};function cC(t,e,n){if(n===void 0){const s=d0.encode(t),l=e(s.length,1)>>>0;return c0().subarray(l,l+s.length).set(s),Co=s.length,l}let r=t.length,o=e(r,1)>>>0;const i=c0();let a=0;for(;a127)break;i[o+a]=s}if(a!==r){a!==0&&(t=t.slice(a)),o=n(o,r,r=a+t.length*3,1)>>>0;const s=c0().subarray(o+a,o+r),l=Q4e(t,s);a+=l.written,o=n(o,r,a,1)>>>0}return Co=a,o}function gc(t,e){if(!(t instanceof e))throw new Error(`expected instance of ${e.name}`);return t.ptr}let vc=null;function h0(){return(vc===null||vc.buffer.detached===!0||vc.buffer.detached===void 0&&vc.buffer!==Ae.memory.buffer)&&(vc=new DataView(Ae.memory.buffer)),vc}function jf(t,e){const n=e(t.length*4,4)>>>0,r=h0();for(let o=0;o>>0;const n=h0(),r=[];for(let o=t;o"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_clause_free(t>>>0,1));class p0{static __unwrap(e){return e instanceof p0?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y$.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_clause_free(e,0)}constructor(e,n,r){gc(e,Nf);const o=Ae.clause_new(e.__wbg_ptr,n,r);return this.__wbg_ptr=o>>>0,Y$.register(this,this.__wbg_ptr,this),this}}const X$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_clock_free(t>>>0,1));class Nf{static __unwrap(e){return e instanceof Nf?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X$.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_clock_free(e,0)}constructor(e){const n=cC(e,Ae.__wbindgen_malloc,Ae.__wbindgen_realloc),r=Co,o=Ae.clock_new(n,r);return this.__wbg_ptr=o>>>0,X$.register(this,this.__wbg_ptr,this),this}}const G$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_clockconstraint_free(t>>>0,1));class dC{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G$.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_clockconstraint_free(e,0)}constructor(e){const n=jf(e,Ae.__wbindgen_malloc),r=Co,o=Ae.clockconstraint_new(n,r);return this.__wbg_ptr=o>>>0,G$.register(this,this.__wbg_ptr,this),this}}const Q$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_location_free(t>>>0,1));class mc{static __unwrap(e){return e instanceof mc?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Q$.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_location_free(e,0)}constructor(e,n,r){const o=cC(e,Ae.__wbindgen_malloc,Ae.__wbindgen_realloc),i=Co;let a=0;K$(r)||(gc(r,dC),a=r.__destroy_into_raw());const s=Ae.location_new(o,i,n,a);return this.__wbg_ptr=s>>>0,Q$.register(this,this.__wbg_ptr,this),this}}const J$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_switch_free(t>>>0,1));class g0{static __unwrap(e){return e instanceof g0?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,J$.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_switch_free(e,0)}constructor(e,n,r,o,i){gc(e,mc);let a=0;K$(n)||(gc(n,dC),a=n.__destroy_into_raw());const s=cC(r,Ae.__wbindgen_malloc,Ae.__wbindgen_realloc),l=Co,u=jf(o,Ae.__wbindgen_malloc),c=Co;gc(i,mc);const h=Ae.switch_new(e.__wbg_ptr,a,s,l,u,c,i.__wbg_ptr);return this.__wbg_ptr=h>>>0,J$.register(this,this.__wbg_ptr,this),this}}const Z$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_timedautomaton_free(t>>>0,1));class e6{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z$.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_timedautomaton_free(e,0)}constructor(e,n,r){const o=jf(e,Ae.__wbindgen_malloc),i=Co,a=jf(n,Ae.__wbindgen_malloc),s=Co,l=jf(r,Ae.__wbindgen_malloc),u=Co,c=Ae.timedautomaton_new(o,i,a,s,l,u);return this.__wbg_ptr=c>>>0,Z$.register(this,this.__wbg_ptr,this),this}}function e$e(t){return Nf.__unwrap(pc(t))}function t$e(t){return p0.__unwrap(pc(t))}function n$e(t){return mc.__unwrap(pc(t))}function r$e(t){return g0.__unwrap(pc(t))}function o$e(t,e){const n=U$(t,e);return q$(n)}function i$e(t){pc(t)}function a$e(t,e){throw new Error(U$(t,e))}URL=globalThis.URL;const hn=await U4e({"./timed_automata_analyzer_bg.js":{__wbg_clock_unwrap:e$e,__wbg_clause_unwrap:t$e,__wbg_location_unwrap:n$e,__wbg_switch_unwrap:r$e,__wbindgen_string_new:o$e,__wbindgen_object_drop_ref:i$e,__wbindgen_throw:a$e}},V4e),s$e=hn.memory,l$e=hn.__wbg_clock_free,u$e=hn.clock_new,c$e=hn.__wbg_clause_free,d$e=hn.clause_new,h$e=hn.__wbg_clockconstraint_free,f$e=hn.clockconstraint_new,p$e=hn.__wbg_location_free,g$e=hn.location_new,v$e=hn.__wbg_switch_free,m$e=hn.switch_new,y$e=hn.__wbg_timedautomaton_free,b$e=hn.timedautomaton_new,w$e=hn.findUnreachableLocations,x$e=hn.__wbindgen_malloc,k$e=hn.__wbindgen_realloc,S$e=hn.__wbindgen_add_to_stack_pointer,_$e=hn.__wbindgen_free,E$e=Object.freeze(Object.defineProperty({__proto__:null,__wbg_clause_free:c$e,__wbg_clock_free:l$e,__wbg_clockconstraint_free:h$e,__wbg_location_free:p$e,__wbg_switch_free:v$e,__wbg_timedautomaton_free:y$e,__wbindgen_add_to_stack_pointer:S$e,__wbindgen_free:_$e,__wbindgen_malloc:x$e,__wbindgen_realloc:k$e,clause_new:d$e,clock_new:u$e,clockconstraint_new:f$e,findUnreachableLocations:w$e,location_new:g$e,memory:s$e,switch_new:m$e,timedautomaton_new:b$e},Symbol.toStringTag,{value:"Module"}));q4e(E$e);function C$e(){const t=k.useCallback(l=>new Nf(l.name),[]),e=k.useCallback(l=>l.map(t),[t]),n=k.useCallback(l=>{let u;switch(l.op){case Mn.LESSER:u=f0.LESSER;break;case Mn.LEQ:u=f0.LEQ;break;case Mn.GEQ:u=f0.GEQ;break;case Mn.GREATER:u=f0.GREATER;break;case Mn.EQ:throw Error("Comparator EQ not supported by analyzer")}return new p0(t(l.lhs),u,l.rhs)},[t]),r=k.useCallback(l=>{if(!l)return;const u=[];for(let c=0;cnew mc(l.name,!!l.isInitial,r(l.invariant)),[r]),i=k.useCallback(l=>l.map(o),[o]),a=k.useCallback(l=>new g0(o(l.source),r(l.guard),l.actionLabel,e(l.reset),o(l.target)),[o,r,e]),s=k.useCallback(l=>l.map(a),[a]);return{mapTaToAnalyzerModel:k.useCallback(l=>new e6(i(l.locations),e(l.clocks),s(l.switches)),[e,i,s])}}const O$e=t=>{const{open:e,viewModel:n,handleClose:r}=t,{state:o,ta:i,setStateAnalyzing:a,setStateReady:s}=n,{t:l}=vi(),{executeOnKeyboardClick:u}=La(),{mapTaToAnalyzerModel:c}=C$e(),[h,d]=k.useState(void 0),f=()=>{o===ri.READY&&(r(),d(void 0))},p=()=>{a(n);let g=[];const b=c(i);try{g=Z4e(b),s(n)}catch(m){s(n),d(C.jsx("p",{children:l("analysisDialog.analysis.error",{msg:m})}));return}if(g.length===0)d(C.jsx("p",{"data-testid":"analysis-result-all-reachable",children:l("analysisDialog.analysis.resultAllReachable")}));else{const m=g.map((y,x)=>C.jsx("li",{children:y},"reach-result-"+x)),v=l("analysisDialog.analysis.resultSomeUnreachable");d(C.jsxs(C.Fragment,{children:[C.jsx("p",{children:v}),C.jsx("ul",{children:m})]}))}};return C.jsxs(vf,{open:e,onClose:f,PaperProps:{style:{minWidth:"450px"}},children:[C.jsxs(bf,{children:[l("analysisDialog.title"),C.jsx(Us,{onMouseDown:f,onKeyDown:g=>u(g.key,f),sx:{position:"absolute",right:8,top:8,color:g=>g.palette.grey[500]},disabled:o!==ri.READY,children:C.jsx(Af,{})})]}),C.jsxs(yf,{children:[C.jsx("p",{children:l("analysisDialog.description")}),h]}),C.jsxs(mf,{children:[C.jsx(Vn,{onMouseDown:f,onKeyDown:g=>u(g.key,f),variant:"contained",color:"error",disabled:o!==ri.READY,children:l("analysisDialog.button.close")}),C.jsx(Vn,{onMouseDown:p,onKeyDown:g=>u(g.key,p),variant:"contained",color:"primary",disabled:o!==ri.READY,"data-testid":"button-start-analysis",children:l("analysisDialog.button.analyze")})]})]})},T$e=t=>{const{viewModel:e}=t,{state:n,ta:r,addLocation:o,editLocation:i,removeLocation:a,addSwitch:s,editSwitch:l,removeSwitch:u,addClock:c,editClock:h,removeClock:d}=e,{locations:f,switches:p,clocks:g}=r,{t:b}=vi(),{formatLocationLabelTable:m,formatSwitchTable:v}=g3(),{taUsesClockInAnyConstraint:y}=fc(),{executeOnKeyboardClick:x}=La(),[S,_]=k.useState(!1),[E,O]=k.useState(!1),[w,T]=k.useState(void 0),[I,A]=k.useState(!1),[D,R]=k.useState(!1),[P,M]=k.useState(void 0),[N,j]=k.useState(!1),[W,B]=k.useState(!1),[ee,X]=k.useState(void 0),[te,ae]=k.useState(!1),[ge,Q]=k.useState(void 0),we=()=>_(!0),xe=()=>_(!1),z=k.useCallback(De=>{T(f[De]),O(!0)},[f]),$=()=>O(!1),L=(De,tt,Rn)=>{o(e,De,tt,Rn),_(!1)},re=(De,tt,Rn,so)=>{if(!so)throw Error("handleLocationEdit: prevLocationName is empty or undefined");i(e,De,so,tt,Rn),O(!1)},U=k.useCallback(De=>{const tt=f[De].name;a(e,tt)},[f,e,a]),ie=k.useMemo(()=>{const De=f.map((tt,Rn)=>{let so;return tt.isInitial?so=C.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[C.jsx(o0,{title:b("manipulation.table.initLocLabel"),children:C.jsx(z4e,{fontSize:"small","data-testid":"icon-is-initial-row-"+Rn})}),C.jsx(ic,{variant:"body1",style:{marginLeft:4},children:m(tt)})]}):so=m(tt),{id:Rn,displayName:so}});return C.jsx(lC,{rows:De,contentSingular:b("manipulation.table.locSingular"),contentPlural:b("manipulation.table.locPlural"),typeForTestId:"location",state:n,onAddOpen:we,onEditOpen:z,onDelete:U})},[f,b,n,m,z,U]),Te=()=>A(!0),Ne=()=>A(!1),Ee=k.useCallback(De=>{M(p[De]),R(!0)},[p]),We=()=>R(!1),kt=(De,tt,Rn,so,xc)=>{s(e,De,tt,Rn,so,xc),A(!1)},ke=(De,tt,Rn,so,xc,Vf)=>{if(!Vf)throw Error("handleSwitchEdit: prevSwitch is null or undefined");l(e,Vf,De,tt,Rn,so,xc),R(!1)},Kt=k.useCallback(De=>{u(e,p[De])},[e,p,u]),fe=k.useMemo(()=>{const De=p.map((tt,Rn)=>({id:Rn,displayName:v(tt)}));return C.jsx(lC,{rows:De,contentSingular:b("manipulation.table.switchSingular"),contentPlural:b("manipulation.table.switchPlural"),typeForTestId:"switch",state:n,onAddOpen:Te,onEditOpen:Ee,onDelete:Kt})},[p,b,n,v,Ee,Kt]),vt=()=>j(!0),Ar=()=>j(!1),xn=k.useCallback(De=>{X(g[De].name),B(!0)},[g]),Un=()=>B(!1),oo=De=>{c(e,De),j(!1)},Gt=(De,tt)=>{if(!tt)throw Error("handleClockEdit: prevClockName is null or undefined or empty");h(e,De,tt),B(!1)},io=()=>ae(!0),Pe=()=>ae(!1),qn=k.useCallback(De=>{Pe(),d(e,De)},[d,e]),ii=k.useCallback(De=>{const tt=g[De];y(r,tt)?(Q(tt),io()):qn(tt)},[g,r,qn,y]),pe=k.useMemo(()=>{const De=g.map((tt,Rn)=>({id:Rn,displayName:tt.name}));return C.jsx(lC,{rows:De,contentSingular:b("manipulation.table.clockSingular"),contentPlural:b("manipulation.table.clockPlural"),typeForTestId:"clock",state:n,onAddOpen:vt,onEditOpen:xn,onDelete:ii})},[g,b,n,xn,ii]),Ye=k.useMemo(()=>[ie,fe,pe].map((De,tt)=>C.jsx("div",{style:{marginBottom:"16px"},children:De},tt)),[ie,fe,pe]),[Dt,ao]=k.useState(!1),Qs=()=>ao(!0),Hf=()=>ao(!1);return C.jsxs(C.Fragment,{children:[C.jsx("div",{style:{marginBottom:"16px"},children:C.jsx(Vn,{onMouseDown:Qs,onKeyDown:De=>x(De.key,Hf),variant:"contained",color:"primary",size:"small","data-testid":"button-open-analysis",disabled:n!==ri.READY,children:b("manipulation.button.reachability")})},"analysis-button-div"),Ye,C.jsx(O$e,{open:Dt,viewModel:e,handleClose:Hf}),C.jsx($$,{open:S,locations:f,clocks:g,handleClose:xe,handleSubmit:L,locPrevVersion:void 0}),C.jsx($$,{open:E,locations:f,clocks:g,handleClose:$,handleSubmit:re,locPrevVersion:w}),C.jsx(W$,{open:I,locations:f,switches:p,clocks:g,handleClose:Ne,handleSubmit:kt,switchPrevVersion:void 0}),C.jsx(W$,{open:D,locations:f,switches:p,clocks:g,handleClose:We,handleSubmit:ke,switchPrevVersion:P}),C.jsx(H$,{open:N,clocks:g,handleClose:Ar,handleSubmit:oo,prevClockName:void 0}),C.jsx(H$,{open:W,clocks:g,handleClose:Un,handleSubmit:Gt,prevClockName:ee}),C.jsx(H4e,{clock:ge,open:te,onClose:Pe,onDelete:qn})]})};function P$e(){const t=k4e(),{t:e}=vi(),n=k.useRef(null),[r,o]=k.useState(window.innerHeight);return k.useLayoutEffect(()=>{const i=()=>{const a=n.current;if(a){const s=window.getComputedStyle(a),l=parseInt(s.marginTop,10),u=parseInt(s.marginBottom,10),c=a.offsetHeight+l+u;o(window.innerHeight-c)}};return window.addEventListener("resize",i),i(),()=>window.removeEventListener("resize",i)},[]),C.jsxs(C.Fragment,{children:[C.jsxs("h1",{style:{paddingLeft:"16px"},ref:n,children:["\u23F0 ",e("app.title")]}),C.jsx(GLe,{sx:{display:"flex",height:`${r-1}px`,overflow:"hidden"},children:C.jsxs(Rr,{container:!0,sx:{height:"100%"},children:[C.jsx(Rr,{item:!0,xs:12,sm:4,md:3,lg:3,sx:{borderRight:"1px solid #ccc",paddingLeft:"16px",overflowY:"auto",height:"100%"},children:C.jsx(T$e,{viewModel:t})}),C.jsx(Rr,{item:!0,xs:12,sm:8,md:9,lg:9,sx:{overflowY:"hidden",height:"100%"},children:C.jsx(uDe,{viewModel:t})})]})})]})}const M$e={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class v0{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||M$e,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{let[a,s]=i;for(let l=0;l{let[a,s]=i;for(let l=0;l{let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n},t6=t=>t==null?"":""+t,I$e=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},R$e=/###/g,n6=t=>t&&t.indexOf("###")>-1?t.replace(R$e,"."):t,r6=t=>!t||typeof t=="string",Ff=(t,e,n)=>{const r=typeof e!="string"?e:e.split(".");let o=0;for(;o{const{obj:r,k:o}=Ff(t,e,Object);if(r!==void 0||e.length===1){r[o]=n;return}let i=e[e.length-1],a=e.slice(0,e.length-1),s=Ff(t,a,Object);for(;s.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=Ff(t,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},A$e=(t,e,n,r)=>{const{obj:o,k:i}=Ff(t,e,Object);o[i]=o[i]||[],o[i].push(n)},y0=(t,e)=>{const{obj:n,k:r}=Ff(t,e);if(n)return n[r]},D$e=(t,e,n)=>{const r=y0(t,n);return r!==void 0?r:y0(e,n)},i6=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):i6(t[r],e[r],n):t[r]=e[r]);return t},yc=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var j$e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const N$e=t=>typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>j$e[e]):t;class z$e{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const F$e=[" ",",","?","!",";"],L$e=new z$e(20),B$e=(t,e,n)=>{e=e||"",n=n||"";const r=F$e.filter(a=>e.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const o=L$e.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(t);if(!i){const a=t.indexOf(n);a>0&&!o.test(t.substring(0,a))&&(i=!0)}return i},hC=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let o=t;for(let i=0;i-1&&lt&&t.indexOf("_")>0?t.replace("_","-"):t;class a6 extends m0{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,n],r&&(Array.isArray(r)?s.push(...r):typeof r=="string"&&i?s.push(...r.split(i)):s.push(r)));const l=y0(this.data,s);return!l&&!n&&!r&&e.indexOf(".")>-1&&(e=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||typeof r!="string"?l:hC(this.data&&this.data[e]&&this.data[e][n],r,i)}addResource(e,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[e,n];r&&(s=s.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(s=e.split("."),o=n,n=s[1]),this.addNamespaces(n),o6(this.data,s,o),i.silent||this.emit("added",e,n,r,o)}addResources(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Array.isArray(r[i]))&&this.addResource(e,n,i,r[i],{silent:!0});o.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[e,n];e.indexOf(".")>-1&&(s=e.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let l=y0(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?i6(l,r,i):l={...l,...r},o6(this.data,s,l),a.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var s6={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,o){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,n,r,o))}),e}};const l6={};class w0 extends m0{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),I$e(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=oi.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,n);return r&&r.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const a=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!B$e(e,r,o);if(a&&!s){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const u=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(o)}return typeof i=="string"&&(i=[i]),{key:e,namespaces:i}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],n),l=s[s.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const y=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${y}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${y}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:a}const h=this.resolve(e,n);let d=h&&h.res;const f=h&&h.usedKey||a,p=h&&h.exactUsedKey||a,g=Object.prototype.toString.apply(d),b=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&d&&typeof d!="string"&&typeof d!="boolean"&&typeof d!="number"&&b.indexOf(g)<0&&!(typeof m=="string"&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(h.res=y,h.usedParams=this.getUsedParamsDetails(n),h):y}if(i){const y=Array.isArray(d),x=y?[]:{},S=y?p:f;for(const _ in d)if(Object.prototype.hasOwnProperty.call(d,_)){const E=`${S}${i}${_}`;x[_]=this.translate(E,{...n,joinArrays:!1,ns:s}),x[_]===E&&(x[_]=d[_])}d=x}}else if(v&&typeof m=="string"&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,e,n,r));else{let y=!1,x=!1;const S=n.count!==void 0&&typeof n.count!="string",_=w0.hasDefaultValue(n),E=S?this.pluralResolver.getSuffix(u,n.count,n):"",O=n.ordinal&&S?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",w=S&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),T=w&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${E}`]||n[`defaultValue${O}`]||n.defaultValue;!this.isValidLookup(d)&&_&&(y=!0,d=T),this.isValidLookup(d)||(x=!0,d=a);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:d,A=_&&T!==d&&this.options.updateMissing;if(x||y||A){if(this.logger.log(A?"updateKey":"missingKey",u,l,a,A?T:d),i){const M=this.resolve(a,{...n,keySeparator:!1});M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let D=[];const R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&R&&R[0])for(let M=0;M{const W=_&&j!==d?j:I;this.options.missingKeyHandler?this.options.missingKeyHandler(M,l,N,W,A,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(M,l,N,W,A,n),this.emit("missingKey",M,l,N,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?D.forEach(M=>{const N=this.pluralResolver.getSuffixes(M,n);w&&n[`defaultValue${this.options.pluralSeparator}zero`]&&N.indexOf(`${this.options.pluralSeparator}zero`)<0&&N.push(`${this.options.pluralSeparator}zero`),N.forEach(j=>{P([M],a+j,n[`defaultValue${j}`]||T)})}):P(D,a,T))}d=this.extendTranslation(d,e,n,h,r),x&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${a}`),(x||y)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,y?d:void 0):d=this.options.parseMissingKeyHandler(d))}return o?(h.res=d,h.usedParams=this.getUsedParamsDetails(n),h):d}extendTranslation(e,n,r,o,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof e=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=e.match(this.interpolator.nestingRegexp);c=d&&d.length}let h=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,r.lng||this.language||o.usedLng,r),u){const d=e.match(this.interpolator.nestingRegexp),f=d&&d.length;c1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,a,s;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;o=c;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const d=n.count!==void 0&&typeof n.count!="string",f=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(b=>{this.isValidLookup(r)||(s=b,!l6[`${g[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(l6[`${g[0]}-${b}`]=!0,this.logger.warn(`key "${o}" for languages "${g.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(m=>{if(this.isValidLookup(r))return;a=m;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,m,b,n);else{let x;d&&(x=this.pluralResolver.getSuffix(m,n.count,n));const S=`${this.options.pluralSeparator}zero`,_=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(v.push(c+x),n.ordinal&&x.indexOf(_)===0&&v.push(c+x.replace(_,this.options.pluralSeparator)),f&&v.push(c+S)),p){const E=`${c}${this.options.contextSeparator}${n.context}`;v.push(E),d&&(v.push(E+x),n.ordinal&&x.indexOf(_)===0&&v.push(E+x.replace(_,this.options.pluralSeparator)),f&&v.push(E+S))}}let y;for(;y=v.pop();)this.isValidLookup(r)||(i=y,r=this.getResource(m,b,y,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,o):this.resourceStore.getResource(e,n,r,o)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&typeof e.replace!="string";let o=r?e.replace:e;if(r&&typeof e.count<"u"&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}const fC=t=>t.charAt(0).toUpperCase()+t.slice(1);class u6{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oi.create("languageUtils")}getScriptPartFromCode(e){if(e=b0(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=b0(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=fC(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=fC(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=fC(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o||!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):typeof e=="string"&&i(this.formatLanguageCode(e)),r.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}let $$e=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],W$e={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const H$e=["v1","v2","v3"],V$e=["v4"],c6={zero:0,one:1,two:2,few:3,many:4,other:5},U$e=()=>{const t={};return $$e.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:W$e[e.fc]}})}),t};class q$e{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=oi.create("pluralResolver"),(!this.options.compatibilityJSON||V$e.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=U$e(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=b0(e==="dev"?"en":e),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const a=new Intl.PluralRules(r,{type:o});return this.pluralRulesCache[i]=a,a}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(o=>`${n}${o}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>c6[o]-c6[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(e,o,n)):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(e,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const r=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let o=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!H$e.includes(this.options.compatibilityJSON)}}const d6=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=D$e(t,e,n);return!i&&o&&typeof n=="string"&&(i=hC(t,n,r),i===void 0&&(i=hC(e,n,r))),i},pC=t=>t.replace(/\$/g,"$$$$");class K$e{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=oi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:h,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:b,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=n!==void 0?n:N$e,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?yc(i):a||"{{",this.suffix=s?yc(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?yc(d):f||yc("$t("),this.nestingSuffix=p?yc(p):g||yc(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=m||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,o){let i,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=d=>{if(d.indexOf(this.formatSeparator)<0){const b=d6(n,l,d,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...o,...n,interpolationkey:d}):b}const f=d.split(this.formatSeparator),p=f.shift().trim(),g=f.join(this.formatSeparator).trim();return this.format(d6(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...o,...n,interpolationkey:p})};this.resetRegExp();const c=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:d=>pC(d)},{regex:this.regexp,safeValue:d=>this.escapeValue?pC(this.escape(d)):pC(d)}].forEach(d=>{for(s=0;i=d.regex.exec(e);){const f=i[1].trim();if(a=u(f),a===void 0)if(typeof c=="function"){const g=c(e,i,o);a=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,f))a="";else if(h){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${e}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=t6(a));const p=d.safeValue(a);if(e=e.replace(i[0],p),h?(d.regex.lastIndex+=a.length,d.regex.lastIndex-=i[0].length):d.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,a;const s=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const h=l.split(new RegExp(`${c}[ ]*{`));let d=`{${h[1]}`;l=h[0],d=this.interpolate(d,a);const f=d.match(/'/g),p=d.match(/"/g);(f&&f.length%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{a=JSON.parse(d),u&&(a={...u,...a})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${c}${d}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;o=this.nestingRegexp.exec(e);){let l=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const c=o[1].split(this.formatSeparator).map(h=>h.trim());o[1]=c.shift(),l=c,u=!0}if(i=n(s.call(this,o[1].trim(),a),a),i&&o[0]===e&&typeof i!="string")return i;typeof i!="string"&&(i=t6(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((c,h)=>this.format(c,h,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),e=e.replace(o[0],i),this.regexp.lastIndex=0}return e}}const Y$e=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);e==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):e==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(i){const[a,...s]=i.split(":"),l=s.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=l),l==="false"&&(n[u]=!1),l==="true"&&(n[u]=!0),isNaN(l)||(n[u]=parseInt(l,10))}})}return{formatName:e,formatOptions:n}},bc=t=>{const e={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=e[a];return s||(s=t(b0(r),o),e[a]=s),s(n)}};class X$e{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=oi.create("formatter"),this.options=e,this.formats={number:bc((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:bc((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:bc((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:bc((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:bc((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(e)}init(e){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=bc(n)}format(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(s=>s.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,s)=>{const{formatName:l,formatOptions:u}=Y$e(s);if(this.formats[l]){let c=a;try{const h=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},d=h.locale||h.lng||o.locale||o.lng||r;c=this.formats[l](a,d,{...u,...o,...h})}catch(h){this.logger.warn(h)}return c}else this.logger.warn(`there was no format function for ${l}`);return a},e)}}const G$e=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class Q$e extends m0{constructor(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=oi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(e,n,r,o){const i={},a={},s={},l={};return e.forEach(u=>{let c=!0;n.forEach(h=>{const d=`${u}|${h}`;!r.reload&&this.store.hasResourceBundle(u,h)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?a[d]===void 0&&(a[d]=!0):(this.state[d]=1,c=!1,a[d]===void 0&&(a[d]=!0),i[d]===void 0&&(i[d]=!0),l[h]===void 0&&(l[h]=!0)))}),c||(s[u]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(e,n,r){const o=e.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),!n&&r&&this.store.addResourceBundle(i,a,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const s={};this.queue.forEach(l=>{A$e(l.loaded,[i],a),G$e(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const c=l.loaded[u];c.length&&c.forEach(h=>{s[u][h]===void 0&&(s[u][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&c&&o{this.read.call(this,e,n,r,o+1,i*2,a)},i);return}a(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(c=>s(null,c)).catch(s):s(null,u)}catch(u){s(u)}return}return l(e,n,s)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(e,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,s),this.loaded(e,a,s)})}saveMissing(e,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,n,r,o,l):c=u(e,n,r,o),c&&typeof c.then=="function"?c.then(h=>s(null,h)).catch(s):s(null,c)}catch(c){s(c)}else u(e,n,r,o,s,l)}!e||!e[0]||this.store.addResource(e[0],n,r,o)}}}const h6=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),f6=t=>(typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),x0=()=>{},J$e=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{typeof t[e]=="function"&&(t[e]=t[e].bind(t))})};class Lf extends m0{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=f6(e),this.services={},this.logger=oi,this.modules={external:[]},J$e(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=h6();this.options={...o,...this.options,...f6(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=l=>l?typeof l=="function"?new l:l:null;if(!this.options.isClone){this.modules.logger?oi.init(i(this.modules.logger),this.options):oi.init(null,this.options);let l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=X$e);const u=new u6(this.options);this.store=new a6(this.options.resources,this.options);const c=this.services;c.logger=oi,c.resourceStore=this.store,c.languageUtils=u,c.pluralResolver=new q$e(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(c.formatter=i(l),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new K$e(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Q$e(i(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(h){for(var d=arguments.length,f=new Array(d>1?d-1:0),p=1;p1?d-1:0),p=1;p{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=x0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(l=>{this[l]=function(){return e.store[l](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(l=>{this[l]=function(){return e.store[l](...arguments),e}});const a=zf(),s=()=>{const l=(u,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(c),r(u,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return l(null,this.t.bind(this));this.changeLanguage(this.options.lng,l)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x0;const r=typeof e=="string"?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const o=[],i=a=>{!a||a==="cimode"||this.services.languageUtils.toResolveHierarchy(a).forEach(s=>{s!=="cimode"&&o.indexOf(s)<0&&o.push(s)})};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>i(a)),this.options.preload&&this.options.preload.forEach(a=>i(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(e,n,r){const o=zf();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=x0),this.services.backendConnector.reload(e,n,i=>{o.resolve(),r(i)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&s6.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const o=zf();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{a(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),o}getFixedT(e,n,r){var o=this;const i=function(a,s){let l;if(typeof s!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),h=2;h`${l.keyPrefix}${d}${p}`):f=l.keyPrefix?`${l.keyPrefix}${d}${a}`:a,o.t(f,l)};return typeof e=="string"?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!o||a(i,e)))}loadNamespaces(e,n){const r=zf();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=zf();typeof e=="string"&&(e=[e]);const o=this.options.preload||[],i=e.filter(a=>o.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new u6(h6());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Lf(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x0;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},i=new Lf(o);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new a6(this.store.data,o),i.services.resourceStore=i.store),i.translator=new w0(i.services,o),i.translator.on("*",function(a){for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}const p6=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,n6e=(t,e,n)=>{const r=n||{};r.path=r.path||"/";const o=encodeURIComponent(e);let i=`${t}=${o}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!p6.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!p6.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},g6={create(t,e,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=n6e(t,encodeURIComponent(e),o)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let r=0;r-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const i=o.substring(1).split("&");for(let a=0;a0&&i[a].substring(0,s)===e&&(n=i[a].substring(s+1))}}return n}};let Bf=null;const v6=()=>{if(Bf!==null)return Bf;try{Bf=window!=="undefined"&&window.localStorage!==null;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Bf=!1}return Bf};var i6e={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&v6())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&v6()&&window.localStorage.setItem(n,t)}};let $f=null;const m6=()=>{if($f!==null)return $f;try{$f=window!=="undefined"&&window.sessionStorage!==null;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{$f=!1}return $f};var a6e={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&m6())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&m6()&&window.sessionStorage.setItem(n,t)}},s6e={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let i=0;i0?e:void 0}},l6e={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},u6e={name:"path",lookup(t){var r;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(r=n[typeof e=="number"?e:0])==null?void 0:r.replace("/",""):void 0}},c6e={name:"subdomain",lookup(t){var o,i;let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,r=typeof window<"u"&&((i=(o=window.location)==null?void 0:o.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function d6e(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t}}class y6{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=t6e(n,this.options||{},d6e()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(r6e),this.addDetector(o6e),this.addDetector(i6e),this.addDetector(a6e),this.addDetector(s6e),this.addDetector(l6e),this.addDetector(u6e),this.addDetector(c6e)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let n=[];return e.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}y6.type="languageDetector";function gC(t){"@babel/helpers - typeof";return gC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gC(t)}function b6(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":gC(XMLHttpRequest))==="object"}function h6e(t){return!!t&&typeof t.then=="function"}function f6e(t){return h6e(t)?t:Promise.resolve(t)}function p6e(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vC={exports:{}},mC={exports:{}},w6;function g6e(){return w6||(w6=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Qt<"u"&&Qt,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(a){var s=typeof i<"u"&&i||typeof self<"u"&&self||typeof s<"u"&&s,l={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function u(P){return P&&DataView.prototype.isPrototypeOf(P)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(P){return P&&c.indexOf(Object.prototype.toString.call(P))>-1};function d(P){if(typeof P!="string"&&(P=String(P)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(P)||P==="")throw new TypeError('Invalid character in header field name: "'+P+'"');return P.toLowerCase()}function f(P){return typeof P!="string"&&(P=String(P)),P}function p(P){var M={next:function(){var N=P.shift();return{done:N===void 0,value:N}}};return l.iterable&&(M[Symbol.iterator]=function(){return M}),M}function g(P){this.map={},P instanceof g?P.forEach(function(M,N){this.append(N,M)},this):Array.isArray(P)?P.forEach(function(M){this.append(M[0],M[1])},this):P&&Object.getOwnPropertyNames(P).forEach(function(M){this.append(M,P[M])},this)}g.prototype.append=function(P,M){P=d(P),M=f(M);var N=this.map[P];this.map[P]=N?N+", "+M:M},g.prototype.delete=function(P){delete this.map[d(P)]},g.prototype.get=function(P){return P=d(P),this.has(P)?this.map[P]:null},g.prototype.has=function(P){return this.map.hasOwnProperty(d(P))},g.prototype.set=function(P,M){this.map[d(P)]=f(M)},g.prototype.forEach=function(P,M){for(var N in this.map)this.map.hasOwnProperty(N)&&P.call(M,this.map[N],N,this)},g.prototype.keys=function(){var P=[];return this.forEach(function(M,N){P.push(N)}),p(P)},g.prototype.values=function(){var P=[];return this.forEach(function(M){P.push(M)}),p(P)},g.prototype.entries=function(){var P=[];return this.forEach(function(M,N){P.push([N,M])}),p(P)},l.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function b(P){if(P.bodyUsed)return Promise.reject(new TypeError("Already read"));P.bodyUsed=!0}function m(P){return new Promise(function(M,N){P.onload=function(){M(P.result)},P.onerror=function(){N(P.error)}})}function v(P){var M=new FileReader,N=m(M);return M.readAsArrayBuffer(P),N}function y(P){var M=new FileReader,N=m(M);return M.readAsText(P),N}function x(P){for(var M=new Uint8Array(P),N=new Array(M.length),j=0;j-1?M:P}function w(P,M){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');M=M||{};var N=M.body;if(P instanceof w){if(P.bodyUsed)throw new TypeError("Already read");this.url=P.url,this.credentials=P.credentials,M.headers||(this.headers=new g(P.headers)),this.method=P.method,this.mode=P.mode,this.signal=P.signal,!N&&P._bodyInit!=null&&(N=P._bodyInit,P.bodyUsed=!0)}else this.url=String(P);if(this.credentials=M.credentials||this.credentials||"same-origin",(M.headers||!this.headers)&&(this.headers=new g(M.headers)),this.method=O(M.method||this.method||"GET"),this.mode=M.mode||this.mode||null,this.signal=M.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(M.cache==="no-store"||M.cache==="no-cache")){var j=/([?&])_=[^&]*/;if(j.test(this.url))this.url=this.url.replace(j,"$1_="+new Date().getTime());else{var W=/\?/;this.url+=(W.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})};function T(P){var M=new FormData;return P.trim().split("&").forEach(function(N){if(N){var j=N.split("="),W=j.shift().replace(/\+/g," "),B=j.join("=").replace(/\+/g," ");M.append(decodeURIComponent(W),decodeURIComponent(B))}}),M}function I(P){var M=new g,N=P.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(j){return j.indexOf(` -`)===0?j.substr(1,j.length):j}).forEach(function(j){var W=j.split(":"),B=W.shift().trim();if(B){var ee=W.join(":").trim();M.append(B,ee)}}),M}_.call(w.prototype);function A(P,M){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');M||(M={}),this.type="default",this.status=M.status===void 0?200:M.status,this.ok=this.status>=200&&this.status<300,this.statusText=M.statusText===void 0?"":""+M.statusText,this.headers=new g(M.headers),this.url=M.url||"",this._initBody(P)}_.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},A.error=function(){var P=new A(null,{status:0,statusText:""});return P.type="error",P};var D=[301,302,303,307,308];A.redirect=function(P,M){if(D.indexOf(M)===-1)throw new RangeError("Invalid status code");return new A(null,{status:M,headers:{location:P}})},a.DOMException=s.DOMException;try{new a.DOMException}catch{a.DOMException=function(P,M){this.message=P,this.name=M;var N=Error(P);this.stack=N.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function R(P,M){return new Promise(function(N,j){var W=new w(P,M);if(W.signal&&W.signal.aborted)return j(new a.DOMException("Aborted","AbortError"));var B=new XMLHttpRequest;function ee(){B.abort()}B.onload=function(){var te={status:B.status,statusText:B.statusText,headers:I(B.getAllResponseHeaders()||"")};te.url="responseURL"in B?B.responseURL:te.headers.get("X-Request-URL");var ae="response"in B?B.response:B.responseText;setTimeout(function(){N(new A(ae,te))},0)},B.onerror=function(){setTimeout(function(){j(new TypeError("Network request failed"))},0)},B.ontimeout=function(){setTimeout(function(){j(new TypeError("Network request failed"))},0)},B.onabort=function(){setTimeout(function(){j(new a.DOMException("Aborted","AbortError"))},0)};function X(te){try{return te===""&&s.location.href?s.location.href:te}catch{return te}}B.open(W.method,X(W.url),!0),W.credentials==="include"?B.withCredentials=!0:W.credentials==="omit"&&(B.withCredentials=!1),"responseType"in B&&(l.blob?B.responseType="blob":l.arrayBuffer&&W.headers.get("Content-Type")&&W.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(B.responseType="arraybuffer")),M&&typeof M.headers=="object"&&!(M.headers instanceof g)?Object.getOwnPropertyNames(M.headers).forEach(function(te){B.setRequestHeader(te,f(M.headers[te]))}):W.headers.forEach(function(te,ae){B.setRequestHeader(ae,te)}),W.signal&&(W.signal.addEventListener("abort",ee),B.onreadystatechange=function(){B.readyState===4&&W.signal.removeEventListener("abort",ee)}),B.send(typeof W._bodyInit>"u"?null:W._bodyInit)})}return R.polyfill=!0,s.fetch||(s.fetch=R,s.Headers=g,s.Request=w,s.Response=A),a.Headers=g,a.Request=w,a.Response=A,a.fetch=R,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=n.fetch?n:r;e=o.fetch,e.default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}(mC,mC.exports)),mC.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof Qt<"u"&&Qt.fetch?n=Qt.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof p6e<"u"&&typeof window>"u"){var r=n||g6e();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(vC,vC.exports);var x6=vC.exports;const k6=Bi(x6),S6=To({__proto__:null,default:k6},[x6]);function _6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function E6(t){for(var e=1;e"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var i=typeof t.requestOptions=="function"?t.requestOptions(n):t.requestOptions,a=E6({method:n?"POST":"GET",body:n?t.stringify(n):void 0,headers:o},O6?{}:i),s=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{C6(e,a,r,s)}catch(l){if(!i||Object.keys(i).length===0||!l.message||l.message.indexOf("not implemented")<0)return r(l);try{Object.keys(i).forEach(function(u){delete a[u]}),C6(e,a,r,s),O6=!0}catch(u){r(u)}}},w6e=function(t,e,n,r){n&&Gs(n)==="object"&&(n=yC("",n).slice(1)),t.queryStringParams&&(e=yC(e,t.queryStringParams));try{var o;Wf?o=new Wf:o=new k0("MSXML2.XMLHTTP.3.0"),o.open(n?"POST":"GET",e,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=t.customHeaders;if(i=typeof i=="function"?i():i,i)for(var a in i)o.setRequestHeader(a,i[a]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(s){console&&console.log(s)}},x6e=function(t,e,n,r){if(typeof n=="function"&&(r=n,n=void 0),r=r||function(){},Li&&e.indexOf("file:")!==0)return b6e(t,e,n,r);if(b6()||typeof ActiveXObject=="function")return w6e(t,e,n,r);r(new Error("No fetch and no xhr implementation found!"))};function wc(t){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wc(t)}function T6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function bC(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k6e(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return _6e(t,[{key:"init",value:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=e,this.options=bC(bC(bC({},C6e()),this.options||{}),r),this.allOptions=o,this.services&&this.options.reloadInterval){var i=setInterval(function(){return n.reload()},this.options.reloadInterval);wc(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(e,n,r){this._readAny(e,e,n,n,r)}},{key:"read",value:function(e,n,r){this._readAny([e],e,[n],n,r)}},{key:"_readAny",value:function(e,n,r,o,i){var a=this,s=this.options.loadPath;typeof this.options.loadPath=="function"&&(s=this.options.loadPath(e,r)),s=f6e(s),s.then(function(l){if(!l)return i(null,{});var u=a.services.interpolator.interpolate(l,{lng:e.join("+"),ns:r.join("+")});a.loadUrl(u,i,n,o)})}},{key:"loadUrl",value:function(e,n,r,o){var i=this,a=typeof r=="string"?[r]:r,s=typeof o=="string"?[o]:o,l=this.options.parseLoadPayload(a,s);this.options.request(this.options,e,l,function(u,c){if(c&&(c.status>=500&&c.status<600||!c.status))return n("failed loading "+e+"; status code: "+c.status,!0);if(c&&c.status>=400&&c.status<500)return n("failed loading "+e+"; status code: "+c.status,!1);if(!c&&u&&u.message&&u.message.toLowerCase().indexOf("failed")>-1&&(u.message.indexOf("fetch")>-1||u.message.toLowerCase().indexOf("network")>-1))return n("failed loading "+e+": "+u.message,!0);if(u)return n(u,!1);var h,d;try{typeof c.data=="string"?h=i.options.parse(c.data,r,o):h=c.data}catch{d="failed parsing "+e+" to json"}if(d)return n(d,!1);n(null,h)})}},{key:"create",value:function(e,n,r,o,i){var a=this;if(this.options.addPath){typeof e=="string"&&(e=[e]);var s=this.options.parsePayload(n,r,o),l=0,u=[],c=[];e.forEach(function(h){var d=a.options.addPath;typeof a.options.addPath=="function"&&(d=a.options.addPath(h,n));var f=a.services.interpolator.interpolate(d,{lng:h,ns:n});a.options.request(a.options,f,s,function(p,g){l+=1,u.push(p),c.push(g),l===e.length&&typeof i=="function"&&i(u,c)})})}}},{key:"reload",value:function(){var e=this,n=this.services,r=n.backendConnector,o=n.languageUtils,i=n.logger,a=r.language;if(!(a&&a.toLowerCase()==="cimode")){var s=[],l=function(u){var c=o.toResolveHierarchy(u);c.forEach(function(h){s.indexOf(h)<0&&s.push(h)})};l(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(u){return l(u)}),s.forEach(function(u){e.allOptions.ns.forEach(function(c){r.read(u,c,"read",null,null,function(h,d){h&&i.warn("loading namespace ".concat(c," for language ").concat(u," failed"),h),!h&&d&&i.log("loaded namespace ".concat(c," for language ").concat(u),d),r.loaded("".concat(u,"|").concat(c),h,d)})})})}}}])}();I6.type="backend",In.use(I6).use(y6).use(gH).init({fallbackLng:"en",debug:!1,supportedLngs:["de","en"],interpolation:{escapeValue:!1},backend:{loadPath:"/timed-automata-analysis/locales/{{lng}}/{{ns}}.json"}}),P0.createRoot(document.getElementById("root")).render(C.jsx(lo.StrictMode,{children:C.jsx(P$e,{})}))})()});export default M6e(); diff --git a/assets/index-TDfvff1G.js b/assets/index-TDfvff1G.js new file mode 100644 index 0000000..0a915ee --- /dev/null +++ b/assets/index-TDfvff1G.js @@ -0,0 +1,134 @@ +var R$e=Object.defineProperty;var D$e=(Oo,Qt,Bi)=>Qt in Oo?R$e(Oo,Qt,{enumerable:!0,configurable:!0,writable:!0,value:Bi}):Oo[Qt]=Bi;var j$e=(Oo,Qt)=>()=>(Qt||Oo((Qt={exports:{}}).exports,Qt),Qt.exports);var $f=(Oo,Qt,Bi)=>D$e(Oo,typeof Qt!="symbol"?Qt+"":Qt,Bi);var A$e=j$e((B$e,SC)=>{(async()=>{function Oo(t,e){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function e(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(r){if(r.ep)return;r.ep=!0;const o=e(r);fetch(r.href,o)}})();var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function z$(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var _C={exports:{}},Wf={},EC={exports:{}},je={},_c=Symbol.for("react.element"),F$=Symbol.for("react.portal"),L$=Symbol.for("react.fragment"),B$=Symbol.for("react.strict_mode"),$$=Symbol.for("react.profiler"),W$=Symbol.for("react.provider"),H$=Symbol.for("react.context"),U$=Symbol.for("react.forward_ref"),V$=Symbol.for("react.suspense"),q$=Symbol.for("react.memo"),K$=Symbol.for("react.lazy"),CC=Symbol.iterator;function Y$(t){return t===null||typeof t!="object"?null:(t=CC&&t[CC]||t["@@iterator"],typeof t=="function"?t:null)}var OC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},TC=Object.assign,PC={};function Qs(t,e,n){this.props=t,this.context=e,this.refs=PC,this.updater=n||OC}Qs.prototype.isReactComponent={},Qs.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},Qs.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function MC(){}MC.prototype=Qs.prototype;function S0(t,e,n){this.props=t,this.context=e,this.refs=PC,this.updater=n||OC}var _0=S0.prototype=new MC;_0.constructor=S0,TC(_0,Qs.prototype),_0.isPureReactComponent=!0;var IC=Array.isArray,RC=Object.prototype.hasOwnProperty,E0={current:null},DC={key:!0,ref:!0,__self:!0,__source:!0};function jC(t,e,n){var r,o={},i=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)RC.call(e,r)&&!DC.hasOwnProperty(r)&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,X=A[J];if(0>>1;Jo(ve,W))Qo(xe,ve)?(A[J]=xe,A[Q]=W,J=Q):(A[J]=ve,A[se]=W,J=se);else if(Qo(xe,W))A[J]=xe,A[Q]=W,J=Q;else break e}}return $}function o(A,$){var W=A.sortIndex-$.sortIndex;return W!==0?W:A.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,h=null,d=3,f=!1,p=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(A){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=A)r(u),$.sortIndex=$.expirationTime,e(l,$);else break;$=n(u)}}function x(A){if(g=!1,y(A),!p)if(n(l)!==null)p=!0,M(S);else{var $=n(u);$!==null&&N(x,$.startTime-A)}}function S(A,$){p=!1,g&&(g=!1,m(O),O=-1),f=!0;var W=d;try{for(y($),h=n(l);h!==null&&(!(h.expirationTime>$)||A&&!I());){var J=h.callback;if(typeof J=="function"){h.callback=null,d=h.priorityLevel;var X=J(h.expirationTime<=$);$=t.unstable_now(),typeof X=="function"?h.callback=X:h===n(l)&&r(l),y($)}else r(l);h=n(l)}if(h!==null)var te=!0;else{var se=n(u);se!==null&&N(x,se.startTime-$),te=!1}return te}finally{h=null,d=W,f=!1}}var _=!1,E=null,O=-1,w=5,T=-1;function I(){return!(t.unstable_now()-TA||125J?(A.sortIndex=W,e(u,A),n(l)===null&&A===n(u)&&(g?(m(O),O=-1):g=!0,N(x,W-J))):(A.sortIndex=X,e(l,A),p||f||(p=!0,M(S))),A},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(A){var $=d;return function(){var W=d;d=$;try{return A.apply(this,arguments)}finally{d=W}}}})(BC),LC.exports=BC;var iW=LC.exports,aW=k,pr=iW;function q(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M0=Object.prototype.hasOwnProperty,sW=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,WC={},HC={};function lW(t){return M0.call(HC,t)?!0:M0.call(WC,t)?!1:sW.test(t)?HC[t]=!0:(WC[t]=!0,!1)}function uW(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function cW(t,e,n,r){if(e===null||typeof e>"u"||uW(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function An(t,e,n,r,o,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var pn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){pn[t]=new An(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];pn[e]=new An(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){pn[t]=new An(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){pn[t]=new An(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){pn[t]=new An(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){pn[t]=new An(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){pn[t]=new An(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){pn[t]=new An(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){pn[t]=new An(t,5,!1,t.toLowerCase(),null,!1,!1)});var I0=/[\-:]([a-z])/g;function R0(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(I0,R0);pn[e]=new An(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(I0,R0);pn[e]=new An(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(I0,R0);pn[e]=new An(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){pn[t]=new An(t,1,!1,t.toLowerCase(),null,!1,!1)}),pn.xlinkHref=new An("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){pn[t]=new An(t,1,!1,t.toLowerCase(),null,!0,!0)});function D0(t,e,n,r){var o=pn.hasOwnProperty(e)?pn[e]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=a&&0<=s);break}}}finally{$0=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Oc(t):""}function dW(t){switch(t.tag){case 5:return Oc(t.type);case 16:return Oc("Lazy");case 13:return Oc("Suspense");case 19:return Oc("SuspenseList");case 0:case 2:case 15:return t=W0(t.type,!1),t;case 11:return t=W0(t.type.render,!1),t;case 1:return t=W0(t.type,!0),t;default:return""}}function H0(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case el:return"Fragment";case Zs:return"Portal";case A0:return"Profiler";case j0:return"StrictMode";case z0:return"Suspense";case F0:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case VC:return(t.displayName||"Context")+".Consumer";case UC:return(t._context.displayName||"Context")+".Provider";case N0:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case L0:return e=t.displayName||null,e!==null?e:H0(t.type)||"Memo";case $i:e=t._payload,t=t._init;try{return H0(t(e))}catch{}}return null}function hW(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H0(e);case 8:return e===j0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Wi(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function YC(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function fW(t){var e=YC(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Kf(t){t._valueTracker||(t._valueTracker=fW(t))}function XC(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=YC(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Yf(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function U0(t,e){var n=e.checked;return mt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function GC(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Wi(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function QC(t,e){e=e.checked,e!=null&&D0(t,"checked",e,!1)}function V0(t,e){QC(t,e);var n=Wi(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?q0(t,e.type,n):e.hasOwnProperty("defaultValue")&&q0(t,e.type,Wi(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function JC(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function q0(t,e,n){(e!=="number"||Yf(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Tc=Array.isArray;function tl(t,e,n,r){if(t=t.options,e){e={};for(var o=0;o"+e.valueOf().toString()+"",e=Xf.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Pc(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Mc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pW=["Webkit","ms","Moz","O"];Object.keys(Mc).forEach(function(t){pW.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Mc[e]=Mc[t]})});function oO(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Mc.hasOwnProperty(t)&&Mc[t]?(""+e).trim():e+"px"}function iO(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=oO(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,o):t[n]=o}}var gW=mt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function X0(t,e){if(e){if(gW[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(q(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(q(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(q(61))}if(e.style!=null&&typeof e.style!="object")throw Error(q(62))}}function G0(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Q0=null;function J0(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Z0=null,nl=null,rl=null;function aO(t){if(t=Jc(t)){if(typeof Z0!="function")throw Error(q(280));var e=t.stateNode;e&&(e=yp(e),Z0(t.stateNode,t.type,e))}}function sO(t){nl?rl?rl.push(t):rl=[t]:nl=t}function lO(){if(nl){var t=nl,e=rl;if(rl=nl=null,aO(t),e)for(t=0;t>>=0,t===0?32:31-(CW(t)/OW|0)|0}var ep=64,tp=4194304;function jc(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function np(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,o=t.suspendedLanes,i=t.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=jc(s):(i&=a,i!==0&&(r=jc(i)))}else a=n&~o,a!==0?r=jc(a):i!==0&&(r=jc(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&o)&&(o=r&-r,i=e&-e,o>=i||o===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function Ac(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ao(e),t[e]=n}function IW(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Hc),NO=" ",zO=!1;function FO(t,e){switch(t){case"keyup":return i8.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function LO(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var al=!1;function s8(t,e){switch(t){case"compositionend":return LO(e);case"keypress":return e.which!==32?null:(zO=!0,NO);case"textInput":return t=e.data,t===NO&&zO?null:t;default:return null}}function l8(t,e){if(al)return t==="compositionend"||!mb&&FO(t,e)?(t=MO(),sp=db=Ki=null,al=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qO(n)}}function YO(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?YO(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function XO(){for(var t=window,e=Yf();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Yf(t.document)}return e}function wb(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function m8(t){var e=XO(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&YO(n.ownerDocument.documentElement,n)){if(r!==null&&wb(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!t.extend&&i>r&&(o=r,r=i,i=o),o=KO(n,i);var a=KO(n,r);o&&a&&(t.rangeCount!==1||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,sl=null,xb=null,Kc=null,kb=!1;function GO(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kb||sl==null||sl!==Yf(r)||(r=sl,"selectionStart"in r&&wb(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kc&&qc(Kc,r)||(Kc=r,r=gp(xb,"onSelect"),0hl||(t.current=jb[hl],jb[hl]=null,hl--)}function ot(t,e){hl++,jb[hl]=t.current,t.current=e}var Qi={},kn=Gi(Qi),Vn=Gi(!1),Ha=Qi;function fl(t,e){var n=t.type.contextTypes;if(!n)return Qi;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function qn(t){return t=t.childContextTypes,t!=null}function bp(){ct(Vn),ct(kn)}function dT(t,e,n){if(kn.current!==Qi)throw Error(q(168));ot(kn,e),ot(Vn,n)}function hT(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in e))throw Error(q(108,hW(t)||"Unknown",o));return mt({},n,r)}function wp(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Qi,Ha=kn.current,ot(kn,t),ot(Vn,Vn.current),!0}function fT(t,e,n){var r=t.stateNode;if(!r)throw Error(q(169));n?(t=hT(t,e,Ha),r.__reactInternalMemoizedMergedChildContext=t,ct(Vn),ct(kn),ot(kn,t)):ct(Vn),ot(Vn,n)}var li=null,xp=!1,Ab=!1;function pT(t){li===null?li=[t]:li.push(t)}function P8(t){xp=!0,pT(t)}function Ji(){if(!Ab&&li!==null){Ab=!0;var t=0,e=Xe;try{var n=li;for(Xe=1;t>=a,o-=a,ui=1<<32-ao(e)+o|n<O?(w=E,E=null):w=E.sibling;var T=d(m,E,y[O],x);if(T===null){E===null&&(E=w);break}t&&E&&T.alternate===null&&e(m,E),v=i(T,v,O),_===null?S=T:_.sibling=T,_=T,E=w}if(O===y.length)return n(m,E),ft&&Va(m,O),S;if(E===null){for(;OO?(w=E,E=null):w=E.sibling;var I=d(m,E,T.value,x);if(I===null){E===null&&(E=w);break}t&&E&&I.alternate===null&&e(m,E),v=i(I,v,O),_===null?S=I:_.sibling=I,_=I,E=w}if(T.done)return n(m,E),ft&&Va(m,O),S;if(E===null){for(;!T.done;O++,T=y.next())T=h(m,T.value,x),T!==null&&(v=i(T,v,O),_===null?S=T:_.sibling=T,_=T);return ft&&Va(m,O),S}for(E=r(m,E);!T.done;O++,T=y.next())T=f(E,m,O,T.value,x),T!==null&&(t&&T.alternate!==null&&E.delete(T.key===null?O:T.key),v=i(T,v,O),_===null?S=T:_.sibling=T,_=T);return t&&E.forEach(function(R){return e(m,R)}),ft&&Va(m,O),S}function b(m,v,y,x){if(typeof y=="object"&&y!==null&&y.type===el&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case qf:e:{for(var S=y.key,_=v;_!==null;){if(_.key===S){if(S=y.type,S===el){if(_.tag===7){n(m,_.sibling),v=o(_,y.props.children),v.return=m,m=v;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$i&&wT(S)===_.type){n(m,_.sibling),v=o(_,y.props),v.ref=Zc(m,_,y),v.return=m,m=v;break e}n(m,_);break}else e(m,_);_=_.sibling}y.type===el?(v=Za(y.props.children,m.mode,x,y.key),v.return=m,m=v):(x=Xp(y.type,y.key,y.props,null,m.mode,x),x.ref=Zc(m,v,y),x.return=m,m=x)}return a(m);case Zs:e:{for(_=y.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(m,v.sibling),v=o(v,y.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else e(m,v);v=v.sibling}v=I1(y,m.mode,x),v.return=m,m=v}return a(m);case $i:return _=y._init,b(m,v,_(y._payload),x)}if(Tc(y))return p(m,v,y,x);if(Cc(y))return g(m,v,y,x);Ep(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(m,v.sibling),v=o(v,y),v.return=m,m=v):(n(m,v),v=M1(y,m.mode,x),v.return=m,m=v),a(m)):n(m,v)}return b}var ml=xT(!0),kT=xT(!1),Cp=Gi(null),Op=null,yl=null,$b=null;function Wb(){$b=yl=Op=null}function Hb(t){var e=Cp.current;ct(Cp),t._currentValue=e}function Ub(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function bl(t,e){Op=t,$b=yl=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Kn=!0),t.firstContext=null)}function Ar(t){var e=t._currentValue;if($b!==t)if(t={context:t,memoizedValue:e,next:null},yl===null){if(Op===null)throw Error(q(308));yl=t,Op.dependencies={lanes:0,firstContext:t}}else yl=yl.next=t;return e}var qa=null;function Vb(t){qa===null?qa=[t]:qa.push(t)}function ST(t,e,n,r){var o=e.interleaved;return o===null?(n.next=n,Vb(e)):(n.next=o.next,o.next=n),e.interleaved=n,di(t,r)}function di(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Zi=!1;function qb(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _T(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function hi(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function ea(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Fe&2){var o=r.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),r.pending=e,di(t,n)}return o=r.interleaved,o===null?(e.next=e,Vb(r)):(e.next=o.next,o.next=e),r.interleaved=e,di(t,n)}function Tp(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ab(t,n)}}function ET(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=e:i=i.next=e}else o=i=e;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Pp(t,e,n,r){var o=t.updateQueue;Zi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var c=t.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(i!==null){var h=o.baseState;a=0,c=u=l=null,s=i;do{var d=s.lane,f=s.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=t,g=s;switch(d=e,f=n,g.tag){case 1:if(p=g.payload,typeof p=="function"){h=p.call(f,h,d);break e}h=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,d=typeof p=="function"?p.call(f,h,d):p,d==null)break e;h=mt({},h,d);break e;case 2:Zi=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,d=o.effects,d===null?o.effects=[s]:d.push(s))}else f={eventTime:f,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=f,l=h):c=c.next=f,a|=d;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(c===null&&(l=h),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,e=o.shared.interleaved,e!==null){o=e;do a|=o.lane,o=o.next;while(o!==e)}else i===null&&(o.shared.lanes=0);Xa|=a,t.lanes=a,t.memoizedState=h}}function CT(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var r=Qb.transition;Qb.transition={};try{t(!1),e()}finally{Xe=n,Qb.transition=r}}function VT(){return Nr().memoizedState}function D8(t,e,n){var r=oa(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qT(t))KT(e,n);else if(n=ST(t,e,n,r),n!==null){var o=zn();fo(n,t,r,o),YT(n,e,r)}}function j8(t,e,n){var r=oa(t),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qT(t))KT(e,o);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,so(s,a)){var l=e.interleaved;l===null?(o.next=o,Vb(e)):(o.next=l.next,l.next=o),e.interleaved=o;return}}catch{}finally{}n=ST(t,e,o,r),n!==null&&(o=zn(),fo(n,t,r,o),YT(n,e,r))}}function qT(t){var e=t.alternate;return t===bt||e!==null&&e===bt}function KT(t,e){rd=Rp=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function YT(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ab(t,n)}}var Ap={readContext:Ar,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useInsertionEffect:Sn,useLayoutEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useMutableSource:Sn,useSyncExternalStore:Sn,useId:Sn,unstable_isNewReconciler:!1},A8={readContext:Ar,useCallback:function(t,e){return Io().memoizedState=[t,e===void 0?null:e],t},useContext:Ar,useEffect:zT,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Dp(4194308,4,BT.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Dp(4194308,4,t,e)},useInsertionEffect:function(t,e){return Dp(4,2,t,e)},useMemo:function(t,e){var n=Io();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Io();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=D8.bind(null,bt,t),[r.memoizedState,t]},useRef:function(t){var e=Io();return t={current:t},e.memoizedState=t},useState:AT,useDebugValue:o1,useDeferredValue:function(t){return Io().memoizedState=t},useTransition:function(){var t=AT(!1),e=t[0];return t=R8.bind(null,t[1]),Io().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=bt,o=Io();if(ft){if(n===void 0)throw Error(q(407));n=n()}else{if(n=e(),Zt===null)throw Error(q(349));Ya&30||MT(r,e,n)}o.memoizedState=n;var i={value:n,getSnapshot:e};return o.queue=i,zT(RT.bind(null,r,i,t),[t]),r.flags|=2048,ad(9,IT.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=Io(),e=Zt.identifierPrefix;if(ft){var n=ci,r=ui;n=(r&~(1<<32-ao(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=od++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=a.createElement(n,{is:r.is}):(t=a.createElement(n),n==="select"&&(a=t,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):t=a.createElementNS(t,n),t[Po]=e,t[Qc]=r,p2(t,e,!1,!1),e.stateNode=t;e:{switch(a=G0(n,r),n){case"dialog":ut("cancel",t),ut("close",t),o=r;break;case"iframe":case"object":case"embed":ut("load",t),o=r;break;case"video":case"audio":for(o=0;o_l&&(e.flags|=128,r=!0,sd(i,!1),e.lanes=4194304)}else{if(!r)if(t=Mp(a),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),sd(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ft)return _n(e),null}else 2*At()-i.renderingStartTime>_l&&n!==1073741824&&(e.flags|=128,r=!0,sd(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(n=i.last,n!==null?n.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=At(),e.sibling=null,n=yt.current,ot(yt,r?n&1|2:n&1),e):(_n(e),null);case 22:case 23:return O1(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?yr&1073741824&&(_n(e),e.subtreeFlags&6&&(e.flags|=8192)):_n(e),null;case 24:return null;case 25:return null}throw Error(q(156,e.tag))}function H8(t,e){switch(zb(e),e.tag){case 1:return qn(e.type)&&bp(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return wl(),ct(Vn),ct(kn),Gb(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Yb(e),null;case 13:if(ct(yt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(q(340));vl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ct(yt),null;case 4:return wl(),null;case 10:return Hb(e.type._context),null;case 22:case 23:return O1(),null;case 24:return null;default:return null}}var Lp=!1,En=!1,U8=typeof WeakSet=="function"?WeakSet:Set,oe=null;function kl(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){St(t,e,r)}else n.current=null}function m2(t,e,n){try{n()}catch(r){St(t,e,r)}}var y2=!1;function V8(t,e){if(Tb=ip,t=XO(),wb(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,h=t,d=null;t:for(;;){for(var f;h!==n||o!==0&&h.nodeType!==3||(s=a+o),h!==i||r!==0&&h.nodeType!==3||(l=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(f=h.firstChild)!==null;)d=h,h=f;for(;;){if(h===t)break t;if(d===n&&++u===o&&(s=a),d===i&&++c===r&&(l=a),(f=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=f}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pb={focusedElem:t,selectionRange:n},ip=!1,oe=e;oe!==null;)if(e=oe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,oe=t;else for(;oe!==null;){e=oe;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,b=p.memoizedState,m=e.stateNode,v=m.getSnapshotBeforeUpdate(e.elementType===e.type?g:uo(e.type,g),b);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(x){St(e,e.return,x)}if(t=e.sibling,t!==null){t.return=e.return,oe=t;break}oe=e.return}return p=y2,y2=!1,p}function ld(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var i=o.destroy;o.destroy=void 0,i!==void 0&&m2(e,n,i)}o=o.next}while(o!==r)}}function Bp(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function v1(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function b2(t){var e=t.alternate;e!==null&&(t.alternate=null,b2(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Po],delete e[Qc],delete e[Db],delete e[O8],delete e[T8])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function w2(t){return t.tag===5||t.tag===3||t.tag===4}function x2(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||w2(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function m1(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=mp));else if(r!==4&&(t=t.child,t!==null))for(m1(t,e,n),t=t.sibling;t!==null;)m1(t,e,n),t=t.sibling}function y1(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(y1(t,e,n),t=t.sibling;t!==null;)y1(t,e,n),t=t.sibling}var gn=null,co=!1;function ta(t,e,n){for(n=n.child;n!==null;)k2(t,e,n),n=n.sibling}function k2(t,e,n){if(To&&typeof To.onCommitFiberUnmount=="function")try{To.onCommitFiberUnmount(Zf,n)}catch{}switch(n.tag){case 5:En||kl(n,e);case 6:var r=gn,o=co;gn=null,ta(t,e,n),gn=r,co=o,gn!==null&&(co?(t=gn,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):gn.removeChild(n.stateNode));break;case 18:gn!==null&&(co?(t=gn,n=n.stateNode,t.nodeType===8?Rb(t.parentNode,n):t.nodeType===1&&Rb(t,n),Bc(t)):Rb(gn,n.stateNode));break;case 4:r=gn,o=co,gn=n.stateNode.containerInfo,co=!0,ta(t,e,n),gn=r,co=o;break;case 0:case 11:case 14:case 15:if(!En&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&m2(n,e,a),o=o.next}while(o!==r)}ta(t,e,n);break;case 1:if(!En&&(kl(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){St(n,e,s)}ta(t,e,n);break;case 21:ta(t,e,n);break;case 22:n.mode&1?(En=(r=En)||n.memoizedState!==null,ta(t,e,n),En=r):ta(t,e,n);break;default:ta(t,e,n)}}function S2(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new U8),e.forEach(function(r){var o=eH.bind(null,t,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ho(t,e){var n=e.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=At()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*K8(r/1960))-r,10t?16:t,ra===null)var r=!1;else{if(t=ra,ra=null,Vp=0,Fe&6)throw Error(q(331));var o=Fe;for(Fe|=4,oe=t.current;oe!==null;){var i=oe,a=i.child;if(oe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lAt()-x1?Qa(t,0):w1|=n),Xn(t,e)}function N2(t,e){e===0&&(t.mode&1?(e=tp,tp<<=1,!(tp&130023424)&&(tp=4194304)):e=1);var n=zn();t=di(t,e),t!==null&&(Ac(t,e,n),Xn(t,n))}function Z8(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),N2(t,n)}function eH(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(q(314))}r!==null&&r.delete(e),N2(t,n)}var z2;z2=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Vn.current)Kn=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Kn=!1,$8(t,e,n);Kn=!!(t.flags&131072)}else Kn=!1,ft&&e.flags&1048576&&gT(e,Sp,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Fp(t,e),t=e.pendingProps;var o=fl(e,kn.current);bl(e,n),o=Zb(null,e,r,t,o,n);var i=e1();return e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,qn(r)?(i=!0,wp(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,qb(e),o.updater=Np,e.stateNode=o,o._reactInternals=e,a1(e,r,t,n),e=c1(null,e,r,!0,i,n)):(e.tag=0,ft&&i&&Nb(e),Nn(null,e,o,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Fp(t,e),t=e.pendingProps,o=r._init,r=o(r._payload),e.type=r,o=e.tag=nH(r),t=uo(r,t),o){case 0:e=u1(null,e,r,t,n);break e;case 1:e=l2(null,e,r,t,n);break e;case 11:e=r2(null,e,r,t,n);break e;case 14:e=o2(null,e,r,uo(r.type,t),n);break e}throw Error(q(306,r,""))}return e;case 0:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:uo(r,o),u1(t,e,r,o,n);case 1:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:uo(r,o),l2(t,e,r,o,n);case 3:e:{if(u2(e),t===null)throw Error(q(387));r=e.pendingProps,i=e.memoizedState,o=i.element,_T(t,e),Pp(e,r,null,n);var a=e.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){o=xl(Error(q(423)),e),e=c2(t,e,r,n,o);break e}else if(r!==o){o=xl(Error(q(424)),e),e=c2(t,e,r,n,o);break e}else for(mr=Xi(e.stateNode.containerInfo.firstChild),vr=e,ft=!0,lo=null,n=kT(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vl(),r===o){e=fi(t,e,n);break e}Nn(t,e,r,n)}e=e.child}return e;case 5:return OT(e),t===null&&Lb(e),r=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,a=o.children,Mb(r,o)?a=null:i!==null&&Mb(r,i)&&(e.flags|=32),s2(t,e),Nn(t,e,a,n),e.child;case 6:return t===null&&Lb(e),null;case 13:return d2(t,e,n);case 4:return Kb(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=ml(e,null,r,n):Nn(t,e,r,n),e.child;case 11:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:uo(r,o),r2(t,e,r,o,n);case 7:return Nn(t,e,e.pendingProps,n),e.child;case 8:return Nn(t,e,e.pendingProps.children,n),e.child;case 12:return Nn(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,o=e.pendingProps,i=e.memoizedProps,a=o.value,ot(Cp,r._currentValue),r._currentValue=a,i!==null)if(so(i.value,a)){if(i.children===o.children&&!Vn.current){e=fi(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=hi(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ub(i.return,n,e),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(q(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ub(a,n,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Nn(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,r=e.pendingProps.children,bl(e,n),o=Ar(o),r=r(o),e.flags|=1,Nn(t,e,r,n),e.child;case 14:return r=e.type,o=uo(r,e.pendingProps),o=uo(r.type,o),o2(t,e,r,o,n);case 15:return i2(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:uo(r,o),Fp(t,e),e.tag=1,qn(r)?(t=!0,wp(e)):t=!1,bl(e,n),GT(e,r,o),a1(e,r,o,n),c1(null,e,r,!0,t,n);case 19:return f2(t,e,n);case 22:return a2(t,e,n)}throw Error(q(156,e.tag))};function F2(t,e){return vO(t,e)}function tH(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fr(t,e,n,r){return new tH(t,e,n,r)}function P1(t){return t=t.prototype,!(!t||!t.isReactComponent)}function nH(t){if(typeof t=="function")return P1(t)?1:0;if(t!=null){if(t=t.$$typeof,t===N0)return 11;if(t===L0)return 14}return 2}function aa(t,e){var n=t.alternate;return n===null?(n=Fr(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Xp(t,e,n,r,o,i){var a=2;if(r=t,typeof t=="function")P1(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case el:return Za(n.children,o,i,e);case j0:a=8,o|=8;break;case A0:return t=Fr(12,n,e,o|2),t.elementType=A0,t.lanes=i,t;case z0:return t=Fr(13,n,e,o),t.elementType=z0,t.lanes=i,t;case F0:return t=Fr(19,n,e,o),t.elementType=F0,t.lanes=i,t;case qC:return Gp(n,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case UC:a=10;break e;case VC:a=9;break e;case N0:a=11;break e;case L0:a=14;break e;case $i:a=16,r=null;break e}throw Error(q(130,t==null?t:typeof t,""))}return e=Fr(a,n,e,o),e.elementType=t,e.type=r,e.lanes=i,e}function Za(t,e,n,r){return t=Fr(7,t,r,e),t.lanes=n,t}function Gp(t,e,n,r){return t=Fr(22,t,r,e),t.elementType=qC,t.lanes=n,t.stateNode={isHidden:!1},t}function M1(t,e,n){return t=Fr(6,t,null,e),t.lanes=n,t}function I1(t,e,n){return e=Fr(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function rH(t,e,n,r,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ib(0),this.expirationTimes=ib(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function R1(t,e,n,r,o,i,a,s,l){return t=new rH(t,e,n,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Fr(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qb(i),t}function oH(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(U2)}catch(t){console.error(t)}}U2(),FC.exports=fr;var N1=FC.exports;const rg=Bi(N1);var V2=N1;P0.createRoot=V2.createRoot,P0.hydrateRoot=V2.hydrateRoot;const uH=(...t)=>{console!=null&&console.warn&&(es(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t))},q2={},z1=(...t)=>{es(t[0])&&q2[t[0]]||(es(t[0])&&(q2[t[0]]=new Date),uH(...t))},K2=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},Y2=(t,e,n)=>{t.loadNamespaces(e,K2(t,n))},X2=(t,e,n,r)=>{es(n)&&(n=[n]),n.forEach(o=>{t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,K2(t,r))},cH=(t,e,n={})=>!e.languages||!e.languages.length?(z1("i18n.languages were undefined or empty",e.languages),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,o)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,t))return!1}}),es=t=>typeof t=="string",dH=t=>typeof t=="object"&&t!==null,hH=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,fH={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},pH=t=>fH[t];let F1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(hH,pH)};const gH=(t={})=>{F1={...F1,...t}},vH=()=>F1;let G2;const mH=t=>{G2=t},yH=()=>G2,bH={type:"3rdParty",init(t){gH(t.options.react),mH(t)}},wH=k.createContext();class xH{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const kH=(t,e)=>{const n=k.useRef();return k.useEffect(()=>{n.current=t},[t,e]),n.current},Q2=(t,e,n,r)=>t.getFixedT(e,n,r),SH=(t,e,n,r)=>k.useCallback(Q2(t,e,n,r),[t,e,n,r]),Do=(t,e={})=>{var x,S,_,E;const{i18n:n}=e,{i18n:r,defaultNS:o}=k.useContext(wH)||{},i=n||r||yH();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new xH),!i){z1("You will need to pass in an i18next instance by using initReactI18next");const O=(T,I)=>es(I)?I:dH(I)&&es(I.defaultValue)?I.defaultValue:Array.isArray(T)?T[T.length-1]:T,w=[O,{},!1];return w.t=O,w.i18n={},w.ready=!1,w}(x=i.options.react)!=null&&x.wait&&z1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...vH(),...i.options.react,...e},{useSuspense:s,keyPrefix:l}=a;let u=o||((S=i.options)==null?void 0:S.defaultNS);u=es(u)?[u]:u||["translation"],(E=(_=i.reportNamespaces).addUsedNamespaces)==null||E.call(_,u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(O=>cH(O,i,a)),h=SH(i,e.lng||null,a.nsMode==="fallback"?u:u[0],l),d=()=>h,f=()=>Q2(i,e.lng||null,a.nsMode==="fallback"?u:u[0],l),[p,g]=k.useState(d);let b=u.join();e.lng&&(b=`${e.lng}${b}`);const m=kH(b),v=k.useRef(!0);k.useEffect(()=>{const{bindI18n:O,bindI18nStore:w}=a;v.current=!0,!c&&!s&&(e.lng?X2(i,e.lng,u,()=>{v.current&&g(f)}):Y2(i,u,()=>{v.current&&g(f)})),c&&m&&m!==b&&v.current&&g(f);const T=()=>{v.current&&g(f)};return O&&(i==null||i.on(O,T)),w&&(i==null||i.store.on(w,T)),()=>{v.current=!1,i&&(O==null||O.split(" ").forEach(I=>i.off(I,T))),w&&i&&w.split(" ").forEach(I=>i.store.off(I,T))}},[i,b]),k.useEffect(()=>{v.current&&c&&g(d)},[i,l,c]);const y=[p,i,c];if(y.t=p,y.i18n=i,y.ready=c,c||!c&&!s)return y;throw new Promise(O=>{e.lng?X2(i,e.lng,u,()=>O()):Y2(i,u,()=>O())})};function og(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var L1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function we(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var J2={exports:{}},ig=function(t){return t&&t.Math===Math&&t},pt=ig(typeof globalThis=="object"&&globalThis)||ig(typeof window=="object"&&window)||ig(typeof self=="object"&&self)||ig(typeof L1=="object"&&L1)||function(){return this}()||L1||Function("return this")(),Ye=function(t){try{return!!t()}catch{return!0}},_H=Ye,fd=!_H(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),EH=fd,Z2=Function.prototype,eP=Z2.apply,tP=Z2.call,Cl=typeof Reflect=="object"&&Reflect.apply||(EH?tP.bind(eP):function(){return tP.apply(eP,arguments)}),nP=fd,rP=Function.prototype,B1=rP.call,CH=nP&&rP.bind.bind(B1,B1),dt=nP?CH:function(t){return function(){return B1.apply(t,arguments)}},oP=dt,OH=oP({}.toString),TH=oP("".slice),sa=function(t){return TH(OH(t),8,-1)},PH=sa,MH=dt,iP=function(t){if(PH(t)==="Function")return MH(t)},$1=typeof document=="object"&&document.all,IH=typeof $1>"u"&&$1!==void 0,aP={all:$1,IS_HTMLDDA:IH},sP=aP,RH=sP.all,_t=sP.IS_HTMLDDA?function(t){return typeof t=="function"||t===RH}:function(t){return typeof t=="function"},ts={},DH=Ye,en=!DH(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),jH=fd,ag=Function.prototype.call,tn=jH?ag.bind(ag):function(){return ag.apply(ag,arguments)},sg={},lP={}.propertyIsEnumerable,uP=Object.getOwnPropertyDescriptor,AH=uP&&!lP.call({1:2},1);sg.f=AH?function(t){var e=uP(this,t);return!!e&&e.enumerable}:lP;var ns=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},NH=dt,zH=Ye,FH=sa,W1=Object,LH=NH("".split),lg=zH(function(){return!W1("z").propertyIsEnumerable(0)})?function(t){return FH(t)==="String"?LH(t,""):W1(t)}:W1,Ol=function(t){return t==null},BH=Ol,$H=TypeError,H1=function(t){if(BH(t))throw new $H("Can't call method on "+t);return t},WH=lg,HH=H1,jo=function(t){return WH(HH(t))},cP=_t,dP=aP,UH=dP.all,mn=dP.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:cP(t)||t===UH}:function(t){return typeof t=="object"?t!==null:cP(t)},gt={},U1=gt,V1=pt,VH=_t,hP=function(t){return VH(t)?t:void 0},Fn=function(t,e){return arguments.length<2?hP(U1[t])||hP(V1[t]):U1[t]&&U1[t][e]||V1[t]&&V1[t][e]},qH=dt,$t=qH({}.isPrototypeOf),la=typeof navigator<"u"&&String(navigator.userAgent)||"",fP=pt,q1=la,pP=fP.process,gP=fP.Deno,vP=pP&&pP.versions||gP&&gP.version,mP=vP&&vP.v8,po,ug;mP&&(po=mP.split("."),ug=po[0]>0&&po[0]<4?1:+(po[0]+po[1])),!ug&&q1&&(po=q1.match(/Edge\/(\d+)/),(!po||po[1]>=74)&&(po=q1.match(/Chrome\/(\d+)/),po&&(ug=+po[1])));var Tl=ug,yP=Tl,KH=Ye,YH=pt,XH=YH.String,Pl=!!Object.getOwnPropertySymbols&&!KH(function(){var t=Symbol("symbol detection");return!XH(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yP&&yP<41}),GH=Pl,bP=GH&&!Symbol.sham&&typeof Symbol.iterator=="symbol",QH=Fn,JH=_t,ZH=$t,e9=bP,t9=Object,pd=e9?function(t){return typeof t=="symbol"}:function(t){var e=QH("Symbol");return JH(e)&&ZH(e.prototype,t9(t))},n9=String,Ml=function(t){try{return n9(t)}catch{return"Object"}},r9=_t,o9=Ml,i9=TypeError,Gn=function(t){if(r9(t))return t;throw new i9(o9(t)+" is not a function")},a9=Gn,s9=Ol,K1=function(t,e){var n=t[e];return s9(n)?void 0:a9(n)},Y1=tn,X1=_t,G1=mn,l9=TypeError,u9=function(t,e){var n,r;if(e==="string"&&X1(n=t.toString)&&!G1(r=Y1(n,t))||X1(n=t.valueOf)&&!G1(r=Y1(n,t))||e!=="string"&&X1(n=t.toString)&&!G1(r=Y1(n,t)))return r;throw new l9("Can't convert object to primitive value")},wP={exports:{}},c9=!0,xP=pt,d9=Object.defineProperty,h9=function(t,e){try{d9(xP,t,{value:e,configurable:!0,writable:!0})}catch{xP[t]=e}return e},f9=pt,p9=h9,kP="__core-js_shared__",g9=f9[kP]||p9(kP,{}),Q1=g9,SP=Q1;(wP.exports=function(t,e){return SP[t]||(SP[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Il=wP.exports,v9=H1,m9=Object,Qn=function(t){return m9(v9(t))},y9=dt,b9=Qn,w9=y9({}.hasOwnProperty),Wt=Object.hasOwn||function(t,e){return w9(b9(t),e)},x9=dt,k9=0,S9=Math.random(),_9=x9(1 .toString),cg=function(t){return"Symbol("+(t===void 0?"":t)+")_"+_9(++k9+S9,36)},E9=pt,C9=Il,_P=Wt,O9=cg,T9=Pl,P9=bP,Rl=E9.Symbol,J1=C9("wks"),M9=P9?Rl.for||Rl:Rl&&Rl.withoutSetter||O9,wt=function(t){return _P(J1,t)||(J1[t]=T9&&_P(Rl,t)?Rl[t]:M9("Symbol."+t)),J1[t]},I9=tn,EP=mn,CP=pd,R9=K1,D9=u9,j9=wt,A9=TypeError,N9=j9("toPrimitive"),z9=function(t,e){if(!EP(t)||CP(t))return t;var n=R9(t,N9),r;if(n){if(e===void 0&&(e="default"),r=I9(n,t,e),!EP(r)||CP(r))return r;throw new A9("Can't convert object to primitive value")}return e===void 0&&(e="number"),D9(t,e)},F9=z9,L9=pd,dg=function(t){var e=F9(t,"string");return L9(e)?e:e+""},B9=pt,OP=mn,Z1=B9.document,$9=OP(Z1)&&OP(Z1.createElement),ew=function(t){return $9?Z1.createElement(t):{}},W9=en,H9=Ye,U9=ew,TP=!W9&&!H9(function(){return Object.defineProperty(U9("div"),"a",{get:function(){return 7}}).a!==7}),V9=en,q9=tn,K9=sg,Y9=ns,X9=jo,G9=dg,Q9=Wt,J9=TP,PP=Object.getOwnPropertyDescriptor;ts.f=V9?PP:function(t,e){if(t=X9(t),e=G9(e),J9)try{return PP(t,e)}catch{}if(Q9(t,e))return Y9(!q9(K9.f,t,e),t[e])};var Z9=Ye,e7=_t,t7=/#|\.prototype\./,gd=function(t,e){var n=r7[n7(t)];return n===i7?!0:n===o7?!1:e7(e)?Z9(e):!!e},n7=gd.normalize=function(t){return String(t).replace(t7,".").toLowerCase()},r7=gd.data={},o7=gd.NATIVE="N",i7=gd.POLYFILL="P",MP=gd,IP=iP,a7=Gn,s7=fd,l7=IP(IP.bind),ua=function(t,e){return a7(t),e===void 0?t:s7?l7(t,e):function(){return t.apply(e,arguments)}},Jn={},u7=en,c7=Ye,RP=u7&&c7(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),d7=mn,h7=String,f7=TypeError,br=function(t){if(d7(t))return t;throw new f7(h7(t)+" is not an object")},p7=en,g7=TP,v7=RP,hg=br,DP=dg,m7=TypeError,tw=Object.defineProperty,y7=Object.getOwnPropertyDescriptor,nw="enumerable",rw="configurable",ow="writable";Jn.f=p7?v7?function(t,e,n){if(hg(t),e=DP(e),hg(n),typeof t=="function"&&e==="prototype"&&"value"in n&&ow in n&&!n[ow]){var r=y7(t,e);r&&r[ow]&&(t[e]=n.value,n={configurable:rw in n?n[rw]:r[rw],enumerable:nw in n?n[nw]:r[nw],writable:!1})}return tw(t,e,n)}:tw:function(t,e,n){if(hg(t),e=DP(e),hg(n),g7)try{return tw(t,e,n)}catch{}if("get"in n||"set"in n)throw new m7("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var b7=en,w7=Jn,x7=ns,gi=b7?function(t,e,n){return w7.f(t,e,x7(1,n))}:function(t,e,n){return t[e]=n,t},fg=pt,k7=Cl,S7=iP,_7=_t,E7=ts.f,C7=MP,Dl=gt,O7=ua,jl=gi,jP=Wt,T7=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return k7(t,this,arguments)};return e.prototype=t.prototype,e},me=function(t,e){var n=t.target,r=t.global,o=t.stat,i=t.proto,a=r?fg:o?fg[n]:(fg[n]||{}).prototype,s=r?Dl:Dl[n]||jl(Dl,n,{})[n],l=s.prototype,u,c,h,d,f,p,g,b,m;for(d in e)u=C7(r?d:n+(o?".":"#")+d,t.forced),c=!u&&a&&jP(a,d),p=s[d],c&&(t.dontCallGetSet?(m=E7(a,d),g=m&&m.value):g=a[d]),f=c&&g?g:e[d],!(c&&typeof p==typeof f)&&(t.bind&&c?b=O7(f,fg):t.wrap&&c?b=T7(f):i&&_7(f)?b=S7(f):b=f,(t.sham||f&&f.sham||p&&p.sham)&&jl(b,"sham",!0),jl(s,d,b),i&&(h=n+"Prototype",jP(Dl,h)||jl(Dl,h,{}),jl(Dl[h],d,f),t.real&&l&&(u||!l[d])&&jl(l,d,f)))},P7=me,M7=en,AP=Jn.f;P7({target:"Object",stat:!0,forced:Object.defineProperty!==AP,sham:!M7},{defineProperty:AP});var I7=gt,NP=I7.Object,R7=J2.exports=function(t,e,n){return NP.defineProperty(t,e,n)};NP.defineProperty.sham&&(R7.sham=!0);var D7=J2.exports,j7=D7,zP=j7,A7=zP,N7=A7,z7=N7,F7=z7,FP=F7,pg=we(FP),L7=sa,ca=Array.isArray||function(t){return L7(t)==="Array"},B7=Math.ceil,$7=Math.floor,W7=Math.trunc||function(t){var e=+t;return(e>0?$7:B7)(e)},H7=W7,gg=function(t){var e=+t;return e!==e||e===0?0:H7(e)},U7=gg,V7=Math.min,q7=function(t){return t>0?V7(U7(t),9007199254740991):0},K7=q7,wr=function(t){return K7(t.length)},Y7=TypeError,X7=9007199254740991,vg=function(t){if(t>X7)throw Y7("Maximum allowed index exceeded");return t},G7=dg,Q7=Jn,J7=ns,Al=function(t,e,n){var r=G7(e);r in t?Q7.f(t,r,J7(0,n)):t[r]=n},Z7=wt,eU=Z7("toStringTag"),LP={};LP[eU]="z";var iw=String(LP)==="[object z]",tU=iw,nU=_t,mg=sa,rU=wt,oU=rU("toStringTag"),iU=Object,aU=mg(function(){return arguments}())==="Arguments",sU=function(t,e){try{return t[e]}catch{}},vi=tU?mg:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=sU(e=iU(t),oU))=="string"?n:aU?mg(e):(r=mg(e))==="Object"&&nU(e.callee)?"Arguments":r},lU=dt,uU=_t,aw=Q1,cU=lU(Function.toString);uU(aw.inspectSource)||(aw.inspectSource=function(t){return cU(t)});var BP=aw.inspectSource,dU=dt,hU=Ye,$P=_t,fU=vi,pU=Fn,gU=BP,WP=function(){},vU=[],HP=pU("Reflect","construct"),sw=/^\s*(?:class|function)\b/,mU=dU(sw.exec),yU=!sw.test(WP),vd=function(t){if(!$P(t))return!1;try{return HP(WP,vU,t),!0}catch{return!1}},UP=function(t){if(!$P(t))return!1;switch(fU(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yU||!!mU(sw,gU(t))}catch{return!0}};UP.sham=!0;var yg=!HP||hU(function(){var t;return vd(vd.call)||!vd(Object)||!vd(function(){t=!0})||t})?UP:vd,VP=ca,bU=yg,wU=mn,xU=wt,kU=xU("species"),qP=Array,SU=function(t){var e;return VP(t)&&(e=t.constructor,bU(e)&&(e===qP||VP(e.prototype))?e=void 0:wU(e)&&(e=e[kU],e===null&&(e=void 0))),e===void 0?qP:e},_U=SU,bg=function(t,e){return new(_U(t))(e===0?0:e)},EU=Ye,CU=wt,OU=Tl,TU=CU("species"),md=function(t){return OU>=51||!EU(function(){var e=[],n=e.constructor={};return n[TU]=function(){return{foo:1}},e[t](Boolean).foo!==1})},PU=me,MU=Ye,IU=ca,RU=mn,DU=Qn,jU=wr,KP=vg,YP=Al,AU=bg,NU=md,zU=wt,FU=Tl,XP=zU("isConcatSpreadable"),LU=FU>=51||!MU(function(){var t=[];return t[XP]=!1,t.concat()[0]!==t}),BU=function(t){if(!RU(t))return!1;var e=t[XP];return e!==void 0?!!e:IU(t)},$U=!LU||!NU("concat");PU({target:"Array",proto:!0,arity:1,forced:$U},{concat:function(t){var e=DU(this),n=AU(e,0),r=0,o,i,a,s,l;for(o=-1,a=arguments.length;oa;)if(s=o[a++],s!==s)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},GU={includes:GP(!0),indexOf:GP(!1)},yd={},QU=dt,lw=Wt,JU=jo,ZU=GU.indexOf,eV=yd,QP=QU([].push),JP=function(t,e){var n=JU(t),r=0,o=[],i;for(i in n)!lw(eV,i)&&lw(n,i)&&QP(o,i);for(;e.length>r;)lw(n,i=e[r++])&&(~ZU(o,i)||QP(o,i));return o},uw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tV=JP,nV=uw,kg=Object.keys||function(t){return tV(t,nV)},rV=en,oV=RP,iV=Jn,aV=br,sV=jo,lV=kg;wg.f=rV&&!oV?Object.defineProperties:function(t,e){aV(t);for(var n=sV(e),r=lV(e),o=r.length,i=0,a;o>i;)iV.f(t,a=r[i++],n[a]);return t};var uV=Fn,ZP=uV("document","documentElement"),cV=Il,dV=cg,eM=cV("keys"),Sg=function(t){return eM[t]||(eM[t]=dV(t))},hV=br,fV=wg,tM=uw,pV=yd,gV=ZP,vV=ew,mV=Sg,nM=">",rM="<",cw="prototype",dw="script",oM=mV("IE_PROTO"),hw=function(){},iM=function(t){return rM+dw+nM+t+rM+"/"+dw+nM},aM=function(t){t.write(iM("")),t.close();var e=t.parentWindow.Object;return t=null,e},yV=function(){var t=vV("iframe"),e="java"+dw+":",n;return t.style.display="none",gV.appendChild(t),t.src=String(e),n=t.contentWindow.document,n.open(),n.write(iM("document.F=Object")),n.close(),n.F},_g,Eg=function(){try{_g=new ActiveXObject("htmlfile")}catch{}Eg=typeof document<"u"?document.domain&&_g?aM(_g):yV():aM(_g);for(var t=tM.length;t--;)delete Eg[cw][tM[t]];return Eg()};pV[oM]=!0;var os=Object.create||function(t,e){var n;return t!==null?(hw[cw]=hV(t),n=new hw,hw[cw]=null,n[oM]=t):n=Eg(),e===void 0?n:fV.f(n,e)},bd={},bV=JP,wV=uw,xV=wV.concat("length","prototype");bd.f=Object.getOwnPropertyNames||function(t){return bV(t,xV)};var fw={},sM=xg,kV=wr,SV=Al,_V=Array,EV=Math.max,lM=function(t,e,n){for(var r=kV(t),o=sM(e,r),i=sM(n===void 0?r:n,r),a=_V(EV(i-o,0)),s=0;ob;b++)if((s||b in f)&&(y=f[b],x=p(y,b,d),t))if(e)v[b]=x;else if(x)switch(t){case 3:return!0;case 5:return y;case 6:return b;case 2:mM(v,y)}else switch(t){case 4:return!1;case 7:mM(v,y)}return i?-1:r||o?o:v}},Ll={forEach:da(0),map:da(1),filter:da(2),some:da(3),every:da(4),find:da(5),findIndex:da(6),filterReject:da(7)},Tg=me,Sd=pt,yw=tn,hq=dt,Bl=en,$l=Pl,fq=Ye,nn=Wt,pq=$t,bw=br,Pg=jo,ww=dg,gq=rs,xw=ns,_d=os,yM=kg,vq=bd,bM=fw,mq=wd,wM=ts,xM=Jn,yq=wg,kM=sg,SM=Nl,bq=pw,kw=Il,wq=Sg,_M=yd,EM=cg,xq=wt,kq=xd,Sq=Et,_q=hM,Eq=is,CM=Fl,Mg=Ll.forEach,Zn=wq("hidden"),Ig="Symbol",Ed="prototype",Cq=CM.set,OM=CM.getterFor(Ig),go=Object[Ed],as=Sd.Symbol,Cd=as&&as[Ed],Oq=Sd.RangeError,Tq=Sd.TypeError,Sw=Sd.QObject,TM=wM.f,ss=xM.f,PM=bM.f,Pq=kM.f,MM=hq([].push),mi=kw("symbols"),Od=kw("op-symbols"),Mq=kw("wks"),_w=!Sw||!Sw[Ed]||!Sw[Ed].findChild,IM=function(t,e,n){var r=TM(go,e);r&&delete go[e],ss(t,e,n),r&&t!==go&&ss(go,e,r)},Ew=Bl&&fq(function(){return _d(ss({},"a",{get:function(){return ss(this,"a",{value:7}).a}})).a!==7})?IM:ss,Cw=function(t,e){var n=mi[t]=_d(Cd);return Cq(n,{type:Ig,tag:t,description:e}),Bl||(n.description=e),n},Rg=function(t,e,n){t===go&&Rg(Od,e,n),bw(t);var r=ww(e);return bw(n),nn(mi,r)?(n.enumerable?(nn(t,Zn)&&t[Zn][r]&&(t[Zn][r]=!1),n=_d(n,{enumerable:xw(0,!1)})):(nn(t,Zn)||ss(t,Zn,xw(1,{})),t[Zn][r]=!0),Ew(t,r,n)):ss(t,r,n)},Ow=function(t,e){bw(t);var n=Pg(e),r=yM(n).concat(AM(n));return Mg(r,function(o){(!Bl||yw(RM,n,o))&&Rg(t,o,n[o])}),t},Iq=function(t,e){return e===void 0?_d(t):Ow(_d(t),e)},RM=function(t){var e=ww(t),n=yw(Pq,this,e);return this===go&&nn(mi,e)&&!nn(Od,e)?!1:n||!nn(this,e)||!nn(mi,e)||nn(this,Zn)&&this[Zn][e]?n:!0},DM=function(t,e){var n=Pg(t),r=ww(e);if(!(n===go&&nn(mi,r)&&!nn(Od,r))){var o=TM(n,r);return o&&nn(mi,r)&&!(nn(n,Zn)&&n[Zn][r])&&(o.enumerable=!0),o}},jM=function(t){var e=PM(Pg(t)),n=[];return Mg(e,function(r){!nn(mi,r)&&!nn(_M,r)&&MM(n,r)}),n},AM=function(t){var e=t===go,n=PM(e?Od:Pg(t)),r=[];return Mg(n,function(o){nn(mi,o)&&(!e||nn(go,o))&&MM(r,mi[o])}),r};$l||(as=function(){if(pq(Cd,this))throw new Tq("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:gq(arguments[0]),e=EM(t),n=function(r){var o=this===void 0?Sd:this;o===go&&yw(n,Od,r),nn(o,Zn)&&nn(o[Zn],e)&&(o[Zn][e]=!1);var i=xw(1,r);try{Ew(o,e,i)}catch(a){if(!(a instanceof Oq))throw a;IM(o,e,i)}};return Bl&&_w&&Ew(go,e,{configurable:!0,set:n}),Cw(e,t)},Cd=as[Ed],SM(Cd,"toString",function(){return OM(this).tag}),SM(as,"withoutSetter",function(t){return Cw(EM(t),t)}),kM.f=RM,xM.f=Rg,yq.f=Ow,wM.f=DM,vq.f=bM.f=jM,mq.f=AM,kq.f=function(t){return Cw(xq(t),t)},Bl&&bq(Cd,"description",{configurable:!0,get:function(){return OM(this).description}})),Tg({global:!0,constructor:!0,wrap:!0,forced:!$l,sham:!$l},{Symbol:as}),Mg(yM(Mq),function(t){Sq(t)}),Tg({target:Ig,stat:!0,forced:!$l},{useSetter:function(){_w=!0},useSimple:function(){_w=!1}}),Tg({target:"Object",stat:!0,forced:!$l,sham:!Bl},{create:Iq,defineProperty:Rg,defineProperties:Ow,getOwnPropertyDescriptor:DM}),Tg({target:"Object",stat:!0,forced:!$l},{getOwnPropertyNames:jM}),_q(),Eq(as,Ig),_M[Zn]=!0;var Rq=Pl,NM=Rq&&!!Symbol.for&&!!Symbol.keyFor,Dq=me,jq=Fn,Aq=Wt,Nq=rs,zM=Il,zq=NM,Tw=zM("string-to-symbol-registry"),Fq=zM("symbol-to-string-registry");Dq({target:"Symbol",stat:!0,forced:!zq},{for:function(t){var e=Nq(t);if(Aq(Tw,e))return Tw[e];var n=jq("Symbol")(e);return Tw[e]=n,Fq[n]=e,n}});var Lq=me,Bq=Wt,$q=pd,Wq=Ml,Hq=Il,Uq=NM,FM=Hq("symbol-to-string-registry");Lq({target:"Symbol",stat:!0,forced:!Uq},{keyFor:function(t){if(!$q(t))throw new TypeError(Wq(t)+" is not a symbol");if(Bq(FM,t))return FM[t]}});var Vq=dt,Td=Vq([].slice),qq=dt,LM=ca,Kq=_t,BM=sa,Yq=rs,$M=qq([].push),Xq=function(t){if(Kq(t))return t;if(LM(t)){for(var e=t.length,n=[],r=0;r=e.length)return t.target=void 0,zg(void 0,!0);switch(t.kind){case"keys":return zg(n,!1);case"values":return zg(e[n],!1)}return zg([n,e[n]],!1)},"values"),dI.Arguments=dI.Array;var TY={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},PY=TY,MY=pt,IY=vi,RY=gi,pI=Wl,DY=wt,gI=DY("toStringTag");for(var Fw in PY){var vI=MY[Fw],Lw=vI&&vI.prototype;Lw&&IY(Lw)!==gI&&RY(Lw,gI,Fw),pI[Fw]=pI.Array}var jY=IK,mI=jY,AY=wt,NY=Jn.f,yI=AY("metadata"),bI=Function.prototype;bI[yI]===void 0&&NY(bI,yI,{value:null});var zY=Et;zY("asyncDispose");var FY=Et;FY("dispose");var LY=Et;LY("metadata");var BY=mI,$Y=BY,WY=Fn,HY=dt,Bw=WY("Symbol"),UY=Bw.keyFor,VY=HY(Bw.prototype.valueOf),wI=Bw.isRegisteredSymbol||function(t){try{return UY(VY(t))!==void 0}catch{return!1}},qY=me,KY=wI;qY({target:"Symbol",stat:!0},{isRegisteredSymbol:KY});for(var YY=Il,xI=Fn,XY=dt,GY=pd,QY=wt,Fg=xI("Symbol"),kI=Fg.isWellKnownSymbol,SI=xI("Object","getOwnPropertyNames"),JY=XY(Fg.prototype.valueOf),_I=YY("wks"),$w=0,EI=SI(Fg),ZY=EI.length;$w=i?t?"":void 0:(a=TI(r,o),a<55296||a>56319||o+1===i||(s=TI(r,o+1))<56320||s>57343?t?vX(r,o):a:t?mX(r,o,o+2):(a-55296<<10)+(s-56320)+65536)}},yX={codeAt:PI(!1),charAt:PI(!0)},bX=yX.charAt,wX=rs,MI=Fl,xX=Nw,II=zw,RI="String Iterator",kX=MI.set,SX=MI.getterFor(RI);xX(String,"String",function(t){kX(this,{type:RI,string:wX(t),index:0})},function(){var t=SX(this),e=t.string,n=t.index,r;return n>=e.length?II(void 0,!0):(r=bX(e,n),t.index+=r.length,II(r,!1))});var _X=xd,EX=_X.f("iterator"),CX=EX,DI=CX,OX=DI,TX=OX,PX=TX,MX=PX,jI=MX,IX=we(jI);function Ul(t){"@babel/helpers - typeof";return Ul=typeof Hl=="function"&&typeof IX=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Hl=="function"&&e.constructor===Hl&&e!==Hl.prototype?"symbol":typeof e},Ul(t)}var RX=xd,DX=RX.f("toPrimitive"),jX=DX,AX=jX,NX=AX,zX=NX,FX=zX,LX=FX,BX=LX,$X=we(BX);function WX(t,e){if(Ul(t)!=="object"||t===null)return t;var n=t[$X];if(n!==void 0){var r=n.call(t,e||"default");if(Ul(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function AI(t){var e=WX(t,"string");return Ul(e)==="symbol"?e:String(e)}function NI(t,e){for(var n=0;n=0:s>l;l+=u)l in a&&(o=n(o,a[l],l,i));return o}},dG={left:UI(!1),right:UI(!0)},hG=Ye,Bg=function(t,e){var n=[][t];return!!n&&hG(function(){n.call(null,e||function(){return 1},1)})},fG=pt,pG=sa,Md=pG(fG.process)==="process",gG=me,vG=dG.left,mG=Bg,VI=Tl,yG=Md,bG=!yG&&VI>79&&VI<83,wG=bG||!mG("reduce");gG({target:"Array",proto:!0,forced:wG},{reduce:function(t){var e=arguments.length;return vG(this,t,e,e>1?arguments[1]:void 0)}});var xG=Cn,kG=xG("Array","reduce"),SG=$t,_G=kG,qw=Array.prototype,EG=function(t){var e=t.reduce;return t===qw||SG(qw,t)&&e===qw.reduce?_G:e},CG=EG,OG=CG,TG=OG,PG=we(TG),MG=me,IG=Ll.filter,RG=md,DG=RG("filter");MG({target:"Array",proto:!0,forced:!DG},{filter:function(t){return IG(this,t,arguments.length>1?arguments[1]:void 0)}});var jG=Cn,AG=jG("Array","filter"),NG=$t,zG=AG,Kw=Array.prototype,FG=function(t){var e=t.filter;return t===Kw||NG(Kw,t)&&e===Kw.filter?zG:e},LG=FG,BG=LG,$G=BG,Vl=we($G),WG=me,HG=Ll.map,UG=md,VG=UG("map");WG({target:"Array",proto:!0,forced:!VG},{map:function(t){return HG(this,t,arguments.length>1?arguments[1]:void 0)}});var qG=Cn,KG=qG("Array","map"),YG=$t,XG=KG,Yw=Array.prototype,GG=function(t){var e=t.map;return t===Yw||YG(Yw,t)&&e===Yw.map?XG:e},QG=GG,JG=QG,ZG=JG,vo=we(ZG),eQ=ca,tQ=wr,nQ=vg,rQ=ua,qI=function(t,e,n,r,o,i,a,s){for(var l=o,u=0,c=a?rQ(a,s):!1,h,d;u0&&eQ(h)?(d=tQ(h),l=qI(t,e,h,d,l,i-1)-1):(nQ(l+1),t[l]=h),l++),u++;return l},oQ=qI,iQ=me,aQ=oQ,sQ=Gn,lQ=Qn,uQ=wr,cQ=bg;iQ({target:"Array",proto:!0},{flatMap:function(t){var e=lQ(this),n=uQ(e),r;return sQ(t),r=cQ(e,0),r.length=aQ(r,e,e,n,0,1,t,arguments.length>1?arguments[1]:void 0),r}});var dQ=Cn;dQ("Array","flatMap");var hQ=tn,KI=br,fQ=K1,YI=function(t,e,n){var r,o;KI(t);try{if(r=fQ(t,"return"),!r){if(e==="throw")throw n;return n}r=hQ(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return KI(r),n},pQ=br,gQ=YI,vQ=function(t,e,n,r){try{return r?e(pQ(n)[0],n[1]):e(n)}catch(o){gQ(t,"throw",o)}},mQ=wt,yQ=Wl,bQ=mQ("iterator"),wQ=Array.prototype,XI=function(t){return t!==void 0&&(yQ.Array===t||wQ[bQ]===t)},xQ=vi,GI=K1,kQ=Ol,SQ=Wl,_Q=wt,EQ=_Q("iterator"),$g=function(t){if(!kQ(t))return GI(t,EQ)||GI(t,"@@iterator")||SQ[xQ(t)]},CQ=tn,OQ=Gn,TQ=br,PQ=Ml,MQ=$g,IQ=TypeError,Xw=function(t,e){var n=arguments.length<2?MQ(t):e;if(OQ(n))return TQ(CQ(n,t));throw new IQ(PQ(t)+" is not iterable")},RQ=ua,DQ=tn,jQ=Qn,AQ=vQ,NQ=XI,zQ=yg,FQ=wr,QI=Al,LQ=Xw,BQ=$g,JI=Array,$Q=function(t){var e=jQ(t),n=zQ(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=RQ(o,r>2?arguments[2]:void 0));var a=BQ(e),s=0,l,u,c,h,d,f;if(a&&!(this===JI&&NQ(a)))for(h=LQ(e,a),d=h.next,u=n?new this:[];!(c=DQ(d,h)).done;s++)f=i?AQ(h,o,[c.value,s],!0):c.value,QI(u,s,f);else for(l=FQ(e),u=n?new this(l):JI(l);l>s;s++)f=i?o(e[s],s):e[s],QI(u,s,f);return u.length=s,u},WQ=wt,ZI=WQ("iterator"),eR=!1;try{var HQ=0,tR={next:function(){return{done:!!HQ++}},return:function(){eR=!0}};tR[ZI]=function(){return this},Array.from(tR,function(){throw 2})}catch{}var nR=function(t,e){try{if(!e&&!eR)return!1}catch{return!1}var n=!1;try{var r={};r[ZI]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},UQ=me,VQ=$Q,qQ=nR,KQ=!qQ(function(t){Array.from(t)});UQ({target:"Array",stat:!0,forced:KQ},{from:VQ});var YQ=gt,XQ=YQ.Array.from,GQ=XQ,rR=GQ,QQ=rR,Gw=we(QQ),JQ=$g,ZQ=JQ,eJ=ZQ,tJ=eJ,nJ=tJ,rJ=nJ,oJ=rJ,iJ=oJ,oR=iJ,iR=we(oR),aJ=oR,Qw=we(aJ),sJ=me,lJ=ca;sJ({target:"Array",stat:!0},{isArray:lJ});var uJ=gt,cJ=uJ.Array.isArray,dJ=cJ,aR=dJ,hJ=aR,fJ=hJ,pJ=fJ,gJ=pJ,vJ=gJ,sR=we(vJ);function mJ(t){if(sR(t))return t}var yJ=en,bJ=ca,wJ=TypeError,xJ=Object.getOwnPropertyDescriptor,kJ=yJ&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),lR=kJ?function(t,e){if(bJ(t)&&!xJ(t,"length").writable)throw new wJ("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},SJ=me,_J=Qn,EJ=wr,CJ=lR,OJ=vg,TJ=Ye,PJ=TJ(function(){return[].push.call({length:4294967296},1)!==4294967297}),MJ=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},IJ=PJ||!MJ();SJ({target:"Array",proto:!0,arity:1,forced:IJ},{push:function(t){var e=_J(this),n=EJ(e),r=arguments.length;OJ(n+r);for(var o=0;ot.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)},see=me,mR=aee;see({target:"Array",proto:!0,forced:[].forEach!==mR},{forEach:mR});var lee=Cn,uee=lee("Array","forEach"),cee=uee,dee=cee,hee=vi,fee=Wt,pee=$t,gee=dee,ix=Array.prototype,vee={DOMTokenList:!0,NodeList:!0},yR=function(t){var e=t.forEach;return t===ix||pee(ix,t)&&e===ix.forEach||fee(vee,hee(t))?gee:e},mee=yR,ls=we(mee),yee=me,bee=dt,wee=ca,xee=bee([].reverse),bR=[1,2];yee({target:"Array",proto:!0,forced:String(bR)===String(bR.reverse())},{reverse:function(){return wee(this)&&(this.length=this.length),xee(this)}});var kee=Cn,See=kee("Array","reverse"),_ee=$t,Eee=See,ax=Array.prototype,Cee=function(t){var e=t.reverse;return t===ax||_ee(ax,t)&&e===ax.reverse?Eee:e},Oee=Cee,wR=Oee,Tee=wR,Pee=we(Tee),xR=Ml,Mee=TypeError,kR=function(t,e){if(!delete t[e])throw new Mee("Cannot delete property "+xR(e)+" of "+xR(t))},Iee=me,Ree=Qn,Dee=xg,jee=gg,Aee=wr,Nee=lR,zee=vg,Fee=bg,Lee=Al,sx=kR,Bee=md,$ee=Bee("splice"),Wee=Math.max,Hee=Math.min;Iee({target:"Array",proto:!0,forced:!$ee},{splice:function(t,e){var n=Ree(this),r=Aee(n),o=Dee(t,r),i=arguments.length,a,s,l,u,c,h;for(i===0?a=s=0:i===1?(a=0,s=r-o):(a=i-2,s=Hee(Wee(jee(e),0),r-o)),zee(r+a-s),l=Fee(n,s),u=0;ur-s+a;u--)sx(n,u-1)}else if(a>s)for(u=r-s;u>o;u--)c=u+s-1,h=u+a-1,c in n?n[h]=n[c]:sx(n,h);for(u=0;uo;)for(var s=ote(arguments[o++]),l=i?ite(ux(s),i(s)):ux(s),u=l.length,c=0,h;u>c;)h=l[c++],(!_R||Zee(a,s,h))&&(n[h]=s[h]);return n}:ql,ste=me,CR=ate;ste({target:"Object",stat:!0,arity:2,forced:Object.assign!==CR},{assign:CR});var lte=gt,ute=lte.Object.assign,cte=ute,dte=cte,hte=dte,fte=we(hte),pte=me,gte=Ye,vte=Qn,OR=jg,mte=tI,yte=gte(function(){OR(1)});pte({target:"Object",stat:!0,forced:yte,sham:!mte},{getPrototypeOf:function(t){return OR(vte(t))}});var bte=gt,wte=bte.Object.getPrototypeOf,xte=wte,kte=xte,Ste=me,_te=en,Ete=os;Ste({target:"Object",stat:!0,sham:!_te},{create:Ete});var Cte=gt,Ote=Cte.Object,Tte=function(t,e){return Ote.create(t,e)},Pte=Tte,TR=Pte,Mte=TR,Ite=we(Mte),cx=gt,Rte=Cl;cx.JSON||(cx.JSON={stringify:JSON.stringify});var Dte=function(t,e,n){return Rte(cx.JSON.stringify,null,arguments)},jte=Dte,Ate=jte,Nte=Ate,zte=we(Nte),Fte=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",Lte=TypeError,PR=function(t,e){if(tn,a=$te(r)?r:qte(r),s=i?Ute(arguments,n):[],l=i?function(){Bte(a,this,s)}:a;return e?t(l,o):t(l)}:t},Yte=me,RR=pt,Xte=IR,DR=Xte(RR.setInterval,!0);Yte({global:!0,bind:!0,forced:RR.setInterval!==DR},{setInterval:DR});var Gte=me,jR=pt,Qte=IR,AR=Qte(jR.setTimeout,!0);Gte({global:!0,bind:!0,forced:jR.setTimeout!==AR},{setTimeout:AR});var Jte=gt,Zte=Jte.setTimeout,ene=Zte,tne=we(ene),NR={exports:{}};(function(t){function e(r){if(r)return n(r);this._callbacks=new Map}function n(r){return Object.assign(r,e.prototype),r._callbacks=new Map,r}e.prototype.on=function(r,o){const i=this._callbacks.get(r)??[];return i.push(o),this._callbacks.set(r,i),this},e.prototype.once=function(r,o){const i=(...a)=>{this.off(r,i),o.apply(this,a)};return i.fn=o,this.on(r,i),this},e.prototype.off=function(r,o){if(r===void 0&&o===void 0)return this._callbacks.clear(),this;if(o===void 0)return this._callbacks.delete(r),this;const i=this._callbacks.get(r);if(i){for(const[a,s]of i.entries())if(s===o||s.fn===o){i.splice(a,1);break}i.length===0?this._callbacks.delete(r):this._callbacks.set(r,i)}return this},e.prototype.emit=function(r,...o){const i=this._callbacks.get(r);if(i){const a=[...i];for(const s of a)s.apply(this,o)}return this},e.prototype.listeners=function(r){return this._callbacks.get(r)??[]},e.prototype.listenerCount=function(r){if(r)return this.listeners(r).length;let o=0;for(const i of this._callbacks.values())o+=i.length;return o},e.prototype.hasListeners=function(r){return this.listenerCount(r)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e})(NR);var nne=NR.exports,rne=we(nne);function mo(){return mo=Object.assign||function(t){for(var e=1;e"u"?{style:{}}:document.createElement("div"),ine="function",Kl=Math.round,cs=Math.abs,hx=Date.now;function qg(t,e){for(var n,r,o=e[0].toUpperCase()+e.slice(1),i=0;i"u"?bi={}:bi=window;var FR=qg(one.style,"touchAction"),LR=FR!==void 0;function ane(){if(!LR)return!1;var t={},e=bi.CSS&&bi.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=e?bi.CSS.supports("touch-action",n):!0}),t}var BR="compute",$R="auto",fx="manipulation",ds="none",Id="pan-x",Rd="pan-y",Kg=ane(),sne=/mobile|tablet|ip(ad|hone|od)|android/i,WR="ontouchstart"in bi,lne=qg(bi,"PointerEvent")!==void 0,une=WR&&sne.test(navigator.userAgent),Dd="touch",cne="pen",px="mouse",dne="kinect",hne=25,Ln=1,hs=2,Ht=4,nr=8,Yg=1,jd=2,Ad=4,Nd=8,Yl=16,No=jd|Ad,fs=Nd|Yl,HR=No|fs,UR=["x","y"],Xg=["clientX","clientY"];function wi(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==void 0)for(r=0;r-1}function fne(t){if(ps(t,ds))return ds;var e=ps(t,Id),n=ps(t,Rd);return e&&n?ds:e||n?e?Id:Rd:ps(t,fx)?fx:$R}var VR=function(){function t(n,r){this.manager=n,this.set(r)}var e=t.prototype;return e.set=function(n){n===BR&&(n=this.compute()),LR&&this.manager.element.style&&Kg[n]&&(this.manager.element.style[FR]=n),this.actions=n.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var n=[];return wi(this.manager.recognizers,function(r){Gg(r.options.enable,[r])&&(n=n.concat(r.getTouchAction()))}),fne(n.join(" "))},e.preventDefaults=function(n){var r=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){r.preventDefault();return}var i=this.actions,a=ps(i,ds)&&!Kg[ds],s=ps(i,Rd)&&!Kg[Rd],l=ps(i,Id)&&!Kg[Id];if(a){var u=n.pointers.length===1,c=n.distance<2,h=n.deltaTime<250;if(u&&c&&h)return}if(!(l&&s)&&(a||s&&o&No||l&&o&fs))return this.preventSrc(r)},e.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function gx(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function qR(t){var e=t.length;if(e===1)return{x:Kl(t[0].clientX),y:Kl(t[0].clientY)};for(var n=0,r=0,o=0;o=cs(e)?t<0?jd:Ad:e<0?Nd:Yl}function pne(t,e){var n=e.center,r=t.offsetDelta||{},o=t.prevDelta||{},i=t.prevInput||{};(e.eventType===Ln||i.eventType===Ht)&&(o=t.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-r.x),e.deltaY=o.y+(n.y-r.y)}function XR(t,e,n){return{x:e/t||0,y:n/t||0}}function gne(t,e){return Qg(e[0],e[1],Xg)/Qg(t[0],t[1],Xg)}function vne(t,e){return vx(e[1],e[0],Xg)+vx(t[1],t[0],Xg)}function mne(t,e){var n=t.lastInterval||e,r=e.timeStamp-n.timeStamp,o,i,a,s;if(e.eventType!==nr&&(r>hne||n.velocity===void 0)){var l=e.deltaX-n.deltaX,u=e.deltaY-n.deltaY,c=XR(r,l,u);i=c.x,a=c.y,o=cs(c.x)>cs(c.y)?c.x:c.y,s=YR(l,u),t.lastInterval=e}else o=n.velocity,i=n.velocityX,a=n.velocityY,s=n.direction;e.velocity=o,e.velocityX=i,e.velocityY=a,e.direction=s}function yne(t,e){var n=t.session,r=e.pointers,o=r.length;n.firstInput||(n.firstInput=KR(e)),o>1&&!n.firstMultiple?n.firstMultiple=KR(e):o===1&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,s=a?a.center:i.center,l=e.center=qR(r);e.timeStamp=hx(),e.deltaTime=e.timeStamp-i.timeStamp,e.angle=vx(s,l),e.distance=Qg(s,l),pne(n,e),e.offsetDirection=YR(e.deltaX,e.deltaY);var u=XR(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=cs(u.x)>cs(u.y)?u.x:u.y,e.scale=a?gne(a.pointers,r):1,e.rotation=a?vne(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,mne(n,e);var c=t.element,h=e.srcEvent,d;h.composedPath?d=h.composedPath()[0]:h.path?d=h.path[0]:d=h.target,gx(d,c)&&(c=d),e.target=c}function bne(t,e,n){var r=n.pointers.length,o=n.changedPointers.length,i=e&Ln&&r-o===0,a=e&(Ht|nr)&&r-o===0;n.isFirst=!!i,n.isFinal=!!a,i&&(t.session={}),n.eventType=e,yne(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function zd(t){return t.trim().split(/\s+/g)}function Fd(t,e,n){wi(zd(e),function(r){t.addEventListener(r,n,!1)})}function Ld(t,e,n){wi(zd(e),function(r){t.removeEventListener(r,n,!1)})}function GR(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Xl=function(){function t(n,r){var o=this;this.manager=n,this.callback=r,this.element=n.element,this.target=n.options.inputTarget,this.domHandler=function(i){Gg(n.options.enable,[n])&&o.handler(i)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Fd(this.element,this.evEl,this.domHandler),this.evTarget&&Fd(this.target,this.evTarget,this.domHandler),this.evWin&&Fd(GR(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Ld(this.element,this.evEl,this.domHandler),this.evTarget&&Ld(this.target,this.evTarget,this.domHandler),this.evWin&&Ld(GR(this.element),this.evWin,this.domHandler)},t}();function gs(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rl[e]}):r=r.sort()),r}var kne={touchstart:Ln,touchmove:hs,touchend:Ht,touchcancel:nr},Sne="touchstart touchmove touchend touchcancel",yx=function(t){Lr(e,t);function e(){var r;return e.prototype.evTarget=Sne,r=t.apply(this,arguments)||this,r.targetIds={},r}var n=e.prototype;return n.handler=function(r){var o=kne[r.type],i=_ne.call(this,r,o);i&&this.callback(this.manager,o,{pointers:i[0],changedPointers:i[1],pointerType:Dd,srcEvent:r})},e}(Xl);function _ne(t,e){var n=Bd(t.touches),r=this.targetIds;if(e&(Ln|hs)&&n.length===1)return r[n[0].identifier]=!0,[n,n];var o,i,a=Bd(t.changedTouches),s=[],l=this.target;if(i=n.filter(function(u){return gx(u.target,l)}),e===Ln)for(o=0;o-1&&o.splice(a,1)};setTimeout(i,Tne)}}function Pne(t,e){t&Ln?(this.primaryTouch=e.changedPointers[0].identifier,tD.call(this,e)):t&(Ht|nr)&&tD.call(this,e)}function Mne(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(r,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},e.emit=function(n){var r=this,o=this.state;function i(a){r.manager.emit(a,n)}o=pa&&i(r.options.event+rD(o))},e.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=zo},e.canEmit=function(){for(var n=0;no.threshold&&s&o.direction},n.attrTest=function(r){return Jl.prototype.attrTest.call(this,r)&&(this.state&Br||!(this.state&Br)&&this.directionTest(r))},n.emit=function(r){this.pX=r.deltaX,this.pY=r.deltaY;var o=oD(r.direction);o&&(r.additionalEvent=this.options.event+o),t.prototype.emit.call(this,r)},e}(Jl),iD=function(t){Lr(e,t);function e(r){return r===void 0&&(r={}),t.call(this,mo({event:"swipe",threshold:10,velocity:.3,direction:No|fs,pointers:1},r))||this}var n=e.prototype;return n.getTouchAction=function(){return xx.prototype.getTouchAction.call(this)},n.attrTest=function(r){var o=this.options.direction,i;return o&(No|fs)?i=r.overallVelocity:o&No?i=r.overallVelocityX:o&fs&&(i=r.overallVelocityY),t.prototype.attrTest.call(this,r)&&o&r.offsetDirection&&r.distance>this.options.threshold&&r.maxPointers===this.options.pointers&&cs(i)>this.options.velocity&&r.eventType&Ht},n.emit=function(r){var o=oD(r.offsetDirection);o&&this.manager.emit(this.options.event+o,r),this.manager.emit(this.options.event,r)},e}(Jl),aD=function(t){Lr(e,t);function e(r){return r===void 0&&(r={}),t.call(this,mo({event:"pinch",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[ds]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.scale-1)>this.options.threshold||this.state&Br)},n.emit=function(r){if(r.scale!==1){var o=r.scale<1?"in":"out";r.additionalEvent=this.options.event+o}t.prototype.emit.call(this,r)},e}(Jl),sD=function(t){Lr(e,t);function e(r){return r===void 0&&(r={}),t.call(this,mo({event:"rotate",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[ds]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.rotation)>this.options.threshold||this.state&Br)},e}(Jl),lD=function(t){Lr(e,t);function e(r){var o;return r===void 0&&(r={}),o=t.call(this,mo({event:"press",pointers:1,time:251,threshold:9},r))||this,o._timer=null,o._input=null,o}var n=e.prototype;return n.getTouchAction=function(){return[$R]},n.process=function(r){var o=this,i=this.options,a=r.pointers.length===i.pointers,s=r.distancei.time;if(this._input=r,!s||!a||r.eventType&(Ht|nr)&&!l)this.reset();else if(r.eventType&Ln)this.reset(),this._timer=setTimeout(function(){o.state=xi,o.tryEmit()},i.time);else if(r.eventType&Ht)return xi;return zo},n.reset=function(){clearTimeout(this._timer)},n.emit=function(r){this.state===xi&&(r&&r.eventType&Ht?this.manager.emit(this.options.event+"up",r):(this._input.timeStamp=hx(),this.manager.emit(this.options.event,this._input)))},e}(Wd),uD={domEvents:!1,touchAction:BR,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},cD=[[sD,{enable:!1}],[aD,{enable:!1},["rotate"]],[iD,{direction:No}],[xx,{direction:No},["swipe"]],[wx],[wx,{event:"doubletap",taps:2},["tap"]],[lD]],jne=1,dD=2;function hD(t,e){var n=t.element;if(n.style){var r;wi(t.options.cssProps,function(o,i){r=qg(n.style,i),e?(t.oldCssProps[r]=n.style[r],n.style[r]=o):n.style[r]=t.oldCssProps[r]||""}),e||(t.oldCssProps={})}}function Ane(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var fD=function(){function t(n,r){var o=this;this.options=us({},uD,r||{}),this.options.inputTarget=this.options.inputTarget||n,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=n,this.input=Ine(this),this.touchAction=new VR(this,this.options.touchAction),hD(this,!0),wi(this.options.recognizers,function(i){var a=o.add(new i[0](i[1]));i[2]&&a.recognizeWith(i[2]),i[3]&&a.requireFailure(i[3])},this)}var e=t.prototype;return e.set=function(n){return us(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},e.stop=function(n){this.session.stopped=n?dD:jne},e.recognize=function(n){var r=this.session;if(!r.stopped){this.touchAction.preventDefaults(n);var o,i=this.recognizers,a=r.curRecognizer;(!a||a&&a.state&xi)&&(r.curRecognizer=null,a=null);for(var s=0;s\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,r,i),t.apply(this,arguments)}}var gD=pD(function(t,e,n){for(var r=Object.keys(e),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function Vne(t,e){var n;if(t){if(typeof t=="string")return yD(t,e);var r=Ug(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Gw(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yD(t,e)}}function yD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?n-1:0),o=1;o2){var r;return ev.apply(void 0,Hg(r=[wD(e[0],e[1])]).call(r,tr(Ug(e).call(e,2))))}var o=e[0],i=e[1];if(o instanceof Date&&i instanceof Date)return o.setTime(i.getTime()),o;var a=mD(qZ(i)),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(i,l)&&(i[l]===bD?delete o[l]:o[l]!==null&&i[l]!==null&&typeof o[l]=="object"&&typeof i[l]=="object"&&!xr(o[l])&&!xr(i[l])?o[l]=ev(o[l],i[l]):o[l]=xD(i[l]))}}catch(u){a.e(u)}finally{a.f()}return o}function xD(t){return xr(t)?vo(t).call(t,function(e){return xD(e)}):typeof t=="object"&&t!==null?t instanceof Date?new Date(t.getTime()):ev({},t):t}function kD(t){for(var e=0,n=ox(t);ei;)s=n(e,a=r[i++]),s!==void 0&&Ire(o,a,s);return o}});var Rre=gt,Dre=Rre.Object.getOwnPropertyDescriptors,jre=Dre,Are=jre,Nre=Are,ND=we(Nre),zD={exports:{}},zre=me,Fre=en,FD=wg.f;zre({target:"Object",stat:!0,forced:Object.defineProperties!==FD,sham:!Fre},{defineProperties:FD});var Lre=gt,LD=Lre.Object,Bre=zD.exports=function(t,e){return LD.defineProperties(t,e)};LD.defineProperties.sham&&(Bre.sham=!0);var $re=zD.exports,Wre=$re,Hre=Wre,Ure=Hre,Vre=we(Ure),qre=zP,Kre=we(qre);function BD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Yre=TR,Xre=Yre,Gre=Xre,Qre=Gre,$D=Qre,Jre=we($D),Zre=me,eoe=aI;Zre({target:"Object",stat:!0},{setPrototypeOf:eoe});var toe=gt,noe=toe.Object.setPrototypeOf,roe=noe,ooe=roe,ioe=ooe,aoe=ioe,soe=aoe,loe=soe,WD=loe,_x=we(WD),uoe=WI,coe=uoe,doe=coe,hoe=doe,foe=hoe,HD=we(foe);function Ex(t,e){var n;return Ex=_x?HD(n=_x).call(n):function(r,o){return r.__proto__=o,r},Ex(t,e)}function poe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Jre(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),pg(t,"prototype",{writable:!1}),e&&Ex(t,e)}function goe(t,e){if(e&&(Ul(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BD(t)}var voe=kte,moe=voe,yoe=moe,boe=yoe,UD=boe,VD=we(UD);function nv(t){var e;return nv=_x?HD(e=VD).call(e):function(n){return n.__proto__||VD(n)},nv(t)}var qD={exports:{}},KD={exports:{}};(function(t){var e=Ww,n=jI;function r(o){"@babel/helpers - typeof";return t.exports=r=typeof e=="function"&&typeof n=="symbol"?function(i){return typeof i}:function(i){return i&&typeof e=="function"&&i.constructor===e&&i!==e.prototype?"symbol":typeof i},t.exports.__esModule=!0,t.exports.default=t.exports,r(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(KD);var woe=KD.exports,xoe=yR,koe=xoe,Soe=koe,_oe=Soe,Eoe=_oe,YD=Wt,Coe=rx,Ooe=ts,Toe=Jn,Poe=function(t,e,n){for(var r=Coe(e),o=Toe.f,i=Ooe.f,a=0;ah;h++)if(f=m(t[h]),f&&JD(ej,f))return f;return new rv(!1)}u=Qoe(t,c)}for(p=i?t.next:u.next;!(g=qoe(p,u)).done;){try{f=m(g.value)}catch(v){ZD(u,"throw",v)}if(typeof f=="object"&&f&&JD(ej,f))return f}return new rv(!1)},eie=rs,tie=function(t,e){return t===void 0?arguments.length<2?"":e:eie(t)},nie=me,rie=$t,oie=jg,ov=aI,iie=Poe,tj=os,Cx=gi,Ox=ns,aie=Roe,sie=Uoe,lie=vs,uie=tie,cie=wt,die=cie("toStringTag"),iv=Error,hie=[].push,Zl=function(t,e){var n=rie(Tx,this),r;ov?r=ov(new iv,n?oie(this):Tx):(r=n?this:tj(Tx),Cx(r,die,"Error")),e!==void 0&&Cx(r,"message",uie(e)),sie(r,Zl,r.stack,1),arguments.length>2&&aie(r,arguments[2]);var o=[];return lie(t,hie,{that:o}),Cx(r,"errors",o),r};ov?ov(Zl,iv):iie(Zl,iv,{name:!0});var Tx=Zl.prototype=tj(iv.prototype,{constructor:Ox(1,Zl),message:Ox(1,""),name:Ox(1,"AggregateError")});nie({global:!0,constructor:!0,arity:2},{AggregateError:Zl});var fie=Fn,pie=pw,gie=wt,vie=en,nj=gie("species"),rj=function(t){var e=fie(t);vie&&e&&!e[nj]&&pie(e,nj,{configurable:!0,get:function(){return this}})},mie=$t,yie=TypeError,Px=function(t,e){if(mie(e,t))return t;throw new yie("Incorrect invocation")},oj=br,bie=SD,wie=Ol,xie=wt,kie=xie("species"),ij=function(t,e){var n=oj(t).constructor,r;return n===void 0||wie(r=oj(n)[kie])?e:bie(r)},Sie=la,aj=/(?:ipad|iphone|ipod).*applewebkit/i.test(Sie),kr=pt,_ie=Cl,Eie=ua,sj=_t,Cie=Wt,lj=Ye,uj=ZP,Oie=Td,cj=ew,Tie=PR,Pie=aj,Mie=Md,Mx=kr.setImmediate,Ix=kr.clearImmediate,Iie=kr.process,Rx=kr.Dispatch,Rie=kr.Function,dj=kr.MessageChannel,Die=kr.String,Dx=0,Hd={},hj="onreadystatechange",Ud,ms,jx,Ax;lj(function(){Ud=kr.location});var Nx=function(t){if(Cie(Hd,t)){var e=Hd[t];delete Hd[t],e()}},zx=function(t){return function(){Nx(t)}},fj=function(t){Nx(t.data)},pj=function(t){kr.postMessage(Die(t),Ud.protocol+"//"+Ud.host)};(!Mx||!Ix)&&(Mx=function(t){Tie(arguments.length,1);var e=sj(t)?t:Rie(t),n=Oie(arguments,1);return Hd[++Dx]=function(){_ie(e,void 0,n)},ms(Dx),Dx},Ix=function(t){delete Hd[t]},Mie?ms=function(t){Iie.nextTick(zx(t))}:Rx&&Rx.now?ms=function(t){Rx.now(zx(t))}:dj&&!Pie?(jx=new dj,Ax=jx.port2,jx.port1.onmessage=fj,ms=Eie(Ax.postMessage,Ax)):kr.addEventListener&&sj(kr.postMessage)&&!kr.importScripts&&Ud&&Ud.protocol!=="file:"&&!lj(pj)?(ms=pj,kr.addEventListener("message",fj,!1)):hj in cj("script")?ms=function(t){uj.appendChild(cj("script"))[hj]=function(){uj.removeChild(this),Nx(t)}}:ms=function(t){setTimeout(zx(t),0)});var gj={set:Mx,clear:Ix},vj=function(){this.head=null,this.tail=null};vj.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var mj=vj,jie=la,Aie=/ipad|iphone|ipod/i.test(jie)&&typeof Pebble<"u",Nie=la,zie=/web0s(?!.*chrome)/i.test(Nie),ys=pt,yj=ua,Fie=ts.f,Fx=gj.set,Lie=mj,Bie=aj,$ie=Aie,Wie=zie,Lx=Md,bj=ys.MutationObserver||ys.WebKitMutationObserver,wj=ys.document,xj=ys.process,av=ys.Promise,kj=Fie(ys,"queueMicrotask"),Bx=kj&&kj.value,eu,$x,Wx,sv,Sj;if(!Bx){var lv=new Lie,uv=function(){var t,e;for(Lx&&(t=xj.domain)&&t.exit();e=lv.get();)try{e()}catch(n){throw lv.head&&eu(),n}t&&t.enter()};!Bie&&!Lx&&!Wie&&bj&&wj?($x=!0,Wx=wj.createTextNode(""),new bj(uv).observe(Wx,{characterData:!0}),eu=function(){Wx.data=$x=!$x}):!$ie&&av&&av.resolve?(sv=av.resolve(void 0),sv.constructor=av,Sj=yj(sv.then,sv),eu=function(){Sj(uv)}):Lx?eu=function(){xj.nextTick(uv)}:(Fx=yj(Fx,ys),eu=function(){Fx(uv)}),Bx=function(t){lv.head||eu(),lv.add(t)}}var Hie=Bx,Uie=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}},tu=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Vie=pt,nu=Vie.Promise,_j=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",qie=_j,Kie=Md,Yie=!qie&&!Kie&&typeof window=="object"&&typeof document=="object",Xie=pt,Vd=nu,Gie=_t,Qie=MP,Jie=BP,Zie=wt,eae=Yie,tae=_j,Hx=Tl,Ej=Vd&&Vd.prototype,nae=Zie("species"),Ux=!1,Cj=Gie(Xie.PromiseRejectionEvent),rae=Qie("Promise",function(){var t=Jie(Vd),e=t!==String(Vd);if(!e&&Hx===66||!(Ej.catch&&Ej.finally))return!0;if(!Hx||Hx<51||!/native code/.test(t)){var n=new Vd(function(i){i(1)}),r=function(i){i(function(){},function(){})},o=n.constructor={};if(o[nae]=r,Ux=n.then(function(){})instanceof r,!Ux)return!0}return!e&&(eae||tae)&&!Cj}),qd={CONSTRUCTOR:rae,REJECTION_EVENT:Cj,SUBCLASSING:Ux},Fo={},Oj=Gn,oae=TypeError,iae=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw new oae("Bad Promise constructor");e=r,n=o}),this.resolve=Oj(e),this.reject=Oj(n)};Fo.f=function(t){return new iae(t)};var aae=me,cv=Md,ga=pt,Kd=tn,sae=Nl,lae=is,uae=rj,cae=Gn,Vx=_t,dae=mn,hae=Px,fae=ij,Tj=gj.set,qx=Hie,pae=Uie,gae=tu,vae=mj,Pj=Fl,Kx=nu,Mj=qd,Ij=Fo,dv="Promise",Rj=Mj.CONSTRUCTOR,mae=Mj.REJECTION_EVENT,Yx=Pj.getterFor(dv),yae=Pj.set,bae=Kx&&Kx.prototype,ru=Kx,Xx=bae,Dj=ga.TypeError,Gx=ga.document,Qx=ga.process,Jx=Ij.f,wae=Jx,xae=!!(Gx&&Gx.createEvent&&ga.dispatchEvent),jj="unhandledrejection",kae="rejectionhandled",Aj=0,Nj=1,Sae=2,Zx=1,zj=2,hv,Fj,_ae,Lj=function(t){var e;return dae(t)&&Vx(e=t.then)?e:!1},Bj=function(t,e){var n=e.value,r=e.state===Nj,o=r?t.ok:t.fail,i=t.resolve,a=t.reject,s=t.domain,l,u,c;try{o?(r||(e.rejection===zj&&Cae(e),e.rejection=Zx),o===!0?l=n:(s&&s.enter(),l=o(n),s&&(s.exit(),c=!0)),l===t.promise?a(new Dj("Promise-chain cycle")):(u=Lj(l))?Kd(u,l,i,a):i(l)):a(n)}catch(h){s&&!c&&s.exit(),a(h)}},$j=function(t,e){t.notified||(t.notified=!0,qx(function(){for(var n=t.reactions,r;r=n.get();)Bj(r,t);t.notified=!1,e&&!t.rejection&&Eae(t)}))},Wj=function(t,e,n){var r,o;xae?(r=Gx.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),ga.dispatchEvent(r)):r={promise:e,reason:n},!mae&&(o=ga["on"+t])?o(r):t===jj&&pae("Unhandled promise rejection",n)},Eae=function(t){Kd(Tj,ga,function(){var e=t.facade,n=t.value,r=Hj(t),o;if(r&&(o=gae(function(){cv?Qx.emit("unhandledRejection",n,e):Wj(jj,e,n)}),t.rejection=cv||Hj(t)?zj:Zx,o.error))throw o.value})},Hj=function(t){return t.rejection!==Zx&&!t.parent},Cae=function(t){Kd(Tj,ga,function(){var e=t.facade;cv?Qx.emit("rejectionHandled",e):Wj(kae,e,t.value)})},ou=function(t,e,n){return function(r){t(e,r,n)}},iu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=Sae,$j(t,!0))},ek=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new Dj("Promise can't be resolved itself");var r=Lj(e);r?qx(function(){var o={done:!1};try{Kd(r,e,ou(ek,o,t),ou(iu,o,t))}catch(i){iu(o,i,t)}}):(t.value=e,t.state=Nj,$j(t,!1))}catch(o){iu({done:!1},o,t)}}};Rj&&(ru=function(t){hae(this,Xx),cae(t),Kd(hv,this);var e=Yx(this);try{t(ou(ek,e),ou(iu,e))}catch(n){iu(e,n)}},Xx=ru.prototype,hv=function(t){yae(this,{type:dv,done:!1,notified:!1,parent:!1,reactions:new vae,rejection:!1,state:Aj,value:void 0})},hv.prototype=sae(Xx,"then",function(t,e){var n=Yx(this),r=Jx(fae(this,ru));return n.parent=!0,r.ok=Vx(t)?t:!0,r.fail=Vx(e)&&e,r.domain=cv?Qx.domain:void 0,n.state===Aj?n.reactions.add(r):qx(function(){Bj(r,n)}),r.promise}),Fj=function(){var t=new hv,e=Yx(t);this.promise=t,this.resolve=ou(ek,e),this.reject=ou(iu,e)},Ij.f=Jx=function(t){return t===ru||t===_ae?new Fj(t):wae(t)}),aae({global:!0,constructor:!0,wrap:!0,forced:Rj},{Promise:ru}),lae(ru,dv,!1,!0),uae(dv);var Oae=nu,Tae=nR,Pae=qd.CONSTRUCTOR,fv=Pae||!Tae(function(t){Oae.all(t).then(void 0,function(){})}),Mae=me,Iae=tn,Rae=Gn,Dae=Fo,jae=tu,Aae=vs,Nae=fv;Mae({target:"Promise",stat:!0,forced:Nae},{all:function(t){var e=this,n=Dae.f(e),r=n.resolve,o=n.reject,i=jae(function(){var a=Rae(e.resolve),s=[],l=0,u=1;Aae(t,function(c){var h=l++,d=!1;u++,Iae(a,e,c).then(function(f){d||(d=!0,s[h]=f,--u||r(s))},o)}),--u||r(s)});return i.error&&o(i.value),n.promise}});var zae=me,Fae=qd.CONSTRUCTOR,Uj=nu;Uj&&Uj.prototype,zae({target:"Promise",proto:!0,forced:Fae,real:!0},{catch:function(t){return this.then(void 0,t)}});var Lae=me,Bae=tn,$ae=Gn,Wae=Fo,Hae=tu,Uae=vs,Vae=fv;Lae({target:"Promise",stat:!0,forced:Vae},{race:function(t){var e=this,n=Wae.f(e),r=n.reject,o=Hae(function(){var i=$ae(e.resolve);Uae(t,function(a){Bae(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var qae=me,Kae=tn,Yae=Fo,Xae=qd.CONSTRUCTOR;qae({target:"Promise",stat:!0,forced:Xae},{reject:function(t){var e=Yae.f(this);return Kae(e.reject,void 0,t),e.promise}});var Gae=br,Qae=mn,Jae=Fo,Vj=function(t,e){if(Gae(t),Qae(e)&&e.constructor===t)return e;var n=Jae.f(t),r=n.resolve;return r(e),n.promise},Zae=me,ese=Fn,tse=c9,nse=nu,rse=qd.CONSTRUCTOR,ose=Vj,ise=ese("Promise"),ase=!rse;Zae({target:"Promise",stat:!0,forced:tse},{resolve:function(t){return ose(ase&&this===ise?nse:this,t)}});var sse=me,lse=tn,use=Gn,cse=Fo,dse=tu,hse=vs,fse=fv;sse({target:"Promise",stat:!0,forced:fse},{allSettled:function(t){var e=this,n=cse.f(e),r=n.resolve,o=n.reject,i=dse(function(){var a=use(e.resolve),s=[],l=0,u=1;hse(t,function(c){var h=l++,d=!1;u++,lse(a,e,c).then(function(f){d||(d=!0,s[h]={status:"fulfilled",value:f},--u||r(s))},function(f){d||(d=!0,s[h]={status:"rejected",reason:f},--u||r(s))})}),--u||r(s)});return i.error&&o(i.value),n.promise}});var pse=me,gse=tn,vse=Gn,mse=Fn,yse=Fo,bse=tu,wse=vs,xse=fv,qj="No one promise resolved";pse({target:"Promise",stat:!0,forced:xse},{any:function(t){var e=this,n=mse("AggregateError"),r=yse.f(e),o=r.resolve,i=r.reject,a=bse(function(){var s=vse(e.resolve),l=[],u=0,c=1,h=!1;wse(t,function(d){var f=u++,p=!1;c++,gse(s,e,d).then(function(g){p||h||(h=!0,o(g))},function(g){p||h||(p=!0,l[f]=g,--c||i(new n(l,qj)))})}),--c||i(new n(l,qj))});return a.error&&i(a.value),r.promise}});var kse=me,tk=nu,Sse=Ye,_se=Fn,Ese=_t,Cse=ij,Kj=Vj,Ose=tk&&tk.prototype,Tse=!!tk&&Sse(function(){Ose.finally.call({then:function(){}},function(){})});kse({target:"Promise",proto:!0,real:!0,forced:Tse},{finally:function(t){var e=Cse(this,_se("Promise")),n=Ese(t);return this.then(n?function(r){return Kj(e,t()).then(function(){return r})}:t,n?function(r){return Kj(e,t()).then(function(){throw r})}:t)}});var Pse=gt,Mse=Pse.Promise,Ise=Mse,Rse=Ise,Dse=me,jse=Fo;Dse({target:"Promise",stat:!0},{withResolvers:function(){var t=jse.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Ase=Rse,Nse=Ase,zse=me,Fse=Fo,Lse=tu;zse({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=Fse.f(this),n=Lse(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var Bse=Nse,$se=Bse,Wse=$se,Hse=wR,Use=Hse,Vse=Use,qse=Vse,Kse=qse;(function(t){var e=woe.default,n=FP,r=Ww,o=$D,i=UD,a=Eoe,s=uR,l=WD,u=Wse,c=Kse,h=fR;function d(){t.exports=d=function(){return p},t.exports.__esModule=!0,t.exports.default=t.exports;var f,p={},g=Object.prototype,b=g.hasOwnProperty,m=n||function(z,L,B){z[L]=B.value},v=typeof r=="function"?r:{},y=v.iterator||"@@iterator",x=v.asyncIterator||"@@asyncIterator",S=v.toStringTag||"@@toStringTag";function _(z,L,B){return n(z,L,{value:B,enumerable:!0,configurable:!0,writable:!0}),z[L]}try{_({},"")}catch{_=function(z,L,B){return z[L]=B}}function E(z,L,B,re){var V=L&&L.prototype instanceof D?L:D,ie=o(V.prototype),Te=new xe(re||[]);return m(ie,"_invoke",{value:te(z,B,Te)}),ie}function O(z,L,B){try{return{type:"normal",arg:z.call(L,B)}}catch(re){return{type:"throw",arg:re}}}p.wrap=E;var w="suspendedStart",T="suspendedYield",I="executing",R="completed",j={};function D(){}function P(){}function M(){}var N={};_(N,y,function(){return this});var A=i,$=A&&A(A(ke([])));$&&$!==g&&b.call($,y)&&(N=$);var W=M.prototype=D.prototype=o(N);function J(z){var L;a(L=["next","throw","return"]).call(L,function(B){_(z,B,function(re){return this._invoke(B,re)})})}function X(z,L){function B(V,ie,Te,Ne){var Oe=O(z[V],z,ie);if(Oe.type!=="throw"){var Le=Oe.arg,kt=Le.value;return kt&&e(kt)=="object"&&b.call(kt,"__await")?L.resolve(kt.__await).then(function(Se){B("next",Se,Te,Ne)},function(Se){B("throw",Se,Te,Ne)}):L.resolve(kt).then(function(Se){Le.value=Se,Te(Le)},function(Se){return B("throw",Se,Te,Ne)})}Ne(Oe.arg)}var re;m(this,"_invoke",{value:function(V,ie){function Te(){return new L(function(Ne,Oe){B(V,ie,Ne,Oe)})}return re=re?re.then(Te,Te):Te()}})}function te(z,L,B){var re=w;return function(V,ie){if(re===I)throw new Error("Generator is already running");if(re===R){if(V==="throw")throw ie;return{value:f,done:!0}}for(B.method=V,B.arg=ie;;){var Te=B.delegate;if(Te){var Ne=se(Te,B);if(Ne){if(Ne===j)continue;return Ne}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(re===w)throw re=R,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);re=I;var Oe=O(z,L,B);if(Oe.type==="normal"){if(re=B.done?R:T,Oe.arg===j)continue;return{value:Oe.arg,done:B.done}}Oe.type==="throw"&&(re=R,B.method="throw",B.arg=Oe.arg)}}}function se(z,L){var B=L.method,re=z.iterator[B];if(re===f)return L.delegate=null,B==="throw"&&z.iterator.return&&(L.method="return",L.arg=f,se(z,L),L.method==="throw")||B!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+B+"' method")),j;var V=O(re,z.iterator,L.arg);if(V.type==="throw")return L.method="throw",L.arg=V.arg,L.delegate=null,j;var ie=V.arg;return ie?ie.done?(L[z.resultName]=ie.value,L.next=z.nextLoc,L.method!=="return"&&(L.method="next",L.arg=f),L.delegate=null,j):ie:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,j)}function ve(z){var L,B={tryLoc:z[0]};1 in z&&(B.catchLoc=z[1]),2 in z&&(B.finallyLoc=z[2],B.afterLoc=z[3]),s(L=this.tryEntries).call(L,B)}function Q(z){var L=z.completion||{};L.type="normal",delete L.arg,z.completion=L}function xe(z){this.tryEntries=[{tryLoc:"root"}],a(z).call(z,ve,this),this.reset(!0)}function ke(z){if(z||z===""){var L=z[y];if(L)return L.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var B=-1,re=function V(){for(;++B=0;--re){var V=this.tryEntries[re],ie=V.completion;if(V.tryLoc==="root")return B("end");if(V.tryLoc<=this.prev){var Te=b.call(V,"catchLoc"),Ne=b.call(V,"finallyLoc");if(Te&&Ne){if(this.prev=0;--B){var re=this.tryEntries[B];if(re.tryLoc<=this.prev&&b.call(re,"finallyLoc")&&this.prev=0;--L){var B=this.tryEntries[L];if(B.finallyLoc===z)return this.complete(B.completion,B.afterLoc),Q(B),j}},catch:function(z){for(var L=this.tryEntries.length-1;L>=0;--L){var B=this.tryEntries[L];if(B.tryLoc===z){var re=B.completion;if(re.type==="throw"){var V=re.arg;Q(B)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(z,L,B){return this.delegate={iterator:ke(z),resultName:L,nextLoc:B},this.method==="next"&&(this.arg=f),j}},p}t.exports=d,t.exports.__esModule=!0,t.exports.default=t.exports})(qD);var Yse=qD.exports,pv=Yse(),Xse=pv;try{regeneratorRuntime=pv}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=pv:Function("r","regeneratorRuntime = r")(pv)}var rr=we(Xse),Yj={exports:{}},Gse=Ye,Qse=Gse(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Jse=Ye,Zse=mn,ele=sa,Xj=Qse,gv=Object.isExtensible,tle=Jse(function(){gv(1)}),nle=tle||Xj?function(t){return!Zse(t)||Xj&&ele(t)==="ArrayBuffer"?!1:gv?gv(t):!0}:gv,rle=Ye,ole=!rle(function(){return Object.isExtensible(Object.preventExtensions({}))}),ile=me,ale=dt,sle=yd,lle=mn,nk=Wt,ule=Jn.f,Gj=bd,cle=fw,rk=nle,dle=cg,hle=ole,Qj=!1,Si=dle("meta"),fle=0,ok=function(t){ule(t,Si,{value:{objectID:"O"+fle++,weakData:{}}})},ple=function(t,e){if(!lle(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!nk(t,Si)){if(!rk(t))return"F";if(!e)return"E";ok(t)}return t[Si].objectID},gle=function(t,e){if(!nk(t,Si)){if(!rk(t))return!0;if(!e)return!1;ok(t)}return t[Si].weakData},vle=function(t){return hle&&Qj&&rk(t)&&!nk(t,Si)&&ok(t),t},mle=function(){yle.enable=function(){},Qj=!0;var t=Gj.f,e=ale([].splice),n={};n[Si]=1,t(n).length&&(Gj.f=function(r){for(var o=t(r),i=0,a=o.length;i1?arguments[1]:void 0),d;d=d?d.next:c.first;)for(h(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),tA(i,n?{get:function(u){var c=l(this,u);return c&&c.value},set:function(u,c){return s(this,u===0?0:u,c)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),Yd&&Fle(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=ik(e),i=ik(r);Hle(t,e,function(a,s){iA(this,{type:r,target:a,state:o(a),kind:s,last:void 0})},function(){for(var a=i(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,nA(void 0,!0)):nA(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},n?"entries":"values",!n,!0),Ule(e)}},Vle=eA,qle=aA;Vle("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},qle);var Kle=gt,Yle=Kle.Map,Xle=Yle,Gle=Xle,Qle=Gle,sA=we(Qle),Jle=me,Zle=Ll.some,eue=Bg,tue=eue("some");Jle({target:"Array",proto:!0,forced:!tue},{some:function(t){return Zle(this,t,arguments.length>1?arguments[1]:void 0)}});var nue=Cn,rue=nue("Array","some"),oue=$t,iue=rue,ak=Array.prototype,aue=function(t){var e=t.some;return t===ak||oue(ak,t)&&e===ak.some?iue:e},sue=aue,lue=sue,uue=lue,cue=we(uue),due=Cn,hue=due("Array","keys"),fue=hue,pue=fue,gue=vi,vue=Wt,mue=$t,yue=pue,sk=Array.prototype,bue={DOMTokenList:!0,NodeList:!0},wue=function(t){var e=t.keys;return t===sk||mue(sk,t)&&e===sk.keys||vue(bue,gue(t))?yue:e},xue=wue,au=we(xue),lA=lM,kue=Math.floor,lk=function(t,e){var n=t.length,r=kue(n/2);return n<8?Sue(t,e):_ue(t,lk(lA(t,0,r),e),lk(lA(t,r),e),e)},Sue=function(t,e){for(var n=t.length,r=1,o,i;r0;)t[i]=t[--i];i!==r++&&(t[i]=o)}return t},_ue=function(t,e,n,r){for(var o=e.length,i=n.length,a=0,s=0;a3)){if(Fue)return!0;if(vA)return vA<603;var t="",e,n,r,o;for(e=65;e<76;e++){switch(n=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(o=0;o<47;o++)va.push({k:n+o,v:r})}for(va.sort(function(i,a){return a.v-i.v}),o=0;ofA(n)?1:-1}};Rue({target:"Array",proto:!0,forced:Hue},{sort:function(t){t!==void 0&&Due(t);var e=jue(this);if(yA)return t===void 0?mA(e):mA(e,t);var n=[],r=hA(e),o,i;for(i=0;ithis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=tne(function(){e.flush()},this.delay))}},{key:"flush",value:function(){var e,n;ls(e=SR(n=this._queue).call(n,0)).call(e,function(r){r.fn.apply(r.context||r.fn,r.args||[])})}}],[{key:"extend",value:function(e,n){var r=new t(n);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=function(){r.flush()};var o=[{name:"flush",original:void 0}];if(n&&n.replace)for(var i=0;i=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function qce(t,e){var n;if(t){if(typeof t=="string")return kA(t,e);var r=Ug(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Gw(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kA(t,e)}}function kA(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);na&&(a=c,i=u)}return i}},{key:"min",value:function(n){var r=gk(this._pairs),o=r.next();if(o.done)return null;for(var i=o.value[1],a=n(o.value[1],o.value[0]);!(o=r.next()).done;){var s=er(o.value,2),l=s[0],u=s[1],c=n(u,l);c=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function Kce(t,e){var n;if(t){if(typeof t=="string")return CA(t,e);var r=Ug(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Gw(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return CA(t,e)}}function CA(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n"u"||!tv||tv.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(tv(Boolean,[],function(){})),!0}catch{return!1}}function Gce(t,e){return t[e]==null&&(t[e]=Cce()),t}var lu=function(t){poe(n,t);var e=Yce(n);function n(r,o){var i;return og(this,n),i=e.call(this),fa(BD(i),"_queue",null),r&&!xr(r)&&(o=r,r=[]),i._options=o||{},i._data=new sA,i.length=0,i._idProp=i._options.fieldId||"id",r&&r.length&&i.add(r),i.setOptions(o),i}return Lg(n,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(r){r&&r.queue!==void 0&&(r.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Oce.extend(this,{replace:["add","update","remove"]})),r.queue&&typeof r.queue=="object"&&this._queue.setOptions(r.queue)))}},{key:"add",value:function(r,o){var i=this,a=[],s;if(xr(r)){var l=vo(r).call(r,function(h){return h[i._idProp]});if(cue(l).call(l,function(h){return i._data.has(h)}))throw new Error("A duplicate id was found in the parameter array.");for(var u=0,c=r.length;uu?1:la)&&(i=u,a=c)}}catch(h){s.e(h)}finally{s.f()}return i||null}},{key:"min",value:function(r){var o,i=null,a=null,s=vk(bA(o=this._data).call(o)),l;try{for(s.s();!(l=s.n()).done;){var u=l.value,c=u[r];typeof c=="number"&&(a==null||c"u"&&wk!==void 0,jA={all:wk,IS_HTMLDDA:ide},AA=jA,ade=AA.all,rn=AA.IS_HTMLDDA?function(t){return typeof t=="function"||t===ade}:function(t){return typeof t=="function"},uu={},sde=Be,on=!sde(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),lde=Xd,yv=Function.prototype.call,Sr=lde?yv.bind(yv):function(){return yv.apply(yv,arguments)},bv={},NA={}.propertyIsEnumerable,zA=Object.getOwnPropertyDescriptor,ude=zA&&!NA.call({1:2},1);bv.f=ude?function(t){var e=zA(this,t);return!!e&&e.enumerable}:NA;var Qd=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},cde=He,dde=Be,hde=_i,xk=Object,fde=cde("".split),wv=dde(function(){return!xk("z").propertyIsEnumerable(0)})?function(t){return hde(t)==="String"?fde(t,""):xk(t)}:xk,cu=function(t){return t==null},pde=cu,gde=TypeError,Jd=function(t){if(pde(t))throw new gde("Can't call method on "+t);return t},vde=wv,mde=Jd,Bo=function(t){return vde(mde(t))},FA=rn,LA=jA,yde=LA.all,an=LA.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:FA(t)||t===yde}:function(t){return typeof t=="object"?t!==null:FA(t)},$e={},kk=$e,Sk=Ct,bde=rn,BA=function(t){return bde(t)?t:void 0},$r=function(t,e){return arguments.length<2?BA(kk[t])||BA(Sk[t]):kk[t]&&kk[t][e]||Sk[t]&&Sk[t][e]},wde=He,Nt=wde({}.isPrototypeOf),Zd=typeof navigator<"u"&&String(navigator.userAgent)||"",$A=Ct,_k=Zd,WA=$A.process,HA=$A.Deno,UA=WA&&WA.versions||HA&&HA.version,VA=UA&&UA.v8,yo,xv;VA&&(yo=VA.split("."),xv=yo[0]>0&&yo[0]<4?1:+(yo[0]+yo[1])),!xv&&_k&&(yo=_k.match(/Edge\/(\d+)/),(!yo||yo[1]>=74)&&(yo=_k.match(/Chrome\/(\d+)/),yo&&(xv=+yo[1])));var eh=xv,qA=eh,xde=Be,kde=Ct,Sde=kde.String,du=!!Object.getOwnPropertySymbols&&!xde(function(){var t=Symbol("symbol detection");return!Sde(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&qA&&qA<41}),_de=du,KA=_de&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ede=$r,Cde=rn,Ode=Nt,Tde=KA,Pde=Object,th=Tde?function(t){return typeof t=="symbol"}:function(t){var e=Ede("Symbol");return Cde(e)&&Ode(e.prototype,Pde(t))},Mde=String,hu=function(t){try{return Mde(t)}catch{return"Object"}},Ide=rn,Rde=hu,Dde=TypeError,bs=function(t){if(Ide(t))return t;throw new Dde(Rde(t)+" is not a function")},jde=bs,Ade=cu,Ek=function(t,e){var n=t[e];return Ade(n)?void 0:jde(n)},Ck=Sr,Ok=rn,Tk=an,Nde=TypeError,zde=function(t,e){var n,r;if(e==="string"&&Ok(n=t.toString)&&!Tk(r=Ck(n,t))||Ok(n=t.valueOf)&&!Tk(r=Ck(n,t))||e!=="string"&&Ok(n=t.toString)&&!Tk(r=Ck(n,t)))return r;throw new Nde("Can't convert object to primitive value")},YA={exports:{}},XA=Ct,Fde=Object.defineProperty,Lde=function(t,e){try{Fde(XA,t,{value:e,configurable:!0,writable:!0})}catch{XA[t]=e}return e},Bde=Ct,$de=Lde,GA="__core-js_shared__",Wde=Bde[GA]||$de(GA,{}),Pk=Wde,QA=Pk;(YA.exports=function(t,e){return QA[t]||(QA[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var fu=YA.exports,Hde=Jd,Ude=Object,or=function(t){return Ude(Hde(t))},Vde=He,qde=or,Kde=Vde({}.hasOwnProperty),sn=Object.hasOwn||function(t,e){return Kde(qde(t),e)},Yde=He,Xde=0,Gde=Math.random(),Qde=Yde(1 .toString),kv=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Qde(++Xde+Gde,36)},Jde=Ct,Zde=fu,JA=sn,ehe=kv,the=du,nhe=KA,pu=Jde.Symbol,Mk=Zde("wks"),rhe=nhe?pu.for||pu:pu&&pu.withoutSetter||ehe,Ot=function(t){return JA(Mk,t)||(Mk[t]=the&&JA(pu,t)?pu[t]:rhe("Symbol."+t)),Mk[t]},ohe=Sr,ZA=an,eN=th,ihe=Ek,ahe=zde,she=Ot,lhe=TypeError,uhe=she("toPrimitive"),che=function(t,e){if(!ZA(t)||eN(t))return t;var n=ihe(t,uhe),r;if(n){if(e===void 0&&(e="default"),r=ohe(n,t,e),!ZA(r)||eN(r))return r;throw new lhe("Can't convert object to primitive value")}return e===void 0&&(e="number"),ahe(t,e)},dhe=che,hhe=th,Sv=function(t){var e=dhe(t,"string");return hhe(e)?e:e+""},fhe=Ct,tN=an,Ik=fhe.document,phe=tN(Ik)&&tN(Ik.createElement),nN=function(t){return phe?Ik.createElement(t):{}},ghe=on,vhe=Be,mhe=nN,rN=!ghe&&!vhe(function(){return Object.defineProperty(mhe("div"),"a",{get:function(){return 7}}).a!==7}),yhe=on,bhe=Sr,whe=bv,xhe=Qd,khe=Bo,She=Sv,_he=sn,Ehe=rN,oN=Object.getOwnPropertyDescriptor;uu.f=yhe?oN:function(t,e){if(t=khe(t),e=She(e),Ehe)try{return oN(t,e)}catch{}if(_he(t,e))return xhe(!bhe(whe.f,t,e),t[e])};var Che=Be,Ohe=rn,The=/#|\.prototype\./,nh=function(t,e){var n=Mhe[Phe(t)];return n===Rhe?!0:n===Ihe?!1:Ohe(e)?Che(e):!!e},Phe=nh.normalize=function(t){return String(t).replace(The,".").toLowerCase()},Mhe=nh.data={},Ihe=nh.NATIVE="N",Rhe=nh.POLYFILL="P",Dhe=nh,iN=bk,jhe=bs,Ahe=Xd,Nhe=iN(iN.bind),rh=function(t,e){return jhe(t),e===void 0?t:Ahe?Nhe(t,e):function(){return t.apply(e,arguments)}},_r={},zhe=on,Fhe=Be,aN=zhe&&Fhe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Lhe=an,Bhe=String,$he=TypeError,Er=function(t){if(Lhe(t))return t;throw new $he(Bhe(t)+" is not an object")},Whe=on,Hhe=rN,Uhe=aN,_v=Er,sN=Sv,Vhe=TypeError,Rk=Object.defineProperty,qhe=Object.getOwnPropertyDescriptor,Dk="enumerable",jk="configurable",Ak="writable";_r.f=Whe?Uhe?function(t,e,n){if(_v(t),e=sN(e),_v(n),typeof t=="function"&&e==="prototype"&&"value"in n&&Ak in n&&!n[Ak]){var r=qhe(t,e);r&&r[Ak]&&(t[e]=n.value,n={configurable:jk in n?n[jk]:r[jk],enumerable:Dk in n?n[Dk]:r[Dk],writable:!1})}return Rk(t,e,n)}:Rk:function(t,e,n){if(_v(t),e=sN(e),_v(n),Hhe)try{return Rk(t,e,n)}catch{}if("get"in n||"set"in n)throw new Vhe("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Khe=on,Yhe=_r,Xhe=Qd,gu=Khe?function(t,e,n){return Yhe.f(t,e,Xhe(1,n))}:function(t,e,n){return t[e]=n,t},Ev=Ct,Ghe=Gd,Qhe=bk,Jhe=rn,Zhe=uu.f,efe=Dhe,vu=$e,tfe=rh,mu=gu,lN=sn,nfe=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return Ghe(t,this,arguments)};return e.prototype=t.prototype,e},ye=function(t,e){var n=t.target,r=t.global,o=t.stat,i=t.proto,a=r?Ev:o?Ev[n]:(Ev[n]||{}).prototype,s=r?vu:vu[n]||mu(vu,n,{})[n],l=s.prototype,u,c,h,d,f,p,g,b,m;for(d in e)u=efe(r?d:n+(o?".":"#")+d,t.forced),c=!u&&a&&lN(a,d),p=s[d],c&&(t.dontCallGetSet?(m=Zhe(a,d),g=m&&m.value):g=a[d]),f=c&&g?g:e[d],!(c&&typeof p==typeof f)&&(t.bind&&c?b=tfe(f,Ev):t.wrap&&c?b=nfe(f):i&&Jhe(f)?b=Qhe(f):b=f,(t.sham||f&&f.sham||p&&p.sham)&&mu(b,"sham",!0),mu(s,d,b),i&&(h=n+"Prototype",lN(vu,h)||mu(vu,h,{}),mu(vu[h],d,f),t.real&&l&&(u||!l[d])&&mu(l,d,f)))},rfe=Math.ceil,ofe=Math.floor,ife=Math.trunc||function(t){var e=+t;return(e>0?ofe:rfe)(e)},afe=ife,Cv=function(t){var e=+t;return e!==e||e===0?0:afe(e)},sfe=Cv,lfe=Math.max,ufe=Math.min,oh=function(t,e){var n=sfe(t);return n<0?lfe(n+e,0):ufe(n,e)},cfe=Cv,dfe=Math.min,hfe=function(t){return t>0?dfe(cfe(t),9007199254740991):0},ffe=hfe,Wr=function(t){return ffe(t.length)},pfe=Bo,gfe=oh,vfe=Wr,uN=function(t){return function(e,n,r){var o=pfe(e),i=vfe(o),a=gfe(r,i),s;if(t&&n!==n){for(;i>a;)if(s=o[a++],s!==s)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},Nk={includes:uN(!0),indexOf:uN(!1)},ih={},mfe=He,zk=sn,yfe=Bo,bfe=Nk.indexOf,wfe=ih,cN=mfe([].push),dN=function(t,e){var n=yfe(t),r=0,o=[],i;for(i in n)!zk(wfe,i)&&zk(n,i)&&cN(o,i);for(;e.length>r;)zk(n,i=e[r++])&&(~bfe(o,i)||cN(o,i));return o},Fk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xfe=dN,kfe=Fk,Ov=Object.keys||function(t){return xfe(t,kfe)},ah={};ah.f=Object.getOwnPropertySymbols;var hN=on,Sfe=He,_fe=Sr,Efe=Be,Lk=Ov,Cfe=ah,Ofe=bv,Tfe=or,Pfe=wv,yu=Object.assign,fN=Object.defineProperty,Mfe=Sfe([].concat),Ife=!yu||Efe(function(){if(hN&&yu({b:1},yu(fN({},"a",{enumerable:!0,get:function(){fN(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),yu({},t)[n]!==7||Lk(yu({},e)).join("")!==r})?function(t,e){for(var n=Tfe(t),r=arguments.length,o=1,i=Cfe.f,a=Ofe.f;r>o;)for(var s=Pfe(arguments[o++]),l=i?Mfe(Lk(s),i(s)):Lk(s),u=l.length,c=0,h;u>c;)h=l[c++],(!hN||_fe(a,s,h))&&(n[h]=s[h]);return n}:yu,Rfe=ye,pN=Ife;Rfe({target:"Object",stat:!0,arity:2,forced:Object.assign!==pN},{assign:pN});var Dfe=$e,jfe=Dfe.Object.assign,Afe=jfe,Nfe=Afe,zfe=Nfe,Ut=he(zfe),Ffe=He,Tv=Ffe([].slice),gN=He,Lfe=bs,Bfe=an,$fe=sn,vN=Tv,Wfe=Xd,mN=Function,Hfe=gN([].concat),Ufe=gN([].join),Bk={},Vfe=function(t,e,n){if(!$fe(Bk,e)){for(var r=[],o=0;o=.1;)p=+i[h++%a],p>c&&(p=c),f=Math.sqrt(p*p/(1+u*u)),f=s<0?-f:f,e+=f,n+=u*f,d===!0?t.lineTo(e,n):t.moveTo(e,n),c-=p,d=!d}function ape(t,e,n,r){t.beginPath();var o=6,i=Math.PI*2/o;t.moveTo(e+r,n);for(var a=1;a1?n-1:0),o=1;o=i?t?"":void 0:(a=TN(r,o),a<55296||a>56319||o+1===i||(s=TN(r,o+1))<56320||s>57343?t?Spe(r,o):a:t?_pe(r,o,o+2):(a-55296<<10)+(s-56320)+65536)}},Epe={codeAt:PN(!1),charAt:PN(!0)},Cpe=Ct,Ope=rn,MN=Cpe.WeakMap,IN=Ope(MN)&&/native code/.test(String(MN)),Tpe=fu,Ppe=kv,RN=Tpe("keys"),Mv=function(t){return RN[t]||(RN[t]=Ppe(t))},Mpe=IN,DN=Ct,Ipe=an,Rpe=gu,qk=sn,Kk=Pk,Dpe=Mv,jpe=ih,jN="Object already initialized",Yk=DN.TypeError,Ape=DN.WeakMap,Iv,sh,Rv,Npe=function(t){return Rv(t)?sh(t):Iv(t,{})},zpe=function(t){return function(e){var n;if(!Ipe(e)||(n=sh(e)).type!==t)throw new Yk("Incompatible receiver, "+t+" required");return n}};if(Mpe||Kk.state){var Wo=Kk.state||(Kk.state=new Ape);Wo.get=Wo.get,Wo.has=Wo.has,Wo.set=Wo.set,Iv=function(t,e){if(Wo.has(t))throw new Yk(jN);return e.facade=t,Wo.set(t,e),e},sh=function(t){return Wo.get(t)||{}},Rv=function(t){return Wo.has(t)}}else{var bu=Dpe("state");jpe[bu]=!0,Iv=function(t,e){if(qk(t,bu))throw new Yk(jN);return e.facade=t,Rpe(t,bu,e),e},sh=function(t){return qk(t,bu)?t[bu]:{}},Rv=function(t){return qk(t,bu)}}var xs={set:Iv,get:sh,has:Rv,enforce:Npe,getterFor:zpe},Xk=on,Fpe=sn,AN=Function.prototype,Lpe=Xk&&Object.getOwnPropertyDescriptor,Gk=Fpe(AN,"name"),Bpe=Gk&&(function(){}).name==="something",$pe=Gk&&(!Xk||Xk&&Lpe(AN,"name").configurable),Wpe={EXISTS:Gk,PROPER:Bpe,CONFIGURABLE:$pe},Dv={},Hpe=on,Upe=aN,Vpe=_r,qpe=Er,Kpe=Bo,Ype=Ov;Dv.f=Hpe&&!Upe?Object.defineProperties:function(t,e){qpe(t);for(var n=Kpe(e),r=Ype(e),o=r.length,i=0,a;o>i;)Vpe.f(t,a=r[i++],n[a]);return t};var Xpe=$r,Gpe=Xpe("document","documentElement"),Qpe=Er,Jpe=Dv,NN=Fk,Zpe=ih,ege=Gpe,tge=nN,nge=Mv,zN=">",FN="<",Qk="prototype",Jk="script",LN=nge("IE_PROTO"),Zk=function(){},BN=function(t){return FN+Jk+zN+t+FN+"/"+Jk+zN},$N=function(t){t.write(BN("")),t.close();var e=t.parentWindow.Object;return t=null,e},rge=function(){var t=tge("iframe"),e="java"+Jk+":",n;return t.style.display="none",ege.appendChild(t),t.src=String(e),n=t.contentWindow.document,n.open(),n.write(BN("document.F=Object")),n.close(),n.F},jv,Av=function(){try{jv=new ActiveXObject("htmlfile")}catch{}Av=typeof document<"u"?document.domain&&jv?$N(jv):rge():$N(jv);for(var t=NN.length;t--;)delete Av[Qk][NN[t]];return Av()};Zpe[LN]=!0;var wu=Object.create||function(t,e){var n;return t!==null?(Zk[Qk]=Qpe(t),n=new Zk,Zk[Qk]=null,n[LN]=t):n=Av(),e===void 0?n:Jpe.f(n,e)},oge=Be,WN=!oge(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),ige=sn,age=rn,sge=or,lge=Mv,uge=WN,HN=lge("IE_PROTO"),eS=Object,cge=eS.prototype,Nv=uge?eS.getPrototypeOf:function(t){var e=sge(t);if(ige(e,HN))return e[HN];var n=e.constructor;return age(n)&&e instanceof n?n.prototype:e instanceof eS?cge:null},dge=gu,lh=function(t,e,n,r){return r&&r.enumerable?t[e]=n:dge(t,e,n),t},hge=Be,fge=rn,pge=an,gge=wu,UN=Nv,vge=lh,mge=Ot,tS=mge("iterator"),VN=!1,Ei,nS,rS;[].keys&&(rS=[].keys(),"next"in rS?(nS=UN(UN(rS)),nS!==Object.prototype&&(Ei=nS)):VN=!0);var yge=!pge(Ei)||hge(function(){var t={};return Ei[tS].call(t)!==t});yge?Ei={}:Ei=gge(Ei),fge(Ei[tS])||vge(Ei,tS,function(){return this});var qN={IteratorPrototype:Ei,BUGGY_SAFARI_ITERATORS:VN},bge=Uk,wge=ws,xge=bge?{}.toString:function(){return"[object "+wge(this)+"]"},kge=Uk,Sge=_r.f,_ge=gu,Ege=sn,Cge=xge,Oge=Ot,KN=Oge("toStringTag"),xu=function(t,e,n,r){if(t){var o=n?t:t.prototype;Ege(o,KN)||Sge(o,KN,{configurable:!0,value:e}),r&&!kge&&_ge(o,"toString",Cge)}},ku={},Tge=qN.IteratorPrototype,Pge=wu,Mge=Qd,Ige=xu,Rge=ku,Dge=function(){return this},jge=function(t,e,n,r){var o=e+" Iterator";return t.prototype=Pge(Tge,{next:Mge(+!r,n)}),Ige(t,o,!1,!0),Rge[o]=Dge,t},Age=He,Nge=bs,zge=function(t,e,n){try{return Age(Nge(Object.getOwnPropertyDescriptor(t,e)[n]))}catch{}},Fge=rn,Lge=String,Bge=TypeError,$ge=function(t){if(typeof t=="object"||Fge(t))return t;throw new Bge("Can't set "+Lge(t)+" as a prototype")},Wge=zge,Hge=Er,Uge=$ge,Vge=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},n;try{n=Wge(Object.prototype,"__proto__","set"),n(e,[]),t=e instanceof Array}catch{}return function(r,o){return Hge(r),Uge(o),t?n(r,o):r.__proto__=o,r}}():void 0),qge=ye,Kge=Sr,Yge=Wpe,Xge=jge,Gge=Nv,Qge=xu,YN=lh,Jge=Ot,XN=ku,Zge=qN,eve=Yge.PROPER,zv=Zge.BUGGY_SAFARI_ITERATORS,oS=Jge("iterator"),GN="keys",Fv="values",QN="entries",tve=function(){return this},iS=function(t,e,n,r,o,i,a){Xge(n,e,r);var s=function(m){if(m===o&&d)return d;if(!zv&&m&&m in c)return c[m];switch(m){case GN:return function(){return new n(this,m)};case Fv:return function(){return new n(this,m)};case QN:return function(){return new n(this,m)}}return function(){return new n(this)}},l=e+" Iterator",u=!1,c=t.prototype,h=c[oS]||c["@@iterator"]||o&&c[o],d=!zv&&h||s(o),f=e==="Array"&&c.entries||h,p,g,b;if(f&&(p=Gge(f.call(new t)),p!==Object.prototype&&p.next&&(Qge(p,l,!0,!0),XN[l]=tve)),eve&&o===Fv&&h&&h.name!==Fv&&(u=!0,d=function(){return Kge(h,this)}),o)if(g={values:s(Fv),keys:i?d:s(GN),entries:s(QN)},a)for(b in g)(zv||u||!(b in c))&&YN(c,b,g[b]);else qge({target:e,proto:!0,forced:zv||u},g);return a&&c[oS]!==d&&YN(c,oS,d,{name:o}),XN[e]=d,g},aS=function(t,e){return{value:t,done:e}},nve=Epe.charAt,rve=$o,JN=xs,ove=iS,ZN=aS,ez="String Iterator",ive=JN.set,ave=JN.getterFor(ez);ove(String,"String",function(t){ive(this,{type:ez,string:rve(t),index:0})},function(){var t=ave(this),e=t.string,n=t.index,r;return n>=e.length?ZN(void 0,!0):(r=nve(e,n),t.index+=r.length,ZN(r,!1))});var sve=Sr,tz=Er,lve=Ek,nz=function(t,e,n){var r,o;tz(t);try{if(r=lve(t,"return"),!r){if(e==="throw")throw n;return n}r=sve(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return tz(r),n},uve=Er,cve=nz,dve=function(t,e,n,r){try{return r?e(uve(n)[0],n[1]):e(n)}catch(o){cve(t,"throw",o)}},hve=Ot,fve=ku,pve=hve("iterator"),gve=Array.prototype,rz=function(t){return t!==void 0&&(fve.Array===t||gve[pve]===t)},vve=He,mve=rn,sS=Pk,yve=vve(Function.toString);mve(sS.inspectSource)||(sS.inspectSource=function(t){return yve(t)});var bve=sS.inspectSource,wve=He,xve=Be,oz=rn,kve=ws,Sve=$r,_ve=bve,iz=function(){},Eve=[],az=Sve("Reflect","construct"),lS=/^\s*(?:class|function)\b/,Cve=wve(lS.exec),Ove=!lS.test(iz),uh=function(t){if(!oz(t))return!1;try{return az(iz,Eve,t),!0}catch{return!1}},sz=function(t){if(!oz(t))return!1;switch(kve(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ove||!!Cve(lS,_ve(t))}catch{return!0}};sz.sham=!0;var Lv=!az||xve(function(){var t;return uh(uh.call)||!uh(Object)||!uh(function(){t=!0})||t})?sz:uh,Tve=Sv,Pve=_r,Mve=Qd,Su=function(t,e,n){var r=Tve(e);r in t?Pve.f(t,r,Mve(0,n)):t[r]=n},Ive=ws,lz=Ek,Rve=cu,Dve=ku,jve=Ot,Ave=jve("iterator"),Bv=function(t){if(!Rve(t))return lz(t,Ave)||lz(t,"@@iterator")||Dve[Ive(t)]},Nve=Sr,zve=bs,Fve=Er,Lve=hu,Bve=Bv,$ve=TypeError,uz=function(t,e){var n=arguments.length<2?Bve(t):e;if(zve(n))return Fve(Nve(n,t));throw new $ve(Lve(t)+" is not iterable")},Wve=rh,Hve=Sr,Uve=or,Vve=dve,qve=rz,Kve=Lv,Yve=Wr,cz=Su,Xve=uz,Gve=Bv,dz=Array,Qve=function(t){var e=Uve(t),n=Kve(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Wve(o,r>2?arguments[2]:void 0));var a=Gve(e),s=0,l,u,c,h,d,f;if(a&&!(this===dz&&qve(a)))for(h=Xve(e,a),d=h.next,u=n?new this:[];!(c=Hve(d,h)).done;s++)f=i?Vve(h,o,[c.value,s],!0):c.value,cz(u,s,f);else for(l=Yve(e),u=n?new this(l):dz(l);l>s;s++)f=i?o(e[s],s):e[s],cz(u,s,f);return u.length=s,u},Jve=Ot,hz=Jve("iterator"),fz=!1;try{var Zve=0,pz={next:function(){return{done:!!Zve++}},return:function(){fz=!0}};pz[hz]=function(){return this},Array.from(pz,function(){throw 2})}catch{}var eme=function(t,e){try{if(!e&&!fz)return!1}catch{return!1}var n=!1;try{var r={};r[hz]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},tme=ye,nme=Qve,rme=eme,ome=!rme(function(t){Array.from(t)});tme({target:"Array",stat:!0,forced:ome},{from:nme});var ime=$e,ame=ime.Array.from,sme=ame,gz=sme,lme=gz,ks=he(lme),ume=Bo,vz=ku,mz=xs;_r.f;var cme=iS,$v=aS,yz="Array Iterator",dme=mz.set,hme=mz.getterFor(yz);cme(Array,"Array",function(t,e){dme(this,{type:yz,target:ume(t),index:0,kind:e})},function(){var t=hme(this),e=t.target,n=t.kind,r=t.index++;if(!e||r>=e.length)return t.target=void 0,$v(void 0,!0);switch(n){case"keys":return $v(r,!1);case"values":return $v(e[r],!1)}return $v([r,e[r]],!1)},"values"),vz.Arguments=vz.Array;var fme=Bv,pme=fme,gme={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},vme=gme,mme=Ct,yme=ws,bme=gu,bz=ku,wme=Ot,wz=wme("toStringTag");for(var uS in vme){var xz=mme[uS],cS=xz&&xz.prototype;cS&&yme(cS)!==wz&&bme(cS,wz,uS),bz[uS]=bz.Array}var xme=pme,kme=xme,Sme=kme,_me=Sme,Eme=_me,Cme=Eme,kz=Cme,Sz=he(kz),Ome=kz,Ss=he(Ome);function Z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _z={exports:{}},Tme=ye,Pme=on,Ez=_r.f;Tme({target:"Object",stat:!0,forced:Object.defineProperty!==Ez,sham:!Pme},{defineProperty:Ez});var Mme=$e,Cz=Mme.Object,Ime=_z.exports=function(t,e,n){return Cz.defineProperty(t,e,n)};Cz.defineProperty.sham&&(Ime.sham=!0);var Rme=_z.exports,Dme=Rme,Oz=Dme,jme=Oz,Ame=jme,Nme=Ame,zme=Nme,Fme=zme,Wv=he(Fme),Lme=_i,_s=Array.isArray||function(t){return Lme(t)==="Array"},Bme=TypeError,$me=9007199254740991,dS=function(t){if(t>$me)throw Bme("Maximum allowed index exceeded");return t},Tz=_s,Wme=Lv,Hme=an,Ume=Ot,Vme=Ume("species"),Pz=Array,qme=function(t){var e;return Tz(t)&&(e=t.constructor,Wme(e)&&(e===Pz||Tz(e.prototype))?e=void 0:Hme(e)&&(e=e[Vme],e===null&&(e=void 0))),e===void 0?Pz:e},Kme=qme,hS=function(t,e){return new(Kme(t))(e===0?0:e)},Yme=Be,Xme=Ot,Gme=eh,Qme=Xme("species"),ch=function(t){return Gme>=51||!Yme(function(){var e=[],n=e.constructor={};return n[Qme]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Jme=ye,Zme=Be,eye=_s,tye=an,nye=or,rye=Wr,Mz=dS,Iz=Su,oye=hS,iye=ch,aye=Ot,sye=eh,Rz=aye("isConcatSpreadable"),lye=sye>=51||!Zme(function(){var t=[];return t[Rz]=!1,t.concat()[0]!==t}),uye=function(t){if(!tye(t))return!1;var e=t[Rz];return e!==void 0?!!e:eye(t)},cye=!lye||!iye("concat");Jme({target:"Array",proto:!0,arity:1,forced:cye},{concat:function(t){var e=nye(this),n=oye(e,0),r=0,o,i,a,s,l;for(o=-1,a=arguments.length;ob;b++)if((s||b in f)&&(y=f[b],x=p(y,b,d),t))if(e)v[b]=x;else if(x)switch(t){case 3:return!0;case 5:return y;case 6:return b;case 2:Lz(v,y)}else switch(t){case 4:return!1;case 7:Lz(v,y)}return i?-1:r||o?o:v}},ya={forEach:ma(0),map:ma(1),filter:ma(2),some:ma(3),every:ma(4),find:ma(5),findIndex:ma(6),filterReject:ma(7)},Uv=ye,Vv=Ct,pS=Sr,zye=He,_u=on,Eu=du,Fye=Be,un=sn,Lye=Nt,gS=Er,qv=Bo,vS=Sv,Bye=$o,mS=Qd,fh=wu,Bz=Ov,$ye=dh,$z=Hv,Wye=ah,Wz=uu,Hz=_r,Hye=Dv,Uz=bv,Vz=lh,Uye=fS,yS=fu,Vye=Mv,qz=ih,Kz=kv,qye=Ot,Kye=hh,Yye=Tt,Xye=Fz,Gye=xu,Yz=xs,Kv=ya.forEach,ir=Vye("hidden"),Yv="Symbol",ph="prototype",Qye=Yz.set,Xz=Yz.getterFor(Yv),bo=Object[ph],Es=Vv.Symbol,gh=Es&&Es[ph],Jye=Vv.RangeError,Zye=Vv.TypeError,bS=Vv.QObject,Gz=Wz.f,Cs=Hz.f,Qz=$z.f,e0e=Uz.f,Jz=zye([].push),Ci=yS("symbols"),vh=yS("op-symbols"),t0e=yS("wks"),wS=!bS||!bS[ph]||!bS[ph].findChild,Zz=function(t,e,n){var r=Gz(bo,e);r&&delete bo[e],Cs(t,e,n),r&&t!==bo&&Cs(bo,e,r)},xS=_u&&Fye(function(){return fh(Cs({},"a",{get:function(){return Cs(this,"a",{value:7}).a}})).a!==7})?Zz:Cs,kS=function(t,e){var n=Ci[t]=fh(gh);return Qye(n,{type:Yv,tag:t,description:e}),_u||(n.description=e),n},Xv=function(t,e,n){t===bo&&Xv(vh,e,n),gS(t);var r=vS(e);return gS(n),un(Ci,r)?(n.enumerable?(un(t,ir)&&t[ir][r]&&(t[ir][r]=!1),n=fh(n,{enumerable:mS(0,!1)})):(un(t,ir)||Cs(t,ir,mS(1,{})),t[ir][r]=!0),xS(t,r,n)):Cs(t,r,n)},SS=function(t,e){gS(t);var n=qv(e),r=Bz(n).concat(rF(n));return Kv(r,function(o){(!_u||pS(eF,n,o))&&Xv(t,o,n[o])}),t},n0e=function(t,e){return e===void 0?fh(t):SS(fh(t),e)},eF=function(t){var e=vS(t),n=pS(e0e,this,e);return this===bo&&un(Ci,e)&&!un(vh,e)?!1:n||!un(this,e)||!un(Ci,e)||un(this,ir)&&this[ir][e]?n:!0},tF=function(t,e){var n=qv(t),r=vS(e);if(!(n===bo&&un(Ci,r)&&!un(vh,r))){var o=Gz(n,r);return o&&un(Ci,r)&&!(un(n,ir)&&n[ir][r])&&(o.enumerable=!0),o}},nF=function(t){var e=Qz(qv(t)),n=[];return Kv(e,function(r){!un(Ci,r)&&!un(qz,r)&&Jz(n,r)}),n},rF=function(t){var e=t===bo,n=Qz(e?vh:qv(t)),r=[];return Kv(n,function(o){un(Ci,o)&&(!e||un(bo,o))&&Jz(r,Ci[o])}),r};Eu||(Es=function(){if(Lye(gh,this))throw new Zye("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:Bye(arguments[0]),e=Kz(t),n=function(r){this===bo&&pS(n,vh,r),un(this,ir)&&un(this[ir],e)&&(this[ir][e]=!1);var o=mS(1,r);try{xS(this,e,o)}catch(i){if(!(i instanceof Jye))throw i;Zz(this,e,o)}};return _u&&wS&&xS(bo,e,{configurable:!0,set:n}),kS(e,t)},gh=Es[ph],Vz(gh,"toString",function(){return Xz(this).tag}),Vz(Es,"withoutSetter",function(t){return kS(Kz(t),t)}),Uz.f=eF,Hz.f=Xv,Hye.f=SS,Wz.f=tF,$ye.f=$z.f=nF,Wye.f=rF,Kye.f=function(t){return kS(qye(t),t)},_u&&Uye(gh,"description",{configurable:!0,get:function(){return Xz(this).description}})),Uv({global:!0,constructor:!0,wrap:!0,forced:!Eu,sham:!Eu},{Symbol:Es}),Kv(Bz(t0e),function(t){Yye(t)}),Uv({target:Yv,stat:!0,forced:!Eu},{useSetter:function(){wS=!0},useSimple:function(){wS=!1}}),Uv({target:"Object",stat:!0,forced:!Eu,sham:!_u},{create:n0e,defineProperty:Xv,defineProperties:SS,getOwnPropertyDescriptor:tF}),Uv({target:"Object",stat:!0,forced:!Eu},{getOwnPropertyNames:nF}),Xye(),Gye(Es,Yv),qz[ir]=!0;var r0e=du,oF=r0e&&!!Symbol.for&&!!Symbol.keyFor,o0e=ye,i0e=$r,a0e=sn,s0e=$o,iF=fu,l0e=oF,_S=iF("string-to-symbol-registry"),u0e=iF("symbol-to-string-registry");o0e({target:"Symbol",stat:!0,forced:!l0e},{for:function(t){var e=s0e(t);if(a0e(_S,e))return _S[e];var n=i0e("Symbol")(e);return _S[e]=n,u0e[n]=e,n}});var c0e=ye,d0e=sn,h0e=th,f0e=hu,p0e=fu,g0e=oF,aF=p0e("symbol-to-string-registry");c0e({target:"Symbol",stat:!0,forced:!g0e},{keyFor:function(t){if(!h0e(t))throw new TypeError(f0e(t)+" is not a symbol");if(d0e(aF,t))return aF[t]}});var v0e=He,sF=_s,m0e=rn,lF=_i,y0e=$o,uF=v0e([].push),b0e=function(t){if(m0e(t))return t;if(sF(t)){for(var e=t.length,n=[],r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)}});var Hwe=ln,Uwe=Hwe("Array").map,Vwe=Nt,qwe=Uwe,DS=Array.prototype,Kwe=function(t){var e=t.map;return t===DS||Vwe(DS,t)&&e===DS.map?qwe:e},Ywe=Kwe,Xwe=Ywe,Gwe=Xwe,Ou=he(Gwe),Qwe=ye,Jwe=or,HF=Ov,Zwe=Be,exe=Zwe(function(){HF(1)});Qwe({target:"Object",stat:!0,forced:exe},{keys:function(t){return HF(Jwe(t))}});var txe=$e,nxe=txe.Object.keys,rxe=nxe,oxe=rxe,ixe=oxe,Mt=he(ixe),axe=ye,sxe=He,UF=Date,lxe=sxe(UF.prototype.getTime);axe({target:"Date",stat:!0},{now:function(){return lxe(new UF)}});var uxe=$e,cxe=uxe.Date.now,dxe=cxe,hxe=dxe,fxe=hxe,Jv=he(fxe),pxe=Be,Tu=function(t,e){var n=[][t];return!!n&&pxe(function(){n.call(null,e||function(){return 1},1)})},gxe=ya.forEach,vxe=Tu,mxe=vxe("forEach"),yxe=mxe?[].forEach:function(t){return gxe(this,t,arguments.length>1?arguments[1]:void 0)},bxe=ye,VF=yxe;bxe({target:"Array",proto:!0,forced:[].forEach!==VF},{forEach:VF});var wxe=ln,xxe=wxe("Array").forEach,kxe=xxe,Sxe=kxe,_xe=ws,Exe=sn,Cxe=Nt,Oxe=Sxe,jS=Array.prototype,Txe={DOMTokenList:!0,NodeList:!0},Pxe=function(t){var e=t.forEach;return t===jS||Cxe(jS,t)&&e===jS.forEach||Exe(Txe,_xe(t))?Oxe:e},Mxe=Pxe,tt=he(Mxe),Ixe=ye,Rxe=He,Dxe=_s,jxe=Rxe([].reverse),qF=[1,2];Ixe({target:"Array",proto:!0,forced:String(qF)===String(qF.reverse())},{reverse:function(){return Dxe(this)&&(this.length=this.length),jxe(this)}});var Axe=ln,Nxe=Axe("Array").reverse,zxe=Nt,Fxe=Nxe,AS=Array.prototype,Lxe=function(t){var e=t.reverse;return t===AS||zxe(AS,t)&&e===AS.reverse?Fxe:e},Bxe=Lxe,$xe=Bxe,Wxe=$xe,Os=he(Wxe),KF=hu,Hxe=TypeError,YF=function(t,e){if(!delete t[e])throw new Hxe("Cannot delete property "+KF(e)+" of "+KF(t))},Uxe=ye,Vxe=or,qxe=oh,Kxe=Cv,Yxe=Wr,Xxe=zF,Gxe=dS,Qxe=hS,Jxe=Su,NS=YF,Zxe=ch,eke=Zxe("splice"),tke=Math.max,nke=Math.min;Uxe({target:"Array",proto:!0,forced:!eke},{splice:function(t,e){var n=Vxe(this),r=Yxe(n),o=qxe(t,r),i=arguments.length,a,s,l,u,c,h;for(i===0?a=s=0:i===1?(a=0,s=r-o):(a=i-2,s=nke(tke(Kxe(e),0),r-o)),Gxe(r+a-s),l=Qxe(n,s),u=0;ur-s+a;u--)NS(n,u-1)}else if(a>s)for(u=r-s;u>o;u--)c=u+s-1,h=u+a-1,c in n?n[h]=n[c]:NS(n,h);for(u=0;u1?arguments[1]:void 0)}});var gke=ln,vke=gke("Array").includes,mke=an,yke=_i,bke=Ot,wke=bke("match"),xke=function(t){var e;return mke(t)&&((e=t[wke])!==void 0?!!e:yke(t)==="RegExp")},kke=xke,Ske=TypeError,_ke=function(t){if(kke(t))throw new Ske("The method doesn't accept regular expressions");return t},Eke=Ot,Cke=Eke("match"),Oke=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[Cke]=!1,"/./"[t](e)}catch{}}return!1},Tke=ye,Pke=He,Mke=_ke,Ike=Jd,XF=$o,Rke=Oke,Dke=Pke("".indexOf);Tke({target:"String",proto:!0,forced:!Rke("includes")},{includes:function(t){return!!~Dke(XF(Ike(this)),XF(Mke(t)),arguments.length>1?arguments[1]:void 0)}});var jke=ln,Ake=jke("String").includes,GF=Nt,Nke=vke,zke=Ake,FS=Array.prototype,LS=String.prototype,Fke=function(t){var e=t.includes;return t===FS||GF(FS,t)&&e===FS.includes?Nke:typeof t=="string"||t===LS||GF(LS,t)&&e===LS.includes?zke:e},Lke=Fke,Bke=Lke,$ke=Bke,xa=he($ke),Wke=ye,Hke=Be,Uke=or,QF=Nv,Vke=WN,qke=Hke(function(){QF(1)});Wke({target:"Object",stat:!0,forced:qke,sham:!Vke},{getPrototypeOf:function(t){return QF(Uke(t))}});var Kke=$e,Yke=Kke.Object.getPrototypeOf,Xke=Yke,JF=Xke,Gke=JF,ZF=he(Gke),Qke=ye,Jke=ya.filter,Zke=ch,eSe=Zke("filter");Qke({target:"Array",proto:!0,forced:!eSe},{filter:function(t){return Jke(this,t,arguments.length>1?arguments[1]:void 0)}});var tSe=ln,nSe=tSe("Array").filter,rSe=Nt,oSe=nSe,BS=Array.prototype,iSe=function(t){var e=t.filter;return t===BS||rSe(BS,t)&&e===BS.filter?oSe:e},aSe=iSe,sSe=aSe,lSe=sSe,ar=he(lSe),$S=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,uSe=He,cSe=Jd,dSe=$o,WS=$S,eL=uSe("".replace),hSe=RegExp("^["+WS+"]+"),fSe=RegExp("(^|[^"+WS+"])["+WS+"]+$"),HS=function(t){return function(e){var n=dSe(cSe(e));return t&1&&(n=eL(n,hSe,"")),t&2&&(n=eL(n,fSe,"$1")),n}},tL={start:HS(1),end:HS(2),trim:HS(3)},nL=Ct,pSe=Be,gSe=He,vSe=$o,mSe=tL.trim,rL=$S,yh=nL.parseInt,oL=nL.Symbol,iL=oL&&oL.iterator,aL=/^[+-]?0x/i,ySe=gSe(aL.exec),bSe=yh(rL+"08")!==8||yh(rL+"0x16")!==22||iL&&!pSe(function(){yh(Object(iL))}),wSe=bSe?function(t,e){var n=mSe(vSe(t));return yh(n,e>>>0||(ySe(aL,n)?16:10))}:yh,xSe=ye,sL=wSe;xSe({global:!0,forced:parseInt!==sL},{parseInt:sL});var kSe=$e,SSe=kSe.parseInt,_Se=SSe,ESe=_Se,CSe=ESe,wo=he(CSe),OSe=ye,TSe=bk,PSe=Nk.indexOf,MSe=Tu,US=TSe([].indexOf),lL=!!US&&1/US([1],1,-0)<0,ISe=lL||!MSe("indexOf");OSe({target:"Array",proto:!0,forced:ISe},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return lL?US(this,t,e)||0:PSe(this,t,e)}});var RSe=ln,DSe=RSe("Array").indexOf,jSe=Nt,ASe=DSe,VS=Array.prototype,NSe=function(t){var e=t.indexOf;return t===VS||jSe(VS,t)&&e===VS.indexOf?ASe:e},zSe=NSe,FSe=zSe,LSe=FSe,We=he(LSe),BSe=ye,$Se=on,WSe=wu;BSe({target:"Object",stat:!0,sham:!$Se},{create:WSe});var HSe=$e,USe=HSe.Object,VSe=function(t,e){return USe.create(t,e)},qSe=VSe,uL=qSe,KSe=uL,Ts=he(KSe),qS=$e,YSe=Gd;qS.JSON||(qS.JSON={stringify:JSON.stringify});var XSe=function(t,e,n){return YSe(qS.JSON.stringify,null,arguments)},GSe=XSe,QSe=GSe,JSe=QSe,bh=he(JSe),ZSe=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",e_e=TypeError,t_e=function(t,e){if(tn,a=r_e(r)?r:l_e(r),s=i?a_e(arguments,n):[],l=i?function(){n_e(a,this,s)}:a;return e?t(l,o):t(l)}:t},c_e=ye,hL=Ct,d_e=dL,fL=d_e(hL.setInterval,!0);c_e({global:!0,bind:!0,forced:hL.setInterval!==fL},{setInterval:fL});var h_e=ye,pL=Ct,f_e=dL,gL=f_e(pL.setTimeout,!0);h_e({global:!0,bind:!0,forced:pL.setTimeout!==gL},{setTimeout:gL});var p_e=$e,g_e=p_e.setTimeout,v_e=g_e,Uo=he(v_e),m_e=or,vL=oh,y_e=Wr,b_e=function(t){for(var e=m_e(this),n=y_e(e),r=arguments.length,o=vL(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=i===void 0?n:vL(i,n);a>o;)e[o++]=t;return e},w_e=ye,x_e=b_e;w_e({target:"Array",proto:!0},{fill:x_e});var k_e=ln,S_e=k_e("Array").fill,__e=Nt,E_e=S_e,KS=Array.prototype,C_e=function(t){var e=t.fill;return t===KS||__e(KS,t)&&e===KS.fill?E_e:e},O_e=C_e,T_e=O_e,P_e=T_e,wh=he(P_e);function xo(){return xo=Object.assign||function(t){for(var e=1;e"u"?{style:{}}:document.createElement("div"),I_e="function",Pu=Math.round,Ms=Math.abs,XS=Date.now;function em(t,e){for(var n,r,o=e[0].toUpperCase()+e.slice(1),i=0;i"u"?Ti={}:Ti=window;var yL=em(M_e.style,"touchAction"),bL=yL!==void 0;function R_e(){if(!bL)return!1;var t={},e=Ti.CSS&&Ti.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=e?Ti.CSS.supports("touch-action",n):!0}),t}var wL="compute",xL="auto",GS="manipulation",Is="none",xh="pan-x",kh="pan-y",tm=R_e(),D_e=/mobile|tablet|ip(ad|hone|od)|android/i,kL="ontouchstart"in Ti,j_e=em(Ti,"PointerEvent")!==void 0,A_e=kL&&D_e.test(navigator.userAgent),Sh="touch",N_e="pen",QS="mouse",z_e="kinect",F_e=25,Bn=1,Rs=2,Vt=4,sr=8,nm=1,_h=2,Eh=4,Ch=8,Mu=16,Vo=_h|Eh,Ds=Ch|Mu,SL=Vo|Ds,_L=["x","y"],rm=["clientX","clientY"];function Pi(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==void 0)for(r=0;r-1}function L_e(t){if(js(t,Is))return Is;var e=js(t,xh),n=js(t,kh);return e&&n?Is:e||n?e?xh:kh:js(t,GS)?GS:xL}var EL=function(){function t(n,r){this.manager=n,this.set(r)}var e=t.prototype;return e.set=function(n){n===wL&&(n=this.compute()),bL&&this.manager.element.style&&tm[n]&&(this.manager.element.style[yL]=n),this.actions=n.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var n=[];return Pi(this.manager.recognizers,function(r){om(r.options.enable,[r])&&(n=n.concat(r.getTouchAction()))}),L_e(n.join(" "))},e.preventDefaults=function(n){var r=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){r.preventDefault();return}var i=this.actions,a=js(i,Is)&&!tm[Is],s=js(i,kh)&&!tm[kh],l=js(i,xh)&&!tm[xh];if(a){var u=n.pointers.length===1,c=n.distance<2,h=n.deltaTime<250;if(u&&c&&h)return}if(!(l&&s)&&(a||s&&o&Vo||l&&o&Ds))return this.preventSrc(r)},e.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function JS(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function CL(t){var e=t.length;if(e===1)return{x:Pu(t[0].clientX),y:Pu(t[0].clientY)};for(var n=0,r=0,o=0;o=Ms(e)?t<0?_h:Eh:e<0?Ch:Mu}function B_e(t,e){var n=e.center,r=t.offsetDelta||{},o=t.prevDelta||{},i=t.prevInput||{};(e.eventType===Bn||i.eventType===Vt)&&(o=t.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-r.x),e.deltaY=o.y+(n.y-r.y)}function PL(t,e,n){return{x:e/t||0,y:n/t||0}}function $_e(t,e){return im(e[0],e[1],rm)/im(t[0],t[1],rm)}function W_e(t,e){return ZS(e[1],e[0],rm)+ZS(t[1],t[0],rm)}function H_e(t,e){var n=t.lastInterval||e,r=e.timeStamp-n.timeStamp,o,i,a,s;if(e.eventType!==sr&&(r>F_e||n.velocity===void 0)){var l=e.deltaX-n.deltaX,u=e.deltaY-n.deltaY,c=PL(r,l,u);i=c.x,a=c.y,o=Ms(c.x)>Ms(c.y)?c.x:c.y,s=TL(l,u),t.lastInterval=e}else o=n.velocity,i=n.velocityX,a=n.velocityY,s=n.direction;e.velocity=o,e.velocityX=i,e.velocityY=a,e.direction=s}function U_e(t,e){var n=t.session,r=e.pointers,o=r.length;n.firstInput||(n.firstInput=OL(e)),o>1&&!n.firstMultiple?n.firstMultiple=OL(e):o===1&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,s=a?a.center:i.center,l=e.center=CL(r);e.timeStamp=XS(),e.deltaTime=e.timeStamp-i.timeStamp,e.angle=ZS(s,l),e.distance=im(s,l),B_e(n,e),e.offsetDirection=TL(e.deltaX,e.deltaY);var u=PL(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=Ms(u.x)>Ms(u.y)?u.x:u.y,e.scale=a?$_e(a.pointers,r):1,e.rotation=a?W_e(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,H_e(n,e);var c=t.element,h=e.srcEvent,d;h.composedPath?d=h.composedPath()[0]:h.path?d=h.path[0]:d=h.target,JS(d,c)&&(c=d),e.target=c}function V_e(t,e,n){var r=n.pointers.length,o=n.changedPointers.length,i=e&Bn&&r-o===0,a=e&(Vt|sr)&&r-o===0;n.isFirst=!!i,n.isFinal=!!a,i&&(t.session={}),n.eventType=e,U_e(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Oh(t){return t.trim().split(/\s+/g)}function Th(t,e,n){Pi(Oh(e),function(r){t.addEventListener(r,n,!1)})}function Ph(t,e,n){Pi(Oh(e),function(r){t.removeEventListener(r,n,!1)})}function ML(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Iu=function(){function t(n,r){var o=this;this.manager=n,this.callback=r,this.element=n.element,this.target=n.options.inputTarget,this.domHandler=function(i){om(n.options.enable,[n])&&o.handler(i)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Th(this.element,this.evEl,this.domHandler),this.evTarget&&Th(this.target,this.evTarget,this.domHandler),this.evWin&&Th(ML(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Ph(this.element,this.evEl,this.domHandler),this.evTarget&&Ph(this.target,this.evTarget,this.domHandler),this.evWin&&Ph(ML(this.element),this.evWin,this.domHandler)},t}();function As(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rl[e]}):r=r.sort()),r}var Y_e={touchstart:Bn,touchmove:Rs,touchend:Vt,touchcancel:sr},X_e="touchstart touchmove touchend touchcancel",t_=function(t){Hr(e,t);function e(){var r;return e.prototype.evTarget=X_e,r=t.apply(this,arguments)||this,r.targetIds={},r}var n=e.prototype;return n.handler=function(r){var o=Y_e[r.type],i=G_e.call(this,r,o);i&&this.callback(this.manager,o,{pointers:i[0],changedPointers:i[1],pointerType:Sh,srcEvent:r})},e}(Iu);function G_e(t,e){var n=Mh(t.touches),r=this.targetIds;if(e&(Bn|Rs)&&n.length===1)return r[n[0].identifier]=!0,[n,n];var o,i,a=Mh(t.changedTouches),s=[],l=this.target;if(i=n.filter(function(u){return JS(u.target,l)}),e===Bn)for(o=0;o-1&&o.splice(a,1)};setTimeout(i,eEe)}}function tEe(t,e){t&Bn?(this.primaryTouch=e.changedPointers[0].identifier,AL.call(this,e)):t&(Vt|sr)&&AL.call(this,e)}function nEe(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(r,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},e.emit=function(n){var r=this,o=this.state;function i(a){r.manager.emit(a,n)}o=ka&&i(r.options.event+zL(o))},e.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=qo},e.canEmit=function(){for(var n=0;no.threshold&&s&o.direction},n.attrTest=function(r){return ju.prototype.attrTest.call(this,r)&&(this.state&Ur||!(this.state&Ur)&&this.directionTest(r))},n.emit=function(r){this.pX=r.deltaX,this.pY=r.deltaY;var o=FL(r.direction);o&&(r.additionalEvent=this.options.event+o),t.prototype.emit.call(this,r)},e}(ju),LL=function(t){Hr(e,t);function e(r){return r===void 0&&(r={}),t.call(this,xo({event:"swipe",threshold:10,velocity:.3,direction:Vo|Ds,pointers:1},r))||this}var n=e.prototype;return n.getTouchAction=function(){return o_.prototype.getTouchAction.call(this)},n.attrTest=function(r){var o=this.options.direction,i;return o&(Vo|Ds)?i=r.overallVelocity:o&Vo?i=r.overallVelocityX:o&Ds&&(i=r.overallVelocityY),t.prototype.attrTest.call(this,r)&&o&r.offsetDirection&&r.distance>this.options.threshold&&r.maxPointers===this.options.pointers&&Ms(i)>this.options.velocity&&r.eventType&Vt},n.emit=function(r){var o=FL(r.offsetDirection);o&&this.manager.emit(this.options.event+o,r),this.manager.emit(this.options.event,r)},e}(ju),BL=function(t){Hr(e,t);function e(r){return r===void 0&&(r={}),t.call(this,xo({event:"pinch",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[Is]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.scale-1)>this.options.threshold||this.state&Ur)},n.emit=function(r){if(r.scale!==1){var o=r.scale<1?"in":"out";r.additionalEvent=this.options.event+o}t.prototype.emit.call(this,r)},e}(ju),$L=function(t){Hr(e,t);function e(r){return r===void 0&&(r={}),t.call(this,xo({event:"rotate",threshold:0,pointers:2},r))||this}var n=e.prototype;return n.getTouchAction=function(){return[Is]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.rotation)>this.options.threshold||this.state&Ur)},e}(ju),WL=function(t){Hr(e,t);function e(r){var o;return r===void 0&&(r={}),o=t.call(this,xo({event:"press",pointers:1,time:251,threshold:9},r))||this,o._timer=null,o._input=null,o}var n=e.prototype;return n.getTouchAction=function(){return[xL]},n.process=function(r){var o=this,i=this.options,a=r.pointers.length===i.pointers,s=r.distancei.time;if(this._input=r,!s||!a||r.eventType&(Vt|sr)&&!l)this.reset();else if(r.eventType&Bn)this.reset(),this._timer=setTimeout(function(){o.state=Mi,o.tryEmit()},i.time);else if(r.eventType&Vt)return Mi;return qo},n.reset=function(){clearTimeout(this._timer)},n.emit=function(r){this.state===Mi&&(r&&r.eventType&Vt?this.manager.emit(this.options.event+"up",r):(this._input.timeStamp=XS(),this.manager.emit(this.options.event,this._input)))},e}(Rh),HL={domEvents:!1,touchAction:wL,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},UL=[[$L,{enable:!1}],[BL,{enable:!1},["rotate"]],[LL,{direction:Vo}],[o_,{direction:Vo},["swipe"]],[r_],[r_,{event:"doubletap",taps:2},["tap"]],[WL]],aEe=1,VL=2;function qL(t,e){var n=t.element;if(n.style){var r;Pi(t.options.cssProps,function(o,i){r=em(n.style,i),e?(t.oldCssProps[r]=n.style[r],n.style[r]=o):n.style[r]=t.oldCssProps[r]||""}),e||(t.oldCssProps={})}}function sEe(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var KL=function(){function t(n,r){var o=this;this.options=Ps({},HL,r||{}),this.options.inputTarget=this.options.inputTarget||n,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=n,this.input=rEe(this),this.touchAction=new EL(this,this.options.touchAction),qL(this,!0),Pi(this.options.recognizers,function(i){var a=o.add(new i[0](i[1]));i[2]&&a.recognizeWith(i[2]),i[3]&&a.requireFailure(i[3])},this)}var e=t.prototype;return e.set=function(n){return Ps(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},e.stop=function(n){this.session.stopped=n?VL:aEe},e.recognize=function(n){var r=this.session;if(!r.stopped){this.touchAction.preventDefaults(n);var o,i=this.recognizers,a=r.curRecognizer;(!a||a&&a.state&Mi)&&(r.curRecognizer=null,a=null);for(var s=0;s\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,r,i),t.apply(this,arguments)}}var XL=YL(function(t,e,n){for(var r=Object.keys(e),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function vEe(t,e){var n;if(t){if(typeof t=="string")return ZL(t,e);var r=bn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZL(t,e)}}function ZL(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n>>0,o-=t,o*=t,t=o>>>0,o-=t,t+=o*4294967296}return(t>>>0)*23283064365386963e-26}}function wEe(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}var i_=typeof window<"u"?window.Hammer||gEe:function(){return wEe()};function Ko(t){var e=this,n;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){e._dom.overlay.parentNode.removeChild(e._dom.overlay)});var r=i_(this._dom.overlay);r.on("tap",Y(n=this._onTapOverlay).call(n,this)),this._cleanupQueue.push(function(){r.destroy()});var o=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];tt(o).call(o,function(i){r.on(i,function(a){a.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(i){xEe(i.target,t)||e.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",e._onClick)})),this._escListener=function(i){("key"in i?i.key==="Escape":i.keyCode===27)&&e.deactivate()}}CN(Ko.prototype),Ko.current=null,Ko.prototype.destroy=function(){var t,e;this.deactivate();var n=JL(Os(t=Oi(e=this._cleanupQueue).call(e,0)).call(t)),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;o()}}catch(i){n.e(i)}finally{n.f()}},Ko.prototype.activate=function(){Ko.current&&Ko.current.deactivate(),Ko.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},Ko.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},Ko.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};function xEe(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}var kEe=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,SEe=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,_Ee=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,EEe=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Sa(t){if(t)for(;t.hasChildNodes()===!0;){var e=t.firstChild;e&&(Sa(e),t.removeChild(e))}}function Au(t){return t instanceof String||typeof t=="string"}function eB(t){return Ze(t)==="object"&&t!==null}function Ns(t,e,n,r){var o=!1;r===!0&&(o=e[n]===null&&t[n]!==void 0),o?delete t[n]:t[n]=e[n]}function tB(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var r in t)if(e[r]!==void 0)if(e[r]===null||Ze(e[r])!=="object")Ns(t,e,r,n);else{var o=t[r],i=e[r];eB(o)&&eB(i)&&tB(o,i,n)}}function Nu(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ge(n))throw new TypeError("Arrays are not supported by deepExtend");for(var o=0;o3&&arguments[3]!==void 0?arguments[3]:!1;if(Ge(n))throw new TypeError("Arrays are not supported by deepExtend");for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&!xa(t).call(t,o))if(n[o]&&n[o].constructor===Object)e[o]===void 0&&(e[o]={}),e[o].constructor===Object?it(e[o],n[o]):Ns(e,n,o,r);else if(Ge(n[o])){e[o]=[];for(var i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)||n===!0)if(Ze(e[o])==="object"&&e[o]!==null&&ZF(e[o])===Object.prototype)t[o]===void 0?t[o]=it({},e[o],n):Ze(t[o])==="object"&&t[o]!==null&&ZF(t[o])===Object.prototype?it(t[o],e[o],n):Ns(t,e,o,r);else if(Ge(e[o])){var i;t[o]=bn(i=e[o]).call(i)}else Ns(t,e,o,r);return t}function cm(t,e){var n;return RS(n=[]).call(n,Ho(t),[e])}function CEe(t){return bn(t).call(t)}function OEe(t){return t.getBoundingClientRect().left}function TEe(t){return t.getBoundingClientRect().top}function Ie(t,e){if(Ge(t))for(var n=t.length,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=function(f){return f!=null},i=function(f){return f!==null&&Ze(f)==="object"},a=function(f){for(var p in f)if(Object.prototype.hasOwnProperty.call(f,p))return!1;return!0};if(!i(t))throw new Error("Parameter mergeTarget must be an object");if(!i(e))throw new Error("Parameter options must be an object");if(!o(n))throw new Error("Parameter option must have a value");if(!i(r))throw new Error("Parameter globalOptions must be an object");var s=function(f,p,g){i(f[g])||(f[g]={});var b=p[g],m=f[g];for(var v in b)Object.prototype.hasOwnProperty.call(b,v)&&(m[v]=b[v])},l=e[n],u=i(r)&&!a(r),c=u?r[n]:void 0,h=c?c.enabled:void 0;if(l!==void 0){if(typeof l=="boolean"){i(t[n])||(t[n]={}),t[n].enabled=l;return}if(l===null&&!i(t[n]))if(o(c))t[n]=Ts(c);else return;if(i(l)){var d=!0;l.enabled!==void 0?d=l.enabled:h!==void 0&&(d=c.enabled),s(t,e,n),t[n].enabled=d}}}var IEe={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function Ea(t,e){var n;Ge(e)||(e=[e]);var r=JL(t),o;try{for(r.s();!(o=r.n()).done;){var i=o.value;if(i){n=i[e[0]];for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:1;Z(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return ee(t,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(e){if(typeof e=="string")return REe[e]}},{key:"setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e!=="none"){var r,o=this._isColorString(e);if(o!==void 0&&(e=o),Au(e)===!0){if(oB(e)===!0){var i=e.substr(4).substr(0,e.length-5).split(",");r={r:i[0],g:i[1],b:i[2],a:1}}else if(MEe(e)===!0){var a=e.substr(5).substr(0,e.length-6).split(",");r={r:a[0],g:a[1],b:a[2],a:a[3]}}else if(rB(e)===!0){var s=a_(e);r={r:s.r,g:s.g,b:s.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var l=e.a!==void 0?e.a:"1.0";r={r:e.r,g:e.g,b:e.b,a:l}}if(r===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+bh(e));this._setColor(r,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n===!0&&(this.previousColor=Ut({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Uo(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n===!0&&(this.initialColor=Ut({},e)),this.color=e;var r=Dh(e.r,e.g,e.b),o=2*Math.PI,i=this.r*r.s,a=this.centerCoordinates.x+i*Math.sin(o*r.h),s=this.centerCoordinates.y+i*Math.cos(o*r.h);this.colorPickerSelector.style.left=a-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var n=Dh(this.color.r,this.color.g,this.color.b);n.v=e/100;var r=dm(n.h,n.s,n.v);r.a=this.color.a,this.color=r,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=Dh(e.r,e.g,e.b),r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,o,i),r.putImageData(this.hueCircle,0,0),r.fillStyle="rgba(0,0,0,"+(1-n.v)+")",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),wh(r).call(r),this.brightnessRange.value=100*n.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,n,r,o;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var a=document.createElement("DIV");a.style.color="red",a.style.fontWeight="bold",a.style.padding="10px",a.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(a)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=Y(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=Y(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Y(r=this._save).call(r,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Y(o=this._loadLast).call(o,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new i_(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(n){n.isFirst&&e._moveSelector(n)}),this.hammer.on("tap",function(n){e._moveSelector(n)}),this.hammer.on("panstart",function(n){e._moveSelector(n)}),this.hammer.on("panmove",function(n){e._moveSelector(n)}),this.hammer.on("panend",function(n){e._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,n,r);var o,i,a,s;this.centerCoordinates={x:n*.5,y:r*.5},this.r=.49*n;var l=2*Math.PI/360,u=1/360,c=1/this.r,h;for(a=0;a<360;a++)for(s=0;s3&&arguments[3]!==void 0?arguments[3]:1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};Z(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=i,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Ut(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new DEe(o),this.wrapper=void 0}return ee(t,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof e=="string")this.options.filter=e;else if(Ge(e))this.options.filter=e.join();else if(Ze(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),ar(e)!==void 0&&(this.options.filter=ar(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(n=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,n=e):typeof e=="function"&&(this.options.filter=e,n=!0);ar(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=ar(this.options),n=0,r=!1;for(var o in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,o)&&(this.allowCreation=!1,r=!1,typeof e=="function"?(r=e(o,[]),r=r||this._handleObject(this.configureOptions[o],[o],!0)):(e===!0||We(e).call(e,o)!==-1)&&(r=!0),r!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),n++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e1?r-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:!1,o=document.createElement("div");if(o.className="vis-configuration vis-config-label vis-config-s"+n.length,r===!0){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(u_("i","b",e))}else o.innerText=e+":";return o}},{key:"_makeDropdown",value:function(e,n,r){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var i=0;n!==void 0&&We(e).call(e,n)!==-1&&(i=We(e).call(e,n));for(var a=0;aa&&a!==1&&(l.max=Math.ceil(n*h),c=l.max,u="range increased"),l.value=n}else l.value=o;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=l.value;var f=this;l.onchange=function(){d.value=this.value,f._update(Number(this.value),r)},l.oninput=function(){d.value=this.value};var p=this._makeLabel(r[r.length-1],r),g=this._makeItem(r,p,l,d);u!==""&&this.popupHistory[g]!==c&&(this.popupHistory[g]=c,this._setupPopup(u,g))}},{key:"_makeButton",value:function(){var e=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerText="generate options",n.onclick=function(){e._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(n)}}},{key:"_setupPopup",value:function(e,n){var r=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=!1,i=ar(this.options),a=!1;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){o=!0;var l=e[s],u=cm(n,s);if(typeof i=="function"&&(o=i(s,n),o===!1&&!Ge(l)&&typeof l!="string"&&typeof l!="boolean"&&l instanceof Object&&(this.allowCreation=!1,o=this._handleObject(l,u,!0),this.allowCreation=r===!1)),o!==!1){a=!0;var c=this._getValue(u);if(Ge(l))this._handleArray(l,c,u);else if(typeof l=="string")this._makeTextInput(l,c,u);else if(typeof l=="boolean")this._makeCheckbox(l,c,u);else if(l instanceof Object){if(!this.hideOption(n,s,this.moduleOptions))if(l.enabled!==void 0){var h=cm(u,"enabled"),d=this._getValue(h);if(d===!0){var f=this._makeLabel(s,u,!0);this._makeItem(u,f),a=this._handleObject(l,u)||a}else this._makeCheckbox(l,d,u)}else{var p=this._makeLabel(s,u,!0);this._makeItem(u,p),a=this._handleObject(l,u)||a}}else console.error("dont know how to handle",l,s,u)}}return a}},{key:"_handleArray",value:function(e,n,r){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,n,r),e[1]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="string"?(this._makeDropdown(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="number"&&(this._makeRange(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:Number(n)}))}},{key:"_update",value:function(e,n){var r=this._constructOptions(e,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",r),this.initialized=!0,this.parent.setOptions(r)}},{key:"_constructOptions",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r;e=e==="true"?!0:e,e=e==="false"?!1:e;for(var i=0;ii-this.padding&&(l=!0),l?a=this.x-r:a=this.x,u?s=this.y-n:s=this.y}else s=this.y-n,s+n+this.padding>o&&(s=o-n-this.padding),si&&(a=i-r-this.padding),ai.distance?l=" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(i.path,i.closestMatch,""):o.distance<=a?l='. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):l=". Did you mean one of these: "+t.print(Mt(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+l,c_),jh=!0}},{key:"findInOptions",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=1e9,a="",s=[],l=e.toLowerCase(),u=void 0;for(var c in n){var h=void 0;if(n[c].__type__!==void 0&&o===!0){var d=t.findInOptions(e,n[c],cm(r,c));i>d.distance&&(a=d.closestMatch,s=d.path,i=d.distance,u=d.indexMatch)}else{var f;We(f=c.toLowerCase()).call(f,l)!==-1&&(u=c),h=t.levenshteinDistance(e,c),i>h&&(a=c,s=CEe(r),i=h)}}return{closestMatch:a,path:s,distance:i,indexMatch:u}}},{key:"printLocation",value:function(e,n){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: +`,o=` + +`+r+`options = { +`,i=0;i":!0,"--":!0},Ca="",Fu=0,Me="",be="",lr=$n.NULL;function WEe(){Fu=0,Me=Ca.charAt(0)}function cn(){Fu++,Me=Ca.charAt(Fu)}function Lu(){return Ca.charAt(Fu+1)}function uB(t){var e=t.charCodeAt(0);return e<47?e===35||e===46:e<59?e>47:e<91?e>64:e<96?e===95:e<123?e>96:!1}function Oa(t,e){if(t||(t={}),e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function HEe(t,e,n){for(var r=e.split("."),o=t;r.length;){var i=r.shift();r.length?(o[i]||(o[i]={}),o=o[i]):o[i]=n}}function cB(t,e){for(var n,r,o=null,i=[t],a=t;a.parent;)i.push(a.parent),a=a.parent;if(a.nodes){for(n=0,r=a.nodes.length;n=0;n--){var s,l=i[n];l.nodes||(l.nodes=[]),We(s=l.nodes).call(s,o)===-1&&l.nodes.push(o)}e.attr&&(o.attr=Oa(o.attr,e.attr))}function UEe(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var n=Oa({},t.edge);e.attr=Oa(n,e.attr)}}function dB(t,e,n,r,o){var i={from:e,to:n,type:r};return t.edge&&(i.attr=Oa({},t.edge)),i.attr=Oa(i.attr||{},o),o!=null&&o.hasOwnProperty("arrows")&&o.arrows!=null&&(i.arrows={to:{enabled:!0,type:o.arrows.type}},o.arrows=null),i}function at(){for(lr=$n.NULL,be="";Me===" "||Me===" "||Me===` +`||Me==="\r";)cn();do{var t=!1;if(Me==="#"){for(var e=Fu-1;Ca.charAt(e)===" "||Ca.charAt(e)===" ";)e--;if(Ca.charAt(e)===` +`||Ca.charAt(e)===""){for(;Me!=""&&Me!=` +`;)cn();t=!0}}if(Me==="/"&&Lu()==="/"){for(;Me!=""&&Me!=` +`;)cn();t=!0}if(Me==="/"&&Lu()==="*"){for(;Me!="";)if(Me==="*"&&Lu()==="/"){cn(),cn();break}else cn();t=!0}for(;Me===" "||Me===" "||Me===` +`||Me==="\r";)cn()}while(t);if(Me===""){lr=$n.DELIMITER;return}var n=Me+Lu();if(lB[n]){lr=$n.DELIMITER,be=n,cn(),cn();return}if(lB[Me]){lr=$n.DELIMITER,be=Me,cn();return}if(uB(Me)||Me==="-"){for(be+=Me,cn();uB(Me);)be+=Me,cn();be==="false"?be=!1:be==="true"?be=!0:isNaN(Number(be))||(be=Number(be)),lr=$n.IDENTIFIER;return}if(Me==='"'){for(cn();Me!=""&&(Me!='"'||Me==='"'&&Lu()==='"');)Me==='"'?(be+=Me,cn()):Me==="\\"&&Lu()==="n"?(be+=` +`,cn()):be+=Me,cn();if(Me!='"')throw Wn('End of string " expected');cn(),lr=$n.IDENTIFIER;return}for(lr=$n.UNKNOWN;Me!="";)be+=Me,cn();throw new SyntaxError('Syntax error in part "'+gB(be,30)+'"')}function VEe(){var t={};if(WEe(),at(),be==="strict"&&(t.strict=!0,at()),(be==="graph"||be==="digraph")&&(t.type=be,at()),lr===$n.IDENTIFIER&&(t.id=be,at()),be!="{")throw Wn("Angle bracket { expected");if(at(),hB(t),be!="}")throw Wn("Angle bracket } expected");if(at(),be!=="")throw Wn("End of file expected");return at(),delete t.node,delete t.edge,delete t.graph,t}function hB(t){for(;be!==""&&be!="}";)qEe(t),be===";"&&at()}function qEe(t){var e=fB(t);if(e){pB(t,e);return}var n=KEe(t);if(!n){if(lr!=$n.IDENTIFIER)throw Wn("Identifier expected");var r=be;if(at(),be==="="){if(at(),lr!=$n.IDENTIFIER)throw Wn("Identifier expected");t[r]=be,at()}else YEe(t,r)}}function fB(t){var e=null;if(be==="subgraph"&&(e={},e.type="subgraph",at(),lr===$n.IDENTIFIER&&(e.id=be,at())),be==="{"){if(at(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,hB(e),be!="}")throw Wn("Angle bracket } expected");at(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function KEe(t){return be==="node"?(at(),t.node=Ah(),"node"):be==="edge"?(at(),t.edge=Ah(),"edge"):be==="graph"?(at(),t.graph=Ah(),"graph"):null}function YEe(t,e){var n={id:e},r=Ah();r&&(n.attr=r),cB(t,n),pB(t,e)}function pB(t,e){for(;be==="->"||be==="--";){var n,r=be;at();var o=fB(t);if(o)n=o;else{if(lr!=$n.IDENTIFIER)throw Wn("Identifier or subgraph expected");n=be,cB(t,{id:n}),at()}var i=Ah(),a=dB(t,e,n,r,i);UEe(t,a),e=n}}function Ah(){for(var t,e=null,n={dashed:!0,solid:!1,dotted:[1,5]},r={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},o=new Array,i=new Array;be==="[";){for(at(),e={};be!==""&&be!="]";){if(lr!=$n.IDENTIFIER)throw Wn("Attribute name expected");var a=be;if(at(),be!="=")throw Wn("Equal sign = expected");if(at(),lr!=$n.IDENTIFIER)throw Wn("Attribute value expected");var s=be;a==="style"&&(s=n[s]);var l;a==="arrowhead"&&(l=r[s],a="arrows",s={to:{enabled:!0,type:l}}),a==="arrowtail"&&(l=r[s],a="arrows",s={from:{enabled:!0,type:l}}),o.push({attr:e,name:a,value:s}),i.push(a),at(),be==","&&at()}if(be!="]")throw Wn("Bracket ] expected");at()}if(xa(i).call(i,"dir")){var u={};for(u.arrows={},t=0;t"&&(s.arrows="to"),s};tt(o=e.edges).call(o,function(a){var s,l;if(a.from instanceof Object?s=a.from.nodes:s={id:a.from},a.to instanceof Object?l=a.to.nodes:l={id:a.to},a.from instanceof Object&&a.from.edges){var u;tt(u=a.from.edges).call(u,function(h){var d=i(h);n.edges.push(d)})}if(XEe(s,l,function(h,d){var f=dB(n,h.id,d.id,a.type,a.attr),p=i(f);n.edges.push(p)}),a.to instanceof Object&&a.to.edges){var c;tt(c=a.to.edges).call(c,function(h){var d=i(h);n.edges.push(d)})}})}return e.attr&&(n.options=e.attr),n}function QEe(t,e){var n,r={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};e!=null&&(e.fixed!=null&&(r.nodes.fixed=e.fixed),e.parseColor!=null&&(r.nodes.parseColor=e.parseColor),e.inheritColor!=null&&(r.edges.inheritColor=e.inheritColor));var o=t.edges,i=Ou(o).call(o,function(s){var l={from:s.source,id:s.id,to:s.target};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.type==="Directed"&&(l.arrows="to"),s.color&&r.edges.inheritColor===!1&&(l.color=s.color),l}),a=Ou(n=t.nodes).call(n,function(s){var l={id:s.id,fixed:r.nodes.fixed&&s.x!=null&&s.y!=null};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.size!=null&&(l.size=s.size),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.title!=null&&(l.title=s.title),s.x!=null&&(l.x=s.x),s.y!=null&&(l.y=s.y),s.color!=null&&(r.nodes.parseColor===!0?l.color=s.color:l.color={background:s.color,border:s.color,highlight:{background:s.color,border:s.color},hover:{background:s.color,border:s.color}}),l});return{nodes:a,edges:i}}var JEe={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},ZEe={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzuf\xFCgen",addNode:"Knoten hinzuf\xFCgen",back:"Zur\xFCck",close:"Schlie\xDFen",createEdgeError:"Es ist nicht m\xF6glich, Kanten mit Clustern zu verbinden.",del:"L\xF6sche Auswahl",deleteClusterError:"Cluster k\xF6nnen nicht gel\xF6scht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster k\xF6nnen nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},eCe={addDescription:"Haga clic en un lugar vac\xEDo para colocar un nuevo nodo.",addEdge:"A\xF1adir arista",addNode:"A\xF1adir nodo",back:"Atr\xE1s",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selecci\xF3n",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},tCe={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},nCe={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},rCe={addDescription:"Clique em um espa\xE7o em branco para adicionar um novo n\xF3",addEdge:"Adicionar aresta",addNode:"Adicionar n\xF3",back:"Voltar",close:"Fechar",createEdgeError:"N\xE3o foi poss\xEDvel linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters n\xE3o puderam ser removidos.",edgeDescription:"Clique em um n\xF3 e arraste a aresta at\xE9 outro n\xF3 para conect\xE1-los",edit:"Editar",editClusterError:"Clusters n\xE3o puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um n\xF3 para conect\xE1-los",editNode:"Editar n\xF3"},oCe={addDescription:"\u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u0432 \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u043E\u0435 \u043C\u0435\u0441\u0442\u043E, \u0447\u0442\u043E\u0431\u044B \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0443\u0437\u0435\u043B.",addEdge:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u0435\u0431\u0440\u043E",addNode:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0443\u0437\u0435\u043B",back:"\u041D\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043A\u0440\u044B\u0432\u0430\u0442\u044C",createEdgeError:"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C \u0440\u0435\u0431\u0440\u0430 \u0432 \u043A\u043B\u0430\u0441\u0442\u0435\u0440.",del:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435",deleteClusterError:"\u041A\u043B\u0430\u0441\u0442\u0435\u0440\u044B \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u0443\u0434\u0430\u043B\u0435\u043D\u044B",edgeDescription:"\u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u0443\u0437\u0435\u043B \u0438 \u043F\u0440\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0440\u0435\u0431\u0440\u043E \u043A \u0434\u0440\u0443\u0433\u043E\u043C\u0443 \u0443\u0437\u043B\u0443, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C \u0438\u0445.",edit:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",editClusterError:"\u041A\u043B\u0430\u0441\u0442\u0435\u0440\u044B \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B \u0434\u043B\u044F \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F.",editEdge:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0440\u0435\u0431\u0440\u043E",editEdgeDescription:"\u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u044B\u0435 \u0442\u043E\u0447\u043A\u0438 \u0438 \u043F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0438\u0445 \u0432 \u0443\u0437\u0435\u043B, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F \u043A \u043D\u0435\u043C\u0443.",editNode:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0443\u0437\u0435\u043B"},iCe={addDescription:"\u5355\u51FB\u7A7A\u767D\u5904\u653E\u7F6E\u65B0\u8282\u70B9\u3002",addEdge:"\u6DFB\u52A0\u8FDE\u63A5\u7EBF",addNode:"\u6DFB\u52A0\u8282\u70B9",back:"\u8FD4\u56DE",close:"\u95DC\u9589",createEdgeError:"\u65E0\u6CD5\u5C06\u8FDE\u63A5\u7EBF\u8FDE\u63A5\u5230\u7FA4\u96C6\u3002",del:"\u5220\u9664\u9009\u5B9A",deleteClusterError:"\u65E0\u6CD5\u5220\u9664\u7FA4\u96C6\u3002",edgeDescription:"\u5355\u51FB\u67D0\u4E2A\u8282\u70B9\u5E76\u5C06\u8BE5\u8FDE\u63A5\u7EBF\u62D6\u52A8\u5230\u53E6\u4E00\u4E2A\u8282\u70B9\u4EE5\u8FDE\u63A5\u5B83\u4EEC\u3002",edit:"\u7F16\u8F91",editClusterError:"\u65E0\u6CD5\u7F16\u8F91\u7FA4\u96C6\u3002",editEdge:"\u7F16\u8F91\u8FDE\u63A5\u7EBF",editEdgeDescription:"\u5355\u51FB\u63A7\u5236\u8282\u70B9\u5E76\u5C06\u5B83\u4EEC\u62D6\u5230\u8282\u70B9\u4E0A\u8FDE\u63A5\u3002",editNode:"\u7F16\u8F91\u8282\u70B9"},aCe={addDescription:"K\u043B\u0456\u043A\u043D\u0456\u0442\u044C \u043D\u0430 \u0432\u0456\u043B\u044C\u043D\u0435 \u043C\u0456\u0441\u0446\u0435, \u0449\u043E\u0431 \u0434\u043E\u0434\u0430\u0442\u0438 \u043D\u043E\u0432\u0438\u0439 \u0432\u0443\u0437\u043E\u043B.",addEdge:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u0440\u0430\u0439",addNode:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0432\u0443\u0437\u043E\u043B",back:"\u041D\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",createEdgeError:"\u041D\u0435 \u043C\u043E\u0436\u043B\u0438\u0432\u043E \u043E\u0431'\u0454\u0434\u043D\u0430\u0442\u0438 \u043A\u0440\u0430\u0457 \u0432 \u0433\u0440\u0443\u043F\u0443.",del:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043E\u0431\u0440\u0430\u043D\u0435",deleteClusterError:"\u0413\u0440\u0443\u043F\u0438 \u043D\u0435 \u043C\u043E\u0436\u0443\u0442\u044C \u0431\u0443\u0442\u0438 \u0432\u0438\u0434\u0430\u043B\u0435\u043D\u0456.",edgeDescription:"\u041A\u043B\u0456\u043A\u043D\u0456\u0442\u044C \u043D\u0430 \u0432\u0443\u0437\u043E\u043B \u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0456\u0442\u044C \u043A\u0440\u0430\u0439 \u0434\u043E \u0456\u043D\u0448\u043E\u0433\u043E \u0432\u0443\u0437\u043B\u0430, \u0449\u043E\u0431 \u0457\u0445 \u0437'\u0454\u0434\u043D\u0430\u0442\u0438.",edit:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438",editClusterError:"\u0413\u0440\u0443\u043F\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0456 \u0434\u043B\u044F \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",editEdge:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u043A\u0440\u0430\u0439",editEdgeDescription:"\u041A\u043B\u0456\u043A\u043D\u0456\u0442\u044C \u043D\u0430 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u0456 \u0442\u043E\u0447\u043A\u0438 \u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0456\u0442\u044C \u0457\u0445 \u0443 \u0432\u0443\u0437\u043E\u043B, \u0449\u043E\u0431 \u043F\u0456\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0438\u0441\u044F \u0434\u043E \u043D\u044C\u043E\u0433\u043E.",editNode:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0432\u0443\u0437\u043E\u043B"},sCe={addDescription:"Cliquez dans un endroit vide pour placer un n\u0153ud.",addEdge:"Ajouter un lien",addNode:"Ajouter un n\u0153ud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de cr\xE9er un lien vers un cluster.",del:"Effacer la s\xE9lection",deleteClusterError:"Les clusters ne peuvent pas \xEAtre effac\xE9s.",edgeDescription:"Cliquez sur un n\u0153ud et glissez le lien vers un autre n\u0153ud pour les connecter.",edit:"\xC9diter",editClusterError:"Les clusters ne peuvent pas \xEAtre \xE9dit\xE9s.",editEdge:"\xC9diter le lien",editEdgeDescription:"Cliquez sur les points de contr\xF4le et glissez-les pour connecter un n\u0153ud.",editNode:"\xC9diter le n\u0153ud"},lCe={addDescription:"Kluknut\xEDm do pr\xE1zdn\xE9ho prostoru m\u016F\u017Eete p\u0159idat nov\xFD vrchol.",addEdge:"P\u0159idat hranu",addNode:"P\u0159idat vrchol",back:"Zp\u011Bt",close:"Zav\u0159\xEDt",createEdgeError:"Nelze p\u0159ipojit hranu ke shluku.",del:"Smazat v\xFDb\u011Br",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"P\u0159eta\u017Een\xEDm z jednoho vrcholu do druh\xE9ho m\u016F\u017Eete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"P\u0159eta\u017Een\xEDm kontroln\xEDho vrcholu hrany ji m\u016F\u017Eete p\u0159ipojit k jin\xE9mu vrcholu.",editNode:"Upravit vrchol"},uCe=Object.freeze({__proto__:null,cn:iCe,cs:lCe,de:ZEe,en:JEe,es:eCe,fr:sCe,it:tCe,nl:nCe,pt:rCe,ru:oCe,uk:aCe});function cCe(t,e){try{var n=e.split(/[-_ /]/,2),r=Pt(n,2),o=r[0],i=r[1],a=o!=null?o.toLowerCase():null,s=i!=null?i.toUpperCase():null;if(a&&s){var l=a+"-"+s;if(Object.prototype.hasOwnProperty.call(t,l))return l;var u;console.warn(RS(u="Unknown variant ".concat(s," of language ")).call(u,a,"."))}if(a){var c=a;if(Object.prototype.hasOwnProperty.call(t,c))return c;console.warn("Unknown language ".concat(a))}return console.warn("Unknown locale ".concat(e,", falling back to English.")),"en"}catch(h){return console.error(h),console.warn("Unexpected error while normalizing locale ".concat(e,", falling back to English.")),"en"}}var dCe=function(){function t(){Z(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return ee(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var e=this.image.width,n=this.image.height;this.width=e,this.height=n;var r=Math.floor(n/2),o=Math.floor(n/4),i=Math.floor(n/8),a=Math.floor(n/16),s=Math.floor(e/2),l=Math.floor(e/4),u=Math.floor(e/8),c=Math.floor(e/16);this.canvas.width=3*l,this.canvas.height=r,this.coordinates=[[0,0,s,r],[s,0,l,o],[s,o,u,i],[5*u,o,c,a]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var e=this.canvas.getContext("2d"),n=this.coordinates[0];e.drawImage(this.image,n[0],n[1],n[2],n[3]);for(var r=1;r2){n*=.5;for(var s=0;n>2&&s=this.NUM_ITERATIONS&&(s=this.NUM_ITERATIONS-1);var l=this.coordinates[s];e.drawImage(this.canvas,l[0],l[1],l[2],l[3],r,o,i,a)}else e.drawImage(this.image,r,o,i,a)}}]),t}(),hCe=function(){function t(e){Z(this,t),this.images={},this.imageBroken={},this.callback=e}return ee(t,[{key:"_tryloadBrokenUrl",value:function(e,n,r){if(!(e===void 0||r===void 0)){if(n===void 0){console.warn("No broken url image defined");return}r.image.onerror=function(){console.error("Could not load brokenImage:",n)},r.image.src=n}}},{key:"_redrawWithImage",value:function(e){this.callback&&this.callback(e)}},{key:"load",value:function(e,n){var r=this,o=this.images[e];if(o)return o;var i=new dCe;return this.images[e]=i,i.image.onload=function(){r._fixImageCoordinates(i.image),i.init(),r._redrawWithImage(i)},i.image.onerror=function(){console.error("Could not load image:",e),r._tryloadBrokenUrl(e,n,i)},i.image.src=e,i}},{key:"_fixImageCoordinates",value:function(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}]),t}(),mB={exports:{}},fCe=Be,pCe=fCe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),gCe=Be,vCe=an,mCe=_i,yB=pCe,hm=Object.isExtensible,yCe=gCe(function(){hm(1)}),bCe=yCe||yB?function(t){return!vCe(t)||yB&&mCe(t)==="ArrayBuffer"?!1:hm?hm(t):!0}:hm,wCe=Be,bB=!wCe(function(){return Object.isExtensible(Object.preventExtensions({}))}),xCe=ye,kCe=He,SCe=ih,_Ce=an,f_=sn,ECe=_r.f,wB=dh,CCe=Hv,p_=bCe,OCe=kv,TCe=bB,xB=!1,Ii=OCe("meta"),PCe=0,g_=function(t){ECe(t,Ii,{value:{objectID:"O"+PCe++,weakData:{}}})},MCe=function(t,e){if(!_Ce(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!f_(t,Ii)){if(!p_(t))return"F";if(!e)return"E";g_(t)}return t[Ii].objectID},ICe=function(t,e){if(!f_(t,Ii)){if(!p_(t))return!0;if(!e)return!1;g_(t)}return t[Ii].weakData},RCe=function(t){return TCe&&xB&&p_(t)&&!f_(t,Ii)&&g_(t),t},DCe=function(){jCe.enable=function(){},xB=!0;var t=wB.f,e=kCe([].splice),n={};n[Ii]=1,t(n).length&&(wB.f=function(r){for(var o=t(r),i=0,a=o.length;ih;h++)if(f=m(t[h]),f&&kB(_B,f))return f;return new pm(!1)}u=$Ce(t,c)}for(p=i?t.next:u.next;!(g=NCe(p,u)).done;){try{f=m(g.value)}catch(v){SB(u,"throw",v)}if(typeof f=="object"&&f&&kB(_B,f))return f}return new pm(!1)},UCe=Nt,VCe=TypeError,m_=function(t,e){if(UCe(e,t))return t;throw new VCe("Incorrect invocation")},qCe=ye,KCe=Ct,YCe=fm,XCe=Be,GCe=gu,QCe=v_,JCe=m_,ZCe=rn,eOe=an,tOe=cu,nOe=xu,rOe=_r.f,oOe=ya.forEach,iOe=on,EB=xs,aOe=EB.set,sOe=EB.getterFor,y_=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=KCe[t],s=a&&a.prototype,l={},u;if(!iOe||!ZCe(a)||!(o||s.forEach&&!XCe(function(){new a().entries().next()})))u=n.getConstructor(e,t,r,i),YCe.enable();else{u=e(function(d,f){aOe(JCe(d,c),{type:t,collection:new a}),tOe(f)||QCe(f,d[i],{that:d,AS_ENTRIES:r})});var c=u.prototype,h=sOe(t);oOe(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(d){var f=d==="add"||d==="set";d in s&&!(o&&d==="clear")&&GCe(c,d,function(p,g){var b=h(this).collection;if(!f&&o&&!eOe(p))return d==="get"?void 0:!1;var m=b[d](p===0?0:p,g);return f?this:m})}),o||rOe(c,"size",{configurable:!0,get:function(){return h(this).collection.size}})}return nOe(u,t,!1,!0),l[t]=u,qCe({global:!0,forced:!0},l),o||n.setStrong(u,t,r),u},lOe=lh,b_=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:lOe(t,r,e[r],n);return t},uOe=$r,cOe=fS,dOe=Ot,hOe=on,CB=dOe("species"),fOe=function(t){var e=uOe(t);hOe&&e&&!e[CB]&&cOe(e,CB,{configurable:!0,get:function(){return this}})},pOe=wu,gOe=fS,OB=b_,vOe=rh,mOe=m_,yOe=cu,bOe=v_,wOe=iS,TB=aS,xOe=fOe,Nh=on,PB=fm.fastKey,MB=xs,IB=MB.set,w_=MB.getterFor,RB={getConstructor:function(t,e,n,r){var o=t(function(u,c){mOe(u,i),IB(u,{type:e,index:pOe(null),first:void 0,last:void 0,size:0}),Nh||(u.size=0),yOe(c)||bOe(c,u[r],{that:u,AS_ENTRIES:n})}),i=o.prototype,a=w_(e),s=function(u,c,h){var d=a(u),f=l(u,c),p,g;return f?f.value=h:(d.last=f={index:g=PB(c,!0),key:c,value:h,previous:p=d.last,next:void 0,removed:!1},d.first||(d.first=f),p&&(p.next=f),Nh?d.size++:u.size++,g!=="F"&&(d.index[g]=f)),u},l=function(u,c){var h=a(u),d=PB(c),f;if(d!=="F")return h.index[d];for(f=h.first;f;f=f.next)if(f.key===c)return f};return OB(i,{clear:function(){for(var u=this,c=a(u),h=c.index,d=c.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete h[d.index],d=d.next;c.first=c.last=void 0,Nh?c.size=0:u.size=0},delete:function(u){var c=this,h=a(c),d=l(c,u);if(d){var f=d.next,p=d.previous;delete h.index[d.index],d.removed=!0,p&&(p.next=f),f&&(f.previous=p),h.first===d&&(h.first=f),h.last===d&&(h.last=p),Nh?h.size--:c.size--}return!!d},forEach:function(u){for(var c=a(this),h=vOe(u,arguments.length>1?arguments[1]:void 0),d;d=d?d.next:c.first;)for(h(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),OB(i,n?{get:function(u){var c=l(this,u);return c&&c.value},set:function(u,c){return s(this,u===0?0:u,c)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),Nh&&gOe(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=w_(e),i=w_(r);wOe(t,e,function(a,s){IB(this,{type:r,target:a,state:o(a),kind:s,last:void 0})},function(){for(var a=i(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,TB(void 0,!0)):TB(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},n?"entries":"values",!n,!0),xOe(e)}},kOe=y_,SOe=RB;kOe("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},SOe);var _Oe=$e,EOe=_Oe.Map,COe=EOe,OOe=COe,TOe=OOe,DB=he(TOe),POe=function(){function t(){Z(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Ut(this.options,this.defaultOptions)}return ee(t,[{key:"setOptions",value:function(e){var n=["useDefaultGroups"];if(e!==void 0){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&We(n).call(n,r)===-1){var o=e[r];this.add(r,o)}}}},{key:"clear",value:function(){this._groups=new DB,this._groupNames=[]}},{key:"get",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this._groups.get(e);if(r===void 0&&n)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var o=this._groupIndex%this._groupNames.length;++this._groupIndex,r={},r.color=this._groups.get(this._groupNames[o]),this._groups.set(e,r)}else{var i=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,r={},r.color=this._defaultGroups[i],this._groups.set(e,r)}return r}},{key:"add",value:function(e,n){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,n),n}}]),t}(),MOe=ye;MOe({target:"Number",stat:!0},{isNaN:function(t){return t!==t}});var IOe=$e,ROe=IOe.Number.isNaN,DOe=ROe,jOe=DOe,AOe=jOe,x_=he(AOe),NOe=Ct,zOe=NOe.isFinite,FOe=Number.isFinite||function(t){return typeof t=="number"&&zOe(t)},LOe=ye,BOe=FOe;LOe({target:"Number",stat:!0},{isFinite:BOe});var $Oe=$e,WOe=$Oe.Number.isFinite,HOe=WOe,UOe=HOe,VOe=UOe,zs=he(VOe),qOe=ye,KOe=ya.some,YOe=Tu,XOe=YOe("some");qOe({target:"Array",proto:!0,forced:!XOe},{some:function(t){return KOe(this,t,arguments.length>1?arguments[1]:void 0)}});var GOe=ln,QOe=GOe("Array").some,JOe=Nt,ZOe=QOe,k_=Array.prototype,eTe=function(t){var e=t.some;return t===k_||JOe(k_,t)&&e===k_.some?ZOe:e},tTe=eTe,nTe=tTe,rTe=nTe,oTe=he(rTe),iTe=$e,aTe=iTe.Object.getOwnPropertySymbols,sTe=aTe,lTe=sTe,uTe=lTe,Ta=he(uTe),jB={exports:{}},cTe=ye,dTe=Be,hTe=Bo,AB=uu.f,NB=on,fTe=!NB||dTe(function(){AB(1)});cTe({target:"Object",stat:!0,forced:fTe,sham:!NB},{getOwnPropertyDescriptor:function(t,e){return AB(hTe(t),e)}});var pTe=$e,zB=pTe.Object,gTe=jB.exports=function(t,e){return zB.getOwnPropertyDescriptor(t,e)};zB.getOwnPropertyDescriptor.sham&&(gTe.sham=!0);var vTe=jB.exports,mTe=vTe,FB=mTe,yTe=FB,Pa=he(yTe),bTe=ye,wTe=on,xTe=zwe,kTe=Bo,STe=uu,_Te=Su;bTe({target:"Object",stat:!0,sham:!wTe},{getOwnPropertyDescriptors:function(t){for(var e=kTe(t),n=STe.f,r=xTe(e),o={},i=0,a,s;r.length>i;)s=n(e,a=r[i++]),s!==void 0&&_Te(o,a,s);return o}});var ETe=$e,CTe=ETe.Object.getOwnPropertyDescriptors,OTe=CTe,TTe=OTe,PTe=TTe,Ma=he(PTe),LB={exports:{}},MTe=ye,ITe=on,BB=Dv.f;MTe({target:"Object",stat:!0,forced:Object.defineProperties!==BB,sham:!ITe},{defineProperties:BB});var RTe=$e,$B=RTe.Object,DTe=LB.exports=function(t,e){return $B.defineProperties(t,e)};$B.defineProperties.sham&&(DTe.sham=!0);var jTe=LB.exports,ATe=jTe,NTe=ATe,zTe=NTe,gm=he(zTe),FTe=Oz,vm=he(FTe);function mm(t,e,n){return e=DF(e),e in t?Wv(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var WB=Ct,LTe=Be,BTe=He,$Te=$o,WTe=tL.trim,HTe=$S,UTe=BTe("".charAt),ym=WB.parseFloat,HB=WB.Symbol,UB=HB&&HB.iterator,VTe=1/ym(HTe+"-0")!==-1/0||UB&&!LTe(function(){ym(Object(UB))}),qTe=VTe?function(t){var e=WTe($Te(t)),n=ym(e);return n===0&&UTe(e,0)==="-"?-0:n}:ym,KTe=ye,VB=qTe;KTe({global:!0,forced:parseFloat!==VB},{parseFloat:VB});var YTe=$e,XTe=YTe.parseFloat,GTe=XTe,QTe=GTe,JTe=QTe,qB=he(JTe),ZTe=ye,e2e=Be,t2e=Hv.f,n2e=e2e(function(){return!Object.getOwnPropertyNames(1)});ZTe({target:"Object",stat:!0,forced:n2e},{getOwnPropertyNames:t2e});var r2e=$e,o2e=r2e.Object,i2e=function(t){return o2e.getOwnPropertyNames(t)},a2e=i2e,s2e=a2e,l2e=s2e,u2e=he(l2e);function S_(t,e){var n=["node","edge","label"],r=!0,o=Ea(e,"chosen");if(typeof o=="boolean")r=o;else if(Ze(o)==="object"){if(We(n).call(n,t)===-1)throw new Error("choosify: subOption '"+t+"' should be one of '"+n.join("', '")+"'");var i=Ea(e,["chosen",t]);(typeof i=="boolean"||typeof i=="function")&&(r=i)}return r}function __(t,e,n){if(t.width<=0||t.height<=0)return!1;if(n!==void 0){var r={x:e.x-n.x,y:e.y-n.y};if(n.angle!==0){var o=-n.angle,i={x:Math.cos(o)*r.x-Math.sin(o)*r.y,y:Math.sin(o)*r.x+Math.cos(o)*r.y};e=i}else e=r}var a=t.x+t.width,s=t.y+t.width;return t.lefte.x&&t.tope.y}function bm(t){return typeof t=="string"&&t!==""}function KB(t,e,n,r){var o=r.x,i=r.y;if(typeof r.distanceToBorder=="function"){var a=r.distanceToBorder(t,e),s=Math.sin(e)*a,l=Math.cos(e)*a;l===a?(o+=a,i=r.y):s===a?(o=r.x,i-=a):(o+=l,i-=s)}else r.shape.width>r.shape.height?(o=r.x+r.shape.width*.5,i=r.y-n):(o=r.x+n,i=r.y-r.shape.height*.5);return{x:o,y:i}}var c2e=ln,d2e=c2e("Array").values,h2e=d2e,f2e=h2e,p2e=ws,g2e=sn,v2e=Nt,m2e=f2e,E_=Array.prototype,y2e={DOMTokenList:!0,NodeList:!0},b2e=function(t){var e=t.values;return t===E_||v2e(E_,t)&&e===E_.values||g2e(y2e,p2e(t))?m2e:e},w2e=b2e,YB=he(w2e),x2e=function(){function t(e){Z(this,t),this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}return ee(t,[{key:"_add",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});var o=n;(n===void 0||n==="")&&(o=" ");var i=this.measureText(o,r),a=Ut({},YB(i));a.text=n,a.width=i.width,a.mod=r,(n===void 0||n==="")&&(a.width=0),this.lines[e].blocks.push(a),this.lines[e].width+=a.width}},{key:"curWidth",value:function(){var e=this.lines[this.current];return e===void 0?0:e.width}},{key:"append",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n)}},{key:"newLine",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n),this.current++}},{key:"determineLineHeights",value:function(){for(var e=0;ee&&(e=o.width),n+=o.height}this.width=e,this.height=n}},{key:"removeEmptyBlocks",value:function(){for(var e=[],n=0;n"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},XB=function(){function t(e){Z(this,t),this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return ee(t,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}},{key:"parseWS",value:function(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}},{key:"setTag",value:function(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}},{key:"unsetTag",value:function(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(e,n){return!this.mono&&!this[e]&&this.match(n)?(this.setTag(e),!0):!1}},{key:"match",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this.prepareRegExp(e),o=Pt(r,2),i=o[0],a=o[1],s=i.test(this.text.substr(this.position,a));return s&&n&&(this.position+=a-1),s}},{key:"parseEndTag",value:function(e,n,r){var o=this.mod()===e;return e==="mono"?o=o&&this.mono:o=o&&!this.mono,o&&this.match(n)?(r!==void 0?(this.position===this.text.length-1||this.match(r,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}},{key:"replace",value:function(e,n){return this.match(e)?(this.add(n),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(e){var n,r;if(e instanceof RegExp)r=e,n=1;else{var o=k2e[e];o!==void 0?r=o:r=new RegExp(e),n=e.length}return[r,n]}}]),t}(),S2e=function(){function t(e,n,r,o){var i=this;Z(this,t),this.ctx=e,this.parent=n,this.selected=r,this.hover=o;var a=function(s,l){if(s===void 0)return 0;var u=i.parent.getFormattingValues(e,r,o,l),c=0;if(s!==""){var h=i.ctx.measureText(s);c=h.width}return{width:c,values:u}};this.lines=new x2e(a)}return ee(t,[{key:"process",value:function(e){if(!bm(e))return this.lines.finalize();var n=this.parent.fontOptions;e=e.replace(/\r\n/g,` +`),e=e.replace(/\r/g,` +`);var r=String(e).split(` +`),o=r.length;if(n.multi)for(var i=0;i0)for(var s=0;s0)for(var f=0;f")||n.parseStartTag("ital","")||n.parseStartTag("mono","")||n.parseEndTag("bold","")||n.parseEndTag("ital","")||n.parseEndTag("mono",""))||r(o);i||n.add(o),n.position++}return n.emitBlock(),n.blocks}},{key:"splitMarkdownBlocks",value:function(e){for(var n=this,r=new XB(e),o=!0,i=function(l){return/\\/.test(l)?(r.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(e){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:"normal",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,n),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var o=e.split("\r");o.length>0;){var i=this.getLongestFit(o);if(i===0){var a=o[0],s=this.getLongestFitWord(a);this.lines.newLine(bn(a).call(a,0,s),n),o[0]=bn(a).call(a,s)}else{var l=i;o[i-1]===" "?i--:o[l]===" "&&l++;var u=bn(o).call(o,0,i).join("");i==o.length&&r?this.lines.append(u,n):this.lines.newLine(u,n),o=bn(o).call(o,l)}}}}]),t}(),zh=["bold","ital","boldital","mono"],GB=function(){function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Z(this,t),this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(n),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=r}return ee(t,[{key:"setOptions",value:function(e){if(this.elementOptions=e,this.initFontOptions(e.font),bm(e.label)?this.labelDirty=!0:e.label=void 0,e.font!==void 0&&e.font!==null){if(typeof e.font=="string")this.baseSize=this.fontOptions.size;else if(Ze(e.font)==="object"){var n=e.font.size;n!==void 0&&(this.baseSize=n)}}}},{key:"initFontOptions",value:function(e){var n=this;if(Ie(zh,function(r){n.fontOptions[r]={}}),t.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}Ie(e,function(r,o){r!=null&&Ze(r)!=="object"&&(n.fontOptions[o]=r)})}},{key:"constrain",value:function(e){var n={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},r=Ea(e,"widthConstraint");if(typeof r=="number")n.maxWdt=Number(r),n.minWdt=Number(r);else if(Ze(r)==="object"){var o=Ea(e,["widthConstraint","maximum"]);typeof o=="number"&&(n.maxWdt=Number(o));var i=Ea(e,["widthConstraint","minimum"]);typeof i=="number"&&(n.minWdt=Number(i))}var a=Ea(e,"heightConstraint");if(typeof a=="number")n.minHgt=Number(a);else if(Ze(a)==="object"){var s=Ea(e,["heightConstraint","minimum"]);typeof s=="number"&&(n.minHgt=Number(s));var l=Ea(e,["heightConstraint","valign"]);typeof l=="string"&&(l==="top"||l==="bottom")&&(n.valign=l)}return n}},{key:"update",value:function(e,n){this.setOptions(e,!0),this.propagateFonts(n),it(this.fontOptions,this.constrain(n)),this.fontOptions.chooser=S_("label",n)}},{key:"adjustSizes",value:function(e){var n=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=n,this.fontOptions.minWdt-=n);var r=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=r)}},{key:"addFontOptionsToPile",value:function(e,n){for(var r=0;r5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var s=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&s=this.elementOptions.scaling.label.maxVisible&&(s=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,o,i,n,r,a),this._drawBackground(e),this._drawText(e,n,this.size.yLine,a,s))}}},{key:"_drawBackground",value:function(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;var n=this.getSize();e.fillRect(n.left,n.top,n.width,n.height)}}},{key:"_drawText",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",i=arguments.length>4?arguments[4]:void 0,a=this._setAlignment(e,n,r,o),s=Pt(a,2);n=s[0],r=s[1],e.textAlign="left",n=n-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(r-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(r+=(this.size.height-this.size.labelHeight)/2));for(var l=0;l0&&(e.lineWidth=d.strokeWidth,e.strokeStyle=b,e.lineJoin="round"),e.fillStyle=g,d.strokeWidth>0&&e.strokeText(d.text,n+c,r+d.vadjust),e.fillText(d.text,n+c,r+d.vadjust),c+=d.width}r+=u.height}}}},{key:"_setAlignment",value:function(e,n,r,o){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){n=0,r=0;var i=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",r-=2*i):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",r+=2*i):e.textBaseline="middle"}else e.textBaseline=o;return[n,r]}},{key:"_getColor",value:function(e,n,r){var o=e||"#000000",i=r||"#ffffff";if(n<=this.elementOptions.scaling.label.drawThreshold){var a=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-n)));o=Vr(o,a),i=Vr(i,a)}return[o,i]}},{key:"getTextSize",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(e,n,r),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var e=2,n=this.size.left,r=this.size.top-.5*e;if(this.isEdgeLabel){var o=-this.size.width*.5;switch(this.fontOptions.align){case"middle":n=o,r=-this.size.height*.5;break;case"top":n=o,r=-(this.size.height+e);break;case"bottom":n=o,r=e;break}}var i={left:n,top:r,width:this.size.width,height:this.size.height};return i}},{key:"calculateLabelSize",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,n,r),this.size.left=o-this.size.width*.5,this.size.top=i-this.size.height*.5,this.size.yLine=i+(1-this.lineCount)*.5*this.fontOptions.size,a==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(e,n,r,o){var i=function(l,u,c){return u==="normal"?c==="mod"?"":l[c]:l[u][c]!==void 0?l[u][c]:l[c]},a={color:i(this.fontOptions,o,"color"),size:i(this.fontOptions,o,"size"),face:i(this.fontOptions,o,"face"),mod:i(this.fontOptions,o,"mod"),vadjust:i(this.fontOptions,o,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(n||r)&&(o==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?a.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(a,this.elementOptions.id,n,r));var s="";return a.mod!==void 0&&a.mod!==""&&(s+=a.mod+" "),s+=a.size+"px "+a.face,e.font=s.replace(/"/g,""),a.font=e.font,a.height=a.size,a}},{key:"differentState",value:function(e,n){return e!==this.selectedState||n!==this.hoverState}},{key:"_processLabelText",value:function(e,n,r,o){var i=new S2e(e,this,n,r);return i.process(o)}},{key:"_processLabel",value:function(e,n,r){if(!(this.labelDirty===!1&&!this.differentState(n,r))){var o=this._processLabelText(e,n,r,this.elementOptions.label);this.fontOptions.minWdt>0&&o.width0&&o.height0&&(this.enableBorderDashes(e,n),e.stroke(),this.disableBorderDashes(e,n)),e.restore()}},{key:"performFill",value:function(e,n){e.save(),e.fillStyle=n.color,this.enableShadow(e,n),wh(e).call(e),this.disableShadow(e,n),e.restore(),this.performStroke(e,n)}},{key:"_addBoundingBoxMargin",value:function(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}},{key:"_updateBoundingBox",value:function(e,n,r,o,i){r!==void 0&&this.resize(r,o,i),this.left=e-this.width/2,this.top=n-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(e,n,r,o,i){this._updateBoundingBox(e,n,r,o,i)}},{key:"getDimensionsFromLabel",value:function(e,n,r){this.textSize=this.labelModule.getTextSize(e,n,r);var o=this.textSize.width,i=this.textSize.height,a=14;return o===0&&(o=a,i=a),{width:o,height:i}}}]),t}();function pPe(t){var e=gPe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function gPe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var vPe=function(t){Ue(n,t);var e=pPe(n);function n(r,o,i){var a;return Z(this,n),a=e.call(this,r,o,i),a._setMargins(i),a}return ee(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,i)){var a=this.getDimensionsFromLabel(r,o,i);this.width=a.width+this.margin.right+this.margin.left,this.height=a.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s),this.left=o-this.width/2,this.top=i-this.height/2,this.initContextForDraw(r,l),xN(r,this.left,this.top,this.width,this.height,l.borderRadius),this.performFill(r,l),this.updateBoundingBox(o,i,r,a,s),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,a,s)}},{key:"updateBoundingBox",value:function(r,o,i,a,s){this._updateBoundingBox(r,o,i,a,s);var l=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(l)}},{key:"distanceToBorder",value:function(r,o){r&&this.resize(r);var i=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(o)),Math.abs(this.height/2/Math.sin(o)))+i}}]),n}(Fs);function mPe(t){var e=yPe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function yPe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var I_=function(t){Ue(n,t);var e=mPe(n);function n(r,o,i){var a;return Z(this,n),a=e.call(this,r,o,i),a.labelOffset=0,a.selected=!1,a}return ee(n,[{key:"setOptions",value:function(r,o,i){this.options=r,o===void 0&&i===void 0||this.setImages(o,i)}},{key:"setImages",value:function(r,o){o&&this.selected?(this.imageObj=o,this.imageObjAlt=r):(this.imageObj=r,this.imageObjAlt=o)}},{key:"switchImages",value:function(r){var o=r&&!this.selected||!r&&this.selected;if(this.selected=r,this.imageObjAlt!==void 0&&o){var i=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=i}}},{key:"_getImagePadding",value:function(){var r={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var o=this.options.imagePadding;Ze(o)=="object"?(r.top=o.top,r.right=o.right,r.bottom=o.bottom,r.left=o.left):(r.top=o,r.right=o,r.bottom=o,r.left=o)}return r}},{key:"_resizeImage",value:function(){var r,o;if(this.options.shapeProperties.useImageSize===!1){var i=1,a=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?i=this.imageObj.width/this.imageObj.height:a=this.imageObj.height/this.imageObj.width),r=this.options.size*2*i,o=this.options.size*2*a}else{var s=this._getImagePadding();r=this.imageObj.width+s.left+s.right,o=this.imageObj.height+s.top+s.bottom}this.width=r,this.height=o,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(r,o,i,a){this.initContextForDraw(r,a),Wk(r,o,i,a.size),this.performFill(r,a)}},{key:"_drawImageAtPosition",value:function(r,o){if(this.imageObj.width!=0){r.globalAlpha=o.opacity!==void 0?o.opacity:1,this.enableShadow(r,o);var i=1;this.options.shapeProperties.interpolation===!0&&(i=this.imageObj.width/this.width/this.body.view.scale);var a=this._getImagePadding(),s=this.left+a.left,l=this.top+a.top,u=this.width-a.left-a.right,c=this.height-a.top-a.bottom;this.imageObj.drawImageAtPosition(r,i,s,l,u,c),this.disableShadow(r,o)}}},{key:"_drawImageLabel",value:function(r,o,i,a,s){var l=0;if(this.height!==void 0){l=this.height*.5;var u=this.labelModule.getTextSize(r,a,s);u.lineCount>=1&&(l+=u.height/2)}var c=i+l;this.options.label&&(this.labelOffset=l),this.labelModule.draw(r,o,c,a,s,"hanging")}}]),n}(Fs);function bPe(t){var e=wPe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function wPe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var xPe=function(t){Ue(n,t);var e=bPe(n);function n(r,o,i){var a;return Z(this,n),a=e.call(this,r,o,i),a._setMargins(i),a}return ee(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,i)){var a=this.getDimensionsFromLabel(r,o,i),s=Math.max(a.width+this.margin.right+this.margin.left,a.height+this.margin.top+this.margin.bottom);this.options.size=s/2,this.width=s,this.height=s,this.radius=this.width/2}}},{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s),this.left=o-this.width/2,this.top=i-this.height/2,this._drawRawCircle(r,o,i,l),this.updateBoundingBox(o,i),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,i,a,s)}},{key:"updateBoundingBox",value:function(r,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=o+this.options.size}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.width*.5}}]),n}(I_);function kPe(t){var e=SPe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function SPe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var _Pe=function(t){Ue(n,t);var e=kPe(n);function n(r,o,i,a,s){var l;return Z(this,n),l=e.call(this,r,o,i),l.setImages(a,s),l}return ee(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,a=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(a){var s=this.options.size*2;this.width=s,this.height=s,this.radius=.5*this.width;return}this.needsRefresh(o,i)&&this._resizeImage()}},{key:"draw",value:function(r,o,i,a,s,l){this.switchImages(a),this.resize();var u=o,c=i;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=i,u+=this.width/2,c+=this.height/2):(this.left=o-this.width/2,this.top=i-this.height/2),this._drawRawCircle(r,u,c,l),r.save(),r.clip(),this._drawImageAtPosition(r,l),r.restore(),this._drawImageLabel(r,u,c,a,s),this.updateBoundingBox(o,i)}},{key:"updateBoundingBox",value:function(r,o){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=o,this.boundingBox.left=r,this.boundingBox.right=r+this.options.size*2,this.boundingBox.bottom=o+this.options.size*2):(this.boundingBox.top=o-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=o+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.width*.5}}]),n}(I_);function EPe(t){var e=CPe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function CPe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var Ia=function(t){Ue(n,t);var e=EPe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(o,i)){var s,l;this.labelModule.getTextSize(r,o,i);var u=2*a.size;this.width=(s=this.customSizeWidth)!==null&&s!==void 0?s:u,this.height=(l=this.customSizeHeight)!==null&&l!==void 0?l:u,this.radius=.5*this.width}}},{key:"_drawShape",value:function(r,o,i,a,s,l,u,c){var h=this;return this.resize(r,l,u,c),this.left=a-this.width/2,this.top=s-this.height/2,this.initContextForDraw(r,c),spe(o)(r,a,s,c.size),this.performFill(r,c),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(r.font=(l?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),r.fillStyle=this.options.icon.color||"black",r.textAlign="center",r.textBaseline="middle",r.fillText(this.options.icon.code,a,s)),{drawExternalLabel:function(){if(h.options.label!==void 0){h.labelModule.calculateLabelSize(r,l,u,a,s,"hanging");var d=s+.5*h.height+.5*h.labelModule.size.height;h.labelModule.draw(r,a,d,l,u,"hanging")}h.updateBoundingBox(a,s)}}}},{key:"updateBoundingBox",value:function(r,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=r-this.options.size,this.boundingBox.right=r+this.options.size,this.boundingBox.bottom=o+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),n}(Fs);function o5(t,e){var n=Mt(t);if(Ta){var r=Ta(t);e&&(r=ar(r).call(r,function(o){return Pa(t,o).enumerable})),n.push.apply(n,r)}return n}function OPe(t){for(var e=1;e"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var MPe=function(t){Ue(n,t);var e=TPe(n);function n(r,o,i,a){var s;return Z(this,n),s=e.call(this,r,o,i,a),s.ctxRenderer=a,s}return ee(n,[{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s,l),this.left=o-this.width/2,this.top=i-this.height/2,r.save();var u=this.ctxRenderer({ctx:r,id:this.options.id,x:o,y:i,state:{selected:a,hover:s},style:OPe({},l),label:this.options.label});if(u.drawNode!=null&&u.drawNode(),r.restore(),u.drawExternalLabel){var c=u.drawExternalLabel;u.drawExternalLabel=function(){r.save(),c(),r.restore()}}return u.nodeDimensions&&(this.customSizeWidth=u.nodeDimensions.width,this.customSizeHeight=u.nodeDimensions.height),u}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function IPe(t){var e=RPe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function RPe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var DPe=function(t){Ue(n,t);var e=IPe(n);function n(r,o,i){var a;return Z(this,n),a=e.call(this,r,o,i),a._setMargins(i),a}return ee(n,[{key:"resize",value:function(r,o,i){if(this.needsRefresh(o,i)){var a=this.getDimensionsFromLabel(r,o,i),s=a.width+this.margin.right+this.margin.left;this.width=s,this.height=s,this.radius=this.width/2}}},{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s),this.left=o-this.width/2,this.top=i-this.height/2,this.initContextForDraw(r,l),kN(r,o-this.width/2,i-this.height/2,this.width,this.height),this.performFill(r,l),this.updateBoundingBox(o,i,r,a,s),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,a,s)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Fs);function jPe(t){var e=APe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function APe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var NPe=function(t){Ue(n,t);var e=jPe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"diamond",4,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function zPe(t){var e=FPe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function FPe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var LPe=function(t){Ue(n,t);var e=zPe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"circle",2,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r){return r&&this.resize(r),this.options.size}}]),n}(Ia);function BPe(t){var e=$Pe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function $Pe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var i5=function(t){Ue(n,t);var e=BPe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,i)){var a=this.getDimensionsFromLabel(r,o,i);this.height=a.height*2,this.width=a.width+a.height,this.radius=.5*this.width}}},{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s),this.left=o-this.width*.5,this.top=i-this.height*.5,this.initContextForDraw(r,l),Hk(r,this.left,this.top,this.width,this.height),this.performFill(r,l),this.updateBoundingBox(o,i,r,a,s),this.labelModule.draw(r,o,i,a,s)}},{key:"distanceToBorder",value:function(r,o){r&&this.resize(r);var i=this.width*.5,a=this.height*.5,s=Math.sin(o)*i,l=Math.cos(o)*a;return i*a/Math.sqrt(s*s+l*l)}}]),n}(Fs);function WPe(t){var e=HPe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function HPe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var UPe=function(t){Ue(n,t);var e=WPe(n);function n(r,o,i){var a;return Z(this,n),a=e.call(this,r,o,i),a._setMargins(i),a}return ee(n,[{key:"resize",value:function(r,o,i){this.needsRefresh(o,i)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(r,o,i,a,s,l){var u=this;return this.resize(r,a,s),this.options.icon.size=this.options.icon.size||50,this.left=o-this.width/2,this.top=i-this.height/2,this._icon(r,o,i,a,s,l),{drawExternalLabel:function(){if(u.options.label!==void 0){var c=5;u.labelModule.draw(r,u.left+u.iconSize.width/2+u.margin.left,i+u.height/2+c,a)}u.updateBoundingBox(o,i)}}}},{key:"updateBoundingBox",value:function(r,o){if(this.boundingBox.top=o-this.options.icon.size*.5,this.boundingBox.left=r-this.options.icon.size*.5,this.boundingBox.right=r+this.options.icon.size*.5,this.boundingBox.bottom=o+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0){var i=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+i)}}},{key:"_icon",value:function(r,o,i,a,s,l){var u=Number(this.options.icon.size);this.options.icon.code!==void 0?(r.font=[this.options.icon.weight!=null?this.options.icon.weight:a?"bold":"",(this.options.icon.weight!=null&&a?5:0)+u+"px",this.options.icon.face].join(" "),r.fillStyle=this.options.icon.color||"black",r.textAlign="center",r.textBaseline="middle",this.enableShadow(r,l),r.fillText(this.options.icon.code,o,i),this.disableShadow(r,l)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Fs);function VPe(t){var e=qPe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function qPe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var KPe=function(t){Ue(n,t);var e=VPe(n);function n(r,o,i,a,s){var l;return Z(this,n),l=e.call(this,r,o,i),l.setImages(a,s),l}return ee(n,[{key:"resize",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,a=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(a){var s=this.options.size*2;this.width=s,this.height=s;return}this.needsRefresh(o,i)&&this._resizeImage()}},{key:"draw",value:function(r,o,i,a,s,l){r.save(),this.switchImages(a),this.resize();var u=o,c=i;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=i,u+=this.width/2,c+=this.height/2):(this.left=o-this.width/2,this.top=i-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var h=this.options.borderWidth,d=this.options.borderWidthSelected||2*this.options.borderWidth,f=(a?d:h)/this.body.view.scale;r.lineWidth=Math.min(this.width,f),r.beginPath();var p=a?this.options.color.highlight.border:s?this.options.color.hover.border:this.options.color.border,g=a?this.options.color.highlight.background:s?this.options.color.hover.background:this.options.color.background;l.opacity!==void 0&&(p=Vr(p,l.opacity),g=Vr(g,l.opacity)),r.strokeStyle=p,r.fillStyle=g,r.rect(this.left-.5*r.lineWidth,this.top-.5*r.lineWidth,this.width+r.lineWidth,this.height+r.lineWidth),wh(r).call(r),this.performStroke(r,l),r.closePath()}this._drawImageAtPosition(r,l),this._drawImageLabel(r,u,c,a,s),this.updateBoundingBox(o,i),r.restore()}},{key:"updateBoundingBox",value:function(r,o){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=r,this.top=o):(this.left=r-this.width/2,this.top=o-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(I_);function YPe(t){var e=XPe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function XPe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var GPe=function(t){Ue(n,t);var e=YPe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"square",2,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function QPe(t){var e=JPe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function JPe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var ZPe=function(t){Ue(n,t);var e=QPe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"hexagon",4,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function eMe(t){var e=tMe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function tMe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var nMe=function(t){Ue(n,t);var e=eMe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"star",4,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function rMe(t){var e=oMe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function oMe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var iMe=function(t){Ue(n,t);var e=rMe(n);function n(r,o,i){var a;return Z(this,n),a=e.call(this,r,o,i),a._setMargins(i),a}return ee(n,[{key:"resize",value:function(r,o,i){this.needsRefresh(o,i)&&(this.textSize=this.labelModule.getTextSize(r,o,i),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(r,o,i,a,s,l){this.resize(r,a,s),this.left=o-this.width/2,this.top=i-this.height/2,this.enableShadow(r,l),this.labelModule.draw(r,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,a,s),this.disableShadow(r,l),this.updateBoundingBox(o,i,r,a,s)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Fs);function aMe(t){var e=sMe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function sMe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var lMe=function(t){Ue(n,t);var e=aMe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"triangle",3,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function uMe(t){var e=cMe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function cMe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var dMe=function(t){Ue(n,t);var e=uMe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"draw",value:function(r,o,i,a,s,l){return this._drawShape(r,"triangleDown",3,o,i,a,s,l)}},{key:"distanceToBorder",value:function(r,o){return this._distanceToBorder(r,o)}}]),n}(Ia);function a5(t,e){var n=Mt(t);if(Ta){var r=Ta(t);e&&(r=ar(r).call(r,function(o){return Pa(t,o).enumerable})),n.push.apply(n,r)}return n}function s5(t){for(var e=1;ee.left&&this.shape.tope.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}}],[{key:"checkOpacity",value:function(e){return 0<=e&&e<=1}},{key:"checkCoordinateOrigin",value:function(e){return e===void 0||e==="center"||e==="top-left"}},{key:"updateGroupOptions",value:function(e,n,r){var o;if(r!==void 0){var i=e.group;if(n!==void 0&&n.group!==void 0&&i!==n.group)throw new Error("updateGroupOptions: group values in options don't match.");var a=typeof i=="number"||typeof i=="string"&&i!="";if(a){var s=r.get(i);s.opacity!==void 0&&n.opacity===void 0&&(t.checkOpacity(s.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+s.opacity),s.opacity=void 0));var l=ar(o=u2e(n)).call(o,function(u){return n[u]!=null});l.push("font"),um(l,e,s),e.color=s_(e.color)}}}},{key:"parseOptions",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,a=["color","fixed","shadow"];if(um(a,e,n,r),t.checkMass(n),e.opacity!==void 0&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),n.opacity!==void 0&&(t.checkOpacity(n.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+n.opacity),n.opacity=void 0)),n.shapeProperties&&!t.checkCoordinateOrigin(n.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+n.shapeProperties.coordinateOrigin),qr(e,n,"shadow",o),n.color!==void 0&&n.color!==null){var s=s_(n.color);tB(e.color,s)}else r===!0&&n.color===null&&(e.color=_a(o.color));n.fixed!==void 0&&n.fixed!==null&&(typeof n.fixed=="boolean"?(e.fixed.x=n.fixed,e.fixed.y=n.fixed):(n.fixed.x!==void 0&&typeof n.fixed.x=="boolean"&&(e.fixed.x=n.fixed.x),n.fixed.y!==void 0&&typeof n.fixed.y=="boolean"&&(e.fixed.y=n.fixed.y))),r===!0&&n.font===null&&(e.font=_a(o.font)),t.updateGroupOptions(e,n,i),n.scaling!==void 0&&qr(e.scaling,n.scaling,"label",o.scaling)}},{key:"checkMass",value:function(e,n){if(e.mass!==void 0&&e.mass<=0){var r="";n!==void 0&&(r=" in node id: "+n),console.error("%cNegative or zero mass disallowed"+r+", setting mass to 1.",aB),e.mass=1}}}]),t}();function hMe(t,e){var n=typeof wa<"u"&&Ss(t)||t["@@iterator"];if(!n){if(Ge(t)||(n=fMe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function fMe(t,e){var n;if(t){if(typeof t=="string")return l5(t,e);var r=bn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l5(t,e)}}function l5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(var n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&this.body.nodes[n].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(var r=0,o=Mt(this.body.nodes);r1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.data.nodes;if(OA("id",e))this.body.data.nodes=e;else if(Ge(e))this.body.data.nodes=new lu,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new lu;else throw new TypeError("Array or DataSet expected");if(r&&Ie(this.nodesListeners,function(a,s){r.off(s,a)}),this.body.nodes={},this.body.data.nodes){var o=this;Ie(this.nodesListeners,function(a,s){o.body.data.nodes.on(s,a)});var i=this.body.data.nodes.getIds();this.add(i,!0)}n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r,o=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:Cr;return new n(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ie(this.body.nodes,function(r,o){var i=e.body.data.nodes.get(o);i!==void 0&&(n===!0&&r.setOptions({x:null,y:null}),r.setOptions({fixed:!1}),r.setOptions(i))})}},{key:"getPositions",value:function(e){var n={};if(e!==void 0){if(Ge(e)===!0){for(var r=0;r0?(s=a/i,n+=s*s):n+=a;return i===1/0?1/0:i*$Me(n)}});var HMe=$e,UMe=HMe.Math.hypot,VMe=UMe,qMe=VMe,KMe=qMe,YMe=he(KMe);function f5(t){var e=XMe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function XMe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var zt=function(){function t(){Z(this,t)}return ee(t,null,[{key:"transform",value:function(e,n){Ge(e)||(e=[e]);for(var r=n.point.x,o=n.point.y,i=n.angle,a=n.length,s=0;s4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,n),e.lineWidth=n.width,n.dashes!==!1?this._drawDashedLine(e,n,i):this._drawLine(e,n,i)}},{key:"_drawLine",value:function(e,n,r,o,i){if(this.from!=this.to)this._line(e,n,r,o,i);else{var a=this._getCircleData(e),s=Pt(a,3),l=s[0],u=s[1],c=s[2];this._circle(e,n,l,u,c)}}},{key:"_drawDashedLine",value:function(e,n,r,o,i){e.lineCap="round";var a=Ge(n.dashes)?n.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(a),e.lineDashOffset=0,this.from!=this.to)this._line(e,n,r);else{var s=this._getCircleData(e),l=Pt(s,3),u=l[0],c=l[1],h=l[2];this._circle(e,n,u,c,h)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)SN(e,this.from.x,this.from.y,this.to.x,this.to.y,a);else{var d=this._getCircleData(e),f=Pt(d,3),p=f[0],g=f[1],b=f[2];this._circle(e,n,p,g,b)}this.enableShadow(e,n),e.stroke(),this.disableShadow(e,n)}}},{key:"findBorderPosition",value:function(e,n,r){return this.from!=this.to?this._findBorderPosition(e,n,r):this._findBorderPositionCircle(e,n,r)}},{key:"findBorderPositions",value:function(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};var n,r=bn(n=this._getCircleData(e)).call(n,0,2),o=Pt(r,2),i=o[0],a=o[1];return{from:this._findBorderPositionCircle(this.from,e,{x:i,y:a,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:i,y:a,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(e){var n=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);var r=KB(e,this.options.selfReference.angle,n,this.from);return[r.x,r.y,n]}},{key:"_pointOnCircle",value:function(e,n,r,o){var i=o*2*Math.PI;return{x:e+r*Math.cos(i),y:n-r*Math.sin(i)}}},{key:"_findBorderPositionCircle",value:function(e,n,r){var o=r.x,i=r.y,a=r.low,s=r.high,l=r.direction,u=10,c=this.options.selfReference.size,h=.05,d,f=(a+s)*.5,p=0;this.options.arrowStrikethrough===!0&&(l===-1?p=this.options.endPointOffset.from:l===1&&(p=this.options.endPointOffset.to));var g=0;do{f=(a+s)*.5,d=this._pointOnCircle(o,i,c,f);var b=Math.atan2(e.y-d.y,e.x-d.x),m=e.distanceToBorder(n,b)+p,v=Math.sqrt(Math.pow(d.x-e.x,2)+Math.pow(d.y-e.y,2)),y=m-v;if(Math.abs(y)0?l>0?a=f:s=f:l>0?s=f:a=f,++g}while(a<=s&&g1?c=1:c<0&&(c=0);var h=e+c*s,d=n+c*l,f=h-i,p=d-a;return Math.sqrt(f*f+p*p)}},{key:"getArrowData",value:function(e,n,r,o,i,a){var s,l,u,c,h,d,f,p=a.width;n==="from"?(u=this.from,c=this.to,h=a.fromArrowScale<0,d=Math.abs(a.fromArrowScale),f=a.fromArrowType):n==="to"?(u=this.to,c=this.from,h=a.toArrowScale<0,d=Math.abs(a.toArrowScale),f=a.toArrowType):(u=this.to,c=this.from,h=a.middleArrowScale<0,d=Math.abs(a.middleArrowScale),f=a.middleArrowType);var g=15*d+3*p;if(u!=c){var b=YMe(u.x-c.x,u.y-c.y),m=g/b;if(n!=="middle")if(this.options.smooth.enabled===!0){var v=this._findBorderPosition(u,e,{via:r}),y=this.getPoint(v.t+m*(n==="from"?1:-1),r);s=Math.atan2(v.y-y.y,v.x-y.x),l=v}else s=Math.atan2(u.y-c.y,u.x-c.x),l=this._findBorderPosition(u,e);else{var x=(h?-m:m)/2,S=this.getPoint(.5+x,r),_=this.getPoint(.5-x,r);s=Math.atan2(S.y-_.y,S.x-_.x),l=this.getPoint(.5,r)}}else{var E=this._getCircleData(e),O=Pt(E,3),w=O[0],T=O[1],I=O[2];if(n==="from"){var R=this.options.selfReference.angle,j=this.options.selfReference.angle+Math.PI,D=this._findBorderPositionCircle(this.from,e,{x:w,y:T,low:R,high:j,direction:-1});s=D.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,l=D}else if(n==="to"){var P=this.options.selfReference.angle,M=this.options.selfReference.angle+Math.PI,N=this._findBorderPositionCircle(this.from,e,{x:w,y:T,low:P,high:M,direction:1});s=N.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,l=N}else{var A=this.options.selfReference.angle/(2*Math.PI);l=this._pointOnCircle(w,T,I,A),s=A*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var $=l.x-g*.9*Math.cos(s),W=l.y-g*.9*Math.sin(s),J={x:$,y:W};return{point:l,core:J,angle:s,length:g,type:f}}},{key:"drawArrowHead",value:function(e,n,r,o,i){e.strokeStyle=this.getColor(e,n),e.fillStyle=e.strokeStyle,e.lineWidth=n.width;var a=p5.draw(e,i);a&&(this.enableShadow(e,n),wh(e).call(e),this.disableShadow(e,n))}},{key:"enableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor=n.shadowColor,e.shadowBlur=n.shadowSize,e.shadowOffsetX=n.shadowX,e.shadowOffsetY=n.shadowY)}},{key:"disableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"drawBackground",value:function(e,n){if(n.background!==!1){var r={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=n.backgroundColor,e.lineWidth=n.backgroundSize,this.setStrokeDashed(e,n.backgroundDashes),e.stroke(),e.strokeStyle=r.strokeStyle,e.lineWidth=r.lineWidth,e.dashes=r.dashes,this.setStrokeDashed(e,n.dashes)}}},{key:"setStrokeDashed",value:function(e,n){if(n!==!1)if(e.setLineDash!==void 0){var r=Ge(n)?n:[5,5];e.setLineDash(r)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function y5(t,e){var n=Mt(t);if(Ta){var r=Ta(t);e&&(r=ar(r).call(r,function(o){return Pa(t,o).enumerable})),n.push.apply(n,r)}return n}function b5(t){for(var e=1;e"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var R_=function(t){Ue(n,t);var e=lIe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"_findBorderPositionBezier",value:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),a=10,s=.2,l=!1,u=1,c=0,h=this.to,d,f,p=this.options.endPointOffset?this.options.endPointOffset.to:0;r.id===this.from.id&&(h=this.from,l=!0,p=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(p=0);var g=0;do{f=(c+u)*.5,d=this.getPoint(f,i);var b=Math.atan2(h.y-d.y,h.x-d.x),m=h.distanceToBorder(o,b)+p,v=Math.sqrt(Math.pow(d.x-h.x,2)+Math.pow(d.y-h.y,2)),y=m-v;if(Math.abs(y)0&&(h=this._getDistanceToLine(b,m,p,g,s,l),c=h"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var w5=function(t){Ue(n,t);var e=cIe(n);function n(r,o,i){var a;return Z(this,n),a=e.call(this,r,o,i),a.via=a.via,a._boundFunction=function(){a.positionBezierNode()},a._body.emitter.on("_repositionBezierNodes",a._boundFunction),a}return ee(n,[{key:"setOptions",value:function(r){wm(le(n.prototype),"setOptions",this).call(this,r);var o=!1;this.options.physics!==r.physics&&(o=!0),this.options=r,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),o===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}},{key:"setupSupportNode",value:function(){if(this.via===void 0){var r="edgeId:"+this.id,o=this._body.functions.createNode({id:r,shape:"circle",physics:!0,hidden:!0});this._body.nodes[r]=o,this.via=o,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(r,o,i){this._bezierCurve(r,o,i)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var i=this._getCircleData(),a=Pt(i,3),s=a[0],l=a[1],u=a[2],c=2*Math.PI*(1-r);return{x:s+u*Math.sin(c),y:l+u-u*(1-Math.cos(c))}}else return{x:Math.pow(1-r,2)*this.fromPoint.x+2*r*(1-r)*o.x+Math.pow(r,2)*this.toPoint.x,y:Math.pow(1-r,2)*this.fromPoint.y+2*r*(1-r)*o.y+Math.pow(r,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(r,o){return this._findBorderPositionBezier(r,o,this.via)}},{key:"_getDistanceToEdge",value:function(r,o,i,a,s,l){return this._getDistanceToBezierEdge(r,o,i,a,s,l,this.via)}}]),n}(R_);function hIe(t){var e=fIe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function fIe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var x5=function(t){Ue(n,t);var e=hIe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"_line",value:function(r,o,i){this._bezierCurve(r,o,i)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var r=this.options.smooth.roundness,o=this.options.smooth.type,i=Math.abs(this.from.x-this.to.x),a=Math.abs(this.from.y-this.to.y);if(o==="discrete"||o==="diagonalCross"){var s,l;i<=a?s=l=r*a:s=l=r*i,this.from.x>this.to.x&&(s=-s),this.from.y>=this.to.y&&(l=-l);var u=this.from.x+s,c=this.from.y+l;return o==="discrete"&&(i<=a?u=ithis.to.x&&(E=-E),this.from.y>=this.to.y&&(O=-O);var w=this.from.x+E,T=this.from.y+O;return i<=a?this.from.x<=this.to.x?w=this.to.xw?this.to.x:w:this.from.y>=this.to.y?T=this.to.y>T?this.to.y:T:T=this.to.y2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(r,o,i.via)}},{key:"_getDistanceToEdge",value:function(r,o,i,a,s,l){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(r,o,i,a,s,l,u)}},{key:"getPoint",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),i=r,a=Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*o.x+Math.pow(i,2)*this.toPoint.x,s=Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*o.y+Math.pow(i,2)*this.toPoint.y;return{x:a,y:s}}}]),n}(R_);function pIe(t){var e=gIe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function gIe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var vIe=function(t){Ue(n,t);var e=pIe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"_getDistanceToBezierEdge2",value:function(r,o,i,a,s,l,u,c){for(var h=1e9,d=r,f=o,p=[0,0,0,0],g=1;g<10;g++){var b=.1*g;p[0]=Math.pow(1-b,3),p[1]=3*b*Math.pow(1-b,2),p[2]=3*Math.pow(b,2)*(1-b),p[3]=Math.pow(b,3);var m=p[0]*r+p[1]*u.x+p[2]*c.x+p[3]*i,v=p[0]*o+p[1]*u.y+p[2]*c.y+p[3]*a;if(g>0){var y=this._getDistanceToLine(d,f,m,v,s,l);h=y"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var k5=function(t){Ue(n,t);var e=mIe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"_line",value:function(r,o,i){var a=i[0],s=i[1];this._bezierCurve(r,o,a,s)}},{key:"_getViaCoordinates",value:function(){var r=this.from.x-this.to.x,o=this.from.y-this.to.y,i,a,s,l,u=this.options.smooth.roundness;return(Math.abs(r)>Math.abs(o)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(a=this.from.y,l=this.to.y,i=this.from.x-u*r,s=this.to.x+u*r):(a=this.from.y-u*o,l=this.to.y+u*o,i=this.from.x,s=this.to.x),[{x:i,y:a},{x:s,y:l}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(r,o){return this._findBorderPositionBezier(r,o)}},{key:"_getDistanceToEdge",value:function(r,o,i,a,s,l){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),c=Pt(u,2),h=c[0],d=c[1];return this._getDistanceToBezierEdge2(r,o,i,a,s,l,h,d)}},{key:"getPoint",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),i=Pt(o,2),a=i[0],s=i[1],l=r,u=[Math.pow(1-l,3),3*l*Math.pow(1-l,2),3*Math.pow(l,2)*(1-l),Math.pow(l,3)],c=u[0]*this.fromPoint.x+u[1]*a.x+u[2]*s.x+u[3]*this.toPoint.x,h=u[0]*this.fromPoint.y+u[1]*a.y+u[2]*s.y+u[3]*this.toPoint.y;return{x:c,y:h}}}]),n}(vIe);function bIe(t){var e=wIe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function wIe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var S5=function(t){Ue(n,t);var e=bIe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"_line",value:function(r,o){r.beginPath(),r.moveTo(this.fromPoint.x,this.fromPoint.y),r.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(r,o),r.stroke(),this.disableShadow(r,o)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(r){return{x:(1-r)*this.fromPoint.x+r*this.toPoint.x,y:(1-r)*this.fromPoint.y+r*this.toPoint.y}}},{key:"_findBorderPosition",value:function(r,o){var i=this.to,a=this.from;r.id===this.from.id&&(i=this.from,a=this.to);var s=Math.atan2(i.y-a.y,i.x-a.x),l=i.x-a.x,u=i.y-a.y,c=Math.sqrt(l*l+u*u),h=r.distanceToBorder(o,s),d=(c-h)/c;return{x:(1-d)*a.x+d*i.x,y:(1-d)*a.y+d*i.y,t:0}}},{key:"_getDistanceToEdge",value:function(r,o,i,a,s,l){return this._getDistanceToLine(r,o,i,a,s,l)}}]),n}(m5),Bu=function(){function t(e,n,r,o,i){if(Z(this,t),n===void 0)throw new Error("No body provided");this.options=_a(o),this.globalOptions=o,this.defaultOptions=i,this.body=n,this.imagelist=r,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new GB(this.body,this.options,!0),this.setOptions(e)}return ee(t,[{key:"setOptions",value:function(e){if(e){var n=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=qB(e.value));var r=[e,this.options,this.defaultOptions];return this.chooser=S_("edge",r),this.updateLabelModule(e),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,n=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,r=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,o=this.options.color.inherit,i={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:r,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:n,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:o?void 0:this.options.color.color,inheritsColor:o,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){var a=this.options.selectionWidth;typeof a=="function"?i.width=a(i.width):typeof a=="number"&&(i.width+=a),i.width=Math.max(i.width,.3/this.body.view.scale),i.color=this.options.color.highlight,i.shadow=this.options.shadow.enabled}else if(this.hover){var s=this.options.hoverWidth;typeof s=="function"?i.width=s(i.width):typeof s=="number"&&(i.width+=s),i.width=Math.max(i.width,.3/this.body.view.scale),i.color=this.options.color.hover,i.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(i,this.options.id,this.selected,this.hover),i.color!==void 0&&(i.inheritsColor=!1),i.shadow===!1&&(i.shadowColor!==this.options.shadow.color||i.shadowSize!==this.options.shadow.size||i.shadowX!==this.options.shadow.x||i.shadowY!==this.options.shadow.y)&&(i.shadow=!0));else i.shadow=this.options.shadow.enabled,i.width=Math.max(i.width,.3/this.body.view.scale);return i}},{key:"updateLabelModule",value:function(e){var n=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,n),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var e=this.options.smooth,n=!1,r=!0;return this.edgeType!==void 0&&((this.edgeType instanceof w5&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof k5&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof x5&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof S5&&e.type.enabled===!1)&&(r=!1),r===!0&&(n=this.cleanup())),r===!0?e.enabled===!0?e.type==="dynamic"?(n=!0,this.edgeType=new w5(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new k5(this.options,this.body,this.labelModule):this.edgeType=new x5(this.options,this.body,this.labelModule):this.edgeType=new S5(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),n}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(e,n,r){if(this.options.value!==void 0){var o=this.options.scaling.customScalingFunction(e,n,r,this.options.value),i=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var a=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*a}this.options.width=this.options.scaling.min+o*i}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var r=this.edgeType.getViaNode();this.edgeType.drawLine(e,n,this.selected,this.hover,r),this.drawLabel(e,r)}}},{key:"drawArrows",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var r=this.edgeType.getViaNode(),o={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,n.fromArrow&&(o.from=this.edgeType.getArrowData(e,"from",r,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.fromPoint=o.from.core),n.fromArrowSrc&&(o.from.image=this.imagelist.load(n.fromArrowSrc)),n.fromArrowImageWidth&&(o.from.imageWidth=n.fromArrowImageWidth),n.fromArrowImageHeight&&(o.from.imageHeight=n.fromArrowImageHeight)),n.toArrow&&(o.to=this.edgeType.getArrowData(e,"to",r,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.toPoint=o.to.core),n.toArrowSrc&&(o.to.image=this.imagelist.load(n.toArrowSrc)),n.toArrowImageWidth&&(o.to.imageWidth=n.toArrowImageWidth),n.toArrowImageHeight&&(o.to.imageHeight=n.toArrowImageHeight)),n.middleArrow&&(o.middle=this.edgeType.getArrowData(e,"middle",r,this.selected,this.hover,n),n.middleArrowSrc&&(o.middle.image=this.imagelist.load(n.middleArrowSrc)),n.middleArrowImageWidth&&(o.middle.imageWidth=n.middleArrowImageWidth),n.middleArrowImageHeight&&(o.middle.imageHeight=n.middleArrowImageHeight)),n.fromArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.from),n.middleArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.middle),n.toArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.to)}}},{key:"drawLabel",value:function(e,n){if(this.options.label!==void 0){var r=this.from,o=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);var i;if(r.id!=o.id){this.labelModule.pointToSelf=!1,i=this.edgeType.getPoint(.5,n),e.save();var a=this._getRotation(e);a.angle!=0&&(e.translate(a.x,a.y),e.rotate(a.angle)),this.labelModule.draw(e,i.x,i.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;var s=KB(e,this.options.selfReference.angle,this.options.selfReference.size,r);i=this._pointOnCircle(s.x,s.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,i.x,i.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(e){var n=[];if(this.labelModule.visible()){var r=this._getRotation();__(this.labelModule.getSize(),e,r)&&n.push({edgeId:this.id,labelId:0})}var o={left:e.x,top:e.y};return this.isOverlappingWith(o)&&n.push({edgeId:this.id}),n}},{key:"isOverlappingWith",value:function(e){if(this.connected){var n=10,r=this.from.x,o=this.from.y,i=this.to.x,a=this.to.y,s=e.left,l=e.top,u=this.edgeType.getDistanceToEdge(r,o,i,a,s,l);return u0&&a<0)&&(s+=Math.PI),o.angle=s,o}},{key:"_pointOnCircle",value:function(e,n,r,o){return{x:e+r*Math.cos(o),y:n-r*Math.sin(o)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}],[{key:"parseOptions",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(Nu(a,e,n,r),n.endPointOffset!==void 0&&n.endPointOffset.from!==void 0&&(zs(n.endPointOffset.from)?e.endPointOffset.from=n.endPointOffset.from:(e.endPointOffset.from=o.endPointOffset.from!==void 0?o.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),n.endPointOffset!==void 0&&n.endPointOffset.to!==void 0&&(zs(n.endPointOffset.to)?e.endPointOffset.to=n.endPointOffset.to:(e.endPointOffset.to=o.endPointOffset.to!==void 0?o.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),bm(n.label)?e.label=n.label:bm(e.label)||(e.label=void 0),qr(e,n,"smooth",o),qr(e,n,"shadow",o),qr(e,n,"background",o),n.dashes!==void 0&&n.dashes!==null?e.dashes=n.dashes:r===!0&&n.dashes===null&&(e.dashes=Ts(o.dashes)),n.scaling!==void 0&&n.scaling!==null?(n.scaling.min!==void 0&&(e.scaling.min=n.scaling.min),n.scaling.max!==void 0&&(e.scaling.max=n.scaling.max),qr(e.scaling,n.scaling,"label",o.scaling)):r===!0&&n.scaling===null&&(e.scaling=Ts(o.scaling)),n.arrows!==void 0&&n.arrows!==null)if(typeof n.arrows=="string"){var s=n.arrows.toLowerCase();e.arrows.to.enabled=We(s).call(s,"to")!=-1,e.arrows.middle.enabled=We(s).call(s,"middle")!=-1,e.arrows.from.enabled=We(s).call(s,"from")!=-1}else if(Ze(n.arrows)==="object")qr(e.arrows,n.arrows,"to",o.arrows),qr(e.arrows,n.arrows,"middle",o.arrows),qr(e.arrows,n.arrows,"from",o.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+bh(n.arrows));else r===!0&&n.arrows===null&&(e.arrows=Ts(o.arrows));if(n.color!==void 0&&n.color!==null){var l=Au(n.color)?{color:n.color,highlight:n.color,hover:n.color,inherit:!1,opacity:1}:n.color,u=e.color;if(i)it(u,o.color,!1,r);else for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&delete u[c];if(Au(u))u.color=u,u.highlight=u,u.hover=u,u.inherit=!1,l.opacity===void 0&&(u.opacity=1);else{var h=!1;l.color!==void 0&&(u.color=l.color,h=!0),l.highlight!==void 0&&(u.highlight=l.highlight,h=!0),l.hover!==void 0&&(u.hover=l.hover,h=!0),l.inherit!==void 0&&(u.inherit=l.inherit),l.opacity!==void 0&&(u.opacity=Math.min(1,Math.max(0,l.opacity))),h===!0?u.inherit=!1:u.inherit===void 0&&(u.inherit="from")}}else r===!0&&n.color===null&&(e.color=_a(o.color));r===!0&&n.font===null&&(e.font=_a(o.font)),Object.prototype.hasOwnProperty.call(n,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=n.selfReferenceSize)}}]),t}(),xIe=function(){function t(e,n,r){var o,i=this;Z(this,t),this.body=e,this.images=n,this.groups=r,this.body.functions.createEdge=Y(o=this.create).call(o,this),this.edgesListeners={add:function(a,s){i.add(s.items)},update:function(a,s){i.update(s.items)},remove:function(a,s){i.remove(s.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(a,s,l,u){if(s===a)return .5;var c=1/(s-a);return Math.max(0,(u-a)*c)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},it(this.options,this.defaultOptions),this.bindEventListeners()}return ee(t,[{key:"bindEventListeners",value:function(){var e=this,n,r;this.body.emitter.on("_forceDisableDynamicCurves",function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;o==="dynamic"&&(o="continuous");var a=!1;for(var s in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,s)){var l=e.body.edges[s],u=e.body.data.edges.get(s);if(u!=null){var c=u.smooth;c!==void 0&&c.enabled===!0&&c.type==="dynamic"&&(o===void 0?l.setOptions({smooth:!1}):l.setOptions({smooth:{type:o}}),a=!0)}}i===!0&&a===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",Y(n=this.refresh).call(n,this)),this.body.emitter.on("refresh",Y(r=this.refresh).call(r,this)),this.body.emitter.on("destroy",function(){Ie(e.edgesListeners,function(o,i){e.body.data.edges&&e.body.data.edges.off(i,o)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){Bu.parseOptions(this.options,e,!0,this.defaultOptions,!0);var n=!1;if(e.smooth!==void 0)for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&(n=this.body.edges[r].updateEdgeType()||n);if(e.font!==void 0)for(var o in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,o)&&this.body.edges[o].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||n===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.body.data.edges;if(OA("id",e))this.body.data.edges=e;else if(Ge(e))this.body.data.edges=new lu,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new lu;else throw new TypeError("Array or DataSet expected");if(o&&Ie(this.edgesListeners,function(a,s){o.off(s,a)}),this.body.edges={},this.body.data.edges){Ie(this.edgesListeners,function(a,s){n.body.data.edges.on(s,a)});var i=this.body.data.edges.getIds();this.add(i,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),r===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.edges,o=this.body.data.edges,i=0;i1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length!==0){var r=this.body.edges;Ie(e,function(o){var i=r[o];i!==void 0&&i.remove()}),n&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var e=this;Ie(this.body.edges,function(n,r){var o=e.body.data.edges.get(r);o!==void 0&&n.setOptions(o)})}},{key:"create",value:function(e){return new Bu(e,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var e,n=this.body.nodes,r=this.body.edges;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e].edges=[]);for(e in r)if(Object.prototype.hasOwnProperty.call(r,e)){var o=r[e];o.from=null,o.to=null,o.connect()}}},{key:"getConnectedNodes",value:function(e){var n=[];if(this.body.edges[e]!==void 0){var r=this.body.edges[e];r.fromId!==void 0&&n.push(r.fromId),r.toId!==void 0&&n.push(r.toId)}return n}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var e=this,n=[];Ie(this.body.edges,function(r,o){var i=e.body.nodes[r.toId],a=e.body.nodes[r.fromId];i!==void 0&&i.isCluster===!0||a!==void 0&&a.isCluster===!0||(i===void 0||a===void 0)&&n.push(o)}),this.remove(n,!1)}},{key:"_addMissingEdges",value:function(){var e=this.body.data.edges;if(e!=null){var n=this.body.edges,r=[];tt(e).call(e,function(o,i){var a=n[i];a===void 0&&r.push(i)}),this.add(r,!0)}}}]),t}(),_5=function(){function t(e,n,r){Z(this,t),this.body=e,this.physicsBody=n,this.barnesHutTree,this.setOptions(r),this._rng=lm("BARNES HUT SOLVER")}return ee(t,[{key:"setOptions",value:function(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var e,n=this.body.nodes,r=this.physicsBody.physicsNodeIndices,o=r.length,i=this._formBarnesHutTree(n,r);this.barnesHutTree=i;for(var a=0;a0&&this._getForceContributions(i.root,e)}}},{key:"_getForceContributions",value:function(e,n){this._getForceContribution(e.children.NW,n),this._getForceContribution(e.children.NE,n),this._getForceContribution(e.children.SW,n),this._getForceContribution(e.children.SE,n)}},{key:"_getForceContribution",value:function(e,n){if(e.childrenCount>0){var r=e.centerOfMass.x-n.x,o=e.centerOfMass.y-n.y,i=Math.sqrt(r*r+o*o);i*e.calcSize>this.thetaInversed?this._calculateForces(i,r,o,n,e):e.childrenCount===4?this._getForceContributions(e,n):e.children.data.id!=n.id&&this._calculateForces(i,r,o,n,e)}}},{key:"_calculateForces",value:function(e,n,r,o,i){e===0&&(e=.1,n=e),this.overlapAvoidanceFactor<1&&o.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*o.shape.radius,e-o.shape.radius));var a=this.options.gravitationalConstant*i.mass*o.options.mass/Math.pow(e,3),s=n*a,l=r*a;this.physicsBody.forces[o.id].x+=s,this.physicsBody.forces[o.id].y+=l}},{key:"_formBarnesHutTree",value:function(e,n){for(var r,o=n.length,i=e[n[0]].x,a=e[n[0]].y,s=e[n[0]].x,l=e[n[0]].y,u=1;u0&&(hs&&(s=h),dl&&(l=d))}var f=Math.abs(s-i)-Math.abs(l-a);f>0?(a-=.5*f,l+=.5*f):(i+=.5*f,s-=.5*f);var p=1e-5,g=Math.max(p,Math.abs(s-i)),b=.5*g,m=.5*(i+s),v=.5*(a+l),y={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:m-b,maxX:m+b,minY:v-b,maxY:v+b},size:g,calcSize:1/g,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(y.root);for(var x=0;x0&&this._placeInTree(y.root,r);return y}},{key:"_updateBranchMass",value:function(e,n){var r=e.centerOfMass,o=e.mass+n.options.mass,i=1/o;r.x=r.x*e.mass+n.x*n.options.mass,r.x*=i,r.y=r.y*e.mass+n.y*n.options.mass,r.y*=i,e.mass=o;var a=Math.max(Math.max(n.height,n.radius),n.width);e.maxWidth=e.maxWidthn.x?o.maxY>n.y?i="NW":i="SW":o.maxY>n.y?i="NE":i="SE",this._placeInRegion(e,n,i)}},{key:"_placeInRegion",value:function(e,n,r){var o=e.children[r];switch(o.childrenCount){case 0:o.children.data=n,o.childrenCount=1,this._updateBranchMass(o,n);break;case 1:o.children.data.x===n.x&&o.children.data.y===n.y?(n.x+=this._rng(),n.y+=this._rng()):(this._splitBranch(o),this._placeInTree(o,n));break;case 4:this._placeInTree(o,n);break}}},{key:"_splitBranch",value:function(e){var n=null;e.childrenCount===1&&(n=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),n!=null&&this._placeInTree(e,n)}},{key:"_insertRegion",value:function(e,n){var r,o,i,a,s=.5*e.size;switch(n){case"NW":r=e.range.minX,o=e.range.minX+s,i=e.range.minY,a=e.range.minY+s;break;case"NE":r=e.range.minX+s,o=e.range.maxX,i=e.range.minY,a=e.range.minY+s;break;case"SW":r=e.range.minX,o=e.range.minX+s,i=e.range.minY+s,a=e.range.maxY;break;case"SE":r=e.range.minX+s,o=e.range.maxX,i=e.range.minY+s,a=e.range.maxY;break}e.children[n]={centerOfMass:{x:0,y:0},mass:0,range:{minX:r,maxX:o,minY:i,maxY:a},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,n){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,n))}},{key:"_drawBranch",value:function(e,n,r){r===void 0&&(r="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,n),this._drawBranch(e.children.NE,n),this._drawBranch(e.children.SE,n),this._drawBranch(e.children.SW,n)),n.strokeStyle=r,n.beginPath(),n.moveTo(e.range.minX,e.range.minY),n.lineTo(e.range.maxX,e.range.minY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.minY),n.lineTo(e.range.maxX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.maxY),n.lineTo(e.range.minX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.minX,e.range.maxY),n.lineTo(e.range.minX,e.range.minY),n.stroke()}}]),t}(),kIe=function(){function t(e,n,r){Z(this,t),this._rng=lm("REPULSION SOLVER"),this.body=e,this.physicsBody=n,this.setOptions(r)}return ee(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,r,o,i,a,s,l,u=this.body.nodes,c=this.physicsBody.physicsNodeIndices,h=this.physicsBody.forces,d=this.options.nodeDistance,f=-2/3/d,p=4/3,g=0;g"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var OIe=function(t){Ue(n,t);var e=EIe(n);function n(r,o,i){var a;return Z(this,n),a=e.call(this,r,o,i),a._rng=lm("FORCE ATLAS 2 BASED REPULSION SOLVER"),a}return ee(n,[{key:"_calculateForces",value:function(r,o,i,a,s){r===0&&(r=.1*this._rng(),o=r),this.overlapAvoidanceFactor<1&&a.shape.radius&&(r=Math.max(.1+this.overlapAvoidanceFactor*a.shape.radius,r-a.shape.radius));var l=a.edges.length+1,u=this.options.gravitationalConstant*s.mass*a.options.mass*l/Math.pow(r,2),c=o*u,h=i*u;this.physicsBody.forces[a.id].x+=c,this.physicsBody.forces[a.id].y+=h}}]),n}(_5);function TIe(t){var e=PIe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function PIe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var MIe=function(t){Ue(n,t);var e=TIe(n);function n(r,o,i){return Z(this,n),e.call(this,r,o,i)}return ee(n,[{key:"_calculateForces",value:function(r,o,i,a,s){if(r>0){var l=s.edges.length+1,u=this.options.centralGravity*l*s.options.mass;a[s.id].x=o*u,a[s.id].y=i*u}}}]),n}(xm),IIe=function(){function t(e){Z(this,t),this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Ut(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return ee(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,um(["stabilization"],this.options,e),qr(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());var n=this.options.wind;n&&((typeof n.x!="number"||x_(n.x))&&(n.x=0),(typeof n.y!="number"||x_(n.y))&&(n.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new OIe(this.body,this.physicsBody,e),this.edgesSolver=new D_(this.body,this.physicsBody,e),this.gravitySolver=new MIe(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new kIe(this.body,this.physicsBody,e),this.edgesSolver=new D_(this.body,this.physicsBody,e),this.gravitySolver=new xm(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new SIe(this.body,this.physicsBody,e),this.edgesSolver=new _Ie(this.body,this.physicsBody,e),this.gravitySolver=new xm(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new _5(this.body,this.physicsBody,e),this.edgesSolver=new D_(this.body,this.physicsBody,e),this.gravitySolver=new xm(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=Y(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var e=Jv();this.physicsTick();var n=Jv()-e;(n<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&Uo(function(){e.body.emitter.emit("stabilized",{iterations:n}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var e=1.2;this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/ea))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,n=0,r=0,o=5,i=0;ia&&(e=e>0?a:-a),e}},{key:"_performStep",value:function(e){var n=this.body.nodes[e],r=this.physicsBody.forces[e];this.options.wind&&(r.x+=this.options.wind.x,r.y+=this.options.wind.y);var o=this.physicsBody.velocities[e];this.previousStates[e]={x:n.x,y:n.y,vx:o.x,vy:o.y},n.options.fixed.x===!1?(o.x=this.calculateComponentVelocity(o.x,r.x,n.options.mass),n.x+=o.x*this.timestep):(r.x=0,o.x=0),n.options.fixed.y===!1?(o.y=this.calculateComponentVelocity(o.y,r.y,n.options.mass),n.y+=o.y*this.timestep):(r.y=0,o.y=0);var i=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2));return i}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n].x&&e[n].y){var r=e[n].options.fixed;this.freezeCache[n]={x:r.x,y:r.y},r.x=!0,r.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.freezeCache[n]!==void 0&&(e[n].options.fixed.x=this.freezeCache[n].x,e[n].options.fixed.y=this.freezeCache[n].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof n!="number"&&(n=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",n)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=n,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,Uo(function(){return e._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var e=this,n=function(){return e.stabilized===!1&&e.stabilizationIterations1&&arguments[1]!==void 0?arguments[1]:[],r=1e9,o=-1e9,i=1e9,a=-1e9,s;if(n.length>0)for(var l=0;ls.shape.boundingBox.left&&(i=s.shape.boundingBox.left),as.shape.boundingBox.top&&(r=s.shape.boundingBox.top),o1&&arguments[1]!==void 0?arguments[1]:[],r=1e9,o=-1e9,i=1e9,a=-1e9,s;if(n.length>0)for(var l=0;ls.x&&(i=s.x),as.y&&(r=s.y),o"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var zIe=function(t){Ue(n,t);var e=AIe(n);function n(r,o,i,a,s,l){var u;return Z(this,n),u=e.call(this,r,o,i,a,s,l),u.isCluster=!0,u.containedNodes={},u.containedEdges={},u}return ee(n,[{key:"_openChildCluster",value:function(r){var o=this,i=this.body.nodes[r];if(this.containedNodes[r]===void 0)throw new Error("node with id: "+r+" not in current cluster");if(!i.isCluster)throw new Error("node with id: "+r+" is not a cluster");delete this.containedNodes[r],Ie(i.edges,function(a){delete o.containedEdges[a.id]}),Ie(i.containedNodes,function(a,s){o.containedNodes[s]=a}),i.containedNodes={},Ie(i.containedEdges,function(a,s){o.containedEdges[s]=a}),i.containedEdges={},Ie(i.edges,function(a){Ie(o.edges,function(s){var l,u,c=We(l=s.clusteringEdgeReplacingIds).call(l,a.id);c!==-1&&(Ie(a.clusteringEdgeReplacingIds,function(h){s.clusteringEdgeReplacingIds.push(h),o.body.edges[h].edgeReplacedById=s.id}),Oi(u=s.clusteringEdgeReplacingIds).call(u,c,1))})}),i.edges=[]}}]),n}(Cr),FIe=function(){function t(e){var n=this;Z(this,t),this.body=e,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Ut(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){n.clusteredNodes={},n.clusteredEdges={}})}return ee(t,[{key:"clusterByHubsize",value:function(e,n){e===void 0?e=this._getHubSize():Ze(e)==="object"&&(n=this._checkOptions(e),e=this._getHubSize());for(var r=[],o=0;o=e&&r.push(i.id)}for(var a=0;a0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(n.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");n=this._checkOptions(n);var o={},i={};Ie(this.body.nodes,function(a,s){a.options&&n.joinCondition(a.options)===!0&&(o[s]=a,Ie(a.edges,function(l){e.clusteredEdges[l.id]===void 0&&(i[l.id]=l)}))}),this._cluster(o,i,n,r)}},{key:"clusterByEdgeCount",value:function(e,n){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;n=this._checkOptions(n);for(var i=[],a={},s,l,u,c=function(){var f={},p={},g=r.body.nodeIndices[h],b=r.body.nodes[g];if(a[g]===void 0){u=0,l=[];for(var m=0;m0&&Mt(p).length>0&&y===!0){var _=function(){for(var T=0;T1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,n)}},{key:"clusterBridges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,n)}},{key:"clusterByConnection",value:function(e,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");var i=this.body.nodes[e];n=this._checkOptions(n,i),n.clusterNodeProperties.x===void 0&&(n.clusterNodeProperties.x=i.x),n.clusterNodeProperties.y===void 0&&(n.clusterNodeProperties.y=i.y),n.clusterNodeProperties.fixed===void 0&&(n.clusterNodeProperties.fixed={},n.clusterNodeProperties.fixed.x=i.options.fixed.x,n.clusterNodeProperties.fixed.y=i.options.fixed.y);var a={},s={},l=i.id,u=Hn.cloneOptions(i);a[l]=i;for(var c=0;c-1&&(s[v.id]=v)}this._cluster(a,s,n,o)}},{key:"_createClusterEdges",value:function(e,n,r,o){for(var i,a,s,l,u,c,h=Mt(e),d=[],f=0;f0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=[];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&this.clusteredNodes[a]!==void 0&&i.push(a);for(var s=0;so?s.x:o,i=s.ya?s.y:a;return{x:.5*(r+o),y:.5*(i+a)}}},{key:"openCluster",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var o=this.body.nodes[e];if(o===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(o.isCluster!==!0||o.containedNodes===void 0||o.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");var i=this.findNode(e),a=We(i).call(i,e)-1;if(a>=0){var s=i[a],l=this.body.nodes[s];l._openChildCluster(e),delete this.body.nodes[e],r===!0&&this.body.emitter.emit("_dataChanged");return}var u=o.containedNodes,c=o.containedEdges;if(n!==void 0&&n.releaseFunction!==void 0&&typeof n.releaseFunction=="function"){var h={},d={x:o.x,y:o.y};for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var p=this.body.nodes[f];h[f]={x:p.x,y:p.y}}var g=n.releaseFunction(d,h);for(var b in u)if(Object.prototype.hasOwnProperty.call(u,b)){var m=this.body.nodes[b];g[b]!==void 0&&(m.x=g[b].x===void 0?o.x:g[b].x,m.y=g[b].y===void 0?o.y:g[b].y)}}else Ie(u,function(N){N.options.fixed.x===!1&&(N.x=o.x),N.options.fixed.y===!1&&(N.y=o.y)});for(var v in u)if(Object.prototype.hasOwnProperty.call(u,v)){var y=this.body.nodes[v];y.vx=o.vx,y.vy=o.vy,y.setOptions({physics:!0}),delete this.clusteredNodes[v]}for(var x=[],S=0;S0&&ao&&(o=a.edges.length),e+=a.edges.length,n+=Math.pow(a.edges.length,2),r+=1}e=e/r,n=n/r;var s=n-Math.pow(e,2),l=Math.sqrt(s),u=Math.floor(e+2*l);return u>o&&(u=o),u}},{key:"_createClusteredEdge",value:function(e,n,r,o,i){var a=Hn.cloneOptions(r,"edge");it(a,o),a.from=e,a.to=n,a.id="clusterEdge:"+Fh(),i!==void 0&&it(a,i);var s=this.body.functions.createEdge(a);return s.clusteringEdgeReplacingIds=[r.id],s.connect(),this.body.edges[s.id]=s,s}},{key:"_clusterEdges",value:function(e,n,r,o){if(n instanceof Bu){var i=n,a={};a[i.id]=i,n=a}if(e instanceof Cr){var s=e,l={};l[s.id]=s,e=l}if(r==null)throw new Error("_clusterEdges: parameter clusterNode required");o===void 0&&(o=r.clusterEdgeProperties),this._createClusterEdges(e,n,r,o);for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)&&this.body.edges[u]!==void 0){var c=this.body.edges[u];this._backupEdgeOptions(c),c.setOptions({physics:!1})}for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(this.clusteredNodes[h]={clusterId:r.id,node:this.body.nodes[h]},this.body.nodes[h].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(e){if(e!==void 0){var n=this.clusteredNodes[e];if(n!==void 0){var r=n.clusterId;if(r!==void 0)return this.body.nodes[r]}}}},{key:"_filter",value:function(e,n){var r=[];return Ie(e,function(o){n(o)&&r.push(o)}),r}},{key:"_updateState",value:function(){var e=this,n,r=[],o={},i=function(d){Ie(e.body.nodes,function(f){f.isCluster===!0&&d(f)})};for(n in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,n)){var a=this.body.nodes[n];a===void 0&&r.push(n)}i(function(d){for(var f=0;f0}(!d.endPointsValid()||!p)&&(o[f]=f)}),i(function(d){Ie(o,function(f){delete d.containedEdges[f],Ie(d.edges,function(p,g){if(p.id===f){d.edges[g]=null;return}p.clusteringEdgeReplacingIds=e._filter(p.clusteringEdgeReplacingIds,function(b){return!o[b]})}),d.edges=e._filter(d.edges,function(p){return p!==null})})}),Ie(o,function(d){delete e.clusteredEdges[d]}),Ie(o,function(d){delete e.body.edges[d]});var l=Mt(this.body.edges);Ie(l,function(d){var f=e.body.edges[d],p=e._isClusteredNode(f.fromId)||e._isClusteredNode(f.toId);if(p!==e._isClusteredEdge(f.id))if(p){var g=e._getClusterNodeForNode(f.fromId);g!==void 0&&e._clusterEdges(e.body.nodes[f.fromId],f,g);var b=e._getClusterNodeForNode(f.toId);b!==void 0&&e._clusterEdges(e.body.nodes[f.toId],f,b)}else delete e._clusterEdges[d],e._restoreEdge(f)});for(var u=!1,c=!0,h=function(){var d=[];i(function(p){var g=Mt(p.containedNodes).length,b=p.options.allowSingleNodeCluster===!0;(b&&g<1||!b&&g<2)&&d.push(p.id)});for(var f=0;f0,u=u||c};c;)h();u&&this._updateState()}},{key:"_isClusteredNode",value:function(e){return this.clusteredNodes[e]!==void 0}},{key:"_isClusteredEdge",value:function(e){return this.clusteredEdges[e]!==void 0}}]),t}();function LIe(){var t;window!==void 0&&(t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),t===void 0?window.requestAnimationFrame=function(e){e()}:window.requestAnimationFrame=t}var BIe=function(){function t(e,n){Z(this,t),LIe(),this.body=e,this.canvas=n,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Ut(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return ee(t,[{key:"bindEventListeners",value:function(){var e=this,n;this.body.emitter.on("dragStart",function(){e.dragging=!0}),this.body.emitter.on("dragEnd",function(){e.dragging=!1}),this.body.emitter.on("zoom",function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=Uo(function(){var r;e.zooming=!1,Y(r=e._requestRedraw).call(r,e)()},250)}),this.body.emitter.on("_resizeNodes",function(){e._resizeNodes()}),this.body.emitter.on("_redraw",function(){e.renderingActive===!1&&e._redraw()}),this.body.emitter.on("_blockRedraw",function(){e.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){e.allowRedraw=!0,e.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",Y(n=this._requestRedraw).call(n,this)),this.body.emitter.on("_startRendering",function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()}),this.body.emitter.on("_stopRendering",function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(e!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];Nu(n,this.options,e)}}},{key:"_requestNextFrame",value:function(e,n){if(!(typeof window>"u")){var r,o=window;return this.requiresTimeout===!0?r=Uo(e,n):o.requestAnimationFrame&&(r=o.requestAnimationFrame(e)),r}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var e;this.renderTimer=this._requestNextFrame(Y(e=this._renderStep).call(e,this),this.simulationInterval)}}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){e._redraw(!1)},0))}},{key:"_redraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var n={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();var r=this.canvas.getContext(),o=this.canvas.frame.canvas.clientWidth,i=this.canvas.frame.canvas.clientHeight;if(r.clearRect(0,0,o,i),this.canvas.frame.clientWidth===0)return;if(r.save(),r.translate(this.body.view.translation.x,this.body.view.translation.y),r.scale(this.body.view.scale,this.body.view.scale),r.beginPath(),this.body.emitter.emit("beforeDrawing",r),r.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(r),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){var a=this._drawNodes(r,e),s=a.drawExternalLabels;n.drawExternalLabels=s}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(r),n.drawExternalLabels!=null&&n.drawExternalLabels(),e===!1&&this._drawSelectionBox(r),r.beginPath(),this.body.emitter.emit("afterDrawing",r),r.closePath(),r.restore(),e===!0&&r.clearRect(0,0,o,i)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);var n=this.body.nodes,r;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r=n[o],r.resize(e),r.updateBoundingBox(e,r.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.body.nodes,o=this.body.nodeIndices,i,a=[],s=[],l=20,u=this.canvas.DOMtoCanvas({x:-l,y:-l}),c=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+l,y:this.canvas.frame.canvas.clientHeight+l}),h={top:u.y,left:u.x,bottom:c.y,right:c.x},d=[],f=0;f0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}},{key:"_setCameraState",value:function(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,n=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,r=this.cameraState.scale;e!=1&&n!=1?r=this.cameraState.scale*.5*(e+n):e!=1?r=this.cameraState.scale*e:n!=1&&(r=this.cameraState.scale*n),this.body.view.scale=r;var o=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),i={x:o.x-this.cameraState.position.x,y:o.y-this.cameraState.position.y};this.body.view.translation.x+=i.x*this.body.view.scale,this.body.view.translation.y+=i.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(We(e).call(e,"%")!==-1||We(e).call(e,"px")!==-1)return e;if(We(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var e=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new zu(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:zu.DIRECTION_ALL}),Sm(this.hammer,function(n){e.body.eventListeners.onTouch(n)}),this.hammer.on("tap",function(n){e.body.eventListeners.onTap(n)}),this.hammer.on("doubletap",function(n){e.body.eventListeners.onDoubleTap(n)}),this.hammer.on("press",function(n){e.body.eventListeners.onHold(n)}),this.hammer.on("panstart",function(n){e.body.eventListeners.onDragStart(n)}),this.hammer.on("panmove",function(n){e.body.eventListeners.onDrag(n)}),this.hammer.on("panend",function(n){e.body.eventListeners.onDragEnd(n)}),this.hammer.on("pinch",function(n){e.body.eventListeners.onPinch(n)}),this.frame.canvas.addEventListener("wheel",function(n){e.body.eventListeners.onMouseWheel(n)}),this.frame.canvas.addEventListener("mousemove",function(n){e.body.eventListeners.onMouseMove(n)}),this.frame.canvas.addEventListener("contextmenu",function(n){e.body.eventListeners.onContext(n)}),this.hammerFrame=new zu(this.frame),C5(this.hammerFrame,function(n){e.body.eventListeners.onRelease(n)})}},{key:"setSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),n=this._prepareValue(n);var r=!1,o=this.frame.canvas.width,i=this.frame.canvas.height,a=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||n!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=n)this._getCameraState(a),this.frame.style.width=e,this.frame.style.height=n,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=n,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},r=!0;else{var s=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),l=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==s||this.frame.canvas.height!==l)&&this._getCameraState(a),this.frame.canvas.width!==s&&(this.frame.canvas.width=s,r=!0),this.frame.canvas.height!==l&&(this.frame.canvas.height=l,r=!0)}return r===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(o/this.pixelRatio),oldHeight:Math.round(i/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,r}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");var n=1;typeof window<"u"&&(n=window.devicePixelRatio||1);var r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/r}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),t}();function qIe(t,e){var n=Ut({nodes:e,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},t??{});if(!Ge(n.nodes))throw new TypeError("Nodes has to be an array of ids.");if(n.nodes.length===0&&(n.nodes=e),!(typeof n.minZoomLevel=="number"&&n.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof n.maxZoomLevel=="number"&&n.minZoomLevel<=n.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return n}var KIe=function(){function t(e,n){var r,o=this,i;Z(this,t),this.body=e,this.canvas=n,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",Y(r=this.fit).call(r,this)),this.body.emitter.on("animationFinished",function(){o.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",Y(i=this.releaseNode).call(i,this))}return ee(t,[{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}},{key:"fit",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=qIe(e,this.body.nodeIndices);var r=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight,i,a;if(r===0||o===0)a=1,i=Hn.getRange(this.body.nodes,e.nodes);else if(n===!0){var s=0;for(var l in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,l)){var u=this.body.nodes[l];u.predefinedPosition===!0&&(s+=1)}if(s>.5*this.body.nodeIndices.length){this.fit(e,!1);return}i=Hn.getRange(this.body.nodes,e.nodes);var c=this.body.nodeIndices.length;a=12.662/(c+7.4147)+.0964822;var h=Math.min(r/600,o/600);a*=h}else{this.body.emitter.emit("_resizeNodes"),i=Hn.getRange(this.body.nodes,e.nodes);var d=Math.abs(i.maxX-i.minX)*1.1,f=Math.abs(i.maxY-i.minY)*1.1,p=r/d,g=o/f;a=p<=g?p:g}a>e.maxZoomLevel?a=e.maxZoomLevel:a1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){var r={x:this.body.nodes[e].x,y:this.body.nodes[e].y};n.position=r,n.lockedOnNode=e,this.moveTo(n)}else console.error("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!zs(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!zs(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!zs(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!zs(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}},{key:"animateView",value:function(e){if(e!==void 0){this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;var n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r={x:n.x-e.position.x,y:n.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+r.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+r.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var o;this.viewFunction=Y(o=this._lockedRedraw).call(o,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var i;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=Y(i=this._transitionRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r={x:n.x-e.x,y:n.y-e.y},o=this.body.view.translation,i={x:o.x+r.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+r.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=i}},{key:"releaseNode",value:function(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var n=IEe[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*n,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*n,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*n},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var r;this.viewFunction=Y(r=this._lockedRedraw).call(r,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();function O5(t){var e=t&&t.preventDefault||!1,n=t&&t.container||window,r={},o={keydown:{},keyup:{}},i={},a;for(a=97;a<=122;a++)i[String.fromCharCode(a)]={code:65+(a-97),shift:!1};for(a=65;a<=90;a++)i[String.fromCharCode(a)]={code:a,shift:!0};for(a=0;a<=9;a++)i[""+a]={code:48+a,shift:!1};for(a=1;a<=12;a++)i["F"+a]={code:111+a,shift:!1};for(a=0;a<=9;a++)i["num"+a]={code:96+a,shift:!1};i["num*"]={code:106,shift:!1},i["num+"]={code:107,shift:!1},i["num-"]={code:109,shift:!1},i["num/"]={code:111,shift:!1},i["num."]={code:110,shift:!1},i.left={code:37,shift:!1},i.up={code:38,shift:!1},i.right={code:39,shift:!1},i.down={code:40,shift:!1},i.space={code:32,shift:!1},i.enter={code:13,shift:!1},i.shift={code:16,shift:void 0},i.esc={code:27,shift:!1},i.backspace={code:8,shift:!1},i.tab={code:9,shift:!1},i.ctrl={code:17,shift:!1},i.alt={code:18,shift:!1},i.delete={code:46,shift:!1},i.pageup={code:33,shift:!1},i.pagedown={code:34,shift:!1},i["="]={code:187,shift:!1},i["-"]={code:189,shift:!1},i["]"]={code:221,shift:!1},i["["]={code:219,shift:!1};var s=function(c){u(c,"keydown")},l=function(c){u(c,"keyup")},u=function(c,h){if(o[h][c.keyCode]!==void 0){for(var d=o[h][c.keyCode],f=0;f700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}},{key:"_stopMovement",value:function(){for(var e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,n=this.body.view.scale*(1+this.options.keyboard.speed.zoom),r=this.body.view.translation,o=n/e,i=(1-o)*this.canvas.canvasViewCenter.x+r.x*o,a=(1-o)*this.canvas.canvasViewCenter.y+r.y*o;this.body.view.scale=n,this.body.view.translation={x:i,y:a},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,n=this.body.view.scale/(1+this.options.keyboard.speed.zoom),r=this.body.view.translation,o=n/e,i=(1-o)*this.canvas.canvasViewCenter.x+r.x*o,a=(1-o)*this.canvas.canvasViewCenter.y+r.y*o;this.body.view.scale=n,this.body.view.translation={x:i,y:a},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=O5({container:window,preventDefault:!0}):this.keycharm=O5({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var n,r,o,i,a,s,l,u,c,h,d,f,p,g,b,m,v,y,x,S,_,E,O,w;Y(n=this.keycharm).call(n,"up",function(){e.bindToRedraw("_moveUp")},"keydown"),Y(r=this.keycharm).call(r,"down",function(){e.bindToRedraw("_moveDown")},"keydown"),Y(o=this.keycharm).call(o,"left",function(){e.bindToRedraw("_moveLeft")},"keydown"),Y(i=this.keycharm).call(i,"right",function(){e.bindToRedraw("_moveRight")},"keydown"),Y(a=this.keycharm).call(a,"=",function(){e.bindToRedraw("_zoomIn")},"keydown"),Y(s=this.keycharm).call(s,"num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),Y(l=this.keycharm).call(l,"num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),Y(u=this.keycharm).call(u,"-",function(){e.bindToRedraw("_zoomOut")},"keydown"),Y(c=this.keycharm).call(c,"[",function(){e.bindToRedraw("_zoomOut")},"keydown"),Y(h=this.keycharm).call(h,"]",function(){e.bindToRedraw("_zoomIn")},"keydown"),Y(d=this.keycharm).call(d,"pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),Y(f=this.keycharm).call(f,"pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),Y(p=this.keycharm).call(p,"up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),Y(g=this.keycharm).call(g,"down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),Y(b=this.keycharm).call(b,"left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),Y(m=this.keycharm).call(m,"right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),Y(v=this.keycharm).call(v,"=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Y(y=this.keycharm).call(y,"num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Y(x=this.keycharm).call(x,"num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),Y(S=this.keycharm).call(S,"-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),Y(_=this.keycharm).call(_,"[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),Y(E=this.keycharm).call(E,"]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Y(O=this.keycharm).call(O,"pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Y(w=this.keycharm).call(w,"pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")}}}]),t}();function XIe(t,e){var n=typeof wa<"u"&&Ss(t)||t["@@iterator"];if(!n){if(Ge(t)||(n=GIe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function GIe(t,e){var n;if(t){if(typeof t=="string")return T5(t,e);var r=bn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T5(t,e)}}function T5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(e){var n=this.getPointer(e.center),r=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(n,r),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n)}},{key:"onDoubleTap",value:function(e){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,n)}},{key:"onHold",value:function(e){var n=this.getPointer(e.center),r=this.selectionHandler.options.multiselect;this.checkSelectionChanges(n,r),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n),this.selectionHandler.generateClickEvent("hold",e,n)}},{key:"onRelease",value:function(e){if(new Date().valueOf()-this.touchTime>10){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,n),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(e){var n=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,n)}},{key:"checkSelectionChanges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}},{key:"_determineDifference",value:function(e,n){var r=function(o,i){for(var a=[],s=0;s=i.minX&&c.x<=i.maxX&&c.y>=i.minY&&c.y<=i.maxY});tt(a).call(a,function(u){return n.selectionHandler.selectObject(n.body.nodes[u])});var s=this.getPointer(e.center);this.selectionHandler.commitAndEmit(s,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var l=this.drag.selection;l&&l.length?(tt(l).call(l,function(u){u.node.options.fixed.x=u.xFixed,u.node.options.fixed.y=u.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(e){var n=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var r=this.pinch.scale*e.scale;this.zoom(r,n)}},{key:"zoom",value:function(e,n){if(this.options.zoomView===!0){var r=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);var o=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(o=this.canvas.DOMtoCanvas(this.drag.pointer));var i=this.body.view.translation,a=e/r,s=(1-a)*n.x+i.x*a,l=(1-a)*n.y+i.y*a;if(this.body.view.scale=e,this.body.view.translation={x:s,y:l},o!=null){var u=this.canvas.canvasToDOM(o);this.drag.pointer.x=u.x,this.drag.pointer.y=u.y}this.body.emitter.emit("_requestRedraw"),r0&&(this.popupObj=u[h[h.length-1]],a=!0)}if(this.popupObj===void 0&&a===!1){for(var f=this.body.edgeIndices,p=this.body.edges,g,b=[],m=0;m0&&(this.popupObj=p[b[b.length-1]],s="edge")}this.popupObj!==void 0?this.popupObj.id!==i&&(this.popup===void 0&&(this.popup=new LEe(this.canvas.frame)),this.popup.popupTargetType=s,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(e){var n=this.selectionHandler._pointerToPositionObject(e),r=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(r=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(n),r===!0)){var o=this.selectionHandler.getNodeAt(e);r=o===void 0?!1:o.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(r=this.body.edges[this.popup.popupTargetId].isOverlappingWith(n));r===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),JIe=y_,ZIe=RB;JIe("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},ZIe);var eRe=$e,tRe=eRe.Set,nRe=tRe,rRe=nRe,oRe=rRe,Ls=he(oRe),iRe=He,P5=b_,_m=fm.getWeakData,aRe=m_,sRe=Er,lRe=cu,j_=an,uRe=v_,M5=ya,I5=sn,R5=xs,cRe=R5.set,dRe=R5.getterFor,hRe=M5.find,fRe=M5.findIndex,pRe=iRe([].splice),gRe=0,Em=function(t){return t.frozen||(t.frozen=new D5)},D5=function(){this.entries=[]},A_=function(t,e){return hRe(t.entries,function(n){return n[0]===e})};D5.prototype={get:function(t){var e=A_(this,t);if(e)return e[1]},has:function(t){return!!A_(this,t)},set:function(t,e){var n=A_(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=fRe(this.entries,function(n){return n[0]===t});return~e&&pRe(this.entries,e,1),!!~e}};var vRe={getConstructor:function(t,e,n,r){var o=t(function(l,u){aRe(l,i),cRe(l,{type:e,id:gRe++,frozen:void 0}),lRe(u)||uRe(u,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=dRe(e),s=function(l,u,c){var h=a(l),d=_m(sRe(u),!0);return d===!0?Em(h).set(u,c):d[h.id]=c,l};return P5(i,{delete:function(l){var u=a(this);if(!j_(l))return!1;var c=_m(l);return c===!0?Em(u).delete(l):c&&I5(c,u.id)&&delete c[u.id]},has:function(l){var u=a(this);if(!j_(l))return!1;var c=_m(l);return c===!0?Em(u).has(l):c&&I5(c,u.id)}}),P5(i,n?{get:function(l){var u=a(this);if(j_(l)){var c=_m(l);return c===!0?Em(u).get(l):c?c[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),o}},mRe=bB,j5=Ct,Cm=He,A5=b_,yRe=fm,bRe=y_,N5=vRe,Om=an,Tm=xs.enforce,wRe=Be,xRe=IN,Lh=Object,kRe=Array.isArray,Pm=Lh.isExtensible,z5=Lh.isFrozen,SRe=Lh.isSealed,F5=Lh.freeze,_Re=Lh.seal,L5={},B5={},ERe=!j5.ActiveXObject&&"ActiveXObject"in j5,Bh,$5=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},W5=bRe("WeakMap",$5,N5),$u=W5.prototype,Mm=Cm($u.set),CRe=function(){return mRe&&wRe(function(){var t=F5([]);return Mm(new W5,t,1),!z5(t)})};if(xRe)if(ERe){Bh=N5.getConstructor($5,"WeakMap",!0),yRe.enable();var H5=Cm($u.delete),Im=Cm($u.has),U5=Cm($u.get);A5($u,{delete:function(t){if(Om(t)&&!Pm(t)){var e=Tm(this);return e.frozen||(e.frozen=new Bh),H5(this,t)||e.frozen.delete(t)}return H5(this,t)},has:function(t){if(Om(t)&&!Pm(t)){var e=Tm(this);return e.frozen||(e.frozen=new Bh),Im(this,t)||e.frozen.has(t)}return Im(this,t)},get:function(t){if(Om(t)&&!Pm(t)){var e=Tm(this);return e.frozen||(e.frozen=new Bh),Im(this,t)?U5(this,t):e.frozen.get(t)}return U5(this,t)},set:function(t,e){if(Om(t)&&!Pm(t)){var n=Tm(this);n.frozen||(n.frozen=new Bh),Im(this,t)?Mm(this,t,e):n.frozen.set(t,e)}else Mm(this,t,e);return this}})}else CRe()&&A5($u,{set:function(t,e){var n;return kRe(t)&&(z5(t)?n=L5:SRe(t)&&(n=B5)),Mm(this,t,e),n===L5&&F5(t),n===B5&&_Re(t),this}});var ORe=$e,TRe=ORe.WeakMap,PRe=TRe,MRe=PRe,IRe=MRe,$h=he(IRe);function st(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function N_(t,e,n,r,o){if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}function z_(t,e){var n=typeof wa<"u"&&Ss(t)||t["@@iterator"];if(!n){if(Ge(t)||(n=RRe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function RRe(t,e){var n;if(t){if(typeof t=="string")return V5(t,e);var r=bn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V5(t,e)}}function V5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&arguments[0]!==void 0?arguments[0]:function(){};Z(this,t),Ra.set(this,new K5),Da.set(this,new K5),Rm.set(this,void 0),N_(this,Rm,e)}return ee(t,[{key:"sizeNodes",get:function(){return st(this,Ra,"f").size}},{key:"sizeEdges",get:function(){return st(this,Da,"f").size}},{key:"getNodes",value:function(){return st(this,Ra,"f").getSelection()}},{key:"getEdges",value:function(){return st(this,Da,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=st(this,Ra,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=st(this,Da,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){st(this,Ra,"f").delete(e)}},{key:"deleteEdges",value:function(e){st(this,Da,"f").delete(e)}},{key:"clear",value:function(){st(this,Ra,"f").clear(),st(this,Da,"f").clear()}},{key:"commit",value:function(){for(var e,n,r={nodes:st(this,Ra,"f").commit(),edges:st(this,Da,"f").commit()},o=arguments.length,i=new Array(o),a=0;a=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function jRe(t,e){var n;if(t){if(typeof t=="string")return X5(t,e);var r=bn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X5(t,e)}}function X5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n4&&arguments[4]!==void 0?arguments[4]:!1,a=this._initBaseEvent(n,r);if(i===!0)a.nodes=[],a.edges=[];else{var s=this.getSelection();a.nodes=s.nodes,a.edges=s.edges}o!==void 0&&(a.previousSelection=o),e=="click"&&(a.items=this.getClickedItems(r)),n.controlEdge!==void 0&&(a.controlEdge=n.controlEdge),this.body.emitter.emit(e,a)}},{key:"selectObject",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof Cr){if(n===!0){var r;(r=this._selectionAccumulator).addEdges.apply(r,Ho(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var n=[],r=this.body.nodes,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,r=this._pointerToPositionObject(e),o=this._getAllNodesOverlappingWith(r);if(o.length>0)return n===!0?this.body.nodes[o[o.length-1]]:o[o.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,n){for(var r=this.body.edges,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,r=this.canvas.DOMtoCanvas(e),o=10,i=null,a=this.body.edges,s=0;s0&&(this.generateClickEvent("deselectEdge",n,e,i),r=!0),o.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",n,e,i),r=!0),o.nodes.added.length>0&&(this.generateClickEvent("selectNode",n,e),r=!0),o.edges.added.length>0&&(this.generateClickEvent("selectEdge",n,e),r=!0),r===!0&&this.generateClickEvent("select",n,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return Ou(e=this._selectionAccumulator.getNodes()).call(e,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return Ou(e=this._selectionAccumulator.getEdges()).call(e,function(n){return n.id})}},{key:"setSelection",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((n.unselectAll||n.unselectAll===void 0)&&this.unselectAll(),e.nodes){var r=Y5(e.nodes),o;try{for(r.s();!(o=r.n()).done;){var i=o.value,a=this.body.nodes[i];if(!a)throw new RangeError('Node with id "'+i+'" not found');this.selectObject(a,n.highlightEdges)}}catch(h){r.e(h)}finally{r.f()}}if(e.edges){var s=Y5(e.edges),l;try{for(s.s();!(l=s.n()).done;){var u=l.value,c=this.body.edges[u];if(!c)throw new RangeError('Edge with id "'+u+'" not found');this.selectObject(c)}}catch(h){s.e(h)}finally{s.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:n})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var n in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,n.id)||this._selectionAccumulator.deleteEdges(n)}},{key:"getClickedItems",value:function(e){for(var n=this.canvas.DOMtoCanvas(e),r=[],o=this.body.nodeIndices,i=this.body.nodes,a=o.length-1;a>=0;a--){var s=i[o[a]],l=s.getItemsOnPoint(n);r.push.apply(r,l)}for(var u=this.body.edgeIndices,c=this.body.edges,h=u.length-1;h>=0;h--){var d=c[u[h]],f=d.getItemsOnPoint(n);r.push.apply(r,f)}return r}}]),t}(),G5=jz,NRe=Math.floor,F_=function(t,e){var n=t.length,r=NRe(n/2);return n<8?zRe(t,e):FRe(t,F_(G5(t,0,r),e),F_(G5(t,r),e),e)},zRe=function(t,e){for(var n=t.length,r=1,o,i;r0;)t[i]=t[--i];i!==r++&&(t[i]=o)}return t},FRe=function(t,e,n,r){for(var o=e.length,i=n.length,a=0,s=0;a3)){if(JRe)return!0;if(o3)return o3<603;var t="",e,n,r,o;for(e=65;e<76;e++){switch(n=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(o=0;o<47;o++)ja.push({k:n+o,v:r})}for(ja.sort(function(i,a){return a.v-i.v}),o=0;ot3(n)?1:-1}};qRe({target:"Array",proto:!0,forced:rDe},{sort:function(t){t!==void 0&&KRe(t);var e=YRe(this);if(a3)return t===void 0?i3(e):i3(e,t);var n=[],r=e3(e),o,i;for(i=0;i=0:s>l;l+=u)l in a&&(o=n(o,a[l],l,i));return o}},yDe={left:s3(!1),right:s3(!0)},bDe=Ct,wDe=_i,xDe=wDe(bDe.process)==="process",kDe=ye,SDe=yDe.left,_De=Tu,l3=eh,EDe=xDe,CDe=!EDe&&l3>79&&l3<83,ODe=CDe||!_De("reduce");kDe({target:"Array",proto:!0,forced:ODe},{reduce:function(t){var e=arguments.length;return SDe(this,t,e,e>1?arguments[1]:void 0)}});var TDe=ln,PDe=TDe("Array").reduce,MDe=Nt,IDe=PDe,$_=Array.prototype,RDe=function(t){var e=t.reduce;return t===$_||MDe($_,t)&&e===$_.reduce?IDe:e},DDe=RDe,jDe=DDe,ADe=jDe,u3=he(ADe);function c3(t){var e=NDe();return function(){var n=le(t),r;if(e){var o=le(this).constructor;r=U(n,arguments,o)}else r=n.apply(this,arguments);return Qe(this,r)}}function NDe(){if(typeof Reflect>"u"||!U||U.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(U(Boolean,[],function(){})),!0}catch{return!1}}var d3=function(){function t(){Z(this,t)}return ee(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,n,r),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,n){this.fake_use(e,n),this.abstract()}},{key:"shift",value:function(e,n){this.fake_use(e,n),this.abstract()}}]),t}(),zDe=function(t){Ue(n,t);var e=c3(n);function n(r){var o;return Z(this,n),o=e.call(this),o.layout=r,o}return ee(n,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(r){return r.x}},{key:"setPosition",value:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;i!==void 0&&this.layout.hierarchical.addToOrdering(r,i),r.x=o}},{key:"getTreeSize",value:function(r){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,r);return{min:o.min_x,max:o.max_x}}},{key:"sort",value:function(r){Wh(r).call(r,function(o,i){return o.x-i.x})}},{key:"fix",value:function(r,o){r.y=this.layout.options.hierarchical.levelSeparation*o,r.options.fixed.y=!0}},{key:"shift",value:function(r,o){this.layout.body.nodes[r].x+=o}}]),n}(d3),FDe=function(t){Ue(n,t);var e=c3(n);function n(r){var o;return Z(this,n),o=e.call(this),o.layout=r,o}return ee(n,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(r){return r.y}},{key:"setPosition",value:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;i!==void 0&&this.layout.hierarchical.addToOrdering(r,i),r.y=o}},{key:"getTreeSize",value:function(r){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,r);return{min:o.min_y,max:o.max_y}}},{key:"sort",value:function(r){Wh(r).call(r,function(o,i){return o.y-i.y})}},{key:"fix",value:function(r,o){r.x=this.layout.options.hierarchical.levelSeparation*o,r.options.fixed.x=!0}},{key:"shift",value:function(r,o){this.layout.body.nodes[r].y+=o}}]),n}(d3),LDe=ye,BDe=ya.every,$De=Tu,WDe=$De("every");LDe({target:"Array",proto:!0,forced:!WDe},{every:function(t){return BDe(this,t,arguments.length>1?arguments[1]:void 0)}});var HDe=ln,UDe=HDe("Array").every,VDe=Nt,qDe=UDe,W_=Array.prototype,KDe=function(t){var e=t.every;return t===W_||VDe(W_,t)&&e===W_.every?qDe:e},YDe=KDe,XDe=YDe,GDe=XDe,h3=he(GDe);function QDe(t,e){var n=typeof wa<"u"&&Ss(t)||t["@@iterator"];if(!n){if(Ge(t)||(n=JDe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function JDe(t,e){var n;if(t){if(typeof t=="string")return f3(t,e);var r=bn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f3(t,e)}}function f3(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=e[i])&&(e[i]=e[o]+1)}),e}function eje(t){return p3(function(e){var n,r;return h3(n=ar(r=e.edges).call(r,function(o){return t.has(o.toId)})).call(n,function(o){return o.to===e})},function(e,n){return n>e},"from",t)}function tje(t){return p3(function(e){var n,r;return h3(n=ar(r=e.edges).call(r,function(o){return t.has(o.toId)})).call(n,function(o){return o.from===e})},function(e,n){return na)return{v:{v:ZDe(r,i)}};++m},x;v=b.pop();)if(x=y(),x!==0&&x)return x.v},d;for(u.s();!(c=u.n()).done;)if(d=h(),d!==0&&d)return d.v}catch(f){u.e(f)}finally{u.f()}return i}var nje=function(){function t(){Z(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return ee(t,[{key:"addRelation",value:function(e,n){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(n),this.parentReference[n]===void 0&&(this.parentReference[n]=[]),this.parentReference[n].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,n){n!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=n,this.treeIndex=Math.max(n,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var n=this,r={},o=function i(a){if(r[a]!==void 0)return r[a];var s=n.levels[a];if(n.childrenReference[a]){var l=n.childrenReference[a];if(l.length>0)for(var u=0;u0&&(r.levelSeparation*=-1):r.levelSeparation<0&&(r.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(n);if(o===!0)return this.body.emitter.emit("refresh"),it(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=lm(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var n=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:n.enabled===void 0?!0:n.enabled,solver:"hierarchicalRepulsion"},n.enabled=n.enabled===void 0?!0:n.enabled,n.solver=n.solver||"barnesHut"):Ze(e.physics)==="object"?(n.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,n.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(n.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var r=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:r};else{var o=e.edges.smooth;o.type!==void 0&&o.type!=="dynamic"&&(r=o.type),this.optionsBackup.edges={smooth:{enabled:o.enabled===void 0?!0:o.enabled,type:o.type===void 0?"dynamic":o.type,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}},e.edges.smooth={enabled:o.enabled===void 0?!0:o.enabled,type:r,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",r)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var n=e.length+50,r=0;rs){for(var u=e.length;e.length>s&&a<=i;){a+=1;var c=e.length;a%3===0?this.body.modules.clustering.clusterBridges(l):this.body.modules.clustering.clusterOutliers(l);var h=e.length;if(c==h&&a%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*u)})}a>i&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();for(var d=70,f=0;f0){var e,n,r=!1,o=!1;this.lastNodeOnLevel={},this.hierarchical=new nje;for(n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&(e=this.body.nodes[n],e.options.level!==void 0?(r=!0,this.hierarchical.levels[n]=e.options.level):o=!0);if(o===!0&&r===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(o===!0){var i=this.options.hierarchical.sortMethod;i==="hubsize"?this._determineLevelsByHubsize():i==="directed"?this._determineLevelsDirected():i==="custom"&&this._determineLevelsCustomCallback()}for(var a in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,a)&&this.hierarchical.ensureLevel(a);var s=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(s),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,n=!1,r={},o=function(){for(var m=a(),v=0,y=0;y0)for(var S=0;S1&&arguments[1]!==void 0?arguments[1]:1e9,y=1e9,x=1e9,S=1e9,_=-1e9;for(var E in m)if(Object.prototype.hasOwnProperty.call(m,E)){var O=e.body.nodes[E],w=e.hierarchical.levels[O.id],T=e.direction.getPosition(O),I=e._getSpaceAroundNode(O,m),R=Pt(I,2),j=R[0],D=R[1];y=Math.min(j,y),x=Math.min(D,x),w<=v&&(S=Math.min(T,S),_=Math.max(T,_))}return[S,_,y,x]},u=function(m,v){var y=e.hierarchical.getMaxLevel(m.id),x=e.hierarchical.getMaxLevel(v.id);return Math.min(y,x)},c=function(m,v,y){for(var x=e.hierarchical,S=0;S1)for(var O=0;O2&&arguments[2]!==void 0?arguments[2]:!1,x=e.direction.getPosition(m),S=e.direction.getPosition(v),_=Math.abs(S-x),E=e.options.hierarchical.nodeSpacing;if(_>E){var O={},w={};s(m,O),s(v,w);var T=u(m,v),I=l(O,T),R=l(w,T),j=I[1],D=R[0],P=R[2],M=Math.abs(j-D);if(M>E){var N=j-D+E;N<-P+E&&(N=-P+E),N<0&&(e._shiftBlock(v.id,N),n=!0,y===!0&&e._centerParent(v))}}},d=function(m,v){for(var y=v.id,x=v.edges,S=e.hierarchical.levels[v.id],_=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,E={},O=[],w=0;w0?ve=Math.min(se,te-e.options.hierarchical.nodeSpacing):se<0&&(ve=-Math.min(-se,X-e.options.hierarchical.nodeSpacing)),ve!=0&&(e._shiftBlock(v.id,ve),n=!0)},M=function(A){var $=e.direction.getPosition(v),W=e._getSpaceAroundNode(v),J=Pt(W,2),X=J[0],te=J[1],se=A-$,ve=$;se>0?ve=Math.min($+(te-e.options.hierarchical.nodeSpacing),A):se<0&&(ve=Math.max($-(X-e.options.hierarchical.nodeSpacing),A)),ve!==$&&(e.direction.setPosition(v,ve),n=!0)},N=D(m,O);P(N),N=D(m,x),M(N)},f=function(m){var v=e.hierarchical.getLevels();v=Os(v).call(v);for(var y=0;y0&&Math.abs(f)0&&(u=this.direction.getPosition(o[a-1])+l),this.direction.setPosition(s,u,n),this._validatePositionAndContinue(s,n,u),i++}}}}},{key:"_placeBranchNodes",value:function(e,n){var r,o=this.hierarchical.childrenReference[e];if(o!==void 0){for(var i=[],a=0;an&&this.positionedNodes[l.id]===void 0){var c=this.options.hierarchical.nodeSpacing,h=void 0;s===0?h=this.direction.getPosition(this.body.nodes[e]):h=this.direction.getPosition(i[s-1])+c,this.direction.setPosition(l,h,u),this._validatePositionAndContinue(l,u,h)}else return}var d=this._getCenterPosition(i);this.direction.setPosition(this.body.nodes[e],d,n)}}},{key:"_validatePositionAndContinue",value:function(e,n,r){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[n]!==void 0){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[n]]);if(r-oe.hierarchical.levels[r.id]&&e.hierarchical.addRelation(r.id,o.id)};this._crawlNetwork(n),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},r=arguments.length>1?arguments[1]:void 0,o={},i=function h(d,f){if(o[d.id]===void 0){e.hierarchical.setTreeIndex(d,f),o[d.id]=!0;for(var p,g=e._getActiveEdges(d),b=0;b=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function ije(t,e){var n;if(t){if(typeof t=="string")return g3(t,e);var r=bn(n=Object.prototype.toString.call(t)).call(n,8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return ks(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g3(t,e)}}function g3(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&this.options.deleteNode!==!1?(s===!0&&this._createSeperator(4),this._createDeleteButton(a)):r===0&&this.options.deleteEdge!==!1&&(s===!0&&this._createSeperator(4),this._createDeleteButton(a))),this._bindElementEvents(this.closeDiv,Y(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",Y(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,r=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(r),this._createSeperator(),this._createDescription(r.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,Y(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",Y(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var n=this.selectionHandler.getSelectedNodes()[0];if(n!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(n.isCluster!==!0){var r=it({},n.options,!1);if(r.x=n.x,r.y=n.y,this.options.editNode.length===2)this.options.editNode(r,function(o){o!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(o),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,n,r,o,i;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var a,s=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(s),this._createSeperator(),this._createDescription(s.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Y(a=this.toggleEditMode).call(a,this))}this._temporaryBindUI("onTouch",Y(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",Y(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",Y(r=this._dragControlNode).call(r,this)),this._temporaryBindUI("onRelease",Y(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",Y(i=this._dragStartEdge).call(i,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",Ze(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var n,r=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(r),this._createSeperator(),this._createDescription(r.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Y(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var o,i,a,s,l=this.body.edges[this.edgeBeingEditedId],u=this._getNewTargetNode(l.from.x,l.from.y),c=this._getNewTargetNode(l.to.x,l.to.y);this.temporaryIds.nodes.push(u.id),this.temporaryIds.nodes.push(c.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this.body.nodes[c.id]=c,this.body.nodeIndices.push(c.id),this._temporaryBindUI("onTouch",Y(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",Y(i=this._controlNodeDragStart).call(i,this)),this._temporaryBindUI("onDrag",Y(a=this._controlNodeDrag).call(a,this)),this._temporaryBindUI("onDragEnd",Y(s=this._controlNodeDragEnd).call(s,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(h){var d=l.edgeType.findBorderPositions(h);u.selected===!1&&(u.x=d.from.x,u.y=d.from.y),c.selected===!1&&(c.x=d.to.x,c.y=d.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),r=this.selectionHandler.getSelectedEdgeIds(),o=void 0;if(n.length>0){for(var i=0;i0&&typeof this.options.deleteEdge=="function"&&(o=this.options.deleteEdge);if(typeof o=="function"){var a={nodes:n,edges:r};if(o.length===2)o(a,function(s){s!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(s.edges),e.body.data.nodes.getDataSet().remove(s.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(r),this.body.data.nodes.getDataSet().remove(n),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,n){var r=it({},this.options.controlNodeStyle);r.id="targetNode"+Fh(),r.hidden=!1,r.physics=!1,r.x=e,r.y=n;var o=this.body.functions.createNode(r);return o.shape.boundingBox={left:e,right:e,top:n,bottom:n},o}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},Sa(this.editModeDiv);var n=this.options.locales[this.options.locale],r=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(r),this._bindElementEvents(r,Y(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(Sa(this.editModeDiv),Sa(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=oje(Oi(e=this._domEventListenerCleanupQueue).call(e,0)),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;o()}}catch(i){n.e(i)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),Sa(this.manipulationDiv),Sa(this.editModeDiv),Sa(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var n,r=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,Y(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(e){var n,r=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,Y(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(e){var n,r=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,Y(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(e){var n,r=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,Y(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(e){var n,r;this.options.rtl?r="vis-delete-rtl":r="vis-delete";var o=this._createButton("delete",r,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(o),this._bindElementEvents(o,Y(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(e){var n,r=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,Y(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+n,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=o,this.manipulationDOM[e+"Label"].innerText=r,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,n){this.temporaryEventFunctions.push({event:e,boundFunction:n}),this.body.emitter.on(e,n)}},{key:"_temporaryBindUI",value:function(e,n){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+bh(Mt(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e=0;s--)if(i[s]!==this.selectedControlNode.id){a=this.body.nodes[i[s]];break}if(a!==void 0&&this.selectedControlNode!==void 0)if(a.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var l=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===l.id?this._performEditEdge(a.id,o.to.id):this._performEditEdge(o.from.id,a.id)}else o.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Ut({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,r=this.selectionHandler.getNodeAt(n);if(r!==void 0)if(r.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var o=this._getNewTargetNode(r.x,r.y);this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id);var i=this.body.functions.createEdge({id:"connectionEdge"+Fh(),from:r.id,to:o.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[i.id]=i,this.body.edgeIndices.push(i.id),this.temporaryIds.nodes.push(o.id),this.temporaryIds.edges.push(i.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var n=this.body.functions.getPointer(e.center),r=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var i=this.selectionHandler._getAllNodesOverlappingWith(r),a=void 0,s=i.length-1;s>=0;s--){var l;if(We(l=this.temporaryIds.nodes).call(l,i[s])===-1){a=this.body.nodes[i[s]];break}}if(e.controlEdge={from:o,to:a?a.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,n),this.temporaryIds.nodes[0]!==void 0){var u=this.body.nodes[this.temporaryIds.nodes[0]];u.x=this.canvas._XconvertDOMtoCanvas(n.x),u.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var n=this.body.functions.getPointer(e.center),r=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var i=this.selectionHandler._getAllNodesOverlappingWith(r),a=void 0,s=i.length-1;s>=0;s--){var l;if(We(l=this.temporaryIds.nodes).call(l,i[s])===-1){a=this.body.nodes[i[s]];break}}this._cleanupTemporaryNodesAndEdges(),a!==void 0&&(a.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[o]!==void 0&&this.body.nodes[a.id]!==void 0&&this._performAddEdge(o,a.id)),e.controlEdge={from:o,to:a?a.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,n,void 0,!0)}},{key:"_performAddNode",value:function(e){var n=this,r={id:Fh(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(r,function(o){o!=null&&n.inMode==="addNode"&&n.body.data.nodes.getDataSet().add(o),n.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(r),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,n){var r=this,o={from:e,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(o,function(i){i!=null&&r.inMode==="addEdge"&&(r.body.data.edges.getDataSet().add(i),r.selectionHandler.unselectAll(),r.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,n){var r=this,o={id:this.edgeBeingEditedId,from:e,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},i=this.options.editEdge;if(Ze(i)==="object"&&(i=i.editWithoutDrag),typeof i=="function")if(i.length===2)i(o,function(a){a==null||r.inMode!=="editEdge"?(r.body.edges[o.id].updateEdgeType(),r.body.emitter.emit("_redraw"),r.showManipulatorToolbar()):(r.body.data.edges.getDataSet().update(a),r.selectionHandler.unselectAll(),r.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),G="string",K="boolean",F="number",Hh="array",fe="object",v3="dom",sje="any",H_=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],U_={borderWidth:{number:F},borderWidthSelected:{number:F,undefined:"undefined"},brokenImage:{string:G,undefined:"undefined"},chosen:{label:{boolean:K,function:"function"},node:{boolean:K,function:"function"},__type__:{object:fe,boolean:K}},color:{border:{string:G},background:{string:G},highlight:{border:{string:G},background:{string:G},__type__:{object:fe,string:G}},hover:{border:{string:G},background:{string:G},__type__:{object:fe,string:G}},__type__:{object:fe,string:G}},opacity:{number:F,undefined:"undefined"},fixed:{x:{boolean:K},y:{boolean:K},__type__:{object:fe,boolean:K}},font:{align:{string:G},color:{string:G},size:{number:F},face:{string:G},background:{string:G},strokeWidth:{number:F},strokeColor:{string:G},vadjust:{number:F},multi:{boolean:K,string:G},bold:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:fe,string:G}},boldital:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:fe,string:G}},ital:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:fe,string:G}},mono:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:fe,string:G}},__type__:{object:fe,string:G}},group:{string:G,number:F,undefined:"undefined"},heightConstraint:{minimum:{number:F},valign:{string:G},__type__:{object:fe,boolean:K,number:F}},hidden:{boolean:K},icon:{face:{string:G},code:{string:G},size:{number:F},color:{string:G},weight:{string:G,number:F},__type__:{object:fe}},id:{string:G,number:F},image:{selected:{string:G,undefined:"undefined"},unselected:{string:G,undefined:"undefined"},__type__:{object:fe,string:G}},imagePadding:{top:{number:F},right:{number:F},bottom:{number:F},left:{number:F},__type__:{object:fe,number:F}},label:{string:G,undefined:"undefined"},labelHighlightBold:{boolean:K},level:{number:F,undefined:"undefined"},margin:{top:{number:F},right:{number:F},bottom:{number:F},left:{number:F},__type__:{object:fe,number:F}},mass:{number:F},physics:{boolean:K},scaling:{min:{number:F},max:{number:F},label:{enabled:{boolean:K},min:{number:F},max:{number:F},maxVisible:{number:F},drawThreshold:{number:F},__type__:{object:fe,boolean:K}},customScalingFunction:{function:"function"},__type__:{object:fe}},shadow:{enabled:{boolean:K},color:{string:G},size:{number:F},x:{number:F},y:{number:F},__type__:{object:fe,boolean:K}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:K,array:Hh},borderRadius:{number:F},interpolation:{boolean:K},useImageSize:{boolean:K},useBorderWithImage:{boolean:K},coordinateOrigin:{string:["center","top-left"]},__type__:{object:fe}},size:{number:F},title:{string:G,dom:v3,undefined:"undefined"},value:{number:F,undefined:"undefined"},widthConstraint:{minimum:{number:F},maximum:{number:F},__type__:{object:fe,boolean:K,number:F}},x:{number:F},y:{number:F},__type__:{object:fe}},lje={configure:{enabled:{boolean:K},filter:{boolean:K,string:G,array:Hh,function:"function"},container:{dom:v3},showButton:{boolean:K},__type__:{object:fe,boolean:K,string:G,array:Hh,function:"function"}},edges:{arrows:{to:{enabled:{boolean:K},scaleFactor:{number:F},type:{string:H_},imageHeight:{number:F},imageWidth:{number:F},src:{string:G},__type__:{object:fe,boolean:K}},middle:{enabled:{boolean:K},scaleFactor:{number:F},type:{string:H_},imageWidth:{number:F},imageHeight:{number:F},src:{string:G},__type__:{object:fe,boolean:K}},from:{enabled:{boolean:K},scaleFactor:{number:F},type:{string:H_},imageWidth:{number:F},imageHeight:{number:F},src:{string:G},__type__:{object:fe,boolean:K}},__type__:{string:["from","to","middle"],object:fe}},endPointOffset:{from:{number:F},to:{number:F},__type__:{object:fe,number:F}},arrowStrikethrough:{boolean:K},background:{enabled:{boolean:K},color:{string:G},size:{number:F},dashes:{boolean:K,array:Hh},__type__:{object:fe,boolean:K}},chosen:{label:{boolean:K,function:"function"},edge:{boolean:K,function:"function"},__type__:{object:fe,boolean:K}},color:{color:{string:G},highlight:{string:G},hover:{string:G},inherit:{string:["from","to","both"],boolean:K},opacity:{number:F},__type__:{object:fe,string:G}},dashes:{boolean:K,array:Hh},font:{color:{string:G},size:{number:F},face:{string:G},background:{string:G},strokeWidth:{number:F},strokeColor:{string:G},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:F},multi:{boolean:K,string:G},bold:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:fe,string:G}},boldital:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:fe,string:G}},ital:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:fe,string:G}},mono:{color:{string:G},size:{number:F},face:{string:G},mod:{string:G},vadjust:{number:F},__type__:{object:fe,string:G}},__type__:{object:fe,string:G}},hidden:{boolean:K},hoverWidth:{function:"function",number:F},label:{string:G,undefined:"undefined"},labelHighlightBold:{boolean:K},length:{number:F,undefined:"undefined"},physics:{boolean:K},scaling:{min:{number:F},max:{number:F},label:{enabled:{boolean:K},min:{number:F},max:{number:F},maxVisible:{number:F},drawThreshold:{number:F},__type__:{object:fe,boolean:K}},customScalingFunction:{function:"function"},__type__:{object:fe}},selectionWidth:{function:"function",number:F},selfReferenceSize:{number:F},selfReference:{size:{number:F},angle:{number:F},renderBehindTheNode:{boolean:K},__type__:{object:fe}},shadow:{enabled:{boolean:K},color:{string:G},size:{number:F},x:{number:F},y:{number:F},__type__:{object:fe,boolean:K}},smooth:{enabled:{boolean:K},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:F},forceDirection:{string:["horizontal","vertical","none"],boolean:K},__type__:{object:fe,boolean:K}},title:{string:G,undefined:"undefined"},width:{number:F},widthConstraint:{maximum:{number:F},__type__:{object:fe,boolean:K,number:F}},value:{number:F,undefined:"undefined"},__type__:{object:fe}},groups:{useDefaultGroups:{boolean:K},__any__:U_,__type__:{object:fe}},interaction:{dragNodes:{boolean:K},dragView:{boolean:K},hideEdgesOnDrag:{boolean:K},hideEdgesOnZoom:{boolean:K},hideNodesOnDrag:{boolean:K},hover:{boolean:K},keyboard:{enabled:{boolean:K},speed:{x:{number:F},y:{number:F},zoom:{number:F},__type__:{object:fe}},bindToWindow:{boolean:K},autoFocus:{boolean:K},__type__:{object:fe,boolean:K}},multiselect:{boolean:K},navigationButtons:{boolean:K},selectable:{boolean:K},selectConnectedEdges:{boolean:K},hoverConnectedEdges:{boolean:K},tooltipDelay:{number:F},zoomView:{boolean:K},zoomSpeed:{number:F},__type__:{object:fe}},layout:{randomSeed:{undefined:"undefined",number:F,string:G},improvedLayout:{boolean:K},clusterThreshold:{number:F},hierarchical:{enabled:{boolean:K},levelSeparation:{number:F},nodeSpacing:{number:F},treeSpacing:{number:F},blockShifting:{boolean:K},edgeMinimization:{boolean:K},parentCentralization:{boolean:K},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:fe,boolean:K}},__type__:{object:fe}},manipulation:{enabled:{boolean:K},initiallyActive:{boolean:K},addNode:{boolean:K,function:"function"},addEdge:{boolean:K,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:fe,boolean:K,function:"function"}},deleteNode:{boolean:K,function:"function"},deleteEdge:{boolean:K,function:"function"},controlNodeStyle:U_,__type__:{object:fe,boolean:K}},nodes:U_,physics:{enabled:{boolean:K},barnesHut:{theta:{number:F},gravitationalConstant:{number:F},centralGravity:{number:F},springLength:{number:F},springConstant:{number:F},damping:{number:F},avoidOverlap:{number:F},__type__:{object:fe}},forceAtlas2Based:{theta:{number:F},gravitationalConstant:{number:F},centralGravity:{number:F},springLength:{number:F},springConstant:{number:F},damping:{number:F},avoidOverlap:{number:F},__type__:{object:fe}},repulsion:{centralGravity:{number:F},springLength:{number:F},springConstant:{number:F},nodeDistance:{number:F},damping:{number:F},__type__:{object:fe}},hierarchicalRepulsion:{centralGravity:{number:F},springLength:{number:F},springConstant:{number:F},nodeDistance:{number:F},damping:{number:F},avoidOverlap:{number:F},__type__:{object:fe}},maxVelocity:{number:F},minVelocity:{number:F},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:K},iterations:{number:F},updateInterval:{number:F},onlyDynamicEdges:{boolean:K},fit:{boolean:K},__type__:{object:fe,boolean:K}},timestep:{number:F},adaptiveTimestep:{boolean:K},wind:{x:{number:F},y:{number:F},__type__:{object:fe}},__type__:{object:fe,boolean:K}},autoResize:{boolean:K},clickToUse:{boolean:K},locale:{string:G},locales:{__any__:{any:sje},__type__:{object:fe}},height:{string:G},width:{string:G},__type__:{object:fe}},m3={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},uje=function(t,e,n){var r;return!!(xa(t).call(t,"physics")&&xa(r=m3.physics.solver).call(r,e)&&n.physics.solver!==e&&e!=="wind")},cje=function(){function t(){Z(this,t)}return ee(t,[{key:"getDistances",value:function(e,n,r){for(var o={},i=e.edges,a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,o=this.distanceSolver.getDistances(this.body,e,n);this._createL_matrix(o),this._createK_matrix(o),this._createE_matrix();for(var i=.01,a=1,s=0,l=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),u=5,c=1e9,h=0,d=0,f=0,p=0,g=0;c>i&&sa&&g{const l=a;if(!(!l||!l.clauses||l.clauses.length===0))return l.clauses.map(u=>`${u.lhs.name} ${u.op} ${u.rhs}`).join(s)},[]),e=k.useCallback((a,s=!1)=>{if(!(!a||a.length===0))return s?`{${a.map(l=>l.name).join(",")}}`:`{ ${a.map(l=>l.name).join(", ")} }`},[]),n=k.useCallback(a=>{const s=t(a.invariant);return[a.name,s].filter(l=>l!==void 0).join(", ")},[t]),r=k.useCallback(a=>{const s=t(a.invariant);return s?`${a.name} +${s}`:a.name},[t]),o=k.useCallback(a=>{const s=t(a.guard),l=e(a.reset,!0);return[a.source.name,a.actionLabel,s,l,a.target.name].filter(u=>u!==void 0).join(", ")},[t,e]),i=k.useCallback(a=>{const s=t(a.guard,` \u2227 +`),l=e(a.reset);return[a.actionLabel,s,l].filter(u=>u!==void 0).join(` +`)},[t,e]);return{formatClockConstraint:t,formatReset:e,formatLocationLabelTable:n,formatLocationLabelVisual:r,formatSwitchTable:o,formatSwitchLabelVisual:i}}function hje(){const{formatLocationLabelVisual:t,formatSwitchLabelVisual:e}=y3();return{mapTaToVisDataModel:k.useCallback(n=>{const r=new lu,o=new lu;return n.locations.forEach(i=>{r.add({id:`${i.name}`,label:t(i),x:i.xCoordinate,y:i.yCoordinate})}),n.switches.forEach((i,a)=>{o.add({id:a,from:`${i.source.name}`,to:`${i.target.name}`,label:e(i)})}),{nodes:r,edges:o}},[t,e])}}const fje=t=>{const{viewModel:e}=t,{ta:n,updateLocationCoordinates:r}=e,{mapTaToVisDataModel:o}=hje(),i=k.useRef(null);return k.useEffect(()=>{if(!i.current)return;const a=o(n),s={nodes:{shape:"box",color:{background:"white",border:"black"},font:{size:20}},edges:{color:"gray",arrows:{to:{enabled:!0,type:"arrow"}},font:{size:20}},physics:{enabled:!1}},l=new ue(i.current,a,s);l.on("dragEnd",u=>{if(u.nodes.length>0){const c=u.nodes[0],h=l.getPositions([c]);n.locations.forEach(d=>{d.name===c&&r(e,d.name,h[c].x,h[c].y)})}})},[n,e,r,o]),C.jsx("div",{ref:i,style:{width:"100%",height:"100%"}})},Uh={black:"#000",white:"#fff"},Wu={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"},Hu={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"},Uu={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"},Vu={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"},qu={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"},Vh={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"},pje={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ri(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;n0?xn(Yu,--ur):0,Ku--,qt===10&&(Ku=1,zm--),qt}function Or(){return qt=ur2||Gh(qt)>3?"":" "}function Ije(t,e){for(;--e&&Or()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return Xh(t,Lm()+(e<6&&Xo()==32&&Or()==32))}function X_(t){for(;Or();)switch(qt){case t:return ur;case 34:case 39:t!==34&&t!==39&&X_(qt);break;case 40:t===41&&X_(t);break;case 92:Or();break}return ur}function Rje(t,e){for(;Or()&&t+qt!==57&&!(t+qt===84&&Xo()===47););return"/*"+Xh(e,ur-1)+"*"+Am(t===47?t:Or())}function Dje(t){for(;!Gh(Xo());)Or();return Xh(t,ur)}function jje(t){return E3($m("",null,null,null,[""],t=_3(t),0,[0],t))}function $m(t,e,n,r,o,i,a,s,l){for(var u=0,c=0,h=a,d=0,f=0,p=0,g=1,b=1,m=1,v=0,y="",x=o,S=i,_=r,E=y;b;)switch(p=v,v=Or()){case 40:if(p!=108&&xn(E,h-1)==58){K_(E+=qe(Bm(v),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:E+=Bm(v);break;case 9:case 10:case 13:case 32:E+=Mje(p);break;case 92:E+=Ije(Lm()-1,7);continue;case 47:switch(Xo()){case 42:case 47:Nm(Aje(Rje(Or(),Lm()),e,n),l);break;default:E+="/"}break;case 123*g:s[u++]=Yo(E)*m;case 125*g:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:m==-1&&(E=qe(E,/\f/g,"")),f>0&&Yo(E)-h&&Nm(f>32?O3(E+";",r,n,h-1):O3(qe(E," ","")+";",r,n,h-2),l);break;case 59:E+=";";default:if(Nm(_=C3(E,e,n,u,c,o,s,y,x=[],S=[],h),i),v===123)if(c===0)$m(E,e,_,_,x,i,h,s,S);else switch(d===99&&xn(E,3)===110?100:d){case 100:case 108:case 109:case 115:$m(t,_,_,r&&Nm(C3(t,_,_,0,0,o,s,y,o,x=[],h),S),o,S,h,s,r?x:S);break;default:$m(E,_,_,_,[""],S,0,s,S)}}u=c=f=0,g=m=1,y=E="",h=a;break;case 58:h=1+Yo(E),f=p;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&Pje()==125)continue}switch(E+=Am(v),v*g){case 38:m=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(Yo(E)-1)*m,m=1;break;case 64:Xo()===45&&(E+=Bm(Or())),d=Xo(),c=h=Yo(y=E+=Dje(Lm())),v++;break;case 45:p===45&&Yo(E)==2&&(g=0)}}return i}function C3(t,e,n,r,o,i,a,s,l,u,c){for(var h=o-1,d=o===0?i:[""],f=Y_(d),p=0,g=0,b=0;p0?d[m]+" "+v:qe(v,/&\f/g,d[m])))&&(l[b++]=y);return Fm(t,e,n,o===0?V_:s,l,u,c)}function Aje(t,e,n){return Fm(t,e,n,w3,Am(Tje()),Kh(t,2,-2),0)}function O3(t,e,n,r){return Fm(t,e,n,q_,Kh(t,0,r),Kh(t,r+1,-1),r)}function Xu(t,e){for(var n="",r=Y_(t),o=0;o6)switch(xn(t,e+1)){case 109:if(xn(t,e+4)!==45)break;case 102:return qe(t,/(.+:)(.+)-([^]+)/,"$1"+Ve+"$2-$3$1"+jm+(xn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~K_(t,"stretch")?P3(qe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(xn(t,e+1)!==115)break;case 6444:switch(xn(t,Yo(t)-3-(~K_(t,"!important")&&10))){case 107:return qe(t,":",":"+Ve)+t;case 101:return qe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ve+(xn(t,14)===45?"inline-":"")+"box$3$1"+Ve+"$2$3$1"+On+"$2box$3")+t}break;case 5936:switch(xn(t,e+11)){case 114:return Ve+t+On+qe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ve+t+On+qe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ve+t+On+qe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ve+t+On+t+t}return t}var Uje=function(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case q_:t.return=P3(t.value,t.length);break;case x3:return Xu([Yh(t,{value:qe(t.value,"@","@"+Ve)})],r);case V_:if(t.length)return Oje(t.props,function(o){switch(Cje(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xu([Yh(t,{props:[qe(o,/:(read-\w+)/,":"+jm+"$1")]})],r);case"::placeholder":return Xu([Yh(t,{props:[qe(o,/:(plac\w+)/,":"+Ve+"input-$1")]}),Yh(t,{props:[qe(o,/:(plac\w+)/,":"+jm+"$1")]}),Yh(t,{props:[qe(o,/:(plac\w+)/,On+"input-$1")]})],r)}return""})}},Vje=[Uje],qje=function(t){var e=t.key;if(e==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var r=t.stylisPlugins||Vje,o={},i,a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),b=1;b=4;++r,o-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var oAe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},iAe=!1,aAe=/[A-Z]|^ms/g,sAe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,N3=function(t){return t.charCodeAt(1)===45},z3=function(t){return t!=null&&typeof t!="boolean"},Z_=b3(function(t){return N3(t)?t:t.replace(aAe,"-$&").toLowerCase()}),F3=function(t,e){switch(t){case"animation":case"animationName":if(typeof e=="string")return e.replace(sAe,function(n,r,o){return Go={name:r,styles:o,next:Go},r})}return oAe[t]!==1&&!N3(t)&&typeof e=="number"&&e!==0?e+"px":e},lAe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Qh(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Go={name:o.name,styles:o.styles,next:Go},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Go={name:a.name,styles:a.styles,next:Go},a=a.next;var s=i.styles+";";return s}return uAe(t,e,n)}case"function":{if(t!==void 0){var l=Go,u=n(t);return Go=l,Qh(t,e,u)}break}}var c=n;if(e==null)return c;var h=e[c];return h!==void 0?h:c}function uAe(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o96?pAe:gAe},V3=function(t,e,n){var r;if(e){var o=e.shouldForwardProp;r=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof r!="function"&&n&&(r=t.__emotion_forwardProp),r},vAe=!1,mAe=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return j3(e,n,r),dAe(function(){return A3(e,n,r)}),null},yAe=function t(e,n){var r=e.__emotion_real===e,o=r&&e.__emotion_base||e,i,a;n!==void 0&&(i=n.label,a=n.target);var s=V3(e,n,r),l=s||U3(o),u=!l("as");return function(){var c=arguments,h=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)h.push.apply(h,c);else{h.push(c[0][0]);for(var d=c.length,f=1;fe(wAe(o)?n:o):e;return C.jsx(hAe,{styles:r})}function q3(t,e){return rE(t,e)}const kAe=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))};function Qo(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function K3(t){if(!Qo(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=K3(t[n])}),e}function Tn(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return Qo(t)&&Qo(e)&&Object.keys(e).forEach(o=>{Qo(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Qo(t[o])?r[o]=Tn(t[o],e[o],n):n.clone?r[o]=Qo(e[o])?K3(e[o]):e[o]:r[o]=e[o]}),r}const SAe=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function _Ae(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=t,i=SAe(e),a=Object.keys(i);function s(d){return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof e[d]=="number"?e[d]:d)-r/100}${n})`}function u(d,f){const p=a.indexOf(f);return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${n}) and (max-width:${(p!==-1&&typeof e[a[p]]=="number"?e[a[p]]:f)-r/100}${n})`}function c(d){return a.indexOf(d)+1r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const i=e[o];return delete r[o],r[o]=i,r},{...e}):e}function CAe(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function OAe(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return t.containerQueries(o).up(i)}function TAe(t){const e=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>e(t.breakpoints.up(...s),a),i.down=(...s)=>e(t.breakpoints.down(...s),a),i.between=(...s)=>e(t.breakpoints.between(...s),a),i.only=(...s)=>e(t.breakpoints.only(...s),a),i.not=(...s)=>{const l=e(t.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...t,containerQueries:o}}const PAe={borderRadius:4};function Jh(t,e){return e?Tn(t,e,{clone:!1}):t}const Jm={xs:0,sm:600,md:900,lg:1200,xl:1536},Y3={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Jm[t]}px)`},MAe={containerQueries:t=>({up:e=>{let n=typeof e=="number"?e:Jm[e]||e;return typeof n=="number"&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function Yr(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const o=r.breakpoints||Y3;return e.reduce((i,a,s)=>(i[o.up(o.keys[s])]=n(e[s]),i),{})}if(typeof e=="object"){const o=r.breakpoints||Y3;return Object.keys(e).reduce((i,a)=>{if(CAe(o.keys,a)){const s=OAe(r.containerQueries?r:MAe,a);s&&(i[s]=n(e[a],a))}else if(Object.keys(o.values||Jm).includes(a)){const s=o.up(a);i[s]=n(e[a],a)}else{const s=a;i[s]=e[s]}return i},{})}return n(e)}function IAe(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((n,r)=>{const o=t.up(r);return n[o]={},n},{}))||{}}function RAe(t,e){return t.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},e)}function DAe(t,e){if(typeof t!="object")return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach((o,i)=>{i{t[o]!=null&&(n[o]=!0)}),n}function Zm({values:t,breakpoints:e,base:n}){const r=n||DAe(t,e),o=Object.keys(r);if(o.length===0)return t;let i;return o.reduce((a,s,l)=>(Array.isArray(t)?(a[s]=t[l]!=null?t[l]:t[i],i=l):typeof t=="object"?(a[s]=t[s]!=null?t[s]:t[i],i=s):a[s]=t,a),{})}function ce(t){if(typeof t!="string")throw new Error(Ri(7));return t.charAt(0).toUpperCase()+t.slice(1)}function ey(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,t);if(r!=null)return r}return e.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,t)}function ty(t,e,n,r=n){let o;return typeof t=="function"?o=t(n):Array.isArray(t)?o=t[n]||r:o=ey(t,n)||r,e&&(o=e(o,r,t)),o}function Ft(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:o}=t,i=a=>{if(a[e]==null)return null;const s=a[e],l=a.theme,u=ey(l,r)||{};return Yr(a,s,c=>{let h=ty(u,o,c);return c===h&&typeof c=="string"&&(h=ty(u,o,`${e}${c==="default"?"":ce(c)}`,c)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[e],i}function jAe(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const AAe={m:"margin",p:"padding"},NAe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},X3={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zAe=jAe(t=>{if(t.length>2)if(X3[t])t=X3[t];else return[t];const[e,n]=t.split(""),r=AAe[e],o=NAe[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),oE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],iE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...oE,...iE];function Zh(t,e,n,r){const o=ey(t,e,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function aE(t){return Zh(t,"spacing",8)}function ef(t,e){return typeof e=="string"||e==null?e:t(e)}function FAe(t,e){return n=>t.reduce((r,o)=>(r[o]=ef(e,n),r),{})}function LAe(t,e,n,r){if(!e.includes(n))return null;const o=zAe(n),i=FAe(o,r),a=t[n];return Yr(t,a,i)}function G3(t,e){const n=aE(t.theme);return Object.keys(t).map(r=>LAe(t,e,r,n)).reduce(Jh,{})}function It(t){return G3(t,oE)}It.propTypes={},It.filterProps=oE;function Rt(t){return G3(t,iE)}Rt.propTypes={},Rt.filterProps=iE;function Q3(t=8,e=aE({spacing:t})){if(t.mui)return t;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const i=e(o);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function ny(...t){const e=t.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>e[i]?Jh(o,e[i](r)):o,{});return n.propTypes={},n.filterProps=t.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Xr(t){return typeof t!="number"?t:`${t}px solid`}function Gr(t,e){return Ft({prop:t,themeKey:"borders",transform:e})}const BAe=Gr("border",Xr),$Ae=Gr("borderTop",Xr),WAe=Gr("borderRight",Xr),HAe=Gr("borderBottom",Xr),UAe=Gr("borderLeft",Xr),VAe=Gr("borderColor"),qAe=Gr("borderTopColor"),KAe=Gr("borderRightColor"),YAe=Gr("borderBottomColor"),XAe=Gr("borderLeftColor"),GAe=Gr("outline",Xr),QAe=Gr("outlineColor"),ry=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Zh(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:ef(e,r)});return Yr(t,t.borderRadius,n)}return null};ry.propTypes={},ry.filterProps=["borderRadius"],ny(BAe,$Ae,WAe,HAe,UAe,VAe,qAe,KAe,YAe,XAe,ry,GAe,QAe);const oy=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Zh(t.theme,"spacing",8),n=r=>({gap:ef(e,r)});return Yr(t,t.gap,n)}return null};oy.propTypes={},oy.filterProps=["gap"];const iy=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Zh(t.theme,"spacing",8),n=r=>({columnGap:ef(e,r)});return Yr(t,t.columnGap,n)}return null};iy.propTypes={},iy.filterProps=["columnGap"];const ay=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Zh(t.theme,"spacing",8),n=r=>({rowGap:ef(e,r)});return Yr(t,t.rowGap,n)}return null};ay.propTypes={},ay.filterProps=["rowGap"];const JAe=Ft({prop:"gridColumn"}),ZAe=Ft({prop:"gridRow"}),eNe=Ft({prop:"gridAutoFlow"}),tNe=Ft({prop:"gridAutoColumns"}),nNe=Ft({prop:"gridAutoRows"}),rNe=Ft({prop:"gridTemplateColumns"}),oNe=Ft({prop:"gridTemplateRows"}),iNe=Ft({prop:"gridTemplateAreas"}),aNe=Ft({prop:"gridArea"});ny(oy,iy,ay,JAe,ZAe,eNe,tNe,nNe,rNe,oNe,iNe,aNe);function Gu(t,e){return e==="grey"?e:t}const sNe=Ft({prop:"color",themeKey:"palette",transform:Gu}),lNe=Ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gu}),uNe=Ft({prop:"backgroundColor",themeKey:"palette",transform:Gu});ny(sNe,lNe,uNe);function Pr(t){return t<=1&&t!==0?`${t*100}%`:t}const cNe=Ft({prop:"width",transform:Pr}),sE=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var o,i,a,s,l;const r=((a=(i=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Jm[n];return r?((l=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Pr(n)}};return Yr(t,t.maxWidth,e)}return null};sE.filterProps=["maxWidth"];const dNe=Ft({prop:"minWidth",transform:Pr}),hNe=Ft({prop:"height",transform:Pr}),fNe=Ft({prop:"maxHeight",transform:Pr}),pNe=Ft({prop:"minHeight",transform:Pr});Ft({prop:"size",cssProperty:"width",transform:Pr}),Ft({prop:"size",cssProperty:"height",transform:Pr});const gNe=Ft({prop:"boxSizing"});ny(cNe,sE,dNe,hNe,fNe,pNe,gNe);const tf={border:{themeKey:"borders",transform:Xr},borderTop:{themeKey:"borders",transform:Xr},borderRight:{themeKey:"borders",transform:Xr},borderBottom:{themeKey:"borders",transform:Xr},borderLeft:{themeKey:"borders",transform:Xr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ry},color:{themeKey:"palette",transform:Gu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gu},backgroundColor:{themeKey:"palette",transform:Gu},p:{style:Rt},pt:{style:Rt},pr:{style:Rt},pb:{style:Rt},pl:{style:Rt},px:{style:Rt},py:{style:Rt},padding:{style:Rt},paddingTop:{style:Rt},paddingRight:{style:Rt},paddingBottom:{style:Rt},paddingLeft:{style:Rt},paddingX:{style:Rt},paddingY:{style:Rt},paddingInline:{style:Rt},paddingInlineStart:{style:Rt},paddingInlineEnd:{style:Rt},paddingBlock:{style:Rt},paddingBlockStart:{style:Rt},paddingBlockEnd:{style:Rt},m:{style:It},mt:{style:It},mr:{style:It},mb:{style:It},ml:{style:It},mx:{style:It},my:{style:It},margin:{style:It},marginTop:{style:It},marginRight:{style:It},marginBottom:{style:It},marginLeft:{style:It},marginX:{style:It},marginY:{style:It},marginInline:{style:It},marginInlineStart:{style:It},marginInlineEnd:{style:It},marginBlock:{style:It},marginBlockStart:{style:It},marginBlockEnd:{style:It},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:oy},rowGap:{style:ay},columnGap:{style:iy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pr},maxWidth:{style:sE},minWidth:{transform:Pr},height:{transform:Pr},maxHeight:{transform:Pr},minHeight:{transform:Pr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vNe(...t){const e=t.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function mNe(t,e){return typeof t=="function"?t(e):t}function yNe(){function t(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:h}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const d=ey(o,u)||{};return h?h(a):Yr(a,r,f=>{let p=ty(d,c,f);return f===p&&typeof f=="string"&&(p=ty(d,c,`${n}${f==="default"?"":ce(f)}`,f)),l===!1?p:{[l]:p}})}function e(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??tf;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const u=IAe(o.breakpoints),c=Object.keys(u);let h=u;return Object.keys(l).forEach(d=>{const f=mNe(l[d],o);if(f!=null)if(typeof f=="object")if(i[d])h=Jh(h,t(d,f,o,i));else{const p=Yr({theme:o},f,g=>({[d]:g}));vNe(p,f)?h[d]=e({sx:f,theme:o}):h=Jh(h,p)}else h=Jh(h,t(d,f,o,i))}),EAe(o,RAe(c,h))}return Array.isArray(r)?r.map(a):a(r)}return e}const Qu=yNe();Qu.filterProps=["sx"];function bNe(t,e){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[t])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(t);return(o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e}}return n.palette.mode===t?e:{}}function lE(t={},...e){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=t,s=_Ae(n),l=Q3(o);let u=Tn({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...PAe,...i}},a);return u=TAe(u),u.applyStyles=bNe,u=e.reduce((c,h)=>Tn(c,h),u),u.unstable_sxConfig={...tf,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(c){return Qu({sx:c,theme:this})},u}function wNe(t){return Object.keys(t).length===0}function xNe(t=null){const e=k.useContext(tE);return!e||wNe(e)?t:e}const kNe=lE();function sy(t=kNe){return xNe(t)}function SNe({styles:t,themeId:e,defaultTheme:n={}}){const r=sy(n),o=typeof t=="function"?t(e&&r[e]||r):t;return C.jsx(xAe,{styles:o})}const _Ne=t=>{var r;const e={systemProps:{},otherProps:{}},n=((r=t==null?void 0:t.theme)==null?void 0:r.unstable_sxConfig)??tf;return Object.keys(t).forEach(o=>{n[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function uE(t){const{sx:e,...n}=t,{systemProps:r,otherProps:o}=_Ne(n);let i;return Array.isArray(e)?i=[r,...e]:typeof e=="function"?i=(...a)=>{const s=e(...a);return Qo(s)?{...r,...s}:r}:i={...r,...e},{...o,sx:i}}const J3=t=>t,ENe=()=>{let t=J3;return{configure(e){t=e},generate(e){return t(e)},reset(){t=J3}}},cE=ENe();function Z3(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;ea!=="theme"&&a!=="sx"&&a!=="as"})(Qu);return k.forwardRef(function(a,s){const l=sy(n),{className:u,component:c="div",...h}=uE(a);return C.jsx(i,{as:c,ref:s,className:de(u,o?o(r):r),theme:e&&l[e]||l,...h})})}const ONe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ee(t,e,n="Mui"){const r=ONe[e];return r?`${n}-${r}`:`${cE.generate(t)}-${e}`}function _e(t,e,n="Mui"){const r={};return e.forEach(o=>{r[o]=Ee(t,o,n)}),r}var et={},dE=Symbol.for("react.element"),hE=Symbol.for("react.portal"),ly=Symbol.for("react.fragment"),uy=Symbol.for("react.strict_mode"),cy=Symbol.for("react.profiler"),dy=Symbol.for("react.provider"),hy=Symbol.for("react.context"),TNe=Symbol.for("react.server_context"),fy=Symbol.for("react.forward_ref"),py=Symbol.for("react.suspense"),gy=Symbol.for("react.suspense_list"),vy=Symbol.for("react.memo"),my=Symbol.for("react.lazy"),PNe=Symbol.for("react.offscreen"),e4;e4=Symbol.for("react.module.reference");function Qr(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case dE:switch(t=t.type,t){case ly:case cy:case uy:case py:case gy:return t;default:switch(t=t&&t.$$typeof,t){case TNe:case hy:case fy:case my:case vy:case dy:return t;default:return e}}case hE:return e}}}et.ContextConsumer=hy,et.ContextProvider=dy,et.Element=dE,et.ForwardRef=fy,et.Fragment=ly,et.Lazy=my,et.Memo=vy,et.Portal=hE,et.Profiler=cy,et.StrictMode=uy,et.Suspense=py,et.SuspenseList=gy,et.isAsyncMode=function(){return!1},et.isConcurrentMode=function(){return!1},et.isContextConsumer=function(t){return Qr(t)===hy},et.isContextProvider=function(t){return Qr(t)===dy},et.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===dE},et.isForwardRef=function(t){return Qr(t)===fy},et.isFragment=function(t){return Qr(t)===ly},et.isLazy=function(t){return Qr(t)===my},et.isMemo=function(t){return Qr(t)===vy},et.isPortal=function(t){return Qr(t)===hE},et.isProfiler=function(t){return Qr(t)===cy},et.isStrictMode=function(t){return Qr(t)===uy},et.isSuspense=function(t){return Qr(t)===py},et.isSuspenseList=function(t){return Qr(t)===gy},et.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===ly||t===cy||t===uy||t===py||t===gy||t===PNe||typeof t=="object"&&t!==null&&(t.$$typeof===my||t.$$typeof===vy||t.$$typeof===dy||t.$$typeof===hy||t.$$typeof===fy||t.$$typeof===e4||t.getModuleId!==void 0)},et.typeOf=Qr;const MNe=lE();function fE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function pE(t,e,n){return DNe(e)?n:e[t]||e}const yy=Symbol("mui.processed_props");function by(t,e,n){if(yy in t)return t[yy];const r={...t,theme:pE(e,t.theme,n)};return t[yy]=r,r[yy]=r,r}function INe(t){return t?(e,n)=>n[t]:null}function wy(t,e){var r;const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>wy(o,e));if(Array.isArray(n==null?void 0:n.variants)){const{variants:o,...i}=n;let a=i,s;e:for(let l=0;lQu(by(a,e,n));return i.__mui_systemSx=!0,(a,s={})=>{kAe(a,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:h,overridesResolver:d=INe(ANe(u)),...f}=s,p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=h||!1;let b,m=fE;u==="Root"||u==="root"?m=r:u?m=o:jNe(a)&&(m=void 0);const v=q3(a,{shouldForwardProp:m,label:b,...f}),y=S=>typeof S=="function"&&S.__emotion_real!==S||Qo(S)?_=>wy(S,by(_,e,n)):S,x=(S,..._)=>{let E=y(S);const O=_?_.map(y):[];l&&d&&O.push(I=>{const R=pE(e,I.theme,n);if(!R.components||!R.components[l]||!R.components[l].styleOverrides)return null;const j=R.components[l].styleOverrides,D={},P=by(I,e,n);for(const M in j)D[M]=wy(j[M],P);return d(I,D)}),l&&!p&&O.push(I=>{var j,D,P;const R=(P=(D=(j=pE(e,I.theme,n))==null?void 0:j.components)==null?void 0:D[l])==null?void 0:P.variants;return R?wy({variants:R},by(I,e,n)):null}),g||O.push(i);const w=O.length-_.length;if(Array.isArray(S)&&w>0){const I=new Array(w).fill("");E=[...S,...I],E.raw=[...S.raw,...I]}const T=v(E,...O);return a.muiName&&(T.muiName=a.muiName),T};return v.withConfig&&(x.withConfig=v.withConfig),x}}function DNe(t){for(const e in t)return!1;return!0}function jNe(t){return typeof t=="string"&&t.charCodeAt(0)>96}function ANe(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function nf(t,e){const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const o=r;if(o==="components"||o==="slots")n[o]={...t[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=t[o],a=e[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=nf(i[l],a[l])}}}else n[o]===void 0&&(n[o]=t[o])}return n}function NNe(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:nf(e.components[n].defaultProps,r)}function zNe({props:t,name:e,defaultTheme:n,themeId:r}){let o=sy(n);return r&&(o=o[r]||o),NNe({theme:o,name:e,props:t})}const ko=typeof window<"u"?k.useLayoutEffect:k.useEffect;function FNe(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}function gE(t,e=0,n=1){return FNe(t,e,n)}function LNe(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Aa(t){if(t.type)return t;if(t.charAt(0)==="#")return Aa(LNe(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ri(9,t));let r=t.substring(e+1,t.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Ri(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const BNe=t=>{const e=Aa(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},rf=(t,e)=>{try{return BNe(t)}catch{return t}};function xy(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function t4(t){t=Aa(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return t.type==="hsla"&&(s+="a",l.push(e[3])),xy({type:s,values:l})}function vE(t){t=Aa(t);let e=t.type==="hsl"||t.type==="hsla"?Aa(t4(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function $Ne(t,e){const n=vE(t),r=vE(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function xt(t,e){return t=Aa(t),e=gE(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,xy(t)}function ky(t,e,n){try{return xt(t,e)}catch{return t}}function Sy(t,e){if(t=Aa(t),e=gE(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return xy(t)}function nt(t,e,n){try{return Sy(t,e)}catch{return t}}function _y(t,e){if(t=Aa(t),e=gE(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return xy(t)}function rt(t,e,n){try{return _y(t,e)}catch{return t}}function WNe(t,e=.15){return vE(t)>.5?Sy(t,e):_y(t,e)}function Ey(t,e,n){try{return WNe(t,e)}catch{return t}}function mE(...t){return t.reduce((e,n)=>n==null?e:function(...r){e.apply(this,r),n.apply(this,r)},()=>{})}function yE(t,e=166){let n;function r(...o){const i=()=>{t.apply(this,o)};clearTimeout(n),n=setTimeout(i,e)}return r.clear=()=>{clearTimeout(n)},r}function HNe(t,e){return()=>null}function Cy(t,e){var n,r,o;return k.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(r=(n=t.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function Pn(t){return t&&t.ownerDocument||document}function Na(t){return Pn(t).defaultView||window}function UNe(t,e){return()=>null}function Oy(t,e){typeof t=="function"?t(e):t&&(t.current=e)}let n4=0;function VNe(t){const[e,n]=k.useState(t),r=t||e;return k.useEffect(()=>{e==null&&(n4+=1,n(`mui-${n4}`))},[e]),r}const r4=T0.useId;function of(t){if(r4!==void 0){const e=r4();return t??e}return VNe(t)}function qNe(t,e,n,r,o){return null}function af({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=k.useRef(t!==void 0),[i,a]=k.useState(e),s=o?t:i,l=k.useCallback(u=>{o||a(u)},[]);return[s,l]}function Di(t){const e=k.useRef(t);return ko(()=>{e.current=t}),k.useRef((...n)=>(0,e.current)(...n)).current}function Lt(...t){return k.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Oy(n,e)})},t)}const o4={};function i4(t,e){const n=k.useRef(o4);return n.current===o4&&(n.current=t(e)),n}const KNe=[];function YNe(t){k.useEffect(t,KNe)}class Ty{constructor(){$f(this,"currentId",null);$f(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});$f(this,"disposeEffect",()=>this.clear)}static create(){return new Ty}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function Ju(){const t=i4(Ty.create).current;return YNe(t.disposeEffect),t}function Py(t){try{return t.matches(":focus-visible")}catch{}return!1}function a4(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}function Ce(t,e,n=void 0){const r={};for(const o in t){const i=t[o];let a="";for(let s=0;sr.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function l4(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function u4(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=t;if(!e){const f=de(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...n,...o,...r};return f.length>0&&(g.className=f),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:void 0}}const a=s4({...o,...r}),s=l4(r),l=l4(o),u=e(a),c=de(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},d={...u,...n,...l,...s};return c.length>0&&(d.className=c),Object.keys(h).length>0&&(d.style=h),{props:d,internalRef:u.ref}}function c4(t,e,n){return typeof t=="function"?t(e,n):t}function bE(t){var c;const{elementType:e,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=t,a=o?{}:c4(n,r),{props:s,internalRef:l}=u4({...i,externalSlotProps:a}),u=Lt(l,a==null?void 0:a.ref,(c=t.additionalProps)==null?void 0:c.ref);return Zu(e,{...s,ref:u},r)}function ec(t){return!t||!k.isValidElement(t)?null:t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}const GNe=k.createContext(),wE=()=>k.useContext(GNe)??!1,QNe=k.createContext(void 0);function JNe(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const o=e.components[n];return o.defaultProps?nf(o.defaultProps,r):!o.styleOverrides&&!o.variants?nf(o,r):r}function ZNe({props:t,name:e}){const n=k.useContext(QNe);return JNe({props:t,name:e,theme:{components:n}})}function eze(t=""){function e(...n){if(!n.length)return"";const r=n[0];return typeof r=="string"&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${r}${e(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${t?`${t}-`:""}${n}${e(...r)})`}const d4=(t,e,n,r=[])=>{let o=t;e.forEach((i,a)=>{a===e.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},tze=(t,e,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):e([...i,s],l,a))})}r(t)},nze=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().indexOf("opacity")>=0?e:`${e}px`:e;function xE(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},o={},i={},a={};return tze(t,(s,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const c=`--${n?`${n}-`:""}${s.join("-")}`,h=nze(s,l);Object.assign(o,{[c]:h}),d4(i,s,`var(${c})`,u),d4(a,s,`var(${c}, ${h})`,u)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function rze(t,e={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:o}=e,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=t,{vars:u,css:c,varsWithDefaults:h}=xE(l,e);let d=h;const f={},{[s]:p,...g}=i;if(Object.entries(g||{}).forEach(([m,v])=>{const{vars:y,css:x,varsWithDefaults:S}=xE(v,e);d=Tn(d,S),f[m]={css:x,vars:y}}),p){const{css:m,vars:v,varsWithDefaults:y}=xE(p,e);d=Tn(d,y),f[s]={css:m,vars:v}}function b(m,v){var x,S;let y=o;if(o==="class"&&(y=".%s"),o==="data"&&(y="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(y=`[${o}="%s"]`),m){if(y==="media")return t.defaultColorScheme===m?":root":{[`@media (prefers-color-scheme: ${((S=(x=i[m])==null?void 0:x.palette)==null?void 0:S.mode)||m})`]:{":root":v}};if(y)return t.defaultColorScheme===m?`:root, ${y.replace("%s",String(m))}`:y.replace("%s",String(m))}return":root"}return{vars:d,generateThemeVars:()=>{let m={...u};return Object.entries(f).forEach(([,{vars:v}])=>{m=Tn(m,v)}),m},generateStyleSheets:()=>{var _,E;const m=[],v=t.defaultColorScheme||"light";function y(O,w){Object.keys(w).length&&m.push(typeof O=="string"?{[O]:{...w}}:O)}y(n(void 0,{...c}),c);const{[v]:x,...S}=f;if(x){const{css:O}=x,w=(E=(_=i[v])==null?void 0:_.palette)==null?void 0:E.mode,T=!r&&w?{colorScheme:w,...O}:{...O};y(n(v,{...T}),T)}return Object.entries(S).forEach(([O,{css:w}])=>{var R,j;const T=(j=(R=i[O])==null?void 0:R.palette)==null?void 0:j.mode,I=!r&&T?{colorScheme:T,...w}:{...w};y(n(O,{...I}),I)}),m}}}function oze(t){return function(e){return t==="media"?`@media (prefers-color-scheme: ${e})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${e}"] &`:t==="class"?`.${e} &`:t==="data"?`[data-${e}] &`:`${t.replace("%s",e)} &`:"&"}}const h4={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:Uh.white,default:Uh.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}},kE={text:{primary:Uh.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:Uh.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 f4(t,e,n,r){const o=r.light||r,i=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=_y(t.main,o):e==="dark"&&(t.dark=Sy(t.main,i)))}function ize(t="light"){return t==="dark"?{main:Uu[200],light:Uu[50],dark:Uu[400]}:{main:Uu[700],light:Uu[400],dark:Uu[800]}}function aze(t="light"){return t==="dark"?{main:Hu[200],light:Hu[50],dark:Hu[400]}:{main:Hu[500],light:Hu[300],dark:Hu[700]}}function sze(t="light"){return t==="dark"?{main:Wu[500],light:Wu[300],dark:Wu[700]}:{main:Wu[700],light:Wu[400],dark:Wu[800]}}function lze(t="light"){return t==="dark"?{main:Vu[400],light:Vu[300],dark:Vu[700]}:{main:Vu[700],light:Vu[500],dark:Vu[900]}}function uze(t="light"){return t==="dark"?{main:qu[400],light:qu[300],dark:qu[700]}:{main:qu[800],light:qu[500],dark:qu[900]}}function cze(t="light"){return t==="dark"?{main:Vh[400],light:Vh[300],dark:Vh[700]}:{main:"#ed6c02",light:Vh[500],dark:Vh[900]}}function SE(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=t,i=t.primary||ize(e),a=t.secondary||aze(e),s=t.error||sze(e),l=t.info||lze(e),u=t.success||uze(e),c=t.warning||cze(e);function h(p){return $Ne(p,kE.text.primary)>=n?kE.text.primary:h4.text.primary}const d=({color:p,name:g,mainShade:b=500,lightShade:m=300,darkShade:v=700})=>{if(p={...p},!p.main&&p[b]&&(p.main=p[b]),!p.hasOwnProperty("main"))throw new Error(Ri(11,g?` (${g})`:"",b));if(typeof p.main!="string")throw new Error(Ri(12,g?` (${g})`:"",JSON.stringify(p.main)));return f4(p,"light",m,r),f4(p,"dark",v,r),p.contrastText||(p.contrastText=h(p.main)),p},f={dark:kE,light:h4};return Tn({common:{...Uh},mode:e,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:pje,contrastThreshold:n,getContrastText:h,augmentColor:d,tonalOffset:r,...f[e]},o)}function dze(t){const e={};return Object.entries(t).forEach(n=>{const[r,o]=n;typeof o=="object"&&(e[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),e}function hze(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function fze(t){return Math.round(t*1e5)/1e5}const p4={textTransform:"uppercase"},g4='"Roboto", "Helvetica", "Arial", sans-serif';function pze(t,e){const{fontFamily:n=g4,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...h}=typeof e=="function"?e(t):e,d=r/14,f=c||(b=>`${b/l*d}rem`),p=(b,m,v,y,x)=>({fontFamily:n,fontWeight:b,fontSize:f(m),lineHeight:v,...n===g4?{letterSpacing:`${fze(y/m)}em`}:{},...x,...u}),g={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(i,48,1.167,0),h4:p(i,34,1.235,.25),h5:p(i,24,1.334,0),h6:p(a,20,1.6,.15),subtitle1:p(i,16,1.75,.15),subtitle2:p(a,14,1.57,.1),body1:p(i,16,1.5,.15),body2:p(i,14,1.43,.15),button:p(a,14,1.75,.4,p4),caption:p(i,12,1.66,.4),overline:p(i,12,2.66,1,p4),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Tn({htmlFontSize:l,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},h,{clone:!1})}const gze=.2,vze=.14,mze=.12;function vt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${gze})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${vze})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${mze})`].join(",")}const yze=["none",vt(0,2,1,-1,0,1,1,0,0,1,3,0),vt(0,3,1,-2,0,2,2,0,0,1,5,0),vt(0,3,3,-2,0,3,4,0,0,1,8,0),vt(0,2,4,-1,0,4,5,0,0,1,10,0),vt(0,3,5,-1,0,5,8,0,0,1,14,0),vt(0,3,5,-1,0,6,10,0,0,1,18,0),vt(0,4,5,-2,0,7,10,1,0,2,16,1),vt(0,5,5,-3,0,8,10,1,0,3,14,2),vt(0,5,6,-3,0,9,12,1,0,3,16,2),vt(0,6,6,-3,0,10,14,1,0,4,18,3),vt(0,6,7,-4,0,11,15,1,0,4,20,3),vt(0,7,8,-4,0,12,17,2,0,5,22,4),vt(0,7,8,-4,0,13,19,2,0,5,24,4),vt(0,7,9,-4,0,14,21,2,0,5,26,4),vt(0,8,9,-5,0,15,22,2,0,6,28,5),vt(0,8,10,-5,0,16,24,2,0,6,30,5),vt(0,8,11,-5,0,17,26,2,0,6,32,5),vt(0,9,11,-5,0,18,28,2,0,7,34,6),vt(0,9,12,-6,0,19,29,2,0,7,36,6),vt(0,10,13,-6,0,20,31,3,0,8,38,7),vt(0,10,13,-6,0,21,33,3,0,8,40,7),vt(0,10,14,-6,0,22,35,3,0,8,42,7),vt(0,11,14,-7,0,23,36,3,0,9,44,8),vt(0,11,15,-7,0,24,38,3,0,9,46,8)],bze={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)"},wze={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function v4(t){return`${Math.round(t)}ms`}function xze(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function kze(t){const e={...bze,...t.easing},n={...wze,...t.duration};return{getAutoHeightDuration:xze,create:(r=["all"],o={})=>{const{duration:i=n.standard,easing:a=e.easeInOut,delay:s=0,...l}=o;return(Array.isArray(r)?r:[r]).map(u=>`${u} ${typeof i=="string"?i:v4(i)} ${a} ${typeof s=="string"?s:v4(s)}`).join(",")},...t,easing:e,duration:n}}const Sze={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function m4(t={},...e){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...u}=t;if(t.vars)throw new Error(Ri(20));const c=SE(i),h=lE(t);let d=Tn(h,{mixins:hze(h.breakpoints,r),palette:c,shadows:yze.slice(),typography:pze(c,s),transitions:kze(a),zIndex:{...Sze}});return d=Tn(d,u),d=e.reduce((f,p)=>Tn(f,p),d),d.unstable_sxConfig={...tf,...u==null?void 0:u.unstable_sxConfig},d.unstable_sx=function(f){return Qu({sx:f,theme:this})},d}function _E(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const _ze=[...Array(25)].map((t,e)=>{if(e===0)return;const n=_E(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function y4(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function b4(t){return t==="dark"?_ze:[]}function Eze(t){const{palette:e={mode:"light"},opacity:n,overlays:r,...o}=t,i=SE(e);return{palette:i,opacity:{...y4(i.mode),...n},overlays:r||b4(i.mode),...o}}function Cze(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const Oze=t=>[...[...Array(24)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n+1}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],Tze=t=>(e,n)=>{const r=t.colorSchemeSelector;let o=r;if(r==="class"&&(o=".%s"),r==="data"&&(o="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(o=`[${r}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const i={};return Oze(t.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),o==="media"?{":root":n,"@media (prefers-color-scheme: dark)":{":root":i}}:o?{[o.replace("%s",e)]:i,[`:root, ${o.replace("%s",e)}`]:n}:{":root":{...n,...i}}}if(o&&o!=="media")return`:root, ${o.replace("%s",String(e))}`}else if(e){if(o==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{":root":n}};if(o)return o.replace("%s",String(e))}return":root"};function Pze(t){return Qo(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Mze(t={}){const e={...t};function n(r){const o=Object.entries(r);for(let i=0;i{t[n]||(t[n]={})})}function H(t,e,n){!t[e]&&n&&(t[e]=n)}function sf(t){return!t||!t.startsWith("hsl")?t:t4(t)}function ji(t,e){`${e}Channel`in t||(t[`${e}Channel`]=rf(sf(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Rze(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Jo=t=>{try{return t()}catch{}},Dze=(t="mui")=>eze(t);function EE(t,e,n,r){if(!e)return;e=e===!0?{}:e;const o=r==="dark"?"dark":"light";if(!n){t[r]=Eze({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:i,...a}=m4({...n,palette:{mode:o,...e==null?void 0:e.palette}});return t[r]={...e,palette:i,opacity:{...y4(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||b4(o)},a}function jze(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=Cze,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,...l}=t,u=Object.keys(n)[0],c=r||(n.light&&u!=="light"?"light":u),h=Dze(i),{[c]:d,light:f,dark:p,...g}=n,b={...g};let m=d;if((c==="dark"&&!("dark"in n)||c==="light"&&!("light"in n))&&(m=!0),!m)throw new Error(Ri(21,c));const v=EE(b,m,l,c);f&&!b.light&&EE(b,f,void 0,"light"),p&&!b.dark&&EE(b,p,void 0,"dark");let y={defaultColorScheme:c,...v,cssVarPrefix:i,colorSchemeSelector:s,getCssVar:h,colorSchemes:b,font:{...dze(v.typography),...v.font},spacing:Rze(l.spacing)};Object.keys(y.colorSchemes).forEach(O=>{const w=y.colorSchemes[O].palette,T=I=>{const R=I.split("-"),j=R[1],D=R[2];return h(I,w[j][D])};if(w.mode==="light"&&(H(w.common,"background","#fff"),H(w.common,"onBackground","#000")),w.mode==="dark"&&(H(w.common,"background","#000"),H(w.common,"onBackground","#fff")),Ize(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){H(w.Alert,"errorColor",nt(w.error.light,.6)),H(w.Alert,"infoColor",nt(w.info.light,.6)),H(w.Alert,"successColor",nt(w.success.light,.6)),H(w.Alert,"warningColor",nt(w.warning.light,.6)),H(w.Alert,"errorFilledBg",T("palette-error-main")),H(w.Alert,"infoFilledBg",T("palette-info-main")),H(w.Alert,"successFilledBg",T("palette-success-main")),H(w.Alert,"warningFilledBg",T("palette-warning-main")),H(w.Alert,"errorFilledColor",Jo(()=>w.getContrastText(w.error.main))),H(w.Alert,"infoFilledColor",Jo(()=>w.getContrastText(w.info.main))),H(w.Alert,"successFilledColor",Jo(()=>w.getContrastText(w.success.main))),H(w.Alert,"warningFilledColor",Jo(()=>w.getContrastText(w.warning.main))),H(w.Alert,"errorStandardBg",rt(w.error.light,.9)),H(w.Alert,"infoStandardBg",rt(w.info.light,.9)),H(w.Alert,"successStandardBg",rt(w.success.light,.9)),H(w.Alert,"warningStandardBg",rt(w.warning.light,.9)),H(w.Alert,"errorIconColor",T("palette-error-main")),H(w.Alert,"infoIconColor",T("palette-info-main")),H(w.Alert,"successIconColor",T("palette-success-main")),H(w.Alert,"warningIconColor",T("palette-warning-main")),H(w.AppBar,"defaultBg",T("palette-grey-100")),H(w.Avatar,"defaultBg",T("palette-grey-400")),H(w.Button,"inheritContainedBg",T("palette-grey-300")),H(w.Button,"inheritContainedHoverBg",T("palette-grey-A100")),H(w.Chip,"defaultBorder",T("palette-grey-400")),H(w.Chip,"defaultAvatarColor",T("palette-grey-700")),H(w.Chip,"defaultIconColor",T("palette-grey-700")),H(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),H(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),H(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),H(w.LinearProgress,"primaryBg",rt(w.primary.main,.62)),H(w.LinearProgress,"secondaryBg",rt(w.secondary.main,.62)),H(w.LinearProgress,"errorBg",rt(w.error.main,.62)),H(w.LinearProgress,"infoBg",rt(w.info.main,.62)),H(w.LinearProgress,"successBg",rt(w.success.main,.62)),H(w.LinearProgress,"warningBg",rt(w.warning.main,.62)),H(w.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.11)`),H(w.Slider,"primaryTrack",rt(w.primary.main,.62)),H(w.Slider,"secondaryTrack",rt(w.secondary.main,.62)),H(w.Slider,"errorTrack",rt(w.error.main,.62)),H(w.Slider,"infoTrack",rt(w.info.main,.62)),H(w.Slider,"successTrack",rt(w.success.main,.62)),H(w.Slider,"warningTrack",rt(w.warning.main,.62));const I=Ey(w.background.default,.8);H(w.SnackbarContent,"bg",I),H(w.SnackbarContent,"color",Jo(()=>w.getContrastText(I))),H(w.SpeedDialAction,"fabHoverBg",Ey(w.background.paper,.15)),H(w.StepConnector,"border",T("palette-grey-400")),H(w.StepContent,"border",T("palette-grey-400")),H(w.Switch,"defaultColor",T("palette-common-white")),H(w.Switch,"defaultDisabledColor",T("palette-grey-100")),H(w.Switch,"primaryDisabledColor",rt(w.primary.main,.62)),H(w.Switch,"secondaryDisabledColor",rt(w.secondary.main,.62)),H(w.Switch,"errorDisabledColor",rt(w.error.main,.62)),H(w.Switch,"infoDisabledColor",rt(w.info.main,.62)),H(w.Switch,"successDisabledColor",rt(w.success.main,.62)),H(w.Switch,"warningDisabledColor",rt(w.warning.main,.62)),H(w.TableCell,"border",rt(ky(w.divider,1),.88)),H(w.Tooltip,"bg",ky(w.grey[700],.92))}if(w.mode==="dark"){H(w.Alert,"errorColor",rt(w.error.light,.6)),H(w.Alert,"infoColor",rt(w.info.light,.6)),H(w.Alert,"successColor",rt(w.success.light,.6)),H(w.Alert,"warningColor",rt(w.warning.light,.6)),H(w.Alert,"errorFilledBg",T("palette-error-dark")),H(w.Alert,"infoFilledBg",T("palette-info-dark")),H(w.Alert,"successFilledBg",T("palette-success-dark")),H(w.Alert,"warningFilledBg",T("palette-warning-dark")),H(w.Alert,"errorFilledColor",Jo(()=>w.getContrastText(w.error.dark))),H(w.Alert,"infoFilledColor",Jo(()=>w.getContrastText(w.info.dark))),H(w.Alert,"successFilledColor",Jo(()=>w.getContrastText(w.success.dark))),H(w.Alert,"warningFilledColor",Jo(()=>w.getContrastText(w.warning.dark))),H(w.Alert,"errorStandardBg",nt(w.error.light,.9)),H(w.Alert,"infoStandardBg",nt(w.info.light,.9)),H(w.Alert,"successStandardBg",nt(w.success.light,.9)),H(w.Alert,"warningStandardBg",nt(w.warning.light,.9)),H(w.Alert,"errorIconColor",T("palette-error-main")),H(w.Alert,"infoIconColor",T("palette-info-main")),H(w.Alert,"successIconColor",T("palette-success-main")),H(w.Alert,"warningIconColor",T("palette-warning-main")),H(w.AppBar,"defaultBg",T("palette-grey-900")),H(w.AppBar,"darkBg",T("palette-background-paper")),H(w.AppBar,"darkColor",T("palette-text-primary")),H(w.Avatar,"defaultBg",T("palette-grey-600")),H(w.Button,"inheritContainedBg",T("palette-grey-800")),H(w.Button,"inheritContainedHoverBg",T("palette-grey-700")),H(w.Chip,"defaultBorder",T("palette-grey-700")),H(w.Chip,"defaultAvatarColor",T("palette-grey-300")),H(w.Chip,"defaultIconColor",T("palette-grey-300")),H(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),H(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),H(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),H(w.LinearProgress,"primaryBg",nt(w.primary.main,.5)),H(w.LinearProgress,"secondaryBg",nt(w.secondary.main,.5)),H(w.LinearProgress,"errorBg",nt(w.error.main,.5)),H(w.LinearProgress,"infoBg",nt(w.info.main,.5)),H(w.LinearProgress,"successBg",nt(w.success.main,.5)),H(w.LinearProgress,"warningBg",nt(w.warning.main,.5)),H(w.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.13)`),H(w.Slider,"primaryTrack",nt(w.primary.main,.5)),H(w.Slider,"secondaryTrack",nt(w.secondary.main,.5)),H(w.Slider,"errorTrack",nt(w.error.main,.5)),H(w.Slider,"infoTrack",nt(w.info.main,.5)),H(w.Slider,"successTrack",nt(w.success.main,.5)),H(w.Slider,"warningTrack",nt(w.warning.main,.5));const I=Ey(w.background.default,.98);H(w.SnackbarContent,"bg",I),H(w.SnackbarContent,"color",Jo(()=>w.getContrastText(I))),H(w.SpeedDialAction,"fabHoverBg",Ey(w.background.paper,.15)),H(w.StepConnector,"border",T("palette-grey-600")),H(w.StepContent,"border",T("palette-grey-600")),H(w.Switch,"defaultColor",T("palette-grey-300")),H(w.Switch,"defaultDisabledColor",T("palette-grey-600")),H(w.Switch,"primaryDisabledColor",nt(w.primary.main,.55)),H(w.Switch,"secondaryDisabledColor",nt(w.secondary.main,.55)),H(w.Switch,"errorDisabledColor",nt(w.error.main,.55)),H(w.Switch,"infoDisabledColor",nt(w.info.main,.55)),H(w.Switch,"successDisabledColor",nt(w.success.main,.55)),H(w.Switch,"warningDisabledColor",nt(w.warning.main,.55)),H(w.TableCell,"border",nt(ky(w.divider,1),.68)),H(w.Tooltip,"bg",ky(w.grey[700],.92))}ji(w.background,"default"),ji(w.background,"paper"),ji(w.common,"background"),ji(w.common,"onBackground"),ji(w,"divider"),Object.keys(w).forEach(I=>{const R=w[I];R&&typeof R=="object"&&(R.main&&H(w[I],"mainChannel",rf(sf(R.main))),R.light&&H(w[I],"lightChannel",rf(sf(R.light))),R.dark&&H(w[I],"darkChannel",rf(sf(R.dark))),R.contrastText&&H(w[I],"contrastTextChannel",rf(sf(R.contrastText))),I==="text"&&(ji(w[I],"primary"),ji(w[I],"secondary")),I==="action"&&(R.active&&ji(w[I],"active"),R.selected&&ji(w[I],"selected")))})}),y=e.reduce((O,w)=>Tn(O,w),y);const x={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Tze(y)},{vars:S,generateThemeVars:_,generateStyleSheets:E}=rze(y,x);return y.vars=S,Object.entries(y.colorSchemes[y.defaultColorScheme]).forEach(([O,w])=>{y[O]=w}),y.generateThemeVars=_,y.generateStyleSheets=E,y.generateSpacing=function(){return Q3(l.spacing,aE(this))},y.getColorSchemeSelector=oze(s),y.spacing=y.generateSpacing(),y.shouldSkipGeneratingVar=a,y.unstable_sxConfig={...tf,...l==null?void 0:l.unstable_sxConfig},y.unstable_sx=function(O){return Qu({sx:O,theme:this})},y.toRuntimeSource=Mze,y}function w4(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:SE({...n===!0?{}:n,mode:e})})}function x4(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=t,s=i||"light",l=o==null?void 0:o[s],u={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){const c=m4(t,...e);return"colorSchemes"in t&&(c.defaultColorScheme=s,c.colorSchemes=u,c.palette.mode==="light"&&(c.colorSchemes.light={palette:c.palette},w4(c,"dark",u.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={palette:c.palette},w4(c,"light",u.light))),c}return!n&&!("light"in u)&&s==="light"&&(u.light=!0),jze({...a,colorSchemes:u,defaultColorScheme:s,...typeof r!="boolean"&&r},...e)}const My=x4();function tc(){const t=sy(My);return t[qh]||t}function k4({props:t,name:e}){return zNe({props:t,name:e,defaultTheme:My,themeId:qh})}function S4(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Un=t=>S4(t)&&t!=="classes",ne=RNe({themeId:qh,defaultTheme:My,rootShouldForwardProp:Un});function Aze(t){return C.jsx(SNe,{...t,defaultTheme:My,themeId:qh})}function Nze(t){return function(e){return C.jsx(Aze,{styles:typeof t=="function"?n=>t({theme:n,...e}):t})}}function zze(){return uE}const _4={theme:void 0};function ze(t){let e,n;return r=>{let o=e;return(o===void 0||r.theme!==n)&&(_4.theme=r.theme,o=t(_4),e=o,n=r.theme),o}}function Re(t){return ZNe(t)}function Fze(t){return Ee("MuiSvgIcon",t)}_e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Lze=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${ce(e)}`,`fontSize${ce(n)}`]};return Ce(o,Fze,r)},Bze=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${ce(n.color)}`],e[`fontSize${ce(n.fontSize)}`]]}})(ze(({theme:t})=>{var e,n,r,o,i,a,s,l,u,c,h,d,f,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=t.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=t.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((c=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,g])=>g&&g.main).map(([g])=>{var b,m;return{props:{color:g},style:{color:(m=(b=(t.vars??t).palette)==null?void 0:b[g])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(d=(h=(t.vars??t).palette)==null?void 0:h.action)==null?void 0:d.active}},{props:{color:"disabled"},style:{color:(p=(f=(t.vars??t).palette)==null?void 0:f.action)==null?void 0:p.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Iy=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:h="0 0 24 24",...d}=n,f=k.isValidElement(r)&&r.type==="svg",p={...n,color:i,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:f},g={};u||(g.viewBox=h);const b=Lze(p);return C.jsxs(Bze,{as:a,className:de(b.root,o),focusable:"false",color:l,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:e,...g,...d,...f&&r.props,ownerState:p,children:[f?r.props.children:r,c?C.jsx("title",{children:c}):null]})});Iy&&(Iy.muiName="SvgIcon");function $s(t,e){function n(r,o){return C.jsx(Iy,{"data-testid":`${e}Icon`,ref:o,...r,children:t})}return n.muiName=Iy.muiName,k.memo(k.forwardRef(n))}const $ze={configure:t=>{cE.configure(t)}},Wze=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ce,createChainedFunction:mE,createSvgIcon:$s,debounce:yE,deprecatedPropType:HNe,isMuiElement:Cy,ownerDocument:Pn,ownerWindow:Na,requirePropFactory:UNe,setRef:Oy,unstable_ClassNameGenerator:$ze,unstable_memoTheme:ze,unstable_useEnhancedEffect:ko,unstable_useId:of,unsupportedProp:qNe,useControlled:af,useEventCallback:Di,useForkRef:Lt},Symbol.toStringTag,{value:"Module"}));function E4(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function CE(t,e){return CE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},CE(t,e)}function C4(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,CE(t,e)}const O4={disabled:!1},Ry=io.createContext(null);var Hze=function(t){return t.scrollTop},lf="unmounted",Ws="exited",Hs="entering",nc="entered",OE="exiting",Zo=function(t){C4(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Ws,i.appearStatus=Hs):l=nc:r.unmountOnExit||r.mountOnEnter?l=lf:l=Ws,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(r,o){var i=r.in;return i&&o.status===lf?{status:Ws}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==Hs&&i!==nc&&(o=Hs):(i===Hs||i===nc)&&(o=OE)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,i,a;return o=i=a=r,r!=null&&typeof r!="number"&&(o=r.exit,i=r.enter,a=r.appear!==void 0?r.appear:i),{exit:o,enter:i,appear:a}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===Hs){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:rg.findDOMNode(this);i&&Hze(i)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ws&&this.setState({status:lf})},n.performEnter=function(r){var o=this,i=this.props.enter,a=this.context?this.context.isMounting:r,s=this.props.nodeRef?[a]:[rg.findDOMNode(this),a],l=s[0],u=s[1],c=this.getTimeouts(),h=a?c.appear:c.enter;if(!r&&!i||O4.disabled){this.safeSetState({status:nc},function(){o.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:Hs},function(){o.props.onEntering(l,u),o.onTransitionEnd(h,function(){o.safeSetState({status:nc},function(){o.props.onEntered(l,u)})})})},n.performExit=function(){var r=this,o=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:rg.findDOMNode(this);if(!o||O4.disabled){this.safeSetState({status:Ws},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:OE},function(){r.props.onExiting(a),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:Ws},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,o.nextCallback=null,r(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:rg.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=s[0],u=s[1];this.props.addEndListener(l,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===lf)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=E4(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return io.createElement(Ry.Provider,{value:null},typeof i=="function"?i(r,a):io.cloneElement(io.Children.only(i),a))},e}(io.Component);Zo.contextType=Ry,Zo.propTypes={};function rc(){}Zo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rc,onEntering:rc,onEntered:rc,onExit:rc,onExiting:rc,onExited:rc},Zo.UNMOUNTED=lf,Zo.EXITED=Ws,Zo.ENTERING=Hs,Zo.ENTERED=nc,Zo.EXITING=OE;function Uze(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function TE(t,e){var n=function(o){return e&&k.isValidElement(o)?e(o):o},r=Object.create(null);return t&&k.Children.map(t,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Vze(t,e){t=t||{},e=e||{};function n(c){return c in e?e[c]:t[c]}var r=Object.create(null),o=[];for(var i in t)i in e?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in e){if(r[l])for(a=0;at.scrollTop;function Dy(t,e){const{timeout:n,easing:r,style:o={}}=t;return{duration:o.transitionDuration??(typeof n=="number"?n:n[e.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[e.mode]:r),delay:o.transitionDelay}}function Gze(t){return Ee("MuiPaper",t)}_e("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Qze=t=>{const{square:e,elevation:n,variant:r,classes:o}=t,i={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return Ce(i,Gze,o)},Jze=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(ze(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),jy=k.forwardRef(function(t,e){var d;const n=Re({props:t,name:"MuiPaper"}),r=tc(),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation",...u}=n,c={...n,component:i,elevation:a,square:s,variant:l},h=Qze(c);return C.jsx(Jze,{as:i,ownerState:c,className:de(h.root,o),ref:e,...u,style:{...l==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":(d=r.vars.overlays)==null?void 0:d[a]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${xt("#fff",_E(a))}, ${xt("#fff",_E(a))})`}},...u.style}})});function Jr(t,e){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s,...l}=e,{component:u,slots:c={[t]:void 0},slotProps:h={[t]:void 0},...d}=i,f=c[t]||r,p=c4(h[t],o),{props:{component:g,...b},internalRef:m}=u4({className:n,...l,externalForwardedProps:t==="root"?d:void 0,externalSlotProps:p}),v=Lt(m,p==null?void 0:p.ref,e.ref),y=a?a(b):{},x={...o,...y},S=t==="root"?g||u:g,_=Zu(f,{...t==="root"&&!u&&!c[t]&&s,...t!=="root"&&!c[t]&&s,...b,...S&&{as:S},ref:v},x);return Object.keys(y).forEach(E=>{delete _[E]}),[f,_]}class Ay{constructor(){$f(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Ay}static use(){const e=i4(Ay.create).current,[n,r]=k.useState(!1);return e.shouldMount=n,e.setShouldMount=r,k.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=eFe(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function Zze(){return Ay.use()}function eFe(){let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n}function tFe(t){const{className:e,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=t,[c,h]=k.useState(!1),d=de(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},p=de(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&h(!0),k.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,u);return()=>{clearTimeout(g)}}},[l,s,u]),C.jsx("span",{className:d,style:f,children:C.jsx("span",{className:p})})}const Zr=_e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ME=550,nFe=80,rFe=nE` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,oFe=nE` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,iFe=nE` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,aFe=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sFe=ne(tFe,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${Zr.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${rFe}; + animation-duration: ${ME}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + &.${Zr.ripplePulsate} { + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; + } + + & .${Zr.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${Zr.childLeaving} { + opacity: 0; + animation-name: ${oFe}; + animation-duration: ${ME}ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + } + + & .${Zr.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${iFe}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,lFe=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...a}=n,[s,l]=k.useState([]),u=k.useRef(0),c=k.useRef(null);k.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const h=k.useRef(!1),d=Ju(),f=k.useRef(null),p=k.useRef(null),g=k.useCallback(y=>{const{pulsate:x,rippleX:S,rippleY:_,rippleSize:E,cb:O}=y;l(w=>[...w,C.jsx(sFe,{classes:{ripple:de(o.ripple,Zr.ripple),rippleVisible:de(o.rippleVisible,Zr.rippleVisible),ripplePulsate:de(o.ripplePulsate,Zr.ripplePulsate),child:de(o.child,Zr.child),childLeaving:de(o.childLeaving,Zr.childLeaving),childPulsate:de(o.childPulsate,Zr.childPulsate)},timeout:ME,pulsate:x,rippleX:S,rippleY:_,rippleSize:E},u.current)]),u.current+=1,c.current=O},[o]),b=k.useCallback((y={},x={},S=()=>{})=>{const{pulsate:_=!1,center:E=r||x.pulsate,fakeElement:O=!1}=x;if((y==null?void 0:y.type)==="mousedown"&&h.current){h.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(h.current=!0);const w=O?null:p.current,T=w?w.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,R,j;if(E||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)I=Math.round(T.width/2),R=Math.round(T.height/2);else{const{clientX:D,clientY:P}=y.touches&&y.touches.length>0?y.touches[0]:y;I=Math.round(D-T.left),R=Math.round(P-T.top)}if(E)j=Math.sqrt((2*T.width**2+T.height**2)/3),j%2===0&&(j+=1);else{const D=Math.max(Math.abs((w?w.clientWidth:0)-I),I)*2+2,P=Math.max(Math.abs((w?w.clientHeight:0)-R),R)*2+2;j=Math.sqrt(D**2+P**2)}y!=null&&y.touches?f.current===null&&(f.current=()=>{g({pulsate:_,rippleX:I,rippleY:R,rippleSize:j,cb:S})},d.start(nFe,()=>{f.current&&(f.current(),f.current=null)})):g({pulsate:_,rippleX:I,rippleY:R,rippleSize:j,cb:S})},[r,g,d]),m=k.useCallback(()=>{b({},{pulsate:!0})},[b]),v=k.useCallback((y,x)=>{if(d.clear(),(y==null?void 0:y.type)==="touchend"&&f.current){f.current(),f.current=null,d.start(0,()=>{v(y,x)});return}f.current=null,l(S=>S.length>0?S.slice(1):S),c.current=x},[d]);return k.useImperativeHandle(e,()=>({pulsate:m,start:b,stop:v}),[m,b,v]),C.jsx(aFe,{className:de(Zr.root,o.root,i),ref:p,...a,children:C.jsx(PE,{component:null,exit:!0,children:s})})});function uFe(t){return Ee("MuiButtonBase",t)}const cFe=_e("MuiButtonBase",["root","disabled","focusVisible"]),dFe=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,i=Ce({root:["root",e&&"disabled",n&&"focusVisible"]},uFe,o);return n&&r&&(i.root+=` ${r}`),i},hFe=ne("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${cFe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ny=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:h=!1,focusVisibleClassName:d,LinkComponent:f="a",onBlur:p,onClick:g,onContextMenu:b,onDragLeave:m,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:_,onMouseLeave:E,onMouseUp:O,onTouchEnd:w,onTouchMove:T,onTouchStart:I,tabIndex:R=0,TouchRippleProps:j,touchRippleRef:D,type:P,...M}=n,N=k.useRef(null),A=Zze(),$=Lt(A.ref,D),[W,J]=k.useState(!1);l&&W&&J(!1),k.useImperativeHandle(r,()=>({focusVisible:()=>{J(!0),N.current.focus()}}),[]);const X=A.shouldMount&&!u&&!l;k.useEffect(()=>{W&&h&&!u&&A.pulsate()},[u,h,W,A]);function te(pe,ht,Rr=c){return Di(Rn=>(ht&&ht(Rn),Rr||A[pe](Rn),!0))}const se=te("start",_),ve=te("stop",b),Q=te("stop",m),xe=te("stop",O),ke=te("stop",pe=>{W&&pe.preventDefault(),E&&E(pe)}),z=te("start",I),L=te("stop",w),B=te("stop",T),re=te("stop",pe=>{Py(pe.target)||J(!1),p&&p(pe)},!1),V=Di(pe=>{N.current||(N.current=pe.currentTarget),Py(pe.target)&&(J(!0),y&&y(pe)),v&&v(pe)}),ie=()=>{const pe=N.current;return s&&s!=="button"&&!(pe.tagName==="A"&&pe.href)},Te=Di(pe=>{h&&!pe.repeat&&W&&pe.key===" "&&A.stop(pe,()=>{A.start(pe)}),pe.target===pe.currentTarget&&ie()&&pe.key===" "&&pe.preventDefault(),x&&x(pe),pe.target===pe.currentTarget&&ie()&&pe.key==="Enter"&&!l&&(pe.preventDefault(),g&&g(pe))}),Ne=Di(pe=>{h&&pe.key===" "&&W&&!pe.defaultPrevented&&A.stop(pe,()=>{A.pulsate(pe)}),S&&S(pe),g&&pe.target===pe.currentTarget&&ie()&&pe.key===" "&&!pe.defaultPrevented&&g(pe)});let Oe=s;Oe==="button"&&(M.href||M.to)&&(Oe=f);const Le={};Oe==="button"?(Le.type=P===void 0?"button":P,Le.disabled=l):(!M.href&&!M.to&&(Le.role="button"),l&&(Le["aria-disabled"]=l));const kt=Lt(e,N),Se={...n,centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:h,tabIndex:R,focusVisible:W},Xt=dFe(Se);return C.jsxs(hFe,{as:Oe,className:de(Xt.root,a),ownerState:Se,onBlur:re,onClick:g,onContextMenu:ve,onFocus:V,onKeyDown:Te,onKeyUp:Ne,onMouseDown:se,onMouseLeave:ke,onMouseUp:xe,onDragLeave:Q,onTouchEnd:L,onTouchMove:B,onTouchStart:z,ref:kt,tabIndex:l?-1:R,type:P,...Le,...M,children:[i,X?C.jsx(lFe,{ref:$,center:o,...j}):null]})});function fFe(t){return Ee("MuiIconButton",t)}const pFe=_e("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),gFe=t=>{const{classes:e,disabled:n,color:r,edge:o,size:i}=t,a={root:["root",n&&"disabled",r!=="default"&&`color${ce(r)}`,o&&`edge${ce(o)}`,`size${ce(i)}`]};return Ce(a,fFe,e)},vFe=ne(Ny,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${ce(n.color)}`],n.edge&&e[`edge${ce(n.edge)}`],e[`size${ce(n.size)}`]]}})(ze(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:{disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ze(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:xt((t.vars||t).palette[e].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${pFe.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}}))),Ai=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,disableRipple:u=!1,size:c="medium",...h}=n,d={...n,edge:r,color:a,disabled:s,disableFocusRipple:l,disableRipple:u,size:c},f=gFe(d);return C.jsx(vFe,{className:de(f.root,i),centerRipple:!0,focusRipple:!l,disabled:s,disableRipple:u,ref:e,...h,ownerState:d,children:o})});function mFe(t){return Ee("MuiTypography",t)}_e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const yFe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},bFe=zze(),wFe=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=t,s={root:["root",i,t.align!=="inherit"&&`align${ce(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ce(s,mFe,a)},xFe=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${ce(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(ze(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(t.palette).filter(([,n])=>n&&n.main).map(([n])=>({props:{color:n},style:{color:(t.vars||t).palette[n].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${ce(n)}`},style:{color:(t.vars||t).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),P4={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},oc=k.forwardRef(function(t,e){const{color:n,...r}=Re({props:t,name:"MuiTypography"}),o=!yFe[n],i=bFe({...r,...o&&{color:n}}),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:h=!1,variant:d="body1",variantMapping:f=P4,...p}=i,g={...i,align:a,color:n,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:h,variant:d,variantMapping:f},b=l||(h?"p":f[d]||P4[d])||"span",m=wFe(g);return C.jsx(xFe,{as:b,ref:e,className:de(m.root,s),...p,ownerState:g,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...p.style}})});var cr="top",eo="bottom",to="right",dr="left",IE="auto",uf=[cr,eo,to,dr],ic="start",cf="end",kFe="clippingParents",M4="viewport",df="popper",SFe="reference",I4=uf.reduce(function(t,e){return t.concat([e+"-"+ic,e+"-"+cf])},[]),R4=[].concat(uf,[IE]).reduce(function(t,e){return t.concat([e,e+"-"+ic,e+"-"+cf])},[]),_Fe="beforeRead",EFe="read",CFe="afterRead",OFe="beforeMain",TFe="main",PFe="afterMain",MFe="beforeWrite",IFe="write",RFe="afterWrite",DFe=[_Fe,EFe,CFe,OFe,TFe,PFe,MFe,IFe,RFe];function ei(t){return t?(t.nodeName||"").toLowerCase():null}function Mr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Vs(t){var e=Mr(t).Element;return t instanceof e||t instanceof Element}function no(t){var e=Mr(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function RE(t){if(typeof ShadowRoot>"u")return!1;var e=Mr(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function jFe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!no(i)||!ei(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function AFe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!no(o)||!ei(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const NFe={name:"applyStyles",enabled:!0,phase:"write",fn:jFe,effect:AFe,requires:["computeStyles"]};function ti(t){return t.split("-")[0]}var qs=Math.max,zy=Math.min,ac=Math.round;function DE(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function D4(){return!/^((?!chrome|android).)*safari/i.test(DE())}function sc(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&no(t)&&(o=t.offsetWidth>0&&ac(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&ac(r.height)/t.offsetHeight||1);var a=Vs(t)?Mr(t):window,s=a.visualViewport,l=!D4()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,h=r.width/o,d=r.height/i;return{width:h,height:d,top:c,right:u+h,bottom:c+d,left:u,x:u,y:c}}function jE(t){var e=sc(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function j4(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&RE(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ni(t){return Mr(t).getComputedStyle(t)}function zFe(t){return["table","td","th"].indexOf(ei(t))>=0}function za(t){return((Vs(t)?t.ownerDocument:t.document)||window.document).documentElement}function Fy(t){return ei(t)==="html"?t:t.assignedSlot||t.parentNode||(RE(t)?t.host:null)||za(t)}function A4(t){return!no(t)||Ni(t).position==="fixed"?null:t.offsetParent}function FFe(t){var e=/firefox/i.test(DE()),n=/Trident/i.test(DE());if(n&&no(t)){var r=Ni(t);if(r.position==="fixed")return null}var o=Fy(t);for(RE(o)&&(o=o.host);no(o)&&["html","body"].indexOf(ei(o))<0;){var i=Ni(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function hf(t){for(var e=Mr(t),n=A4(t);n&&zFe(n)&&Ni(n).position==="static";)n=A4(n);return n&&(ei(n)==="html"||ei(n)==="body"&&Ni(n).position==="static")?e:n||FFe(t)||e}function AE(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ff(t,e,n){return qs(t,zy(e,n))}function LFe(t,e,n){var r=ff(t,e,n);return r>n?n:r}function N4(){return{top:0,right:0,bottom:0,left:0}}function z4(t){return Object.assign({},N4(),t)}function F4(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var BFe=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,z4(typeof t!="number"?t:F4(t,uf))};function $Fe(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ti(n.placement),l=AE(s),u=[dr,to].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var h=BFe(o.padding,n),d=jE(i),f=l==="y"?cr:dr,p=l==="y"?eo:to,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],b=a[l]-n.rects.reference[l],m=hf(i),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,y=g/2-b/2,x=h[f],S=v-d[c]-h[p],_=v/2-d[c]/2+y,E=ff(x,_,S),O=l;n.modifiersData[r]=(e={},e[O]=E,e.centerOffset=E-_,e)}}function WFe(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||j4(e.elements.popper,o)&&(e.elements.arrow=o))}const HFe={name:"arrow",enabled:!0,phase:"main",fn:$Fe,effect:WFe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lc(t){return t.split("-")[1]}var UFe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VFe(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:ac(n*o)/o||0,y:ac(r*o)/o||0}}function L4(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,h=t.isFixed,d=a.x,f=d===void 0?0:d,p=a.y,g=p===void 0?0:p,b=typeof c=="function"?c({x:f,y:g}):{x:f,y:g};f=b.x,g=b.y;var m=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),y=dr,x=cr,S=window;if(u){var _=hf(n),E="clientHeight",O="clientWidth";if(_===Mr(n)&&(_=za(n),Ni(_).position!=="static"&&s==="absolute"&&(E="scrollHeight",O="scrollWidth")),_=_,o===cr||(o===dr||o===to)&&i===cf){x=eo;var w=h&&_===S&&S.visualViewport?S.visualViewport.height:_[E];g-=w-r.height,g*=l?1:-1}if(o===dr||(o===cr||o===eo)&&i===cf){y=to;var T=h&&_===S&&S.visualViewport?S.visualViewport.width:_[O];f-=T-r.width,f*=l?1:-1}}var I=Object.assign({position:s},u&&UFe),R=c===!0?VFe({x:f,y:g},Mr(n)):{x:f,y:g};if(f=R.x,g=R.y,l){var j;return Object.assign({},I,(j={},j[x]=v?"0":"",j[y]=m?"0":"",j.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",j))}return Object.assign({},I,(e={},e[x]=v?g+"px":"",e[y]=m?f+"px":"",e.transform="",e))}function qFe(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:ti(e.placement),variation:lc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,L4(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,L4(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const KFe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qFe,data:{}};var Ly={passive:!0};function YFe(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Mr(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ly)}),s&&l.addEventListener("resize",n.update,Ly),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ly)}),s&&l.removeEventListener("resize",n.update,Ly)}}const XFe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YFe,data:{}};var GFe={left:"right",right:"left",bottom:"top",top:"bottom"};function By(t){return t.replace(/left|right|bottom|top/g,function(e){return GFe[e]})}var QFe={start:"end",end:"start"};function B4(t){return t.replace(/start|end/g,function(e){return QFe[e]})}function NE(t){var e=Mr(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function zE(t){return sc(za(t)).left+NE(t).scrollLeft}function JFe(t,e){var n=Mr(t),r=za(t),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=D4();(u||!u&&e==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+zE(t),y:l}}function ZFe(t){var e,n=za(t),r=NE(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=qs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=qs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+zE(t),l=-r.scrollTop;return Ni(o||n).direction==="rtl"&&(s+=qs(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function FE(t){var e=Ni(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function $4(t){return["html","body","#document"].indexOf(ei(t))>=0?t.ownerDocument.body:no(t)&&FE(t)?t:$4(Fy(t))}function pf(t,e){var n;e===void 0&&(e=[]);var r=$4(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Mr(r),a=o?[i].concat(i.visualViewport||[],FE(r)?r:[]):r,s=e.concat(a);return o?s:s.concat(pf(Fy(a)))}function LE(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function eLe(t,e){var n=sc(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function W4(t,e,n){return e===M4?LE(JFe(t,n)):Vs(e)?eLe(e,n):LE(ZFe(za(t)))}function tLe(t){var e=pf(Fy(t)),n=["absolute","fixed"].indexOf(Ni(t).position)>=0,r=n&&no(t)?hf(t):t;return Vs(r)?e.filter(function(o){return Vs(o)&&j4(o,r)&&ei(o)!=="body"}):[]}function nLe(t,e,n,r){var o=e==="clippingParents"?tLe(t):[].concat(e),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=W4(t,u,r);return l.top=qs(c.top,l.top),l.right=zy(c.right,l.right),l.bottom=zy(c.bottom,l.bottom),l.left=qs(c.left,l.left),l},W4(t,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function H4(t){var e=t.reference,n=t.element,r=t.placement,o=r?ti(r):null,i=r?lc(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(o){case cr:l={x:a,y:e.y-n.height};break;case eo:l={x:a,y:e.y+e.height};break;case to:l={x:e.x+e.width,y:s};break;case dr:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var u=o?AE(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case ic:l[u]=l[u]-(e[c]/2-n[c]/2);break;case cf:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function gf(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,a=i===void 0?t.strategy:i,s=n.boundary,l=s===void 0?kFe:s,u=n.rootBoundary,c=u===void 0?M4:u,h=n.elementContext,d=h===void 0?df:h,f=n.altBoundary,p=f===void 0?!1:f,g=n.padding,b=g===void 0?0:g,m=z4(typeof b!="number"?b:F4(b,uf)),v=d===df?SFe:df,y=t.rects.popper,x=t.elements[p?v:d],S=nLe(Vs(x)?x:x.contextElement||za(t.elements.popper),l,c,a),_=sc(t.elements.reference),E=H4({reference:_,element:y,strategy:"absolute",placement:o}),O=LE(Object.assign({},y,E)),w=d===df?O:_,T={top:S.top-w.top+m.top,bottom:w.bottom-S.bottom+m.bottom,left:S.left-w.left+m.left,right:w.right-S.right+m.right},I=t.modifiersData.offset;if(d===df&&I){var R=I[o];Object.keys(T).forEach(function(j){var D=[to,eo].indexOf(j)>=0?1:-1,P=[cr,eo].indexOf(j)>=0?"y":"x";T[j]+=R[P]*D})}return T}function rLe(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?R4:l,c=lc(r),h=c?s?I4:I4.filter(function(p){return lc(p)===c}):uf,d=h.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=h);var f=d.reduce(function(p,g){return p[g]=gf(t,{placement:g,boundary:o,rootBoundary:i,padding:a})[ti(g)],p},{});return Object.keys(f).sort(function(p,g){return f[p]-f[g]})}function oLe(t){if(ti(t)===IE)return[];var e=By(t);return[B4(t),e,B4(e)]}function iLe(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,h=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=f===void 0?!0:f,g=n.allowedAutoPlacements,b=e.options.placement,m=ti(b),v=m===b,y=l||(v||!p?[By(b)]:oLe(b)),x=[b].concat(y).reduce(function(se,ve){return se.concat(ti(ve)===IE?rLe(e,{placement:ve,boundary:c,rootBoundary:h,padding:u,flipVariations:p,allowedAutoPlacements:g}):ve)},[]),S=e.rects.reference,_=e.rects.popper,E=new Map,O=!0,w=x[0],T=0;T=0,P=D?"width":"height",M=gf(e,{placement:I,boundary:c,rootBoundary:h,altBoundary:d,padding:u}),N=D?j?to:dr:j?eo:cr;S[P]>_[P]&&(N=By(N));var A=By(N),$=[];if(i&&$.push(M[R]<=0),s&&$.push(M[N]<=0,M[A]<=0),$.every(function(se){return se})){w=I,O=!1;break}E.set(I,$)}if(O)for(var W=p?3:1,J=function(se){var ve=x.find(function(Q){var xe=E.get(Q);if(xe)return xe.slice(0,se).every(function(ke){return ke})});if(ve)return w=ve,"break"},X=W;X>0;X--){var te=J(X);if(te==="break")break}e.placement!==w&&(e.modifiersData[r]._skip=!0,e.placement=w,e.reset=!0)}}const aLe={name:"flip",enabled:!0,phase:"main",fn:iLe,requiresIfExists:["offset"],data:{_skip:!1}};function U4(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function V4(t){return[cr,to,eo,dr].some(function(e){return t[e]>=0})}function sLe(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=gf(e,{elementContext:"reference"}),s=gf(e,{altBoundary:!0}),l=U4(a,r),u=U4(s,o,i),c=V4(l),h=V4(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}const lLe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sLe};function uLe(t,e,n){var r=ti(t),o=[dr,cr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[dr,to].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function cLe(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,a=R4.reduce(function(c,h){return c[h]=uLe(h,e.rects,i),c},{}),s=a[e.placement],l=s.x,u=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}const dLe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cLe};function hLe(t){var e=t.state,n=t.name;e.modifiersData[n]=H4({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const fLe={name:"popperOffsets",enabled:!0,phase:"read",fn:hLe,data:{}};function pLe(t){return t==="x"?"y":"x"}function gLe(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,h=n.padding,d=n.tether,f=d===void 0?!0:d,p=n.tetherOffset,g=p===void 0?0:p,b=gf(e,{boundary:l,rootBoundary:u,padding:h,altBoundary:c}),m=ti(e.placement),v=lc(e.placement),y=!v,x=AE(m),S=pLe(x),_=e.modifiersData.popperOffsets,E=e.rects.reference,O=e.rects.popper,w=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,T=typeof w=="number"?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,R={x:0,y:0};if(_){if(i){var j,D=x==="y"?cr:dr,P=x==="y"?eo:to,M=x==="y"?"height":"width",N=_[x],A=N+b[D],$=N-b[P],W=f?-O[M]/2:0,J=v===ic?E[M]:O[M],X=v===ic?-O[M]:-E[M],te=e.elements.arrow,se=f&&te?jE(te):{width:0,height:0},ve=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:N4(),Q=ve[D],xe=ve[P],ke=ff(0,E[M],se[M]),z=y?E[M]/2-W-ke-Q-T.mainAxis:J-ke-Q-T.mainAxis,L=y?-E[M]/2+W+ke+xe+T.mainAxis:X+ke+xe+T.mainAxis,B=e.elements.arrow&&hf(e.elements.arrow),re=B?x==="y"?B.clientTop||0:B.clientLeft||0:0,V=(j=I==null?void 0:I[x])!=null?j:0,ie=N+z-V-re,Te=N+L-V,Ne=ff(f?zy(A,ie):A,N,f?qs($,Te):$);_[x]=Ne,R[x]=Ne-N}if(s){var Oe,Le=x==="x"?cr:dr,kt=x==="x"?eo:to,Se=_[S],Xt=S==="y"?"height":"width",pe=Se+b[Le],ht=Se-b[kt],Rr=[cr,dr].indexOf(m)!==-1,Rn=(Oe=I==null?void 0:I[S])!=null?Oe:0,Dn=Rr?pe:Se-E[Xt]-O[Xt]-Rn+T.altAxis,ro=Rr?Se+E[Xt]+O[Xt]-Rn-T.altAxis:ht,Gt=f&&Rr?LFe(Dn,Se,ro):ff(f?Dn:pe,Se,f?ro:ht);_[S]=Gt,R[S]=Gt-Se}e.modifiersData[r]=R}}const vLe={name:"preventOverflow",enabled:!0,phase:"main",fn:gLe,requiresIfExists:["offset"]};function mLe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function yLe(t){return t===Mr(t)||!no(t)?NE(t):mLe(t)}function bLe(t){var e=t.getBoundingClientRect(),n=ac(e.width)/t.offsetWidth||1,r=ac(e.height)/t.offsetHeight||1;return n!==1||r!==1}function wLe(t,e,n){n===void 0&&(n=!1);var r=no(e),o=no(e)&&bLe(e),i=za(e),a=sc(t,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ei(e)!=="body"||FE(i))&&(s=yLe(e)),no(e)?(l=sc(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=zE(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function xLe(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function kLe(t){var e=xLe(t);return DFe.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function SLe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function _Le(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var q4={placement:"bottom",modifiers:[],strategy:"absolute"};function K4(){for(var t=arguments.length,e=new Array(t),n=0;n{o||a(TLe(r)||document.body)},[r,o]),ko(()=>{if(i&&!o)return Oy(e,i),()=>{Oy(e,null)}},[e,i,o]),o){if(k.isValidElement(n)){const l={ref:s};return k.cloneElement(n,l)}return C.jsx(k.Fragment,{children:n})}return C.jsx(k.Fragment,{children:i&&N1.createPortal(n,i)})});function PLe(t){return Ee("MuiPopper",t)}_e("MuiPopper",["root"]);function MLe(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function BE(t){return typeof t=="function"?t():t}function ILe(t){return t.nodeType!==void 0}const RLe=t=>{const{classes:e}=t;return Ce({root:["root"]},PLe,e)},DLe={},jLe=k.forwardRef(function(t,e){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:a,open:s,placement:l,popperOptions:u,popperRef:c,slotProps:h={},slots:d={},TransitionProps:f,ownerState:p,...g}=t,b=k.useRef(null),m=Lt(b,e),v=k.useRef(null),y=Lt(v,c),x=k.useRef(y);ko(()=>{x.current=y},[y]),k.useImperativeHandle(c,()=>v.current,[]);const S=MLe(l,o),[_,E]=k.useState(S),[O,w]=k.useState(BE(n));k.useEffect(()=>{v.current&&v.current.forceUpdate()}),k.useEffect(()=>{n&&w(BE(n))},[n]),ko(()=>{if(!O||!s)return;const D=N=>{E(N.placement)};let P=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:N})=>{D(N)}}];a!=null&&(P=P.concat(a)),u&&u.modifiers!=null&&(P=P.concat(u.modifiers));const M=OLe(O,b.current,{placement:S,...u,modifiers:P});return x.current(M),()=>{M.destroy(),x.current(null)}},[O,i,a,s,u,S]);const T={placement:_};f!==null&&(T.TransitionProps=f);const I=RLe(t),R=d.root??"div",j=bE({elementType:R,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:I.root});return C.jsx(R,{...j,children:typeof r=="function"?r(T):r})}),ALe=k.forwardRef(function(t,e){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:u,placement:c="bottom",popperOptions:h=DLe,popperRef:d,style:f,transition:p=!1,slotProps:g={},slots:b={},...m}=t,[v,y]=k.useState(!0),x=()=>{y(!1)},S=()=>{y(!0)};if(!s&&!u&&(!p||v))return null;let _;if(o)_=o;else if(n){const w=BE(n);_=w&&ILe(w)?Pn(w).body:Pn(null).body}const E=!u&&s&&(!p||v)?"none":void 0,O=p?{in:u,onEnter:x,onExited:S}:void 0;return C.jsx(Y4,{disablePortal:a,container:_,children:C.jsx(jLe,{anchorEl:n,direction:i,disablePortal:a,modifiers:l,ref:e,open:p?!v:u,placement:c,popperOptions:h,popperRef:d,slotProps:g,slots:b,...m,style:{position:"fixed",top:0,left:0,display:E,...f},TransitionProps:O,children:r})})}),NLe=ne(ALe,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),X4=k.forwardRef(function(t,e){const n=wE(),r=Re({props:t,name:"MuiPopper"}),{anchorEl:o,component:i,components:a,componentsProps:s,container:l,disablePortal:u,keepMounted:c,modifiers:h,open:d,placement:f,popperOptions:p,popperRef:g,transition:b,slots:m,slotProps:v,...y}=r,x=(m==null?void 0:m.root)??(a==null?void 0:a.Root),S={anchorEl:o,container:l,disablePortal:u,keepMounted:c,modifiers:h,open:d,placement:f,popperOptions:p,popperRef:g,transition:b,...y};return C.jsx(NLe,{as:i,direction:n?"rtl":"ltr",slots:{root:x},slotProps:v??s,...S,ref:e})});function $y(t){return parseInt(t,10)||0}const zLe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function FLe(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const LLe=k.forwardRef(function(t,e){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a,...s}=t,{current:l}=k.useRef(a!=null),u=k.useRef(null),c=Lt(e,u),h=k.useRef(null),d=k.useRef(null),f=k.useCallback(()=>{const b=u.current,m=Na(b).getComputedStyle(b);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const v=d.current;v.style.width=m.width,v.value=b.value||t.placeholder||"x",v.value.slice(-1)===` +`&&(v.value+=" ");const y=m.boxSizing,x=$y(m.paddingBottom)+$y(m.paddingTop),S=$y(m.borderBottomWidth)+$y(m.borderTopWidth),_=v.scrollHeight;v.value="x";const E=v.scrollHeight;let O=_;o&&(O=Math.max(Number(o)*E,O)),r&&(O=Math.min(Number(r)*E,O)),O=Math.max(O,E);const w=O+(y==="border-box"?x+S:0),T=Math.abs(O-_)<=1;return{outerHeightStyle:w,overflowing:T}},[r,o,t.placeholder]),p=k.useCallback(()=>{const b=f();if(FLe(b))return;const m=b.outerHeightStyle,v=u.current;h.current!==m&&(h.current=m,v.style.height=`${m}px`),v.style.overflow=b.overflowing?"hidden":""},[f]);ko(()=>{const b=()=>{p()};let m;const v=yE(b),y=u.current,x=Na(y);x.addEventListener("resize",v);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(b),S.observe(y)),()=>{v.clear(),cancelAnimationFrame(m),x.removeEventListener("resize",v),S&&S.disconnect()}},[f,p]),ko(()=>{p()});const g=b=>{l||p(),n&&n(b)};return C.jsxs(k.Fragment,{children:[C.jsx("textarea",{value:a,onChange:g,ref:c,rows:o,style:i,...s}),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:{...zLe.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function $E(t){return typeof t=="string"}function Ks({props:t,states:e,muiFormControl:n}){return e.reduce((r,o)=>(r[o]=t[o],n&&typeof t[o]>"u"&&(r[o]=n[o]),r),{})}const WE=k.createContext(void 0);function Fa(){return k.useContext(WE)}function G4(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Wy(t,e=!1){return t&&(G4(t.value)&&t.value!==""||e&&G4(t.defaultValue)&&t.defaultValue!=="")}function BLe(t){return t.startAdornment}function $Le(t){return Ee("MuiInputBase",t)}const uc=_e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Q4;const Hy=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${ce(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},Uy=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},WLe=t=>{const{classes:e,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:h,size:d,startAdornment:f,type:p}=t,g={root:["root",`color${ce(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",d&&d!=="medium"&&`size${ce(d)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return Ce(g,$Le,e)},Vy=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Hy})(ze(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${uc.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:n})=>e.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),qy=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Uy})(ze(({theme:t})=>{const e=t.palette.mode==="light",n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},r={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${uc.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${uc.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),J4=Nze({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),HLe=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:a,color:s,components:l={},componentsProps:u={},defaultValue:c,disabled:h,disableInjectingGlobalStyles:d,endAdornment:f,error:p,fullWidth:g=!1,id:b,inputComponent:m="input",inputProps:v={},inputRef:y,margin:x,maxRows:S,minRows:_,multiline:E=!1,name:O,onBlur:w,onChange:T,onClick:I,onFocus:R,onKeyDown:j,onKeyUp:D,placeholder:P,readOnly:M,renderSuffix:N,rows:A,size:$,slotProps:W={},slots:J={},startAdornment:X,type:te="text",value:se,...ve}=n,Q=v.value!=null?v.value:se,{current:xe}=k.useRef(Q!=null),ke=k.useRef(),z=k.useCallback(De=>{},[]),L=Lt(ke,y,v.ref,z),[B,re]=k.useState(!1),V=Fa(),ie=Ks({props:n,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=V?V.focused:B,k.useEffect(()=>{!V&&h&&B&&(re(!1),w&&w())},[V,h,B,w]);const Te=V&&V.onFilled,Ne=V&&V.onEmpty,Oe=k.useCallback(De=>{Wy(De)?Te&&Te():Ne&&Ne()},[Te,Ne]);ko(()=>{xe&&Oe({value:Q})},[Q,Oe,xe]);const Le=De=>{R&&R(De),v.onFocus&&v.onFocus(De),V&&V.onFocus?V.onFocus(De):re(!0)},kt=De=>{w&&w(De),v.onBlur&&v.onBlur(De),V&&V.onBlur?V.onBlur(De):re(!1)},Se=(De,...hr)=>{if(!xe){const Eo=De.target||ke.current;if(Eo==null)throw new Error(Ri(1));Oe({value:Eo.value})}v.onChange&&v.onChange(De,...hr),T&&T(De,...hr)};k.useEffect(()=>{Oe(ke.current)},[]);const Xt=De=>{ke.current&&De.currentTarget===De.target&&ke.current.focus(),I&&I(De)};let pe=m,ht=v;E&&pe==="input"&&(A?ht={type:void 0,minRows:A,maxRows:A,...ht}:ht={type:void 0,maxRows:S,minRows:_,...ht},pe=LLe);const Rr=De=>{Oe(De.animationName==="mui-auto-fill-cancel"?ke.current:{value:"x"})};k.useEffect(()=>{V&&V.setAdornedStart(!!X)},[V,X]);const Rn={...n,color:ie.color||"primary",disabled:ie.disabled,endAdornment:f,error:ie.error,focused:ie.focused,formControl:V,fullWidth:g,hiddenLabel:ie.hiddenLabel,multiline:E,size:ie.size,startAdornment:X,type:te},Dn=WLe(Rn),ro=J.root||l.Root||Vy,Gt=W.root||u.root||{},oo=J.input||l.Input||qy;return ht={...ht,...W.input??u.input},C.jsxs(k.Fragment,{children:[!d&&typeof J4=="function"&&(Q4||(Q4=C.jsx(J4,{}))),C.jsxs(ro,{...Gt,ref:e,onClick:Xt,...ve,...!$E(ro)&&{ownerState:{...Rn,...Gt.ownerState}},className:de(Dn.root,Gt.className,a,M&&"MuiInputBase-readOnly"),children:[X,C.jsx(WE.Provider,{value:null,children:C.jsx(oo,{"aria-invalid":ie.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:c,disabled:ie.disabled,id:b,onAnimationStart:Rr,name:O,placeholder:P,readOnly:M,required:ie.required,rows:A,value:Q,onKeyDown:j,onKeyUp:D,type:te,...ht,...!$E(oo)&&{as:pe,ownerState:{...Rn,...ht.ownerState}},ref:L,className:de(Dn.input,ht.className,M&&"MuiInputBase-readOnly"),onBlur:kt,onChange:Se,onFocus:Le})}),f,N?N({...ie,startAdornment:X}):null]})]})}),HE=HLe;function ULe(t){return Ee("MuiInput",t)}const vf={...uc,..._e("MuiInput",["root","underline","input"])};function VLe(t){return Ee("MuiOutlinedInput",t)}const ni={...uc,..._e("MuiOutlinedInput",["root","notchedOutline","input"])};function qLe(t){return Ee("MuiFilledInput",t)}const Ys={...uc,..._e("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},KLe=$s(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),YLe={entering:{opacity:1},entered:{opacity:1}},Z4=k.forwardRef(function(t,e){const n=tc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:h,onExit:d,onExited:f,onExiting:p,style:g,timeout:b=r,TransitionComponent:m=Zo,...v}=t,y=k.useRef(null),x=Lt(y,ec(a),e),S=j=>D=>{if(j){const P=y.current;D===void 0?j(P):j(P,D)}},_=S(h),E=S((j,D)=>{T4(j);const P=Dy({style:g,timeout:b,easing:s},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",P),j.style.transition=n.transitions.create("opacity",P),u&&u(j,D)}),O=S(c),w=S(p),T=S(j=>{const D=Dy({style:g,timeout:b,easing:s},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",D),j.style.transition=n.transitions.create("opacity",D),d&&d(j)}),I=S(f),R=j=>{o&&o(y.current,j)};return C.jsx(m,{appear:i,in:l,nodeRef:y,onEnter:E,onEntered:O,onEntering:_,onExit:T,onExited:I,onExiting:w,addEndListener:R,timeout:b,...v,children:(j,D)=>k.cloneElement(a,{style:{opacity:0,visibility:j==="exited"&&!l?"hidden":void 0,...YLe[j],...g,...a.props.style},ref:x,...D})})});function XLe(t){return Ee("MuiBackdrop",t)}_e("MuiBackdrop",["root","invisible"]);const GLe=t=>{const{classes:e,invisible:n}=t;return Ce({root:["root",n&&"invisible"]},XLe,e)},QLe=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),e6=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:s,components:l={},componentsProps:u={},slotProps:c={},slots:h={},TransitionComponent:d,transitionDuration:f,...p}=n,g={...n,component:i,invisible:a},b=GLe(g),m={transition:d,root:l.Root,...h},v={...u,...c},y={slots:m,slotProps:v},[x,S]=Jr("root",{elementType:QLe,externalForwardedProps:y,className:de(b.root,o),ownerState:g}),[_,E]=Jr("transition",{elementType:Z4,externalForwardedProps:y,ownerState:g});return delete E.ownerState,C.jsx(_,{in:s,timeout:f,...p,...E,children:C.jsx(x,{"aria-hidden":!0,...S,classes:b,ref:e,children:r})})}),JLe=_e("MuiBox",["root"]),ZLe=x4(),eBe=CNe({themeId:qh,defaultTheme:ZLe,defaultClassName:JLe.root,generateClassName:cE.generate});function tBe(t){return Ee("MuiButton",t)}const cc=_e("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),nBe=k.createContext({}),rBe=k.createContext(void 0),oBe=t=>{const{color:e,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=t,s={root:["root",i,`${i}${ce(e)}`,`size${ce(o)}`,`${i}Size${ce(o)}`,`color${ce(e)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ce(o)}`],endIcon:["icon","endIcon",`iconSize${ce(o)}`]},l=Ce(s,tBe,a);return{...a,...l}},t6=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],iBe=ne(Ny,{shouldForwardProp:t=>Un(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${ce(n.color)}`],e[`size${ce(n.size)}`],e[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})(ze(({theme:t})=>{var r,o;const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${cc.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${cc.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${cc.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${cc.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(([,i])=>i&&i.main&&i.dark&&i.contrastText).map(([i])=>({props:{color:i},style:{"--variant-textColor":(t.vars||t).palette[i].main,"--variant-outlinedColor":(t.vars||t).palette[i].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[i].mainChannel} / 0.5)`:xt(t.palette[i].main,.5),"--variant-containedColor":(t.vars||t).palette[i].contrastText,"--variant-containedBg":(t.vars||t).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[i].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[i].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette[i].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[i].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[i].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette[i].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{"--variant-containedColor":t.vars?t.vars.palette.text.primary:(o=(r=t.palette).getContrastText)==null?void 0:o.call(r,e),"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${cc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cc.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),aBe=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e[`iconSize${ce(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...t6]}),sBe=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e[`iconSize${ce(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...t6]}),hn=k.forwardRef(function(t,e){const n=k.useContext(nBe),r=k.useContext(rBe),o=nf(n,t),i=Re({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:h=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:g=!1,size:b="medium",startIcon:m,type:v,variant:y="text",...x}=i,S={...i,color:s,component:l,disabled:c,disableElevation:h,disableFocusRipple:d,fullWidth:g,size:b,type:v,variant:y},_=oBe(S),E=m&&C.jsx(aBe,{className:_.startIcon,ownerState:S,children:m}),O=f&&C.jsx(sBe,{className:_.endIcon,ownerState:S,children:f}),w=r||"";return C.jsxs(iBe,{ownerState:S,className:de(n.className,_.root,u,w),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:de(_.focusVisible,p),ref:e,type:v,...x,classes:_,children:[E,a,O]})});function lBe(t){return Ee("PrivateSwitchBase",t)}_e("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const uBe=t=>{const{classes:e,checked:n,disabled:r,edge:o}=t,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ce(o)}`],input:["input"]};return Ce(i,lBe,e)},cBe=ne(Ny)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),dBe=ne("input",{shouldForwardProp:Un})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),hBe=k.forwardRef(function(t,e){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:h,inputProps:d,inputRef:f,name:p,onBlur:g,onChange:b,onFocus:m,readOnly:v,required:y=!1,tabIndex:x,type:S,value:_,...E}=t,[O,w]=af({controlled:r,default:!!a,name:"SwitchBase",state:"checked"}),T=Fa(),I=A=>{m&&m(A),T&&T.onFocus&&T.onFocus(A)},R=A=>{g&&g(A),T&&T.onBlur&&T.onBlur(A)},j=A=>{if(A.nativeEvent.defaultPrevented)return;const $=A.target.checked;w($),b&&b(A,$)};let D=s;T&&typeof D>"u"&&(D=T.disabled);const P=S==="checkbox"||S==="radio",M={...t,checked:O,disabled:D,disableFocusRipple:l,edge:u},N=uBe(M);return C.jsxs(cBe,{component:"span",className:de(N.root,i),centerRipple:!0,focusRipple:!l,disabled:D,tabIndex:null,role:void 0,onFocus:I,onBlur:R,ownerState:M,ref:e,...E,children:[C.jsx(dBe,{autoFocus:n,checked:r,defaultChecked:a,className:N.input,disabled:D,id:P?h:void 0,name:p,onChange:j,readOnly:v,ref:f,required:y,ownerState:M,tabIndex:x,type:S,...S==="checkbox"&&_===void 0?{}:{value:_},...d}),O?o:c]})}),fBe=$s(C.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),pBe=$s(C.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),gBe=$s(C.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function vBe(t){return Ee("MuiCheckbox",t)}const UE=_e("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mBe=t=>{const{classes:e,indeterminate:n,color:r,size:o}=t,i={root:["root",n&&"indeterminate",`color${ce(r)}`,`size${ce(o)}`]},a=Ce(i,vBe,e);return{...e,...a}},yBe=ne(hBe,{shouldForwardProp:t=>Un(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.indeterminate&&e.indeterminate,e[`size${ce(n.size)}`],n.color!=="default"&&e[`color${ce(n.color)}`]]}})(ze(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:xt(t.palette[e].main,t.palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{[`&.${UE.checked}, &.${UE.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${UE.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),bBe=C.jsx(pBe,{}),wBe=C.jsx(fBe,{}),xBe=C.jsx(gBe,{}),Ky=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiCheckbox"}),{checkedIcon:r=bBe,color:o="primary",icon:i=wBe,indeterminate:a=!1,indeterminateIcon:s=xBe,inputProps:l,size:u="medium",disableRipple:c=!1,className:h,...d}=n,f=a?s:i,p=a?s:r,g={...n,disableRipple:c,color:o,indeterminate:a,size:u},b=mBe(g);return C.jsx(yBe,{type:"checkbox",inputProps:{"data-indeterminate":a,...l},icon:k.cloneElement(f,{fontSize:f.props.fontSize??u}),checkedIcon:k.cloneElement(p,{fontSize:p.props.fontSize??u}),ownerState:g,ref:e,className:de(b.root,h),...d,classes:b})});function kBe(t){const e=Pn(t);return e.body===t?Na(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function mf(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function n6(t){return parseInt(Na(t).getComputedStyle(t).paddingRight,10)||0}function SBe(t){const e=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName)!==-1,n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return e||n}function r6(t,e,n,r,o){const i=[e,n,...r];[].forEach.call(t.children,a=>{const s=i.indexOf(a)===-1,l=!SBe(a);s&&l&&mf(a,o)})}function VE(t,e){let n=-1;return t.some((r,o)=>e(r)?(n=o,!0):!1),n}function _Be(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(kBe(r)){const i=a4(Pn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${n6(r)+i}px`;const a=Pn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${n6(s)+i}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Pn(r).body;else{const i=r.parentElement,a=Na(r);o=(i==null?void 0:i.nodeName)==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:i,property:a})=>{o?i.style.setProperty(a,o):i.style.removeProperty(a)})}}function EBe(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class CBe{constructor(){this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&mf(e.modalRef,!1);const o=EBe(n);r6(n,e.mount,e.modalRef,o,!0);const i=VE(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:o}),r)}mount(e,n){const r=VE(this.containers,i=>i.modals.indexOf(e)!==-1),o=this.containers[r];o.restore||(o.restore=_Be(o,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const o=VE(this.containers,a=>a.modals.indexOf(e)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&mf(e.modalRef,n),r6(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&mf(a.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const OBe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function TBe(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function PBe(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function MBe(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||PBe(t))}function IBe(t){const e=[],n=[];return Array.from(t.querySelectorAll(OBe)).forEach((r,o)=>{const i=TBe(r);i===-1||!MBe(r)||(i===0?e.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(e)}function RBe(){return!0}function DBe(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=IBe,isEnabled:a=RBe,open:s}=t,l=k.useRef(!1),u=k.useRef(null),c=k.useRef(null),h=k.useRef(null),d=k.useRef(null),f=k.useRef(!1),p=k.useRef(null),g=Lt(ec(e),p),b=k.useRef(null);k.useEffect(()=>{!s||!p.current||(f.current=!n)},[n,s]),k.useEffect(()=>{if(!s||!p.current)return;const y=Pn(p.current);return p.current.contains(y.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),f.current&&p.current.focus()),()=>{o||(h.current&&h.current.focus&&(l.current=!0,h.current.focus()),h.current=null)}},[s]),k.useEffect(()=>{if(!s||!p.current)return;const y=Pn(p.current),x=E=>{b.current=E,!(r||!a()||E.key!=="Tab")&&y.activeElement===p.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())},S=()=>{var w,T;const E=p.current;if(E===null)return;if(!y.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(y.activeElement)||r&&y.activeElement!==u.current&&y.activeElement!==c.current)return;if(y.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!f.current)return;let O=[];if((y.activeElement===u.current||y.activeElement===c.current)&&(O=i(p.current)),O.length>0){const I=!!((w=b.current)!=null&&w.shiftKey&&((T=b.current)==null?void 0:T.key)==="Tab"),R=O[0],j=O[O.length-1];typeof R!="string"&&typeof j!="string"&&(I?j.focus():R.focus())}else E.focus()};y.addEventListener("focusin",S),y.addEventListener("keydown",x,!0);const _=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(_),y.removeEventListener("focusin",S),y.removeEventListener("keydown",x,!0)}},[n,r,o,a,s,i]);const m=y=>{h.current===null&&(h.current=y.relatedTarget),f.current=!0,d.current=y.target;const x=e.props.onFocus;x&&x(y)},v=y=>{h.current===null&&(h.current=y.relatedTarget),f.current=!0};return C.jsxs(k.Fragment,{children:[C.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),k.cloneElement(e,{ref:g,onFocus:m}),C.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}function jBe(t){return typeof t=="function"?t():t}function ABe(t){return t?t.props.hasOwnProperty("in"):!1}const NBe=new CBe;function zBe(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=NBe,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:h}=t,d=k.useRef({}),f=k.useRef(null),p=k.useRef(null),g=Lt(p,h),[b,m]=k.useState(!c),v=ABe(l);let y=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(y=!1);const x=()=>Pn(f.current),S=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),_=()=>{o.mount(S(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},E=Di(()=>{const j=jBe(e)||x().body;o.add(S(),j),p.current&&_()}),O=k.useCallback(()=>o.isTopModal(S()),[o]),w=Di(j=>{f.current=j,j&&(c&&O()?_():p.current&&mf(p.current,y))}),T=k.useCallback(()=>{o.remove(S(),y)},[y,o]);k.useEffect(()=>()=>{T()},[T]),k.useEffect(()=>{c?E():(!v||!i)&&T()},[c,T,v,i,E]);const I=j=>D=>{var P;(P=j.onKeyDown)==null||P.call(j,D),!(D.key!=="Escape"||D.which===229||!O())&&(n||(D.stopPropagation(),u&&u(D,"escapeKeyDown")))},R=j=>D=>{var P;(P=j.onClick)==null||P.call(j,D),D.target===D.currentTarget&&u&&u(D,"backdropClick")};return{getRootProps:(j={})=>{const D=s4(t);delete D.onTransitionEnter,delete D.onTransitionExited;const P={...D,...j};return{role:"presentation",...P,onKeyDown:I(P),ref:g}},getBackdropProps:(j={})=>{const D=j;return{"aria-hidden":!0,...D,onClick:R(D),open:c}},getTransitionProps:()=>{const j=()=>{m(!1),a&&a()},D=()=>{m(!0),s&&s(),i&&T()};return{onEnter:mE(j,l==null?void 0:l.props.onEnter),onExited:mE(D,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:w,isTopModal:O,exited:b,hasTransition:v}}function FBe(t){return Ee("MuiModal",t)}_e("MuiModal",["root","hidden","backdrop"]);const LBe=t=>{const{open:e,exited:n,classes:r}=t;return Ce({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},FBe,r)},BBe=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(ze(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),$Be=ne(e6,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),o6=k.forwardRef(function(t,e){const n=Re({name:"MuiModal",props:t}),{BackdropComponent:r=$Be,BackdropProps:o,classes:i,className:a,closeAfterTransition:s=!1,children:l,container:u,component:c,components:h={},componentsProps:d={},disableAutoFocus:f=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:g=!1,disablePortal:b=!1,disableRestoreFocus:m=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:x=!1,onBackdropClick:S,onClose:_,onTransitionEnter:E,onTransitionExited:O,open:w,slotProps:T={},slots:I={},theme:R,...j}=n,D={...n,closeAfterTransition:s,disableAutoFocus:f,disableEnforceFocus:p,disableEscapeKeyDown:g,disablePortal:b,disableRestoreFocus:m,disableScrollLock:v,hideBackdrop:y,keepMounted:x},{getRootProps:P,getBackdropProps:M,getTransitionProps:N,portalRef:A,isTopModal:$,exited:W,hasTransition:J}=zBe({...D,rootRef:e}),X={...D,exited:W},te=LBe(X),se={};if(l.props.tabIndex===void 0&&(se.tabIndex="-1"),J){const{onEnter:B,onExited:re}=N();se.onEnter=B,se.onExited=re}const ve={slots:{root:h.Root,backdrop:h.Backdrop,...I},slotProps:{...d,...T}},[Q,xe]=Jr("root",{elementType:BBe,externalForwardedProps:ve,getSlotProps:P,additionalProps:{ref:e,as:c},ownerState:X,className:de(a,te==null?void 0:te.root,!X.open&&X.exited&&(te==null?void 0:te.hidden))}),[ke,z]=Jr("backdrop",{elementType:r,externalForwardedProps:ve,additionalProps:o,getSlotProps:B=>M({...B,onClick:re=>{S&&S(re),B!=null&&B.onClick&&B.onClick(re)}}),className:de(o==null?void 0:o.className,te==null?void 0:te.backdrop),ownerState:X}),L=Lt(o==null?void 0:o.ref,z.ref);return!x&&!w&&(!J||W)?null:C.jsx(Y4,{ref:A,container:u,disablePortal:b,children:C.jsxs(Q,{...xe,...j,children:[!y&&r?C.jsx(ke,{...z,ref:L}):null,C.jsx(DBe,{disableEnforceFocus:p,disableAutoFocus:f,disableRestoreFocus:m,isEnabled:$,open:w,children:k.cloneElement(l,se)})]})})});function WBe(t){return Ee("MuiDialog",t)}const qE=_e("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),i6=k.createContext({}),HBe=ne(e6,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),UBe=t=>{const{classes:e,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=t,a={root:["root"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ce(a,WBe,e)},VBe=ne(o6,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),qBe=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${ce(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),KBe=ne(jy,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${ce(n.scroll)}`],e[`paperWidth${ce(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(ze(({theme:t})=>({margin:32,position:"relative","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${qE.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${qE.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${qE.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),dc=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiDialog"}),r=tc(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,BackdropComponent:s,BackdropProps:l,children:u,className:c,disableEscapeKeyDown:h=!1,fullScreen:d=!1,fullWidth:f=!1,maxWidth:p="sm",onBackdropClick:g,onClick:b,onClose:m,open:v,PaperComponent:y=jy,PaperProps:x={},scroll:S="paper",TransitionComponent:_=Z4,transitionDuration:E=o,TransitionProps:O,...w}=n,T={...n,disableEscapeKeyDown:h,fullScreen:d,fullWidth:f,maxWidth:p,scroll:S},I=UBe(T),R=k.useRef(),j=N=>{R.current=N.target===N.currentTarget},D=N=>{b&&b(N),R.current&&(R.current=null,g&&g(N),m&&m(N,"backdropClick"))},P=of(a),M=k.useMemo(()=>({titleId:P}),[P]);return C.jsx(VBe,{className:de(I.root,c),closeAfterTransition:!0,components:{Backdrop:HBe},componentsProps:{backdrop:{transitionDuration:E,as:s,...l}},disableEscapeKeyDown:h,onClose:m,open:v,ref:e,onClick:D,ownerState:T,...w,children:C.jsx(_,{appear:!0,in:v,timeout:E,role:"presentation",...O,children:C.jsx(qBe,{className:de(I.container),onMouseDown:j,ownerState:T,children:C.jsx(KBe,{as:y,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":P,...x,className:de(I.paper,x.className),ownerState:T,children:C.jsx(i6.Provider,{value:M,children:u})})})})})});function YBe(t){return Ee("MuiDialogActions",t)}_e("MuiDialogActions",["root","spacing"]);const XBe=t=>{const{classes:e,disableSpacing:n}=t;return Ce({root:["root",!n&&"spacing"]},YBe,e)},GBe=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),hc=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...i}=n,a={...n,disableSpacing:o},s=XBe(a);return C.jsx(GBe,{className:de(s.root,r),ownerState:a,ref:e,...i})});function QBe(t){return Ee("MuiDialogContent",t)}_e("MuiDialogContent",["root","dividers"]);function JBe(t){return Ee("MuiDialogTitle",t)}const ZBe=_e("MuiDialogTitle",["root"]),e5e=t=>{const{classes:e,dividers:n}=t;return Ce({root:["root",n&&"dividers"]},QBe,e)},t5e=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(ze(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${ZBe.root} + &`]:{paddingTop:0}}}]}))),fc=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...i}=n,a={...n,dividers:o},s=e5e(a);return C.jsx(t5e,{className:de(s.root,r),ownerState:a,ref:e,...i})});function n5e(t){return Ee("MuiDialogContentText",t)}_e("MuiDialogContentText",["root"]);const r5e=t=>{const{classes:e}=t,n=Ce({root:["root"]},n5e,e);return{...e,...n}},o5e=ne(oc,{shouldForwardProp:t=>Un(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),a6=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiDialogContentText"}),{children:r,className:o,...i}=n,a=r5e(i);return C.jsx(o5e,{component:"p",variant:"body1",color:"textSecondary",ref:e,ownerState:i,className:de(a.root,o),...n,classes:a})}),i5e=t=>{const{classes:e}=t;return Ce({root:["root"]},JBe,e)},a5e=ne(oc,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),pc=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiDialogTitle"}),{className:r,id:o,...i}=n,a=n,s=i5e(a),{titleId:l=o}=k.useContext(i6);return C.jsx(a5e,{component:"h2",className:de(s.root,r),ownerState:a,ref:e,variant:"h6",id:o??l,...i})});function s5e(t){return Ee("MuiDivider",t)}const s6=_e("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),l5e=t=>{const{absolute:e,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=t;return Ce({root:["root",e&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},s5e,r)},u5e=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.absolute&&e.absolute,e[n.variant],n.light&&e.light,n.orientation==="vertical"&&e.vertical,n.flexItem&&e.flexItem,n.children&&e.withChildren,n.children&&n.orientation==="vertical"&&e.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&e.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&e.textAlignLeft]}})(ze(({theme:t})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:xt(t.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&e.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>e.orientation==="vertical"&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>e.textAlign==="right"&&e.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>e.textAlign==="left"&&e.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),c5e=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.wrapper,n.orientation==="vertical"&&e.wrapperVertical]}})(ze(({theme:t})=>({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`,variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}}]}))),KE=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,orientation:a="horizontal",component:s=o||a==="vertical"?"div":"hr",flexItem:l=!1,light:u=!1,role:c=s!=="hr"?"separator":void 0,textAlign:h="center",variant:d="fullWidth",...f}=n,p={...n,absolute:r,component:s,flexItem:l,light:u,orientation:a,role:c,textAlign:h,variant:d},g=l5e(p);return C.jsx(u5e,{as:s,className:de(g.root,i),role:c,ref:e,ownerState:p,"aria-orientation":c==="separator"&&(s!=="hr"||a==="vertical")?a:void 0,...f,children:o?C.jsx(c5e,{className:g.wrapper,ownerState:p,children:o}):null})});KE&&(KE.muiSkipListHighlight=!0);const d5e=t=>{const{classes:e,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=t,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${ce(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},u=Ce(l,qLe,e);return{...e,...u}},h5e=ne(Vy,{shouldForwardProp:t=>Un(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Hy(t,e),!n.disableUnderline&&e.underline]}})(ze(({theme:t})=>{const e=t.palette.mode==="light",n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${Ys.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${Ys.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ys.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ys.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ys.disabled}, .${Ys.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Ys.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(([,a])=>a&&a.main).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(t.vars||t).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),f5e=ne(qy,{name:"MuiFilledInput",slot:"Input",overridesResolver:Uy})(ze(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Yy=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,hiddenLabel:s,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:h={},type:d="text",...f}=n,p={...n,disableUnderline:r,fullWidth:a,inputComponent:l,multiline:u,type:d},g=d5e(n),b={root:{ownerState:p},input:{ownerState:p}},m=c??i?Tn(b,c??i):b,v=h.root??o.Root??h5e,y=h.input??o.Input??f5e;return C.jsx(HE,{slots:{root:v,input:y},componentsProps:m,fullWidth:a,inputComponent:l,multiline:u,ref:e,type:d,...f,classes:g})});Yy&&(Yy.muiName="Input");function p5e(t){return Ee("MuiFormControl",t)}_e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const g5e=t=>{const{classes:e,margin:n,fullWidth:r}=t,o={root:["root",n!=="none"&&`margin${ce(n)}`,r&&"fullWidth"]};return Ce(o,p5e,e)},v5e=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},e)=>({...e.root,...e[`margin${ce(t.margin)}`],...t.fullWidth&&e.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),yf=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiFormControl"}),{children:r,className:o,color:i="primary",component:a="div",disabled:s=!1,error:l=!1,focused:u,fullWidth:c=!1,hiddenLabel:h=!1,margin:d="none",required:f=!1,size:p="medium",variant:g="outlined",...b}=n,m={...n,color:i,component:a,disabled:s,error:l,fullWidth:c,hiddenLabel:h,margin:d,required:f,size:p,variant:g},v=g5e(m),[y,x]=k.useState(()=>{let R=!1;return r&&k.Children.forEach(r,j=>{if(!Cy(j,["Input","Select"]))return;const D=Cy(j,["Select"])?j.props.input:j;D&&BLe(D.props)&&(R=!0)}),R}),[S,_]=k.useState(()=>{let R=!1;return r&&k.Children.forEach(r,j=>{Cy(j,["Input","Select"])&&(Wy(j.props,!0)||Wy(j.props.inputProps,!0))&&(R=!0)}),R}),[E,O]=k.useState(!1);s&&E&&O(!1);const w=u!==void 0&&!s?u:E;let T;const I=k.useMemo(()=>({adornedStart:y,setAdornedStart:x,color:i,disabled:s,error:l,filled:S,focused:w,fullWidth:c,hiddenLabel:h,size:p,onBlur:()=>{O(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{O(!0)},registerEffect:T,required:f,variant:g}),[y,i,s,l,S,w,c,h,T,f,p,g]);return C.jsx(WE.Provider,{value:I,children:C.jsx(v5e,{as:a,ownerState:m,className:de(v.root,o),ref:e,...b,children:r})})});function m5e(t){return Ee("MuiFormControlLabel",t)}const bf=_e("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),y5e=t=>{const{classes:e,disabled:n,labelPlacement:r,error:o,required:i}=t,a={root:["root",n&&"disabled",`labelPlacement${ce(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ce(a,m5e,e)},b5e=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${bf.label}`]:e.label},e.root,e[`labelPlacement${ce(n.labelPlacement)}`]]}})(ze(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${bf.disabled}`]:{cursor:"default"},[`& .${bf.label}`]:{[`&.${bf.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),w5e=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(ze(({theme:t})=>({[`&.${bf.error}`]:{color:(t.vars||t).palette.error.main}}))),Xy=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:i={},control:a,disabled:s,disableTypography:l,inputRef:u,label:c,labelPlacement:h="end",name:d,onChange:f,required:p,slots:g={},slotProps:b={},value:m,...v}=n,y=Fa(),x=s??a.props.disabled??(y==null?void 0:y.disabled),S=p??a.props.required,_={disabled:x,required:S};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof a.props[D]>"u"&&typeof n[D]<"u"&&(_[D]=n[D])});const E=Ks({props:n,muiFormControl:y,states:["error"]}),O={...n,disabled:x,labelPlacement:h,required:S,error:E.error},w=y5e(O),T={slots:g,slotProps:{...i,...b}},[I,R]=Jr("typography",{elementType:oc,externalForwardedProps:T,ownerState:O});let j=c;return j!=null&&j.type!==oc&&!l&&(j=C.jsx(I,{component:"span",...R,className:de(w.label,R==null?void 0:R.className),children:j})),C.jsxs(b5e,{className:de(w.root,o),ownerState:O,ref:e,...v,children:[k.cloneElement(a,_),S?C.jsxs("div",{children:[j,C.jsxs(w5e,{ownerState:O,"aria-hidden":!0,className:w.asterisk,children:["\u2009","*"]})]}):j]})});function x5e(t){return Ee("MuiFormHelperText",t)}const l6=_e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var u6;const k5e=t=>{const{classes:e,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=t,u={root:["root",o&&"disabled",i&&"error",r&&`size${ce(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Ce(u,x5e,e)},S5e=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e[`size${ce(n.size)}`],n.contained&&e.contained,n.filled&&e.filled]}})(ze(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${l6.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${l6.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),_5e=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiFormHelperText"}),{children:r,className:o,component:i="p",disabled:a,error:s,filled:l,focused:u,margin:c,required:h,variant:d,...f}=n,p=Fa(),g=Ks({props:n,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),b={...n,component:i,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete b.ownerState;const m=k5e(b);return C.jsx(S5e,{as:i,className:de(m.root,o),ref:e,...f,ownerState:b,children:r===" "?u6||(u6=C.jsx("span",{className:"notranslate",children:"\u200B"})):r})});function E5e(t){return Ee("MuiFormLabel",t)}const wf=_e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),C5e=t=>{const{classes:e,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=t,l={root:["root",`color${ce(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Ce(l,E5e,e)},O5e=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:t},e)=>({...e.root,...t.color==="secondary"&&e.colorSecondary,...t.filled&&e.filled})})(ze(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{[`&.${wf.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${wf.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${wf.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),T5e=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(ze(({theme:t})=>({[`&.${wf.error}`]:{color:(t.vars||t).palette.error.main}}))),P5e=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiFormLabel"}),{children:r,className:o,color:i,component:a="label",disabled:s,error:l,filled:u,focused:c,required:h,...d}=n,f=Fa(),p=Ks({props:n,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),g={...n,color:p.color||"primary",component:a,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},b=C5e(g);return C.jsxs(O5e,{as:a,ownerState:g,className:de(b.root,o),ref:e,...d,children:[r,p.required&&C.jsxs(T5e,{ownerState:g,"aria-hidden":!0,className:b.asterisk,children:["\u2009","*"]})]})}),c6=k.createContext();function M5e(t){return Ee("MuiGrid",t)}const I5e=[0,1,2,3,4,5,6,7,8,9,10],R5e=["column-reverse","column","row-reverse","row"],D5e=["nowrap","wrap-reverse","wrap"],xf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],kf=_e("MuiGrid",["root","container","item","zeroMinWidth",...I5e.map(t=>`spacing-xs-${t}`),...R5e.map(t=>`direction-xs-${t}`),...D5e.map(t=>`wrap-xs-${t}`),...xf.map(t=>`grid-xs-${t}`),...xf.map(t=>`grid-sm-${t}`),...xf.map(t=>`grid-md-${t}`),...xf.map(t=>`grid-lg-${t}`),...xf.map(t=>`grid-xl-${t}`)]);function j5e({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,o)=>{let i={};if(e[o]&&(n=e[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Zm({values:e.columns,breakpoints:t.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const c=t.spacing(e.columnSpacing);if(c!=="0px"){const h=`calc(${l} + ${c})`;u={flexBasis:h,maxWidth:h}}}i={flexBasis:l,flexGrow:0,maxWidth:l,...u}}return t.breakpoints.values[o]===0?Object.assign(r,i):r[t.breakpoints.up(o)]=i,r},{})}function A5e({theme:t,ownerState:e}){const n=Zm({values:e.direction,breakpoints:t.breakpoints.values});return Yr({theme:t},n,r=>{const o={flexDirection:r};return r.startsWith("column")&&(o[`& > .${kf.item}`]={maxWidth:"none"}),o})}function d6({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(o=>{n===""&&e[o]!==0&&(n=o)});const r=Object.keys(t).sort((o,i)=>t[o]-t[i]);return r.slice(0,r.indexOf(n))}function N5e({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let o={};if(n&&r!==0){const i=Zm({values:r,breakpoints:t.breakpoints.values});let a;typeof i=="object"&&(a=d6({breakpoints:t.breakpoints.values,values:i})),o=Yr({theme:t},i,(s,l)=>{const u=t.spacing(s);return u!=="0px"?{marginTop:t.spacing(-s),[`& > .${kf.item}`]:{paddingTop:u}}:a!=null&&a.includes(l)?{}:{marginTop:0,[`& > .${kf.item}`]:{paddingTop:0}}})}return o}function z5e({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let o={};if(n&&r!==0){const i=Zm({values:r,breakpoints:t.breakpoints.values});let a;typeof i=="object"&&(a=d6({breakpoints:t.breakpoints.values,values:i})),o=Yr({theme:t},i,(s,l)=>{const u=t.spacing(s);if(u!=="0px"){const c=t.spacing(-s);return{width:`calc(100% + ${u})`,marginLeft:c,[`& > .${kf.item}`]:{paddingLeft:u}}}return a!=null&&a.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${kf.item}`]:{paddingLeft:0}}})}return o}function F5e(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(o=>{const i=t[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const L5e=ne("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=F5e(a,u,e));const h=[];return u.forEach(d=>{const f=n[d];f&&h.push(e[`grid-${d}-${String(f)}`])}),[e.root,r&&e.container,i&&e.item,l&&e.zeroMinWidth,...c,o!=="row"&&e[`direction-xs-${String(o)}`],s!=="wrap"&&e[`wrap-xs-${String(s)}`],...h]}})(({ownerState:t})=>({boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...t.item&&{margin:0},...t.zeroMinWidth&&{minWidth:0},...t.wrap!=="wrap"&&{flexWrap:t.wrap}}),A5e,N5e,z5e,j5e);function B5e(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const o=t[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const $5e=t=>{const{classes:e,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=t;let u=[];n&&(u=B5e(i,l));const c=[];l.forEach(d=>{const f=t[d];f&&c.push(`grid-${d}-${String(f)}`)});const h={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return Ce(h,M5e,e)},Ir=k.forwardRef(function(t,e){const n=k4({props:t,name:"MuiGrid"}),{breakpoints:r}=tc(),o=uE(n),{className:i,columns:a,columnSpacing:s,component:l="div",container:u=!1,direction:c="row",item:h=!1,rowSpacing:d,spacing:f=0,wrap:p="wrap",zeroMinWidth:g=!1,...b}=o,m=d||f,v=s||f,y=k.useContext(c6),x=u?a||12:y,S={},_={...b};r.keys.forEach(w=>{b[w]!=null&&(S[w]=b[w],delete _[w])});const E={...o,columns:x,container:u,direction:c,item:h,rowSpacing:m,columnSpacing:v,wrap:p,zeroMinWidth:g,spacing:f,...S,breakpoints:r.keys},O=$5e(E);return C.jsx(c6.Provider,{value:x,children:C.jsx(L5e,{ownerState:E,className:de(O.root,i),as:l,ref:e,..._})})});function YE(t){return`scale(${t}, ${t**2})`}const W5e={entering:{opacity:1,transform:YE(1)},entered:{opacity:1,transform:"none"}},XE=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Sf=k.forwardRef(function(t,e){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:h,onExiting:d,style:f,timeout:p="auto",TransitionComponent:g=Zo,...b}=t,m=Ju(),v=k.useRef(),y=tc(),x=k.useRef(null),S=Lt(x,ec(o),e),_=D=>P=>{if(D){const M=x.current;P===void 0?D(M):D(M,P)}},E=_(u),O=_((D,P)=>{T4(D);const{duration:M,delay:N,easing:A}=Dy({style:f,timeout:p,easing:i},{mode:"enter"});let $;p==="auto"?($=y.transitions.getAutoHeightDuration(D.clientHeight),v.current=$):$=M,D.style.transition=[y.transitions.create("opacity",{duration:$,delay:N}),y.transitions.create("transform",{duration:XE?$:$*.666,delay:N,easing:A})].join(","),s&&s(D,P)}),w=_(l),T=_(d),I=_(D=>{const{duration:P,delay:M,easing:N}=Dy({style:f,timeout:p,easing:i},{mode:"exit"});let A;p==="auto"?(A=y.transitions.getAutoHeightDuration(D.clientHeight),v.current=A):A=P,D.style.transition=[y.transitions.create("opacity",{duration:A,delay:M}),y.transitions.create("transform",{duration:XE?A:A*.666,delay:XE?M:M||A*.333,easing:N})].join(","),D.style.opacity=0,D.style.transform=YE(.75),c&&c(D)}),R=_(h),j=D=>{p==="auto"&&m.start(v.current||0,D),n&&n(x.current,D)};return C.jsx(g,{appear:r,in:a,nodeRef:x,onEnter:O,onEntered:w,onEntering:E,onExit:I,onExited:R,onExiting:T,addEndListener:j,timeout:p==="auto"?null:p,...b,children:(D,P)=>k.cloneElement(o,{style:{opacity:0,transform:YE(.75),visibility:D==="exited"&&!a?"hidden":void 0,...W5e[D],...f,...o.props.style},ref:S,...P})})});Sf&&(Sf.muiSupportAuto=!0);const H5e=t=>{const{classes:e,disableUnderline:n}=t,r=Ce({root:["root",!n&&"underline"],input:["input"]},ULe,e);return{...e,...r}},U5e=ne(Vy,{shouldForwardProp:t=>Un(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Hy(t,e),!n.disableUnderline&&e.underline]}})(ze(({theme:t})=>{let e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(e=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vf.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${e}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vf.disabled}, .${vf.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${e}`}},[`&.${vf.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(([,n])=>n&&n.main).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),V5e=ne(qy,{name:"MuiInput",slot:"Input",overridesResolver:Uy})({}),Gy=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,inputComponent:s="input",multiline:l=!1,slotProps:u,slots:c={},type:h="text",...d}=n,f=H5e(n),p={root:{ownerState:{disableUnderline:r}}},g=u??i?Tn(u??i,p):p,b=c.root??o.Root??U5e,m=c.input??o.Input??V5e;return C.jsx(HE,{slots:{root:b,input:m},slotProps:g,fullWidth:a,inputComponent:s,multiline:l,ref:e,type:h,...d,classes:f})});Gy&&(Gy.muiName="Input");function q5e(t){return Ee("MuiInputLabel",t)}_e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const K5e=t=>{const{classes:e,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=t,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ce(r)}`,a],asterisk:[s&&"asterisk"]},u=Ce(l,q5e,e);return{...e,...u}},Y5e=ne(P5e,{shouldForwardProp:t=>Un(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${wf.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(ze(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:n,size:r})=>e==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),_f=k.forwardRef(function(t,e){const n=Re({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:o,shrink:i,variant:a,className:s,...l}=n,u=Fa();let c=i;typeof c>"u"&&u&&(c=u.filled||u.focused||u.adornedStart);const h=Ks({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),d={...n,disableAnimation:r,formControl:u,shrink:c,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=K5e(d);return C.jsx(Y5e,{"data-shrink":c,ref:e,className:de(f.root,s),...l,ownerState:d,classes:f})}),GE=k.createContext({});function X5e(t){return Ee("MuiList",t)}_e("MuiList",["root","padding","dense","subheader"]);const G5e=t=>{const{classes:e,disablePadding:n,dense:r,subheader:o}=t;return Ce({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},X5e,e)},Q5e=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),J5e=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l,...u}=n,c=k.useMemo(()=>({dense:a}),[a]),h={...n,component:i,dense:a,disablePadding:s},d=G5e(h);return C.jsx(GE.Provider,{value:c,children:C.jsxs(Q5e,{as:i,className:de(d.root,o),ref:e,ownerState:h,...u,children:[l,r]})})}),h6=_e("MuiListItemIcon",["root","alignItemsFlexStart"]),f6=_e("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function QE(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function p6(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function g6(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.startsWith(e.keys.join(""))}function Ef(t,e,n,r,o,i){let a=!1,s=o(t,e,e?n:!1);for(;s;){if(s===t.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!g6(s,i)||l)s=o(t,s,n);else return s.focus(),!0}return!1}const Z5e=k.forwardRef(function(t,e){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu",...h}=t,d=k.useRef(null),f=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ko(()=>{r&&d.current.focus()},[r]),k.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(v,{direction:y})=>{const x=!d.current.style.width;if(v.clientHeight{const y=d.current,x=v.key,S=Pn(y).activeElement;if(x==="ArrowDown")v.preventDefault(),Ef(y,S,l,s,QE);else if(x==="ArrowUp")v.preventDefault(),Ef(y,S,l,s,p6);else if(x==="Home")v.preventDefault(),Ef(y,null,l,s,QE);else if(x==="End")v.preventDefault(),Ef(y,null,l,s,p6);else if(x.length===1){const _=f.current,E=x.toLowerCase(),O=performance.now();_.keys.length>0&&(O-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&E!==_.keys[0]&&(_.repeating=!1)),_.lastTime=O,_.keys.push(E);const w=S&&!_.repeating&&g6(S,_);_.previousKeyMatched&&(w||Ef(y,S,!1,s,QE,_))?v.preventDefault():_.previousKeyMatched=!1}u&&u(v)},g=Lt(d,e);let b=-1;k.Children.forEach(i,(v,y)=>{if(!k.isValidElement(v)){b===y&&(b+=1,b>=i.length&&(b=-1));return}v.props.disabled||(c==="selectedMenu"&&v.props.selected||b===-1)&&(b=y),b===y&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const m=k.Children.map(i,(v,y)=>{if(y===b){const x={};return o&&(x.autoFocus=!0),v.props.tabIndex===void 0&&c==="selectedMenu"&&(x.tabIndex=0),k.cloneElement(v,x)}return v});return C.jsx(J5e,{role:"menu",ref:g,className:a,onKeyDown:p,tabIndex:r?0:-1,...h,children:m})});function e3e(t){return Ee("MuiPopover",t)}_e("MuiPopover",["root","paper"]);function v6(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function m6(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function y6(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function JE(t){return typeof t=="function"?t():t}const t3e=t=>{const{classes:e}=t;return Ce({root:["root"],paper:["paper"]},e3e,e)},n3e=ne(o6,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),b6=ne(jy,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),r3e=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:u,container:c,elevation:h=8,marginThreshold:d=16,open:f,PaperProps:p={},slots:g={},slotProps:b={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:v=Sf,transitionDuration:y="auto",TransitionProps:{onEntering:x,...S}={},disableScrollLock:_=!1,...E}=n,O=(b==null?void 0:b.paper)??p,w=k.useRef(),T={...n,anchorOrigin:i,anchorReference:s,elevation:h,marginThreshold:d,externalPaperSlotProps:O,transformOrigin:m,TransitionComponent:v,transitionDuration:y,TransitionProps:S},I=t3e(T),R=k.useCallback(()=>{if(s==="anchorPosition")return a;const z=JE(o),L=(z&&z.nodeType===1?z:Pn(w.current).body).getBoundingClientRect();return{top:L.top+v6(L,i.vertical),left:L.left+m6(L,i.horizontal)}},[o,i.horizontal,i.vertical,a,s]),j=k.useCallback(z=>({vertical:v6(z,m.vertical),horizontal:m6(z,m.horizontal)}),[m.horizontal,m.vertical]),D=k.useCallback(z=>{const L={width:z.offsetWidth,height:z.offsetHeight},B=j(L);if(s==="none")return{top:null,left:null,transformOrigin:y6(B)};const re=R();let V=re.top-B.vertical,ie=re.left-B.horizontal;const Te=V+L.height,Ne=ie+L.width,Oe=Na(JE(o)),Le=Oe.innerHeight-d,kt=Oe.innerWidth-d;if(d!==null&&VLe){const Se=Te-Le;V-=Se,B.vertical+=Se}if(d!==null&&iekt){const Se=Ne-kt;ie-=Se,B.horizontal+=Se}return{top:`${Math.round(V)}px`,left:`${Math.round(ie)}px`,transformOrigin:y6(B)}},[o,s,R,j,d]),[P,M]=k.useState(f),N=k.useCallback(()=>{const z=w.current;if(!z)return;const L=D(z);L.top!==null&&(z.style.top=L.top),L.left!==null&&(z.style.left=L.left),z.style.transformOrigin=L.transformOrigin,M(!0)},[D]);k.useEffect(()=>(_&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[o,_,N]);const A=(z,L)=>{x&&x(z,L),N()},$=()=>{M(!1)};k.useEffect(()=>{f&&N()}),k.useImperativeHandle(r,()=>f?{updatePosition:()=>{N()}}:null,[f,N]),k.useEffect(()=>{if(!f)return;const z=yE(()=>{N()}),L=Na(o);return L.addEventListener("resize",z),()=>{z.clear(),L.removeEventListener("resize",z)}},[o,f,N]);let W=y;y==="auto"&&!v.muiSupportAuto&&(W=void 0);const J=c||(o?Pn(JE(o)).body:void 0),X={slots:g,slotProps:{...b,paper:O}},[te,se]=Jr("paper",{elementType:b6,externalForwardedProps:X,additionalProps:{elevation:h,className:de(I.paper,O==null?void 0:O.className),style:P?O.style:{...O.style,opacity:0}},ownerState:T}),[ve,{slotProps:Q,...xe}]=Jr("root",{elementType:n3e,externalForwardedProps:X,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:J,open:f},ownerState:T,className:de(I.root,u)}),ke=Lt(w,se.ref);return C.jsx(ve,{...xe,...!$E(ve)&&{slotProps:Q,disableScrollLock:_},...E,ref:e,children:C.jsx(v,{appear:!0,in:f,onEntering:A,onExited:$,timeout:W,...S,children:C.jsx(te,{...se,ref:ke,children:l})})})});function o3e(t){return Ee("MuiMenu",t)}_e("MuiMenu",["root","paper","list"]);const i3e={vertical:"top",horizontal:"right"},a3e={vertical:"top",horizontal:"left"},s3e=t=>{const{classes:e}=t;return Ce({root:["root"],paper:["paper"],list:["list"]},o3e,e)},l3e=ne(r3e,{shouldForwardProp:t=>Un(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),u3e=ne(b6,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),c3e=ne(Z5e,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),d3e=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:i,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:c={},PopoverClasses:h,transitionDuration:d="auto",TransitionProps:{onEntering:f,...p}={},variant:g="selectedMenu",slots:b={},slotProps:m={},...v}=n,y=wE(),x={...n,autoFocus:r,disableAutoFocusItem:a,MenuListProps:s,onEntering:f,PaperProps:c,transitionDuration:d,TransitionProps:p,variant:g},S=s3e(x),_=r&&!a&&u,E=k.useRef(null),O=(P,M)=>{E.current&&E.current.adjustStyleForScrollbar(P,{direction:y?"rtl":"ltr"}),f&&f(P,M)},w=P=>{P.key==="Tab"&&(P.preventDefault(),l&&l(P,"tabKeyDown"))};let T=-1;k.Children.map(o,(P,M)=>{k.isValidElement(P)&&(P.props.disabled||(g==="selectedMenu"&&P.props.selected||T===-1)&&(T=M))});const I=b.paper??u3e,R=m.paper??c,j=bE({elementType:b.root,externalSlotProps:m.root,ownerState:x,className:[S.root,i]}),D=bE({elementType:I,externalSlotProps:R,ownerState:x,className:S.paper});return C.jsx(l3e,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:y?"right":"left"},transformOrigin:y?i3e:a3e,slots:{paper:I,root:b.root},slotProps:{root:j,paper:D},open:u,ref:e,transitionDuration:d,TransitionProps:{onEntering:O,...p},ownerState:x,...v,classes:h,children:C.jsx(c3e,{onKeyDown:w,actions:E,autoFocus:r&&(T===-1||a),autoFocusItem:_,variant:g,...s,className:de(S.list,s.className),children:o})})});function h3e(t){return Ee("MuiMenuItem",t)}const Cf=_e("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),f3e=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]},p3e=t=>{const{disabled:e,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=t,s=Ce({root:["root",n&&"dense",e&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},h3e,a);return{...a,...s}},g3e=ne(Ny,{shouldForwardProp:t=>Un(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:f3e})(ze(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cf.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Cf.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:xt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Cf.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:xt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Cf.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Cf.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${s6.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${s6.inset}`]:{marginLeft:52},[`& .${f6.root}`]:{marginTop:0,marginBottom:0},[`& .${f6.inset}`]:{paddingLeft:36},[`& .${h6.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${h6.root} svg`]:{fontSize:"1.25rem"}}}]}))),ZE=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:h,...d}=n,f=k.useContext(GE),p=k.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),g=k.useRef(null);ko(()=>{r&&g.current&&g.current.focus()},[r]);const b={...n,dense:p.dense,divider:a,disableGutters:s},m=p3e(n),v=Lt(g,e);let y;return n.disabled||(y=c!==void 0?c:-1),C.jsx(GE.Provider,{value:p,children:C.jsx(g3e,{ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:de(m.focusVisible,l),className:de(m.root,h),...d,ownerState:b,classes:m})})});function v3e(t){return Ee("MuiNativeSelect",t)}const eC=_e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),m3e=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:a}=t,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"]};return Ce(s,v3e,e)},w6=ne("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${eC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),y3e=ne(w6,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Un,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${eC.multiple}`]:e.multiple}]}})({}),x6=ne("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${eC.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),b3e=ne(x6,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${ce(n.variant)}`],n.open&&e.iconOpen]}})({}),w3e=k.forwardRef(function(t,e){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard",...l}=t,u={...t,disabled:r,variant:s,error:o},c=m3e(u);return C.jsxs(k.Fragment,{children:[C.jsx(y3e,{ownerState:u,className:de(c.select,n),disabled:r,ref:a||e,...l}),t.multiple?null:C.jsx(b3e,{as:i,ownerState:u,className:c.icon})]})});var k6;const x3e=ne("fieldset",{shouldForwardProp:Un})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),k3e=ne("legend",{shouldForwardProp:Un})(ze(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function S3e(t){const{children:e,classes:n,className:r,label:o,notched:i,...a}=t,s=o!=null&&o!=="",l={...t,notched:i,withLabel:s};return C.jsx(x3e,{"aria-hidden":!0,className:r,ownerState:l,...a,children:C.jsx(k3e,{ownerState:l,children:s?C.jsx("span",{children:o}):k6||(k6=C.jsx("span",{className:"notranslate",children:"\u200B"}))})})}const _3e=t=>{const{classes:e}=t,n=Ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},VLe,e);return{...e,...n}},E3e=ne(Vy,{shouldForwardProp:t=>Un(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Hy})(ze(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${ni.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},[`&.${ni.focused} .${ni.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(([,n])=>n&&n.main).map(([n])=>({props:{color:n},style:{[`&.${ni.focused} .${ni.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}})),{props:{},style:{"@media (hover: none)":{[`&:hover .${ni.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${ni.error} .${ni.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${ni.disabled} .${ni.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),C3e=ne(S3e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(ze(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),O3e=ne(qy,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Uy})(ze(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Qy=k.forwardRef(function(t,e){var n;const r=Re({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:u,slots:c={},type:h="text",...d}=r,f=_3e(r),p=Fa(),g=Ks({props:r,muiFormControl:p,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:p,fullWidth:i,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:h},m=c.root??o.Root??E3e,v=c.input??o.Input??O3e;return C.jsx(HE,{slots:{root:m,input:v},renderSuffix:y=>C.jsx(C3e,{ownerState:b,className:f.notchedOutline,label:s!=null&&s!==""&&g.required?n||(n=C.jsxs(k.Fragment,{children:[s,"\u2009","*"]})):s,notched:typeof u<"u"?u:!!(y.startAdornment||y.filled||y.focused)}),fullWidth:i,inputComponent:a,multiline:l,ref:e,type:h,...d,classes:{...f,notchedOutline:null}})});Qy&&(Qy.muiName="Input");function T3e(t){return Ee("MuiSelect",t)}const Of=_e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var S6;const P3e=ne(w6,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${Of.select}`]:e.select},{[`&.${Of.select}`]:e[n.variant]},{[`&.${Of.error}`]:e.error},{[`&.${Of.multiple}`]:e.multiple}]}})({[`&.${Of.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),M3e=ne(x6,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${ce(n.variant)}`],n.open&&e.iconOpen]}})({}),I3e=ne("input",{shouldForwardProp:t=>S4(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function _6(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function R3e(t){return t==null||typeof t=="string"&&!t.trim()}const D3e=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:a}=t,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ce(s,T3e,e)},j3e=k.forwardRef(function(t,e){var Eo;const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:i,children:a,className:s,defaultOpen:l,defaultValue:u,disabled:c,displayEmpty:h,error:d=!1,IconComponent:f,inputRef:p,labelId:g,MenuProps:b={},multiple:m,name:v,onBlur:y,onChange:x,onClose:S,onFocus:_,onOpen:E,open:O,readOnly:w,renderValue:T,SelectDisplayProps:I={},tabIndex:R,type:j,value:D,variant:P="standard",...M}=t,[N,A]=af({controlled:D,default:u,name:"Select"}),[$,W]=af({controlled:O,default:l,name:"Select"}),J=k.useRef(null),X=k.useRef(null),[te,se]=k.useState(null),{current:ve}=k.useRef(O!=null),[Q,xe]=k.useState(),ke=Lt(e,p),z=k.useCallback(ge=>{X.current=ge,ge&&se(ge)},[]),L=te==null?void 0:te.parentNode;k.useImperativeHandle(ke,()=>({focus:()=>{X.current.focus()},node:J.current,value:N}),[N]),k.useEffect(()=>{l&&$&&te&&!ve&&(xe(i?null:L.clientWidth),X.current.focus())},[te,i]),k.useEffect(()=>{o&&X.current.focus()},[o]),k.useEffect(()=>{if(!g)return;const ge=Pn(X.current).getElementById(g);if(ge){const Ke=()=>{getSelection().isCollapsed&&X.current.focus()};return ge.addEventListener("click",Ke),()=>{ge.removeEventListener("click",Ke)}}},[g]);const B=(ge,Ke)=>{ge?E&&E(Ke):S&&S(Ke),ve||(xe(i?null:L.clientWidth),W(ge))},re=ge=>{ge.button===0&&(ge.preventDefault(),X.current.focus(),B(!0,ge))},V=ge=>{B(!1,ge)},ie=k.Children.toArray(a),Te=ge=>{const Ke=ie.find(jt=>jt.props.value===ge.target.value);Ke!==void 0&&(A(Ke.props.value),x&&x(ge,Ke))},Ne=ge=>Ke=>{let jt;if(Ke.currentTarget.hasAttribute("tabindex")){if(m){jt=Array.isArray(N)?N.slice():[];const Co=N.indexOf(ge.props.value);Co===-1?jt.push(ge.props.value):jt.splice(Co,1)}else jt=ge.props.value;if(ge.props.onClick&&ge.props.onClick(Ke),N!==jt&&(A(jt),x)){const Co=Ke.nativeEvent||Ke,La=new Co.constructor(Co.type,Co);Object.defineProperty(La,"target",{writable:!0,value:{value:jt,name:v}}),x(La,ge)}m||B(!1,Ke)}},Oe=ge=>{w||[" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),B(!0,ge))},Le=te!==null&&$,kt=ge=>{!Le&&y&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:N,name:v}}),y(ge))};delete M["aria-invalid"];let Se,Xt;const pe=[];let ht=!1;(Wy({value:N})||h)&&(T?Se=T(N):ht=!0);const Rr=ie.map(ge=>{if(!k.isValidElement(ge))return null;let Ke;if(m){if(!Array.isArray(N))throw new Error(Ri(2));Ke=N.some(jt=>_6(jt,ge.props.value)),Ke&&ht&&pe.push(ge.props.children)}else Ke=_6(N,ge.props.value),Ke&&ht&&(Xt=ge.props.children);return k.cloneElement(ge,{"aria-selected":Ke?"true":"false",onClick:Ne(ge),onKeyUp:jt=>{jt.key===" "&&jt.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(jt)},role:"option",selected:Ke,value:void 0,"data-value":ge.props.value})});ht&&(m?pe.length===0?Se=null:Se=pe.reduce((ge,Ke,jt)=>(ge.push(Ke),jt{const{classes:e}=t;return e},tC={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Un(t)&&t!=="variant",slot:"Root"},N3e=ne(Gy,tC)(""),z3e=ne(Qy,tC)(""),F3e=ne(Yy,tC)(""),gc=k.forwardRef(function(t,e){const n=k4({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=KLe,id:c,input:h,inputProps:d,label:f,labelId:p,MenuProps:g,multiple:b=!1,native:m=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:_,variant:E="outlined",...O}=n,w=m?w3e:j3e,T=Fa(),I=Ks({props:n,muiFormControl:T,states:["variant","error"]}),R=I.variant||E,j={...n,variant:R,classes:i},D=A3e(j),{root:P,...M}=D,N=h||{standard:C.jsx(N3e,{ownerState:j}),outlined:C.jsx(z3e,{label:f,ownerState:j}),filled:C.jsx(F3e,{ownerState:j})}[R],A=Lt(e,ec(N));return C.jsx(k.Fragment,{children:k.cloneElement(N,{inputComponent:w,inputProps:{children:o,error:I.error,IconComponent:u,variant:R,type:void 0,multiple:b,...m?{id:c}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:p,MenuProps:g,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:{id:c,..._}},...d,classes:d?Tn(M,d.classes):M,...h?h.props.inputProps:{}},...(b&&m||l)&&R==="outlined"?{notched:!0}:{},ref:A,className:de(N.props.className,a,D.root),...!h&&{variant:R},...O})})});gc.muiName="Select";function L3e(t){return Ee("MuiTooltip",t)}const Dt=_e("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function B3e(t){return Math.round(t*1e5)/1e5}const $3e=t=>{const{classes:e,disableInteractive:n,arrow:r,touch:o,placement:i}=t,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ce(i.split("-")[0])}`],arrow:["arrow"]};return Ce(a,L3e,e)},W3e=ne(X4,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.popper,!n.disableInteractive&&e.popperInteractive,n.arrow&&e.popperArrow,!n.open&&e.popperClose]}})(ze(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Dt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Dt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Dt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Dt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Dt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Dt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Dt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Dt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),H3e=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.tooltip,n.touch&&e.touch,n.arrow&&e.tooltipArrow,e[`tooltipPlacement${ce(n.placement.split("-")[0])}`]]}})(ze(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:xt(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Dt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Dt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Dt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Dt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${B3e(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Dt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Dt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Dt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Dt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Dt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Dt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Dt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Dt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Dt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Dt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),U3e=ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(ze(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:xt(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Jy=!1;const E6=new Ty;let Tf={x:0,y:0};function Zy(t,e){return(n,...r)=>{e&&e(n,...r),t(n,...r)}}const e0=k.forwardRef(function(t,e){var x0,k0,Pe;const n=Re({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:a={},componentsProps:s={},describeChild:l=!1,disableFocusListener:u=!1,disableHoverListener:c=!1,disableInteractive:h=!1,disableTouchListener:d=!1,enterDelay:f=100,enterNextDelay:p=0,enterTouchDelay:g=700,followCursor:b=!1,id:m,leaveDelay:v=0,leaveTouchDelay:y=1500,onClose:x,onOpen:S,open:_,placement:E="bottom",PopperComponent:O,PopperProps:w={},slotProps:T={},slots:I={},title:R,TransitionComponent:j=Sf,TransitionProps:D,...P}=n,M=k.isValidElement(o)?o:C.jsx("span",{children:o}),N=tc(),A=wE(),[$,W]=k.useState(),[J,X]=k.useState(null),te=k.useRef(!1),se=h||b,ve=Ju(),Q=Ju(),xe=Ju(),ke=Ju(),[z,L]=af({controlled:_,default:!1,name:"Tooltip",state:"open"});let B=z;const re=of(m),V=k.useRef(),ie=Di(()=>{V.current!==void 0&&(document.body.style.WebkitUserSelect=V.current,V.current=void 0),ke.clear()});k.useEffect(()=>ie,[ie]);const Te=ae=>{E6.clear(),Jy=!0,L(!0),S&&!B&&S(ae)},Ne=Di(ae=>{E6.start(800+v,()=>{Jy=!1}),L(!1),x&&B&&x(ae),ve.start(N.transitions.duration.shortest,()=>{te.current=!1})}),Oe=ae=>{te.current&&ae.type!=="touchstart"||($&&$.removeAttribute("title"),Q.clear(),xe.clear(),f||Jy&&p?Q.start(Jy?p:f,()=>{Te(ae)}):Te(ae))},Le=ae=>{Q.clear(),xe.start(v,()=>{Ne(ae)})},[,kt]=k.useState(!1),Se=ae=>{Py(ae.target)||(kt(!1),Le(ae))},Xt=ae=>{$||W(ae.currentTarget),Py(ae.target)&&(kt(!0),Oe(ae))},pe=ae=>{te.current=!0;const lt=M.props;lt.onTouchStart&<.onTouchStart(ae)},ht=ae=>{pe(ae),xe.clear(),ve.clear(),ie(),V.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ke.start(g,()=>{document.body.style.WebkitUserSelect=V.current,Oe(ae)})},Rr=ae=>{M.props.onTouchEnd&&M.props.onTouchEnd(ae),ie(),xe.start(y,()=>{Ne(ae)})};k.useEffect(()=>{if(!B)return;function ae(lt){lt.key==="Escape"&&Ne(lt)}return document.addEventListener("keydown",ae),()=>{document.removeEventListener("keydown",ae)}},[Ne,B]);const Rn=Lt(ec(M),W,e);!R&&R!==0&&(B=!1);const Dn=k.useRef(),ro=ae=>{const lt=M.props;lt.onMouseMove&<.onMouseMove(ae),Tf={x:ae.clientX,y:ae.clientY},Dn.current&&Dn.current.update()},Gt={},oo=typeof R=="string";l?(Gt.title=!B&&oo&&!c?R:null,Gt["aria-describedby"]=B?re:null):(Gt["aria-label"]=oo?R:null,Gt["aria-labelledby"]=B&&!oo?re:null);const De={...Gt,...P,...M.props,className:de(P.className,M.props.className),onTouchStart:pe,ref:Rn,...b?{onMouseMove:ro}:{}},hr={};d||(De.onTouchStart=ht,De.onTouchEnd=Rr),c||(De.onMouseOver=Zy(Oe,De.onMouseOver),De.onMouseLeave=Zy(Le,De.onMouseLeave),se||(hr.onMouseOver=Oe,hr.onMouseLeave=Le)),u||(De.onFocus=Zy(Xt,De.onFocus),De.onBlur=Zy(Se,De.onBlur),se||(hr.onFocus=Xt,hr.onBlur=Se));const Eo=k.useMemo(()=>{var lt;let ae=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return(lt=w.popperOptions)!=null&<.modifiers&&(ae=ae.concat(w.popperOptions.modifiers)),{...w.popperOptions,modifiers:ae}},[J,w]),ge={...n,isRtl:A,arrow:r,disableInteractive:se,placement:E,PopperComponentProp:O,touch:te.current},Ke=$3e(ge),jt=I.popper??a.Popper??W3e,Co=I.transition??a.Transition??j??Sf,La=I.tooltip??a.Tooltip??H3e,Bf=I.arrow??a.Arrow??U3e,wC=Zu(jt,{...w,...T.popper??s.popper,className:de(Ke.popper,w==null?void 0:w.className,(x0=T.popper??s.popper)==null?void 0:x0.className)},ge),xC=Zu(Co,{...D,...T.transition??s.transition},ge),b0=Zu(La,{...T.tooltip??s.tooltip,className:de(Ke.tooltip,(k0=T.tooltip??s.tooltip)==null?void 0:k0.className)},ge),w0=Zu(Bf,{...T.arrow??s.arrow,className:de(Ke.arrow,(Pe=T.arrow??s.arrow)==null?void 0:Pe.className)},ge);return C.jsxs(k.Fragment,{children:[k.cloneElement(M,De),C.jsx(jt,{as:O??X4,placement:E,anchorEl:b?{getBoundingClientRect:()=>({top:Tf.y,left:Tf.x,right:Tf.x,bottom:Tf.y,width:0,height:0})}:$,popperRef:Dn,open:$?B:!1,id:re,transition:!0,...hr,...wC,popperOptions:Eo,children:({TransitionProps:ae})=>C.jsx(Co,{timeout:N.transitions.duration.shorter,...ae,...xC,children:C.jsxs(La,{...b0,children:[R,r?C.jsx(Bf,{...w0,ref:X}):null]})})})]})}),C6=k.createContext();function V3e(t){return Ee("MuiTable",t)}_e("MuiTable",["root","stickyHeader"]);const q3e=t=>{const{classes:e,stickyHeader:n}=t;return Ce({root:["root",n&&"stickyHeader"]},V3e,e)},K3e=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.stickyHeader&&e.stickyHeader]}})(ze(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),O6="table",Y3e=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiTable"}),{className:r,component:o=O6,padding:i="normal",size:a="medium",stickyHeader:s=!1,...l}=n,u={...n,component:o,padding:i,size:a,stickyHeader:s},c=q3e(u),h=k.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return C.jsx(C6.Provider,{value:h,children:C.jsx(K3e,{as:o,role:o===O6?null:"table",ref:e,className:de(c.root,r),ownerState:u,...l})})}),t0=k.createContext();function X3e(t){return Ee("MuiTableBody",t)}_e("MuiTableBody",["root"]);const G3e=t=>{const{classes:e}=t;return Ce({root:["root"]},X3e,e)},Q3e=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-row-group"}),J3e={variant:"body"},T6="tbody",Z3e=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiTableBody"}),{className:r,component:o=T6,...i}=n,a={...n,component:o},s=G3e(a);return C.jsx(t0.Provider,{value:J3e,children:C.jsx(Q3e,{className:de(s.root,r),as:o,ref:e,role:o===T6?null:"rowgroup",ownerState:a,...i})})});function e4e(t){return Ee("MuiTableCell",t)}const t4e=_e("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),n4e=t=>{const{classes:e,variant:n,align:r,padding:o,size:i,stickyHeader:a}=t,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ce(r)}`,o!=="normal"&&`padding${ce(o)}`,`size${ce(i)}`]};return Ce(s,e4e,e)},r4e=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`size${ce(n.size)}`],n.padding!=="normal"&&e[`padding${ce(n.padding)}`],n.align!=="inherit"&&e[`align${ce(n.align)}`],n.stickyHeader&&e.stickyHeader]}})(ze(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid + ${t.palette.mode==="light"?_y(xt(t.palette.divider,1),.88):Sy(xt(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${t4e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),n0=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c,...h}=n,d=k.useContext(C6),f=k.useContext(t0),p=f&&f.variant==="head";let g;i?g=i:g=p?"th":"td";let b=s;g==="td"?b=void 0:!b&&p&&(b="col");const m=c||f&&f.variant,v={...n,align:r,component:g,padding:a||(d&&d.padding?d.padding:"normal"),size:l||(d&&d.size?d.size:"medium"),sortDirection:u,stickyHeader:m==="head"&&d&&d.stickyHeader,variant:m},y=n4e(v);let x=null;return u&&(x=u==="asc"?"ascending":"descending"),C.jsx(r4e,{as:g,ref:e,className:de(y.root,o),"aria-sort":x,scope:b,ownerState:v,...h})});function o4e(t){return Ee("MuiTableContainer",t)}_e("MuiTableContainer",["root"]);const i4e=t=>{const{classes:e}=t;return Ce({root:["root"]},o4e,e)},a4e=ne("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),s4e=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiTableContainer"}),{className:r,component:o="div",...i}=n,a={...n,component:o},s=i4e(a);return C.jsx(a4e,{ref:e,as:o,className:de(s.root,r),ownerState:a,...i})});function l4e(t){return Ee("MuiTableHead",t)}_e("MuiTableHead",["root"]);const u4e=t=>{const{classes:e}=t;return Ce({root:["root"]},l4e,e)},c4e=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-header-group"}),d4e={variant:"head"},P6="thead",h4e=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiTableHead"}),{className:r,component:o=P6,...i}=n,a={...n,component:o},s=u4e(a);return C.jsx(t0.Provider,{value:d4e,children:C.jsx(c4e,{as:o,className:de(s.root,r),ref:e,role:o===P6?null:"rowgroup",ownerState:a,...i})})});function f4e(t){return Ee("MuiTableRow",t)}const M6=_e("MuiTableRow",["root","selected","hover","head","footer"]),p4e=t=>{const{classes:e,selected:n,hover:r,head:o,footer:i}=t;return Ce({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},f4e,e)},g4e=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.head&&e.head,n.footer&&e.footer]}})(ze(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${M6.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${M6.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:xt(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:xt(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),I6="tr",R6=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiTableRow"}),{className:r,component:o=I6,hover:i=!1,selected:a=!1,...s}=n,l=k.useContext(t0),u={...n,component:o,hover:i,selected:a,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},c=p4e(u);return C.jsx(g4e,{as:o,ref:e,className:de(c.root,r),role:o===I6?null:"row",ownerState:u,...s})});function v4e(t){return Ee("MuiTextField",t)}_e("MuiTextField",["root"]);const m4e={standard:Gy,filled:Yy,outlined:Qy},y4e=t=>{const{classes:e}=t;return Ce({root:["root"]},v4e,e)},b4e=ne(yf,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),r0=k.forwardRef(function(t,e){const n=Re({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:h,fullWidth:d=!1,helperText:f,id:p,InputLabelProps:g,inputProps:b,InputProps:m,inputRef:v,label:y,maxRows:x,minRows:S,multiline:_=!1,name:E,onBlur:O,onChange:w,onFocus:T,placeholder:I,required:R=!1,rows:j,select:D=!1,SelectProps:P,slots:M={},slotProps:N={},type:A,value:$,variant:W="outlined",...J}=n,X={...n,autoFocus:o,color:s,disabled:u,error:c,fullWidth:d,multiline:_,required:R,select:D,variant:W},te=y4e(X),se=of(p),ve=f&&se?`${se}-helper-text`:void 0,Q=y&&se?`${se}-label`:void 0,xe=m4e[W],ke={slots:M,slotProps:{input:m,inputLabel:g,htmlInput:b,formHelperText:h,select:P,...N}},z={},L=ke.slotProps.inputLabel;W==="outlined"&&(L&&typeof L.shrink<"u"&&(z.notched=L.shrink),z.label=y),D&&((!P||!P.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const[B,re]=Jr("input",{elementType:xe,externalForwardedProps:ke,additionalProps:z,ownerState:X}),[V,ie]=Jr("inputLabel",{elementType:_f,externalForwardedProps:ke,ownerState:X}),[Te,Ne]=Jr("htmlInput",{elementType:"input",externalForwardedProps:ke,ownerState:X}),[Oe,Le]=Jr("formHelperText",{elementType:_5e,externalForwardedProps:ke,ownerState:X}),[kt,Se]=Jr("select",{elementType:gc,externalForwardedProps:ke,ownerState:X}),Xt=C.jsx(B,{"aria-describedby":ve,autoComplete:r,autoFocus:o,defaultValue:l,fullWidth:d,multiline:_,name:E,rows:j,maxRows:x,minRows:S,type:A,value:$,id:se,inputRef:v,onBlur:O,onChange:w,onFocus:T,placeholder:I,inputProps:Ne,slots:{input:M.htmlInput?Te:void 0},...re});return C.jsxs(b4e,{className:de(te.root,a),disabled:u,error:c,fullWidth:d,ref:e,required:R,color:s,variant:W,ownerState:X,...J,children:[y!=null&&y!==""&&C.jsx(V,{htmlFor:se,id:Q,...ie,children:y}),D?C.jsx(kt,{"aria-describedby":ve,id:se,labelId:Q,value:$,input:Xt,...Se,children:i}):Xt,f&&C.jsx(Oe,{id:ve,...Le,children:f})]})});function w4e(){return{avgRounded:k.useCallback(t=>{if(!t||t.length===0)return 0;const e=t.reduce((n,r)=>n+r)/t.length;return Math.round(e)},[])}}var Mn=(t=>(t.EQ="=",t.LEQ="\u2264",t.GEQ="\u2265",t.LESSER="<",t.GREATER=">",t))(Mn||{});function vc(){const t=k.useCallback((a,s)=>!a&&!s?!0:!a||!s?!1:a.lhs.name===s.lhs.name&&a.op===s.op&&a.rhs===s.rhs,[]),e=k.useCallback((a,s)=>{if(!a&&!s)return!0;if(!a||!s)return!1;const l=a.clauses,u=s.clauses;if(l.length!==u.length)return!1;for(const c of l){let h=!1;if(u.forEach(d=>{t(c,d)&&(h=!0)}),!h)return!1}for(const c of u){let h=!1;if(l.forEach(d=>{t(d,c)&&(h=!0)}),!h)return!1}return!0},[t]),n=k.useCallback(a=>{if(!(!a||a.length===0)){for(const s of a)if(!s.clockValue||!s.comparisonValue||!s.numberInput)return;return a.map(s=>{const l={name:s.clockValue},u=Object.values(Mn).find(h=>h===s.comparisonValue);if(u===void 0)throw new Error(`Invalid comparison value: ${s.comparisonValue}`);const c=parseInt(s.numberInput);return{lhs:l,op:u,rhs:c}}).reduce((s,l)=>(s.clauses.push(l),s),{clauses:[]})}},[]),r=k.useCallback((a,s)=>s?s.clauses.map(l=>l.lhs.name).includes(a):!1,[]),o=k.useCallback((a,s)=>{if(!s||!a)return!1;const l=a.locations.map(c=>c.invariant),u=a.switches.map(c=>c.guard);return[...l,...u].filter(c=>r(s.name,c)).length>0},[r]),i=k.useCallback((a,s)=>{if(o(s,a)){for(const l of s.locations)if(l.invariant&&r(a.name,l.invariant)){const u=l.invariant.clauses.filter(c=>c.lhs.name!==a.name);u.length>0?l.invariant.clauses=u:l.invariant=void 0}for(const l of s.switches)if(l.guard&&r(a.name,l.guard)){const u=l.guard.clauses.filter(c=>c.lhs.name!==a.name);u.length>0?l.guard.clauses=u:l.guard=void 0}}},[r,o]);return{clausesEqual:t,clockConstraintsEqual:e,transformToClockConstraint:n,constraintUsesClock:r,taUsesClockInAnyConstraint:o,removeAllClausesUsingClock:i}}function nC(){const{clockConstraintsEqual:t}=vc(),e=k.useCallback((r,o)=>{if(!r&&!o)return!0;if(!r||!o||r.source.name!==o.source.name||r.target.name!==o.target.name||r.actionLabel!==o.actionLabel||!t(r.guard,o.guard))return!1;const i=r.reset.map(s=>s.name),a=o.reset.map(s=>s.name);return!(i.filter(s=>!a.includes(s)).length>0||a.filter(s=>!i.includes(s)).length>0)},[t]),n=k.useCallback((r,o)=>{for(const i of o.switches)i.reset=i.reset.filter(a=>a.name!==r.name)},[]);return{switchesEqual:e,removeClockFromAllResets:n}}function x4e(){const{constraintUsesClock:t}=vc();return{renameClock:k.useCallback((e,n,r)=>{const{locations:o,switches:i,clocks:a}=r,s={name:n},l=a.map(h=>h.name).indexOf(e);a[l]=s,i.map(h=>h.reset).forEach(h=>{if(h.filter(d=>d.name===e).length>0){const d=h.map(f=>f.name).indexOf(e);h[d]=s}});const u=i.map(h=>h.guard).filter(h=>t(e,h)),c=o.map(h=>h.invariant).filter(h=>t(e,h));[...u,...c].filter(h=>h!==void 0).map(h=>h.clauses).flat().filter(h=>h.lhs.name===e).forEach(h=>{h.lhs=s})},[t])}}const o0={name:"x"},D6={name:"y"},k4e={clauses:[{lhs:o0,op:Mn.LESSER,rhs:5}]},S4e={clauses:[{lhs:o0,op:Mn.GREATER,rhs:1},{lhs:D6,op:Mn.GEQ,rhs:3}]},j6={name:"init",isInitial:!0,invariant:k4e,xCoordinate:-100,yCoordinate:100},A6={name:"final",xCoordinate:100,yCoordinate:100},_4e={source:j6,guard:S4e,actionLabel:"start",reset:[o0],target:A6},E4e={locations:[j6,A6],clocks:[o0,D6],switches:[_4e]};function N6(){return structuredClone(E4e)}var So=(t=>(t.INIT="INIT",t.ANALYZING="ANALYZING",t.READY="READY",t.RESET="RESET",t))(So||{});function C4e(){const{avgRounded:t}=w4e(),{switchesEqual:e}=nC(),{removeAllClausesUsingClock:n}=vc(),{removeClockFromAllResets:r}=nC(),{renameClock:o}=x4e(),i=k.useCallback((S,_)=>{const E=S.ta,O=[...E.locations];O.forEach(T=>{T.name===_?T.isInitial=!0:T.isInitial=!1});const w={...E,locations:O};x({...S,ta:w})},[]),a=k.useCallback((S,_,E,O)=>{const w=S.ta,T=w.locations;let I;if(T){const D=t(T.map(M=>M.xCoordinate)),P=t(T.map(M=>M.yCoordinate));I={name:_,isInitial:E,invariant:O,xCoordinate:D,yCoordinate:P}}else I={name:_,isInitial:!0,invariant:O,xCoordinate:0,yCoordinate:0};const R=[...T,I];E&&R.forEach(D=>{D.name!==_&&(D.isInitial=!1)});const j={...w,locations:R};x({...S,ta:j})},[t]),s=k.useCallback((S,_,E,O,w)=>{const T=S.ta,I=[...T.locations],R=I.filter(M=>M.name===E)[0];R.name=_,R.invariant=w;const j={...T,locations:I},D={...S,ta:j};x(D);const P=I.filter(M=>M.name!==_).filter(M=>!!M.isInitial).length===1;O?i(D,_):P||i(D,I[0].name)},[i]),l=k.useCallback((S,_)=>{if(S.ta.locations.length<=1)return;const E=S.ta,O=E.locations.filter(R=>R.name===_)[0].isInitial,w=E.locations.filter(R=>R.name!==_);O&&w&&(w[0].isInitial=!0);const T=E.switches.filter(R=>R.source.name!==_&&R.target.name!==_),I={...E,locations:w,switches:T};x({...S,ta:I})},[]),u=k.useCallback((S,_,E,O)=>{const w=S.ta,T=[...w.locations],I=T.filter(j=>j.name===_)[0];I.xCoordinate=E,I.yCoordinate=O;const R={...w,locations:T};x({...S,ta:R})},[]),c=k.useCallback((S,_,E,O,w,T)=>{const I=S.ta,R={source:I.locations.filter(P=>P.name===_)[0],target:I.locations.filter(P=>P.name===w)[0],actionLabel:E,reset:I.clocks.filter(P=>O.includes(P.name)),guard:T},j=[...I.switches,R],D={...I,switches:j};x({...S,ta:D})},[]),h=k.useCallback((S,_,E,O,w,T,I)=>{const R=S.ta,j=[...R.switches],D=j.filter(N=>e(N,_))[0];D.source=R.locations.filter(N=>N.name===E)[0],D.target=R.locations.filter(N=>N.name===T)[0],D.actionLabel=O,D.reset=R.clocks.filter(N=>w.includes(N.name)),D.guard=I;const P={...R,switches:j},M={...S,ta:P};x(M)},[e]),d=k.useCallback((S,_)=>{const E=S.ta,O=[];for(const T of E.switches)e(T,_)||O.push(T);const w={...E,switches:O};x({...S,ta:w})},[e]),f=k.useCallback((S,_)=>{const E=S.ta,O=[...E.clocks,{name:_}],w={...E,clocks:O};x({...S,ta:w})},[]),p=k.useCallback((S,_,E)=>{const O={...S.ta};o(E,_,O),x({...S,ta:O}),x({...S,ta:O})},[o]),g=k.useCallback((S,_)=>{let E={...S.ta};n(_,E),r(_,E);const O=E.clocks.filter(w=>w.name!==_.name);E={...E,clocks:O},x({...S,ta:E})},[n,r]),b=k.useCallback(S=>{x({...S,state:"ANALYZING"})},[]),m=k.useCallback(S=>{x({...S,state:"READY"})},[]),v=k.useCallback(S=>{x({...S,state:"RESET"})},[]),[y,x]=k.useState({state:"INIT",ta:N6(),addLocation:a,editLocation:s,removeLocation:l,setInitialLocation:i,updateLocationCoordinates:u,addSwitch:c,editSwitch:h,removeSwitch:d,addClock:f,editClock:p,removeClock:g,setStateAnalyzing:b,setStateReady:m,setStateReset:v});return k.useEffect(()=>{y.state==="INIT"&&x({...y,state:"READY"})},[y]),k.useEffect(()=>{y.state},[y]),k.useEffect(()=>{y.state==="RESET"&&x({...y,ta:N6(),state:"READY"})},[y]),y}var rC={},z6={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(z6);var Pf=z6.exports,F6={};const O4e=z$(Wze);var L6;function Mf(){return L6||(L6=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.createSvgIcon}});var e=O4e}(F6)),F6}var T4e=Pf;Object.defineProperty(rC,"__esModule",{value:!0});var B6=rC.default=void 0,P4e=T4e(Mf()),M4e=C;B6=rC.default=(0,P4e.default)((0,M4e.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var oC={},I4e=Pf;Object.defineProperty(oC,"__esModule",{value:!0});var iC=oC.default=void 0,R4e=I4e(Mf()),D4e=C;iC=oC.default=(0,R4e.default)((0,D4e.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var aC={},j4e=Pf;Object.defineProperty(aC,"__esModule",{value:!0});var $6=aC.default=void 0,A4e=j4e(Mf()),N4e=C;$6=aC.default=(0,A4e.default)((0,N4e.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");var sC={},z4e=Pf;Object.defineProperty(sC,"__esModule",{value:!0});var W6=sC.default=void 0,F4e=z4e(Mf()),L4e=C;W6=sC.default=(0,F4e.default)((0,L4e.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const B4e=$s(C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),$4e=$s(C.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),W4e="Enter",H4e=" ";function zi(){return{executeOnKeyboardClick:k.useCallback((t,e)=>{(t===W4e||t===H4e)&&e()},[])}}const lC=t=>{const{rows:e,contentSingular:n,contentPlural:r,typeForTestId:o,state:i,onAddOpen:a,onEditOpen:s,onDelete:l}=t,{t:u}=Do(),{executeOnKeyboardClick:c}=zi(),[h,d]=k.useState(!1),f=()=>{d(!h)},p=h?u("manipulation.table.showContent",{content:r}):u("manipulation.table.hideContent",{content:r}),g=k.useMemo(()=>({width:"1%",whiteSpace:"nowrap"}),[]),b=k.useMemo(()=>e.map(m=>C.jsxs(R6,{children:[C.jsxs(n0,{style:g,children:[C.jsx(Ai,{onMouseDown:()=>s(m.id),onKeyDown:v=>c(v.key,()=>s(m.id)),size:"small","data-testid":`button-edit-${o}-${m.id}`,disabled:i!==So.READY,children:C.jsx(e0,{title:u("manipulation.table.editLabel",{type:n}),children:C.jsx(B6,{})})}),C.jsx(Ai,{onMouseDown:()=>l(m.id),onKeyDown:v=>c(v.key,()=>l(m.id)),size:"small","data-testid":`button-delete-${o}-${m.id}`,disabled:i!==So.READY,children:C.jsx(e0,{title:u("manipulation.table.deleteLabel",{type:n}),children:C.jsx(iC,{})})})]}),C.jsx(n0,{"data-testid":`table-cell-${o}-${m.id}`,children:m.displayName})]},m.id)),[e,g,n,o,u,i,s,l,c]);return C.jsxs(C.Fragment,{children:[C.jsx(hn,{startIcon:h?C.jsx(W6,{}):C.jsx($6,{}),variant:"text",onMouseDown:f,onKeyDown:m=>c(m.key,f),disabled:i!==So.READY,"data-testid":"button-hide-"+o,children:p}),!h&&C.jsxs(C.Fragment,{children:[C.jsx("div",{style:{marginBottom:"4px"},children:C.jsx(hn,{startIcon:C.jsx(B4e,{}),variant:"contained",size:"small",onMouseDown:a,onKeyDown:m=>c(m.key,a),disabled:i!==So.READY,"data-testid":"button-add-"+o,children:u("manipulation.table.addElement",{content:n})})}),C.jsx(s4e,{component:jy,children:C.jsxs(Y3e,{size:"small","data-testid":"table-"+o,children:[C.jsx(h4e,{children:C.jsxs(R6,{children:[C.jsx(n0,{style:g,children:u("manipulation.table.actions")}),C.jsx(n0,{children:n})]})}),C.jsx(Z3e,{children:b})]})})]})]})};var uC={},U4e=Pf;Object.defineProperty(uC,"__esModule",{value:!0});var Xs=uC.default=void 0,V4e=U4e(Mf()),q4e=C;Xs=uC.default=(0,V4e.default)((0,q4e.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const H6=t=>{const{viewModel:e,clocks:n,downwardClosedOnly:r}=t,{clauses:o,deleteClause:i,changeClause:a}=e,{t:s}=Do(),{executeOnKeyboardClick:l}=zi(),u=k.useMemo(()=>n.map(h=>C.jsx(ZE,{value:h.name,"data-testid":"menu-item-clock-"+h.name,children:h.name},h.name)),[n]),c=k.useMemo(()=>Object.values(Mn).filter(h=>!r||h===Mn.LESSER||h===Mn.LEQ).map(h=>C.jsx(ZE,{value:h,"data-testid":"menu-item-comparison-"+h,children:h},h)),[r]);return C.jsx(C.Fragment,{children:o.map(h=>C.jsxs(Ir,{container:!0,spacing:2,alignItems:"center",children:[C.jsx(Ir,{item:!0,xs:1,children:C.jsx(Ai,{disabled:o.length<=1,onMouseDown:()=>i(e,h.id),onKeyDown:d=>l(d.key,()=>i(e,h.id)),"data-testid":"button-delete-clause-row-"+h.id,children:C.jsx(e0,{title:s("clauses.delete"),children:C.jsx(iC,{})})})}),C.jsx(Ir,{item:!0,xs:4,children:C.jsxs(yf,{fullWidth:!0,children:[C.jsx(_f,{children:s("clauses.input.clock")}),C.jsx(gc,{value:h.clockValue,label:"Clock",onChange:d=>a(e,h.id,"clockValue",d.target.value),error:h.isClockInvalid,"data-testid":"select-clock-row",children:u})]})}),C.jsx(Ir,{item:!0,xs:4,children:C.jsxs(yf,{fullWidth:!0,children:[C.jsx(_f,{children:s("clauses.input.comparison")}),C.jsx(gc,{value:h.comparisonValue,label:"Comparison",onChange:d=>a(e,h.id,"comparisonValue",d.target.value),error:h.isComparisonInvalid,"data-testid":"select-comparison-row",children:c})]})}),C.jsx(Ir,{item:!0,xs:3,children:C.jsx(r0,{margin:"dense",label:s("clauses.input.value"),type:"number",fullWidth:!0,variant:"outlined",value:h.numberInput,onChange:d=>a(e,h.id,"numberInput",d.target.value),InputProps:{inputProps:{min:0}},error:h.isNumberInvalid,"data-testid":"select-comparison-number-row"})})]},h.id))})};function U6(){const t=k.useMemo(()=>({id:Date.now(),clockValue:"",comparisonValue:"",numberInput:"0",isClockInvalid:!0,isComparisonInvalid:!0,isNumberInvalid:!1}),[]),e=k.useCallback(l=>{s({...l,clauses:[t]})},[t]),n=k.useCallback((l,u)=>{if(!u){s({...l,clauses:[t]});return}let c=Date.now();const h=u.clauses.map(d=>({id:c++,clockValue:d.lhs.name,comparisonValue:d.op,numberInput:""+d.rhs,isClockInvalid:!1,isComparisonInvalid:!1,isNumberInvalid:!1}));s({...l,clauses:h})},[t]),r=k.useCallback(l=>{const u=[...l.clauses,{...t,id:Date.now()}];s({...l,clauses:u})},[t]),o=k.useCallback((l,u)=>{if(l.clauses.length<=1)return;const c=l.clauses.filter(h=>h.id!==u);s({...l,clauses:c})},[]),i=k.useCallback((l,u,c,h)=>{const d=l.clauses.map(f=>{if(f.id===u){let p={...f,[c]:h};return c==="clockValue"&&(p.isClockInvalid=!h),c==="comparisonValue"&&(p.isComparisonInvalid=!h),c==="numberInput"&&(p.isNumberInvalid=!h),c==="numberInput"&&h&&(p={...p,[c]:""+Math.max(0,parseInt(h,10))}),p}return f});s({...l,clauses:d})},[]),[a,s]=k.useState({state:"INIT",clauses:[t],isValidationError:!0,resetClauses:e,setClausesFromClockConstraint:n,addClause:r,deleteClause:o,changeClause:i});return k.useEffect(()=>{a.state==="INIT"&&s({...a,state:"READY"})},[a]),k.useEffect(()=>{const l=a.clauses.map(u=>u.isClockInvalid||u.isComparisonInvalid||u.isNumberInvalid).reduce((u,c)=>u||c,!1);s(u=>({...u,isValidationError:l}))},[a.clauses]),a}const V6=t=>{const{open:e,locations:n,clocks:r,locPrevVersion:o,handleClose:i,handleSubmit:a}=t,s=U6(),{clauses:l,setClausesFromClockConstraint:u}=s,{t:c}=Do(),{executeOnKeyboardClick:h}=zi(),{transformToClockConstraint:d}=vc(),[f,p]=k.useState(!0),[g,b]=k.useState(""),[m,v]=k.useState(!1),[y,x]=k.useState(!1),[S,_]=k.useState(""),[E,O]=k.useState(!1),[w,T]=k.useState(!1);k.useEffect(()=>{!e||!f||(o!==void 0&&(b(o.name),O(!!o.isInitial),o.invariant?(T(!0),u(s,o.invariant)):(T(!1),s.resetClauses(s))),p(!1))},[e,f,o,s,u]),k.useEffect(()=>{if(v(g.trim()===""),o){const D=o.name;x(n.filter(P=>P.name!==D).some(P=>P.name.toLowerCase()===g.toLowerCase()))}else x(n.some(D=>D.name.toLowerCase()===g.toLowerCase()));m&&_(c("locDialog.errorNameEmpty")),y&&_(c("locDialog.errorNameExists"))},[g,n,m,y,o,c]);const I=k.useMemo(()=>m||y||w&&s.isValidationError,[m,y,w,s.isValidationError]),R=()=>{b(""),T(!1),s.resetClauses(s),p(!0),i()},j=()=>{if(I)return;const D=w?d(l):void 0;o?a(g,E,D,o.name):(a(g,E,D),b(""),T(!1),s.resetClauses(s)),p(!0)};return C.jsxs(dc,{open:e,onClose:R,children:[C.jsxs(pc,{children:[c(o?"locDialog.editLoc":"locDialog.addLoc"),C.jsx(Ai,{onMouseDown:R,onKeyDown:D=>h(D.key,R),sx:{position:"absolute",right:8,top:8,color:D=>D.palette.grey[500]},children:C.jsx(Xs,{})})]}),C.jsxs(fc,{children:[C.jsx(r0,{margin:"dense",label:c("locDialog.name"),type:"text",fullWidth:!0,variant:"outlined",value:g,onChange:D=>b(D.target.value),error:m||y,helperText:m||y?S:"","data-testid":"input-location-name"}),C.jsx(Xy,{control:C.jsx(Ky,{checked:E,onChange:D=>O(D.target.checked)}),label:c("locDialog.isInitial"),"data-testid":"checkbox-location-isInitial"}),C.jsx(Xy,{control:C.jsx(Ky,{checked:w,onChange:D=>T(D.target.checked)}),label:c("locDialog.hasInvariant"),"data-testid":"checkbox-location-hasInvariant"}),w&&C.jsx(H6,{viewModel:s,clocks:r,downwardClosedOnly:!0}),w&&C.jsx(hn,{variant:"outlined",onMouseDown:()=>s.addClause(s),onKeyDown:D=>h(D.key,()=>s.addClause(s)),sx:{marginTop:2},"data-testid":"button-add-clause",children:c("clauses.button.addClause")})]}),C.jsxs(hc,{children:[C.jsx(hn,{onMouseDown:R,onKeyDown:D=>h(D.key,R),variant:"contained",color:"error",children:c("locDialog.button.cancel")}),C.jsx(hn,{onMouseDown:j,onKeyDown:D=>h(D.key,j),variant:"contained",color:"primary",disabled:I,"data-testid":"button-add-location-ok",children:c(o?"locDialog.button.edit":"locDialog.button.add")})]})]})},q6=t=>{const{open:e,locations:n,switches:r,clocks:o,switchPrevVersion:i,handleClose:a,handleSubmit:s}=t,l=U6(),{clauses:u,setClausesFromClockConstraint:c}=l,{t:h}=Do(),{executeOnKeyboardClick:d}=zi(),{transformToClockConstraint:f}=vc(),{switchesEqual:p}=nC(),[g,b]=k.useState(""),[m,v]=k.useState(""),[y,x]=k.useState(""),[S,_]=k.useState(!1),[E,O]=k.useState(!1),[w,T]=k.useState(!1),[I,R]=k.useState(o.reduce((Q,xe)=>(Q[xe.name]=!1,Q),{})),[j,D]=k.useState(!0),[P,M]=k.useState(!1),N=k.useCallback(Q=>{const xe=Q.map(z=>z.name),ke=o.reduce((z,L)=>(z[L.name]=xe.includes(L.name),z),{});R(ke)},[o]);k.useEffect(()=>{!e||!j||(i!==void 0?(b(i.actionLabel),v(i.source.name),x(i.target.name),N(i.reset),i.guard?(M(!0),c(l,i.guard)):(M(!1),l.resetClauses(l))):N([]),D(!1))},[e,j,o,i,l,c,N]),k.useEffect(()=>{_(g.trim()===""),O(m.trim()===""),T(y.trim()==="")},[g,m,y]);const A=k.useMemo(()=>{let Q;i?Q=r.filter(re=>!p(re,i)):Q=r;const xe={name:m,xCoordinate:0,yCoordinate:0},ke={name:y,xCoordinate:0,yCoordinate:0},z=P&&u.length>0?f(u):void 0,L=o.filter(re=>I[re.name]),B={source:xe,guard:z,actionLabel:g,reset:L,target:ke};return Q.filter(re=>p(re,B)).length>0},[i,r,m,y,P,u,I,g,o,f,p]),$=k.useMemo(()=>{if(A)return C.jsx(oc,{variant:"body2",color:"error",children:h("switchDialog.switchAlreadyExists")})},[A,h]),W=k.useMemo(()=>S||E||w||A||P&&l.isValidationError,[S,E,w,P,A,l.isValidationError]),J=(Q,xe)=>{R(ke=>({...ke,[Q]:xe}))},X=k.useMemo(()=>n.map(Q=>C.jsx(ZE,{value:Q.name,"data-testid":"menu-item-loc-"+Q.name,children:Q.name},Q.name)),[n]),te=()=>{b(""),v(""),x(""),o.forEach(Q=>J(Q.name,!1)),M(!1),l.resetClauses(l),D(!0),a()},se=()=>{if(W)return;const Q=P?f(u):void 0,xe=o.filter(ke=>I[ke.name]).map(ke=>ke.name);i?s(m,g,xe,y,Q,i):(s(m,g,xe,y,Q),b(""),v(""),x(""),o.forEach(ke=>J(ke.name,!1)),M(!1),l.resetClauses(l)),D(!0)},ve=k.useMemo(()=>o.map(Q=>C.jsx(Ir,{item:!0,xs:12,children:C.jsx(Xy,{control:C.jsx(Ky,{checked:!!I[Q.name],onChange:xe=>J(Q.name,xe.target.checked),"data-testid":"checkbox-switch-reset-"+Q.name}),label:h("switchDialog.input.resetClock",{clockName:Q.name})})},Q.name)),[o,I,h]);return C.jsxs(dc,{open:e,onClose:te,PaperProps:{style:{minWidth:"450px"}},children:[C.jsxs(pc,{children:[h(i?"switchDialog.title.editSwitch":"switchDialog.title.addSwitch"),C.jsx(Ai,{onMouseDown:te,onKeyDown:Q=>d(Q.key,te),sx:{position:"absolute",right:8,top:8,color:Q=>Q.palette.grey[500]},children:C.jsx(Xs,{})})]}),C.jsxs(fc,{children:[C.jsx(r0,{margin:"dense",label:h("switchDialog.input.action"),type:"text",fullWidth:!0,variant:"outlined",value:g,onChange:Q=>b(Q.target.value),error:S,helperText:S?h("switchDialog.error.action"):"",style:{marginBottom:"16px"},"data-testid":"input-switch-action"}),C.jsxs(Ir,{container:!0,spacing:2,alignItems:"center",children:[C.jsx(Ir,{item:!0,xs:6,children:C.jsxs(yf,{fullWidth:!0,children:[C.jsx(_f,{children:h("switchDialog.input.source")}),C.jsx(gc,{value:m,onChange:Q=>v(Q.target.value),label:"Source",error:E,"data-testid":"select-switch-source",children:X})]})}),C.jsx(Ir,{item:!0,xs:6,children:C.jsxs(yf,{fullWidth:!0,children:[C.jsx(_f,{children:h("switchDialog.input.target")}),C.jsx(gc,{value:y,onChange:Q=>x(Q.target.value),label:"Target",error:w,"data-testid":"select-switch-target",children:X})]})})]}),C.jsx(Xy,{control:C.jsx(Ky,{checked:P,onChange:Q=>M(Q.target.checked),"data-testid":"checkbox-switch-hasGuard"}),label:h("switchDialog.hasGuard")}),P&&C.jsx(H6,{viewModel:l,clocks:o}),P&&C.jsx(hn,{variant:"outlined",onMouseDown:()=>l.addClause(l),onKeyDown:Q=>d(Q.key,()=>l.addClause(l)),sx:{marginTop:2},"data-testid":"button-add-clause",children:h("clauses.button.addClause")}),C.jsx(KE,{sx:{my:1}}),C.jsx(Ir,{container:!0,spacing:1,alignItems:"center",children:ve}),$]}),C.jsxs(hc,{children:[C.jsx(hn,{onMouseDown:te,onKeyDown:Q=>d(Q.key,te),variant:"contained",color:"error",children:h("switchDialog.button.cancel")}),C.jsx(hn,{onMouseDown:se,onKeyDown:Q=>d(Q.key,se),variant:"contained",color:"primary",disabled:W,"data-testid":"button-add-switch-ok",children:h(i?"switchDialog.button.edit":"switchDialog.button.add")})]})]})},K4e=t=>{const{clock:e,open:n,onClose:r,onDelete:o}=t,{t:i}=Do(),{executeOnKeyboardClick:a}=zi();if(!n)return C.jsx(C.Fragment,{});if(!e)throw Error("Clock for delete-confirm dialog is undefined or null");return C.jsxs(dc,{open:n,onClose:r,"data-testid":"dialog-delete-clock-confirm",children:[C.jsxs(pc,{children:[i("deleteClockConfirmDialog.title",{clockName:e.name}),C.jsx(Ai,{onMouseDown:r,onKeyDown:s=>a(s.key,r),sx:{position:"absolute",right:8,top:8,color:s=>s.palette.grey[500]},children:C.jsx(Xs,{})})]}),C.jsxs(fc,{children:[C.jsx(a6,{children:i("deleteClockConfirmDialog.contentText",{clockName:e.name})}),C.jsx("p",{children:C.jsx("b",{children:i("deleteClockConfirmDialog.contentTextWarning")})})]}),C.jsxs(hc,{children:[C.jsx(hn,{onMouseDown:r,onKeyDown:s=>a(s.key,r),variant:"contained",color:"primary",children:i("deleteClockConfirmDialog.button.cancel")}),C.jsx(hn,{onMouseDown:()=>o(e),onKeyDown:s=>a(s.key,()=>o(e)),variant:"contained",color:"error","data-testid":"button-confirm-delete-clock",children:i("deleteClockConfirmDialog.button.confirm")})]})]})},K6=t=>{const{open:e,clocks:n,prevClockName:r,handleClose:o,handleSubmit:i}=t,{t:a}=Do(),{executeOnKeyboardClick:s}=zi(),[l,u]=k.useState("");k.useEffect(()=>{e&&u(r||"")},[r,e]);const c=k.useMemo(()=>{const g=n.map(b=>b.name);return r?g.filter(b=>b!==r):g},[n,r]),h=k.useMemo(()=>!l||c.includes(l),[l,c]),d=k.useMemo(()=>{if(!h)return"";if(!l)return a("clockDialog.errorNameEmpty");if(c.includes(l))return a("clockDialog.errorNameExists")},[h,l,c,a]),f=()=>{u(""),o()},p=()=>{h||(r?i(l,r):(i(l),u("")))};return C.jsxs(dc,{open:e,onClose:f,PaperProps:{style:{minWidth:"450px"}},children:[C.jsxs(pc,{children:[a(r?"clockDialog.title.editClock":"clockDialog.title.addClock"),C.jsx(Ai,{onMouseDown:f,onKeyDown:g=>s(g.key,f),sx:{position:"absolute",right:8,top:8,color:g=>g.palette.grey[500]},children:C.jsx(Xs,{})})]}),C.jsx(fc,{children:C.jsx(r0,{margin:"dense",label:a("clockDialog.input.name"),type:"text",fullWidth:!0,variant:"outlined",value:l,onChange:g=>u(g.target.value),error:h,helperText:d,style:{marginBottom:"16px"},"data-testid":"input-clock-name"})}),C.jsxs(hc,{children:[C.jsx(hn,{onMouseDown:f,onKeyDown:g=>s(g.key,f),variant:"contained",color:"error",children:a("clockDialog.button.cancel")}),C.jsx(hn,{onMouseDown:p,onKeyDown:g=>s(g.key,p),variant:"contained",color:"primary",disabled:h,"data-testid":"button-add-clock-ok",children:a(r?"clockDialog.button.edit":"clockDialog.button.add")})]})]})},Y4e="/timed-automata-analysis/assets/timed_automata_analyzer_bg-Do-yyFjO.wasm",X4e=async(t={},e)=>{let n;if(e.startsWith("data:")){const r=e.replace(/^data:.*?base64,/,"");let o;if(typeof Buffer=="function"&&typeof Buffer.from=="function")o=Buffer.from(r,"base64");else if(typeof atob=="function"){const i=atob(r);o=new Uint8Array(i.length);for(let a=0;a"u"?(0,SC.require)("util").TextDecoder:TextDecoder;let Y6=new Q4e("utf-8",{ignoreBOM:!0,fatal:!0});Y6.decode();let i0=null;function a0(){return(i0===null||i0.byteLength===0)&&(i0=new Uint8Array(Ae.memory.buffer)),i0}function X6(t,e){return t=t>>>0,Y6.decode(a0().subarray(t,t+e))}const Fi=new Array(128).fill(void 0);Fi.push(void 0,null,!0,!1);let If=Fi.length;function G6(t){If===Fi.length&&Fi.push(Fi.length+1);const e=If;return If=Fi[e],Fi[e]=t,e}function J4e(t){return Fi[t]}function Z4e(t){t<132||(Fi[t]=If,If=t)}function mc(t){const e=J4e(t);return Z4e(t),e}let _o=0;const e6e=typeof TextEncoder>"u"?(0,SC.require)("util").TextEncoder:TextEncoder;let s0=new e6e("utf-8");const t6e=typeof s0.encodeInto=="function"?function(t,e){return s0.encodeInto(t,e)}:function(t,e){const n=s0.encode(t);return e.set(n),{read:t.length,written:n.length}};function cC(t,e,n){if(n===void 0){const s=s0.encode(t),l=e(s.length,1)>>>0;return a0().subarray(l,l+s.length).set(s),_o=s.length,l}let r=t.length,o=e(r,1)>>>0;const i=a0();let a=0;for(;a127)break;i[o+a]=s}if(a!==r){a!==0&&(t=t.slice(a)),o=n(o,r,r=a+t.length*3,1)>>>0;const s=a0().subarray(o+a,o+r),l=t6e(t,s);a+=l.written,o=n(o,r,a,1)>>>0}return _o=a,o}function yc(t,e){if(!(t instanceof e))throw new Error(`expected instance of ${e.name}`);return t.ptr}let bc=null;function l0(){return(bc===null||bc.buffer.detached===!0||bc.buffer.detached===void 0&&bc.buffer!==Ae.memory.buffer)&&(bc=new DataView(Ae.memory.buffer)),bc}function Rf(t,e){const n=e(t.length*4,4)>>>0,r=l0();for(let o=0;o>>0;const n=l0(),r=[];for(let o=t;o"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_clause_free(t>>>0,1));class c0{static __unwrap(e){return e instanceof c0?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,J6.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_clause_free(e,0)}constructor(e,n,r){yc(e,Df);const o=Ae.clause_new(e.__wbg_ptr,n,r);return this.__wbg_ptr=o>>>0,J6.register(this,this.__wbg_ptr,this),this}}const Z6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_clock_free(t>>>0,1));class Df{static __unwrap(e){return e instanceof Df?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z6.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_clock_free(e,0)}constructor(e){const n=cC(e,Ae.__wbindgen_malloc,Ae.__wbindgen_realloc),r=_o,o=Ae.clock_new(n,r);return this.__wbg_ptr=o>>>0,Z6.register(this,this.__wbg_ptr,this),this}}const e$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_clockconstraint_free(t>>>0,1));class dC{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,e$.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_clockconstraint_free(e,0)}constructor(e){const n=Rf(e,Ae.__wbindgen_malloc),r=_o,o=Ae.clockconstraint_new(n,r);return this.__wbg_ptr=o>>>0,e$.register(this,this.__wbg_ptr,this),this}}const t$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_location_free(t>>>0,1));class wc{static __unwrap(e){return e instanceof wc?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,t$.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_location_free(e,0)}constructor(e,n,r){const o=cC(e,Ae.__wbindgen_malloc,Ae.__wbindgen_realloc),i=_o;let a=0;Q6(r)||(yc(r,dC),a=r.__destroy_into_raw());const s=Ae.location_new(o,i,n,a);return this.__wbg_ptr=s>>>0,t$.register(this,this.__wbg_ptr,this),this}}const n$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_switch_free(t>>>0,1));class d0{static __unwrap(e){return e instanceof d0?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,n$.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_switch_free(e,0)}constructor(e,n,r,o,i){yc(e,wc);let a=0;Q6(n)||(yc(n,dC),a=n.__destroy_into_raw());const s=cC(r,Ae.__wbindgen_malloc,Ae.__wbindgen_realloc),l=_o,u=Rf(o,Ae.__wbindgen_malloc),c=_o;yc(i,wc);const h=Ae.switch_new(e.__wbg_ptr,a,s,l,u,c,i.__wbg_ptr);return this.__wbg_ptr=h>>>0,n$.register(this,this.__wbg_ptr,this),this}}const r$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>Ae.__wbg_timedautomaton_free(t>>>0,1));class o${__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,r$.unregister(this),e}free(){const e=this.__destroy_into_raw();Ae.__wbg_timedautomaton_free(e,0)}constructor(e,n,r){const o=Rf(e,Ae.__wbindgen_malloc),i=_o,a=Rf(n,Ae.__wbindgen_malloc),s=_o,l=Rf(r,Ae.__wbindgen_malloc),u=_o,c=Ae.timedautomaton_new(o,i,a,s,l,u);return this.__wbg_ptr=c>>>0,r$.register(this,this.__wbg_ptr,this),this}}function o6e(t){return Df.__unwrap(mc(t))}function i6e(t){return c0.__unwrap(mc(t))}function a6e(t){return wc.__unwrap(mc(t))}function s6e(t){return d0.__unwrap(mc(t))}function l6e(t,e){const n=X6(t,e);return G6(n)}function u6e(t){mc(t)}function c6e(t,e){throw new Error(X6(t,e))}URL=globalThis.URL;const fn=await X4e({"./timed_automata_analyzer_bg.js":{__wbg_clock_unwrap:o6e,__wbg_clause_unwrap:i6e,__wbg_location_unwrap:a6e,__wbg_switch_unwrap:s6e,__wbindgen_string_new:l6e,__wbindgen_object_drop_ref:u6e,__wbindgen_throw:c6e}},Y4e),d6e=fn.memory,h6e=fn.__wbg_clock_free,f6e=fn.clock_new,p6e=fn.__wbg_clause_free,g6e=fn.clause_new,v6e=fn.__wbg_clockconstraint_free,m6e=fn.clockconstraint_new,y6e=fn.__wbg_location_free,b6e=fn.location_new,w6e=fn.__wbg_switch_free,x6e=fn.switch_new,k6e=fn.__wbg_timedautomaton_free,S6e=fn.timedautomaton_new,_6e=fn.findUnreachableLocations,E6e=fn.__wbindgen_malloc,C6e=fn.__wbindgen_realloc,O6e=fn.__wbindgen_add_to_stack_pointer,T6e=fn.__wbindgen_free,P6e=Object.freeze(Object.defineProperty({__proto__:null,__wbg_clause_free:p6e,__wbg_clock_free:h6e,__wbg_clockconstraint_free:v6e,__wbg_location_free:y6e,__wbg_switch_free:w6e,__wbg_timedautomaton_free:k6e,__wbindgen_add_to_stack_pointer:O6e,__wbindgen_free:T6e,__wbindgen_malloc:E6e,__wbindgen_realloc:C6e,clause_new:g6e,clock_new:f6e,clockconstraint_new:m6e,findUnreachableLocations:_6e,location_new:b6e,memory:d6e,switch_new:x6e,timedautomaton_new:S6e},Symbol.toStringTag,{value:"Module"}));G4e(P6e);function M6e(){const t=k.useCallback(l=>new Df(l.name),[]),e=k.useCallback(l=>l.map(t),[t]),n=k.useCallback(l=>{let u;switch(l.op){case Mn.LESSER:u=u0.LESSER;break;case Mn.LEQ:u=u0.LEQ;break;case Mn.GEQ:u=u0.GEQ;break;case Mn.GREATER:u=u0.GREATER;break;case Mn.EQ:throw Error("Comparator EQ not supported by analyzer")}return new c0(t(l.lhs),u,l.rhs)},[t]),r=k.useCallback(l=>{if(!l)return;const u=[];for(let c=0;cnew wc(l.name,!!l.isInitial,r(l.invariant)),[r]),i=k.useCallback(l=>l.map(o),[o]),a=k.useCallback(l=>new d0(o(l.source),r(l.guard),l.actionLabel,e(l.reset),o(l.target)),[o,r,e]),s=k.useCallback(l=>l.map(a),[a]);return{mapTaToAnalyzerModel:k.useCallback(l=>new o$(i(l.locations),e(l.clocks),s(l.switches)),[e,i,s])}}const I6e=t=>{const{open:e,viewModel:n,handleClose:r}=t,{state:o,ta:i,setStateAnalyzing:a,setStateReady:s}=n,{t:l}=Do(),{executeOnKeyboardClick:u}=zi(),{mapTaToAnalyzerModel:c}=M6e(),[h,d]=k.useState(void 0),f=()=>{o===So.READY&&(r(),d(void 0))},p=()=>{a(n);let g=[];const b=c(i);try{g=r6e(b),s(n)}catch(m){s(n),d(C.jsx("p",{children:l("analysisDialog.analysis.error",{msg:m})}));return}if(g.length===0)d(C.jsx("p",{"data-testid":"analysis-result-all-reachable",children:l("analysisDialog.analysis.resultAllReachable")}));else{const m=g.map((y,x)=>C.jsx("li",{children:y},"reach-result-"+x)),v=l("analysisDialog.analysis.resultSomeUnreachable");d(C.jsxs(C.Fragment,{children:[C.jsx("p",{children:v}),C.jsx("ul",{children:m})]}))}};return C.jsxs(dc,{open:e,onClose:f,PaperProps:{style:{minWidth:"450px"}},children:[C.jsxs(pc,{children:[l("analysisDialog.title"),C.jsx(Ai,{onMouseDown:f,onKeyDown:g=>u(g.key,f),sx:{position:"absolute",right:8,top:8,color:g=>g.palette.grey[500]},disabled:o!==So.READY,children:C.jsx(Xs,{})})]}),C.jsxs(fc,{children:[C.jsx("p",{children:l("analysisDialog.description")}),h]}),C.jsxs(hc,{children:[C.jsx(hn,{onMouseDown:f,onKeyDown:g=>u(g.key,f),variant:"contained",color:"error",disabled:o!==So.READY,children:l("analysisDialog.button.close")}),C.jsx(hn,{onMouseDown:p,onKeyDown:g=>u(g.key,p),variant:"contained",color:"primary",disabled:o!==So.READY,"data-testid":"button-start-analysis",children:l("analysisDialog.button.analyze")})]})]})},R6e=t=>{const{open:e,handleClose:n,handleReset:r}=t,{t:o}=Do(),{executeOnKeyboardClick:i}=zi(),a=()=>{n(),r()};return C.jsxs(dc,{open:e,onClose:n,children:[C.jsxs(pc,{children:[o("resetDialog.title"),C.jsx(Ai,{onMouseDown:n,onKeyDown:s=>i(s.key,n),sx:{position:"absolute",right:8,top:8,color:s=>s.palette.grey[500]},children:C.jsx(Xs,{})})]}),C.jsx(fc,{children:C.jsx(a6,{children:o("resetDialog.contentText")})}),C.jsxs(hc,{children:[C.jsx(hn,{onMouseDown:n,onKeyDown:s=>i(s.key,n),variant:"contained",color:"primary",children:o("resetDialog.button.cancel")}),C.jsx(hn,{onMouseDown:a,onKeyDown:s=>i(s.key,a),variant:"contained",color:"error","data-testid":"button-confirm-ta-reset",children:o("resetDialog.button.reset")})]})]})},D6e=t=>{const{viewModel:e}=t,{state:n,ta:r,addLocation:o,editLocation:i,removeLocation:a,addSwitch:s,editSwitch:l,removeSwitch:u,addClock:c,editClock:h,removeClock:d,setStateReset:f}=e,{locations:p,switches:g,clocks:b}=r,{t:m}=Do(),{formatLocationLabelTable:v,formatSwitchTable:y}=y3(),{taUsesClockInAnyConstraint:x}=vc(),{executeOnKeyboardClick:S}=zi(),[_,E]=k.useState(!1),[O,w]=k.useState(!1),[T,I]=k.useState(void 0),[R,j]=k.useState(!1),[D,P]=k.useState(!1),[M,N]=k.useState(void 0),[A,$]=k.useState(!1),[W,J]=k.useState(!1),[X,te]=k.useState(void 0),[se,ve]=k.useState(!1),[Q,xe]=k.useState(void 0),ke=()=>E(!0),z=()=>E(!1),L=k.useCallback(Pe=>{I(p[Pe]),w(!0)},[p]),B=()=>w(!1),re=(Pe,ae,lt)=>{o(e,Pe,ae,lt),E(!1)},V=(Pe,ae,lt,oi)=>{if(!oi)throw Error("handleLocationEdit: prevLocationName is empty or undefined");i(e,Pe,oi,ae,lt),w(!1)},ie=k.useCallback(Pe=>{const ae=p[Pe].name;a(e,ae)},[p,e,a]),Te=k.useMemo(()=>{const Pe=p.map((ae,lt)=>{let oi;return ae.isInitial?oi=C.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[C.jsx(e0,{title:m("manipulation.table.initLocLabel"),children:C.jsx($4e,{fontSize:"small","data-testid":"icon-is-initial-row-"+lt})}),C.jsx(oc,{variant:"body1",style:{marginLeft:4},children:v(ae)})]}):oi=v(ae),{id:lt,displayName:oi}});return C.jsx(lC,{rows:Pe,contentSingular:m("manipulation.table.locSingular"),contentPlural:m("manipulation.table.locPlural"),typeForTestId:"location",state:n,onAddOpen:ke,onEditOpen:L,onDelete:ie})},[p,m,n,v,L,ie]),Ne=()=>j(!0),Oe=()=>j(!1),Le=k.useCallback(Pe=>{N(g[Pe]),P(!0)},[g]),kt=()=>P(!1),Se=(Pe,ae,lt,oi,kC)=>{s(e,Pe,ae,lt,oi,kC),j(!1)},Xt=(Pe,ae,lt,oi,kC,N$)=>{if(!N$)throw Error("handleSwitchEdit: prevSwitch is null or undefined");l(e,N$,Pe,ae,lt,oi,kC),P(!1)},pe=k.useCallback(Pe=>{u(e,g[Pe])},[e,g,u]),ht=k.useMemo(()=>{const Pe=g.map((ae,lt)=>({id:lt,displayName:y(ae)}));return C.jsx(lC,{rows:Pe,contentSingular:m("manipulation.table.switchSingular"),contentPlural:m("manipulation.table.switchPlural"),typeForTestId:"switch",state:n,onAddOpen:Ne,onEditOpen:Le,onDelete:pe})},[g,m,n,y,Le,pe]),Rr=()=>$(!0),Rn=()=>$(!1),Dn=k.useCallback(Pe=>{te(b[Pe].name),J(!0)},[b]),ro=()=>J(!1),Gt=Pe=>{c(e,Pe),$(!1)},oo=(Pe,ae)=>{if(!ae)throw Error("handleClockEdit: prevClockName is null or undefined or empty");h(e,Pe,ae),J(!1)},De=()=>ve(!0),hr=()=>ve(!1),Eo=k.useCallback(Pe=>{hr(),d(e,Pe)},[d,e]),ge=k.useCallback(Pe=>{const ae=b[Pe];x(r,ae)?(xe(ae),De()):Eo(ae)},[b,r,Eo,x]),Ke=k.useMemo(()=>{const Pe=b.map((ae,lt)=>({id:lt,displayName:ae.name}));return C.jsx(lC,{rows:Pe,contentSingular:m("manipulation.table.clockSingular"),contentPlural:m("manipulation.table.clockPlural"),typeForTestId:"clock",state:n,onAddOpen:Rr,onEditOpen:Dn,onDelete:ge})},[b,m,n,Dn,ge]),jt=k.useMemo(()=>[Te,ht,Ke].map((Pe,ae)=>C.jsx("div",{style:{marginBottom:"16px"},children:Pe},ae)),[Te,ht,Ke]),[Co,La]=k.useState(!1),Bf=()=>La(!0),wC=()=>La(!1),[xC,b0]=k.useState(!1),w0=()=>b0(!0),x0=()=>b0(!1),k0=()=>f(e);return C.jsxs(C.Fragment,{children:[C.jsx(hn,{style:{marginBottom:"4px"},onMouseDown:Bf,onKeyDown:Pe=>S(Pe.key,Bf),variant:"contained",color:"primary",size:"small","data-testid":"button-open-analysis",disabled:n!==So.READY,children:m("manipulation.button.reachability")}),C.jsx("br",{}),C.jsx(hn,{style:{marginBottom:"16px"},onMouseDown:w0,onKeyDown:Pe=>S(Pe.key,w0),variant:"contained",color:"error",size:"small","data-testid":"button-open-reset",disabled:n!==So.READY,children:m("manipulation.button.reset")}),jt,C.jsx(I6e,{open:Co,viewModel:e,handleClose:wC}),C.jsx(R6e,{open:xC,handleClose:x0,handleReset:k0}),C.jsx(V6,{open:_,locations:p,clocks:b,handleClose:z,handleSubmit:re,locPrevVersion:void 0}),C.jsx(V6,{open:O,locations:p,clocks:b,handleClose:B,handleSubmit:V,locPrevVersion:T}),C.jsx(q6,{open:R,locations:p,switches:g,clocks:b,handleClose:Oe,handleSubmit:Se,switchPrevVersion:void 0}),C.jsx(q6,{open:D,locations:p,switches:g,clocks:b,handleClose:kt,handleSubmit:Xt,switchPrevVersion:M}),C.jsx(K6,{open:A,clocks:b,handleClose:Rn,handleSubmit:Gt,prevClockName:void 0}),C.jsx(K6,{open:W,clocks:b,handleClose:ro,handleSubmit:oo,prevClockName:X}),C.jsx(K4e,{clock:Q,open:se,onClose:hr,onDelete:Eo})]})};function j6e(){const t=C4e(),{t:e}=Do(),n=k.useRef(null),[r,o]=k.useState(window.innerHeight);return k.useLayoutEffect(()=>{const i=()=>{const a=n.current;if(a){const s=window.getComputedStyle(a),l=parseInt(s.marginTop,10),u=parseInt(s.marginBottom,10),c=a.offsetHeight+l+u;o(window.innerHeight-c)}};return window.addEventListener("resize",i),i(),()=>window.removeEventListener("resize",i)},[]),C.jsxs(C.Fragment,{children:[C.jsxs("h1",{style:{paddingLeft:"16px"},ref:n,children:["\u23F0 ",e("app.title")]}),C.jsx(eBe,{sx:{display:"flex",height:`${r-1}px`,overflow:"hidden"},children:C.jsxs(Ir,{container:!0,sx:{height:"100%"},children:[C.jsx(Ir,{item:!0,xs:12,sm:4,md:3,lg:3,sx:{borderRight:"1px solid #ccc",paddingLeft:"16px",overflowY:"auto",height:"100%"},children:C.jsx(D6e,{viewModel:t})}),C.jsx(Ir,{item:!0,xs:12,sm:8,md:9,lg:9,sx:{overflowY:"hidden",height:"100%"},children:C.jsx(fje,{viewModel:t})})]})})]})}const A6e={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class h0{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||A6e,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{let[a,s]=i;for(let l=0;l{let[a,s]=i;for(let l=0;l{let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n},i$=t=>t==null?"":""+t,N6e=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},z6e=/###/g,a$=t=>t&&t.indexOf("###")>-1?t.replace(z6e,"."):t,s$=t=>!t||typeof t=="string",Af=(t,e,n)=>{const r=typeof e!="string"?e:e.split(".");let o=0;for(;o{const{obj:r,k:o}=Af(t,e,Object);if(r!==void 0||e.length===1){r[o]=n;return}let i=e[e.length-1],a=e.slice(0,e.length-1),s=Af(t,a,Object);for(;s.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=Af(t,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},F6e=(t,e,n,r)=>{const{obj:o,k:i}=Af(t,e,Object);o[i]=o[i]||[],o[i].push(n)},p0=(t,e)=>{const{obj:n,k:r}=Af(t,e);if(n)return n[r]},L6e=(t,e,n)=>{const r=p0(t,n);return r!==void 0?r:p0(e,n)},u$=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):u$(t[r],e[r],n):t[r]=e[r]);return t},xc=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var B6e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const $6e=t=>typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>B6e[e]):t;class W6e{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const H6e=[" ",",","?","!",";"],U6e=new W6e(20),V6e=(t,e,n)=>{e=e||"",n=n||"";const r=H6e.filter(a=>e.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const o=U6e.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(t);if(!i){const a=t.indexOf(n);a>0&&!o.test(t.substring(0,a))&&(i=!0)}return i},hC=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let o=t;for(let i=0;i-1&&lt&&t.indexOf("_")>0?t.replace("_","-"):t;class c$ extends f0{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,n],r&&(Array.isArray(r)?s.push(...r):typeof r=="string"&&i?s.push(...r.split(i)):s.push(r)));const l=p0(this.data,s);return!l&&!n&&!r&&e.indexOf(".")>-1&&(e=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||typeof r!="string"?l:hC(this.data&&this.data[e]&&this.data[e][n],r,i)}addResource(e,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[e,n];r&&(s=s.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(s=e.split("."),o=n,n=s[1]),this.addNamespaces(n),l$(this.data,s,o),i.silent||this.emit("added",e,n,r,o)}addResources(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Array.isArray(r[i]))&&this.addResource(e,n,i,r[i],{silent:!0});o.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[e,n];e.indexOf(".")>-1&&(s=e.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let l=p0(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?u$(l,r,i):l={...l,...r},l$(this.data,s,l),a.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var d$={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,o){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,n,r,o))}),e}};const h$={};class v0 extends f0{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),N6e(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ri.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,n);return r&&r.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const a=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!V6e(e,r,o);if(a&&!s){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const u=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(o)}return typeof i=="string"&&(i=[i]),{key:e,namespaces:i}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],n),l=s[s.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const y=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${y}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${y}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:a}const h=this.resolve(e,n);let d=h&&h.res;const f=h&&h.usedKey||a,p=h&&h.exactUsedKey||a,g=Object.prototype.toString.apply(d),b=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&d&&typeof d!="string"&&typeof d!="boolean"&&typeof d!="number"&&b.indexOf(g)<0&&!(typeof m=="string"&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(h.res=y,h.usedParams=this.getUsedParamsDetails(n),h):y}if(i){const y=Array.isArray(d),x=y?[]:{},S=y?p:f;for(const _ in d)if(Object.prototype.hasOwnProperty.call(d,_)){const E=`${S}${i}${_}`;x[_]=this.translate(E,{...n,joinArrays:!1,ns:s}),x[_]===E&&(x[_]=d[_])}d=x}}else if(v&&typeof m=="string"&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,e,n,r));else{let y=!1,x=!1;const S=n.count!==void 0&&typeof n.count!="string",_=v0.hasDefaultValue(n),E=S?this.pluralResolver.getSuffix(u,n.count,n):"",O=n.ordinal&&S?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",w=S&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),T=w&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${E}`]||n[`defaultValue${O}`]||n.defaultValue;!this.isValidLookup(d)&&_&&(y=!0,d=T),this.isValidLookup(d)||(x=!0,d=a);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:d,R=_&&T!==d&&this.options.updateMissing;if(x||y||R){if(this.logger.log(R?"updateKey":"missingKey",u,l,a,R?T:d),i){const M=this.resolve(a,{...n,keySeparator:!1});M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let j=[];const D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&D&&D[0])for(let M=0;M{const $=_&&A!==d?A:I;this.options.missingKeyHandler?this.options.missingKeyHandler(M,l,N,$,R,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(M,l,N,$,R,n),this.emit("missingKey",M,l,N,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?j.forEach(M=>{const N=this.pluralResolver.getSuffixes(M,n);w&&n[`defaultValue${this.options.pluralSeparator}zero`]&&N.indexOf(`${this.options.pluralSeparator}zero`)<0&&N.push(`${this.options.pluralSeparator}zero`),N.forEach(A=>{P([M],a+A,n[`defaultValue${A}`]||T)})}):P(j,a,T))}d=this.extendTranslation(d,e,n,h,r),x&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${a}`),(x||y)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,y?d:void 0):d=this.options.parseMissingKeyHandler(d))}return o?(h.res=d,h.usedParams=this.getUsedParamsDetails(n),h):d}extendTranslation(e,n,r,o,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof e=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=e.match(this.interpolator.nestingRegexp);c=d&&d.length}let h=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,r.lng||this.language||o.usedLng,r),u){const d=e.match(this.interpolator.nestingRegexp),f=d&&d.length;c1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,a,s;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;o=c;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const d=n.count!==void 0&&typeof n.count!="string",f=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(b=>{this.isValidLookup(r)||(s=b,!h$[`${g[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(h$[`${g[0]}-${b}`]=!0,this.logger.warn(`key "${o}" for languages "${g.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(m=>{if(this.isValidLookup(r))return;a=m;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,m,b,n);else{let x;d&&(x=this.pluralResolver.getSuffix(m,n.count,n));const S=`${this.options.pluralSeparator}zero`,_=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(v.push(c+x),n.ordinal&&x.indexOf(_)===0&&v.push(c+x.replace(_,this.options.pluralSeparator)),f&&v.push(c+S)),p){const E=`${c}${this.options.contextSeparator}${n.context}`;v.push(E),d&&(v.push(E+x),n.ordinal&&x.indexOf(_)===0&&v.push(E+x.replace(_,this.options.pluralSeparator)),f&&v.push(E+S))}}let y;for(;y=v.pop();)this.isValidLookup(r)||(i=y,r=this.getResource(m,b,y,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,o):this.resourceStore.getResource(e,n,r,o)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&typeof e.replace!="string";let o=r?e.replace:e;if(r&&typeof e.count<"u"&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}const fC=t=>t.charAt(0).toUpperCase()+t.slice(1);class f${constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ri.create("languageUtils")}getScriptPartFromCode(e){if(e=g0(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=g0(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=fC(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=fC(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=fC(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o||!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):typeof e=="string"&&i(this.formatLanguageCode(e)),r.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}let q6e=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],K6e={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const Y6e=["v1","v2","v3"],X6e=["v4"],p$={zero:0,one:1,two:2,few:3,many:4,other:5},G6e=()=>{const t={};return q6e.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:K6e[e.fc]}})}),t};class Q6e{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=ri.create("pluralResolver"),(!this.options.compatibilityJSON||X6e.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=G6e(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=g0(e==="dev"?"en":e),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const a=new Intl.PluralRules(r,{type:o});return this.pluralRulesCache[i]=a,a}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(o=>`${n}${o}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>p$[o]-p$[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(e,o,n)):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(e,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const r=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let o=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Y6e.includes(this.options.compatibilityJSON)}}const g$=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=L6e(t,e,n);return!i&&o&&typeof n=="string"&&(i=hC(t,n,r),i===void 0&&(i=hC(e,n,r))),i},pC=t=>t.replace(/\$/g,"$$$$");class J6e{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ri.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:h,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:b,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=n!==void 0?n:$6e,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?xc(i):a||"{{",this.suffix=s?xc(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?xc(d):f||xc("$t("),this.nestingSuffix=p?xc(p):g||xc(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=m||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,o){let i,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=d=>{if(d.indexOf(this.formatSeparator)<0){const b=g$(n,l,d,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...o,...n,interpolationkey:d}):b}const f=d.split(this.formatSeparator),p=f.shift().trim(),g=f.join(this.formatSeparator).trim();return this.format(g$(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...o,...n,interpolationkey:p})};this.resetRegExp();const c=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:d=>pC(d)},{regex:this.regexp,safeValue:d=>this.escapeValue?pC(this.escape(d)):pC(d)}].forEach(d=>{for(s=0;i=d.regex.exec(e);){const f=i[1].trim();if(a=u(f),a===void 0)if(typeof c=="function"){const g=c(e,i,o);a=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,f))a="";else if(h){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${e}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=i$(a));const p=d.safeValue(a);if(e=e.replace(i[0],p),h?(d.regex.lastIndex+=a.length,d.regex.lastIndex-=i[0].length):d.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,a;const s=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const h=l.split(new RegExp(`${c}[ ]*{`));let d=`{${h[1]}`;l=h[0],d=this.interpolate(d,a);const f=d.match(/'/g),p=d.match(/"/g);(f&&f.length%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{a=JSON.parse(d),u&&(a={...u,...a})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${c}${d}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;o=this.nestingRegexp.exec(e);){let l=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const c=o[1].split(this.formatSeparator).map(h=>h.trim());o[1]=c.shift(),l=c,u=!0}if(i=n(s.call(this,o[1].trim(),a),a),i&&o[0]===e&&typeof i!="string")return i;typeof i!="string"&&(i=i$(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((c,h)=>this.format(c,h,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),e=e.replace(o[0],i),this.regexp.lastIndex=0}return e}}const Z6e=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);e==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):e==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(i){const[a,...s]=i.split(":"),l=s.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=l),l==="false"&&(n[u]=!1),l==="true"&&(n[u]=!0),isNaN(l)||(n[u]=parseInt(l,10))}})}return{formatName:e,formatOptions:n}},kc=t=>{const e={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=e[a];return s||(s=t(g0(r),o),e[a]=s),s(n)}};class e$e{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ri.create("formatter"),this.options=e,this.formats={number:kc((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:kc((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:kc((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:kc((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:kc((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(e)}init(e){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=kc(n)}format(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(s=>s.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,s)=>{const{formatName:l,formatOptions:u}=Z6e(s);if(this.formats[l]){let c=a;try{const h=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},d=h.locale||h.lng||o.locale||o.lng||r;c=this.formats[l](a,d,{...u,...o,...h})}catch(h){this.logger.warn(h)}return c}else this.logger.warn(`there was no format function for ${l}`);return a},e)}}const t$e=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class n$e extends f0{constructor(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=ri.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(e,n,r,o){const i={},a={},s={},l={};return e.forEach(u=>{let c=!0;n.forEach(h=>{const d=`${u}|${h}`;!r.reload&&this.store.hasResourceBundle(u,h)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?a[d]===void 0&&(a[d]=!0):(this.state[d]=1,c=!1,a[d]===void 0&&(a[d]=!0),i[d]===void 0&&(i[d]=!0),l[h]===void 0&&(l[h]=!0)))}),c||(s[u]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(e,n,r){const o=e.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),!n&&r&&this.store.addResourceBundle(i,a,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const s={};this.queue.forEach(l=>{F6e(l.loaded,[i],a),t$e(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const c=l.loaded[u];c.length&&c.forEach(h=>{s[u][h]===void 0&&(s[u][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&c&&o{this.read.call(this,e,n,r,o+1,i*2,a)},i);return}a(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(c=>s(null,c)).catch(s):s(null,u)}catch(u){s(u)}return}return l(e,n,s)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(e,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,s),this.loaded(e,a,s)})}saveMissing(e,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,n,r,o,l):c=u(e,n,r,o),c&&typeof c.then=="function"?c.then(h=>s(null,h)).catch(s):s(null,c)}catch(c){s(c)}else u(e,n,r,o,s,l)}!e||!e[0]||this.store.addResource(e[0],n,r,o)}}}const v$=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),m$=t=>(typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),m0=()=>{},r$e=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{typeof t[e]=="function"&&(t[e]=t[e].bind(t))})};class Nf extends f0{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=m$(e),this.services={},this.logger=ri,this.modules={external:[]},r$e(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=v$();this.options={...o,...this.options,...m$(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=l=>l?typeof l=="function"?new l:l:null;if(!this.options.isClone){this.modules.logger?ri.init(i(this.modules.logger),this.options):ri.init(null,this.options);let l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=e$e);const u=new f$(this.options);this.store=new c$(this.options.resources,this.options);const c=this.services;c.logger=ri,c.resourceStore=this.store,c.languageUtils=u,c.pluralResolver=new Q6e(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(c.formatter=i(l),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new J6e(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new n$e(i(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(h){for(var d=arguments.length,f=new Array(d>1?d-1:0),p=1;p1?d-1:0),p=1;p{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=m0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(l=>{this[l]=function(){return e.store[l](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(l=>{this[l]=function(){return e.store[l](...arguments),e}});const a=jf(),s=()=>{const l=(u,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(c),r(u,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return l(null,this.t.bind(this));this.changeLanguage(this.options.lng,l)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m0;const r=typeof e=="string"?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const o=[],i=a=>{!a||a==="cimode"||this.services.languageUtils.toResolveHierarchy(a).forEach(s=>{s!=="cimode"&&o.indexOf(s)<0&&o.push(s)})};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>i(a)),this.options.preload&&this.options.preload.forEach(a=>i(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(e,n,r){const o=jf();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=m0),this.services.backendConnector.reload(e,n,i=>{o.resolve(),r(i)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&d$.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const o=jf();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},s=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{a(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),o}getFixedT(e,n,r){var o=this;const i=function(a,s){let l;if(typeof s!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),h=2;h`${l.keyPrefix}${d}${p}`):f=l.keyPrefix?`${l.keyPrefix}${d}${a}`:a,o.t(f,l)};return typeof e=="string"?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!o||a(i,e)))}loadNamespaces(e,n){const r=jf();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=jf();typeof e=="string"&&(e=[e]);const o=this.options.preload||[],i=e.filter(a=>o.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new f$(v$());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Nf(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m0;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},i=new Nf(o);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new c$(this.store.data,o),i.services.resourceStore=i.store),i.translator=new v0(i.services,o),i.translator.on("*",function(a){for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}const y$=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,s$e=(t,e,n)=>{const r=n||{};r.path=r.path||"/";const o=encodeURIComponent(e);let i=`${t}=${o}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!y$.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!y$.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},b$={create(t,e,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=s$e(t,encodeURIComponent(e),o)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let r=0;r-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const i=o.substring(1).split("&");for(let a=0;a0&&i[a].substring(0,s)===e&&(n=i[a].substring(s+1))}}return n}};let zf=null;const w$=()=>{if(zf!==null)return zf;try{zf=window!=="undefined"&&window.localStorage!==null;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{zf=!1}return zf};var c$e={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&w$())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&w$()&&window.localStorage.setItem(n,t)}};let Ff=null;const x$=()=>{if(Ff!==null)return Ff;try{Ff=window!=="undefined"&&window.sessionStorage!==null;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Ff=!1}return Ff};var d$e={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&x$())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&x$()&&window.sessionStorage.setItem(n,t)}},h$e={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let i=0;i0?e:void 0}},f$e={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},p$e={name:"path",lookup(t){var r;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(r=n[typeof e=="number"?e:0])==null?void 0:r.replace("/",""):void 0}},g$e={name:"subdomain",lookup(t){var o,i;let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,r=typeof window<"u"&&((i=(o=window.location)==null?void 0:o.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function v$e(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t}}class k${constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=a$e(n,this.options||{},v$e()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(l$e),this.addDetector(u$e),this.addDetector(c$e),this.addDetector(d$e),this.addDetector(h$e),this.addDetector(f$e),this.addDetector(p$e),this.addDetector(g$e)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let n=[];return e.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}k$.type="languageDetector";function gC(t){"@babel/helpers - typeof";return gC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gC(t)}function S$(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":gC(XMLHttpRequest))==="object"}function m$e(t){return!!t&&typeof t.then=="function"}function y$e(t){return m$e(t)?t:Promise.resolve(t)}function b$e(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vC={exports:{}},mC={exports:{}},_$;function w$e(){return _$||(_$=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Qt<"u"&&Qt,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(a){var s=typeof i<"u"&&i||typeof self<"u"&&self||typeof s<"u"&&s,l={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function u(P){return P&&DataView.prototype.isPrototypeOf(P)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(P){return P&&c.indexOf(Object.prototype.toString.call(P))>-1};function d(P){if(typeof P!="string"&&(P=String(P)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(P)||P==="")throw new TypeError('Invalid character in header field name: "'+P+'"');return P.toLowerCase()}function f(P){return typeof P!="string"&&(P=String(P)),P}function p(P){var M={next:function(){var N=P.shift();return{done:N===void 0,value:N}}};return l.iterable&&(M[Symbol.iterator]=function(){return M}),M}function g(P){this.map={},P instanceof g?P.forEach(function(M,N){this.append(N,M)},this):Array.isArray(P)?P.forEach(function(M){this.append(M[0],M[1])},this):P&&Object.getOwnPropertyNames(P).forEach(function(M){this.append(M,P[M])},this)}g.prototype.append=function(P,M){P=d(P),M=f(M);var N=this.map[P];this.map[P]=N?N+", "+M:M},g.prototype.delete=function(P){delete this.map[d(P)]},g.prototype.get=function(P){return P=d(P),this.has(P)?this.map[P]:null},g.prototype.has=function(P){return this.map.hasOwnProperty(d(P))},g.prototype.set=function(P,M){this.map[d(P)]=f(M)},g.prototype.forEach=function(P,M){for(var N in this.map)this.map.hasOwnProperty(N)&&P.call(M,this.map[N],N,this)},g.prototype.keys=function(){var P=[];return this.forEach(function(M,N){P.push(N)}),p(P)},g.prototype.values=function(){var P=[];return this.forEach(function(M){P.push(M)}),p(P)},g.prototype.entries=function(){var P=[];return this.forEach(function(M,N){P.push([N,M])}),p(P)},l.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function b(P){if(P.bodyUsed)return Promise.reject(new TypeError("Already read"));P.bodyUsed=!0}function m(P){return new Promise(function(M,N){P.onload=function(){M(P.result)},P.onerror=function(){N(P.error)}})}function v(P){var M=new FileReader,N=m(M);return M.readAsArrayBuffer(P),N}function y(P){var M=new FileReader,N=m(M);return M.readAsText(P),N}function x(P){for(var M=new Uint8Array(P),N=new Array(M.length),A=0;A-1?M:P}function w(P,M){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');M=M||{};var N=M.body;if(P instanceof w){if(P.bodyUsed)throw new TypeError("Already read");this.url=P.url,this.credentials=P.credentials,M.headers||(this.headers=new g(P.headers)),this.method=P.method,this.mode=P.mode,this.signal=P.signal,!N&&P._bodyInit!=null&&(N=P._bodyInit,P.bodyUsed=!0)}else this.url=String(P);if(this.credentials=M.credentials||this.credentials||"same-origin",(M.headers||!this.headers)&&(this.headers=new g(M.headers)),this.method=O(M.method||this.method||"GET"),this.mode=M.mode||this.mode||null,this.signal=M.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(M.cache==="no-store"||M.cache==="no-cache")){var A=/([?&])_=[^&]*/;if(A.test(this.url))this.url=this.url.replace(A,"$1_="+new Date().getTime());else{var $=/\?/;this.url+=($.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})};function T(P){var M=new FormData;return P.trim().split("&").forEach(function(N){if(N){var A=N.split("="),$=A.shift().replace(/\+/g," "),W=A.join("=").replace(/\+/g," ");M.append(decodeURIComponent($),decodeURIComponent(W))}}),M}function I(P){var M=new g,N=P.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(A){return A.indexOf(` +`)===0?A.substr(1,A.length):A}).forEach(function(A){var $=A.split(":"),W=$.shift().trim();if(W){var J=$.join(":").trim();M.append(W,J)}}),M}_.call(w.prototype);function R(P,M){if(!(this instanceof R))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');M||(M={}),this.type="default",this.status=M.status===void 0?200:M.status,this.ok=this.status>=200&&this.status<300,this.statusText=M.statusText===void 0?"":""+M.statusText,this.headers=new g(M.headers),this.url=M.url||"",this._initBody(P)}_.call(R.prototype),R.prototype.clone=function(){return new R(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},R.error=function(){var P=new R(null,{status:0,statusText:""});return P.type="error",P};var j=[301,302,303,307,308];R.redirect=function(P,M){if(j.indexOf(M)===-1)throw new RangeError("Invalid status code");return new R(null,{status:M,headers:{location:P}})},a.DOMException=s.DOMException;try{new a.DOMException}catch{a.DOMException=function(P,M){this.message=P,this.name=M;var N=Error(P);this.stack=N.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function D(P,M){return new Promise(function(N,A){var $=new w(P,M);if($.signal&&$.signal.aborted)return A(new a.DOMException("Aborted","AbortError"));var W=new XMLHttpRequest;function J(){W.abort()}W.onload=function(){var te={status:W.status,statusText:W.statusText,headers:I(W.getAllResponseHeaders()||"")};te.url="responseURL"in W?W.responseURL:te.headers.get("X-Request-URL");var se="response"in W?W.response:W.responseText;setTimeout(function(){N(new R(se,te))},0)},W.onerror=function(){setTimeout(function(){A(new TypeError("Network request failed"))},0)},W.ontimeout=function(){setTimeout(function(){A(new TypeError("Network request failed"))},0)},W.onabort=function(){setTimeout(function(){A(new a.DOMException("Aborted","AbortError"))},0)};function X(te){try{return te===""&&s.location.href?s.location.href:te}catch{return te}}W.open($.method,X($.url),!0),$.credentials==="include"?W.withCredentials=!0:$.credentials==="omit"&&(W.withCredentials=!1),"responseType"in W&&(l.blob?W.responseType="blob":l.arrayBuffer&&$.headers.get("Content-Type")&&$.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(W.responseType="arraybuffer")),M&&typeof M.headers=="object"&&!(M.headers instanceof g)?Object.getOwnPropertyNames(M.headers).forEach(function(te){W.setRequestHeader(te,f(M.headers[te]))}):$.headers.forEach(function(te,se){W.setRequestHeader(se,te)}),$.signal&&($.signal.addEventListener("abort",J),W.onreadystatechange=function(){W.readyState===4&&$.signal.removeEventListener("abort",J)}),W.send(typeof $._bodyInit>"u"?null:$._bodyInit)})}return D.polyfill=!0,s.fetch||(s.fetch=D,s.Headers=g,s.Request=w,s.Response=R),a.Headers=g,a.Request=w,a.Response=R,a.fetch=D,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=n.fetch?n:r;e=o.fetch,e.default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}(mC,mC.exports)),mC.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof Qt<"u"&&Qt.fetch?n=Qt.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof b$e<"u"&&typeof window>"u"){var r=n||w$e();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(vC,vC.exports);var E$=vC.exports;const C$=Bi(E$),O$=Oo({__proto__:null,default:C$},[E$]);function T$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function P$(t){for(var e=1;e"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var i=typeof t.requestOptions=="function"?t.requestOptions(n):t.requestOptions,a=P$({method:n?"POST":"GET",body:n?t.stringify(n):void 0,headers:o},I$?{}:i),s=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{M$(e,a,r,s)}catch(l){if(!i||Object.keys(i).length===0||!l.message||l.message.indexOf("not implemented")<0)return r(l);try{Object.keys(i).forEach(function(u){delete a[u]}),M$(e,a,r,s),I$=!0}catch(u){r(u)}}},E$e=function(t,e,n,r){n&&Gs(n)==="object"&&(n=yC("",n).slice(1)),t.queryStringParams&&(e=yC(e,t.queryStringParams));try{var o;Lf?o=new Lf:o=new y0("MSXML2.XMLHTTP.3.0"),o.open(n?"POST":"GET",e,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=t.customHeaders;if(i=typeof i=="function"?i():i,i)for(var a in i)o.setRequestHeader(a,i[a]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(s){console&&console.log(s)}},C$e=function(t,e,n,r){if(typeof n=="function"&&(r=n,n=void 0),r=r||function(){},Li&&e.indexOf("file:")!==0)return _$e(t,e,n,r);if(S$()||typeof ActiveXObject=="function")return E$e(t,e,n,r);r(new Error("No fetch and no xhr implementation found!"))};function Sc(t){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sc(t)}function R$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function bC(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};O$e(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return P$e(t,[{key:"init",value:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=e,this.options=bC(bC(bC({},I$e()),this.options||{}),r),this.allOptions=o,this.services&&this.options.reloadInterval){var i=setInterval(function(){return n.reload()},this.options.reloadInterval);Sc(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(e,n,r){this._readAny(e,e,n,n,r)}},{key:"read",value:function(e,n,r){this._readAny([e],e,[n],n,r)}},{key:"_readAny",value:function(e,n,r,o,i){var a=this,s=this.options.loadPath;typeof this.options.loadPath=="function"&&(s=this.options.loadPath(e,r)),s=y$e(s),s.then(function(l){if(!l)return i(null,{});var u=a.services.interpolator.interpolate(l,{lng:e.join("+"),ns:r.join("+")});a.loadUrl(u,i,n,o)})}},{key:"loadUrl",value:function(e,n,r,o){var i=this,a=typeof r=="string"?[r]:r,s=typeof o=="string"?[o]:o,l=this.options.parseLoadPayload(a,s);this.options.request(this.options,e,l,function(u,c){if(c&&(c.status>=500&&c.status<600||!c.status))return n("failed loading "+e+"; status code: "+c.status,!0);if(c&&c.status>=400&&c.status<500)return n("failed loading "+e+"; status code: "+c.status,!1);if(!c&&u&&u.message&&u.message.toLowerCase().indexOf("failed")>-1&&(u.message.indexOf("fetch")>-1||u.message.toLowerCase().indexOf("network")>-1))return n("failed loading "+e+": "+u.message,!0);if(u)return n(u,!1);var h,d;try{typeof c.data=="string"?h=i.options.parse(c.data,r,o):h=c.data}catch{d="failed parsing "+e+" to json"}if(d)return n(d,!1);n(null,h)})}},{key:"create",value:function(e,n,r,o,i){var a=this;if(this.options.addPath){typeof e=="string"&&(e=[e]);var s=this.options.parsePayload(n,r,o),l=0,u=[],c=[];e.forEach(function(h){var d=a.options.addPath;typeof a.options.addPath=="function"&&(d=a.options.addPath(h,n));var f=a.services.interpolator.interpolate(d,{lng:h,ns:n});a.options.request(a.options,f,s,function(p,g){l+=1,u.push(p),c.push(g),l===e.length&&typeof i=="function"&&i(u,c)})})}}},{key:"reload",value:function(){var e=this,n=this.services,r=n.backendConnector,o=n.languageUtils,i=n.logger,a=r.language;if(!(a&&a.toLowerCase()==="cimode")){var s=[],l=function(u){var c=o.toResolveHierarchy(u);c.forEach(function(h){s.indexOf(h)<0&&s.push(h)})};l(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(u){return l(u)}),s.forEach(function(u){e.allOptions.ns.forEach(function(c){r.read(u,c,"read",null,null,function(h,d){h&&i.warn("loading namespace ".concat(c," for language ").concat(u," failed"),h),!h&&d&&i.log("loaded namespace ".concat(c," for language ").concat(u),d),r.loaded("".concat(u,"|").concat(c),h,d)})})})}}}])}();A$.type="backend",In.use(A$).use(k$).use(bH).init({fallbackLng:"en",debug:!1,supportedLngs:["de","en"],interpolation:{escapeValue:!1},backend:{loadPath:"/timed-automata-analysis/locales/{{lng}}/{{ns}}.json"}}),P0.createRoot(document.getElementById("root")).render(C.jsx(io.StrictMode,{children:C.jsx(j6e,{})}))})()});export default A$e(); diff --git a/assets/timed_automata_analyzer_bg-Do-yyFjO.wasm b/assets/timed_automata_analyzer_bg-Do-yyFjO.wasm new file mode 100644 index 0000000..ff1853f Binary files /dev/null and b/assets/timed_automata_analyzer_bg-Do-yyFjO.wasm differ diff --git a/assets/timed_automata_analyzer_bg-La1nU_Yn.wasm b/assets/timed_automata_analyzer_bg-La1nU_Yn.wasm deleted file mode 100644 index 07299a8..0000000 Binary files a/assets/timed_automata_analyzer_bg-La1nU_Yn.wasm and /dev/null differ diff --git a/index.html b/index.html index 7ac5bee..6c2b97b 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ TA Analysis - + diff --git a/locales/de/translation.json b/locales/de/translation.json index 563fff7..e047ed5 100644 --- a/locales/de/translation.json +++ b/locales/de/translation.json @@ -1,6 +1,7 @@ { "app.title": "Analyse von Timed Automata", "manipulation.button.reachability": "Erreichbarkeit", + "manipulation.button.reset": "TA zurücksetzen", "manipulation.table.showContent": "{{content}} ausklappen", "manipulation.table.hideContent": "{{content}} einklappen", "manipulation.table.addElement": "{{content}} hinzufügen", @@ -21,6 +22,10 @@ "analysisDialog.analysis.resultSomeUnreachable": "Die folgenden Orte sind unerreichbar:", "analysisDialog.button.close": "Schließen", "analysisDialog.button.analyze": "Starten", + "resetDialog.title": "Zurücksetzen bestätigen", + "resetDialog.contentText": "Bist du sicher, dass du den TA zurücksetzen möchtest? Alle Änderungen gehen dabei verloren.", + "resetDialog.button.cancel": "Abbrechen", + "resetDialog.button.reset": "Zurücksetzen", "locDialog.errorNameEmpty": "Name darf nicht leer sein", "locDialog.errorNameExists": "Name wird bereits verwendet", "locDialog.editLoc": "Ort bearbeiten", diff --git a/locales/en/translation.json b/locales/en/translation.json index 6de7ada..be1f978 100644 --- a/locales/en/translation.json +++ b/locales/en/translation.json @@ -1,6 +1,7 @@ { "app.title": "Timed-Automata Analysis", "manipulation.button.reachability": "Reachability", + "manipulation.button.reset": "Reset TA", "manipulation.table.showContent": "Show {{content}}", "manipulation.table.hideContent": "Hide {{content}}", "manipulation.table.addElement": "Add {{content}}", @@ -21,6 +22,10 @@ "analysisDialog.analysis.resultSomeUnreachable": "The following locations are unreachable:", "analysisDialog.button.close": "Close", "analysisDialog.button.analyze": "Analyze", + "resetDialog.title": "Confirm Reset", + "resetDialog.contentText": "Are you sure that you want to reset the TA? All changes will be lost.", + "resetDialog.button.cancel": "Cancel", + "resetDialog.button.reset": "Reset", "locDialog.errorNameEmpty": "Name cannot be empty", "locDialog.errorNameExists": "Name already exists", "locDialog.editLoc": "Edit Location",