jvcli 2.0.9__py3-none-any.whl → 2.0.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jvcli/__init__.py +1 -1
- jvcli/api.py +3 -39
- jvcli/client/lib/widgets.py +4 -2
- jvcli/commands/auth.py +3 -3
- jvcli/commands/studio.py +210 -48
- jvcli/studio/assets/index-DDV79SDu.js +213 -0
- jvcli/studio/assets/index-DdMMONxd.css +1 -0
- jvcli/studio/index.html +2 -2
- jvcli/studio-auth/assets/index-Bh6lyeXA.js +218 -0
- jvcli/studio-auth/assets/index-DdMMONxd.css +1 -0
- jvcli/studio-auth/index.html +15 -0
- jvcli/studio-auth/jac_logo.png +0 -0
- jvcli/studio-auth/tauri.svg +6 -0
- jvcli/studio-auth/vite.svg +1 -0
- {jvcli-2.0.9.dist-info → jvcli-2.0.10.dist-info}/METADATA +1 -1
- {jvcli-2.0.9.dist-info → jvcli-2.0.10.dist-info}/RECORD +20 -14
- jvcli/studio/assets/index-BtFItD2q.js +0 -156
- jvcli/studio/assets/index-CIEsu-TC.css +0 -1
- {jvcli-2.0.9.dist-info → jvcli-2.0.10.dist-info}/LICENSE +0 -0
- {jvcli-2.0.9.dist-info → jvcli-2.0.10.dist-info}/WHEEL +0 -0
- {jvcli-2.0.9.dist-info → jvcli-2.0.10.dist-info}/entry_points.txt +0 -0
- {jvcli-2.0.9.dist-info → jvcli-2.0.10.dist-info}/top_level.txt +0 -0
@@ -1,156 +0,0 @@
|
|
1
|
-
var GE=e=>{throw TypeError(e)};var Dg=(e,r,t)=>r.has(e)||GE("Cannot "+t);var T=(e,r,t)=>(Dg(e,r,"read from private field"),t?t.call(e):r.get(e)),ye=(e,r,t)=>r.has(e)?GE("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),ne=(e,r,t,n)=>(Dg(e,r,"write to private field"),n?n.call(e,t):r.set(e,t),t),Ee=(e,r,t)=>(Dg(e,r,"access private method"),t);var Jf=(e,r,t,n)=>({set _(i){ne(e,r,i,t)},get _(){return T(e,r,n)}});function Kz(e,r){for(var t=0;t<r.length;t++){const n=r[t];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();function k2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var I2={exports:{}},Gp={},R2={exports:{}},we={};/**
|
2
|
-
* @license React
|
3
|
-
* react.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var Ud=Symbol.for("react.element"),Gz=Symbol.for("react.portal"),qz=Symbol.for("react.fragment"),Yz=Symbol.for("react.strict_mode"),Xz=Symbol.for("react.profiler"),Qz=Symbol.for("react.provider"),Zz=Symbol.for("react.context"),Jz=Symbol.for("react.forward_ref"),e4=Symbol.for("react.suspense"),t4=Symbol.for("react.memo"),r4=Symbol.for("react.lazy"),qE=Symbol.iterator;function n4(e){return e===null||typeof e!="object"?null:(e=qE&&e[qE]||e["@@iterator"],typeof e=="function"?e:null)}var A2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M2=Object.assign,N2={};function wu(e,r,t){this.props=e,this.context=r,this.refs=N2,this.updater=t||A2}wu.prototype.isReactComponent={};wu.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,r,"setState")};wu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function D2(){}D2.prototype=wu.prototype;function mw(e,r,t){this.props=e,this.context=r,this.refs=N2,this.updater=t||A2}var bw=mw.prototype=new D2;bw.constructor=mw;M2(bw,wu.prototype);bw.isPureReactComponent=!0;var YE=Array.isArray,F2=Object.prototype.hasOwnProperty,$w={current:null},L2={key:!0,ref:!0,__self:!0,__source:!0};function j2(e,r,t){var n,i={},o=null,a=null;if(r!=null)for(n in r.ref!==void 0&&(a=r.ref),r.key!==void 0&&(o=""+r.key),r)F2.call(r,n)&&!L2.hasOwnProperty(n)&&(i[n]=r[n]);var s=arguments.length-2;if(s===1)i.children=t;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:Ud,type:e,key:o,ref:a,props:i,_owner:$w.current}}function i4(e,r){return{$$typeof:Ud,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}function ww(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ud}function o4(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return r[t]})}var XE=/\/+/g;function Fg(e,r){return typeof e=="object"&&e!==null&&e.key!=null?o4(""+e.key):r.toString(36)}function cv(e,r,t,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ud:case Gz:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+Fg(a,0):n,YE(i)?(t="",e!=null&&(t=e.replace(XE,"$&/")+"/"),cv(i,r,t,"",function(u){return u})):i!=null&&(ww(i)&&(i=i4(i,t+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(XE,"$&/")+"/")+e)),r.push(i)),1;if(a=0,n=n===""?".":n+":",YE(e))for(var s=0;s<e.length;s++){o=e[s];var l=n+Fg(o,s);a+=cv(o,r,t,l,i)}else if(l=n4(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=n+Fg(o,s++),a+=cv(o,r,t,l,i);else if(o==="object")throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return a}function eh(e,r,t){if(e==null)return e;var n=[],i=0;return cv(e,n,"","",function(o){return r.call(t,o,i++)}),n}function a4(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var vr={current:null},dv={transition:null},s4={ReactCurrentDispatcher:vr,ReactCurrentBatchConfig:dv,ReactCurrentOwner:$w};function B2(){throw Error("act(...) is not supported in production builds of React.")}we.Children={map:eh,forEach:function(e,r,t){eh(e,function(){r.apply(this,arguments)},t)},count:function(e){var r=0;return eh(e,function(){r++}),r},toArray:function(e){return eh(e,function(r){return r})||[]},only:function(e){if(!ww(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};we.Component=wu;we.Fragment=qz;we.Profiler=Xz;we.PureComponent=mw;we.StrictMode=Yz;we.Suspense=e4;we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=s4;we.act=B2;we.cloneElement=function(e,r,t){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=M2({},e.props),i=e.key,o=e.ref,a=e._owner;if(r!=null){if(r.ref!==void 0&&(o=r.ref,a=$w.current),r.key!==void 0&&(i=""+r.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in r)F2.call(r,l)&&!L2.hasOwnProperty(l)&&(n[l]=r[l]===void 0&&s!==void 0?s[l]:r[l])}var l=arguments.length-2;if(l===1)n.children=t;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:Ud,type:e.type,key:i,ref:o,props:n,_owner:a}};we.createContext=function(e){return e={$$typeof:Zz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Qz,_context:e},e.Consumer=e};we.createElement=j2;we.createFactory=function(e){var r=j2.bind(null,e);return r.type=e,r};we.createRef=function(){return{current:null}};we.forwardRef=function(e){return{$$typeof:Jz,render:e}};we.isValidElement=ww;we.lazy=function(e){return{$$typeof:r4,_payload:{_status:-1,_result:e},_init:a4}};we.memo=function(e,r){return{$$typeof:t4,type:e,compare:r===void 0?null:r}};we.startTransition=function(e){var r=dv.transition;dv.transition={};try{e()}finally{dv.transition=r}};we.unstable_act=B2;we.useCallback=function(e,r){return vr.current.useCallback(e,r)};we.useContext=function(e){return vr.current.useContext(e)};we.useDebugValue=function(){};we.useDeferredValue=function(e){return vr.current.useDeferredValue(e)};we.useEffect=function(e,r){return vr.current.useEffect(e,r)};we.useId=function(){return vr.current.useId()};we.useImperativeHandle=function(e,r,t){return vr.current.useImperativeHandle(e,r,t)};we.useInsertionEffect=function(e,r){return vr.current.useInsertionEffect(e,r)};we.useLayoutEffect=function(e,r){return vr.current.useLayoutEffect(e,r)};we.useMemo=function(e,r){return vr.current.useMemo(e,r)};we.useReducer=function(e,r,t){return vr.current.useReducer(e,r,t)};we.useRef=function(e){return vr.current.useRef(e)};we.useState=function(e){return vr.current.useState(e)};we.useSyncExternalStore=function(e,r,t){return vr.current.useSyncExternalStore(e,r,t)};we.useTransition=function(){return vr.current.useTransition()};we.version="18.3.1";R2.exports=we;var _=R2.exports;const z2=k2(_),l4=Kz({__proto__:null,default:z2},[_]);/**
|
10
|
-
* @license React
|
11
|
-
* react-jsx-runtime.production.min.js
|
12
|
-
*
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
14
|
-
*
|
15
|
-
* This source code is licensed under the MIT license found in the
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var u4=_,c4=Symbol.for("react.element"),d4=Symbol.for("react.fragment"),f4=Object.prototype.hasOwnProperty,h4=u4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v4={key:!0,ref:!0,__self:!0,__source:!0};function H2(e,r,t){var n,i={},o=null,a=null;t!==void 0&&(o=""+t),r.key!==void 0&&(o=""+r.key),r.ref!==void 0&&(a=r.ref);for(n in r)f4.call(r,n)&&!v4.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps,r)i[n]===void 0&&(i[n]=r[n]);return{$$typeof:c4,type:e,key:o,ref:a,props:i,_owner:h4.current}}Gp.Fragment=d4;Gp.jsx=H2;Gp.jsxs=H2;I2.exports=Gp;var E=I2.exports,j1={},W2={exports:{}},Yr={},U2={exports:{}},V2={};/**
|
18
|
-
* @license React
|
19
|
-
* scheduler.production.min.js
|
20
|
-
*
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
22
|
-
*
|
23
|
-
* This source code is licensed under the MIT license found in the
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
25
|
-
*/(function(e){function r(x,L){var j=x.length;x.push(L);e:for(;0<j;){var Q=j-1>>>1,K=x[Q];if(0<i(K,L))x[Q]=L,x[j]=K,j=Q;else break e}}function t(x){return x.length===0?null:x[0]}function n(x){if(x.length===0)return null;var L=x[0],j=x.pop();if(j!==L){x[0]=j;e:for(var Q=0,K=x.length,ce=K>>>1;Q<ce;){var ge=2*(Q+1)-1,$e=x[ge],Te=ge+1,xe=x[Te];if(0>i($e,j))Te<K&&0>i(xe,$e)?(x[Q]=xe,x[Te]=j,Q=Te):(x[Q]=$e,x[ge]=j,Q=ge);else if(Te<K&&0>i(xe,j))x[Q]=xe,x[Te]=j,Q=Te;else break e}}return L}function i(x,L){var j=x.sortIndex-L.sortIndex;return j!==0?j:x.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,v=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(x){for(var L=t(u);L!==null;){if(L.callback===null)n(u);else if(L.startTime<=x)n(u),L.sortIndex=L.expirationTime,r(l,L);else break;L=t(u)}}function $(x){if(p=!1,m(x),!v)if(t(l)!==null)v=!0,F(w);else{var L=t(u);L!==null&&ee($,L.startTime-x)}}function w(x,L){v=!1,p&&(p=!1,y(O),O=-1),h=!0;var j=f;try{for(m(L),d=t(l);d!==null&&(!(d.expirationTime>L)||x&&!R());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,f=d.priorityLevel;var K=Q(d.expirationTime<=L);L=e.unstable_now(),typeof K=="function"?d.callback=K:d===t(l)&&n(l),m(L)}else n(l);d=t(l)}if(d!==null)var ce=!0;else{var ge=t(u);ge!==null&&ee($,ge.startTime-L),ce=!1}return ce}finally{d=null,f=j,h=!1}}var S=!1,P=null,O=-1,C=5,k=-1;function R(){return!(e.unstable_now()-k<C)}function D(){if(P!==null){var x=e.unstable_now();k=x;var L=!0;try{L=P(!0,x)}finally{L?z():(S=!1,P=null)}}else S=!1}var z;if(typeof g=="function")z=function(){g(D)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,Z=X.port2;X.port1.onmessage=D,z=function(){Z.postMessage(null)}}else z=function(){b(D,0)};function F(x){P=x,S||(S=!0,z())}function ee(x,L){O=b(function(){x(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(x){x.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,F(w))},e.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<x?Math.floor(1e3/x):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return t(l)},e.unstable_next=function(x){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var j=f;f=L;try{return x()}finally{f=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(x,L){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var j=f;f=x;try{return L()}finally{f=j}},e.unstable_scheduleCallback=function(x,L,j){var Q=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?Q+j:Q):j=Q,x){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=j+K,x={id:c++,callback:L,priorityLevel:x,startTime:j,expirationTime:K,sortIndex:-1},j>Q?(x.sortIndex=j,r(u,x),t(l)===null&&x===t(u)&&(p?(y(O),O=-1):p=!0,ee($,j-Q))):(x.sortIndex=K,r(l,x),v||h||(v=!0,F(w))),x},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(x){var L=f;return function(){var j=f;f=L;try{return x.apply(this,arguments)}finally{f=j}}}})(V2);U2.exports=V2;var p4=U2.exports;/**
|
26
|
-
* @license React
|
27
|
-
* react-dom.production.min.js
|
28
|
-
*
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
30
|
-
*
|
31
|
-
* This source code is licensed under the MIT license found in the
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
33
|
-
*/var y4=_,qr=p4;function W(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var K2=new Set,Zc={};function ds(e,r){Ul(e,r),Ul(e+"Capture",r)}function Ul(e,r){for(Zc[e]=r,e=0;e<r.length;e++)K2.add(r[e])}var Ki=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),B1=Object.prototype.hasOwnProperty,g4=/^[: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]*$/,QE={},ZE={};function m4(e){return B1.call(ZE,e)?!0:B1.call(QE,e)?!1:g4.test(e)?ZE[e]=!0:(QE[e]=!0,!1)}function b4(e,r,t,n){if(t!==null&&t.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return n?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $4(e,r,t,n){if(r===null||typeof r>"u"||b4(e,r,t,n))return!0;if(n)return!1;if(t!==null)switch(t.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function pr(e,r,t,n,i,o,a){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=r,this.sanitizeURL=o,this.removeEmptyString=a}var Kt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Kt[e]=new pr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];Kt[r]=new pr(r,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Kt[e]=new pr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Kt[e]=new pr(e,2,!1,e,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(e){Kt[e]=new pr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Kt[e]=new pr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Kt[e]=new pr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Kt[e]=new pr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Kt[e]=new pr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Sw=/[\-:]([a-z])/g;function _w(e){return e[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(e){var r=e.replace(Sw,_w);Kt[r]=new pr(r,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace(Sw,_w);Kt[r]=new pr(r,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(Sw,_w);Kt[r]=new pr(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Kt[e]=new pr(e,1,!1,e.toLowerCase(),null,!1,!1)});Kt.xlinkHref=new pr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Kt[e]=new pr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ew(e,r,t,n){var i=Kt.hasOwnProperty(r)?Kt[r]:null;(i!==null?i.type!==0:n||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&($4(r,t,i,n)&&(t=null),n||i===null?m4(r)&&(t===null?e.removeAttribute(r):e.setAttribute(r,""+t)):i.mustUseProperty?e[i.propertyName]=t===null?i.type===3?!1:"":t:(r=i.attributeName,n=i.attributeNamespace,t===null?e.removeAttribute(r):(i=i.type,t=i===3||i===4&&t===!0?"":""+t,n?e.setAttributeNS(n,r,t):e.setAttribute(r,t))))}var ro=y4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,th=Symbol.for("react.element"),Ys=Symbol.for("react.portal"),Xs=Symbol.for("react.fragment"),Ow=Symbol.for("react.strict_mode"),z1=Symbol.for("react.profiler"),G2=Symbol.for("react.provider"),q2=Symbol.for("react.context"),Pw=Symbol.for("react.forward_ref"),H1=Symbol.for("react.suspense"),W1=Symbol.for("react.suspense_list"),Cw=Symbol.for("react.memo"),ho=Symbol.for("react.lazy"),Y2=Symbol.for("react.offscreen"),JE=Symbol.iterator;function ec(e){return e===null||typeof e!="object"?null:(e=JE&&e[JE]||e["@@iterator"],typeof e=="function"?e:null)}var ot=Object.assign,Lg;function bc(e){if(Lg===void 0)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);Lg=r&&r[1]||""}return`
|
34
|
-
`+Lg+e}var jg=!1;function Bg(e,r){if(!e||jg)return"";jg=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(u){var n=u}Reflect.construct(e,[],r)}else{try{r.call()}catch(u){n=u}e.call(r.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
35
|
-
`),o=n.stack.split(`
|
36
|
-
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
37
|
-
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{jg=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?bc(e):""}function w4(e){switch(e.tag){case 5:return bc(e.type);case 16:return bc("Lazy");case 13:return bc("Suspense");case 19:return bc("SuspenseList");case 0:case 2:case 15:return e=Bg(e.type,!1),e;case 11:return e=Bg(e.type.render,!1),e;case 1:return e=Bg(e.type,!0),e;default:return""}}function U1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xs:return"Fragment";case Ys:return"Portal";case z1:return"Profiler";case Ow:return"StrictMode";case H1:return"Suspense";case W1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case q2:return(e.displayName||"Context")+".Consumer";case G2:return(e._context.displayName||"Context")+".Provider";case Pw:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cw:return r=e.displayName||null,r!==null?r:U1(e.type)||"Memo";case ho:r=e._payload,e=e._init;try{return U1(e(r))}catch{}}return null}function S4(e){var r=e.type;switch(e.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=r.render,e=e.displayName||e.name||"",r.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U1(r);case 8:return r===Ow?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Go(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function X2(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function _4(e){var r=X2(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),n=""+e[r];if(!e.hasOwnProperty(r)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,o=t.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,r,{enumerable:t.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function rh(e){e._valueTracker||(e._valueTracker=_4(e))}function Q2(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var t=r.getValue(),n="";return e&&(n=X2(e)?e.checked?"true":"false":e.value),e=n,e!==t?(r.setValue(e),!0):!1}function Hv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function V1(e,r){var t=r.checked;return ot({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function eO(e,r){var t=r.defaultValue==null?"":r.defaultValue,n=r.checked!=null?r.checked:r.defaultChecked;t=Go(r.value!=null?r.value:t),e._wrapperState={initialChecked:n,initialValue:t,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Z2(e,r){r=r.checked,r!=null&&Ew(e,"checked",r,!1)}function K1(e,r){Z2(e,r);var t=Go(r.value),n=r.type;if(t!=null)n==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}r.hasOwnProperty("value")?G1(e,r.type,t):r.hasOwnProperty("defaultValue")&&G1(e,r.type,Go(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(e.defaultChecked=!!r.defaultChecked)}function tO(e,r,t){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var n=r.type;if(!(n!=="submit"&&n!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+e._wrapperState.initialValue,t||r===e.value||(e.value=r),e.defaultValue=r}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function G1(e,r,t){(r!=="number"||Hv(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var $c=Array.isArray;function bl(e,r,t,n){if(e=e.options,r){r={};for(var i=0;i<t.length;i++)r["$"+t[i]]=!0;for(t=0;t<e.length;t++)i=r.hasOwnProperty("$"+e[t].value),e[t].selected!==i&&(e[t].selected=i),i&&n&&(e[t].defaultSelected=!0)}else{for(t=""+Go(t),r=null,i=0;i<e.length;i++){if(e[i].value===t){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}r!==null||e[i].disabled||(r=e[i])}r!==null&&(r.selected=!0)}}function q1(e,r){if(r.dangerouslySetInnerHTML!=null)throw Error(W(91));return ot({},r,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function rO(e,r){var t=r.value;if(t==null){if(t=r.children,r=r.defaultValue,t!=null){if(r!=null)throw Error(W(92));if($c(t)){if(1<t.length)throw Error(W(93));t=t[0]}r=t}r==null&&(r=""),t=r}e._wrapperState={initialValue:Go(t)}}function J2(e,r){var t=Go(r.value),n=Go(r.defaultValue);t!=null&&(t=""+t,t!==e.value&&(e.value=t),r.defaultValue==null&&e.defaultValue!==t&&(e.defaultValue=t)),n!=null&&(e.defaultValue=""+n)}function nO(e){var r=e.textContent;r===e._wrapperState.initialValue&&r!==""&&r!==null&&(e.value=r)}function eA(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Y1(e,r){return e==null||e==="http://www.w3.org/1999/xhtml"?eA(r):e==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var nh,tA=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,t,n,i){MSApp.execUnsafeLocalFunction(function(){return e(r,t,n,i)})}:e}(function(e,r){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=r;else{for(nh=nh||document.createElement("div"),nh.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=nh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;r.firstChild;)e.appendChild(r.firstChild)}});function Jc(e,r){if(r){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=r;return}}e.textContent=r}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},E4=["Webkit","ms","Moz","O"];Object.keys(Tc).forEach(function(e){E4.forEach(function(r){r=r+e.charAt(0).toUpperCase()+e.substring(1),Tc[r]=Tc[e]})});function rA(e,r,t){return r==null||typeof r=="boolean"||r===""?"":t||typeof r!="number"||r===0||Tc.hasOwnProperty(e)&&Tc[e]?(""+r).trim():r+"px"}function nA(e,r){e=e.style;for(var t in r)if(r.hasOwnProperty(t)){var n=t.indexOf("--")===0,i=rA(t,r[t],n);t==="float"&&(t="cssFloat"),n?e.setProperty(t,i):e[t]=i}}var O4=ot({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 X1(e,r){if(r){if(O4[e]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(W(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(W(61))}if(r.style!=null&&typeof r.style!="object")throw Error(W(62))}}function Q1(e,r){if(e.indexOf("-")===-1)return typeof r.is=="string";switch(e){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 Z1=null;function Tw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var J1=null,$l=null,wl=null;function iO(e){if(e=Gd(e)){if(typeof J1!="function")throw Error(W(280));var r=e.stateNode;r&&(r=Zp(r),J1(e.stateNode,e.type,r))}}function iA(e){$l?wl?wl.push(e):wl=[e]:$l=e}function oA(){if($l){var e=$l,r=wl;if(wl=$l=null,iO(e),r)for(e=0;e<r.length;e++)iO(r[e])}}function aA(e,r){return e(r)}function sA(){}var zg=!1;function lA(e,r,t){if(zg)return e(r,t);zg=!0;try{return aA(e,r,t)}finally{zg=!1,($l!==null||wl!==null)&&(sA(),oA())}}function ed(e,r){var t=e.stateNode;if(t===null)return null;var n=Zp(t);if(n===null)return null;t=n[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(t&&typeof t!="function")throw Error(W(231,r,typeof t));return t}var e$=!1;if(Ki)try{var tc={};Object.defineProperty(tc,"passive",{get:function(){e$=!0}}),window.addEventListener("test",tc,tc),window.removeEventListener("test",tc,tc)}catch{e$=!1}function P4(e,r,t,n,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{r.apply(t,u)}catch(c){this.onError(c)}}var xc=!1,Wv=null,Uv=!1,t$=null,C4={onError:function(e){xc=!0,Wv=e}};function T4(e,r,t,n,i,o,a,s,l){xc=!1,Wv=null,P4.apply(C4,arguments)}function x4(e,r,t,n,i,o,a,s,l){if(T4.apply(this,arguments),xc){if(xc){var u=Wv;xc=!1,Wv=null}else throw Error(W(198));Uv||(Uv=!0,t$=u)}}function fs(e){var r=e,t=e;if(e.alternate)for(;r.return;)r=r.return;else{e=r;do r=e,r.flags&4098&&(t=r.return),e=r.return;while(e)}return r.tag===3?t:null}function uA(e){if(e.tag===13){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function oO(e){if(fs(e)!==e)throw Error(W(188))}function k4(e){var r=e.alternate;if(!r){if(r=fs(e),r===null)throw Error(W(188));return r!==e?null:e}for(var t=e,n=r;;){var i=t.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){t=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===t)return oO(i),e;if(o===n)return oO(i),r;o=o.sibling}throw Error(W(188))}if(t.return!==n.return)t=i,n=o;else{for(var a=!1,s=i.child;s;){if(s===t){a=!0,t=i,n=o;break}if(s===n){a=!0,n=i,t=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===t){a=!0,t=o,n=i;break}if(s===n){a=!0,n=o,t=i;break}s=s.sibling}if(!a)throw Error(W(189))}}if(t.alternate!==n)throw Error(W(190))}if(t.tag!==3)throw Error(W(188));return t.stateNode.current===t?e:r}function cA(e){return e=k4(e),e!==null?dA(e):null}function dA(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var r=dA(e);if(r!==null)return r;e=e.sibling}return null}var fA=qr.unstable_scheduleCallback,aO=qr.unstable_cancelCallback,I4=qr.unstable_shouldYield,R4=qr.unstable_requestPaint,yt=qr.unstable_now,A4=qr.unstable_getCurrentPriorityLevel,xw=qr.unstable_ImmediatePriority,hA=qr.unstable_UserBlockingPriority,Vv=qr.unstable_NormalPriority,M4=qr.unstable_LowPriority,vA=qr.unstable_IdlePriority,qp=null,fi=null;function N4(e){if(fi&&typeof fi.onCommitFiberRoot=="function")try{fi.onCommitFiberRoot(qp,e,void 0,(e.current.flags&128)===128)}catch{}}var Un=Math.clz32?Math.clz32:L4,D4=Math.log,F4=Math.LN2;function L4(e){return e>>>=0,e===0?32:31-(D4(e)/F4|0)|0}var ih=64,oh=4194304;function wc(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Kv(e,r){var t=e.pendingLanes;if(t===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=t&268435455;if(a!==0){var s=a&~i;s!==0?n=wc(s):(o&=a,o!==0&&(n=wc(o)))}else a=t&~i,a!==0?n=wc(a):o!==0&&(n=wc(o));if(n===0)return 0;if(r!==0&&r!==n&&!(r&i)&&(i=n&-n,o=r&-r,i>=o||i===16&&(o&4194240)!==0))return r;if(n&4&&(n|=t&16),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=n;0<r;)t=31-Un(r),i=1<<t,n|=e[t],r&=~i;return n}function j4(e,r){switch(e){case 1:case 2:case 4:return r+250;case 8:case 16:case 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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function B4(e,r){for(var t=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Un(o),s=1<<a,l=i[a];l===-1?(!(s&t)||s&n)&&(i[a]=j4(s,r)):l<=r&&(e.expiredLanes|=s),o&=~s}}function r$(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function pA(){var e=ih;return ih<<=1,!(ih&4194240)&&(ih=64),e}function Hg(e){for(var r=[],t=0;31>t;t++)r.push(e);return r}function Vd(e,r,t){e.pendingLanes|=r,r!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,r=31-Un(r),e[r]=t}function z4(e,r){var t=e.pendingLanes&~r;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=r,e.mutableReadLanes&=r,e.entangledLanes&=r,r=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<t;){var i=31-Un(t),o=1<<i;r[i]=0,n[i]=-1,e[i]=-1,t&=~o}}function kw(e,r){var t=e.entangledLanes|=r;for(e=e.entanglements;t;){var n=31-Un(t),i=1<<n;i&r|e[n]&r&&(e[n]|=r),t&=~i}}var je=0;function yA(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gA,Iw,mA,bA,$A,n$=!1,ah=[],Io=null,Ro=null,Ao=null,td=new Map,rd=new Map,go=[],H4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function sO(e,r){switch(e){case"focusin":case"focusout":Io=null;break;case"dragenter":case"dragleave":Ro=null;break;case"mouseover":case"mouseout":Ao=null;break;case"pointerover":case"pointerout":td.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":rd.delete(r.pointerId)}}function rc(e,r,t,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:r,domEventName:t,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},r!==null&&(r=Gd(r),r!==null&&Iw(r)),e):(e.eventSystemFlags|=n,r=e.targetContainers,i!==null&&r.indexOf(i)===-1&&r.push(i),e)}function W4(e,r,t,n,i){switch(r){case"focusin":return Io=rc(Io,e,r,t,n,i),!0;case"dragenter":return Ro=rc(Ro,e,r,t,n,i),!0;case"mouseover":return Ao=rc(Ao,e,r,t,n,i),!0;case"pointerover":var o=i.pointerId;return td.set(o,rc(td.get(o)||null,e,r,t,n,i)),!0;case"gotpointercapture":return o=i.pointerId,rd.set(o,rc(rd.get(o)||null,e,r,t,n,i)),!0}return!1}function wA(e){var r=$a(e.target);if(r!==null){var t=fs(r);if(t!==null){if(r=t.tag,r===13){if(r=uA(t),r!==null){e.blockedOn=r,$A(e.priority,function(){mA(t)});return}}else if(r===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fv(e){if(e.blockedOn!==null)return!1;for(var r=e.targetContainers;0<r.length;){var t=i$(e.domEventName,e.eventSystemFlags,r[0],e.nativeEvent);if(t===null){t=e.nativeEvent;var n=new t.constructor(t.type,t);Z1=n,t.target.dispatchEvent(n),Z1=null}else return r=Gd(t),r!==null&&Iw(r),e.blockedOn=t,!1;r.shift()}return!0}function lO(e,r,t){fv(e)&&t.delete(r)}function U4(){n$=!1,Io!==null&&fv(Io)&&(Io=null),Ro!==null&&fv(Ro)&&(Ro=null),Ao!==null&&fv(Ao)&&(Ao=null),td.forEach(lO),rd.forEach(lO)}function nc(e,r){e.blockedOn===r&&(e.blockedOn=null,n$||(n$=!0,qr.unstable_scheduleCallback(qr.unstable_NormalPriority,U4)))}function nd(e){function r(i){return nc(i,e)}if(0<ah.length){nc(ah[0],e);for(var t=1;t<ah.length;t++){var n=ah[t];n.blockedOn===e&&(n.blockedOn=null)}}for(Io!==null&&nc(Io,e),Ro!==null&&nc(Ro,e),Ao!==null&&nc(Ao,e),td.forEach(r),rd.forEach(r),t=0;t<go.length;t++)n=go[t],n.blockedOn===e&&(n.blockedOn=null);for(;0<go.length&&(t=go[0],t.blockedOn===null);)wA(t),t.blockedOn===null&&go.shift()}var Sl=ro.ReactCurrentBatchConfig,Gv=!0;function V4(e,r,t,n){var i=je,o=Sl.transition;Sl.transition=null;try{je=1,Rw(e,r,t,n)}finally{je=i,Sl.transition=o}}function K4(e,r,t,n){var i=je,o=Sl.transition;Sl.transition=null;try{je=4,Rw(e,r,t,n)}finally{je=i,Sl.transition=o}}function Rw(e,r,t,n){if(Gv){var i=i$(e,r,t,n);if(i===null)Zg(e,r,n,qv,t),sO(e,n);else if(W4(i,e,r,t,n))n.stopPropagation();else if(sO(e,n),r&4&&-1<H4.indexOf(e)){for(;i!==null;){var o=Gd(i);if(o!==null&&gA(o),o=i$(e,r,t,n),o===null&&Zg(e,r,n,qv,t),o===i)break;i=o}i!==null&&n.stopPropagation()}else Zg(e,r,n,null,t)}}var qv=null;function i$(e,r,t,n){if(qv=null,e=Tw(n),e=$a(e),e!==null)if(r=fs(e),r===null)e=null;else if(t=r.tag,t===13){if(e=uA(r),e!==null)return e;e=null}else if(t===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null);return qv=e,null}function SA(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(A4()){case xw:return 1;case hA:return 4;case Vv:case M4:return 16;case vA:return 536870912;default:return 16}default:return 16}}var Po=null,Aw=null,hv=null;function _A(){if(hv)return hv;var e,r=Aw,t=r.length,n,i="value"in Po?Po.value:Po.textContent,o=i.length;for(e=0;e<t&&r[e]===i[e];e++);var a=t-e;for(n=1;n<=a&&r[t-n]===i[o-n];n++);return hv=i.slice(e,1<n?1-n:void 0)}function vv(e){var r=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&r===13&&(e=13)):e=r,e===10&&(e=13),32<=e||e===13?e:0}function sh(){return!0}function uO(){return!1}function Xr(e){function r(t,n,i,o,a){this._reactName=t,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?sh:uO,this.isPropagationStopped=uO,this}return ot(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=sh)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=sh)},persist:function(){},isPersistent:sh}),r}var Su={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mw=Xr(Su),Kd=ot({},Su,{view:0,detail:0}),G4=Xr(Kd),Wg,Ug,ic,Yp=ot({},Kd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nw,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ic&&(ic&&e.type==="mousemove"?(Wg=e.screenX-ic.screenX,Ug=e.screenY-ic.screenY):Ug=Wg=0,ic=e),Wg)},movementY:function(e){return"movementY"in e?e.movementY:Ug}}),cO=Xr(Yp),q4=ot({},Yp,{dataTransfer:0}),Y4=Xr(q4),X4=ot({},Kd,{relatedTarget:0}),Vg=Xr(X4),Q4=ot({},Su,{animationName:0,elapsedTime:0,pseudoElement:0}),Z4=Xr(Q4),J4=ot({},Su,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e6=Xr(J4),t6=ot({},Su,{data:0}),dO=Xr(t6),r6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n6={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},i6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o6(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):(e=i6[e])?!!r[e]:!1}function Nw(){return o6}var a6=ot({},Kd,{key:function(e){if(e.key){var r=r6[e.key]||e.key;if(r!=="Unidentified")return r}return e.type==="keypress"?(e=vv(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?n6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nw,charCode:function(e){return e.type==="keypress"?vv(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vv(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s6=Xr(a6),l6=ot({},Yp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fO=Xr(l6),u6=ot({},Kd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nw}),c6=Xr(u6),d6=ot({},Su,{propertyName:0,elapsedTime:0,pseudoElement:0}),f6=Xr(d6),h6=ot({},Yp,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),v6=Xr(h6),p6=[9,13,27,32],Dw=Ki&&"CompositionEvent"in window,kc=null;Ki&&"documentMode"in document&&(kc=document.documentMode);var y6=Ki&&"TextEvent"in window&&!kc,EA=Ki&&(!Dw||kc&&8<kc&&11>=kc),hO=" ",vO=!1;function OA(e,r){switch(e){case"keyup":return p6.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function PA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qs=!1;function g6(e,r){switch(e){case"compositionend":return PA(r);case"keypress":return r.which!==32?null:(vO=!0,hO);case"textInput":return e=r.data,e===hO&&vO?null:e;default:return null}}function m6(e,r){if(Qs)return e==="compositionend"||!Dw&&OA(e,r)?(e=_A(),hv=Aw=Po=null,Qs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return EA&&r.locale!=="ko"?null:r.data;default:return null}}var b6={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pO(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r==="input"?!!b6[e.type]:r==="textarea"}function CA(e,r,t,n){iA(n),r=Yv(r,"onChange"),0<r.length&&(t=new Mw("onChange","change",null,t,n),e.push({event:t,listeners:r}))}var Ic=null,id=null;function $6(e){LA(e,0)}function Xp(e){var r=el(e);if(Q2(r))return e}function w6(e,r){if(e==="change")return r}var TA=!1;if(Ki){var Kg;if(Ki){var Gg="oninput"in document;if(!Gg){var yO=document.createElement("div");yO.setAttribute("oninput","return;"),Gg=typeof yO.oninput=="function"}Kg=Gg}else Kg=!1;TA=Kg&&(!document.documentMode||9<document.documentMode)}function gO(){Ic&&(Ic.detachEvent("onpropertychange",xA),id=Ic=null)}function xA(e){if(e.propertyName==="value"&&Xp(id)){var r=[];CA(r,id,e,Tw(e)),lA($6,r)}}function S6(e,r,t){e==="focusin"?(gO(),Ic=r,id=t,Ic.attachEvent("onpropertychange",xA)):e==="focusout"&&gO()}function _6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xp(id)}function E6(e,r){if(e==="click")return Xp(r)}function O6(e,r){if(e==="input"||e==="change")return Xp(r)}function P6(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var Kn=typeof Object.is=="function"?Object.is:P6;function od(e,r){if(Kn(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(n=0;n<t.length;n++){var i=t[n];if(!B1.call(r,i)||!Kn(e[i],r[i]))return!1}return!0}function mO(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bO(e,r){var t=mO(e);e=0;for(var n;t;){if(t.nodeType===3){if(n=e+t.textContent.length,e<=r&&n>=r)return{node:t,offset:r-e};e=n}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=mO(t)}}function kA(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?kA(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function IA(){for(var e=window,r=Hv();r instanceof e.HTMLIFrameElement;){try{var t=typeof r.contentWindow.location.href=="string"}catch{t=!1}if(t)e=r.contentWindow;else break;r=Hv(e.document)}return r}function Fw(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}function C6(e){var r=IA(),t=e.focusedElem,n=e.selectionRange;if(r!==t&&t&&t.ownerDocument&&kA(t.ownerDocument.documentElement,t)){if(n!==null&&Fw(t)){if(r=n.start,e=n.end,e===void 0&&(e=r),"selectionStart"in t)t.selectionStart=r,t.selectionEnd=Math.min(e,t.value.length);else if(e=(r=t.ownerDocument||document)&&r.defaultView||window,e.getSelection){e=e.getSelection();var i=t.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=bO(t,o);var a=bO(t,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(r=r.createRange(),r.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(r),e.extend(a.node,a.offset)):(r.setEnd(a.node,a.offset),e.addRange(r)))}}for(r=[],e=t;e=e.parentNode;)e.nodeType===1&&r.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<r.length;t++)e=r[t],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var T6=Ki&&"documentMode"in document&&11>=document.documentMode,Zs=null,o$=null,Rc=null,a$=!1;function $O(e,r,t){var n=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;a$||Zs==null||Zs!==Hv(n)||(n=Zs,"selectionStart"in n&&Fw(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Rc&&od(Rc,n)||(Rc=n,n=Yv(o$,"onSelect"),0<n.length&&(r=new Mw("onSelect","select",null,r,t),e.push({event:r,listeners:n}),r.target=Zs)))}function lh(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit"+e]="webkit"+r,t["Moz"+e]="moz"+r,t}var Js={animationend:lh("Animation","AnimationEnd"),animationiteration:lh("Animation","AnimationIteration"),animationstart:lh("Animation","AnimationStart"),transitionend:lh("Transition","TransitionEnd")},qg={},RA={};Ki&&(RA=document.createElement("div").style,"AnimationEvent"in window||(delete Js.animationend.animation,delete Js.animationiteration.animation,delete Js.animationstart.animation),"TransitionEvent"in window||delete Js.transitionend.transition);function Qp(e){if(qg[e])return qg[e];if(!Js[e])return e;var r=Js[e],t;for(t in r)if(r.hasOwnProperty(t)&&t in RA)return qg[e]=r[t];return e}var AA=Qp("animationend"),MA=Qp("animationiteration"),NA=Qp("animationstart"),DA=Qp("transitionend"),FA=new Map,wO="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ta(e,r){FA.set(e,r),ds(r,[e])}for(var Yg=0;Yg<wO.length;Yg++){var Xg=wO[Yg],x6=Xg.toLowerCase(),k6=Xg[0].toUpperCase()+Xg.slice(1);ta(x6,"on"+k6)}ta(AA,"onAnimationEnd");ta(MA,"onAnimationIteration");ta(NA,"onAnimationStart");ta("dblclick","onDoubleClick");ta("focusin","onFocus");ta("focusout","onBlur");ta(DA,"onTransitionEnd");Ul("onMouseEnter",["mouseout","mouseover"]);Ul("onMouseLeave",["mouseout","mouseover"]);Ul("onPointerEnter",["pointerout","pointerover"]);Ul("onPointerLeave",["pointerout","pointerover"]);ds("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ds("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ds("onBeforeInput",["compositionend","keypress","textInput","paste"]);ds("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ds("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ds("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),I6=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sc));function SO(e,r,t){var n=e.type||"unknown-event";e.currentTarget=t,x4(n,r,void 0,e),e.currentTarget=null}function LA(e,r){r=(r&4)!==0;for(var t=0;t<e.length;t++){var n=e[t],i=n.event;n=n.listeners;e:{var o=void 0;if(r)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;SO(i,s,u),o=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;SO(i,s,u),o=l}}}if(Uv)throw e=t$,Uv=!1,t$=null,e}function Xe(e,r){var t=r[d$];t===void 0&&(t=r[d$]=new Set);var n=e+"__bubble";t.has(n)||(jA(r,e,2,!1),t.add(n))}function Qg(e,r,t){var n=0;r&&(n|=4),jA(t,e,n,r)}var uh="_reactListening"+Math.random().toString(36).slice(2);function ad(e){if(!e[uh]){e[uh]=!0,K2.forEach(function(t){t!=="selectionchange"&&(I6.has(t)||Qg(t,!1,e),Qg(t,!0,e))});var r=e.nodeType===9?e:e.ownerDocument;r===null||r[uh]||(r[uh]=!0,Qg("selectionchange",!1,r))}}function jA(e,r,t,n){switch(SA(r)){case 1:var i=V4;break;case 4:i=K4;break;default:i=Rw}t=i.bind(null,r,t,e),i=void 0,!e$||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(r,t,{capture:!0,passive:i}):e.addEventListener(r,t,!0):i!==void 0?e.addEventListener(r,t,{passive:i}):e.addEventListener(r,t,!1)}function Zg(e,r,t,n,i){var o=n;if(!(r&1)&&!(r&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=$a(s),a===null)return;if(l=a.tag,l===5||l===6){n=o=a;continue e}s=s.parentNode}}n=n.return}lA(function(){var u=o,c=Tw(t),d=[];e:{var f=FA.get(e);if(f!==void 0){var h=Mw,v=e;switch(e){case"keypress":if(vv(t)===0)break e;case"keydown":case"keyup":h=s6;break;case"focusin":v="focus",h=Vg;break;case"focusout":v="blur",h=Vg;break;case"beforeblur":case"afterblur":h=Vg;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=cO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Y4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=c6;break;case AA:case MA:case NA:h=Z4;break;case DA:h=f6;break;case"scroll":h=G4;break;case"wheel":h=v6;break;case"copy":case"cut":case"paste":h=e6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=fO}var p=(r&4)!==0,b=!p&&e==="scroll",y=p?f!==null?f+"Capture":null:f;p=[];for(var g=u,m;g!==null;){m=g;var $=m.stateNode;if(m.tag===5&&$!==null&&(m=$,y!==null&&($=ed(g,y),$!=null&&p.push(sd(g,$,m)))),b)break;g=g.return}0<p.length&&(f=new h(f,v,null,t,c),d.push({event:f,listeners:p}))}}if(!(r&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&t!==Z1&&(v=t.relatedTarget||t.fromElement)&&($a(v)||v[Gi]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(v=t.relatedTarget||t.toElement,h=u,v=v?$a(v):null,v!==null&&(b=fs(v),v!==b||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(p=cO,$="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(p=fO,$="onPointerLeave",y="onPointerEnter",g="pointer"),b=h==null?f:el(h),m=v==null?f:el(v),f=new p($,g+"leave",h,t,c),f.target=b,f.relatedTarget=m,$=null,$a(c)===u&&(p=new p(y,g+"enter",v,t,c),p.target=m,p.relatedTarget=b,$=p),b=$,h&&v)t:{for(p=h,y=v,g=0,m=p;m;m=Is(m))g++;for(m=0,$=y;$;$=Is($))m++;for(;0<g-m;)p=Is(p),g--;for(;0<m-g;)y=Is(y),m--;for(;g--;){if(p===y||y!==null&&p===y.alternate)break t;p=Is(p),y=Is(y)}p=null}else p=null;h!==null&&_O(d,f,h,p,!1),v!==null&&b!==null&&_O(d,b,v,p,!0)}}e:{if(f=u?el(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var w=w6;else if(pO(f))if(TA)w=O6;else{w=_6;var S=S6}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=E6);if(w&&(w=w(e,u))){CA(d,w,t,c);break e}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&G1(f,"number",f.value)}switch(S=u?el(u):window,e){case"focusin":(pO(S)||S.contentEditable==="true")&&(Zs=S,o$=u,Rc=null);break;case"focusout":Rc=o$=Zs=null;break;case"mousedown":a$=!0;break;case"contextmenu":case"mouseup":case"dragend":a$=!1,$O(d,t,c);break;case"selectionchange":if(T6)break;case"keydown":case"keyup":$O(d,t,c)}var P;if(Dw)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Qs?OA(e,t)&&(O="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(O="onCompositionStart");O&&(EA&&t.locale!=="ko"&&(Qs||O!=="onCompositionStart"?O==="onCompositionEnd"&&Qs&&(P=_A()):(Po=c,Aw="value"in Po?Po.value:Po.textContent,Qs=!0)),S=Yv(u,O),0<S.length&&(O=new dO(O,e,null,t,c),d.push({event:O,listeners:S}),P?O.data=P:(P=PA(t),P!==null&&(O.data=P)))),(P=y6?g6(e,t):m6(e,t))&&(u=Yv(u,"onBeforeInput"),0<u.length&&(c=new dO("onBeforeInput","beforeinput",null,t,c),d.push({event:c,listeners:u}),c.data=P))}LA(d,r)})}function sd(e,r,t){return{instance:e,listener:r,currentTarget:t}}function Yv(e,r){for(var t=r+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ed(e,t),o!=null&&n.unshift(sd(e,o,i)),o=ed(e,r),o!=null&&n.push(sd(e,o,i))),e=e.return}return n}function Is(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _O(e,r,t,n,i){for(var o=r._reactName,a=[];t!==null&&t!==n;){var s=t,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=ed(t,o),l!=null&&a.unshift(sd(t,l,s))):i||(l=ed(t,o),l!=null&&a.push(sd(t,l,s)))),t=t.return}a.length!==0&&e.push({event:r,listeners:a})}var R6=/\r\n?/g,A6=/\u0000|\uFFFD/g;function EO(e){return(typeof e=="string"?e:""+e).replace(R6,`
|
38
|
-
`).replace(A6,"")}function ch(e,r,t){if(r=EO(r),EO(e)!==r&&t)throw Error(W(425))}function Xv(){}var s$=null,l$=null;function u$(e,r){return e==="textarea"||e==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var c$=typeof setTimeout=="function"?setTimeout:void 0,M6=typeof clearTimeout=="function"?clearTimeout:void 0,OO=typeof Promise=="function"?Promise:void 0,N6=typeof queueMicrotask=="function"?queueMicrotask:typeof OO<"u"?function(e){return OO.resolve(null).then(e).catch(D6)}:c$;function D6(e){setTimeout(function(){throw e})}function Jg(e,r){var t=r,n=0;do{var i=t.nextSibling;if(e.removeChild(t),i&&i.nodeType===8)if(t=i.data,t==="/$"){if(n===0){e.removeChild(i),nd(r);return}n--}else t!=="$"&&t!=="$?"&&t!=="$!"||n++;t=i}while(t);nd(r)}function Mo(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return e}function PO(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(r===0)return e;r--}else t==="/$"&&r++}e=e.previousSibling}return null}var _u=Math.random().toString(36).slice(2),si="__reactFiber$"+_u,ld="__reactProps$"+_u,Gi="__reactContainer$"+_u,d$="__reactEvents$"+_u,F6="__reactListeners$"+_u,L6="__reactHandles$"+_u;function $a(e){var r=e[si];if(r)return r;for(var t=e.parentNode;t;){if(r=t[Gi]||t[si]){if(t=r.alternate,r.child!==null||t!==null&&t.child!==null)for(e=PO(e);e!==null;){if(t=e[si])return t;e=PO(e)}return r}e=t,t=e.parentNode}return null}function Gd(e){return e=e[si]||e[Gi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function el(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function Zp(e){return e[ld]||null}var f$=[],tl=-1;function ra(e){return{current:e}}function Qe(e){0>tl||(e.current=f$[tl],f$[tl]=null,tl--)}function Ye(e,r){tl++,f$[tl]=e.current,e.current=r}var qo={},Jt=ra(qo),Tr=ra(!1),qa=qo;function Vl(e,r){var t=e.type.contextTypes;if(!t)return qo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===r)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in t)i[o]=r[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),i}function xr(e){return e=e.childContextTypes,e!=null}function Qv(){Qe(Tr),Qe(Jt)}function CO(e,r,t){if(Jt.current!==qo)throw Error(W(168));Ye(Jt,r),Ye(Tr,t)}function BA(e,r,t){var n=e.stateNode;if(r=r.childContextTypes,typeof n.getChildContext!="function")return t;n=n.getChildContext();for(var i in n)if(!(i in r))throw Error(W(108,S4(e)||"Unknown",i));return ot({},t,n)}function Zv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qo,qa=Jt.current,Ye(Jt,e),Ye(Tr,Tr.current),!0}function TO(e,r,t){var n=e.stateNode;if(!n)throw Error(W(169));t?(e=BA(e,r,qa),n.__reactInternalMemoizedMergedChildContext=e,Qe(Tr),Qe(Jt),Ye(Jt,e)):Qe(Tr),Ye(Tr,t)}var Ri=null,Jp=!1,em=!1;function zA(e){Ri===null?Ri=[e]:Ri.push(e)}function j6(e){Jp=!0,zA(e)}function na(){if(!em&&Ri!==null){em=!0;var e=0,r=je;try{var t=Ri;for(je=1;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}Ri=null,Jp=!1}catch(i){throw Ri!==null&&(Ri=Ri.slice(e+1)),fA(xw,na),i}finally{je=r,em=!1}}return null}var rl=[],nl=0,Jv=null,ep=0,un=[],cn=0,Ya=null,Ai=1,Mi="";function va(e,r){rl[nl++]=ep,rl[nl++]=Jv,Jv=e,ep=r}function HA(e,r,t){un[cn++]=Ai,un[cn++]=Mi,un[cn++]=Ya,Ya=e;var n=Ai;e=Mi;var i=32-Un(n)-1;n&=~(1<<i),t+=1;var o=32-Un(r)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Ai=1<<32-Un(r)+i|t<<i|n,Mi=o+e}else Ai=1<<o|t<<i|n,Mi=e}function Lw(e){e.return!==null&&(va(e,1),HA(e,1,0))}function jw(e){for(;e===Jv;)Jv=rl[--nl],rl[nl]=null,ep=rl[--nl],rl[nl]=null;for(;e===Ya;)Ya=un[--cn],un[cn]=null,Mi=un[--cn],un[cn]=null,Ai=un[--cn],un[cn]=null}var Kr=null,Ur=null,Je=!1,Nn=null;function WA(e,r){var t=fn(5,null,null,0);t.elementType="DELETED",t.stateNode=r,t.return=e,r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)}function xO(e,r){switch(e.tag){case 5:var t=e.type;return r=r.nodeType!==1||t.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(e.stateNode=r,Kr=e,Ur=Mo(r.firstChild),!0):!1;case 6:return r=e.pendingProps===""||r.nodeType!==3?null:r,r!==null?(e.stateNode=r,Kr=e,Ur=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(t=Ya!==null?{id:Ai,overflow:Mi}:null,e.memoizedState={dehydrated:r,treeContext:t,retryLane:1073741824},t=fn(18,null,null,0),t.stateNode=r,t.return=e,e.child=t,Kr=e,Ur=null,!0):!1;default:return!1}}function h$(e){return(e.mode&1)!==0&&(e.flags&128)===0}function v$(e){if(Je){var r=Ur;if(r){var t=r;if(!xO(e,r)){if(h$(e))throw Error(W(418));r=Mo(t.nextSibling);var n=Kr;r&&xO(e,r)?WA(n,t):(e.flags=e.flags&-4097|2,Je=!1,Kr=e)}}else{if(h$(e))throw Error(W(418));e.flags=e.flags&-4097|2,Je=!1,Kr=e}}}function kO(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Kr=e}function dh(e){if(e!==Kr)return!1;if(!Je)return kO(e),Je=!0,!1;var r;if((r=e.tag!==3)&&!(r=e.tag!==5)&&(r=e.type,r=r!=="head"&&r!=="body"&&!u$(e.type,e.memoizedProps)),r&&(r=Ur)){if(h$(e))throw UA(),Error(W(418));for(;r;)WA(e,r),r=Mo(r.nextSibling)}if(kO(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,r=0;e;){if(e.nodeType===8){var t=e.data;if(t==="/$"){if(r===0){Ur=Mo(e.nextSibling);break e}r--}else t!=="$"&&t!=="$!"&&t!=="$?"||r++}e=e.nextSibling}Ur=null}}else Ur=Kr?Mo(e.stateNode.nextSibling):null;return!0}function UA(){for(var e=Ur;e;)e=Mo(e.nextSibling)}function Kl(){Ur=Kr=null,Je=!1}function Bw(e){Nn===null?Nn=[e]:Nn.push(e)}var B6=ro.ReactCurrentBatchConfig;function oc(e,r,t){if(e=t.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(t._owner){if(t=t._owner,t){if(t.tag!==1)throw Error(W(309));var n=t.stateNode}if(!n)throw Error(W(147,e));var i=n,o=""+e;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===o?r.ref:(r=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},r._stringRef=o,r)}if(typeof e!="string")throw Error(W(284));if(!t._owner)throw Error(W(290,e))}return e}function fh(e,r){throw e=Object.prototype.toString.call(r),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}function IO(e){var r=e._init;return r(e._payload)}function VA(e){function r(y,g){if(e){var m=y.deletions;m===null?(y.deletions=[g],y.flags|=16):m.push(g)}}function t(y,g){if(!e)return null;for(;g!==null;)r(y,g),g=g.sibling;return null}function n(y,g){for(y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function i(y,g){return y=Lo(y,g),y.index=0,y.sibling=null,y}function o(y,g,m){return y.index=m,e?(m=y.alternate,m!==null?(m=m.index,m<g?(y.flags|=2,g):m):(y.flags|=2,g)):(y.flags|=1048576,g)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,g,m,$){return g===null||g.tag!==6?(g=sm(m,y.mode,$),g.return=y,g):(g=i(g,m),g.return=y,g)}function l(y,g,m,$){var w=m.type;return w===Xs?c(y,g,m.props.children,$,m.key):g!==null&&(g.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ho&&IO(w)===g.type)?($=i(g,m.props),$.ref=oc(y,g,m),$.return=y,$):($=wv(m.type,m.key,m.props,null,y.mode,$),$.ref=oc(y,g,m),$.return=y,$)}function u(y,g,m,$){return g===null||g.tag!==4||g.stateNode.containerInfo!==m.containerInfo||g.stateNode.implementation!==m.implementation?(g=lm(m,y.mode,$),g.return=y,g):(g=i(g,m.children||[]),g.return=y,g)}function c(y,g,m,$,w){return g===null||g.tag!==7?(g=Na(m,y.mode,$,w),g.return=y,g):(g=i(g,m),g.return=y,g)}function d(y,g,m){if(typeof g=="string"&&g!==""||typeof g=="number")return g=sm(""+g,y.mode,m),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case th:return m=wv(g.type,g.key,g.props,null,y.mode,m),m.ref=oc(y,null,g),m.return=y,m;case Ys:return g=lm(g,y.mode,m),g.return=y,g;case ho:var $=g._init;return d(y,$(g._payload),m)}if($c(g)||ec(g))return g=Na(g,y.mode,m,null),g.return=y,g;fh(y,g)}return null}function f(y,g,m,$){var w=g!==null?g.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return w!==null?null:s(y,g,""+m,$);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case th:return m.key===w?l(y,g,m,$):null;case Ys:return m.key===w?u(y,g,m,$):null;case ho:return w=m._init,f(y,g,w(m._payload),$)}if($c(m)||ec(m))return w!==null?null:c(y,g,m,$,null);fh(y,m)}return null}function h(y,g,m,$,w){if(typeof $=="string"&&$!==""||typeof $=="number")return y=y.get(m)||null,s(g,y,""+$,w);if(typeof $=="object"&&$!==null){switch($.$$typeof){case th:return y=y.get($.key===null?m:$.key)||null,l(g,y,$,w);case Ys:return y=y.get($.key===null?m:$.key)||null,u(g,y,$,w);case ho:var S=$._init;return h(y,g,m,S($._payload),w)}if($c($)||ec($))return y=y.get(m)||null,c(g,y,$,w,null);fh(g,$)}return null}function v(y,g,m,$){for(var w=null,S=null,P=g,O=g=0,C=null;P!==null&&O<m.length;O++){P.index>O?(C=P,P=null):C=P.sibling;var k=f(y,P,m[O],$);if(k===null){P===null&&(P=C);break}e&&P&&k.alternate===null&&r(y,P),g=o(k,g,O),S===null?w=k:S.sibling=k,S=k,P=C}if(O===m.length)return t(y,P),Je&&va(y,O),w;if(P===null){for(;O<m.length;O++)P=d(y,m[O],$),P!==null&&(g=o(P,g,O),S===null?w=P:S.sibling=P,S=P);return Je&&va(y,O),w}for(P=n(y,P);O<m.length;O++)C=h(P,y,O,m[O],$),C!==null&&(e&&C.alternate!==null&&P.delete(C.key===null?O:C.key),g=o(C,g,O),S===null?w=C:S.sibling=C,S=C);return e&&P.forEach(function(R){return r(y,R)}),Je&&va(y,O),w}function p(y,g,m,$){var w=ec(m);if(typeof w!="function")throw Error(W(150));if(m=w.call(m),m==null)throw Error(W(151));for(var S=w=null,P=g,O=g=0,C=null,k=m.next();P!==null&&!k.done;O++,k=m.next()){P.index>O?(C=P,P=null):C=P.sibling;var R=f(y,P,k.value,$);if(R===null){P===null&&(P=C);break}e&&P&&R.alternate===null&&r(y,P),g=o(R,g,O),S===null?w=R:S.sibling=R,S=R,P=C}if(k.done)return t(y,P),Je&&va(y,O),w;if(P===null){for(;!k.done;O++,k=m.next())k=d(y,k.value,$),k!==null&&(g=o(k,g,O),S===null?w=k:S.sibling=k,S=k);return Je&&va(y,O),w}for(P=n(y,P);!k.done;O++,k=m.next())k=h(P,y,O,k.value,$),k!==null&&(e&&k.alternate!==null&&P.delete(k.key===null?O:k.key),g=o(k,g,O),S===null?w=k:S.sibling=k,S=k);return e&&P.forEach(function(D){return r(y,D)}),Je&&va(y,O),w}function b(y,g,m,$){if(typeof m=="object"&&m!==null&&m.type===Xs&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case th:e:{for(var w=m.key,S=g;S!==null;){if(S.key===w){if(w=m.type,w===Xs){if(S.tag===7){t(y,S.sibling),g=i(S,m.props.children),g.return=y,y=g;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ho&&IO(w)===S.type){t(y,S.sibling),g=i(S,m.props),g.ref=oc(y,S,m),g.return=y,y=g;break e}t(y,S);break}else r(y,S);S=S.sibling}m.type===Xs?(g=Na(m.props.children,y.mode,$,m.key),g.return=y,y=g):($=wv(m.type,m.key,m.props,null,y.mode,$),$.ref=oc(y,g,m),$.return=y,y=$)}return a(y);case Ys:e:{for(S=m.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===m.containerInfo&&g.stateNode.implementation===m.implementation){t(y,g.sibling),g=i(g,m.children||[]),g.return=y,y=g;break e}else{t(y,g);break}else r(y,g);g=g.sibling}g=lm(m,y.mode,$),g.return=y,y=g}return a(y);case ho:return S=m._init,b(y,g,S(m._payload),$)}if($c(m))return v(y,g,m,$);if(ec(m))return p(y,g,m,$);fh(y,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,g!==null&&g.tag===6?(t(y,g.sibling),g=i(g,m),g.return=y,y=g):(t(y,g),g=sm(m,y.mode,$),g.return=y,y=g),a(y)):t(y,g)}return b}var Gl=VA(!0),KA=VA(!1),tp=ra(null),rp=null,il=null,zw=null;function Hw(){zw=il=rp=null}function Ww(e){var r=tp.current;Qe(tp),e._currentValue=r}function p$(e,r,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,n!==null&&(n.childLanes|=r)):n!==null&&(n.childLanes&r)!==r&&(n.childLanes|=r),e===t)break;e=e.return}}function _l(e,r){rp=e,zw=il=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&r&&(Cr=!0),e.firstContext=null)}function mn(e){var r=e._currentValue;if(zw!==e)if(e={context:e,memoizedValue:r,next:null},il===null){if(rp===null)throw Error(W(308));il=e,rp.dependencies={lanes:0,firstContext:e}}else il=il.next=e;return r}var wa=null;function Uw(e){wa===null?wa=[e]:wa.push(e)}function GA(e,r,t,n){var i=r.interleaved;return i===null?(t.next=t,Uw(r)):(t.next=i.next,i.next=t),r.interleaved=t,qi(e,n)}function qi(e,r){e.lanes|=r;var t=e.alternate;for(t!==null&&(t.lanes|=r),t=e,e=e.return;e!==null;)e.childLanes|=r,t=e.alternate,t!==null&&(t.childLanes|=r),t=e,e=e.return;return t.tag===3?t.stateNode:null}var vo=!1;function Vw(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qA(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Di(e,r){return{eventTime:e,lane:r,tag:0,payload:null,callback:null,next:null}}function No(e,r,t){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ce&2){var i=n.pending;return i===null?r.next=r:(r.next=i.next,i.next=r),n.pending=r,qi(e,t)}return i=n.interleaved,i===null?(r.next=r,Uw(n)):(r.next=i.next,i.next=r),n.interleaved=r,qi(e,t)}function pv(e,r,t){if(r=r.updateQueue,r!==null&&(r=r.shared,(t&4194240)!==0)){var n=r.lanes;n&=e.pendingLanes,t|=n,r.lanes=t,kw(e,t)}}function RO(e,r){var t=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,t===n)){var i=null,o=null;if(t=t.firstBaseUpdate,t!==null){do{var a={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};o===null?i=o=a:o=o.next=a,t=t.next}while(t!==null);o===null?i=o=r:o=o.next=r}else i=o=r;t={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=r:e.next=r,t.lastBaseUpdate=r}function np(e,r,t,n){var i=e.updateQueue;vo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,c=u=l=null,s=o;do{var f=s.lane,h=s.eventTime;if((n&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,p=s;switch(f=r,h=t,p.tag){case 1:if(v=p.payload,typeof v=="function"){d=v.call(h,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,f=typeof v=="function"?v.call(h,d,f):v,f==null)break e;d=ot({},d,f);break e;case 2:vo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,a|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,r=i.shared.interleaved,r!==null){i=r;do a|=i.lane,i=i.next;while(i!==r)}else o===null&&(i.shared.lanes=0);Qa|=a,e.lanes=a,e.memoizedState=d}}function AO(e,r,t){if(e=r.effects,r.effects=null,e!==null)for(r=0;r<e.length;r++){var n=e[r],i=n.callback;if(i!==null){if(n.callback=null,n=t,typeof i!="function")throw Error(W(191,i));i.call(n)}}}var qd={},hi=ra(qd),ud=ra(qd),cd=ra(qd);function Sa(e){if(e===qd)throw Error(W(174));return e}function Kw(e,r){switch(Ye(cd,r),Ye(ud,e),Ye(hi,qd),e=r.nodeType,e){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Y1(null,"");break;default:e=e===8?r.parentNode:r,r=e.namespaceURI||null,e=e.tagName,r=Y1(r,e)}Qe(hi),Ye(hi,r)}function ql(){Qe(hi),Qe(ud),Qe(cd)}function YA(e){Sa(cd.current);var r=Sa(hi.current),t=Y1(r,e.type);r!==t&&(Ye(ud,e),Ye(hi,t))}function Gw(e){ud.current===e&&(Qe(hi),Qe(ud))}var nt=ra(0);function ip(e){for(var r=e;r!==null;){if(r.tag===13){var t=r.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if(r.flags&128)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var tm=[];function qw(){for(var e=0;e<tm.length;e++)tm[e]._workInProgressVersionPrimary=null;tm.length=0}var yv=ro.ReactCurrentDispatcher,rm=ro.ReactCurrentBatchConfig,Xa=0,it=null,Ot=null,Tt=null,op=!1,Ac=!1,dd=0,z6=0;function qt(){throw Error(W(321))}function Yw(e,r){if(r===null)return!1;for(var t=0;t<r.length&&t<e.length;t++)if(!Kn(e[t],r[t]))return!1;return!0}function Xw(e,r,t,n,i,o){if(Xa=o,it=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,yv.current=e===null||e.memoizedState===null?V6:K6,e=t(n,i),Ac){o=0;do{if(Ac=!1,dd=0,25<=o)throw Error(W(301));o+=1,Tt=Ot=null,r.updateQueue=null,yv.current=G6,e=t(n,i)}while(Ac)}if(yv.current=ap,r=Ot!==null&&Ot.next!==null,Xa=0,Tt=Ot=it=null,op=!1,r)throw Error(W(300));return e}function Qw(){var e=dd!==0;return dd=0,e}function ri(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?it.memoizedState=Tt=e:Tt=Tt.next=e,Tt}function bn(){if(Ot===null){var e=it.alternate;e=e!==null?e.memoizedState:null}else e=Ot.next;var r=Tt===null?it.memoizedState:Tt.next;if(r!==null)Tt=r,Ot=e;else{if(e===null)throw Error(W(310));Ot=e,e={memoizedState:Ot.memoizedState,baseState:Ot.baseState,baseQueue:Ot.baseQueue,queue:Ot.queue,next:null},Tt===null?it.memoizedState=Tt=e:Tt=Tt.next=e}return Tt}function fd(e,r){return typeof r=="function"?r(e):r}function nm(e){var r=bn(),t=r.queue;if(t===null)throw Error(W(311));t.lastRenderedReducer=e;var n=Ot,i=n.baseQueue,o=t.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,t.pending=null}if(i!==null){o=i.next,n=n.baseState;var s=a=null,l=null,u=o;do{var c=u.lane;if((Xa&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=d,a=n):l=l.next=d,it.lanes|=c,Qa|=c}u=u.next}while(u!==null&&u!==o);l===null?a=n:l.next=s,Kn(n,r.memoizedState)||(Cr=!0),r.memoizedState=n,r.baseState=a,r.baseQueue=l,t.lastRenderedState=n}if(e=t.interleaved,e!==null){i=e;do o=i.lane,it.lanes|=o,Qa|=o,i=i.next;while(i!==e)}else i===null&&(t.lanes=0);return[r.memoizedState,t.dispatch]}function im(e){var r=bn(),t=r.queue;if(t===null)throw Error(W(311));t.lastRenderedReducer=e;var n=t.dispatch,i=t.pending,o=r.memoizedState;if(i!==null){t.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Kn(o,r.memoizedState)||(Cr=!0),r.memoizedState=o,r.baseQueue===null&&(r.baseState=o),t.lastRenderedState=o}return[o,n]}function XA(){}function QA(e,r){var t=it,n=bn(),i=r(),o=!Kn(n.memoizedState,i);if(o&&(n.memoizedState=i,Cr=!0),n=n.queue,Zw(eM.bind(null,t,n,e),[e]),n.getSnapshot!==r||o||Tt!==null&&Tt.memoizedState.tag&1){if(t.flags|=2048,hd(9,JA.bind(null,t,n,i,r),void 0,null),It===null)throw Error(W(349));Xa&30||ZA(t,r,i)}return i}function ZA(e,r,t){e.flags|=16384,e={getSnapshot:r,value:t},r=it.updateQueue,r===null?(r={lastEffect:null,stores:null},it.updateQueue=r,r.stores=[e]):(t=r.stores,t===null?r.stores=[e]:t.push(e))}function JA(e,r,t,n){r.value=t,r.getSnapshot=n,tM(r)&&rM(e)}function eM(e,r,t){return t(function(){tM(r)&&rM(e)})}function tM(e){var r=e.getSnapshot;e=e.value;try{var t=r();return!Kn(e,t)}catch{return!0}}function rM(e){var r=qi(e,1);r!==null&&Vn(r,e,1,-1)}function MO(e){var r=ri();return typeof e=="function"&&(e=e()),r.memoizedState=r.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fd,lastRenderedState:e},r.queue=e,e=e.dispatch=U6.bind(null,it,e),[r.memoizedState,e]}function hd(e,r,t,n){return e={tag:e,create:r,destroy:t,deps:n,next:null},r=it.updateQueue,r===null?(r={lastEffect:null,stores:null},it.updateQueue=r,r.lastEffect=e.next=e):(t=r.lastEffect,t===null?r.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,r.lastEffect=e)),e}function nM(){return bn().memoizedState}function gv(e,r,t,n){var i=ri();it.flags|=e,i.memoizedState=hd(1|r,t,void 0,n===void 0?null:n)}function ey(e,r,t,n){var i=bn();n=n===void 0?null:n;var o=void 0;if(Ot!==null){var a=Ot.memoizedState;if(o=a.destroy,n!==null&&Yw(n,a.deps)){i.memoizedState=hd(r,t,o,n);return}}it.flags|=e,i.memoizedState=hd(1|r,t,o,n)}function NO(e,r){return gv(8390656,8,e,r)}function Zw(e,r){return ey(2048,8,e,r)}function iM(e,r){return ey(4,2,e,r)}function oM(e,r){return ey(4,4,e,r)}function aM(e,r){if(typeof r=="function")return e=e(),r(e),function(){r(null)};if(r!=null)return e=e(),r.current=e,function(){r.current=null}}function sM(e,r,t){return t=t!=null?t.concat([e]):null,ey(4,4,aM.bind(null,r,e),t)}function Jw(){}function lM(e,r){var t=bn();r=r===void 0?null:r;var n=t.memoizedState;return n!==null&&r!==null&&Yw(r,n[1])?n[0]:(t.memoizedState=[e,r],e)}function uM(e,r){var t=bn();r=r===void 0?null:r;var n=t.memoizedState;return n!==null&&r!==null&&Yw(r,n[1])?n[0]:(e=e(),t.memoizedState=[e,r],e)}function cM(e,r,t){return Xa&21?(Kn(t,r)||(t=pA(),it.lanes|=t,Qa|=t,e.baseState=!0),r):(e.baseState&&(e.baseState=!1,Cr=!0),e.memoizedState=t)}function H6(e,r){var t=je;je=t!==0&&4>t?t:4,e(!0);var n=rm.transition;rm.transition={};try{e(!1),r()}finally{je=t,rm.transition=n}}function dM(){return bn().memoizedState}function W6(e,r,t){var n=Fo(e);if(t={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null},fM(e))hM(r,t);else if(t=GA(e,r,t,n),t!==null){var i=dr();Vn(t,e,n,i),vM(t,r,n)}}function U6(e,r,t){var n=Fo(e),i={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null};if(fM(e))hM(r,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=r.lastRenderedReducer,o!==null))try{var a=r.lastRenderedState,s=o(a,t);if(i.hasEagerState=!0,i.eagerState=s,Kn(s,a)){var l=r.interleaved;l===null?(i.next=i,Uw(r)):(i.next=l.next,l.next=i),r.interleaved=i;return}}catch{}finally{}t=GA(e,r,i,n),t!==null&&(i=dr(),Vn(t,e,n,i),vM(t,r,n))}}function fM(e){var r=e.alternate;return e===it||r!==null&&r===it}function hM(e,r){Ac=op=!0;var t=e.pending;t===null?r.next=r:(r.next=t.next,t.next=r),e.pending=r}function vM(e,r,t){if(t&4194240){var n=r.lanes;n&=e.pendingLanes,t|=n,r.lanes=t,kw(e,t)}}var ap={readContext:mn,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useInsertionEffect:qt,useLayoutEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useMutableSource:qt,useSyncExternalStore:qt,useId:qt,unstable_isNewReconciler:!1},V6={readContext:mn,useCallback:function(e,r){return ri().memoizedState=[e,r===void 0?null:r],e},useContext:mn,useEffect:NO,useImperativeHandle:function(e,r,t){return t=t!=null?t.concat([e]):null,gv(4194308,4,aM.bind(null,r,e),t)},useLayoutEffect:function(e,r){return gv(4194308,4,e,r)},useInsertionEffect:function(e,r){return gv(4,2,e,r)},useMemo:function(e,r){var t=ri();return r=r===void 0?null:r,e=e(),t.memoizedState=[e,r],e},useReducer:function(e,r,t){var n=ri();return r=t!==void 0?t(r):r,n.memoizedState=n.baseState=r,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=W6.bind(null,it,e),[n.memoizedState,e]},useRef:function(e){var r=ri();return e={current:e},r.memoizedState=e},useState:MO,useDebugValue:Jw,useDeferredValue:function(e){return ri().memoizedState=e},useTransition:function(){var e=MO(!1),r=e[0];return e=H6.bind(null,e[1]),ri().memoizedState=e,[r,e]},useMutableSource:function(){},useSyncExternalStore:function(e,r,t){var n=it,i=ri();if(Je){if(t===void 0)throw Error(W(407));t=t()}else{if(t=r(),It===null)throw Error(W(349));Xa&30||ZA(n,r,t)}i.memoizedState=t;var o={value:t,getSnapshot:r};return i.queue=o,NO(eM.bind(null,n,o,e),[e]),n.flags|=2048,hd(9,JA.bind(null,n,o,t,r),void 0,null),t},useId:function(){var e=ri(),r=It.identifierPrefix;if(Je){var t=Mi,n=Ai;t=(n&~(1<<32-Un(n)-1)).toString(32)+t,r=":"+r+"R"+t,t=dd++,0<t&&(r+="H"+t.toString(32)),r+=":"}else t=z6++,r=":"+r+"r"+t.toString(32)+":";return e.memoizedState=r},unstable_isNewReconciler:!1},K6={readContext:mn,useCallback:lM,useContext:mn,useEffect:Zw,useImperativeHandle:sM,useInsertionEffect:iM,useLayoutEffect:oM,useMemo:uM,useReducer:nm,useRef:nM,useState:function(){return nm(fd)},useDebugValue:Jw,useDeferredValue:function(e){var r=bn();return cM(r,Ot.memoizedState,e)},useTransition:function(){var e=nm(fd)[0],r=bn().memoizedState;return[e,r]},useMutableSource:XA,useSyncExternalStore:QA,useId:dM,unstable_isNewReconciler:!1},G6={readContext:mn,useCallback:lM,useContext:mn,useEffect:Zw,useImperativeHandle:sM,useInsertionEffect:iM,useLayoutEffect:oM,useMemo:uM,useReducer:im,useRef:nM,useState:function(){return im(fd)},useDebugValue:Jw,useDeferredValue:function(e){var r=bn();return Ot===null?r.memoizedState=e:cM(r,Ot.memoizedState,e)},useTransition:function(){var e=im(fd)[0],r=bn().memoizedState;return[e,r]},useMutableSource:XA,useSyncExternalStore:QA,useId:dM,unstable_isNewReconciler:!1};function In(e,r){if(e&&e.defaultProps){r=ot({},r),e=e.defaultProps;for(var t in e)r[t]===void 0&&(r[t]=e[t]);return r}return r}function y$(e,r,t,n){r=e.memoizedState,t=t(n,r),t=t==null?r:ot({},r,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var ty={isMounted:function(e){return(e=e._reactInternals)?fs(e)===e:!1},enqueueSetState:function(e,r,t){e=e._reactInternals;var n=dr(),i=Fo(e),o=Di(n,i);o.payload=r,t!=null&&(o.callback=t),r=No(e,o,i),r!==null&&(Vn(r,e,i,n),pv(r,e,i))},enqueueReplaceState:function(e,r,t){e=e._reactInternals;var n=dr(),i=Fo(e),o=Di(n,i);o.tag=1,o.payload=r,t!=null&&(o.callback=t),r=No(e,o,i),r!==null&&(Vn(r,e,i,n),pv(r,e,i))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var t=dr(),n=Fo(e),i=Di(t,n);i.tag=2,r!=null&&(i.callback=r),r=No(e,i,n),r!==null&&(Vn(r,e,n,t),pv(r,e,n))}};function DO(e,r,t,n,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,a):r.prototype&&r.prototype.isPureReactComponent?!od(t,n)||!od(i,o):!0}function pM(e,r,t){var n=!1,i=qo,o=r.contextType;return typeof o=="object"&&o!==null?o=mn(o):(i=xr(r)?qa:Jt.current,n=r.contextTypes,o=(n=n!=null)?Vl(e,i):qo),r=new r(t,o),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=ty,e.stateNode=r,r._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),r}function FO(e,r,t,n){e=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(t,n),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(t,n),r.state!==e&&ty.enqueueReplaceState(r,r.state,null)}function g$(e,r,t,n){var i=e.stateNode;i.props=t,i.state=e.memoizedState,i.refs={},Vw(e);var o=r.contextType;typeof o=="object"&&o!==null?i.context=mn(o):(o=xr(r)?qa:Jt.current,i.context=Vl(e,o)),i.state=e.memoizedState,o=r.getDerivedStateFromProps,typeof o=="function"&&(y$(e,r,o,t),i.state=e.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(r=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),r!==i.state&&ty.enqueueReplaceState(i,i.state,null),np(e,t,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Yl(e,r){try{var t="",n=r;do t+=w4(n),n=n.return;while(n);var i=t}catch(o){i=`
|
39
|
-
Error generating stack: `+o.message+`
|
40
|
-
`+o.stack}return{value:e,source:r,stack:i,digest:null}}function om(e,r,t){return{value:e,source:null,stack:t??null,digest:r??null}}function m$(e,r){try{console.error(r.value)}catch(t){setTimeout(function(){throw t})}}var q6=typeof WeakMap=="function"?WeakMap:Map;function yM(e,r,t){t=Di(-1,t),t.tag=3,t.payload={element:null};var n=r.value;return t.callback=function(){lp||(lp=!0,T$=n),m$(e,r)},t}function gM(e,r,t){t=Di(-1,t),t.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=r.value;t.payload=function(){return n(i)},t.callback=function(){m$(e,r)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){m$(e,r),typeof n!="function"&&(Do===null?Do=new Set([this]):Do.add(this));var a=r.stack;this.componentDidCatch(r.value,{componentStack:a!==null?a:""})}),t}function LO(e,r,t){var n=e.pingCache;if(n===null){n=e.pingCache=new q6;var i=new Set;n.set(r,i)}else i=n.get(r),i===void 0&&(i=new Set,n.set(r,i));i.has(t)||(i.add(t),e=l8.bind(null,e,r,t),r.then(e,e))}function jO(e){do{var r;if((r=e.tag===13)&&(r=e.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return e;e=e.return}while(e!==null);return null}function BO(e,r,t,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===r?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(r=Di(-1,1),r.tag=2,No(t,r,1))),t.lanes|=1),e)}var Y6=ro.ReactCurrentOwner,Cr=!1;function ar(e,r,t,n){r.child=e===null?KA(r,null,t,n):Gl(r,e.child,t,n)}function zO(e,r,t,n,i){t=t.render;var o=r.ref;return _l(r,i),n=Xw(e,r,t,n,o,i),t=Qw(),e!==null&&!Cr?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~i,Yi(e,r,i)):(Je&&t&&Lw(r),r.flags|=1,ar(e,r,n,i),r.child)}function HO(e,r,t,n,i){if(e===null){var o=t.type;return typeof o=="function"&&!sS(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(r.tag=15,r.type=o,mM(e,r,o,n,i)):(e=wv(t.type,null,n,r,r.mode,i),e.ref=r.ref,e.return=r,r.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(t=t.compare,t=t!==null?t:od,t(a,n)&&e.ref===r.ref)return Yi(e,r,i)}return r.flags|=1,e=Lo(o,n),e.ref=r.ref,e.return=r,r.child=e}function mM(e,r,t,n,i){if(e!==null){var o=e.memoizedProps;if(od(o,n)&&e.ref===r.ref)if(Cr=!1,r.pendingProps=n=o,(e.lanes&i)!==0)e.flags&131072&&(Cr=!0);else return r.lanes=e.lanes,Yi(e,r,i)}return b$(e,r,t,n,i)}function bM(e,r,t){var n=r.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(r.mode&1))r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ye(al,zr),zr|=t;else{if(!(t&1073741824))return e=o!==null?o.baseLanes|t:t,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:e,cachePool:null,transitions:null},r.updateQueue=null,Ye(al,zr),zr|=e,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:t,Ye(al,zr),zr|=n}else o!==null?(n=o.baseLanes|t,r.memoizedState=null):n=t,Ye(al,zr),zr|=n;return ar(e,r,i,t),r.child}function $M(e,r){var t=r.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(r.flags|=512,r.flags|=2097152)}function b$(e,r,t,n,i){var o=xr(t)?qa:Jt.current;return o=Vl(r,o),_l(r,i),t=Xw(e,r,t,n,o,i),n=Qw(),e!==null&&!Cr?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~i,Yi(e,r,i)):(Je&&n&&Lw(r),r.flags|=1,ar(e,r,t,i),r.child)}function WO(e,r,t,n,i){if(xr(t)){var o=!0;Zv(r)}else o=!1;if(_l(r,i),r.stateNode===null)mv(e,r),pM(r,t,n),g$(r,t,n,i),n=!0;else if(e===null){var a=r.stateNode,s=r.memoizedProps;a.props=s;var l=a.context,u=t.contextType;typeof u=="object"&&u!==null?u=mn(u):(u=xr(t)?qa:Jt.current,u=Vl(r,u));var c=t.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==u)&&FO(r,a,n,u),vo=!1;var f=r.memoizedState;a.state=f,np(r,n,a,i),l=r.memoizedState,s!==n||f!==l||Tr.current||vo?(typeof c=="function"&&(y$(r,t,c,n),l=r.memoizedState),(s=vo||DO(r,t,s,n,f,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(r.flags|=4194308)):(typeof a.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=n,r.memoizedState=l),a.props=n,a.state=l,a.context=u,n=s):(typeof a.componentDidMount=="function"&&(r.flags|=4194308),n=!1)}else{a=r.stateNode,qA(e,r),s=r.memoizedProps,u=r.type===r.elementType?s:In(r.type,s),a.props=u,d=r.pendingProps,f=a.context,l=t.contextType,typeof l=="object"&&l!==null?l=mn(l):(l=xr(t)?qa:Jt.current,l=Vl(r,l));var h=t.getDerivedStateFromProps;(c=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&FO(r,a,n,l),vo=!1,f=r.memoizedState,a.state=f,np(r,n,a,i);var v=r.memoizedState;s!==d||f!==v||Tr.current||vo?(typeof h=="function"&&(y$(r,t,h,n),v=r.memoizedState),(u=vo||DO(r,t,u,n,f,v,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,v,l)),typeof a.componentDidUpdate=="function"&&(r.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(r.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(r.flags|=1024),r.memoizedProps=n,r.memoizedState=v),a.props=n,a.state=v,a.context=l,n=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(r.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(r.flags|=1024),n=!1)}return $$(e,r,t,n,o,i)}function $$(e,r,t,n,i,o){$M(e,r);var a=(r.flags&128)!==0;if(!n&&!a)return i&&TO(r,t,!1),Yi(e,r,o);n=r.stateNode,Y6.current=r;var s=a&&typeof t.getDerivedStateFromError!="function"?null:n.render();return r.flags|=1,e!==null&&a?(r.child=Gl(r,e.child,null,o),r.child=Gl(r,null,s,o)):ar(e,r,s,o),r.memoizedState=n.state,i&&TO(r,t,!0),r.child}function wM(e){var r=e.stateNode;r.pendingContext?CO(e,r.pendingContext,r.pendingContext!==r.context):r.context&&CO(e,r.context,!1),Kw(e,r.containerInfo)}function UO(e,r,t,n,i){return Kl(),Bw(i),r.flags|=256,ar(e,r,t,n),r.child}var w$={dehydrated:null,treeContext:null,retryLane:0};function S$(e){return{baseLanes:e,cachePool:null,transitions:null}}function SM(e,r,t){var n=r.pendingProps,i=nt.current,o=!1,a=(r.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,r.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ye(nt,i&1),e===null)return v$(r),e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(r.mode&1?e.data==="$!"?r.lanes=8:r.lanes=1073741824:r.lanes=1,null):(a=n.children,e=n.fallback,o?(n=r.mode,o=r.child,a={mode:"hidden",children:a},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=iy(a,n,0,null),e=Na(e,n,t,null),o.return=r,e.return=r,o.sibling=e,r.child=o,r.child.memoizedState=S$(t),r.memoizedState=w$,e):eS(r,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return X6(e,r,a,n,s,i,t);if(o){o=n.fallback,a=r.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(a&1)&&r.child!==i?(n=r.child,n.childLanes=0,n.pendingProps=l,r.deletions=null):(n=Lo(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Lo(s,o):(o=Na(o,a,t,null),o.flags|=2),o.return=r,n.return=r,n.sibling=o,r.child=n,n=o,o=r.child,a=e.child.memoizedState,a=a===null?S$(t):{baseLanes:a.baseLanes|t,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~t,r.memoizedState=w$,n}return o=e.child,e=o.sibling,n=Lo(o,{mode:"visible",children:n.children}),!(r.mode&1)&&(n.lanes=t),n.return=r,n.sibling=null,e!==null&&(t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e)),r.child=n,r.memoizedState=null,n}function eS(e,r){return r=iy({mode:"visible",children:r},e.mode,0,null),r.return=e,e.child=r}function hh(e,r,t,n){return n!==null&&Bw(n),Gl(r,e.child,null,t),e=eS(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function X6(e,r,t,n,i,o,a){if(t)return r.flags&256?(r.flags&=-257,n=om(Error(W(422))),hh(e,r,a,n)):r.memoizedState!==null?(r.child=e.child,r.flags|=128,null):(o=n.fallback,i=r.mode,n=iy({mode:"visible",children:n.children},i,0,null),o=Na(o,i,a,null),o.flags|=2,n.return=r,o.return=r,n.sibling=o,r.child=n,r.mode&1&&Gl(r,e.child,null,a),r.child.memoizedState=S$(a),r.memoizedState=w$,o);if(!(r.mode&1))return hh(e,r,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(W(419)),n=om(o,n,void 0),hh(e,r,a,n)}if(s=(a&e.childLanes)!==0,Cr||s){if(n=It,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,qi(e,i),Vn(n,e,i,-1))}return aS(),n=om(Error(W(421))),hh(e,r,a,n)}return i.data==="$?"?(r.flags|=128,r.child=e.child,r=u8.bind(null,e),i._reactRetry=r,null):(e=o.treeContext,Ur=Mo(i.nextSibling),Kr=r,Je=!0,Nn=null,e!==null&&(un[cn++]=Ai,un[cn++]=Mi,un[cn++]=Ya,Ai=e.id,Mi=e.overflow,Ya=r),r=eS(r,n.children),r.flags|=4096,r)}function VO(e,r,t){e.lanes|=r;var n=e.alternate;n!==null&&(n.lanes|=r),p$(e.return,r,t)}function am(e,r,t,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:n,tail:t,tailMode:i}:(o.isBackwards=r,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=t,o.tailMode=i)}function _M(e,r,t){var n=r.pendingProps,i=n.revealOrder,o=n.tail;if(ar(e,r,n.children,t),n=nt.current,n&2)n=n&1|2,r.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=r.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&VO(e,t,r);else if(e.tag===19)VO(e,t,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break e;for(;e.sibling===null;){if(e.return===null||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ye(nt,n),!(r.mode&1))r.memoizedState=null;else switch(i){case"forwards":for(t=r.child,i=null;t!==null;)e=t.alternate,e!==null&&ip(e)===null&&(i=t),t=t.sibling;t=i,t===null?(i=r.child,r.child=null):(i=t.sibling,t.sibling=null),am(r,!1,i,t,o);break;case"backwards":for(t=null,i=r.child,r.child=null;i!==null;){if(e=i.alternate,e!==null&&ip(e)===null){r.child=i;break}e=i.sibling,i.sibling=t,t=i,i=e}am(r,!0,t,null,o);break;case"together":am(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function mv(e,r){!(r.mode&1)&&e!==null&&(e.alternate=null,r.alternate=null,r.flags|=2)}function Yi(e,r,t){if(e!==null&&(r.dependencies=e.dependencies),Qa|=r.lanes,!(t&r.childLanes))return null;if(e!==null&&r.child!==e.child)throw Error(W(153));if(r.child!==null){for(e=r.child,t=Lo(e,e.pendingProps),r.child=t,t.return=r;e.sibling!==null;)e=e.sibling,t=t.sibling=Lo(e,e.pendingProps),t.return=r;t.sibling=null}return r.child}function Q6(e,r,t){switch(r.tag){case 3:wM(r),Kl();break;case 5:YA(r);break;case 1:xr(r.type)&&Zv(r);break;case 4:Kw(r,r.stateNode.containerInfo);break;case 10:var n=r.type._context,i=r.memoizedProps.value;Ye(tp,n._currentValue),n._currentValue=i;break;case 13:if(n=r.memoizedState,n!==null)return n.dehydrated!==null?(Ye(nt,nt.current&1),r.flags|=128,null):t&r.child.childLanes?SM(e,r,t):(Ye(nt,nt.current&1),e=Yi(e,r,t),e!==null?e.sibling:null);Ye(nt,nt.current&1);break;case 19:if(n=(t&r.childLanes)!==0,e.flags&128){if(n)return _M(e,r,t);r.flags|=128}if(i=r.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ye(nt,nt.current),n)break;return null;case 22:case 23:return r.lanes=0,bM(e,r,t)}return Yi(e,r,t)}var EM,_$,OM,PM;EM=function(e,r){for(var t=r.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break;for(;t.sibling===null;){if(t.return===null||t.return===r)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};_$=function(){};OM=function(e,r,t,n){var i=e.memoizedProps;if(i!==n){e=r.stateNode,Sa(hi.current);var o=null;switch(t){case"input":i=V1(e,i),n=V1(e,n),o=[];break;case"select":i=ot({},i,{value:void 0}),n=ot({},n,{value:void 0}),o=[];break;case"textarea":i=q1(e,i),n=q1(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Xv)}X1(t,n);var a;t=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(t||(t={}),t[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Zc.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(t||(t={}),t[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(t||(t={}),t[a]=l[a])}else t||(o||(o=[]),o.push(u,t)),t=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Zc.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Xe("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}t&&(o=o||[]).push("style",t);var u=o;(r.updateQueue=u)&&(r.flags|=4)}};PM=function(e,r,t,n){t!==n&&(r.flags|=4)};function ac(e,r){if(!Je)switch(e.tailMode){case"hidden":r=e.tail;for(var t=null;r!==null;)r.alternate!==null&&(t=r),r=r.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?r||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Yt(e){var r=e.alternate!==null&&e.alternate.child===e.child,t=0,n=0;if(r)for(var i=e.child;i!==null;)t|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)t|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=t,r}function Z6(e,r,t){var n=r.pendingProps;switch(jw(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(r),null;case 1:return xr(r.type)&&Qv(),Yt(r),null;case 3:return n=r.stateNode,ql(),Qe(Tr),Qe(Jt),qw(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(dh(r)?r.flags|=4:e===null||e.memoizedState.isDehydrated&&!(r.flags&256)||(r.flags|=1024,Nn!==null&&(I$(Nn),Nn=null))),_$(e,r),Yt(r),null;case 5:Gw(r);var i=Sa(cd.current);if(t=r.type,e!==null&&r.stateNode!=null)OM(e,r,t,n,i),e.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!n){if(r.stateNode===null)throw Error(W(166));return Yt(r),null}if(e=Sa(hi.current),dh(r)){n=r.stateNode,t=r.type;var o=r.memoizedProps;switch(n[si]=r,n[ld]=o,e=(r.mode&1)!==0,t){case"dialog":Xe("cancel",n),Xe("close",n);break;case"iframe":case"object":case"embed":Xe("load",n);break;case"video":case"audio":for(i=0;i<Sc.length;i++)Xe(Sc[i],n);break;case"source":Xe("error",n);break;case"img":case"image":case"link":Xe("error",n),Xe("load",n);break;case"details":Xe("toggle",n);break;case"input":eO(n,o),Xe("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Xe("invalid",n);break;case"textarea":rO(n,o),Xe("invalid",n)}X1(t,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?n.textContent!==s&&(o.suppressHydrationWarning!==!0&&ch(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&ch(n.textContent,s,e),i=["children",""+s]):Zc.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Xe("scroll",n)}switch(t){case"input":rh(n),tO(n,o,!0);break;case"textarea":rh(n),nO(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Xv)}n=i,r.updateQueue=n,n!==null&&(r.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=eA(t)),e==="http://www.w3.org/1999/xhtml"?t==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(t,{is:n.is}):(e=a.createElement(t),t==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,t),e[si]=r,e[ld]=n,EM(e,r,!1,!1),r.stateNode=e;e:{switch(a=Q1(t,n),t){case"dialog":Xe("cancel",e),Xe("close",e),i=n;break;case"iframe":case"object":case"embed":Xe("load",e),i=n;break;case"video":case"audio":for(i=0;i<Sc.length;i++)Xe(Sc[i],e);i=n;break;case"source":Xe("error",e),i=n;break;case"img":case"image":case"link":Xe("error",e),Xe("load",e),i=n;break;case"details":Xe("toggle",e),i=n;break;case"input":eO(e,n),i=V1(e,n),Xe("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=ot({},n,{value:void 0}),Xe("invalid",e);break;case"textarea":rO(e,n),i=q1(e,n),Xe("invalid",e);break;default:i=n}X1(t,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?nA(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&tA(e,l)):o==="children"?typeof l=="string"?(t!=="textarea"||l!=="")&&Jc(e,l):typeof l=="number"&&Jc(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Zc.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Xe("scroll",e):l!=null&&Ew(e,o,l,a))}switch(t){case"input":rh(e),tO(e,n,!1);break;case"textarea":rh(e),nO(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Go(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?bl(e,!!n.multiple,o,!1):n.defaultValue!=null&&bl(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Xv)}switch(t){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return Yt(r),null;case 6:if(e&&r.stateNode!=null)PM(e,r,e.memoizedProps,n);else{if(typeof n!="string"&&r.stateNode===null)throw Error(W(166));if(t=Sa(cd.current),Sa(hi.current),dh(r)){if(n=r.stateNode,t=r.memoizedProps,n[si]=r,(o=n.nodeValue!==t)&&(e=Kr,e!==null))switch(e.tag){case 3:ch(n.nodeValue,t,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ch(n.nodeValue,t,(e.mode&1)!==0)}o&&(r.flags|=4)}else n=(t.nodeType===9?t:t.ownerDocument).createTextNode(n),n[si]=r,r.stateNode=n}return Yt(r),null;case 13:if(Qe(nt),n=r.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Je&&Ur!==null&&r.mode&1&&!(r.flags&128))UA(),Kl(),r.flags|=98560,o=!1;else if(o=dh(r),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(W(318));if(o=r.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(W(317));o[si]=r}else Kl(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;Yt(r),o=!1}else Nn!==null&&(I$(Nn),Nn=null),o=!0;if(!o)return r.flags&65536?r:null}return r.flags&128?(r.lanes=t,r):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(r.child.flags|=8192,r.mode&1&&(e===null||nt.current&1?Pt===0&&(Pt=3):aS())),r.updateQueue!==null&&(r.flags|=4),Yt(r),null);case 4:return ql(),_$(e,r),e===null&&ad(r.stateNode.containerInfo),Yt(r),null;case 10:return Ww(r.type._context),Yt(r),null;case 17:return xr(r.type)&&Qv(),Yt(r),null;case 19:if(Qe(nt),o=r.memoizedState,o===null)return Yt(r),null;if(n=(r.flags&128)!==0,a=o.rendering,a===null)if(n)ac(o,!1);else{if(Pt!==0||e!==null&&e.flags&128)for(e=r.child;e!==null;){if(a=ip(e),a!==null){for(r.flags|=128,ac(o,!1),n=a.updateQueue,n!==null&&(r.updateQueue=n,r.flags|=4),r.subtreeFlags=0,n=t,t=r.child;t!==null;)o=t,e=n,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return Ye(nt,nt.current&1|2),r.child}e=e.sibling}o.tail!==null&&yt()>Xl&&(r.flags|=128,n=!0,ac(o,!1),r.lanes=4194304)}else{if(!n)if(e=ip(a),e!==null){if(r.flags|=128,n=!0,t=e.updateQueue,t!==null&&(r.updateQueue=t,r.flags|=4),ac(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Je)return Yt(r),null}else 2*yt()-o.renderingStartTime>Xl&&t!==1073741824&&(r.flags|=128,n=!0,ac(o,!1),r.lanes=4194304);o.isBackwards?(a.sibling=r.child,r.child=a):(t=o.last,t!==null?t.sibling=a:r.child=a,o.last=a)}return o.tail!==null?(r=o.tail,o.rendering=r,o.tail=r.sibling,o.renderingStartTime=yt(),r.sibling=null,t=nt.current,Ye(nt,n?t&1|2:t&1),r):(Yt(r),null);case 22:case 23:return oS(),n=r.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(r.flags|=8192),n&&r.mode&1?zr&1073741824&&(Yt(r),r.subtreeFlags&6&&(r.flags|=8192)):Yt(r),null;case 24:return null;case 25:return null}throw Error(W(156,r.tag))}function J6(e,r){switch(jw(r),r.tag){case 1:return xr(r.type)&&Qv(),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return ql(),Qe(Tr),Qe(Jt),qw(),e=r.flags,e&65536&&!(e&128)?(r.flags=e&-65537|128,r):null;case 5:return Gw(r),null;case 13:if(Qe(nt),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(W(340));Kl()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return Qe(nt),null;case 4:return ql(),null;case 10:return Ww(r.type._context),null;case 22:case 23:return oS(),null;case 24:return null;default:return null}}var vh=!1,Qt=!1,e8=typeof WeakSet=="function"?WeakSet:Set,re=null;function ol(e,r){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){lt(e,r,n)}else t.current=null}function E$(e,r,t){try{t()}catch(n){lt(e,r,n)}}var KO=!1;function t8(e,r){if(s$=Gv,e=IA(),Fw(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var n=t.getSelection&&t.getSelection();if(n&&n.rangeCount!==0){t=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==t||i!==0&&d.nodeType!==3||(s=a+i),d!==o||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===t&&++u===i&&(s=a),f===o&&++c===n&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(l$={focusedElem:e,selectionRange:t},Gv=!1,re=r;re!==null;)if(r=re,e=r.child,(r.subtreeFlags&1028)!==0&&e!==null)e.return=r,re=e;else for(;re!==null;){r=re;try{var v=r.alternate;if(r.flags&1024)switch(r.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,b=v.memoizedState,y=r.stateNode,g=y.getSnapshotBeforeUpdate(r.elementType===r.type?p:In(r.type,p),b);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var m=r.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch($){lt(r,r.return,$)}if(e=r.sibling,e!==null){e.return=r.return,re=e;break}re=r.return}return v=KO,KO=!1,v}function Mc(e,r,t){var n=r.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&E$(r,t,o)}i=i.next}while(i!==n)}}function ry(e,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var t=r=r.next;do{if((t.tag&e)===e){var n=t.create;t.destroy=n()}t=t.next}while(t!==r)}}function O$(e){var r=e.ref;if(r!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof r=="function"?r(e):r.current=e}}function CM(e){var r=e.alternate;r!==null&&(e.alternate=null,CM(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&(delete r[si],delete r[ld],delete r[d$],delete r[F6],delete r[L6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function TM(e){return e.tag===5||e.tag===3||e.tag===4}function GO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TM(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function P$(e,r,t){var n=e.tag;if(n===5||n===6)e=e.stateNode,r?t.nodeType===8?t.parentNode.insertBefore(e,r):t.insertBefore(e,r):(t.nodeType===8?(r=t.parentNode,r.insertBefore(e,t)):(r=t,r.appendChild(e)),t=t._reactRootContainer,t!=null||r.onclick!==null||(r.onclick=Xv));else if(n!==4&&(e=e.child,e!==null))for(P$(e,r,t),e=e.sibling;e!==null;)P$(e,r,t),e=e.sibling}function C$(e,r,t){var n=e.tag;if(n===5||n===6)e=e.stateNode,r?t.insertBefore(e,r):t.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(C$(e,r,t),e=e.sibling;e!==null;)C$(e,r,t),e=e.sibling}var Ht=null,An=!1;function ao(e,r,t){for(t=t.child;t!==null;)xM(e,r,t),t=t.sibling}function xM(e,r,t){if(fi&&typeof fi.onCommitFiberUnmount=="function")try{fi.onCommitFiberUnmount(qp,t)}catch{}switch(t.tag){case 5:Qt||ol(t,r);case 6:var n=Ht,i=An;Ht=null,ao(e,r,t),Ht=n,An=i,Ht!==null&&(An?(e=Ht,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):Ht.removeChild(t.stateNode));break;case 18:Ht!==null&&(An?(e=Ht,t=t.stateNode,e.nodeType===8?Jg(e.parentNode,t):e.nodeType===1&&Jg(e,t),nd(e)):Jg(Ht,t.stateNode));break;case 4:n=Ht,i=An,Ht=t.stateNode.containerInfo,An=!0,ao(e,r,t),Ht=n,An=i;break;case 0:case 11:case 14:case 15:if(!Qt&&(n=t.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&E$(t,r,a),i=i.next}while(i!==n)}ao(e,r,t);break;case 1:if(!Qt&&(ol(t,r),n=t.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(s){lt(t,r,s)}ao(e,r,t);break;case 21:ao(e,r,t);break;case 22:t.mode&1?(Qt=(n=Qt)||t.memoizedState!==null,ao(e,r,t),Qt=n):ao(e,r,t);break;default:ao(e,r,t)}}function qO(e){var r=e.updateQueue;if(r!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new e8),r.forEach(function(n){var i=c8.bind(null,e,n);t.has(n)||(t.add(n),n.then(i,i))})}}function kn(e,r){var t=r.deletions;if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];try{var o=e,a=r,s=a;e:for(;s!==null;){switch(s.tag){case 5:Ht=s.stateNode,An=!1;break e;case 3:Ht=s.stateNode.containerInfo,An=!0;break e;case 4:Ht=s.stateNode.containerInfo,An=!0;break e}s=s.return}if(Ht===null)throw Error(W(160));xM(o,a,i),Ht=null,An=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){lt(i,r,u)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)kM(r,e),r=r.sibling}function kM(e,r){var t=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kn(r,e),Zn(e),n&4){try{Mc(3,e,e.return),ry(3,e)}catch(p){lt(e,e.return,p)}try{Mc(5,e,e.return)}catch(p){lt(e,e.return,p)}}break;case 1:kn(r,e),Zn(e),n&512&&t!==null&&ol(t,t.return);break;case 5:if(kn(r,e),Zn(e),n&512&&t!==null&&ol(t,t.return),e.flags&32){var i=e.stateNode;try{Jc(i,"")}catch(p){lt(e,e.return,p)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=t!==null?t.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Z2(i,o),Q1(s,a);var u=Q1(s,o);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];c==="style"?nA(i,d):c==="dangerouslySetInnerHTML"?tA(i,d):c==="children"?Jc(i,d):Ew(i,c,d,u)}switch(s){case"input":K1(i,o);break;case"textarea":J2(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?bl(i,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?bl(i,!!o.multiple,o.defaultValue,!0):bl(i,!!o.multiple,o.multiple?[]:"",!1))}i[ld]=o}catch(p){lt(e,e.return,p)}}break;case 6:if(kn(r,e),Zn(e),n&4){if(e.stateNode===null)throw Error(W(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(p){lt(e,e.return,p)}}break;case 3:if(kn(r,e),Zn(e),n&4&&t!==null&&t.memoizedState.isDehydrated)try{nd(r.containerInfo)}catch(p){lt(e,e.return,p)}break;case 4:kn(r,e),Zn(e);break;case 13:kn(r,e),Zn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(nS=yt())),n&4&&qO(e);break;case 22:if(c=t!==null&&t.memoizedState!==null,e.mode&1?(Qt=(u=Qt)||c,kn(r,e),Qt=u):kn(r,e),Zn(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(re=e,c=e.child;c!==null;){for(d=re=c;re!==null;){switch(f=re,h=f.child,f.tag){case 0:case 11:case 14:case 15:Mc(4,f,f.return);break;case 1:ol(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){n=f,t=f.return;try{r=n,v.props=r.memoizedProps,v.state=r.memoizedState,v.componentWillUnmount()}catch(p){lt(n,t,p)}}break;case 5:ol(f,f.return);break;case 22:if(f.memoizedState!==null){XO(d);continue}}h!==null?(h.return=f,re=h):XO(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=rA("display",a))}catch(p){lt(e,e.return,p)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(p){lt(e,e.return,p)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:kn(r,e),Zn(e),n&4&&qO(e);break;case 21:break;default:kn(r,e),Zn(e)}}function Zn(e){var r=e.flags;if(r&2){try{e:{for(var t=e.return;t!==null;){if(TM(t)){var n=t;break e}t=t.return}throw Error(W(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Jc(i,""),n.flags&=-33);var o=GO(e);C$(e,o,i);break;case 3:case 4:var a=n.stateNode.containerInfo,s=GO(e);P$(e,s,a);break;default:throw Error(W(161))}}catch(l){lt(e,e.return,l)}e.flags&=-3}r&4096&&(e.flags&=-4097)}function r8(e,r,t){re=e,IM(e)}function IM(e,r,t){for(var n=(e.mode&1)!==0;re!==null;){var i=re,o=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||vh;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Qt;s=vh;var u=Qt;if(vh=a,(Qt=l)&&!u)for(re=i;re!==null;)a=re,l=a.child,a.tag===22&&a.memoizedState!==null?QO(i):l!==null?(l.return=a,re=l):QO(i);for(;o!==null;)re=o,IM(o),o=o.sibling;re=i,vh=s,Qt=u}YO(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,re=o):YO(e)}}function YO(e){for(;re!==null;){var r=re;if(r.flags&8772){var t=r.alternate;try{if(r.flags&8772)switch(r.tag){case 0:case 11:case 15:Qt||ry(5,r);break;case 1:var n=r.stateNode;if(r.flags&4&&!Qt)if(t===null)n.componentDidMount();else{var i=r.elementType===r.type?t.memoizedProps:In(r.type,t.memoizedProps);n.componentDidUpdate(i,t.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=r.updateQueue;o!==null&&AO(r,o,n);break;case 3:var a=r.updateQueue;if(a!==null){if(t=null,r.child!==null)switch(r.child.tag){case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}AO(r,a,t)}break;case 5:var s=r.stateNode;if(t===null&&r.flags&4){t=s;var l=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&t.focus();break;case"img":l.src&&(t.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var u=r.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&nd(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}Qt||r.flags&512&&O$(r)}catch(f){lt(r,r.return,f)}}if(r===e){re=null;break}if(t=r.sibling,t!==null){t.return=r.return,re=t;break}re=r.return}}function XO(e){for(;re!==null;){var r=re;if(r===e){re=null;break}var t=r.sibling;if(t!==null){t.return=r.return,re=t;break}re=r.return}}function QO(e){for(;re!==null;){var r=re;try{switch(r.tag){case 0:case 11:case 15:var t=r.return;try{ry(4,r)}catch(l){lt(r,t,l)}break;case 1:var n=r.stateNode;if(typeof n.componentDidMount=="function"){var i=r.return;try{n.componentDidMount()}catch(l){lt(r,i,l)}}var o=r.return;try{O$(r)}catch(l){lt(r,o,l)}break;case 5:var a=r.return;try{O$(r)}catch(l){lt(r,a,l)}}}catch(l){lt(r,r.return,l)}if(r===e){re=null;break}var s=r.sibling;if(s!==null){s.return=r.return,re=s;break}re=r.return}}var n8=Math.ceil,sp=ro.ReactCurrentDispatcher,tS=ro.ReactCurrentOwner,hn=ro.ReactCurrentBatchConfig,Ce=0,It=null,bt=null,Vt=0,zr=0,al=ra(0),Pt=0,vd=null,Qa=0,ny=0,rS=0,Nc=null,Sr=null,nS=0,Xl=1/0,Ii=null,lp=!1,T$=null,Do=null,ph=!1,Co=null,up=0,Dc=0,x$=null,bv=-1,$v=0;function dr(){return Ce&6?yt():bv!==-1?bv:bv=yt()}function Fo(e){return e.mode&1?Ce&2&&Vt!==0?Vt&-Vt:B6.transition!==null?($v===0&&($v=pA()),$v):(e=je,e!==0||(e=window.event,e=e===void 0?16:SA(e.type)),e):1}function Vn(e,r,t,n){if(50<Dc)throw Dc=0,x$=null,Error(W(185));Vd(e,t,n),(!(Ce&2)||e!==It)&&(e===It&&(!(Ce&2)&&(ny|=t),Pt===4&&mo(e,Vt)),kr(e,n),t===1&&Ce===0&&!(r.mode&1)&&(Xl=yt()+500,Jp&&na()))}function kr(e,r){var t=e.callbackNode;B4(e,r);var n=Kv(e,e===It?Vt:0);if(n===0)t!==null&&aO(t),e.callbackNode=null,e.callbackPriority=0;else if(r=n&-n,e.callbackPriority!==r){if(t!=null&&aO(t),r===1)e.tag===0?j6(ZO.bind(null,e)):zA(ZO.bind(null,e)),N6(function(){!(Ce&6)&&na()}),t=null;else{switch(yA(n)){case 1:t=xw;break;case 4:t=hA;break;case 16:t=Vv;break;case 536870912:t=vA;break;default:t=Vv}t=jM(t,RM.bind(null,e))}e.callbackPriority=r,e.callbackNode=t}}function RM(e,r){if(bv=-1,$v=0,Ce&6)throw Error(W(327));var t=e.callbackNode;if(El()&&e.callbackNode!==t)return null;var n=Kv(e,e===It?Vt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||r)r=cp(e,n);else{r=n;var i=Ce;Ce|=2;var o=MM();(It!==e||Vt!==r)&&(Ii=null,Xl=yt()+500,Ma(e,r));do try{a8();break}catch(s){AM(e,s)}while(!0);Hw(),sp.current=o,Ce=i,bt!==null?r=0:(It=null,Vt=0,r=Pt)}if(r!==0){if(r===2&&(i=r$(e),i!==0&&(n=i,r=k$(e,i))),r===1)throw t=vd,Ma(e,0),mo(e,n),kr(e,yt()),t;if(r===6)mo(e,n);else{if(i=e.current.alternate,!(n&30)&&!i8(i)&&(r=cp(e,n),r===2&&(o=r$(e),o!==0&&(n=o,r=k$(e,o))),r===1))throw t=vd,Ma(e,0),mo(e,n),kr(e,yt()),t;switch(e.finishedWork=i,e.finishedLanes=n,r){case 0:case 1:throw Error(W(345));case 2:pa(e,Sr,Ii);break;case 3:if(mo(e,n),(n&130023424)===n&&(r=nS+500-yt(),10<r)){if(Kv(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){dr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=c$(pa.bind(null,e,Sr,Ii),r);break}pa(e,Sr,Ii);break;case 4:if(mo(e,n),(n&4194240)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-Un(n);o=1<<a,a=r[a],a>i&&(i=a),n&=~o}if(n=i,n=yt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*n8(n/1960))-n,10<n){e.timeoutHandle=c$(pa.bind(null,e,Sr,Ii),n);break}pa(e,Sr,Ii);break;case 5:pa(e,Sr,Ii);break;default:throw Error(W(329))}}}return kr(e,yt()),e.callbackNode===t?RM.bind(null,e):null}function k$(e,r){var t=Nc;return e.current.memoizedState.isDehydrated&&(Ma(e,r).flags|=256),e=cp(e,r),e!==2&&(r=Sr,Sr=t,r!==null&&I$(r)),e}function I$(e){Sr===null?Sr=e:Sr.push.apply(Sr,e)}function i8(e){for(var r=e;;){if(r.flags&16384){var t=r.updateQueue;if(t!==null&&(t=t.stores,t!==null))for(var n=0;n<t.length;n++){var i=t[n],o=i.getSnapshot;i=i.value;try{if(!Kn(o(),i))return!1}catch{return!1}}}if(t=r.child,r.subtreeFlags&16384&&t!==null)t.return=r,r=t;else{if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function mo(e,r){for(r&=~rS,r&=~ny,e.suspendedLanes|=r,e.pingedLanes&=~r,e=e.expirationTimes;0<r;){var t=31-Un(r),n=1<<t;e[t]=-1,r&=~n}}function ZO(e){if(Ce&6)throw Error(W(327));El();var r=Kv(e,0);if(!(r&1))return kr(e,yt()),null;var t=cp(e,r);if(e.tag!==0&&t===2){var n=r$(e);n!==0&&(r=n,t=k$(e,n))}if(t===1)throw t=vd,Ma(e,0),mo(e,r),kr(e,yt()),t;if(t===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=r,pa(e,Sr,Ii),kr(e,yt()),null}function iS(e,r){var t=Ce;Ce|=1;try{return e(r)}finally{Ce=t,Ce===0&&(Xl=yt()+500,Jp&&na())}}function Za(e){Co!==null&&Co.tag===0&&!(Ce&6)&&El();var r=Ce;Ce|=1;var t=hn.transition,n=je;try{if(hn.transition=null,je=1,e)return e()}finally{je=n,hn.transition=t,Ce=r,!(Ce&6)&&na()}}function oS(){zr=al.current,Qe(al)}function Ma(e,r){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(t!==-1&&(e.timeoutHandle=-1,M6(t)),bt!==null)for(t=bt.return;t!==null;){var n=t;switch(jw(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Qv();break;case 3:ql(),Qe(Tr),Qe(Jt),qw();break;case 5:Gw(n);break;case 4:ql();break;case 13:Qe(nt);break;case 19:Qe(nt);break;case 10:Ww(n.type._context);break;case 22:case 23:oS()}t=t.return}if(It=e,bt=e=Lo(e.current,null),Vt=zr=r,Pt=0,vd=null,rS=ny=Qa=0,Sr=Nc=null,wa!==null){for(r=0;r<wa.length;r++)if(t=wa[r],n=t.interleaved,n!==null){t.interleaved=null;var i=n.next,o=t.pending;if(o!==null){var a=o.next;o.next=i,n.next=a}t.pending=n}wa=null}return e}function AM(e,r){do{var t=bt;try{if(Hw(),yv.current=ap,op){for(var n=it.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}op=!1}if(Xa=0,Tt=Ot=it=null,Ac=!1,dd=0,tS.current=null,t===null||t.return===null){Pt=1,vd=r,bt=null;break}e:{var o=e,a=t.return,s=t,l=r;if(r=Vt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=jO(a);if(h!==null){h.flags&=-257,BO(h,a,s,o,r),h.mode&1&&LO(o,u,r),r=h,l=u;var v=r.updateQueue;if(v===null){var p=new Set;p.add(l),r.updateQueue=p}else v.add(l);break e}else{if(!(r&1)){LO(o,u,r),aS();break e}l=Error(W(426))}}else if(Je&&s.mode&1){var b=jO(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),BO(b,a,s,o,r),Bw(Yl(l,s));break e}}o=l=Yl(l,s),Pt!==4&&(Pt=2),Nc===null?Nc=[o]:Nc.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,r&=-r,o.lanes|=r;var y=yM(o,l,r);RO(o,y);break e;case 1:s=l;var g=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Do===null||!Do.has(m)))){o.flags|=65536,r&=-r,o.lanes|=r;var $=gM(o,s,r);RO(o,$);break e}}o=o.return}while(o!==null)}DM(t)}catch(w){r=w,bt===t&&t!==null&&(bt=t=t.return);continue}break}while(!0)}function MM(){var e=sp.current;return sp.current=ap,e===null?ap:e}function aS(){(Pt===0||Pt===3||Pt===2)&&(Pt=4),It===null||!(Qa&268435455)&&!(ny&268435455)||mo(It,Vt)}function cp(e,r){var t=Ce;Ce|=2;var n=MM();(It!==e||Vt!==r)&&(Ii=null,Ma(e,r));do try{o8();break}catch(i){AM(e,i)}while(!0);if(Hw(),Ce=t,sp.current=n,bt!==null)throw Error(W(261));return It=null,Vt=0,Pt}function o8(){for(;bt!==null;)NM(bt)}function a8(){for(;bt!==null&&!I4();)NM(bt)}function NM(e){var r=LM(e.alternate,e,zr);e.memoizedProps=e.pendingProps,r===null?DM(e):bt=r,tS.current=null}function DM(e){var r=e;do{var t=r.alternate;if(e=r.return,r.flags&32768){if(t=J6(t,r),t!==null){t.flags&=32767,bt=t;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Pt=6,bt=null;return}}else if(t=Z6(t,r,zr),t!==null){bt=t;return}if(r=r.sibling,r!==null){bt=r;return}bt=r=e}while(r!==null);Pt===0&&(Pt=5)}function pa(e,r,t){var n=je,i=hn.transition;try{hn.transition=null,je=1,s8(e,r,t,n)}finally{hn.transition=i,je=n}return null}function s8(e,r,t,n){do El();while(Co!==null);if(Ce&6)throw Error(W(327));t=e.finishedWork;var i=e.finishedLanes;if(t===null)return null;if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(W(177));e.callbackNode=null,e.callbackPriority=0;var o=t.lanes|t.childLanes;if(z4(e,o),e===It&&(bt=It=null,Vt=0),!(t.subtreeFlags&2064)&&!(t.flags&2064)||ph||(ph=!0,jM(Vv,function(){return El(),null})),o=(t.flags&15990)!==0,t.subtreeFlags&15990||o){o=hn.transition,hn.transition=null;var a=je;je=1;var s=Ce;Ce|=4,tS.current=null,t8(e,t),kM(t,e),C6(l$),Gv=!!s$,l$=s$=null,e.current=t,r8(t),R4(),Ce=s,je=a,hn.transition=o}else e.current=t;if(ph&&(ph=!1,Co=e,up=i),o=e.pendingLanes,o===0&&(Do=null),N4(t.stateNode),kr(e,yt()),r!==null)for(n=e.onRecoverableError,t=0;t<r.length;t++)i=r[t],n(i.value,{componentStack:i.stack,digest:i.digest});if(lp)throw lp=!1,e=T$,T$=null,e;return up&1&&e.tag!==0&&El(),o=e.pendingLanes,o&1?e===x$?Dc++:(Dc=0,x$=e):Dc=0,na(),null}function El(){if(Co!==null){var e=yA(up),r=hn.transition,t=je;try{if(hn.transition=null,je=16>e?16:e,Co===null)var n=!1;else{if(e=Co,Co=null,up=0,Ce&6)throw Error(W(331));var i=Ce;for(Ce|=4,re=e.current;re!==null;){var o=re,a=o.child;if(re.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(re=u;re!==null;){var c=re;switch(c.tag){case 0:case 11:case 15:Mc(8,c,o)}var d=c.child;if(d!==null)d.return=c,re=d;else for(;re!==null;){c=re;var f=c.sibling,h=c.return;if(CM(c),c===u){re=null;break}if(f!==null){f.return=h,re=f;break}re=h}}}var v=o.alternate;if(v!==null){var p=v.child;if(p!==null){v.child=null;do{var b=p.sibling;p.sibling=null,p=b}while(p!==null)}}re=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,re=a;else e:for(;re!==null;){if(o=re,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Mc(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,re=y;break e}re=o.return}}var g=e.current;for(re=g;re!==null;){a=re;var m=a.child;if(a.subtreeFlags&2064&&m!==null)m.return=a,re=m;else e:for(a=g;re!==null;){if(s=re,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:ry(9,s)}}catch(w){lt(s,s.return,w)}if(s===a){re=null;break e}var $=s.sibling;if($!==null){$.return=s.return,re=$;break e}re=s.return}}if(Ce=i,na(),fi&&typeof fi.onPostCommitFiberRoot=="function")try{fi.onPostCommitFiberRoot(qp,e)}catch{}n=!0}return n}finally{je=t,hn.transition=r}}return!1}function JO(e,r,t){r=Yl(t,r),r=yM(e,r,1),e=No(e,r,1),r=dr(),e!==null&&(Vd(e,1,r),kr(e,r))}function lt(e,r,t){if(e.tag===3)JO(e,e,t);else for(;r!==null;){if(r.tag===3){JO(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Do===null||!Do.has(n))){e=Yl(t,e),e=gM(r,e,1),r=No(r,e,1),e=dr(),r!==null&&(Vd(r,1,e),kr(r,e));break}}r=r.return}}function l8(e,r,t){var n=e.pingCache;n!==null&&n.delete(r),r=dr(),e.pingedLanes|=e.suspendedLanes&t,It===e&&(Vt&t)===t&&(Pt===4||Pt===3&&(Vt&130023424)===Vt&&500>yt()-nS?Ma(e,0):rS|=t),kr(e,r)}function FM(e,r){r===0&&(e.mode&1?(r=oh,oh<<=1,!(oh&130023424)&&(oh=4194304)):r=1);var t=dr();e=qi(e,r),e!==null&&(Vd(e,r,t),kr(e,t))}function u8(e){var r=e.memoizedState,t=0;r!==null&&(t=r.retryLane),FM(e,t)}function c8(e,r){var t=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(t=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(W(314))}n!==null&&n.delete(r),FM(e,t)}var LM;LM=function(e,r,t){if(e!==null)if(e.memoizedProps!==r.pendingProps||Tr.current)Cr=!0;else{if(!(e.lanes&t)&&!(r.flags&128))return Cr=!1,Q6(e,r,t);Cr=!!(e.flags&131072)}else Cr=!1,Je&&r.flags&1048576&&HA(r,ep,r.index);switch(r.lanes=0,r.tag){case 2:var n=r.type;mv(e,r),e=r.pendingProps;var i=Vl(r,Jt.current);_l(r,t),i=Xw(null,r,n,e,i,t);var o=Qw();return r.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,xr(n)?(o=!0,Zv(r)):o=!1,r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Vw(r),i.updater=ty,r.stateNode=i,i._reactInternals=r,g$(r,n,e,t),r=$$(null,r,n,!0,o,t)):(r.tag=0,Je&&o&&Lw(r),ar(null,r,i,t),r=r.child),r;case 16:n=r.elementType;e:{switch(mv(e,r),e=r.pendingProps,i=n._init,n=i(n._payload),r.type=n,i=r.tag=f8(n),e=In(n,e),i){case 0:r=b$(null,r,n,e,t);break e;case 1:r=WO(null,r,n,e,t);break e;case 11:r=zO(null,r,n,e,t);break e;case 14:r=HO(null,r,n,In(n.type,e),t);break e}throw Error(W(306,n,""))}return r;case 0:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:In(n,i),b$(e,r,n,i,t);case 1:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:In(n,i),WO(e,r,n,i,t);case 3:e:{if(wM(r),e===null)throw Error(W(387));n=r.pendingProps,o=r.memoizedState,i=o.element,qA(e,r),np(r,n,null,t);var a=r.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},r.updateQueue.baseState=o,r.memoizedState=o,r.flags&256){i=Yl(Error(W(423)),r),r=UO(e,r,n,t,i);break e}else if(n!==i){i=Yl(Error(W(424)),r),r=UO(e,r,n,t,i);break e}else for(Ur=Mo(r.stateNode.containerInfo.firstChild),Kr=r,Je=!0,Nn=null,t=KA(r,null,n,t),r.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Kl(),n===i){r=Yi(e,r,t);break e}ar(e,r,n,t)}r=r.child}return r;case 5:return YA(r),e===null&&v$(r),n=r.type,i=r.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,u$(n,i)?a=null:o!==null&&u$(n,o)&&(r.flags|=32),$M(e,r),ar(e,r,a,t),r.child;case 6:return e===null&&v$(r),null;case 13:return SM(e,r,t);case 4:return Kw(r,r.stateNode.containerInfo),n=r.pendingProps,e===null?r.child=Gl(r,null,n,t):ar(e,r,n,t),r.child;case 11:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:In(n,i),zO(e,r,n,i,t);case 7:return ar(e,r,r.pendingProps,t),r.child;case 8:return ar(e,r,r.pendingProps.children,t),r.child;case 12:return ar(e,r,r.pendingProps.children,t),r.child;case 10:e:{if(n=r.type._context,i=r.pendingProps,o=r.memoizedProps,a=i.value,Ye(tp,n._currentValue),n._currentValue=a,o!==null)if(Kn(o.value,a)){if(o.children===i.children&&!Tr.current){r=Yi(e,r,t);break e}}else for(o=r.child,o!==null&&(o.return=r);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Di(-1,t&-t),l.tag=2;var u=o.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}}o.lanes|=t,l=o.alternate,l!==null&&(l.lanes|=t),p$(o.return,t,r),s.lanes|=t;break}l=l.next}}else if(o.tag===10)a=o.type===r.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(W(341));a.lanes|=t,s=a.alternate,s!==null&&(s.lanes|=t),p$(a,t,r),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===r){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}ar(e,r,i.children,t),r=r.child}return r;case 9:return i=r.type,n=r.pendingProps.children,_l(r,t),i=mn(i),n=n(i),r.flags|=1,ar(e,r,n,t),r.child;case 14:return n=r.type,i=In(n,r.pendingProps),i=In(n.type,i),HO(e,r,n,i,t);case 15:return mM(e,r,r.type,r.pendingProps,t);case 17:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:In(n,i),mv(e,r),r.tag=1,xr(n)?(e=!0,Zv(r)):e=!1,_l(r,t),pM(r,n,i),g$(r,n,i,t),$$(null,r,n,!0,e,t);case 19:return _M(e,r,t);case 22:return bM(e,r,t)}throw Error(W(156,r.tag))};function jM(e,r){return fA(e,r)}function d8(e,r,t,n){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(e,r,t,n){return new d8(e,r,t,n)}function sS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function f8(e){if(typeof e=="function")return sS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pw)return 11;if(e===Cw)return 14}return 2}function Lo(e,r){var t=e.alternate;return t===null?(t=fn(e.tag,r,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=r,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,r=e.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function wv(e,r,t,n,i,o){var a=2;if(n=e,typeof e=="function")sS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Xs:return Na(t.children,i,o,r);case Ow:a=8,i|=8;break;case z1:return e=fn(12,t,r,i|2),e.elementType=z1,e.lanes=o,e;case H1:return e=fn(13,t,r,i),e.elementType=H1,e.lanes=o,e;case W1:return e=fn(19,t,r,i),e.elementType=W1,e.lanes=o,e;case Y2:return iy(t,i,o,r);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G2:a=10;break e;case q2:a=9;break e;case Pw:a=11;break e;case Cw:a=14;break e;case ho:a=16,n=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return r=fn(a,t,r,i),r.elementType=e,r.type=n,r.lanes=o,r}function Na(e,r,t,n){return e=fn(7,e,n,r),e.lanes=t,e}function iy(e,r,t,n){return e=fn(22,e,n,r),e.elementType=Y2,e.lanes=t,e.stateNode={isHidden:!1},e}function sm(e,r,t){return e=fn(6,e,null,r),e.lanes=t,e}function lm(e,r,t){return r=fn(4,e.children!==null?e.children:[],e.key,r),r.lanes=t,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function h8(e,r,t,n,i){this.tag=r,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hg(0),this.expirationTimes=Hg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hg(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function lS(e,r,t,n,i,o,a,s,l){return e=new h8(e,r,t,s,l),r===1?(r=1,o===!0&&(r|=8)):r=0,o=fn(3,null,null,r),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vw(o),e}function v8(e,r,t){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ys,key:n==null?null:""+n,children:e,containerInfo:r,implementation:t}}function BM(e){if(!e)return qo;e=e._reactInternals;e:{if(fs(e)!==e||e.tag!==1)throw Error(W(170));var r=e;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(xr(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(W(171))}if(e.tag===1){var t=e.type;if(xr(t))return BA(e,t,r)}return r}function zM(e,r,t,n,i,o,a,s,l){return e=lS(t,n,!0,e,i,o,a,s,l),e.context=BM(null),t=e.current,n=dr(),i=Fo(t),o=Di(n,i),o.callback=r??null,No(t,o,i),e.current.lanes=i,Vd(e,i,n),kr(e,n),e}function oy(e,r,t,n){var i=r.current,o=dr(),a=Fo(i);return t=BM(t),r.context===null?r.context=t:r.pendingContext=t,r=Di(o,a),r.payload={element:e},n=n===void 0?null:n,n!==null&&(r.callback=n),e=No(i,r,a),e!==null&&(Vn(e,i,a,o),pv(e,i,a)),a}function dp(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function eP(e,r){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<r?t:r}}function uS(e,r){eP(e,r),(e=e.alternate)&&eP(e,r)}function p8(){return null}var HM=typeof reportError=="function"?reportError:function(e){console.error(e)};function cS(e){this._internalRoot=e}ay.prototype.render=cS.prototype.render=function(e){var r=this._internalRoot;if(r===null)throw Error(W(409));oy(e,r,null,null)};ay.prototype.unmount=cS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var r=e.containerInfo;Za(function(){oy(null,e,null,null)}),r[Gi]=null}};function ay(e){this._internalRoot=e}ay.prototype.unstable_scheduleHydration=function(e){if(e){var r=bA();e={blockedOn:null,target:e,priority:r};for(var t=0;t<go.length&&r!==0&&r<go[t].priority;t++);go.splice(t,0,e),t===0&&wA(e)}};function dS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function sy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function tP(){}function y8(e,r,t,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var u=dp(a);o.call(u)}}var a=zM(r,n,e,0,null,!1,!1,"",tP);return e._reactRootContainer=a,e[Gi]=a.current,ad(e.nodeType===8?e.parentNode:e),Za(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=dp(l);s.call(u)}}var l=lS(e,0,!1,null,null,!1,!1,"",tP);return e._reactRootContainer=l,e[Gi]=l.current,ad(e.nodeType===8?e.parentNode:e),Za(function(){oy(r,l,t,n)}),l}function ly(e,r,t,n,i){var o=t._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=dp(a);s.call(l)}}oy(r,a,e,i)}else a=y8(t,r,e,i,n);return dp(a)}gA=function(e){switch(e.tag){case 3:var r=e.stateNode;if(r.current.memoizedState.isDehydrated){var t=wc(r.pendingLanes);t!==0&&(kw(r,t|1),kr(r,yt()),!(Ce&6)&&(Xl=yt()+500,na()))}break;case 13:Za(function(){var n=qi(e,1);if(n!==null){var i=dr();Vn(n,e,1,i)}}),uS(e,1)}};Iw=function(e){if(e.tag===13){var r=qi(e,134217728);if(r!==null){var t=dr();Vn(r,e,134217728,t)}uS(e,134217728)}};mA=function(e){if(e.tag===13){var r=Fo(e),t=qi(e,r);if(t!==null){var n=dr();Vn(t,e,r,n)}uS(e,r)}};bA=function(){return je};$A=function(e,r){var t=je;try{return je=e,r()}finally{je=t}};J1=function(e,r,t){switch(r){case"input":if(K1(e,t),r=t.name,t.type==="radio"&&r!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<t.length;r++){var n=t[r];if(n!==e&&n.form===e.form){var i=Zp(n);if(!i)throw Error(W(90));Q2(n),K1(n,i)}}}break;case"textarea":J2(e,t);break;case"select":r=t.value,r!=null&&bl(e,!!t.multiple,r,!1)}};aA=iS;sA=Za;var g8={usingClientEntryPoint:!1,Events:[Gd,el,Zp,iA,oA,iS]},sc={findFiberByHostInstance:$a,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},m8={bundleType:sc.bundleType,version:sc.version,rendererPackageName:sc.rendererPackageName,rendererConfig:sc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ro.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=cA(e),e===null?null:e.stateNode},findFiberByHostInstance:sc.findFiberByHostInstance||p8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yh.isDisabled&&yh.supportsFiber)try{qp=yh.inject(m8),fi=yh}catch{}}Yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g8;Yr.createPortal=function(e,r){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dS(r))throw Error(W(200));return v8(e,r,null,t)};Yr.createRoot=function(e,r){if(!dS(e))throw Error(W(299));var t=!1,n="",i=HM;return r!=null&&(r.unstable_strictMode===!0&&(t=!0),r.identifierPrefix!==void 0&&(n=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),r=lS(e,1,!1,null,null,t,!1,n,i),e[Gi]=r.current,ad(e.nodeType===8?e.parentNode:e),new cS(r)};Yr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var r=e._reactInternals;if(r===void 0)throw typeof e.render=="function"?Error(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=cA(r),e=e===null?null:e.stateNode,e};Yr.flushSync=function(e){return Za(e)};Yr.hydrate=function(e,r,t){if(!sy(r))throw Error(W(200));return ly(null,e,r,!0,t)};Yr.hydrateRoot=function(e,r,t){if(!dS(e))throw Error(W(405));var n=t!=null&&t.hydratedSources||null,i=!1,o="",a=HM;if(t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),r=zM(r,null,e,1,t??null,i,!1,o,a),e[Gi]=r.current,ad(e),n)for(e=0;e<n.length;e++)t=n[e],i=t._getVersion,i=i(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i);return new ay(r)};Yr.render=function(e,r,t){if(!sy(r))throw Error(W(200));return ly(null,e,r,!1,t)};Yr.unmountComponentAtNode=function(e){if(!sy(e))throw Error(W(40));return e._reactRootContainer?(Za(function(){ly(null,null,e,!1,function(){e._reactRootContainer=null,e[Gi]=null})}),!0):!1};Yr.unstable_batchedUpdates=iS;Yr.unstable_renderSubtreeIntoContainer=function(e,r,t,n){if(!sy(t))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return ly(e,r,t,!1,n)};Yr.version="18.3.1-next-f1338f8080-20240426";function WM(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(WM)}catch(e){console.error(e)}}WM(),W2.exports=Yr;var Yd=W2.exports;const b8=k2(Yd);var rP=Yd;j1.createRoot=rP.createRoot,j1.hydrateRoot=rP.hydrateRoot;const nP="pushstate",iP="popstate",UM="beforeunload",VM=e=>(e.preventDefault(),e.returnValue=""),$8=()=>{removeEventListener(UM,VM,{capture:!0})};function KM(e){let r=e.getLocation();const t=new Set;let n=[];const i=()=>{r=e.getLocation(),t.forEach(a=>a())},o=async(a,s)=>{var l;if(!((s==null?void 0:s.ignoreBlocker)??!1)&&typeof document<"u"&&n.length){for(const c of n)if(!await c()){(l=e.onBlocked)==null||l.call(e,i);return}}a()};return{get location(){return r},get length(){return e.getLength()},subscribers:t,subscribe:a=>(t.add(a),()=>{t.delete(a)}),push:(a,s,l)=>{s=oP(s),o(()=>{e.pushState(a,s),i()},l)},replace:(a,s,l)=>{s=oP(s),o(()=>{e.replaceState(a,s),i()},l)},go:(a,s)=>{o(()=>{e.go(a),i()},s)},back:a=>{o(()=>{e.back(),i()},a)},forward:a=>{o(()=>{e.forward(),i()},a)},createHref:a=>e.createHref(a),block:a=>(n.push(a),n.length===1&&addEventListener(UM,VM,{capture:!0}),()=>{n=n.filter(s=>s!==a),n.length||$8()}),flush:()=>{var a;return(a=e.flush)==null?void 0:a.call(e)},destroy:()=>{var a;return(a=e.destroy)==null?void 0:a.call(e)},notify:i}}function oP(e){return e||(e={}),{...e,key:_8()}}function w8(e){const r=typeof document<"u"?window:void 0,t=r.history.pushState,n=r.history.replaceState,i=p=>p,o=()=>fp(`${r.location.pathname}${r.location.search}${r.location.hash}`,r.history.state);let a=o(),s;const l=()=>a;let u,c;const d=()=>{u&&(v._ignoreSubscribers=!0,(u.isPush?r.history.pushState:r.history.replaceState)(u.state,"",u.href),v._ignoreSubscribers=!1,u=void 0,c=void 0,s=void 0)},f=(p,b,y)=>{const g=i(b);c||(s=a),a=fp(b,y),u={href:g,state:y,isPush:(u==null?void 0:u.isPush)||p==="push"},c||(c=Promise.resolve().then(()=>d()))},h=()=>{a=o(),v.notify()},v=KM({getLocation:l,getLength:()=>r.history.length,pushState:(p,b)=>f("push",p,b),replaceState:(p,b)=>f("replace",p,b),back:()=>r.history.back(),forward:()=>r.history.forward(),go:p=>r.history.go(p),createHref:p=>i(p),flush:d,destroy:()=>{r.history.pushState=t,r.history.replaceState=n,r.removeEventListener(nP,h),r.removeEventListener(iP,h)},onBlocked:p=>{s&&a!==s&&(a=s,p())}});return r.addEventListener(nP,h),r.addEventListener(iP,h),r.history.pushState=function(...p){const b=t.apply(r.history,p);return v._ignoreSubscribers||h(),b},r.history.replaceState=function(...p){const b=n.apply(r.history,p);return v._ignoreSubscribers||h(),b},v}function S8(e={initialEntries:["/"]}){const r=e.initialEntries;let t=e.initialIndex??r.length-1;const n=r.map(()=>({}));return KM({getLocation:()=>fp(r[t],n[t]),getLength:()=>r.length,pushState:(o,a)=>{t<r.length-1&&(r.splice(t+1),n.splice(t+1)),n.push(a),r.push(o),t=Math.max(r.length-1,0)},replaceState:(o,a)=>{n[t]=a,r[t]=o},back:()=>{t=Math.max(t-1,0)},forward:()=>{t=Math.min(t+1,r.length-1)},go:o=>{t=Math.min(Math.max(t+o,0),r.length-1)},createHref:o=>o})}function fp(e,r){const t=e.indexOf("#"),n=e.indexOf("?");return{href:e,pathname:e.substring(0,t>0?n>0?Math.min(t,n):t:n>0?n:e.length),hash:t>-1?e.substring(t):"",search:n>-1?e.slice(n,t===-1?void 0:t):"",state:r||{}}}function _8(){return(Math.random()+1).toString(36).substring(7)}var E8="Invariant failed";function $r(e,r){if(!e)throw new Error(E8)}const um=_.createContext(null);function GM(){return typeof document>"u"?um:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=um,um)}function hs(e){const r=_.useContext(GM());return e==null||e.warn,r}var qM={exports:{}},YM={},XM={exports:{}},QM={};/**
|
41
|
-
* @license React
|
42
|
-
* use-sync-external-store-shim.production.min.js
|
43
|
-
*
|
44
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
45
|
-
*
|
46
|
-
* This source code is licensed under the MIT license found in the
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
48
|
-
*/var Ql=_;function O8(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var P8=typeof Object.is=="function"?Object.is:O8,C8=Ql.useState,T8=Ql.useEffect,x8=Ql.useLayoutEffect,k8=Ql.useDebugValue;function I8(e,r){var t=r(),n=C8({inst:{value:t,getSnapshot:r}}),i=n[0].inst,o=n[1];return x8(function(){i.value=t,i.getSnapshot=r,cm(i)&&o({inst:i})},[e,t,r]),T8(function(){return cm(i)&&o({inst:i}),e(function(){cm(i)&&o({inst:i})})},[e]),k8(t),t}function cm(e){var r=e.getSnapshot;e=e.value;try{var t=r();return!P8(e,t)}catch{return!0}}function R8(e,r){return r()}var A8=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?R8:I8;QM.useSyncExternalStore=Ql.useSyncExternalStore!==void 0?Ql.useSyncExternalStore:A8;XM.exports=QM;var M8=XM.exports;/**
|
49
|
-
* @license React
|
50
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
51
|
-
*
|
52
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
53
|
-
*
|
54
|
-
* This source code is licensed under the MIT license found in the
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
56
|
-
*/var uy=_,N8=M8;function D8(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var F8=typeof Object.is=="function"?Object.is:D8,L8=N8.useSyncExternalStore,j8=uy.useRef,B8=uy.useEffect,z8=uy.useMemo,H8=uy.useDebugValue;YM.useSyncExternalStoreWithSelector=function(e,r,t,n,i){var o=j8(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=z8(function(){function l(h){if(!u){if(u=!0,c=h,h=n(h),i!==void 0&&a.hasValue){var v=a.value;if(i(v,h))return d=v}return d=h}if(v=d,F8(c,h))return v;var p=n(h);return i!==void 0&&i(v,p)?v:(c=h,d=p)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(r())},f===null?void 0:function(){return l(f())}]},[r,t,n,i]);var s=L8(e,o[0],o[1]);return B8(function(){a.hasValue=!0,a.value=s},[s]),H8(s),s};qM.exports=YM;var W8=qM.exports;class U8{constructor(r,t){this.listeners=new Set,this._batching=!1,this._flushing=0,this.subscribe=n=>{var i,o;this.listeners.add(n);const a=(o=(i=this.options)==null?void 0:i.onSubscribe)==null?void 0:o.call(i,n,this);return()=>{this.listeners.delete(n),a==null||a()}},this.setState=n=>{var i,o,a;const s=this.state;this.state=(i=this.options)!=null&&i.updateFn?this.options.updateFn(s)(n):n(s),(a=(o=this.options)==null?void 0:o.onUpdate)==null||a.call(o),this._flush()},this._flush=()=>{if(this._batching)return;const n=++this._flushing;this.listeners.forEach(i=>{this._flushing===n&&i()})},this.batch=n=>{if(this._batching)return n();this._batching=!0,n(),this._batching=!1,this._flush()},this.state=r,this.options=t}}function V8(e,r=t=>t){return W8.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,r,K8)}function K8(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;const t=Object.keys(e);if(t.length!==Object.keys(r).length)return!1;for(let n=0;n<t.length;n++)if(!Object.prototype.hasOwnProperty.call(r,t[n])||!Object.is(e[t[n]],r[t[n]]))return!1;return!0}const Hr="__root__";function G8(e,r){let t,n,i,o="";for(t in e)if((i=e[t])!==void 0)if(Array.isArray(i))for(n=0;n<i.length;n++)o&&(o+="&"),o+=encodeURIComponent(t)+"="+encodeURIComponent(i[n]);else o&&(o+="&"),o+=encodeURIComponent(t)+"="+encodeURIComponent(i);return""+o}function aP(e){if(!e)return"";const r=decodeURIComponent(e);return r==="false"?!1:r==="true"?!0:+r*0===0&&+r+""===r?+r:r}function q8(e,r){let t,n;const i={},o=e.split("&");for(;t=o.shift();){const a=t.indexOf("=");if(a!==-1){n=t.slice(0,a),n=decodeURIComponent(n);const s=t.slice(a+1);i[n]!==void 0?i[n]=[].concat(i[n],aP(s)):i[n]=aP(s)}else n=t,n=decodeURIComponent(n),i[n]=""}return i}const Y8=Q8(JSON.parse),X8=Z8(JSON.stringify,JSON.parse);function Q8(e){return r=>{r.substring(0,1)==="?"&&(r=r.substring(1));const t=q8(r);for(const n in t){const i=t[n];if(typeof i=="string")try{t[n]=e(i)}catch{}}return t}}function Z8(e,r){function t(n){if(typeof n=="object"&&n!==null)try{return e(n)}catch{}else if(typeof n=="string"&&typeof r=="function")try{return r(n),e(n)}catch{}return n}return n=>{n={...n},Object.keys(n).forEach(o=>{const a=n[o];typeof a>"u"||a===void 0?delete n[o]:n[o]=t(a)});const i=G8(n).toString();return i?`?${i}`:""}}function Fc(e){return e[e.length-1]}function J8(e){return typeof e=="function"}function gh(e,r){return J8(e)?e(r):e}function Lc(e,r){return r.reduce((t,n)=>(t[n]=e[n],t),{})}function Ks(e,r){if(e===r)return e;const t=r,n=lP(e)&&lP(t);if(n||Zl(e)&&Zl(t)){const i=n?e:Object.keys(e),o=i.length,a=n?t:Object.keys(t),s=a.length,l=n?[]:{};let u=0;for(let c=0;c<s;c++){const d=n?c:a[c];(!n&&i.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(l[d]=void 0,u++):(l[d]=Ks(e[d],t[d]),l[d]===e[d]&&e[d]!==void 0&&u++)}return o===s&&u===o?e:l}return t}function Zl(e){if(!sP(e))return!1;const r=e.constructor;if(typeof r>"u")return!0;const t=r.prototype;return!(!sP(t)||!t.hasOwnProperty("isPrototypeOf"))}function sP(e){return Object.prototype.toString.call(e)==="[object Object]"}function lP(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jc(e,r,t=!1){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(Zl(e)&&Zl(r)){const n=Object.keys(e).filter(o=>e[o]!==void 0),i=Object.keys(r).filter(o=>r[o]!==void 0);return!t&&n.length!==i.length?!1:!i.some(o=>!(o in e)||!jc(e[o],r[o],t))}return Array.isArray(e)&&Array.isArray(r)?e.length!==r.length?!1:!e.some((n,i)=>!jc(n,r[i],t)):!1}const dm=typeof window<"u"?_.useLayoutEffect:_.useEffect;function Gs(e){let r,t;const n=new Promise((i,o)=>{r=i,t=o});return n.status="pending",n.resolve=i=>{n.status="resolved",n.value=i,r(i),e==null||e(i)},n.reject=i=>{n.status="rejected",t(i)},n}function uP(e){const r=_.useRef({value:e,prev:null}),t=r.current.value;return e!==t&&(r.current={value:e,prev:t}),r.current.prev}function jo(e){return cy(e.filter(r=>r!==void 0).join("/"))}function cy(e){return e.replace(/\/{2,}/g,"/")}function fS(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function _a(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function e9(e){return _a(fS(e))}function t9({basepath:e,base:r,to:t,trailingSlash:n="never"}){var i,o;r=hp(e,r),t=hp(e,t);let a=Jl(r);const s=Jl(t);a.length>1&&((i=Fc(a))==null?void 0:i.value)==="/"&&a.pop(),s.forEach((u,c)=>{u.value==="/"?c?c===s.length-1&&a.push(u):a=[u]:u.value===".."?a.pop():u.value==="."||a.push(u)}),a.length>1&&(((o=Fc(a))==null?void 0:o.value)==="/"?n==="never"&&a.pop():n==="always"&&a.push({type:"pathname",value:"/"}));const l=jo([e,...a.map(u=>u.value)]);return cy(l)}function Jl(e){if(!e)return[];e=cy(e);const r=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),r.push({type:"pathname",value:"/"})),!e)return r;const t=e.split("/").filter(Boolean);return r.push(...t.map(n=>n==="$"||n==="*"?{type:"wildcard",value:n}:n.charAt(0)==="$"?{type:"param",value:n}:{type:"pathname",value:decodeURI(n)})),e.slice(-1)==="/"&&(e=e.substring(1),r.push({type:"pathname",value:"/"})),r}function fm({path:e,params:r,leaveWildcards:t,leaveParams:n}){const i=Jl(e),o={};for(const[a,s]of Object.entries(r)){const l=typeof s=="string";["*","_splat"].includes(a)?o[a]=l?encodeURI(s):s:o[a]=l?encodeURIComponent(s):s}return jo(i.map(a=>{if(a.type==="wildcard"){const s=o._splat;return t?`${a.value}${s??""}`:s}if(a.type==="param"){if(n){const s=o[a.value];return`${a.value}${s??""}`}return o[a.value.substring(1)]??"undefined"}return a.value}))}function mh(e,r,t){const n=r9(e,r,t);if(!(t.to&&!n))return n??{}}function hp(e,r){switch(!0){case e==="/":return r;case r===e:return"";case r.length<e.length:return r;case r[e.length]!=="/":return r;case r.startsWith(e):return r.slice(e.length);default:return r}}function r9(e,r,t){if(e!=="/"&&!r.startsWith(e))return;r=hp(e,r);const n=hp(e,`${t.to??"$"}`),i=Jl(r),o=Jl(n);r.startsWith("/")||i.unshift({type:"pathname",value:"/"}),n.startsWith("/")||o.unshift({type:"pathname",value:"/"});const a={};return(()=>{for(let l=0;l<Math.max(i.length,o.length);l++){const u=i[l],c=o[l],d=l>=i.length-1,f=l>=o.length-1;if(c){if(c.type==="wildcard"){const h=decodeURI(jo(i.slice(l).map(v=>v.value)));return a["*"]=h,a._splat=h,!0}if(c.type==="pathname"){if(c.value==="/"&&!(u!=null&&u.value))return!0;if(u){if(t.caseSensitive){if(c.value!==u.value)return!1}else if(c.value.toLowerCase()!==u.value.toLowerCase())return!1}}if(!u)return!1;if(c.type==="param"){if(u.value==="/")return!1;u.value.charAt(0)!=="$"&&(a[c.value.substring(1)]=decodeURIComponent(u.value))}}if(!d&&f)return a["**"]=jo(i.slice(l+1).map(h=>h.value)),!!t.fuzzy&&(c==null?void 0:c.value)!=="/"}return!0})()?a:void 0}function ya(e){return!!(e!=null&&e.isRedirect)}function cP(e){return!!(e!=null&&e.isRedirect)&&e.href}function hS(e){const r=e.errorComponent??dy;return E.jsx(n9,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:t,reset:n})=>t?_.createElement(r,{error:t,reset:n}):e.children})}class n9 extends _.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(r){return{resetKey:r.getResetKey()}}static getDerivedStateFromError(r){return{error:r}}reset(){this.setState({error:null})}componentDidUpdate(r,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(r,t){this.props.onCatch&&this.props.onCatch(r,t)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function dy({error:e}){const[r,t]=_.useState(!1);return E.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[E.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),E.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>t(n=>!n),children:r?"Hide Error":"Show Error"})]}),E.jsx("div",{style:{height:".25rem"}}),r?E.jsx("div",{children:E.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?E.jsx("code",{children:e.message}):null})}):null]})}function vn(e){const r=hs({warn:(e==null?void 0:e.router)===void 0});return V8(((e==null?void 0:e.router)||r).__store,e==null?void 0:e.select)}function Mn(e){return!!(e!=null&&e.isNotFound)}function i9(e){const r=vn({select:t=>`not-found-${t.location.pathname}-${t.status}`});return E.jsx(hS,{getResetKey:()=>r,onCatch:(t,n)=>{var i;if(Mn(t))(i=e.onCatch)==null||i.call(e,t,n);else throw t},errorComponent:({error:t})=>{var n;if(Mn(t))return(n=e.fallback)==null?void 0:n.call(e,t);throw t},children:e.children})}function o9(){return E.jsx("p",{children:"Not Found"})}const a9={stringify:e=>JSON.stringify(e,function(t,n){const i=this[t],o=dP.find(a=>a.stringifyCondition(i));return o?o.stringify(i):n}),parse:e=>JSON.parse(e,function(t,n){const i=this[t],o=dP.find(a=>a.parseCondition(i));return o?o.parse(i):n})},dP=[{stringifyCondition:e=>e instanceof Date,stringify:e=>({$date:e.toISOString()}),parseCondition:e=>Zl(e)&&e.$date,parse:e=>new Date(e.$date)},{stringifyCondition:e=>e===void 0,stringify:()=>({$undefined:""}),parseCondition:e=>Zl(e)&&e.$undefined==="",parse:()=>{}}],ZM=["component","errorComponent","pendingComponent","notFoundComponent"];function s9(e){var r;for(const t of ZM)if((r=e.options[t])!=null&&r.preload)return!0;return!1}function l9(e){return new u9(e)}class u9{constructor(r){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.subscribers=new Set,this.startReactTransition=t=>t(),this.update=t=>{t.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/guide/not-found-errors#migrating-from-notfoundroute for more info.");const n=this.options;this.options={...this.options,...t},this.isServer=this.options.isServer??typeof document>"u",(!this.basepath||t.basepath&&t.basepath!==n.basepath)&&(t.basepath===void 0||t.basepath===""||t.basepath==="/"?this.basepath="/":this.basepath=`/${e9(t.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?S8({initialEntries:[this.basepath||"/"]}):w8()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new U8(f9(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(i=>!["redirected"].includes(i.status))}}}))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};const t=this.options.notFoundRoute;t&&(t.init({originalIndex:99999999999,defaultSsr:this.options.defaultSsr}),this.routesById[t.id]=t);const n=a=>{a.forEach((s,l)=>{s.init({originalIndex:l,defaultSsr:this.options.defaultSsr});const u=this.routesById[s.id];if($r(!u,`Duplicate routes found with id: ${String(s.id)}`),this.routesById[s.id]=s,!s.isRoot&&s.path){const d=_a(s.fullPath);(!this.routesByPath[d]||s.fullPath.endsWith("/"))&&(this.routesByPath[d]=s)}const c=s.children;c!=null&&c.length&&n(c)})};n([this.routeTree]);const i=[];Object.values(this.routesById).forEach((a,s)=>{var l;if(a.isRoot||!a.path)return;const u=fS(a.fullPath),c=Jl(u);for(;c.length>1&&((l=c[0])==null?void 0:l.value)==="/";)c.shift();const d=c.map(f=>f.value==="/"?.75:f.type==="param"?.5:f.type==="wildcard"?.25:1);i.push({child:a,trimmed:u,parsed:c,index:s,scores:d})}),this.flatRoutes=i.sort((a,s)=>{const l=Math.min(a.scores.length,s.scores.length);for(let u=0;u<l;u++)if(a.scores[u]!==s.scores[u])return s.scores[u]-a.scores[u];if(a.scores.length!==s.scores.length)return s.scores.length-a.scores.length;for(let u=0;u<l;u++)if(a.parsed[u].value!==s.parsed[u].value)return a.parsed[u].value>s.parsed[u].value?1:-1;return a.index-s.index}).map((a,s)=>(a.child.rank=s,a.child))},this.subscribe=(t,n)=>{const i={eventType:t,fn:n};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=t=>{this.subscribers.forEach(n=>{n.eventType===t.type&&n.fn(t)})},this.parseLocation=t=>{const n=({pathname:s,search:l,hash:u,state:c})=>{const d=this.options.parseSearch(l),f=this.options.stringifySearch(d);return{pathname:s,searchStr:f,search:Ks(t==null?void 0:t.search,d),hash:u.split("#").reverse()[0]??"",href:`${s}${f}${u}`,state:Ks(t==null?void 0:t.state,c)}},i=n(this.history.location),{__tempLocation:o,__tempKey:a}=i.state;if(o&&(!a||a===this.tempLocationKey)){const s=n(o);return s.state.key=i.state.key,delete s.state.__tempLocation,{...s,maskedLocation:i}}return i},this.resolvePathWithBase=(t,n)=>t9({basepath:this.basepath,base:t,to:cy(n),trailingSlash:this.options.trailingSlash}),this.cancelMatch=t=>{const n=this.getMatch(t);n&&(n.abortController.abort(),clearTimeout(n.pendingTimeout))},this.cancelMatches=()=>{var t;(t=this.state.pendingMatches)==null||t.forEach(n=>{this.cancelMatch(n.id)})},this.buildLocation=t=>{const n=(o={},a)=>{var s,l,u,c,d;const f=o._fromLocation?this.matchRoutes(o._fromLocation,{_buildLocation:!0}):this.state.matches,h=o.from!=null?f.find(Z=>mh(this.basepath,_a(Z.pathname),{to:o.from,caseSensitive:!1,fuzzy:!1})):void 0,v=(h==null?void 0:h.pathname)||this.latestLocation.pathname;$r(o.from==null||h!=null,"Could not find match for from: "+o.from);const p=(s=this.state.pendingMatches)!=null&&s.length?(l=Fc(this.state.pendingMatches))==null?void 0:l.search:((u=Fc(f))==null?void 0:u.search)||this.latestLocation.search,b=a==null?void 0:a.filter(Z=>f.find(F=>F.routeId===Z.routeId)),y=this.routesById[(c=b==null?void 0:b.find(Z=>Z.pathname===v))==null?void 0:c.routeId];let g=o.to?this.resolvePathWithBase(v,`${o.to}`):this.resolvePathWithBase(v,(y==null?void 0:y.to)??v);const m={...(d=Fc(f))==null?void 0:d.params};let $=(o.params??!0)===!0?m:{...m,...gh(o.params,m)};Object.keys($).length>0&&(a==null||a.map(Z=>{var F;const ee=this.looseRoutesById[Z.routeId];return((F=ee==null?void 0:ee.options.params)==null?void 0:F.stringify)??ee.options.stringifyParams}).filter(Boolean).forEach(Z=>{$={...$,...Z($)}})),g=fm({path:g,params:$??{},leaveWildcards:!1,leaveParams:t.leaveParams});const w=(b==null?void 0:b.map(Z=>this.looseRoutesById[Z.routeId].options.preSearchFilters??[]).flat().filter(Boolean))??[],S=(b==null?void 0:b.map(Z=>this.looseRoutesById[Z.routeId].options.postSearchFilters??[]).flat().filter(Boolean))??[],P=w.length?w.reduce((Z,F)=>F(Z),p):p,O=o.search===!0?P:o.search?gh(o.search,P):w.length?P:{},C=S.length?S.reduce((Z,F)=>F(Z),O):O,k=Ks(p,C),R=this.options.stringifySearch(k),D=o.hash===!0?this.latestLocation.hash:o.hash?gh(o.hash,this.latestLocation.hash):void 0,z=D?`#${D}`:"";let X=o.state===!0?this.latestLocation.state:o.state?gh(o.state,this.latestLocation.state):{};return X=Ks(this.latestLocation.state,X),{pathname:g,search:k,searchStr:R,state:X,hash:D??"",href:`${g}${R}${z}`,unmaskOnReload:o.unmaskOnReload}},i=(o={},a)=>{var s;const l=n(o);let u=a?n(a):void 0;if(!u){let v={};const p=(s=this.options.routeMasks)==null?void 0:s.find(b=>{const y=mh(this.basepath,l.pathname,{to:b.from,caseSensitive:!1,fuzzy:!1});return y?(v=y,!0):!1});if(p){const{from:b,...y}=p;a={...Lc(t,["from"]),...y,params:v},u=n(a)}}const c=this.matchRoutes(l,{_buildLocation:!0}),d=u?this.matchRoutes(u,{_buildLocation:!0}):void 0,f=u?n(a,d):void 0,h=n(o,c);return f&&(h.maskedLocation=f),h};return t.mask?i(t,{...Lc(t,["from"]),...t.mask}):i(t)},this.commitLocation=({viewTransition:t,ignoreBlocker:n,...i})=>{const o=()=>{i.state.key=this.latestLocation.state.key;const l=jc(i.state,this.latestLocation.state);return delete i.state.key,l},a=this.latestLocation.href===i.href,s=this.commitLocationPromise;if(this.commitLocationPromise=Gs(()=>{s==null||s.resolve()}),a&&o())this.load();else{let{maskedLocation:l,...u}=i;l&&(u={...l,state:{...l.state,__tempKey:void 0,__tempLocation:{...u,search:u.searchStr,state:{...u.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(u.unmaskOnReload??this.options.unmaskOnReload??!1)&&(u.state.__tempKey=this.tempLocationKey)),this.shouldViewTransition=t,this.history[i.replace?"replace":"push"](u.href,u.state,{ignoreBlocker:n})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:t,resetScroll:n,viewTransition:i,ignoreBlocker:o,...a}={})=>{const s=a.href;if(s){const u=fp(s,{});a.to=u.pathname,a.search=this.options.parseSearch(u.search),a.hash=u.hash}const l=this.buildLocation(a);return this.commitLocation({...l,viewTransition:i,replace:t,resetScroll:n,ignoreBlocker:o})},this.navigate=({to:t,...n})=>{const i=String(t);let o;try{new URL(`${i}`),o=!0}catch{}return $r(!o),this.buildAndCommitLocation({...n,to:t})},this.load=async()=>{this.latestLocation=this.parseLocation(this.latestLocation);let t,n,i;for(i=new Promise(o=>{this.startReactTransition(async()=>{var a;try{const s=this.latestLocation,l=this.state.resolvedLocation,u=l.href!==s.href;this.cancelMatches();let c;this.__store.batch(()=>{c=this.matchRoutes(s),this.__store.setState(d=>({...d,status:"pending",isLoading:!0,location:s,pendingMatches:c,cachedMatches:d.cachedMatches.filter(f=>!c.find(h=>h.id===f.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",fromLocation:l,toLocation:s,pathChanged:u}),this.emit({type:"onBeforeLoad",fromLocation:l,toLocation:s,pathChanged:u}),await this.loadMatches({matches:c,location:s,onReady:async()=>{this.startViewTransition(async()=>{let d,f,h;this.__store.batch(()=>{this.__store.setState(v=>{const p=v.matches,b=v.pendingMatches||v.matches;return d=p.filter(y=>!b.find(g=>g.id===y.id)),f=b.filter(y=>!p.find(g=>g.id===y.id)),h=p.filter(y=>b.find(g=>g.id===y.id)),{...v,isLoading:!1,loadedAt:Date.now(),matches:b,pendingMatches:void 0,cachedMatches:[...v.cachedMatches,...d.filter(y=>y.status!=="error")]}}),this.cleanCache()}),[[d,"onLeave"],[f,"onEnter"],[h,"onStay"]].forEach(([v,p])=>{v.forEach(b=>{var y,g;(g=(y=this.looseRoutesById[b.routeId].options)[p])==null||g.call(y,b)})})})}})}catch(s){cP(s)?(t=s,this.isServer||this.navigate({...s,replace:!0,ignoreBlocker:!0})):Mn(s)&&(n=s),this.__store.setState(l=>({...l,statusCode:t?t.statusCode:n?404:l.matches.some(u=>u.status==="error")?500:200,redirect:t}))}this.latestLoadPromise===i&&((a=this.commitLocationPromise)==null||a.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise},this.startViewTransition=t=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;delete this.shouldViewTransition,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"?document.startViewTransition(t):t()},this.updateMatch=(t,n)=>{var i;let o;const a=(i=this.state.pendingMatches)==null?void 0:i.find(u=>u.id===t),s=this.state.matches.find(u=>u.id===t),l=a?"pendingMatches":s?"matches":"cachedMatches";return this.__store.setState(u=>{var c;return{...u,[l]:(c=u[l])==null?void 0:c.map(d=>d.id===t?o=n(d):d)}}),o},this.getMatch=t=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(n=>n.id===t),this.loadMatches=async({location:t,matches:n,preload:i,onReady:o,updateMatch:a=this.updateMatch})=>{let s,l=!1;const u=async()=>{l||(l=!0,await(o==null?void 0:o()))};!this.isServer&&!this.state.matches.length&&u();const c=(d,f)=>{var h,v,p;if(cP(f))throw f;if(ya(f)||Mn(f)){if(a(d.id,b=>({...b,status:ya(f)?"redirected":Mn(f)?"notFound":"error",isFetching:!1,error:f,beforeLoadPromise:void 0,loaderPromise:void 0})),f.routeId||(f.routeId=d.routeId),(h=d.beforeLoadPromise)==null||h.resolve(),(v=d.loaderPromise)==null||v.resolve(),(p=d.loadPromise)==null||p.resolve(),ya(f))throw l=!0,f=this.resolveRedirect({...f,_fromLocation:t}),f;if(Mn(f))throw this._handleNotFound(n,f,{updateMatch:a}),f}};try{await new Promise((d,f)=>{(async()=>{var h,v,p;try{const b=(m,$,w)=>{var S,P;const{id:O,routeId:C}=n[m],k=this.looseRoutesById[C];if($ instanceof Promise)throw $;$.routerCode=w,s=s??m,c(this.getMatch(O),$);try{(P=(S=k.options).onError)==null||P.call(S,$)}catch(R){$=R,c(this.getMatch(O),$)}a(O,R=>{var D;return(D=R.beforeLoadPromise)==null||D.resolve(),{...R,error:$,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[m,{id:$,routeId:w}]of n.entries()){const S=this.getMatch($),P=(h=n[m-1])==null?void 0:h.id,O=this.looseRoutesById[w],C=O.options.pendingMs??this.options.defaultPendingMs,k=!!(o&&!this.isServer&&!i&&(O.options.loader||O.options.beforeLoad)&&typeof C=="number"&&C!==1/0&&(O.options.pendingComponent??this.options.defaultPendingComponent));if(S.beforeLoadPromise||S.loaderPromise)k&&setTimeout(()=>{try{u()}catch{}},C),await S.beforeLoadPromise;else{try{a($,K=>({...K,loadPromise:Gs(()=>{var ce;(ce=K.loadPromise)==null||ce.resolve()}),beforeLoadPromise:Gs()}));const R=new AbortController;let D;k&&(D=setTimeout(()=>{try{u()}catch{}},C));const{paramsError:z,searchError:X}=this.getMatch($);z&&b(m,z,"PARSE_PARAMS"),X&&b(m,X,"VALIDATE_SEARCH");const Z=()=>P?this.getMatch(P).context:this.options.context??{};a($,K=>({...K,isFetching:"beforeLoad",fetchCount:K.fetchCount+1,abortController:R,pendingTimeout:D,context:{...Z(),...K.__routeContext,...K.__beforeLoadContext}}));const{search:F,params:ee,context:x,cause:L}=this.getMatch($),j={search:F,abortController:R,params:ee,preload:!!i,context:x,location:t,navigate:K=>this.navigate({...K,_fromLocation:t}),buildLocation:this.buildLocation,cause:i?"preload":L,matches:n};let Q=await((p=(v=O.options).beforeLoad)==null?void 0:p.call(v,j))??{};this.serializeLoaderData&&(Q=this.serializeLoaderData("__beforeLoadContext",Q,{router:this,match:this.getMatch($)})),(ya(Q)||Mn(Q))&&b(m,Q,"BEFORE_LOAD"),a($,K=>({...K,__beforeLoadContext:Q,context:{...Z(),...K.__routeContext,...Q},abortController:R}))}catch(R){b(m,R,"BEFORE_LOAD")}a($,R=>{var D;return(D=R.beforeLoadPromise)==null||D.resolve(),{...R,beforeLoadPromise:void 0,isFetching:!1}})}}const y=n.slice(0,s),g=[];y.forEach(({id:m,routeId:$},w)=>{g.push((async()=>{const{loaderPromise:S}=this.getMatch(m);let P=!1;if(S)await S;else{const O=g[w-1],C=this.looseRoutesById[$],k=()=>{const{params:j,loaderDeps:Q,abortController:K,context:ce,cause:ge}=this.getMatch(m);return{params:j,deps:Q,preload:!!i,parentMatchPromise:O,abortController:K,context:ce,location:t,navigate:$e=>this.navigate({...$e,_fromLocation:t}),cause:i?"preload":ge,route:C}},R=Date.now()-this.getMatch(m).updatedAt,D=i?C.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:C.options.staleTime??this.options.defaultStaleTime??0,z=C.options.shouldReload,X=typeof z=="function"?z(k()):z;a(m,j=>({...j,loaderPromise:Gs(),preload:!!i&&!this.state.matches.find(Q=>Q.id===m)}));const Z=async()=>{var j,Q,K,ce,ge,$e,Te,xe;try{const ke=async()=>{const H=this.getMatch(m);H.minPendingPromise&&await H.minPendingPromise};try{C._lazyPromise=C._lazyPromise||(C.lazyFn?C.lazyFn().then(ie=>{const{id:J,..._e}=ie.options;Object.assign(C.options,_e)}):Promise.resolve());const H=this.getMatch(m).componentsPromise||C._lazyPromise.then(()=>Promise.all(ZM.map(async ie=>{const J=C.options[ie];J!=null&&J.preload&&await J.preload()})));a(m,ie=>({...ie,isFetching:"loader",componentsPromise:H}));let N=await((Q=(j=C.options).loader)==null?void 0:Q.call(j,k()));this.serializeLoaderData&&(N=this.serializeLoaderData("loaderData",N,{router:this,match:this.getMatch(m)})),c(this.getMatch(m),N),await C._lazyPromise,await ke();const B=(ce=(K=C.options).meta)==null?void 0:ce.call(K,{matches:n,match:this.getMatch(m),params:this.getMatch(m).params,loaderData:N}),te=($e=(ge=C.options).headers)==null?void 0:$e.call(ge,{loaderData:N});a(m,ie=>({...ie,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:N,meta:B,headers:te}))}catch(H){let N=H;await ke(),c(this.getMatch(m),H);try{(xe=(Te=C.options).onError)==null||xe.call(Te,H)}catch(B){N=B,c(this.getMatch(m),B)}a(m,B=>({...B,error:N,status:"error",isFetching:!1}))}await this.getMatch(m).componentsPromise}catch(ke){c(this.getMatch(m),ke)}},{status:F,invalid:ee}=this.getMatch(m);P=F==="success"&&(ee||(X??R>D)),i&&C.options.preload===!1||(P?(async()=>{try{await Z()}catch{}})():F!=="success"&&await Z());const{loaderPromise:x,loadPromise:L}=this.getMatch(m);x==null||x.resolve(),L==null||L.resolve()}a(m,O=>({...O,isFetching:P?O.isFetching:!1,loaderPromise:void 0,invalid:!1}))})())}),await Promise.all(g),d()}catch(b){f(b)}})()}),await u()}catch(d){if(ya(d)||Mn(d))throw Mn(d)&&!i&&await u(),d}return n},this.invalidate=()=>{const t=n=>({...n,invalid:!0,...n.status==="error"?{status:"pending",error:void 0}:{}});return this.__store.setState(n=>{var i;return{...n,matches:n.matches.map(t),cachedMatches:n.cachedMatches.map(t),pendingMatches:(i=n.pendingMatches)==null?void 0:i.map(t)}}),this.load()},this.resolveRedirect=t=>{const n=t;return n.href||(n.href=this.buildLocation(n).href),n},this.cleanCache=()=>{this.__store.setState(t=>({...t,cachedMatches:t.cachedMatches.filter(n=>{const i=this.looseRoutesById[n.routeId];if(!i.options.loader)return!1;const o=(n.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return n.status!=="error"&&Date.now()-n.updatedAt<o})}))},this.preloadRoute=async t=>{const n=this.buildLocation(t);let i=this.matchRoutes(n,{throwOnError:!0,preload:!0});const o=Object.fromEntries([...this.state.matches,...this.state.pendingMatches??[],...this.state.cachedMatches].map(s=>[s.id,!0]));this.__store.batch(()=>{i.forEach(s=>{o[s.id]||this.__store.setState(l=>({...l,cachedMatches:[...l.cachedMatches,s]}))})});const a=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(s=>s.id));try{return i=await this.loadMatches({matches:i,location:n,preload:!0,updateMatch:(s,l)=>{a.has(s)?i=i.map(u=>u.id===s?l(u):u):this.updateMatch(s,l)}}),i}catch(s){if(ya(s))return await this.preloadRoute({...s,_fromLocation:n});console.error(s);return}},this.matchRoute=(t,n)=>{const i={...t,to:t.to?this.resolvePathWithBase(t.from||"",t.to):void 0,params:t.params||{},leaveParams:!0},o=this.buildLocation(i);if(n!=null&&n.pending&&this.state.status!=="pending")return!1;const s=((n==null?void 0:n.pending)===void 0?!this.state.isLoading:n.pending)?this.latestLocation:this.state.resolvedLocation,l=mh(this.basepath,s.pathname,{...n,to:o.pathname});return!l||t.params&&!jc(l,t.params,!0)?!1:l&&((n==null?void 0:n.includeSearch)??!0)?jc(s.search,o.search,!0)?l:!1:l},this.dehydrate=()=>{var t;const n=((t=this.options.errorSerializer)==null?void 0:t.serialize)??h9;return{state:{dehydratedMatches:this.state.matches.map(i=>({...Lc(i,["id","status","updatedAt"]),error:i.error?{data:n(i.error),__isServerError:!0}:void 0}))},manifest:this.manifest}},this.hydrate=()=>{var t,n,i;let o;typeof document<"u"&&(o=this.options.transformer.parse((t=window.__TSR__)==null?void 0:t.dehydrated)),$r(o),this.dehydratedData=o.payload,(i=(n=this.options).hydrate)==null||i.call(n,o.payload);const a=o.router.state,s=this.matchRoutes(this.state.location).map(l=>{const u=a.dehydratedMatches.find(c=>c.id===l.id);return $r(u,`Could not find a client-side match for dehydrated match with id: ${l.id}!`),{...l,...u}});this.__store.setState(l=>({...l,matches:s})),this.manifest=o.router.manifest},this.injectedHtml=[],this.injectHtml=t=>{const n=()=>(this.injectedHtml=this.injectedHtml.filter(i=>i!==n),t);this.injectedHtml.push(n)},this.streamedKeys=new Set,this.getStreamedValue=t=>{var n;if(this.isServer)return;const i=(n=window.__TSR__)==null?void 0:n.streamedValues[t];if(i)return i.parsed||(i.parsed=this.options.transformer.parse(i.value)),i.parsed},this.streamValue=(t,n)=>{var i;this.streamedKeys.has(t),this.streamedKeys.add(t);const o=`__TSR__.streamedValues['${t}'] = { value: ${(i=this.serializer)==null?void 0:i.call(this,this.options.transformer.stringify(n))}}`;this.injectHtml(`<script class='tsr-once'>${o}; __TSR__.cleanScripts()<\/script>`)},this._handleNotFound=(t,n,{updateMatch:i=this.updateMatch}={})=>{const o=Object.fromEntries(t.map(l=>[l.routeId,l]));let a=(n.global?this.looseRoutesById[Hr]:this.looseRoutesById[n.routeId])||this.looseRoutesById[Hr];for(;!a.options.notFoundComponent&&!this.options.defaultNotFoundComponent&&a.id!==Hr;)a=a.parentRoute,$r(a);const s=o[a.id];$r(s,"Could not find match for route: "+a.id),i(s.id,l=>({...l,status:"notFound",error:n,isFetching:!1})),n.routerCode==="BEFORE_LOAD"&&a.parentRoute&&(n.routeId=a.parentRoute.id,this._handleNotFound(t,n,{updateMatch:i}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(t=>t.status==="notFound"||t.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...r,notFoundMode:r.notFoundMode??"fuzzy",stringifySearch:r.stringifySearch??X8,parseSearch:r.parseSearch??Y8,transformer:r.transformer??a9}),typeof document<"u"&&(window.__TSR__ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutes(r,t,n){return typeof r=="string"?this.matchRoutesInternal({pathname:r,search:t},n):this.matchRoutesInternal(r,t)}matchRoutesInternal(r,t){let n={};const i=this.flatRoutes.find(d=>{const f=mh(this.basepath,_a(r.pathname),{to:d.fullPath,caseSensitive:d.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});return f?(n=f,!0):!1});let o=i||this.routesById[Hr];const a=[o];let s=!1;for((i?i.path!=="/"&&n["**"]:_a(r.pathname))&&(this.options.notFoundRoute?a.push(this.options.notFoundRoute):s=!0);o.parentRoute;)o=o.parentRoute,a.unshift(o);const l=(()=>{if(s){if(this.options.notFoundMode!=="root")for(let d=a.length-1;d>=0;d--){const f=a[d];if(f.children)return f.id}return Hr}})(),u=a.map(d=>{var f;let h;const v=((f=d.options.params)==null?void 0:f.parse)??d.options.parseParams;if(v)try{const p=v(n);Object.assign(n,p)}catch(p){if(h=new d9(p.message,{cause:p}),t!=null&&t.throwOnError)throw h;return h}}),c=[];return a.forEach((d,f)=>{var h,v,p,b,y,g,m,$,w,S,P,O;const C=c[f-1],[k,R]=(()=>{const Q=(C==null?void 0:C.search)??r.search;try{const K=typeof d.options.validateSearch=="object"?d.options.validateSearch.parse:d.options.validateSearch,ce=(K==null?void 0:K(Q))??{};return[{...Q,...ce},void 0]}catch(K){const ce=new c9(K.message,{cause:K});if(t!=null&&t.throwOnError)throw ce;return[Q,ce]}})(),D=((v=(h=d.options).loaderDeps)==null?void 0:v.call(h,{search:k}))??"",z=D?JSON.stringify(D):"",X=fm({path:d.fullPath,params:n}),Z=fm({path:d.id,params:n,leaveWildcards:!0})+z,F=this.getMatch(Z),ee=this.state.matches.find(Q=>Q.id===Z)?"stay":"enter";let x;if(F)x={...F,cause:ee,params:n};else{const Q=d.options.loader||d.options.beforeLoad||d.lazyFn||s9(d)?"pending":"success";x={id:Z,index:f,routeId:d.id,params:n,pathname:jo([this.basepath,X]),updatedAt:Date.now(),search:{},searchError:void 0,status:Q,isFetching:!1,error:void 0,paramsError:u[f],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:ee,loaderDeps:D,invalid:!1,preload:!1,links:(b=(p=d.options).links)==null?void 0:b.call(p),scripts:(g=(y=d.options).scripts)==null?void 0:g.call(y),staticData:d.options.staticData||{},loadPromise:Gs(),fullPath:d.fullPath}}x.status==="success"&&(x.meta=($=(m=d.options).meta)==null?void 0:$.call(m,{matches:c,match:x,params:x.params,loaderData:x.loaderData}),x.headers=(S=(w=d.options).headers)==null?void 0:S.call(w,{loaderData:x.loaderData})),t!=null&&t.preload||(x.globalNotFound=l===d.id),x.search=Ks(x.search,k),x.searchError=R;const j=(C==null?void 0:C.id)?C.context??this.options.context??{}:this.options.context??{};if(x.context={...j,...x.__routeContext,...x.__beforeLoadContext},!F&&(t==null?void 0:t._buildLocation)!==!0){const Q={deps:D,params:x.params,context:x.context,location:r,navigate:K=>this.navigate({...K,_fromLocation:r}),buildLocation:this.buildLocation,cause:x.cause,abortController:x.abortController,preload:!!x.preload,matches:c};x.__routeContext=((O=(P=d.options).context)==null?void 0:O.call(P,Q))??{},x.context={...j,...x.__routeContext,...x.__beforeLoadContext}}c.push(x)}),c}}class c9 extends Error{}class d9 extends Error{}function f9(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:{...e},location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function h9(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function fP(e){return!(typeof e=="object"&&e&&"data"in e)||!("__isServerError"in e&&e.__isServerError)||!(typeof e.data=="object"&&e.data)?!1:e.__isServerError===!0}function hP(e){if("name"in e&&"message"in e){const r=new Error(e.message);return r.name=e.name,r}return e.data}const fy=_.createContext(void 0);function eu(e){const r=_.useContext(fy);return vn({select:n=>{const i=n.matches.find(o=>e.from?e.from===o.routeId:o.id===r);if($r(!((e.shouldThrow??!0)&&!i),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),i!==void 0)return e.select?e.select(i):i}})}function v9(e){return eu({...e,select:r=>typeof e.select=="function"?e.select(r.loaderDeps):r.loaderDeps})}function p9(e){return eu({...e,select:r=>typeof e.select=="function"?e.select(r.loaderData):r.loaderData})}function y9(e){return eu({...e,select:r=>e.select?e.select(r.params):r.params})}function g9(e){return eu({...e,select:r=>e.select?e.select(r.search):r.search})}function m9(e){const{navigate:r}=hs();return _.useCallback(t=>r({...t}),[r])}let JM=class{constructor(r){this.init=t=>{var n,i;this.originalIndex=t.originalIndex;const o=this.options,a=!(o!=null&&o.path)&&!(o!=null&&o.id);this.parentRoute=(i=(n=this.options).getParentRoute)==null?void 0:i.call(n),a?this._path=Hr:$r(this.parentRoute);let s=a?Hr:o.path;s&&s!=="/"&&(s=fS(s));const l=(o==null?void 0:o.id)||s;let u=a?Hr:jo([this.parentRoute.id===Hr?"":this.parentRoute.id,l]);s===Hr&&(s="/"),u!==Hr&&(u=jo(["/",u]));const c=u===Hr?"/":jo([this.parentRoute.fullPath,s]);this._path=s,this._id=u,this._fullPath=c,this._to=c,this._ssr=(o==null?void 0:o.ssr)??t.defaultSsr??!0},this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.useMatch=t=>eu({...t,from:this.id}),this.useRouteContext=t=>eu({...t,from:this.id,select:n=>t!=null&&t.select?t.select(n.context):n.context}),this.useSearch=t=>g9({...t,from:this.id}),this.useParams=t=>y9({...t,from:this.id}),this.useLoaderDeps=t=>v9({...t,from:this.id}),this.useLoaderData=t=>p9({...t,from:this.id}),this.useNavigate=()=>m9({from:this.id}),this.options=r||{},this.isRoot=!(r!=null&&r.getParentRoute),$r(!(r!=null&&r.id&&(r!=null&&r.path))),this.$$typeof=Symbol.for("react.memo")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}addChildren(r){return this._addFileChildren(r)}_addFileChildren(r){return Array.isArray(r)&&(this.children=r),typeof r=="object"&&r!==null&&(this.children=Object.values(r)),this}};function b9(e){return new JM(e)}class $9 extends JM{constructor(r){super(r)}addChildren(r){return super.addChildren(r),this}_addFileChildren(r){return super._addFileChildren(r),this}_addFileTypes(){return this}}function w9(e){return new $9(e)}function vS(e){return new S9(e,{silent:!0}).createRoute}class S9{constructor(r,t){this.path=r,this.createRoute=n=>{this.silent;const i=b9(n);return i.isRoot=!1,i},this.silent=t==null?void 0:t.silent}}function Sv(e){return E.jsx(E.Fragment,{children:e.children})}function eN(e,r,t){return r.options.notFoundComponent?E.jsx(r.options.notFoundComponent,{data:t}):e.options.defaultNotFoundComponent?E.jsx(e.options.defaultNotFoundComponent,{data:t}):E.jsx(o9,{})}const tN=_.memo(function({matchId:r}){var t,n;const i=hs(),o=vn({select:b=>{var y;return(y=b.matches.find(g=>g.id===r))==null?void 0:y.routeId}});$r(o);const a=i.routesById[o],s=a.options.pendingComponent??i.options.defaultPendingComponent,l=s?E.jsx(s,{}):null,u=a.options.errorComponent??i.options.defaultErrorComponent,c=a.options.onCatch??i.options.defaultOnCatch,d=a.isRoot?a.options.notFoundComponent??((t=i.options.notFoundRoute)==null?void 0:t.options.component):a.options.notFoundComponent,f=(!a.isRoot||a.options.wrapInSuspense)&&(a.options.wrapInSuspense??s??((n=a.options.errorComponent)==null?void 0:n.preload))?_.Suspense:Sv,h=u?hS:Sv,v=d?i9:Sv,p=vn({select:b=>b.loadedAt});return E.jsx(fy.Provider,{value:r,children:E.jsx(f,{fallback:l,children:E.jsx(h,{getResetKey:()=>p,errorComponent:u||dy,onCatch:(b,y)=>{if(Mn(b))throw b;c==null||c(b,y)},children:E.jsx(v,{fallback:b=>{if(!d||b.routeId&&b.routeId!==o||!b.routeId&&!a.isRoot)throw b;return _.createElement(d,b)},children:E.jsx(_9,{matchId:r})})})})})}),_9=_.memo(function({matchId:r}){var t,n,i;const o=hs(),{match:a,matchIndex:s,routeId:l}=vn({select:f=>{const h=f.matches.findIndex(b=>b.id===r),v=f.matches[h];return{routeId:v.routeId,matchIndex:h,match:Lc(v,["id","status","error","loadPromise"])}}}),u=o.routesById[l],c=_.useMemo(()=>{const f=u.options.component??o.options.defaultComponent;return f?E.jsx(f,{}):E.jsx(pS,{})},[u.options.component,o.options.defaultComponent]),d=(u.options.errorComponent??o.options.defaultErrorComponent)||dy;if(a.status==="notFound"){let f;return fP(a.error)?f=(((t=o.options.errorSerializer)==null?void 0:t.deserialize)??hP)(a.error.data):f=a.error,$r(Mn(f)),eN(o,u,f)}if(a.status==="redirected")throw $r(ya(a.error)),a.loadPromise;if(a.status==="error"){if(o.isServer)return E.jsx(d,{error:a.error,info:{componentStack:""}});throw fP(a.error)?(((n=o.options.errorSerializer)==null?void 0:n.deserialize)??hP)(a.error.data):a.error}if(a.status==="pending"){const f=u.options.pendingMinMs??o.options.defaultPendingMinMs;if(f&&!((i=o.getMatch(a.id))!=null&&i.minPendingPromise)&&!o.isServer){const h=Gs();Promise.resolve().then(()=>{o.updateMatch(a.id,v=>({...v,minPendingPromise:h}))}),setTimeout(()=>{h.resolve(),o.updateMatch(a.id,v=>({...v,minPendingPromise:void 0}))},f)}throw a.loadPromise}return E.jsxs(E.Fragment,{children:[c,o.AfterEachMatch?E.jsx(o.AfterEachMatch,{match:a,matchIndex:s}):null]})}),pS=_.memo(function(){const r=hs(),t=_.useContext(fy),n=vn({select:u=>{var c;return(c=u.matches.find(d=>d.id===t))==null?void 0:c.routeId}}),i=r.routesById[n],{parentGlobalNotFound:o}=vn({select:u=>{const d=u.matches.find(f=>f.id===t);return $r(d),{parentGlobalNotFound:d.globalNotFound}}}),a=vn({select:u=>{var c;const d=u.matches,f=d.findIndex(h=>h.id===t);return(c=d[f+1])==null?void 0:c.id}});if(o)return eN(r,i,void 0);if(!a)return null;const s=E.jsx(tN,{matchId:a}),l=r.options.defaultPendingComponent?E.jsx(r.options.defaultPendingComponent,{}):null;return t===Hr?E.jsx(_.Suspense,{fallback:l,children:s}):s});function E9(){const e=hs(),r=_.useRef({router:e,mounted:!1}),t=vn({select:u=>Lc(u,["isLoading","location","resolvedLocation","isTransitioning"])}),[n,i]=_.useTransition(),o=vn({select:u=>u.matches.some(c=>c.status==="pending")}),a=uP(t.isLoading),s=t.isLoading||n||o,l=uP(s);return e.isServer||(e.startReactTransition=i),_.useEffect(()=>{const u=e.history.subscribe(e.load),c=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0});return _a(e.latestLocation.href)!==_a(c.href)&&e.commitLocation({...c,replace:!0}),()=>{u()}},[e,e.history]),dm(()=>{var u;if(typeof window<"u"&&((u=window.__TSR__)!=null&&u.dehydrated)||r.current.router===e&&r.current.mounted)return;r.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(d){console.error(d)}})()},[e]),dm(()=>{if(a&&!t.isLoading){const u=e.state.location,c=e.state.resolvedLocation,d=c.href!==u.href;e.emit({type:"onLoad",fromLocation:c,toLocation:u,pathChanged:d})}},[a,e,t.isLoading]),dm(()=>{if(l&&!s){const u=e.state.location,c=e.state.resolvedLocation,d=c.href!==u.href;if(e.emit({type:"onResolved",fromLocation:c,toLocation:u,pathChanged:d}),e.__store.setState(f=>({...f,status:"idle",resolvedLocation:f.location})),typeof document<"u"&&document.querySelector&&e.state.location.hash!==""){const f=document.getElementById(e.state.location.hash);f&&f.scrollIntoView()}}},[s,l,e]),null}function O9(){const e=hs(),r=e.options.defaultPendingComponent?E.jsx(e.options.defaultPendingComponent,{}):null,t=e.isServer||typeof document<"u"&&window.__TSR__?Sv:_.Suspense,n=E.jsxs(t,{fallback:r,children:[E.jsx(E9,{}),E.jsx(P9,{})]});return e.options.InnerWrap?E.jsx(e.options.InnerWrap,{children:n}):n}function P9(){const e=vn({select:t=>{var n;return(n=t.matches[0])==null?void 0:n.id}}),r=vn({select:t=>t.loadedAt});return E.jsx(fy.Provider,{value:e,children:E.jsx(hS,{getResetKey:()=>r,errorComponent:dy,onCatch:t=>{t.message||t.toString()},children:e?E.jsx(tN,{matchId:e}):null})})}function C9({router:e,children:r,...t}){e.update({...e.options,...t,context:{...e.options.context,...t.context}});const n=GM(),i=E.jsx(n.Provider,{value:e,children:r});return e.options.Wrap?E.jsx(e.options.Wrap,{children:i}):i}function T9({router:e,...r}){return E.jsx(C9,{router:e,...r,children:E.jsx(O9,{})})}function vi(e){return Object.keys(e)}function hm(e){return e&&typeof e=="object"&&!Array.isArray(e)}function yS(e,r){const t={...e},n=r;return hm(e)&&hm(r)&&Object.keys(r).forEach(i=>{hm(n[i])&&i in e?t[i]=yS(t[i],n[i]):t[i]=n[i]}),t}function x9(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function k9(e){var r;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(r=e.match(/^calc\((.*?)\)$/))==null?void 0:r[1].split("*")[0].trim()}function I9(e){const r=k9(e);return typeof r=="number"?r:typeof r=="string"?r.includes("calc")||r.includes("var")?r:r.includes("px")?Number(r.replace("px","")):r.includes("rem")?Number(r.replace("rem",""))*16:r.includes("em")?Number(r.replace("em",""))*16:Number(r):NaN}function vm(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function rN(e,{shouldScale:r=!1}={}){function t(n){if(n===0||n==="0")return`0${e}`;if(typeof n=="number"){const i=`${n/16}${e}`;return r?vm(i):i}if(typeof n=="string"){if(n===""||n.startsWith("calc(")||n.startsWith("clamp(")||n.includes("rgba("))return n;if(n.includes(","))return n.split(",").map(o=>t(o)).join(",");if(n.includes(" "))return n.split(" ").map(o=>t(o)).join(" ");if(n.includes(e))return r?vm(n):n;const i=n.replace("px","");if(!Number.isNaN(Number(i))){const o=`${Number(i)/16}${e}`;return r?vm(o):o}}return n}return t}const M=rN("rem",{shouldScale:!0}),vP=rN("em");function hy(e){return Object.keys(e).reduce((r,t)=>(e[t]!==void 0&&(r[t]=e[t]),r),{})}function nN(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const r=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|%)?$/;return e.trim().split(/\s+/).every(n=>r.test(n))}return!1}function Xd(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==_.Fragment:!1}function Qd(e){const r=_.createContext(null);return[({children:i,value:o})=>E.jsx(r.Provider,{value:o,children:i}),()=>{const i=_.useContext(r);if(i===null)throw new Error(e);return i}]}function R9(e=null){const r=_.createContext(e);return[({children:i,value:o})=>E.jsx(r.Provider,{value:o,children:i}),()=>_.useContext(r)]}const A9={app:100,modal:200,popover:300,overlay:400,max:9999};function iN(e){return A9[e]}const M9=()=>{};function N9(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||M9:t=>{var n;t.key==="Escape"&&(e(t),(n=r.onTrigger)==null||n.call(r))}}function Rt(e,r="size",t=!0){if(e!==void 0)return nN(e)?t?M(e):e:`var(--${r}-${e})`}function oN(e){return Rt(e,"mantine-spacing")}function Eu(e){return e===void 0?"var(--mantine-radius-default)":Rt(e,"mantine-radius")}function pn(e){return Rt(e,"mantine-font-size")}function D9(e){return Rt(e,"mantine-line-height",!1)}function aN(e){if(e)return Rt(e,"mantine-shadow",!1)}function sN(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function ma(e){const r=_.useRef(e);return _.useEffect(()=>{r.current=e}),_.useMemo(()=>(...t)=>{var n;return(n=r.current)==null?void 0:n.call(r,...t)},[])}function vy(e,r){const t=ma(e),n=_.useRef(0);return _.useEffect(()=>()=>window.clearTimeout(n.current),[]),_.useCallback((...i)=>{window.clearTimeout(n.current),n.current=window.setTimeout(()=>t(...i),r)},[t,r])}const pP=["mousedown","touchstart"];function F9(e,r,t){const n=_.useRef();return _.useEffect(()=>{const i=o=>{const{target:a}=o??{};if(Array.isArray(t)){const s=(a==null?void 0:a.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(a)&&a.tagName!=="HTML";t.every(u=>!!u&&!o.composedPath().includes(u))&&!s&&e()}else n.current&&!n.current.contains(a)&&e()};return(r||pP).forEach(o=>document.addEventListener(o,i)),()=>{(r||pP).forEach(o=>document.removeEventListener(o,i))}},[n,e,t]),n}function L9(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch{return e.addListener(r),()=>e.removeListener(r)}}function j9(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function B9(e,r,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){const[n,i]=_.useState(t?r:j9(e)),o=_.useRef();return _.useEffect(()=>{if("matchMedia"in window)return o.current=window.matchMedia(e),i(o.current.matches),L9(o.current,a=>i(a.matches))},[e]),n}const Zd=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Ja(e,r){const t=_.useRef(!1);_.useEffect(()=>()=>{t.current=!1},[]),_.useEffect(()=>{if(t.current)return e();t.current=!0},r)}function z9({opened:e,shouldReturnFocus:r=!0}){const t=_.useRef(),n=()=>{var i;t.current&&"focus"in t.current&&typeof t.current.focus=="function"&&((i=t.current)==null||i.focus({preventScroll:!0}))};return Ja(()=>{let i=-1;const o=a=>{a.key==="Tab"&&window.clearTimeout(i)};return document.addEventListener("keydown",o),e?t.current=document.activeElement:r&&(i=window.setTimeout(n,10)),()=>{window.clearTimeout(i),document.removeEventListener("keydown",o)}},[e,r]),n}function H9(e,r="body > :not(script)"){const t=sN(),n=Array.from(document.querySelectorAll(r)).map(i=>{var l;if((l=i==null?void 0:i.shadowRoot)!=null&&l.contains(e)||i.contains(e))return;const o=i.getAttribute("aria-hidden"),a=i.getAttribute("data-hidden"),s=i.getAttribute("data-focus-id");return i.setAttribute("data-focus-id",t),o===null||o==="false"?i.setAttribute("aria-hidden","true"):!a&&!s&&i.setAttribute("data-hidden",o),{node:i,ariaHidden:a||null}});return()=>{n.forEach(i=>{!i||t!==i.node.getAttribute("data-focus-id")||(i.ariaHidden===null?i.node.removeAttribute("aria-hidden"):i.node.setAttribute("aria-hidden",i.ariaHidden),i.node.removeAttribute("data-focus-id"),i.node.removeAttribute("data-hidden"))})}}const W9=/input|select|textarea|button|object/,lN="a, input, select, textarea, button, object, [tabindex]";function U9(e){return e.style.display==="none"}function V9(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let t=e;for(;t&&!(t===document.body||t.nodeType===11);){if(U9(t))return!1;t=t.parentNode}return!0}function uN(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function R$(e){const r=e.nodeName.toLowerCase(),t=!Number.isNaN(uN(e));return(W9.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||t)&&V9(e)}function cN(e){const r=uN(e);return(Number.isNaN(r)||r>=0)&&R$(e)}function K9(e){return Array.from(e.querySelectorAll(lN)).filter(cN)}function G9(e,r){const t=K9(e);if(!t.length){r.preventDefault();return}const n=t[r.shiftKey?0:t.length-1],i=e.getRootNode();let o=n===i.activeElement||e===i.activeElement;const a=i.activeElement;if(a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(o=t.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===a.getAttribute("name")).includes(n)),!o)return;r.preventDefault();const l=t[r.shiftKey?t.length-1:0];l&&l.focus()}function q9(e=!0){const r=_.useRef(),t=_.useRef(null),n=o=>{let a=o.querySelector("[data-autofocus]");if(!a){const s=Array.from(o.querySelectorAll(lN));a=s.find(cN)||s.find(R$)||null,!a&&R$(o)&&(a=o)}a&&a.focus({preventScroll:!0})},i=_.useCallback(o=>{if(e){if(o===null){t.current&&(t.current(),t.current=null);return}t.current=H9(o),r.current!==o&&(o?(setTimeout(()=>{o.getRootNode()&&n(o)}),r.current=o):r.current=null)}},[e]);return _.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>n(r.current));const o=a=>{a.key==="Tab"&&r.current&&G9(r.current,a)};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o),t.current&&t.current()}},[e]),i}const Y9=z2.useId||(()=>{});function X9(){const e=Y9();return e?`mantine-${e.replace(/:/g,"")}`:""}function Jd(e){const r=X9(),[t,n]=_.useState(r);return Zd(()=>{n(sN())},[]),typeof e=="string"?e:typeof window>"u"?r:t}function dN(e,r){typeof e=="function"?e(r):typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function fN(...e){return r=>{e.forEach(t=>dN(t,r))}}function $n(...e){return _.useCallback(fN(...e),e)}function tu({value:e,defaultValue:r,finalValue:t,onChange:n=()=>{}}){const[i,o]=_.useState(r!==void 0?r:t),a=(s,...l)=>{o(s),n==null||n(s,...l)};return e!==void 0?[e,n,!0]:[i,a,!1]}function hN(e,r){return B9("(prefers-reduced-motion: reduce)",e,r)}function Q9(e){const r=_.useRef();return _.useEffect(()=>{r.current=e},[e]),r.current}var Z9={};function J9(){return typeof process<"u"&&Z9?"production":"development"}function vN(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(r=0;r<i;r++)e[r]&&(t=vN(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function bi(){for(var e,r,t=0,n="",i=arguments.length;t<i;t++)(e=arguments[t])&&(r=vN(e))&&(n&&(n+=" "),n+=r);return n}const eH={};function tH(e){const r={};return e.forEach(t=>{Object.entries(t).forEach(([n,i])=>{r[n]?r[n]=bi(r[n],i):r[n]=i})}),r}function py({theme:e,classNames:r,props:t,stylesCtx:n}){const o=(Array.isArray(r)?r:[r]).map(a=>typeof a=="function"?a(e,t,n):a||eH);return tH(o)}function vp({theme:e,styles:r,props:t,stylesCtx:n}){return(Array.isArray(r)?r:[r]).reduce((o,a)=>typeof a=="function"?{...o,...a(e,t,n)}:{...o,...a},{})}const pN=_.createContext(null);function vs(){const e=_.useContext(pN);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function rH(){return vs().cssVariablesResolver}function nH(){return vs().classNamesPrefix}function gS(){return vs().getStyleNonce}function iH(){return vs().withStaticClasses}function oH(){return vs().headless}function aH(){var e;return(e=vs().stylesTransform)==null?void 0:e.sx}function sH(){var e;return(e=vs().stylesTransform)==null?void 0:e.styles}function lH(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function uH(e){let r=e.replace("#","");if(r.length===3){const a=r.split("");r=[a[0],a[0],a[1],a[1],a[2],a[2]].join("")}if(r.length===8){const a=parseInt(r.slice(6,8),16)/255;return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a}}const t=parseInt(r,16),n=t>>16&255,i=t>>8&255,o=t&255;return{r:n,g:i,b:o,a:1}}function cH(e){const[r,t,n,i]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r,g:t,b:n,a:i||1}}function dH(e){const r=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,t=e.match(r);if(!t)return{r:0,g:0,b:0,a:1};const n=parseInt(t[1],10),i=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,s=(1-Math.abs(2*o-1))*i,l=n/60,u=s*(1-Math.abs(l%2-1)),c=o-s/2;let d,f,h;return l>=0&&l<1?(d=s,f=u,h=0):l>=1&&l<2?(d=u,f=s,h=0):l>=2&&l<3?(d=0,f=s,h=u):l>=3&&l<4?(d=0,f=u,h=s):l>=4&&l<5?(d=u,f=0,h=s):(d=s,f=0,h=u),{r:Math.round((d+c)*255),g:Math.round((f+c)*255),b:Math.round((h+c)*255),a:a||1}}function mS(e){return lH(e)?uH(e):e.startsWith("rgb")?cH(e):e.startsWith("hsl")?dH(e):{r:0,g:0,b:0,a:1}}function bh(e,r){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${r*100}%)`;const{r:t,g:n,b:i,a:o}=mS(e),a=1-r,s=l=>Math.round(l*a);return`rgba(${s(t)}, ${s(n)}, ${s(i)}, ${o})`}function pd(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function pm(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function fH(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function hH(e){if(e.startsWith("oklch("))return(fH(e)||0)/100;const{r,g:t,b:n}=mS(e),i=r/255,o=t/255,a=n/255,s=pm(i),l=pm(o),u=pm(a);return .2126*s+.7152*l+.0722*u}function lc(e,r=.179){return e.startsWith("var(")?!1:hH(e)>r}function ef({color:e,theme:r,colorScheme:t}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:t==="dark"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:lc(t==="dark"?r.white:r.black,r.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:t==="dark"?r.colors.dark[2]:r.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:lc(t==="dark"?r.colors.dark[2]:r.colors.gray[6],r.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:lc(e==="white"?r.white:r.black,r.luminanceThreshold),variable:`--mantine-color-${e}`};const[n,i]=e.split("."),o=i?Number(i):void 0,a=n in r.colors;if(a){const s=o!==void 0?r.colors[n][o]:r.colors[n][pd(r,t||"light")];return{color:n,value:s,shade:o,isThemeColor:a,isLight:lc(s,r.luminanceThreshold),variable:i?`--mantine-color-${n}-${o}`:`--mantine-color-${n}-filled`}}return{color:e,value:e,isThemeColor:a,isLight:lc(e,r.luminanceThreshold),shade:o,variable:void 0}}function yd(e,r){const t=ef({color:e||r.primaryColor,theme:r});return t.variable?`var(${t.variable})`:e}function A$(e,r){const t={from:(e==null?void 0:e.from)||r.defaultGradient.from,to:(e==null?void 0:e.to)||r.defaultGradient.to,deg:(e==null?void 0:e.deg)||r.defaultGradient.deg||0},n=yd(t.from,r),i=yd(t.to,r);return`linear-gradient(${t.deg}deg, ${n} 0%, ${i} 100%)`}function xi(e,r){if(typeof e!="string"||r>1||r<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const o=(1-r)*100;return`color-mix(in srgb, ${e}, transparent ${o}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${r})`):e.replace(")",` / ${r})`);const{r:t,g:n,b:i}=mS(e);return`rgba(${t}, ${n}, ${i}, ${r})`}const Rs=xi,vH=({color:e,theme:r,variant:t,gradient:n,autoContrast:i})=>{const o=ef({color:e,theme:r}),a=typeof i=="boolean"?i:r.autoContrast;if(t==="filled"){const s=a&&o.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return o.isThemeColor?o.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:s,border:`${M(1)} solid transparent`}:{background:`var(--mantine-color-${o.color}-${o.shade})`,hover:`var(--mantine-color-${o.color}-${o.shade===9?8:o.shade+1})`,color:s,border:`${M(1)} solid transparent`}:{background:e,hover:bh(e,.1),color:s,border:`${M(1)} solid transparent`}}if(t==="light"){if(o.isThemeColor){if(o.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${M(1)} solid transparent`};const s=r.colors[o.color][o.shade];return{background:xi(s,.1),hover:xi(s,.12),color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${M(1)} solid transparent`}}return{background:xi(e,.1),hover:xi(e,.12),color:e,border:`${M(1)} solid transparent`}}if(t==="outline")return o.isThemeColor?o.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${M(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:xi(r.colors[o.color][o.shade],.05),color:`var(--mantine-color-${o.color}-${o.shade})`,border:`${M(1)} solid var(--mantine-color-${o.color}-${o.shade})`}:{background:"transparent",hover:xi(e,.05),color:e,border:`${M(1)} solid ${e}`};if(t==="subtle"){if(o.isThemeColor){if(o.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${M(1)} solid transparent`};const s=r.colors[o.color][o.shade];return{background:"transparent",hover:xi(s,.12),color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${M(1)} solid transparent`}}return{background:"transparent",hover:xi(e,.12),color:e,border:`${M(1)} solid transparent`}}return t==="transparent"?o.isThemeColor?o.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${M(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${M(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${M(1)} solid transparent`}:t==="white"?o.isThemeColor?o.shade===void 0?{background:"var(--mantine-color-white)",hover:bh(r.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${M(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:bh(r.white,.01),color:`var(--mantine-color-${o.color}-${o.shade})`,border:`${M(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:bh(r.white,.01),color:e,border:`${M(1)} solid transparent`}:t==="gradient"?{background:A$(n,r),hover:A$(n,r),color:"var(--mantine-color-white)",border:"none"}:t==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${M(1)} solid var(--mantine-color-default-border)`}:{}},pH={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},yP="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",bS={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:pH,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:vH,autoContrast:!1,luminanceThreshold:.3,fontFamily:yP,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:yP,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:M(34),lineHeight:"1.3"},h2:{fontSize:M(26),lineHeight:"1.35"},h3:{fontSize:M(22),lineHeight:"1.4"},h4:{fontSize:M(18),lineHeight:"1.45"},h5:{fontSize:M(16),lineHeight:"1.5"},h6:{fontSize:M(14),lineHeight:"1.5"}}},fontSizes:{xs:M(12),sm:M(14),md:M(16),lg:M(18),xl:M(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:M(2),sm:M(4),md:M(8),lg:M(16),xl:M(32)},spacing:{xs:M(10),sm:M(12),md:M(16),lg:M(20),xl:M(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), 0 ${M(1)} ${M(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(10)} ${M(15)} ${M(-5)}, rgba(0, 0, 0, 0.04) 0 ${M(7)} ${M(7)} ${M(-5)}`,md:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(20)} ${M(25)} ${M(-5)}, rgba(0, 0, 0, 0.04) 0 ${M(10)} ${M(10)} ${M(-5)}`,lg:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(28)} ${M(23)} ${M(-7)}, rgba(0, 0, 0, 0.04) 0 ${M(12)} ${M(12)} ${M(-7)}`,xl:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(36)} ${M(28)} ${M(-7)}, rgba(0, 0, 0, 0.04) 0 ${M(17)} ${M(17)} ${M(-7)}`},other:{},components:{}};function gP(e){return e==="auto"||e==="dark"||e==="light"}function yH({key:e="mantine-color-scheme-value"}={}){let r;return{get:t=>{if(typeof window>"u")return t;try{const n=window.localStorage.getItem(e);return gP(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(n){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",n)}},subscribe:t=>{r=n=>{n.storageArea===window.localStorage&&n.key===e&&gP(n.newValue)&&t(n.newValue)},window.addEventListener("storage",r)},unsubscribe:()=>{window.removeEventListener("storage",r)},clear:()=>{window.localStorage.removeItem(e)}}}const gH="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",mP="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function ym(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function bP(e){if(!(e.primaryColor in e.colors))throw new Error(gH);if(typeof e.primaryShade=="object"&&(!ym(e.primaryShade.dark)||!ym(e.primaryShade.light)))throw new Error(mP);if(typeof e.primaryShade=="number"&&!ym(e.primaryShade))throw new Error(mP)}function mH(e,r){var n;if(!r)return bP(e),e;const t=yS(e,r);return r.fontFamily&&!((n=r.headings)!=null&&n.fontFamily)&&(t.headings.fontFamily=r.fontFamily),bP(t),t}const $S=_.createContext(null),bH=()=>_.useContext($S)||bS;function $i(){const e=_.useContext($S);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function yN({theme:e,children:r,inherit:t=!0}){const n=bH(),i=_.useMemo(()=>mH(t?n:bS,e),[e,n,t]);return E.jsx($S.Provider,{value:i,children:r})}yN.displayName="@mantine/core/MantineThemeProvider";function $H(){const e=$i(),r=gS(),t=vi(e.breakpoints).reduce((n,i)=>{const o=e.breakpoints[i].includes("px"),a=I9(e.breakpoints[i]),s=o?`${a-.1}px`:vP(a-.1),l=o?`${a}px`:vP(a);return`${n}@media (max-width: ${s}) {.mantine-visible-from-${i} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${i} {display: none !important;}}`},"");return E.jsx("style",{"data-mantine-styles":"classes",nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:t}})}function gm(e){return Object.entries(e).map(([r,t])=>`${r}: ${t};`).join("")}function uc(e,r){return(Array.isArray(e)?e:[e]).reduce((n,i)=>`${i}{${n}}`,r)}function wH(e,r){const t=gm(e.variables),n=t?uc(r,t):"",i=gm(e.dark),o=gm(e.light),a=i?uc(r===":host"?`${r}([data-mantine-color-scheme="dark"])`:`${r}[data-mantine-color-scheme="dark"]`,i):"",s=o?uc(r===":host"?`${r}([data-mantine-color-scheme="light"])`:`${r}[data-mantine-color-scheme="light"]`,o):"";return`${n}${a}${s}`}function SH({color:e,theme:r,autoContrast:t}){return(typeof t=="boolean"?t:r.autoContrast)&&ef({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function $P(e,r){return SH({color:e.colors[e.primaryColor][pd(e,r)],theme:e,autoContrast:null})}function $h({theme:e,color:r,colorScheme:t,name:n=r,withColorValues:i=!0}){if(!e.colors[r])return{};if(t==="light"){const s=pd(e,"light"),l={[`--mantine-color-${n}-text`]:`var(--mantine-color-${n}-filled)`,[`--mantine-color-${n}-filled`]:`var(--mantine-color-${n}-${s})`,[`--mantine-color-${n}-filled-hover`]:`var(--mantine-color-${n}-${s===9?8:s+1})`,[`--mantine-color-${n}-light`]:Rs(e.colors[r][s],.1),[`--mantine-color-${n}-light-hover`]:Rs(e.colors[r][s],.12),[`--mantine-color-${n}-light-color`]:`var(--mantine-color-${n}-${s})`,[`--mantine-color-${n}-outline`]:`var(--mantine-color-${n}-${s})`,[`--mantine-color-${n}-outline-hover`]:Rs(e.colors[r][s],.05)};return i?{[`--mantine-color-${n}-0`]:e.colors[r][0],[`--mantine-color-${n}-1`]:e.colors[r][1],[`--mantine-color-${n}-2`]:e.colors[r][2],[`--mantine-color-${n}-3`]:e.colors[r][3],[`--mantine-color-${n}-4`]:e.colors[r][4],[`--mantine-color-${n}-5`]:e.colors[r][5],[`--mantine-color-${n}-6`]:e.colors[r][6],[`--mantine-color-${n}-7`]:e.colors[r][7],[`--mantine-color-${n}-8`]:e.colors[r][8],[`--mantine-color-${n}-9`]:e.colors[r][9],...l}:l}const o=pd(e,"dark"),a={[`--mantine-color-${n}-text`]:`var(--mantine-color-${n}-4)`,[`--mantine-color-${n}-filled`]:`var(--mantine-color-${n}-${o})`,[`--mantine-color-${n}-filled-hover`]:`var(--mantine-color-${n}-${o===9?8:o+1})`,[`--mantine-color-${n}-light`]:Rs(e.colors[r][Math.max(0,o-2)],.15),[`--mantine-color-${n}-light-hover`]:Rs(e.colors[r][Math.max(0,o-2)],.2),[`--mantine-color-${n}-light-color`]:`var(--mantine-color-${n}-${Math.max(o-5,0)})`,[`--mantine-color-${n}-outline`]:`var(--mantine-color-${n}-${Math.max(o-4,0)})`,[`--mantine-color-${n}-outline-hover`]:Rs(e.colors[r][Math.max(o-4,0)],.05)};return i?{[`--mantine-color-${n}-0`]:e.colors[r][0],[`--mantine-color-${n}-1`]:e.colors[r][1],[`--mantine-color-${n}-2`]:e.colors[r][2],[`--mantine-color-${n}-3`]:e.colors[r][3],[`--mantine-color-${n}-4`]:e.colors[r][4],[`--mantine-color-${n}-5`]:e.colors[r][5],[`--mantine-color-${n}-6`]:e.colors[r][6],[`--mantine-color-${n}-7`]:e.colors[r][7],[`--mantine-color-${n}-8`]:e.colors[r][8],[`--mantine-color-${n}-9`]:e.colors[r][9],...a}:a}function _H(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function As(e,r,t){vi(r).forEach(n=>Object.assign(e,{[`--mantine-${t}-${n}`]:r[n]}))}const gN=e=>{const r=pd(e,"light"),t=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:M(e.defaultRadius),n={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":t,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":$P(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${r})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":$P(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};As(n.variables,e.breakpoints,"breakpoint"),As(n.variables,e.spacing,"spacing"),As(n.variables,e.fontSizes,"font-size"),As(n.variables,e.lineHeights,"line-height"),As(n.variables,e.shadows,"shadow"),As(n.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((o,a)=>{n.variables[`--mantine-primary-color-${a}`]=`var(--mantine-color-${e.primaryColor}-${a})`}),vi(e.colors).forEach(o=>{const a=e.colors[o];if(_H(a)){Object.assign(n.light,$h({theme:e,name:a.name,color:a.light,colorScheme:"light",withColorValues:!0})),Object.assign(n.dark,$h({theme:e,name:a.name,color:a.dark,colorScheme:"dark",withColorValues:!0}));return}a.forEach((s,l)=>{n.variables[`--mantine-color-${o}-${l}`]=s}),Object.assign(n.light,$h({theme:e,color:o,colorScheme:"light",withColorValues:!1})),Object.assign(n.dark,$h({theme:e,color:o,colorScheme:"dark",withColorValues:!1}))});const i=e.headings.sizes;return vi(i).forEach(o=>{n.variables[`--mantine-${o}-font-size`]=i[o].fontSize,n.variables[`--mantine-${o}-line-height`]=i[o].lineHeight,n.variables[`--mantine-${o}-font-weight`]=i[o].fontWeight||e.headings.fontWeight}),n};function EH({theme:e,generator:r}){const t=gN(e),n=r==null?void 0:r(e);return n?yS(t,n):t}const mm=gN(bS);function OH(e){const r={variables:{},light:{},dark:{}};return vi(e.variables).forEach(t=>{mm.variables[t]!==e.variables[t]&&(r.variables[t]=e.variables[t])}),vi(e.light).forEach(t=>{mm.light[t]!==e.light[t]&&(r.light[t]=e.light[t])}),vi(e.dark).forEach(t=>{mm.dark[t]!==e.dark[t]&&(r.dark[t]=e.dark[t])}),r}function PH(e){return`
|
57
|
-
${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
|
58
|
-
${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
|
59
|
-
`}function mN({cssVariablesSelector:e,deduplicateCssVariables:r}){const t=$i(),n=gS(),i=rH(),o=EH({theme:t,generator:i}),a=e===":root"&&r,s=a?OH(o):o,l=wH(s,e);return l?E.jsx("style",{"data-mantine-styles":!0,nonce:n==null?void 0:n(),dangerouslySetInnerHTML:{__html:`${l}${a?"":PH(e)}`}}):null}mN.displayName="@mantine/CssVariables";function CH(){const e=console.error;console.error=(...r)=>{r.length>1&&typeof r[0]=="string"&&r[0].toLowerCase().includes("extra attributes from the server")&&typeof r[1]=="string"&&r[1].toLowerCase().includes("data-mantine-color-scheme")||e(...r)}}function Ms(e,r){var n;const t=e!=="auto"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";(n=r())==null||n.setAttribute("data-mantine-color-scheme",t)}function TH({manager:e,defaultColorScheme:r,getRootElement:t,forceColorScheme:n}){const i=_.useRef(),[o,a]=_.useState(()=>e.get(r)),s=n||o,l=_.useCallback(c=>{n||(Ms(c,t),a(c),e.set(c))},[e.set,s,n]),u=_.useCallback(()=>{a(r),Ms(r,t),e.clear()},[e.clear,r]);return _.useEffect(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),Zd(()=>{Ms(e.get(r),t)},[]),_.useEffect(()=>{var d;if(n)return Ms(n,t),()=>{};n===void 0&&Ms(o,t),i.current=window.matchMedia("(prefers-color-scheme: dark)");const c=f=>{o==="auto"&&Ms(f.matches?"dark":"light",t)};return(d=i.current)==null||d.addEventListener("change",c),()=>{var f;return(f=i.current)==null?void 0:f.removeEventListener("change",c)}},[o,n]),{colorScheme:s,setColorScheme:l,clearColorScheme:u}}function xH({respectReducedMotion:e,getRootElement:r}){Zd(()=>{var t;e&&((t=r())==null||t.setAttribute("data-respect-reduced-motion","true"))},[e])}CH();function bN({theme:e,children:r,getStyleNonce:t,withStaticClasses:n=!0,withGlobalClasses:i=!0,deduplicateCssVariables:o=!0,withCssVariables:a=!0,cssVariablesSelector:s=":root",classNamesPrefix:l="mantine",colorSchemeManager:u=yH(),defaultColorScheme:c="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:h,stylesTransform:v}){const{colorScheme:p,setColorScheme:b,clearColorScheme:y}=TH({defaultColorScheme:c,forceColorScheme:h,manager:u,getRootElement:d});return xH({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:d}),E.jsx(pN.Provider,{value:{colorScheme:p,setColorScheme:b,clearColorScheme:y,getRootElement:d,classNamesPrefix:l,getStyleNonce:t,cssVariablesResolver:f,cssVariablesSelector:s,withStaticClasses:n,stylesTransform:v},children:E.jsxs(yN,{theme:e,children:[a&&E.jsx(mN,{cssVariablesSelector:s,deduplicateCssVariables:o}),i&&E.jsx($H,{}),r]})})}bN.displayName="@mantine/core/MantineProvider";function $N({classNames:e,styles:r,props:t,stylesCtx:n}){const i=$i();return{resolvedClassNames:py({theme:i,classNames:e,props:t,stylesCtx:n||void 0}),resolvedStyles:vp({theme:i,styles:r,props:t,stylesCtx:n||void 0})}}const kH={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function IH({theme:e,options:r,unstyled:t}){return bi((r==null?void 0:r.focusable)&&!t&&(e.focusClassName||kH[e.focusRing]),(r==null?void 0:r.active)&&!t&&e.activeClassName)}function RH({selector:e,stylesCtx:r,options:t,props:n,theme:i}){return py({theme:i,classNames:t==null?void 0:t.classNames,props:(t==null?void 0:t.props)||n,stylesCtx:r})[e]}function wP({selector:e,stylesCtx:r,theme:t,classNames:n,props:i}){return py({theme:t,classNames:n,props:i,stylesCtx:r})[e]}function AH({rootSelector:e,selector:r,className:t}){return e===r?t:void 0}function MH({selector:e,classes:r,unstyled:t}){return t?void 0:r[e]}function NH({themeName:e,classNamesPrefix:r,selector:t,withStaticClass:n}){return n===!1?[]:e.map(i=>`${r}-${i}-${t}`)}function DH({themeName:e,theme:r,selector:t,props:n,stylesCtx:i}){return e.map(o=>{var a,s;return(s=py({theme:r,classNames:(a=r.components[o])==null?void 0:a.classNames,props:n,stylesCtx:i}))==null?void 0:s[t]})}function FH({options:e,classes:r,selector:t,unstyled:n}){return e!=null&&e.variant&&!n?r[`${t}--${e.variant}`]:void 0}function LH({theme:e,options:r,themeName:t,selector:n,classNamesPrefix:i,classNames:o,classes:a,unstyled:s,className:l,rootSelector:u,props:c,stylesCtx:d,withStaticClasses:f,headless:h,transformedStyles:v}){return bi(IH({theme:e,options:r,unstyled:s||h}),DH({theme:e,themeName:t,selector:n,props:c,stylesCtx:d}),FH({options:r,classes:a,selector:n,unstyled:s}),wP({selector:n,stylesCtx:d,theme:e,classNames:o,props:c}),wP({selector:n,stylesCtx:d,theme:e,classNames:v,props:c}),RH({selector:n,stylesCtx:d,options:r,props:c,theme:e}),AH({rootSelector:u,selector:n,className:l}),MH({selector:n,classes:a,unstyled:s||h}),f&&!h&&NH({themeName:t,classNamesPrefix:i,selector:n,withStaticClass:r==null?void 0:r.withStaticClass}),r==null?void 0:r.className)}function jH({theme:e,themeName:r,props:t,stylesCtx:n,selector:i}){return r.map(o=>{var a;return vp({theme:e,styles:(a=e.components[o])==null?void 0:a.styles,props:t,stylesCtx:n})[i]}).reduce((o,a)=>({...o,...a}),{})}function M$({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((t,n)=>({...t,...M$({style:n,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function BH(e){return e.reduce((r,t)=>(t&&Object.keys(t).forEach(n=>{r[n]={...r[n],...hy(t[n])}}),r),{})}function zH({vars:e,varsResolver:r,theme:t,props:n,stylesCtx:i,selector:o,themeName:a,headless:s}){var l;return(l=BH([s?{}:r==null?void 0:r(t,n,i),...a.map(u=>{var c,d,f;return(f=(d=(c=t.components)==null?void 0:c[u])==null?void 0:d.vars)==null?void 0:f.call(d,t,n,i)}),e==null?void 0:e(t,n,i)]))==null?void 0:l[o]}function HH({theme:e,themeName:r,selector:t,options:n,props:i,stylesCtx:o,rootSelector:a,styles:s,style:l,vars:u,varsResolver:c,headless:d,withStylesTransform:f}){return{...!f&&jH({theme:e,themeName:r,props:i,stylesCtx:o,selector:t}),...!f&&vp({theme:e,styles:s,props:i,stylesCtx:o})[t],...!f&&vp({theme:e,styles:n==null?void 0:n.styles,props:(n==null?void 0:n.props)||i,stylesCtx:o})[t],...zH({theme:e,props:i,stylesCtx:o,vars:u,varsResolver:c,selector:t,themeName:r,headless:d}),...a===t?M$({style:l,theme:e}):null,...M$({style:n==null?void 0:n.style,theme:e})}}function WH({props:e,stylesCtx:r,themeName:t}){var a;const n=$i(),i=(a=sH())==null?void 0:a();return{getTransformedStyles:s=>i?[...s.map(u=>i(u,{props:e,theme:n,ctx:r})),...t.map(u=>{var c;return i((c=n.components[u])==null?void 0:c.styles,{props:e,theme:n,ctx:r})})].filter(Boolean):[],withStylesTransform:!!i}}function Ue({name:e,classes:r,props:t,stylesCtx:n,className:i,style:o,rootSelector:a="root",unstyled:s,classNames:l,styles:u,vars:c,varsResolver:d}){const f=$i(),h=nH(),v=iH(),p=oH(),b=(Array.isArray(e)?e:[e]).filter(m=>m),{withStylesTransform:y,getTransformedStyles:g}=WH({props:t,stylesCtx:n,themeName:b});return(m,$)=>({className:LH({theme:f,options:$,themeName:b,selector:m,classNamesPrefix:h,classNames:l,classes:r,unstyled:s,className:i,rootSelector:a,props:t,stylesCtx:n,withStaticClasses:v,headless:p,transformedStyles:g([$==null?void 0:$.styles,u])}),style:HH({theme:f,themeName:b,selector:m,options:$,props:t,stylesCtx:n,rootSelector:a,styles:u,style:o,vars:c,varsResolver:d,headless:p,withStylesTransform:y})})}function ue(e,r,t){var a;const n=$i(),i=(a=n.components[e])==null?void 0:a.defaultProps,o=typeof i=="function"?i(n):i;return{...r,...o,...hy(t)}}function bm(e){return vi(e).reduce((r,t)=>e[t]!==void 0?`${r}${x9(t)}:${e[t]};`:r,"").trim()}function UH({selector:e,styles:r,media:t,container:n}){const i=r?bm(r):"",o=Array.isArray(t)?t.map(s=>`@media${s.query}{${e}{${bm(s.styles)}}}`):[],a=Array.isArray(n)?n.map(s=>`@container ${s.query}{${e}{${bm(s.styles)}}}`):[];return`${i?`${e}{${i}}`:""}${o.join("")}${a.join("")}`.trim()}function wN(e){const r=gS();return E.jsx("style",{"data-mantine-styles":"inline",nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:UH(e)}})}function yy(e){const{m:r,mx:t,my:n,mt:i,mb:o,ml:a,mr:s,me:l,ms:u,p:c,px:d,py:f,pt:h,pb:v,pl:p,pr:b,pe:y,ps:g,bd:m,bg:$,c:w,opacity:S,ff:P,fz:O,fw:C,lts:k,ta:R,lh:D,fs:z,tt:X,td:Z,w:F,miw:ee,maw:x,h:L,mih:j,mah:Q,bgsz:K,bgp:ce,bgr:ge,bga:$e,pos:Te,top:xe,left:ke,bottom:H,right:N,inset:B,display:te,flex:ie,hiddenFrom:J,visibleFrom:_e,lightHidden:Le,darkHidden:Se,sx:tr,...rr}=e;return{styleProps:hy({m:r,mx:t,my:n,mt:i,mb:o,ml:a,mr:s,me:l,ms:u,p:c,px:d,py:f,pt:h,pb:v,pl:p,pr:b,pe:y,ps:g,bd:m,bg:$,c:w,opacity:S,ff:P,fz:O,fw:C,lts:k,ta:R,lh:D,fs:z,tt:X,td:Z,w:F,miw:ee,maw:x,h:L,mih:j,mah:Q,bgsz:K,bgp:ce,bgr:ge,bga:$e,pos:Te,top:xe,left:ke,bottom:H,right:N,inset:B,display:te,flex:ie,hiddenFrom:J,visibleFrom:_e,lightHidden:Le,darkHidden:Se,sx:tr}),rest:rr}}const VH={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function wS(e,r){const t=ef({color:e,theme:r});return t.color==="dimmed"?"var(--mantine-color-dimmed)":t.color==="bright"?"var(--mantine-color-bright)":t.variable?`var(${t.variable})`:t.color}function KH(e,r){const t=ef({color:e,theme:r});return t.isThemeColor&&t.shade===void 0?`var(--mantine-color-${t.color}-text)`:wS(e,r)}function GH(e,r){if(typeof e=="number")return M(e);if(typeof e=="string"){const[t,n,...i]=e.split(" ").filter(a=>a.trim()!=="");let o=`${M(t)}`;return n&&(o+=` ${n}`),i.length>0&&(o+=` ${wS(i.join(" "),r)}`),o.trim()}return e}const SP={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function qH(e){return typeof e=="string"&&e in SP?SP[e]:e}const YH=["h1","h2","h3","h4","h5","h6"];function XH(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&YH.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?M(e):e}function QH(e){return e}const ZH=["h1","h2","h3","h4","h5","h6"];function JH(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&ZH.includes(e)?`var(--mantine-${e}-line-height)`:e}function eW(e){return typeof e=="number"?M(e):e}function tW(e,r){if(typeof e=="number")return M(e);if(typeof e=="string"){const t=e.replace("-","");if(!(t in r.spacing))return M(e);const n=`--mantine-spacing-${t}`;return e.startsWith("-")?`calc(var(${n}) * -1)`:`var(${n})`}return e}const $m={color:wS,textColor:KH,fontSize:XH,spacing:tW,identity:QH,size:eW,lineHeight:JH,fontFamily:qH,border:GH};function _P(e){return e.replace("(min-width: ","").replace("em)","")}function rW({media:e,...r}){const n=Object.keys(e).sort((i,o)=>Number(_P(i))-Number(_P(o))).map(i=>({query:i,styles:e[i]}));return{...r,media:n}}function nW(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function iW(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function oW(e){return typeof e=="object"&&e!==null?vi(e).filter(r=>r!=="base"):[]}function aW(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function SN({styleProps:e,data:r,theme:t}){return rW(vi(e).reduce((n,i)=>{if(i==="hiddenFrom"||i==="visibleFrom"||i==="sx")return n;const o=r[i],a=Array.isArray(o.property)?o.property:[o.property],s=iW(e[i]);if(!nW(e[i]))return a.forEach(u=>{n.inlineStyles[u]=$m[o.type](s,t)}),n;n.hasResponsiveStyles=!0;const l=oW(e[i]);return a.forEach(u=>{s&&(n.styles[u]=$m[o.type](s,t)),l.forEach(c=>{const d=`(min-width: ${t.breakpoints[c]})`;n.media[d]={...n.media[d],[u]:$m[o.type](aW(e[i],c),t)}})}),n},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function _N(){return`__m__-${_.useId().replace(/:/g,"")}`}function EN(e,r){return Array.isArray(e)?[...e].reduce((t,n)=>({...t,...EN(n,r)}),{}):typeof e=="function"?e(r):e??{}}function ON(e){return e.startsWith("data-")?e:`data-${e}`}function sW(e){return Object.keys(e).reduce((r,t)=>{const n=e[t];return n===void 0||n===""||n===!1||n===null||(r[ON(t)]=e[t]),r},{})}function PN(e){return e?typeof e=="string"?{[ON(e)]:!0}:Array.isArray(e)?[...e].reduce((r,t)=>({...r,...PN(t)}),{}):sW(e):null}function N$(e,r){return Array.isArray(e)?[...e].reduce((t,n)=>({...t,...N$(n,r)}),{}):typeof e=="function"?e(r):e??{}}function lW({theme:e,style:r,vars:t,styleProps:n}){const i=N$(r,e),o=N$(t,e);return{...i,...o,...n}}const CN=_.forwardRef(({component:e,style:r,__vars:t,className:n,variant:i,mod:o,size:a,hiddenFrom:s,visibleFrom:l,lightHidden:u,darkHidden:c,renderRoot:d,__size:f,...h},v)=>{var O;const p=$i(),b=e||"div",{styleProps:y,rest:g}=yy(h),m=aH(),$=(O=m==null?void 0:m())==null?void 0:O(y.sx),w=_N(),S=SN({styleProps:y,theme:p,data:VH}),P={ref:v,style:lW({theme:p,style:r,vars:t,styleProps:S.inlineStyles}),className:bi(n,$,{[w]:S.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":c,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${l}`]:l}),"data-variant":i,"data-size":nN(a)?void 0:a||void 0,size:f,...PN(o),...g};return E.jsxs(E.Fragment,{children:[S.hasResponsiveStyles&&E.jsx(wN,{selector:`.${w}`,styles:S.styles,media:S.media}),typeof d=="function"?d(P):E.jsx(b,{...P})]})});CN.displayName="@mantine/core/Box";const pe=CN;function TN(e){return e}function Pe(e){const r=_.forwardRef(e);return r.extend=TN,r.withProps=t=>{const n=_.forwardRef((i,o)=>E.jsx(r,{...t,...i,ref:o}));return n.extend=r.extend,n.displayName=`WithProps(${r.displayName})`,n},r}function wn(e){const r=_.forwardRef(e);return r.withProps=t=>{const n=_.forwardRef((i,o)=>E.jsx(r,{...t,...i,ref:o}));return n.extend=r.extend,n.displayName=`WithProps(${r.displayName})`,n},r.extend=TN,r}const uW=_.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function SS(){return _.useContext(uW)}function cW(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function wm(e){return e!=null&&e.current?e.current.scrollHeight:"auto"}const cc=typeof window<"u"&&window.requestAnimationFrame;function dW({transitionDuration:e,transitionTimingFunction:r="ease",onTransitionEnd:t=()=>{},opened:n}){const i=_.useRef(null),o=0,a={display:"none",height:0,overflow:"hidden"},[s,l]=_.useState(n?{}:a),u=v=>{Yd.flushSync(()=>l(v))},c=v=>{u(p=>({...p,...v}))};function d(v){const p=e||cW(v);return{transition:`height ${p}ms ${r}, opacity ${p}ms ${r}`}}Ja(()=>{typeof cc=="function"&&cc(n?()=>{c({willChange:"height",display:"block",overflow:"hidden"}),cc(()=>{const v=wm(i);c({...d(v),height:v})})}:()=>{const v=wm(i);c({...d(v),willChange:"height",height:v}),cc(()=>c({height:o,overflow:"hidden"}))})},[n]);const f=v=>{if(!(v.target!==i.current||v.propertyName!=="height"))if(n){const p=wm(i);p===s.height?u({}):c({height:p}),t()}else s.height===o&&(u(a),t())};function h({style:v={},refKey:p="ref",...b}={}){const y=b[p];return{"aria-hidden":!n,...b,[p]:fN(i,y),onTransitionEnd:f,style:{boxSizing:"border-box",...v,...s}}}return h}const fW={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},xN=Pe((e,r)=>{const{children:t,in:n,transitionDuration:i,transitionTimingFunction:o,style:a,onTransitionEnd:s,animateOpacity:l,...u}=ue("Collapse",fW,e),c=$i(),d=hN(),h=(c.respectReducedMotion?d:!1)?0:i,v=dW({opened:n,transitionDuration:h,transitionTimingFunction:o,onTransitionEnd:s});return h===0?n?E.jsx(pe,{...u,children:t}):null:E.jsx(pe,{...v({style:{opacity:n||!l?1:0,transition:l?`opacity ${h}ms ${o}`:"none",...EN(a,c)},ref:r,...u}),children:t})});xN.displayName="@mantine/core/Collapse";const[hW,Sn]=Qd("ScrollArea.Root component was not found in tree");function ru(e,r){const t=ma(r);Zd(()=>{let n=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(t)});return i.observe(e),()=>{window.cancelAnimationFrame(n),i.unobserve(e)}}},[e,t])}const vW=_.forwardRef((e,r)=>{const{style:t,...n}=e,i=Sn(),[o,a]=_.useState(0),[s,l]=_.useState(0),u=!!(o&&s);return ru(i.scrollbarX,()=>{var d;const c=((d=i.scrollbarX)==null?void 0:d.offsetHeight)||0;i.onCornerHeightChange(c),l(c)}),ru(i.scrollbarY,()=>{var d;const c=((d=i.scrollbarY)==null?void 0:d.offsetWidth)||0;i.onCornerWidthChange(c),a(c)}),u?E.jsx("div",{...n,ref:r,style:{...t,width:o,height:s}}):null}),pW=_.forwardRef((e,r)=>{const t=Sn(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&n?E.jsx(vW,{...e,ref:r}):null}),yW={scrollHideDelay:1e3,type:"hover"},kN=_.forwardRef((e,r)=>{const t=ue("ScrollAreaRoot",yW,e),{type:n,scrollHideDelay:i,scrollbars:o,...a}=t,[s,l]=_.useState(null),[u,c]=_.useState(null),[d,f]=_.useState(null),[h,v]=_.useState(null),[p,b]=_.useState(null),[y,g]=_.useState(0),[m,$]=_.useState(0),[w,S]=_.useState(!1),[P,O]=_.useState(!1),C=$n(r,k=>l(k));return E.jsx(hW,{value:{type:n,scrollHideDelay:i,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:v,scrollbarXEnabled:w,onScrollbarXEnabledChange:S,scrollbarY:p,onScrollbarYChange:b,scrollbarYEnabled:P,onScrollbarYEnabledChange:O,onCornerWidthChange:g,onCornerHeightChange:$},children:E.jsx(pe,{...a,ref:C,__vars:{"--sa-corner-width":o!=="xy"?"0px":`${y}px`,"--sa-corner-height":o!=="xy"?"0px":`${m}px`}})})});kN.displayName="@mantine/core/ScrollAreaRoot";function IN(e,r){const t=e/r;return Number.isNaN(t)?0:t}function gy(e){const r=IN(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-t)*r;return Math.max(n,18)}function RN(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const n=(r[1]-r[0])/(e[1]-e[0]);return r[0]+n*(t-e[0])}}function gW(e,[r,t]){return Math.min(t,Math.max(r,e))}function EP(e,r,t="ltr"){const n=gy(r),i=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,o=r.scrollbar.size-i,a=r.content-r.viewport,s=o-n,l=t==="ltr"?[0,a]:[a*-1,0],u=gW(e,l);return RN([0,a],[0,s])(u)}function mW(e,r,t,n="ltr"){const i=gy(t),o=i/2,a=r||o,s=i-a,l=t.scrollbar.paddingStart+a,u=t.scrollbar.size-t.scrollbar.paddingEnd-s,c=t.content-t.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return RN([l,u],d)(e)}function AN(e,r){return e>0&&e<r}function pp(e){return e?parseInt(e,10):0}function Da(e,r,{checkForDefaultPrevented:t=!0}={}){return n=>{e==null||e(n),(t===!1||!n.defaultPrevented)&&(r==null||r(n))}}const[bW,MN]=Qd("ScrollAreaScrollbar was not found in tree"),NN=_.forwardRef((e,r)=>{const{sizes:t,hasThumb:n,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:l,onWheelScroll:u,onResize:c,...d}=e,f=Sn(),[h,v]=_.useState(null),p=$n(r,O=>v(O)),b=_.useRef(null),y=_.useRef(""),{viewport:g}=f,m=t.content-t.viewport,$=ma(u),w=ma(s),S=vy(c,10),P=O=>{if(b.current){const C=O.clientX-b.current.left,k=O.clientY-b.current.top;l({x:C,y:k})}};return _.useEffect(()=>{const O=C=>{const k=C.target;(h==null?void 0:h.contains(k))&&$(C,m)};return document.addEventListener("wheel",O,{passive:!1}),()=>document.removeEventListener("wheel",O,{passive:!1})},[g,h,m,$]),_.useEffect(w,[t,w]),ru(h,S),ru(f.content,S),E.jsx(bW,{value:{scrollbar:h,hasThumb:n,onThumbChange:ma(i),onThumbPointerUp:ma(o),onThumbPositionChange:w,onThumbPointerDown:ma(a)},children:E.jsx("div",{...d,ref:p,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:Da(e.onPointerDown,O=>{O.preventDefault(),O.button===0&&(O.target.setPointerCapture(O.pointerId),b.current=h.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",P(O))}),onPointerMove:Da(e.onPointerMove,P),onPointerUp:Da(e.onPointerUp,O=>{O.preventDefault();const C=O.target;C.hasPointerCapture(O.pointerId)&&C.releasePointerCapture(O.pointerId),document.body.style.webkitUserSelect=y.current,b.current=null})})})}),DN=_.forwardRef((e,r)=>{const{sizes:t,onSizesChange:n,style:i,...o}=e,a=Sn(),[s,l]=_.useState(),u=_.useRef(null),c=$n(r,u,a.onScrollbarXChange);return _.useEffect(()=>{u.current&&l(getComputedStyle(u.current))},[u]),E.jsx(NN,{"data-orientation":"horizontal",...o,ref:c,sizes:t,style:{...i,"--sa-thumb-width":`${gy(t)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(a.viewport){const h=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),AN(h,f)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:pp(s.paddingLeft),paddingEnd:pp(s.paddingRight)}})}})});DN.displayName="@mantine/core/ScrollAreaScrollbarX";const FN=_.forwardRef((e,r)=>{const{sizes:t,onSizesChange:n,style:i,...o}=e,a=Sn(),[s,l]=_.useState(),u=_.useRef(null),c=$n(r,u,a.onScrollbarYChange);return _.useEffect(()=>{u.current&&l(window.getComputedStyle(u.current))},[]),E.jsx(NN,{...o,"data-orientation":"vertical",ref:c,sizes:t,style:{"--sa-thumb-height":`${gy(t)}px`,...i},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(a.viewport){const h=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),AN(h,f)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:pp(s.paddingTop),paddingEnd:pp(s.paddingBottom)}})}})});FN.displayName="@mantine/core/ScrollAreaScrollbarY";const my=_.forwardRef((e,r)=>{const{orientation:t="vertical",...n}=e,{dir:i}=SS(),o=Sn(),a=_.useRef(null),s=_.useRef(0),[l,u]=_.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=IN(l.viewport,l.content),d={...n,sizes:l,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:h=>{a.current=h},onThumbPointerUp:()=>{s.current=0},onThumbPointerDown:h=>{s.current=h}},f=(h,v)=>mW(h,s.current,l,v);return t==="horizontal"?E.jsx(DN,{...d,ref:r,onThumbPositionChange:()=>{if(o.viewport&&a.current){const h=o.viewport.scrollLeft,v=EP(h,l,i);a.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollLeft=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollLeft=f(h,i))}}):t==="vertical"?E.jsx(FN,{...d,ref:r,onThumbPositionChange:()=>{if(o.viewport&&a.current){const h=o.viewport.scrollTop,v=EP(h,l);l.scrollbar.size===0?a.current.style.opacity="0":a.current.style.opacity="1",a.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollTop=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollTop=f(h))}}):null});my.displayName="@mantine/core/ScrollAreaScrollbarVisible";const _S=_.forwardRef((e,r)=>{const t=Sn(),{forceMount:n,...i}=e,[o,a]=_.useState(!1),s=e.orientation==="horizontal",l=vy(()=>{if(t.viewport){const u=t.viewport.offsetWidth<t.viewport.scrollWidth,c=t.viewport.offsetHeight<t.viewport.scrollHeight;a(s?u:c)}},10);return ru(t.viewport,l),ru(t.content,l),n||o?E.jsx(my,{"data-state":o?"visible":"hidden",...i,ref:r}):null});_S.displayName="@mantine/core/ScrollAreaScrollbarAuto";const LN=_.forwardRef((e,r)=>{const{forceMount:t,...n}=e,i=Sn(),[o,a]=_.useState(!1);return _.useEffect(()=>{const{scrollArea:s}=i;let l=0;if(s){const u=()=>{window.clearTimeout(l),a(!0)},c=()=>{l=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",c),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",c)}}},[i.scrollArea,i.scrollHideDelay]),t||o?E.jsx(_S,{"data-state":o?"visible":"hidden",...n,ref:r}):null});LN.displayName="@mantine/core/ScrollAreaScrollbarHover";const $W=_.forwardRef((e,r)=>{const{forceMount:t,...n}=e,i=Sn(),o=e.orientation==="horizontal",[a,s]=_.useState("hidden"),l=vy(()=>s("idle"),100);return _.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("hidden"),i.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,i.scrollHideDelay]),_.useEffect(()=>{const{viewport:u}=i,c=o?"scrollLeft":"scrollTop";if(u){let d=u[c];const f=()=>{const h=u[c];d!==h&&(s("scrolling"),l()),d=h};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[i.viewport,o,l]),t||a!=="hidden"?E.jsx(my,{"data-state":a==="hidden"?"hidden":"visible",...n,ref:r,onPointerEnter:Da(e.onPointerEnter,()=>s("interacting")),onPointerLeave:Da(e.onPointerLeave,()=>s("idle"))}):null}),D$=_.forwardRef((e,r)=>{const{forceMount:t,...n}=e,i=Sn(),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s=e.orientation==="horizontal";return _.useEffect(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),i.type==="hover"?E.jsx(LN,{...n,ref:r,forceMount:t}):i.type==="scroll"?E.jsx($W,{...n,ref:r,forceMount:t}):i.type==="auto"?E.jsx(_S,{...n,ref:r,forceMount:t}):i.type==="always"?E.jsx(my,{...n,ref:r}):null});D$.displayName="@mantine/core/ScrollAreaScrollbar";function wW(e,r=()=>{}){let t={left:e.scrollLeft,top:e.scrollTop},n=0;return function i(){const o={left:e.scrollLeft,top:e.scrollTop},a=t.left!==o.left,s=t.top!==o.top;(a||s)&&r(),t=o,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)}const jN=_.forwardRef((e,r)=>{const{style:t,...n}=e,i=Sn(),o=MN(),{onThumbPositionChange:a}=o,s=$n(r,c=>o.onThumbChange(c)),l=_.useRef(),u=vy(()=>{l.current&&(l.current(),l.current=void 0)},100);return _.useEffect(()=>{const{viewport:c}=i;if(c){const d=()=>{if(u(),!l.current){const f=wW(c,a);l.current=f,a()}};return a(),c.addEventListener("scroll",d),()=>c.removeEventListener("scroll",d)}},[i.viewport,u,a]),E.jsx("div",{"data-state":o.hasThumb?"visible":"hidden",...n,ref:s,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...t},onPointerDownCapture:Da(e.onPointerDownCapture,c=>{const f=c.target.getBoundingClientRect(),h=c.clientX-f.left,v=c.clientY-f.top;o.onThumbPointerDown({x:h,y:v})}),onPointerUp:Da(e.onPointerUp,o.onThumbPointerUp)})});jN.displayName="@mantine/core/ScrollAreaThumb";const F$=_.forwardRef((e,r)=>{const{forceMount:t,...n}=e,i=MN();return t||i.hasThumb?E.jsx(jN,{ref:r,...n}):null});F$.displayName="@mantine/core/ScrollAreaThumb";const BN=_.forwardRef(({children:e,style:r,...t},n)=>{const i=Sn(),o=$n(n,i.onViewportChange);return E.jsx(pe,{...t,ref:o,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...r},children:E.jsx("div",{style:{minWidth:"100%",display:"table"},ref:i.onContentChange,children:e})})});BN.displayName="@mantine/core/ScrollAreaViewport";var ES={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const zN={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},SW=(e,{scrollbarSize:r})=>({root:{"--scrollarea-scrollbar-size":M(r)}}),tf=Pe((e,r)=>{const t=ue("ScrollArea",zN,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,scrollbarSize:l,vars:u,type:c,scrollHideDelay:d,viewportProps:f,viewportRef:h,onScrollPositionChange:v,children:p,offsetScrollbars:b,scrollbars:y,onBottomReached:g,onTopReached:m,...$}=t,[w,S]=_.useState(!1),P=Ue({name:"ScrollArea",props:t,classes:ES,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:u,varsResolver:SW});return E.jsxs(kN,{type:c==="never"?"always":c,scrollHideDelay:d,ref:r,scrollbars:y,...P("root"),...$,children:[E.jsx(BN,{...f,...P("viewport",{style:f==null?void 0:f.style}),ref:h,"data-offset-scrollbars":b===!0?"xy":b||void 0,"data-scrollbars":y||void 0,onScroll:O=>{var D;(D=f==null?void 0:f.onScroll)==null||D.call(f,O),v==null||v({x:O.currentTarget.scrollLeft,y:O.currentTarget.scrollTop});const{scrollTop:C,scrollHeight:k,clientHeight:R}=O.currentTarget;C-(k-R)>=0&&(g==null||g()),C===0&&(m==null||m())},children:p}),(y==="xy"||y==="x")&&E.jsx(D$,{...P("scrollbar"),orientation:"horizontal","data-hidden":c==="never"||void 0,forceMount:!0,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:E.jsx(F$,{...P("thumb")})}),(y==="xy"||y==="y")&&E.jsx(D$,{...P("scrollbar"),orientation:"vertical","data-hidden":c==="never"||void 0,forceMount:!0,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:E.jsx(F$,{...P("thumb")})}),E.jsx(pW,{...P("corner"),"data-hovered":w||void 0,"data-hidden":c==="never"||void 0})]})});tf.displayName="@mantine/core/ScrollArea";const OS=Pe((e,r)=>{const{children:t,classNames:n,styles:i,scrollbarSize:o,scrollHideDelay:a,type:s,dir:l,offsetScrollbars:u,viewportRef:c,onScrollPositionChange:d,unstyled:f,variant:h,viewportProps:v,scrollbars:p,style:b,vars:y,onBottomReached:g,onTopReached:m,...$}=ue("ScrollAreaAutosize",zN,e);return E.jsx(pe,{...$,ref:r,style:[{display:"flex",overflow:"auto"},b],children:E.jsx(pe,{style:{display:"flex",flexDirection:"column",flex:1},children:E.jsx(tf,{classNames:n,styles:i,scrollHideDelay:a,scrollbarSize:o,type:s,dir:l,offsetScrollbars:u,viewportRef:c,onScrollPositionChange:d,unstyled:f,variant:h,viewportProps:v,vars:y,scrollbars:p,onBottomReached:g,onTopReached:m,children:t})})})});tf.classes=ES;OS.displayName="@mantine/core/ScrollAreaAutosize";OS.classes=ES;tf.Autosize=OS;var HN={root:"m_87cf2631"};const _W={__staticSelector:"UnstyledButton"},rf=wn((e,r)=>{const t=ue("UnstyledButton",_W,e),{className:n,component:i="button",__staticSelector:o,unstyled:a,classNames:s,styles:l,style:u,...c}=t,d=Ue({name:o,props:t,classes:HN,className:n,style:u,classNames:s,styles:l,unstyled:a});return E.jsx(pe,{...d("root",{focusable:!0}),component:i,ref:r,type:i==="button"?"button":void 0,...c})});rf.classes=HN;rf.displayName="@mantine/core/UnstyledButton";var WN={root:"m_515a97f8"};const EW={},PS=Pe((e,r)=>{const t=ue("VisuallyHidden",EW,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,...u}=t,c=Ue({name:"VisuallyHidden",classes:WN,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s});return E.jsx(pe,{component:"span",ref:r,...c("root"),...u})});PS.classes=WN;PS.displayName="@mantine/core/VisuallyHidden";var UN={root:"m_1b7284a3"};const OW={},PW=(e,{radius:r,shadow:t})=>({root:{"--paper-radius":r===void 0?void 0:Eu(r),"--paper-shadow":aN(t)}}),CS=wn((e,r)=>{const t=ue("Paper",OW,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,withBorder:l,vars:u,radius:c,shadow:d,variant:f,mod:h,...v}=t,p=Ue({name:"Paper",props:t,classes:UN,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:u,varsResolver:PW});return E.jsx(pe,{ref:r,mod:[{"data-with-border":l},h],...p("root"),variant:f,...v})});CS.classes=UN;CS.displayName="@mantine/core/Paper";function by(){return typeof window<"u"}function Ou(e){return VN(e)?(e.nodeName||"").toLowerCase():"#document"}function Gr(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function wi(e){var r;return(r=(VN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function VN(e){return by()?e instanceof Node||e instanceof Gr(e).Node:!1}function cr(e){return by()?e instanceof Element||e instanceof Gr(e).Element:!1}function mi(e){return by()?e instanceof HTMLElement||e instanceof Gr(e).HTMLElement:!1}function OP(e){return!by()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gr(e).ShadowRoot}function nf(e){const{overflow:r,overflowX:t,overflowY:n,display:i}=Gn(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+t)&&!["inline","contents"].includes(i)}function CW(e){return["table","td","th"].includes(Ou(e))}function $y(e){return[":popover-open",":modal"].some(r=>{try{return e.matches(r)}catch{return!1}})}function TS(e){const r=xS(),t=cr(e)?Gn(e):e;return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!r&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!r&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function TW(e){let r=Yo(e);for(;mi(r)&&!nu(r);){if(TS(r))return r;if($y(r))return null;r=Yo(r)}return null}function xS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nu(e){return["html","body","#document"].includes(Ou(e))}function Gn(e){return Gr(e).getComputedStyle(e)}function wy(e){return cr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yo(e){if(Ou(e)==="html")return e;const r=e.assignedSlot||e.parentNode||OP(e)&&e.host||wi(e);return OP(r)?r.host:r}function KN(e){const r=Yo(e);return nu(r)?e.ownerDocument?e.ownerDocument.body:e.body:mi(r)&&nf(r)?r:KN(r)}function gd(e,r,t){var n;r===void 0&&(r=[]),t===void 0&&(t=!0);const i=KN(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=Gr(i);if(o){const s=L$(a);return r.concat(a,a.visualViewport||[],nf(i)?i:[],s&&t?gd(s):[])}return r.concat(i,gd(i,[],t))}function L$(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const qn=Math.min,Zt=Math.max,yp=Math.round,wh=Math.floor,Xo=e=>({x:e,y:e}),xW={left:"right",right:"left",bottom:"top",top:"bottom"},kW={start:"end",end:"start"};function j$(e,r,t){return Zt(e,qn(r,t))}function Xi(e,r){return typeof e=="function"?e(r):e}function Yn(e){return e.split("-")[0]}function Pu(e){return e.split("-")[1]}function kS(e){return e==="x"?"y":"x"}function IS(e){return e==="y"?"height":"width"}function Qi(e){return["top","bottom"].includes(Yn(e))?"y":"x"}function RS(e){return kS(Qi(e))}function IW(e,r,t){t===void 0&&(t=!1);const n=Pu(e),i=RS(e),o=IS(i);let a=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[o]>r.floating[o]&&(a=gp(a)),[a,gp(a)]}function RW(e){const r=gp(e);return[B$(e),r,B$(r)]}function B$(e){return e.replace(/start|end/g,r=>kW[r])}function AW(e,r,t){const n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return t?r?i:n:r?n:i;case"left":case"right":return r?o:a;default:return[]}}function MW(e,r,t,n){const i=Pu(e);let o=AW(Yn(e),t==="start",n);return i&&(o=o.map(a=>a+"-"+i),r&&(o=o.concat(o.map(B$)))),o}function gp(e){return e.replace(/left|right|bottom|top/g,r=>xW[r])}function NW(e){return{top:0,right:0,bottom:0,left:0,...e}}function AS(e){return typeof e!="number"?NW(e):{top:e,right:e,bottom:e,left:e}}function iu(e){const{x:r,y:t,width:n,height:i}=e;return{width:n,height:i,top:t,left:r,right:r+n,bottom:t+i,x:r,y:t}}function PP(e,r,t){let{reference:n,floating:i}=e;const o=Qi(r),a=RS(r),s=IS(a),l=Yn(r),u=o==="y",c=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[s]/2-i[s]/2;let h;switch(l){case"top":h={x:c,y:n.y-i.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-i.width,y:d};break;default:h={x:n.x,y:n.y}}switch(Pu(r)){case"start":h[a]-=f*(t&&u?-1:1);break;case"end":h[a]+=f*(t&&u?-1:1);break}return h}const DW=async(e,r,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=t,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(r));let u=await a.getElementRects({reference:e,floating:r,strategy:i}),{x:c,y:d}=PP(u,n,l),f=n,h={},v=0;for(let p=0;p<s.length;p++){const{name:b,fn:y}=s[p],{x:g,y:m,data:$,reset:w}=await y({x:c,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:r}});c=g??c,d=m??d,h={...h,[b]:{...h[b],...$}},w&&v<=50&&(v++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:e,floating:r,strategy:i}):w.rects),{x:c,y:d}=PP(u,f,l)),p=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function MS(e,r){var t;r===void 0&&(r={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Xi(r,e),v=AS(h),b=s[f?d==="floating"?"reference":"floating":d],y=iu(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(b)))==null||t?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g=d==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,m=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),$=await(o.isElement==null?void 0:o.isElement(m))?await(o.getScale==null?void 0:o.getScale(m))||{x:1,y:1}:{x:1,y:1},w=iu(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:m,strategy:l}):g);return{top:(y.top-w.top+v.top)/$.y,bottom:(w.bottom-y.bottom+v.bottom)/$.y,left:(y.left-w.left+v.left)/$.x,right:(w.right-y.right+v.right)/$.x}}const FW=e=>({name:"arrow",options:e,async fn(r){const{x:t,y:n,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=r,{element:u,padding:c=0}=Xi(e,r)||{};if(u==null)return{};const d=AS(c),f={x:t,y:n},h=RS(i),v=IS(h),p=await a.getDimensions(u),b=h==="y",y=b?"top":"left",g=b?"bottom":"right",m=b?"clientHeight":"clientWidth",$=o.reference[v]+o.reference[h]-f[h]-o.floating[v],w=f[h]-o.reference[h],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let P=S?S[m]:0;(!P||!await(a.isElement==null?void 0:a.isElement(S)))&&(P=s.floating[m]||o.floating[v]);const O=$/2-w/2,C=P/2-p[v]/2-1,k=qn(d[y],C),R=qn(d[g],C),D=k,z=P-p[v]-R,X=P/2-p[v]/2+O,Z=j$(D,X,z),F=!l.arrow&&Pu(i)!=null&&X!==Z&&o.reference[v]/2-(X<D?k:R)-p[v]/2<0,ee=F?X<D?X-D:X-z:0;return{[h]:f[h]+ee,data:{[h]:Z,centerOffset:X-Z-ee,...F&&{alignmentOffset:ee}},reset:F}}}),LW=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var t,n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=r,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...b}=Xi(e,r);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const y=Yn(i),g=Qi(s),m=Yn(s)===s,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),w=f||(m||!p?[gp(s)]:RW(s)),S=v!=="none";!f&&S&&w.push(...MW(s,p,v,$));const P=[s,...w],O=await MS(r,b),C=[];let k=((n=o.flip)==null?void 0:n.overflows)||[];if(c&&C.push(O[y]),d){const X=IW(i,a,$);C.push(O[X[0]],O[X[1]])}if(k=[...k,{placement:i,overflows:C}],!C.every(X=>X<=0)){var R,D;const X=(((R=o.flip)==null?void 0:R.index)||0)+1,Z=P[X];if(Z)return{data:{index:X,overflows:k},reset:{placement:Z}};let F=(D=k.filter(ee=>ee.overflows[0]<=0).sort((ee,x)=>ee.overflows[1]-x.overflows[1])[0])==null?void 0:D.placement;if(!F)switch(h){case"bestFit":{var z;const ee=(z=k.filter(x=>{if(S){const L=Qi(x.placement);return L===g||L==="y"}return!0}).map(x=>[x.placement,x.overflows.filter(L=>L>0).reduce((L,j)=>L+j,0)]).sort((x,L)=>x[1]-L[1])[0])==null?void 0:z[0];ee&&(F=ee);break}case"initialPlacement":F=s;break}if(i!==F)return{reset:{placement:F}}}return{}}}};function GN(e){const r=qn(...e.map(o=>o.left)),t=qn(...e.map(o=>o.top)),n=Zt(...e.map(o=>o.right)),i=Zt(...e.map(o=>o.bottom));return{x:r,y:t,width:n-r,height:i-t}}function jW(e){const r=e.slice().sort((i,o)=>i.y-o.y),t=[];let n=null;for(let i=0;i<r.length;i++){const o=r[i];!n||o.y-n.y>n.height/2?t.push([o]):t[t.length-1].push(o),n=o}return t.map(i=>iu(GN(i)))}const BW=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(r){const{placement:t,elements:n,rects:i,platform:o,strategy:a}=r,{padding:s=2,x:l,y:u}=Xi(e,r),c=Array.from(await(o.getClientRects==null?void 0:o.getClientRects(n.reference))||[]),d=jW(c),f=iu(GN(c)),h=AS(s);function v(){if(d.length===2&&d[0].left>d[1].right&&l!=null&&u!=null)return d.find(b=>l>b.left-h.left&&l<b.right+h.right&&u>b.top-h.top&&u<b.bottom+h.bottom)||f;if(d.length>=2){if(Qi(t)==="y"){const k=d[0],R=d[d.length-1],D=Yn(t)==="top",z=k.top,X=R.bottom,Z=D?k.left:R.left,F=D?k.right:R.right,ee=F-Z,x=X-z;return{top:z,bottom:X,left:Z,right:F,width:ee,height:x,x:Z,y:z}}const b=Yn(t)==="left",y=Zt(...d.map(k=>k.right)),g=qn(...d.map(k=>k.left)),m=d.filter(k=>b?k.left===g:k.right===y),$=m[0].top,w=m[m.length-1].bottom,S=g,P=y,O=P-S,C=w-$;return{top:$,bottom:w,left:S,right:P,width:O,height:C,x:S,y:$}}return f}const p=await o.getElementRects({reference:{getBoundingClientRect:v},floating:n.floating,strategy:a});return i.reference.x!==p.reference.x||i.reference.y!==p.reference.y||i.reference.width!==p.reference.width||i.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}};async function zW(e,r){const{placement:t,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=Yn(t),s=Pu(t),l=Qi(t)==="y",u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d=Xi(r,e);let{mainAxis:f,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const HW=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var t,n;const{x:i,y:o,placement:a,middlewareData:s}=r,l=await zW(r,e);return a===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},WW=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:t,y:n,placement:i}=r,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:g}=b;return{x:y,y:g}}},...l}=Xi(e,r),u={x:t,y:n},c=await MS(r,l),d=Qi(Yn(i)),f=kS(d);let h=u[f],v=u[d];if(o){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",g=h+c[b],m=h-c[y];h=j$(g,h,m)}if(a){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",g=v+c[b],m=v-c[y];v=j$(g,v,m)}const p=s.fn({...r,[f]:h,[d]:v});return{...p,data:{x:p.x-t,y:p.y-n,enabled:{[f]:o,[d]:a}}}}}},UW=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:t,y:n,placement:i,rects:o,middlewareData:a}=r,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Xi(e,r),c={x:t,y:n},d=Qi(i),f=kS(d);let h=c[f],v=c[d];const p=Xi(s,r),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const m=f==="y"?"height":"width",$=o.reference[f]-o.floating[m]+b.mainAxis,w=o.reference[f]+o.reference[m]-b.mainAxis;h<$?h=$:h>w&&(h=w)}if(u){var y,g;const m=f==="y"?"width":"height",$=["top","left"].includes(Yn(i)),w=o.reference[d]-o.floating[m]+($&&((y=a.offset)==null?void 0:y[d])||0)+($?0:b.crossAxis),S=o.reference[d]+o.reference[m]+($?0:((g=a.offset)==null?void 0:g[d])||0)-($?b.crossAxis:0);v<w?v=w:v>S&&(v=S)}return{[f]:h,[d]:v}}}},VW=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var t,n;const{placement:i,rects:o,platform:a,elements:s}=r,{apply:l=()=>{},...u}=Xi(e,r),c=await MS(r,u),d=Yn(i),f=Pu(i),h=Qi(i)==="y",{width:v,height:p}=o.floating;let b,y;d==="top"||d==="bottom"?(b=d,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,b=f==="end"?"top":"bottom");const g=p-c.top-c.bottom,m=v-c.left-c.right,$=qn(p-c[b],g),w=qn(v-c[y],m),S=!r.middlewareData.shift;let P=$,O=w;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(O=m),(n=r.middlewareData.shift)!=null&&n.enabled.y&&(P=g),S&&!f){const k=Zt(c.left,0),R=Zt(c.right,0),D=Zt(c.top,0),z=Zt(c.bottom,0);h?O=v-2*(k!==0||R!==0?k+R:Zt(c.left,c.right)):P=p-2*(D!==0||z!==0?D+z:Zt(c.top,c.bottom))}await l({...r,availableWidth:O,availableHeight:P});const C=await a.getDimensions(s.floating);return v!==C.width||p!==C.height?{reset:{rects:!0}}:{}}}};function qN(e){const r=Gn(e);let t=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const i=mi(e),o=i?e.offsetWidth:t,a=i?e.offsetHeight:n,s=yp(t)!==o||yp(n)!==a;return s&&(t=o,n=a),{width:t,height:n,$:s}}function NS(e){return cr(e)?e:e.contextElement}function Ol(e){const r=NS(e);if(!mi(r))return Xo(1);const t=r.getBoundingClientRect(),{width:n,height:i,$:o}=qN(r);let a=(o?yp(t.width):t.width)/n,s=(o?yp(t.height):t.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const KW=Xo(0);function YN(e){const r=Gr(e);return!xS()||!r.visualViewport?KW:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function GW(e,r,t){return r===void 0&&(r=!1),!t||r&&t!==Gr(e)?!1:r}function es(e,r,t,n){r===void 0&&(r=!1),t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=NS(e);let a=Xo(1);r&&(n?cr(n)&&(a=Ol(n)):a=Ol(e));const s=GW(o,t,n)?YN(o):Xo(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const f=Gr(o),h=n&&cr(n)?Gr(n):n;let v=f,p=L$(v);for(;p&&n&&h!==v;){const b=Ol(p),y=p.getBoundingClientRect(),g=Gn(p),m=y.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,$=y.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;l*=b.x,u*=b.y,c*=b.x,d*=b.y,l+=m,u+=$,v=Gr(p),p=L$(v)}}return iu({width:c,height:d,x:l,y:u})}function qW(e){let{elements:r,rect:t,offsetParent:n,strategy:i}=e;const o=i==="fixed",a=wi(n),s=r?$y(r.floating):!1;if(n===a||s&&o)return t;let l={scrollLeft:0,scrollTop:0},u=Xo(1);const c=Xo(0),d=mi(n);if((d||!d&&!o)&&((Ou(n)!=="body"||nf(a))&&(l=wy(n)),mi(n))){const f=es(n);u=Ol(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-l.scrollLeft*u.x+c.x,y:t.y*u.y-l.scrollTop*u.y+c.y}}function YW(e){return Array.from(e.getClientRects())}function z$(e,r){const t=wy(e).scrollLeft;return r?r.left+t:es(wi(e)).left+t}function XW(e){const r=wi(e),t=wy(e),n=e.ownerDocument.body,i=Zt(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),o=Zt(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+z$(e);const s=-t.scrollTop;return Gn(n).direction==="rtl"&&(a+=Zt(r.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}function QW(e,r){const t=Gr(e),n=wi(e),i=t.visualViewport;let o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=xS();(!u||u&&r==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function ZW(e,r){const t=es(e,!0,r==="fixed"),n=t.top+e.clientTop,i=t.left+e.clientLeft,o=mi(e)?Ol(e):Xo(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=n*o.y;return{width:a,height:s,x:l,y:u}}function CP(e,r,t){let n;if(r==="viewport")n=QW(e,t);else if(r==="document")n=XW(wi(e));else if(cr(r))n=ZW(r,t);else{const i=YN(e);n={...r,x:r.x-i.x,y:r.y-i.y}}return iu(n)}function XN(e,r){const t=Yo(e);return t===r||!cr(t)||nu(t)?!1:Gn(t).position==="fixed"||XN(t,r)}function JW(e,r){const t=r.get(e);if(t)return t;let n=gd(e,[],!1).filter(s=>cr(s)&&Ou(s)!=="body"),i=null;const o=Gn(e).position==="fixed";let a=o?Yo(e):e;for(;cr(a)&&!nu(a);){const s=Gn(a),l=TS(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||nf(a)&&!l&&XN(e,a))?n=n.filter(c=>c!==a):i=s,a=Yo(a)}return r.set(e,n),n}function e7(e){let{element:r,boundary:t,rootBoundary:n,strategy:i}=e;const a=[...t==="clippingAncestors"?$y(r)?[]:JW(r,this._c):[].concat(t),n],s=a[0],l=a.reduce((u,c)=>{const d=CP(r,c,i);return u.top=Zt(d.top,u.top),u.right=qn(d.right,u.right),u.bottom=qn(d.bottom,u.bottom),u.left=Zt(d.left,u.left),u},CP(r,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function t7(e){const{width:r,height:t}=qN(e);return{width:r,height:t}}function r7(e,r,t){const n=mi(r),i=wi(r),o=t==="fixed",a=es(e,!0,o,r);let s={scrollLeft:0,scrollTop:0};const l=Xo(0);if(n||!n&&!o)if((Ou(r)!=="body"||nf(i))&&(s=wy(r)),n){const h=es(r,!0,o,r);l.x=h.x+r.clientLeft,l.y=h.y+r.clientTop}else i&&(l.x=z$(i));let u=0,c=0;if(i&&!n&&!o){const h=i.getBoundingClientRect();c=h.top+s.scrollTop,u=h.left+s.scrollLeft-z$(i,h)}const d=a.left+s.scrollLeft-l.x-u,f=a.top+s.scrollTop-l.y-c;return{x:d,y:f,width:a.width,height:a.height}}function Sm(e){return Gn(e).position==="static"}function TP(e,r){if(!mi(e)||Gn(e).position==="fixed")return null;if(r)return r(e);let t=e.offsetParent;return wi(e)===t&&(t=t.ownerDocument.body),t}function QN(e,r){const t=Gr(e);if($y(e))return t;if(!mi(e)){let i=Yo(e);for(;i&&!nu(i);){if(cr(i)&&!Sm(i))return i;i=Yo(i)}return t}let n=TP(e,r);for(;n&&CW(n)&&Sm(n);)n=TP(n,r);return n&&nu(n)&&Sm(n)&&!TS(n)?t:n||TW(e)||t}const n7=async function(e){const r=this.getOffsetParent||QN,t=this.getDimensions,n=await t(e.floating);return{reference:r7(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function i7(e){return Gn(e).direction==="rtl"}const o7={convertOffsetParentRelativeRectToViewportRelativeRect:qW,getDocumentElement:wi,getClippingRect:e7,getOffsetParent:QN,getElementRects:n7,getClientRects:YW,getDimensions:t7,getScale:Ol,isElement:cr,isRTL:i7};function a7(e,r){let t=null,n;const i=wi(e);function o(){var s;clearTimeout(n),(s=t)==null||s.disconnect(),t=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||r(),!d||!f)return;const h=wh(c),v=wh(i.clientWidth-(u+d)),p=wh(i.clientHeight-(c+f)),b=wh(u),g={rootMargin:-h+"px "+-v+"px "+-p+"px "+-b+"px",threshold:Zt(0,qn(1,l))||1};let m=!0;function $(w){const S=w[0].intersectionRatio;if(S!==l){if(!m)return a();S?a(!1,S):n=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{t=new IntersectionObserver($,{...g,root:i.ownerDocument})}catch{t=new IntersectionObserver($,g)}t.observe(e)}return a(!0),o}function s7(e,r,t,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=NS(e),c=i||o?[...u?gd(u):[],...gd(r)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",t,{passive:!0}),o&&y.addEventListener("resize",t)});const d=u&&s?a7(u,t):null;let f=-1,h=null;a&&(h=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&h&&(h.unobserve(r),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var m;(m=h)==null||m.observe(r)})),t()}),u&&!l&&h.observe(u),h.observe(r));let v,p=l?es(e):null;l&&b();function b(){const y=es(e);p&&(y.x!==p.x||y.y!==p.y||y.width!==p.width||y.height!==p.height)&&t(),p=y,v=requestAnimationFrame(b)}return t(),()=>{var y;c.forEach(g=>{i&&g.removeEventListener("scroll",t),o&&g.removeEventListener("resize",t)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const l7=HW,u7=WW,c7=LW,d7=VW,xP=FW,f7=BW,h7=UW,v7=(e,r,t)=>{const n=new Map,i={platform:o7,...t},o={...i.platform,_c:n};return DW(e,r,{...i,platform:o})};var _v=typeof document<"u"?_.useLayoutEffect:_.useEffect;function mp(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let t,n,i;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==r.length)return!1;for(n=t;n--!==0;)if(!mp(e[n],r[n]))return!1;return!0}if(i=Object.keys(e),t=i.length,t!==Object.keys(r).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(r,i[n]))return!1;for(n=t;n--!==0;){const o=i[n];if(!(o==="_owner"&&e.$$typeof)&&!mp(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}function ZN(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kP(e,r){const t=ZN(e);return Math.round(r*t)/t}function _m(e){const r=_.useRef(e);return _v(()=>{r.current=e}),r}function p7(e){e===void 0&&(e={});const{placement:r="bottom",strategy:t="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=_.useState({x:0,y:0,strategy:t,placement:r,middlewareData:{},isPositioned:!1}),[f,h]=_.useState(n);mp(f,n)||h(n);const[v,p]=_.useState(null),[b,y]=_.useState(null),g=_.useCallback(x=>{x!==S.current&&(S.current=x,p(x))},[]),m=_.useCallback(x=>{x!==P.current&&(P.current=x,y(x))},[]),$=o||v,w=a||b,S=_.useRef(null),P=_.useRef(null),O=_.useRef(c),C=l!=null,k=_m(l),R=_m(i),D=_m(u),z=_.useCallback(()=>{if(!S.current||!P.current)return;const x={placement:r,strategy:t,middleware:f};R.current&&(x.platform=R.current),v7(S.current,P.current,x).then(L=>{const j={...L,isPositioned:D.current!==!1};X.current&&!mp(O.current,j)&&(O.current=j,Yd.flushSync(()=>{d(j)}))})},[f,r,t,R,D]);_v(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(x=>({...x,isPositioned:!1})))},[u]);const X=_.useRef(!1);_v(()=>(X.current=!0,()=>{X.current=!1}),[]),_v(()=>{if($&&(S.current=$),w&&(P.current=w),$&&w){if(k.current)return k.current($,w,z);z()}},[$,w,z,k,C]);const Z=_.useMemo(()=>({reference:S,floating:P,setReference:g,setFloating:m}),[g,m]),F=_.useMemo(()=>({reference:$,floating:w}),[$,w]),ee=_.useMemo(()=>{const x={position:t,left:0,top:0};if(!F.floating)return x;const L=kP(F.floating,c.x),j=kP(F.floating,c.y);return s?{...x,transform:"translate("+L+"px, "+j+"px)",...ZN(F.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:L,top:j}},[t,s,F.floating,c.x,c.y]);return _.useMemo(()=>({...c,update:z,refs:Z,elements:F,floatingStyles:ee}),[c,z,Z,F,ee])}const y7=e=>{function r(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:n,padding:i}=typeof e=="function"?e(t):e;return n&&r(n)?n.current!=null?xP({element:n.current,padding:i}).fn(t):{}:n?xP({element:n,padding:i}).fn(t):{}}}},g7=(e,r)=>({...l7(e),options:[e,r]}),m7=(e,r)=>({...u7(e),options:[e,r]}),IP=(e,r)=>({...h7(e),options:[e,r]}),RP=(e,r)=>({...c7(e),options:[e,r]}),b7=(e,r)=>({...d7(e),options:[e,r]}),AP=(e,r)=>({...f7(e),options:[e,r]}),$7=(e,r)=>({...y7(e),options:[e,r]}),JN={...l4},w7=JN.useInsertionEffect,S7=w7||(e=>e());function _7(e){const r=_.useRef(()=>{});return S7(()=>{r.current=e}),_.useCallback(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r.current==null?void 0:r.current(...n)},[])}var H$=typeof document<"u"?_.useLayoutEffect:_.useEffect;let MP=!1,E7=0;const NP=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+E7++;function O7(){const[e,r]=_.useState(()=>MP?NP():void 0);return H$(()=>{e==null&&r(NP())},[]),_.useEffect(()=>{MP=!0},[]),e}const P7=JN.useId,C7=P7||O7;function T7(){const e=new Map;return{emit(r,t){var n;(n=e.get(r))==null||n.forEach(i=>i(t))},on(r,t){e.set(r,[...e.get(r)||[],t])},off(r,t){var n;e.set(r,((n=e.get(r))==null?void 0:n.filter(i=>i!==t))||[])}}}const x7=_.createContext(null),k7=_.createContext(null),I7=()=>{var e;return((e=_.useContext(x7))==null?void 0:e.id)||null},R7=()=>_.useContext(k7);function A7(e){const{open:r=!1,onOpenChange:t,elements:n}=e,i=C7(),o=_.useRef({}),[a]=_.useState(()=>T7()),s=I7()!=null,[l,u]=_.useState(n.reference),c=_7((h,v,p)=>{o.current.openEvent=h?v:void 0,a.emit("openchange",{open:h,event:v,reason:p,nested:s}),t==null||t(h,v,p)}),d=_.useMemo(()=>({setPositionReference:u}),[]),f=_.useMemo(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return _.useMemo(()=>({dataRef:o,open:r,onOpenChange:c,elements:f,events:a,floatingId:i,refs:d}),[r,c,f,a,i,d])}function M7(e){e===void 0&&(e={});const{nodeId:r}=e,t=A7({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||t,i=n.elements,[o,a]=_.useState(null),[s,l]=_.useState(null),c=(i==null?void 0:i.reference)||o,d=_.useRef(null),f=R7();H$(()=>{c&&(d.current=c)},[c]);const h=p7({...e,elements:{...i,...s&&{reference:s}}}),v=_.useCallback(m=>{const $=cr(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;l($),h.refs.setReference($)},[h.refs]),p=_.useCallback(m=>{(cr(m)||m===null)&&(d.current=m,a(m)),(cr(h.refs.reference.current)||h.refs.reference.current===null||m!==null&&!cr(m))&&h.refs.setReference(m)},[h.refs]),b=_.useMemo(()=>({...h.refs,setReference:p,setPositionReference:v,domReference:d}),[h.refs,p,v]),y=_.useMemo(()=>({...h.elements,domReference:c}),[h.elements,c]),g=_.useMemo(()=>({...h,...n,refs:b,elements:y,nodeId:r}),[h,b,y,r,n]);return H$(()=>{n.dataRef.current.floatingContext=g;const m=f==null?void 0:f.nodesRef.current.find($=>$.id===r);m&&(m.context=g)}),_.useMemo(()=>({...h,context:g,refs:b,elements:y}),[h,b,y,g])}function N7(e,r){if(e==="rtl"&&(r.includes("right")||r.includes("left"))){const[t,n]=r.split("-"),i=t==="right"?"left":"right";return n===void 0?i:`${i}-${n}`}return r}function DP(e,r,t,n){return e==="center"||n==="center"?{top:r}:e==="end"?{bottom:t}:e==="start"?{top:t}:{}}function FP(e,r,t,n,i){return e==="center"||n==="center"?{left:r}:e==="end"?{[i==="ltr"?"right":"left"]:t}:e==="start"?{[i==="ltr"?"left":"right"]:t}:{}}const D7={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function F7({position:e,arrowSize:r,arrowOffset:t,arrowRadius:n,arrowPosition:i,arrowX:o,arrowY:a,dir:s}){const[l,u="center"]=e.split("-"),c={width:r,height:r,transform:"rotate(45deg)",position:"absolute",[D7[l]]:n},d=-r/2;return l==="left"?{...c,...DP(u,a,t,i),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent"}:l==="right"?{...c,...DP(u,a,t,i),left:d,borderRightColor:"transparent",borderTopColor:"transparent"}:l==="top"?{...c,...FP(u,o,t,i,s),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent"}:l==="bottom"?{...c,...FP(u,o,t,i,s),top:d,borderBottomColor:"transparent",borderRightColor:"transparent"}:{}}const eD=_.forwardRef(({position:e,arrowSize:r,arrowOffset:t,arrowRadius:n,arrowPosition:i,visible:o,arrowX:a,arrowY:s,style:l,...u},c)=>{const{dir:d}=SS();return o?E.jsx("div",{...u,ref:c,style:{...l,...F7({position:e,arrowSize:r,arrowOffset:t,arrowRadius:n,arrowPosition:i,dir:d,arrowX:a,arrowY:s})}}):null});eD.displayName="@mantine/core/FloatingArrow";const[L7,tD]=Qd("Popover component was not found in the tree");function DS({children:e,active:r=!0,refProp:t="ref",innerRef:n}){const i=q9(r),o=$n(i,n);return Xd(e)?_.cloneElement(e,{[t]:o}):e}function rD(e){return E.jsx(PS,{tabIndex:-1,"data-autofocus":!0,...e})}DS.displayName="@mantine/core/FocusTrap";rD.displayName="@mantine/core/FocusTrapInitialFocus";DS.InitialFocus=rD;function j7(e){const r=document.createElement("div");return r.setAttribute("data-portal","true"),typeof e.className=="string"&&r.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(r.style,e.style),typeof e.id=="string"&&r.setAttribute("id",e.id),r}const B7={},nD=_.forwardRef((e,r)=>{const{children:t,target:n,...i}=ue("Portal",B7,e),[o,a]=_.useState(!1),s=_.useRef(null);return Zd(()=>(a(!0),s.current=n?typeof n=="string"?document.querySelector(n):n:j7(i),dN(r,s.current),!n&&s.current&&document.body.appendChild(s.current),()=>{!n&&s.current&&document.body.removeChild(s.current)}),[n]),!o||!s.current?null:Yd.createPortal(E.jsx(E.Fragment,{children:t}),s.current)});nD.displayName="@mantine/core/Portal";function FS({withinPortal:e=!0,children:r,...t}){return e?E.jsx(nD,{...t,children:r}):E.jsx(E.Fragment,{children:r})}FS.displayName="@mantine/core/OptionalPortal";const dc=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${M(e==="bottom"?10:-10)})`},transitionProperty:"transform, opacity"}),Sh={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${M(30)}`},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${M(-30)}`},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${M(30)}`},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${M(-30)}`},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${M(-20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${M(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${M(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${M(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...dc("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...dc("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...dc("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...dc("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...dc("top"),common:{transformOrigin:"top right"}}},LP={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function z7({transition:e,state:r,duration:t,timingFunction:n}){const i={transitionDuration:`${t}ms`,transitionTimingFunction:n};return typeof e=="string"?e in Sh?{transitionProperty:Sh[e].transitionProperty,...i,...Sh[e].common,...Sh[e][LP[r]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[LP[r]]}}function H7({duration:e,exitDuration:r,timingFunction:t,mounted:n,onEnter:i,onExit:o,onEntered:a,onExited:s,enterDelay:l,exitDelay:u}){const c=$i(),d=hN(),f=c.respectReducedMotion?d:!1,[h,v]=_.useState(f?0:e),[p,b]=_.useState(n?"entered":"exited"),y=_.useRef(-1),g=_.useRef(-1),m=_.useRef(-1),$=S=>{const P=S?i:o,O=S?a:s;window.clearTimeout(y.current);const C=f?0:S?e:r;v(C),C===0?(typeof P=="function"&&P(),typeof O=="function"&&O(),b(S?"entered":"exited")):m.current=requestAnimationFrame(()=>{b8.flushSync(()=>{b(S?"pre-entering":"pre-exiting")}),m.current=requestAnimationFrame(()=>{typeof P=="function"&&P(),b(S?"entering":"exiting"),y.current=window.setTimeout(()=>{typeof O=="function"&&O(),b(S?"entered":"exited")},C)})})},w=S=>{if(window.clearTimeout(g.current),typeof(S?l:u)!="number"){$(S);return}g.current=window.setTimeout(()=>{$(S)},S?l:u)};return Ja(()=>{w(n)},[n]),_.useEffect(()=>()=>{window.clearTimeout(y.current),cancelAnimationFrame(m.current)},[]),{transitionDuration:h,transitionStatus:p,transitionTimingFunction:t||"ease"}}function Sy({keepMounted:e,transition:r="fade",duration:t=250,exitDuration:n=t,mounted:i,children:o,timingFunction:a="ease",onExit:s,onEntered:l,onEnter:u,onExited:c,enterDelay:d,exitDelay:f}){const{transitionDuration:h,transitionStatus:v,transitionTimingFunction:p}=H7({mounted:i,exitDuration:n,duration:t,timingFunction:a,onExit:s,onEntered:l,onEnter:u,onExited:c,enterDelay:d,exitDelay:f});return h===0?i?E.jsx(E.Fragment,{children:o({})}):e?o({display:"none"}):null:v==="exited"?e?o({display:"none"}):null:E.jsx(E.Fragment,{children:o(z7({transition:r,duration:h,state:v,timingFunction:p}))})}Sy.displayName="@mantine/core/Transition";var iD={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const W7={},LS=Pe((e,r)=>{var b,y,g,m;const t=ue("PopoverDropdown",W7,e),{className:n,style:i,vars:o,children:a,onKeyDownCapture:s,variant:l,classNames:u,styles:c,...d}=t,f=tD(),h=z9({opened:f.opened,shouldReturnFocus:f.returnFocus}),v=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},p=$n(r,f.floating);return f.disabled?null:E.jsx(FS,{...f.portalProps,withinPortal:f.withinPortal,children:E.jsx(Sy,{mounted:f.opened,...f.transitionProps,transition:((b=f.transitionProps)==null?void 0:b.transition)||"fade",duration:((y=f.transitionProps)==null?void 0:y.duration)??150,keepMounted:f.keepMounted,exitDuration:typeof((g=f.transitionProps)==null?void 0:g.exitDuration)=="number"?f.transitionProps.exitDuration:(m=f.transitionProps)==null?void 0:m.duration,children:$=>E.jsx(DS,{active:f.trapFocus&&f.opened,innerRef:p,children:E.jsxs(pe,{...v,...d,variant:l,onKeyDownCapture:N9(f.onClose,{active:f.closeOnEscape,onTrigger:h,onKeyDown:s}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:n,props:t,classNames:u,styles:c,style:[{...$,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:M(f.width)},i]}),children:[a,E.jsx(eD,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:t,classNames:u,styles:c})})]})})})})});LS.classes=iD;LS.displayName="@mantine/core/PopoverDropdown";const U7={refProp:"ref",popupType:"dialog"},oD=Pe((e,r)=>{const{children:t,refProp:n,popupType:i,...o}=ue("PopoverTarget",U7,e);if(!Xd(t))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=o,s=tD(),l=$n(s.reference,t.ref,r),u=s.withRoles?{"aria-haspopup":i,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return _.cloneElement(t,{...a,...u,...s.targetProps,className:bi(s.targetProps.className,a.className,t.props.className),[n]:l,...s.controlled?null:{onClick:s.onToggle}})});oD.displayName="@mantine/core/PopoverTarget";function V7({opened:e,floating:r,position:t,positionDependencies:n}){const[i,o]=_.useState(0);_.useEffect(()=>{if(r.refs.reference.current&&r.refs.floating.current&&e)return s7(r.refs.reference.current,r.refs.floating.current,r.update)},[r.refs.reference.current,r.refs.floating.current,e,i,t]),Ja(()=>{r.update()},n),Ja(()=>{o(a=>a+1)},[e])}function K7(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function G7(e,r){const t=K7(e.middlewares),n=[g7(e.offset)];return t.shift&&n.push(m7(typeof t.shift=="boolean"?{limiter:IP(),padding:5}:{limiter:IP(),padding:5,...t.shift})),t.flip&&n.push(typeof t.flip=="boolean"?RP():RP(t.flip)),t.inline&&n.push(typeof t.inline=="boolean"?AP():AP(t.inline)),n.push($7({element:e.arrowRef,padding:e.arrowOffset})),(t.size||e.width==="target")&&n.push(b7({...typeof t.size=="boolean"?{}:t.size,apply({rects:i,availableWidth:o,availableHeight:a,...s}){var c;const u=((c=r().refs.floating.current)==null?void 0:c.style)??{};t.size&&(typeof t.size=="object"&&t.size.apply?t.size.apply({rects:i,availableWidth:o,availableHeight:a,...s}):Object.assign(u,{maxWidth:`${o}px`,maxHeight:`${a}px`})),e.width==="target"&&Object.assign(u,{width:`${i.reference.width}px`})}})),n}function q7(e){const[r,t,n]=tu({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),i=()=>{var s;r&&((s=e.onClose)==null||s.call(e),t(!1))},o=()=>{var s,l;r?((s=e.onClose)==null||s.call(e),t(!1)):((l=e.onOpen)==null||l.call(e),t(!0))},a=M7({strategy:e.strategy,placement:e.position,middleware:G7(e,()=>a)});return V7({opened:r,position:e.position,positionDependencies:e.positionDependencies||[],floating:a}),Ja(()=>{var s;(s=e.onPositionChange)==null||s.call(e,a.placement)},[a.placement]),Ja(()=>{var s,l;n||(e.opened?(l=e.onOpen)==null||l.call(e):(s=e.onClose)==null||s.call(e))},[e.opened,n]),{floating:a,controlled:typeof e.opened=="boolean",opened:r,onClose:i,onToggle:o}}const Y7={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:iN("popover"),__staticSelector:"Popover",width:"max-content"},X7=(e,{radius:r,shadow:t})=>({dropdown:{"--popover-radius":r===void 0?void 0:Eu(r),"--popover-shadow":aN(t)}});function ia(e){var Se,tr,rr,rt,Ci,ks;const r=ue("Popover",Y7,e),{children:t,position:n,offset:i,onPositionChange:o,positionDependencies:a,opened:s,transitionProps:l,width:u,middlewares:c,withArrow:d,arrowSize:f,arrowOffset:h,arrowRadius:v,arrowPosition:p,unstyled:b,classNames:y,styles:g,closeOnClickOutside:m,withinPortal:$,portalProps:w,closeOnEscape:S,clickOutsideEvents:P,trapFocus:O,onClose:C,onOpen:k,onChange:R,zIndex:D,radius:z,shadow:X,id:Z,defaultOpened:F,__staticSelector:ee,withRoles:x,disabled:L,returnFocus:j,variant:Q,keepMounted:K,vars:ce,floatingStrategy:ge,...$e}=r,Te=Ue({name:ee,props:r,classes:iD,classNames:y,styles:g,unstyled:b,rootSelector:"dropdown",vars:ce,varsResolver:X7}),xe=_.useRef(null),[ke,H]=_.useState(null),[N,B]=_.useState(null),{dir:te}=SS(),ie=Jd(Z),J=q7({middlewares:c,width:u,position:N7(te,n),offset:typeof i=="number"?i+(d?f/2:0):i,arrowRef:xe,arrowOffset:h,onPositionChange:o,positionDependencies:a,opened:s,defaultOpened:F,onChange:R,onOpen:k,onClose:C,strategy:ge});F9(()=>m&&J.onClose(),P,[ke,N]);const _e=_.useCallback(rn=>{H(rn),J.floating.refs.setReference(rn)},[J.floating.refs.setReference]),Le=_.useCallback(rn=>{B(rn),J.floating.refs.setFloating(rn)},[J.floating.refs.setFloating]);return E.jsx(L7,{value:{returnFocus:j,disabled:L,controlled:J.controlled,reference:_e,floating:Le,x:J.floating.x,y:J.floating.y,arrowX:(rr=(tr=(Se=J.floating)==null?void 0:Se.middlewareData)==null?void 0:tr.arrow)==null?void 0:rr.x,arrowY:(ks=(Ci=(rt=J.floating)==null?void 0:rt.middlewareData)==null?void 0:Ci.arrow)==null?void 0:ks.y,opened:J.opened,arrowRef:xe,transitionProps:l,width:u,withArrow:d,arrowSize:f,arrowOffset:h,arrowRadius:v,arrowPosition:p,placement:J.floating.placement,trapFocus:O,withinPortal:$,portalProps:w,zIndex:D,radius:z,shadow:X,closeOnEscape:S,onClose:J.onClose,onToggle:J.onToggle,getTargetId:()=>`${ie}-target`,getDropdownId:()=>`${ie}-dropdown`,withRoles:x,targetProps:$e,__staticSelector:ee,classNames:y,styles:g,unstyled:b,variant:Q,keepMounted:K,getStyles:Te,floatingStrategy:ge},children:t})}ia.Target=oD;ia.Dropdown=LS;ia.displayName="@mantine/core/Popover";ia.extend=e=>e;var zn={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const aD=_.forwardRef(({className:e,...r},t)=>E.jsxs(pe,{component:"span",className:bi(zn.barsLoader,e),...r,ref:t,children:[E.jsx("span",{className:zn.bar}),E.jsx("span",{className:zn.bar}),E.jsx("span",{className:zn.bar})]}));aD.displayName="@mantine/core/Bars";const sD=_.forwardRef(({className:e,...r},t)=>E.jsxs(pe,{component:"span",className:bi(zn.dotsLoader,e),...r,ref:t,children:[E.jsx("span",{className:zn.dot}),E.jsx("span",{className:zn.dot}),E.jsx("span",{className:zn.dot})]}));sD.displayName="@mantine/core/Dots";const lD=_.forwardRef(({className:e,...r},t)=>E.jsx(pe,{component:"span",className:bi(zn.ovalLoader,e),...r,ref:t}));lD.displayName="@mantine/core/Oval";const uD={bars:aD,oval:lD,dots:sD},Q7={loaders:uD,type:"oval"},Z7=(e,{size:r,color:t})=>({root:{"--loader-size":Rt(r,"loader-size"),"--loader-color":t?yd(t,e):void 0}}),of=Pe((e,r)=>{const t=ue("Loader",Q7,e),{size:n,color:i,type:o,vars:a,className:s,style:l,classNames:u,styles:c,unstyled:d,loaders:f,variant:h,children:v,...p}=t,b=Ue({name:"Loader",props:t,classes:zn,className:s,style:l,classNames:u,styles:c,unstyled:d,vars:a,varsResolver:Z7});return v?E.jsx(pe,{...b("root"),ref:r,...p,children:v}):E.jsx(pe,{...b("root"),ref:r,component:f[o],variant:h,size:n,...p})});of.defaultLoaders=uD;of.classes=zn;of.displayName="@mantine/core/Loader";var _y={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21"};const jP={orientation:"horizontal"},J7=(e,{borderWidth:r})=>({group:{"--ai-border-width":M(r)}}),jS=Pe((e,r)=>{const t=ue("ActionIconGroup",jP,e),{className:n,style:i,classNames:o,styles:a,unstyled:s,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...h}=ue("ActionIconGroup",jP,e),v=Ue({name:"ActionIconGroup",props:t,classes:_y,className:n,style:i,classNames:o,styles:a,unstyled:s,vars:u,varsResolver:J7,rootSelector:"group"});return E.jsx(pe,{...v("group"),ref:r,variant:d,mod:[{"data-orientation":l},f],role:"group",...h})});jS.classes=_y;jS.displayName="@mantine/core/ActionIconGroup";const eU={},tU=(e,{size:r,radius:t,variant:n,gradient:i,color:o,autoContrast:a})=>{const s=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:i,variant:n||"filled",autoContrast:a});return{root:{"--ai-size":Rt(r,"ai-size"),"--ai-radius":t===void 0?void 0:Eu(t),"--ai-bg":o||n?s.background:void 0,"--ai-hover":o||n?s.hover:void 0,"--ai-hover-color":o||n?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":o||n?s.border:void 0}}},Ey=wn((e,r)=>{const t=ue("ActionIcon",eU,e),{className:n,unstyled:i,variant:o,classNames:a,styles:s,style:l,loading:u,loaderProps:c,size:d,color:f,radius:h,__staticSelector:v,gradient:p,vars:b,children:y,disabled:g,"data-disabled":m,autoContrast:$,mod:w,...S}=t,P=Ue({name:["ActionIcon",v],props:t,className:n,style:l,classes:_y,classNames:a,styles:s,unstyled:i,vars:b,varsResolver:tU});return E.jsxs(rf,{...P("root",{active:!g&&!u&&!m}),...S,unstyled:i,variant:o,size:d,disabled:g||u,ref:r,mod:[{loading:u,disabled:g||m},w],children:[E.jsx(Sy,{mounted:!!u,transition:"slide-down",duration:150,children:O=>E.jsx(pe,{component:"span",...P("loader",{style:O}),"aria-hidden":!0,children:E.jsx(of,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...c})})}),E.jsx(pe,{component:"span",mod:{loading:u},...P("icon"),children:y})]})});Ey.classes=_y;Ey.displayName="@mantine/core/ActionIcon";Ey.Group=jS;const cD=_.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:r,...t},n)=>E.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:e,height:e},ref:n,...t,children:E.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));cD.displayName="@mantine/core/CloseIcon";var dD={root:"m_86a44da5","root--subtle":"m_220c80f2"};const rU={variant:"subtle"},nU=(e,{size:r,radius:t,iconSize:n})=>({root:{"--cb-size":Rt(r,"cb-size"),"--cb-radius":t===void 0?void 0:Eu(t),"--cb-icon-size":M(n)}}),BS=wn((e,r)=>{const t=ue("CloseButton",rU,e),{iconSize:n,children:i,vars:o,radius:a,className:s,classNames:l,style:u,styles:c,unstyled:d,"data-disabled":f,disabled:h,variant:v,icon:p,mod:b,...y}=t,g=Ue({name:"CloseButton",props:t,className:s,style:u,classes:dD,classNames:l,styles:c,unstyled:d,vars:o,varsResolver:nU});return E.jsxs(rf,{ref:r,...y,unstyled:d,variant:v,disabled:h,mod:[{disabled:h||f},b],...g("root",{variant:v,active:!h&&!f}),children:[p||E.jsx(cD,{}),i]})});BS.classes=dD;BS.displayName="@mantine/core/CloseButton";const[iU,Oy]=R9({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var _n={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const BP={},oU=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${pn(r)} - ${M(2)})`}}),Py=Pe((e,r)=>{const t=ue("InputDescription",BP,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,__staticSelector:c,__inheritStyles:d=!0,variant:f,...h}=ue("InputDescription",BP,t),v=Oy(),p=Ue({name:["InputWrapper",c],props:t,classes:_n,className:i,style:o,classNames:n,styles:a,unstyled:s,rootSelector:"description",vars:l,varsResolver:oU}),b=d&&(v==null?void 0:v.getStyles)||p;return E.jsx(pe,{component:"p",ref:r,variant:f,size:u,...b("description",v!=null&&v.getStyles?{className:i,style:o}:void 0),...h})});Py.classes=_n;Py.displayName="@mantine/core/InputDescription";const aU={},sU=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${pn(r)} - ${M(2)})`}}),Cy=Pe((e,r)=>{const t=ue("InputError",aU,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,__staticSelector:c,__inheritStyles:d=!0,variant:f,...h}=t,v=Ue({name:["InputWrapper",c],props:t,classes:_n,className:i,style:o,classNames:n,styles:a,unstyled:s,rootSelector:"error",vars:l,varsResolver:sU}),p=Oy(),b=d&&(p==null?void 0:p.getStyles)||v;return E.jsx(pe,{component:"p",ref:r,variant:f,size:u,...b("error",p!=null&&p.getStyles?{className:i,style:o}:void 0),...h})});Cy.classes=_n;Cy.displayName="@mantine/core/InputError";const zP={labelElement:"label"},lU=(e,{size:r})=>({label:{"--input-label-size":pn(r),"--input-asterisk-color":void 0}}),Ty=Pe((e,r)=>{const t=ue("InputLabel",zP,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,labelElement:u,size:c,required:d,htmlFor:f,onMouseDown:h,children:v,__staticSelector:p,variant:b,mod:y,...g}=ue("InputLabel",zP,t),m=Ue({name:["InputWrapper",p],props:t,classes:_n,className:i,style:o,classNames:n,styles:a,unstyled:s,rootSelector:"label",vars:l,varsResolver:lU}),$=Oy(),w=($==null?void 0:$.getStyles)||m;return E.jsxs(pe,{...w("label",$!=null&&$.getStyles?{className:i,style:o}:void 0),component:u,variant:b,size:c,ref:r,htmlFor:u==="label"?f:void 0,mod:[{required:d},y],onMouseDown:S=>{h==null||h(S),!S.defaultPrevented&&S.detail>1&&S.preventDefault()},...g,children:[v,d&&E.jsx("span",{...w("required"),"aria-hidden":!0,children:" *"})]})});Ty.classes=_n;Ty.displayName="@mantine/core/InputLabel";const HP={},zS=Pe((e,r)=>{const t=ue("InputPlaceholder",HP,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,__staticSelector:u,variant:c,error:d,mod:f,...h}=ue("InputPlaceholder",HP,t),v=Ue({name:["InputPlaceholder",u],props:t,classes:_n,className:i,style:o,classNames:n,styles:a,unstyled:s,rootSelector:"placeholder"});return E.jsx(pe,{...v("placeholder"),mod:[{error:!!d},f],component:"span",variant:c,ref:r,...h})});zS.classes=_n;zS.displayName="@mantine/core/InputPlaceholder";function uU(e,{hasDescription:r,hasError:t}){const n=e.findIndex(l=>l==="input"),i=e.slice(0,n),o=e.slice(n+1),a=r&&i.includes("description")||t&&i.includes("error");return{offsetBottom:r&&o.includes("description")||t&&o.includes("error"),offsetTop:a}}const cU={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},dU=(e,{size:r})=>({label:{"--input-label-size":pn(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${pn(r)} - ${M(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${pn(r)} - ${M(2)})`}}),HS=Pe((e,r)=>{const t=ue("InputWrapper",cU,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,variant:c,__staticSelector:d,inputContainer:f,inputWrapperOrder:h,label:v,error:p,description:b,labelProps:y,descriptionProps:g,errorProps:m,labelElement:$,children:w,withAsterisk:S,id:P,required:O,__stylesApiProps:C,mod:k,...R}=t,D=Ue({name:["InputWrapper",d],props:C||t,classes:_n,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:dU}),z={size:u,variant:c,__staticSelector:d},X=Jd(P),Z=typeof S=="boolean"?S:O,F=(m==null?void 0:m.id)||`${X}-error`,ee=(g==null?void 0:g.id)||`${X}-description`,x=X,L=!!p&&typeof p!="boolean",j=!!b,Q=`${L?F:""} ${j?ee:""}`,K=Q.trim().length>0?Q.trim():void 0,ce=(y==null?void 0:y.id)||`${X}-label`,ge=v&&E.jsx(Ty,{labelElement:$,id:ce,htmlFor:x,required:Z,...z,...y,children:v},"label"),$e=j&&E.jsx(Py,{...g,...z,size:(g==null?void 0:g.size)||z.size,id:(g==null?void 0:g.id)||ee,children:b},"description"),Te=E.jsx(_.Fragment,{children:f(w)},"input"),xe=L&&_.createElement(Cy,{...m,...z,size:(m==null?void 0:m.size)||z.size,key:"error",id:(m==null?void 0:m.id)||F},p),ke=h.map(H=>{switch(H){case"label":return ge;case"input":return Te;case"description":return $e;case"error":return xe;default:return null}});return E.jsx(iU,{value:{getStyles:D,describedBy:K,inputId:x,labelId:ce,...uU(h,{hasDescription:j,hasError:L})},children:E.jsx(pe,{ref:r,variant:c,size:u,mod:[{error:!!p},k],...D("root"),...R,children:ke})})});HS.classes=_n;HS.displayName="@mantine/core/InputWrapper";const fU={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},hU=(e,r,t)=>({wrapper:{"--input-margin-top":t.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":t.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Rt(r.size,"input-height"),"--input-fz":pn(r.size),"--input-radius":r.radius===void 0?void 0:Eu(r.radius),"--input-left-section-width":r.leftSectionWidth!==void 0?M(r.leftSectionWidth):void 0,"--input-right-section-width":r.rightSectionWidth!==void 0?M(r.rightSectionWidth):void 0,"--input-padding-y":r.multiline?Rt(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),Ir=wn((e,r)=>{const t=ue("Input",fU,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,required:l,__staticSelector:u,__stylesApiProps:c,size:d,wrapperProps:f,error:h,disabled:v,leftSection:p,leftSectionProps:b,leftSectionWidth:y,rightSection:g,rightSectionProps:m,rightSectionWidth:$,rightSectionPointerEvents:w,leftSectionPointerEvents:S,variant:P,vars:O,pointer:C,multiline:k,radius:R,id:D,withAria:z,withErrorStyles:X,mod:Z,inputSize:F,...ee}=t,{styleProps:x,rest:L}=yy(ee),j=Oy(),Q={offsetBottom:j==null?void 0:j.offsetBottom,offsetTop:j==null?void 0:j.offsetTop},K=Ue({name:["Input",u],props:c||t,classes:_n,className:i,style:o,classNames:n,styles:a,unstyled:s,stylesCtx:Q,rootSelector:"wrapper",vars:O,varsResolver:hU}),ce=z?{required:l,disabled:v,"aria-invalid":!!h,"aria-describedby":j==null?void 0:j.describedBy,id:(j==null?void 0:j.inputId)||D}:{};return E.jsxs(pe,{...K("wrapper"),...x,...f,mod:[{error:!!h&&X,pointer:C,disabled:v,multiline:k,"data-with-right-section":!!g,"data-with-left-section":!!p},Z],variant:P,size:d,children:[p&&E.jsx("div",{...b,"data-position":"left",...K("section",{className:b==null?void 0:b.className,style:b==null?void 0:b.style}),children:p}),E.jsx(pe,{component:"input",...L,...ce,ref:r,required:l,mod:{disabled:v,error:!!h&&X},variant:P,__size:F,...K("input")}),g&&E.jsx("div",{...m,"data-position":"right",...K("section",{className:m==null?void 0:m.className,style:m==null?void 0:m.style}),children:g})]})});Ir.classes=_n;Ir.Wrapper=HS;Ir.Label=Ty;Ir.Error=Cy;Ir.Description=Py;Ir.Placeholder=zS;Ir.displayName="@mantine/core/Input";function vU(e,r,t){const n=ue(e,r,t),{label:i,description:o,error:a,required:s,classNames:l,styles:u,className:c,unstyled:d,__staticSelector:f,__stylesApiProps:h,errorProps:v,labelProps:p,descriptionProps:b,wrapperProps:y,id:g,size:m,style:$,inputContainer:w,inputWrapperOrder:S,withAsterisk:P,variant:O,vars:C,mod:k,...R}=n,{styleProps:D,rest:z}=yy(R),X={label:i,description:o,error:a,required:s,classNames:l,className:c,__staticSelector:f,__stylesApiProps:h||n,errorProps:v,labelProps:p,descriptionProps:b,unstyled:d,styles:u,size:m,style:$,inputContainer:w,inputWrapperOrder:S,withAsterisk:P,variant:O,id:g,mod:k,...y};return{...z,classNames:l,styles:u,unstyled:d,wrapperProps:{...X,...D},inputProps:{required:s,classNames:l,styles:u,unstyled:d,size:m,__staticSelector:f,__stylesApiProps:h||n,error:a,variant:O,id:g}}}const pU={__staticSelector:"InputBase",withAria:!0},Si=wn((e,r)=>{const{inputProps:t,wrapperProps:n,...i}=vU("InputBase",pU,e);return E.jsx(Ir.Wrapper,{...n,children:E.jsx(Ir,{...t,...i,ref:r})})});Si.classes={...Ir.classes,...Ir.Wrapper.classes};Si.displayName="@mantine/core/InputBase";const yU={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var fD={root:"m_8bffd616"};const gU={},Fa=wn((e,r)=>{const t=ue("Flex",gU,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,gap:u,rowGap:c,columnGap:d,align:f,justify:h,wrap:v,direction:p,...b}=t,y=Ue({name:"Flex",classes:fD,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l}),g=$i(),m=_N(),$=SN({styleProps:{gap:u,rowGap:c,columnGap:d,align:f,justify:h,wrap:v,direction:p},theme:g,data:yU});return E.jsxs(E.Fragment,{children:[$.hasResponsiveStyles&&E.jsx(wN,{selector:`.${m}`,styles:$.styles,media:$.media}),E.jsx(pe,{ref:r,...y("root",{className:m,style:hy($.inlineStyles)}),...b})]})});Fa.classes=fD;Fa.displayName="@mantine/core/Flex";var hD={root:"m_7f854edf"};const mU={position:{bottom:0,right:0},zIndex:iN("modal"),withinPortal:!0},bU=(e,{zIndex:r,position:t})=>({root:{"--affix-z-index":r==null?void 0:r.toString(),"--affix-top":M(t==null?void 0:t.top),"--affix-left":M(t==null?void 0:t.left),"--affix-bottom":M(t==null?void 0:t.bottom),"--affix-right":M(t==null?void 0:t.right)}}),bp=Pe((e,r)=>{const t=ue("Affix",mU,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,portalProps:u,zIndex:c,withinPortal:d,position:f,...h}=t,v=Ue({name:"Affix",classes:hD,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:bU});return E.jsx(FS,{...u,withinPortal:d,children:E.jsx(pe,{ref:r,...v("root"),...h})})});bp.classes=hD;bp.displayName="@mantine/core/Affix";var vD={root:"m_b6d8b162"};function $U(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const wU={inherit:!1},SU=(e,{variant:r,lineClamp:t,gradient:n,size:i,color:o})=>({root:{"--text-fz":pn(i),"--text-lh":D9(i),"--text-gradient":r==="gradient"?A$(n,e):void 0,"--text-line-clamp":typeof t=="number"?t.toString():void 0,"--text-color":o?yd(o,e):void 0}}),xy=wn((e,r)=>{const t=ue("Text",wU,e),{lineClamp:n,truncate:i,inline:o,inherit:a,gradient:s,span:l,__staticSelector:u,vars:c,className:d,style:f,classNames:h,styles:v,unstyled:p,variant:b,mod:y,size:g,...m}=t,$=Ue({name:["Text",u],props:t,classes:vD,className:d,style:f,classNames:h,styles:v,unstyled:p,vars:c,varsResolver:SU});return E.jsx(pe,{...$("root",{focusable:!0}),ref:r,component:l?"span":"p",variant:b,mod:[{"data-truncate":$U(i),"data-line-clamp":typeof n=="number","data-inline":o,"data-inherit":a},y],size:g,...m})});xy.classes=vD;xy.displayName="@mantine/core/Text";function pD(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(r=>pD(r))}:e}function _U(e){return e?e.map(r=>pD(r)):[]}function yD(e){return e.reduce((r,t)=>"group"in t?{...r,...yD(t.items)}:(r[t.value]=t,r),{})}var Rr={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const EU={error:null},OU=(e,{size:r})=>({chevron:{"--combobox-chevron-size":Rt(r,"combobox-chevron-size")}}),WS=Pe((e,r)=>{const t=ue("ComboboxChevron",EU,e),{size:n,error:i,style:o,className:a,classNames:s,styles:l,unstyled:u,vars:c,mod:d,...f}=t,h=Ue({name:"ComboboxChevron",classes:Rr,props:t,style:o,className:a,classNames:s,styles:l,unstyled:u,vars:c,varsResolver:OU,rootSelector:"chevron"});return E.jsx(pe,{component:"svg",...f,...h("chevron"),size:n,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:i},d],ref:r,children:E.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});WS.classes=Rr;WS.displayName="@mantine/core/ComboboxChevron";const[PU,En]=Qd("Combobox component was not found in tree"),gD=_.forwardRef(({size:e,onMouseDown:r,onClick:t,onClear:n,...i},o)=>E.jsx(BS,{ref:o,size:e||"sm",variant:"transparent",tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:a=>{a.preventDefault(),r==null||r(a)},onClick:a=>{n(),t==null||t(a)}}));gD.displayName="@mantine/core/ComboboxClearButton";const CU={},US=Pe((e,r)=>{const{classNames:t,styles:n,className:i,style:o,hidden:a,...s}=ue("ComboboxDropdown",CU,e),l=En();return E.jsx(ia.Dropdown,{...s,ref:r,role:"presentation","data-hidden":a||void 0,...l.getStyles("dropdown",{className:i,style:o,classNames:t,styles:n})})});US.classes=Rr;US.displayName="@mantine/core/ComboboxDropdown";const TU={refProp:"ref"},mD=Pe((e,r)=>{const{children:t,refProp:n}=ue("ComboboxDropdownTarget",TU,e);if(En(),!Xd(t))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return E.jsx(ia.Target,{ref:r,refProp:n,children:t})});mD.displayName="@mantine/core/ComboboxDropdownTarget";const xU={},VS=Pe((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,...s}=ue("ComboboxEmpty",xU,e),l=En();return E.jsx(pe,{ref:r,...l.getStyles("empty",{className:n,classNames:t,styles:o,style:i}),...s})});VS.classes=Rr;VS.displayName="@mantine/core/ComboboxEmpty";function KS({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:t,withExpandedAttribute:n,targetType:i,autoComplete:o}){const a=En(),[s,l]=_.useState(null),u=d=>{if(e==null||e(d),!a.readOnly&&r){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectNextOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectPreviousOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const f=a.store.getSelectedOptionIndex();a.store.dropdownOpened&&f!==-1?(d.preventDefault(),a.store.clickSelectedOption()):i==="button"&&(d.preventDefault(),a.store.openDropdown("keyboard"))}d.nativeEvent.code==="Escape"&&a.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&i==="button"&&(d.preventDefault(),a.store.toggleDropdown("keyboard"))}};return{...t?{"aria-haspopup":"listbox","aria-expanded":n&&!!(a.store.listId&&a.store.dropdownOpened)||void 0,"aria-controls":a.store.listId,"aria-activedescendant":a.store.dropdownOpened&&s||void 0,autoComplete:o,"data-expanded":a.store.dropdownOpened||void 0,"data-mantine-stop-propagation":a.store.dropdownOpened||void 0}:{},onKeyDown:u}}const kU={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},bD=Pe((e,r)=>{const{children:t,refProp:n,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:l,...u}=ue("ComboboxEventsTarget",kU,e);if(!Xd(t))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const c=En(),d=KS({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:t.props.onKeyDown,autoComplete:l});return _.cloneElement(t,{...d,...u,[n]:$n(r,c.store.targetRef,t==null?void 0:t.ref)})});bD.displayName="@mantine/core/ComboboxEventsTarget";const IU={},GS=Pe((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,...s}=ue("ComboboxFooter",IU,e),l=En();return E.jsx(pe,{ref:r,...l.getStyles("footer",{className:n,classNames:t,style:i,styles:o}),...s,onMouseDown:u=>{u.preventDefault()}})});GS.classes=Rr;GS.displayName="@mantine/core/ComboboxFooter";const RU={},qS=Pe((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,children:s,label:l,...u}=ue("ComboboxGroup",RU,e),c=En();return E.jsxs(pe,{ref:r,...c.getStyles("group",{className:n,classNames:t,style:i,styles:o}),...u,children:[l&&E.jsx("div",{...c.getStyles("groupLabel",{classNames:t,styles:o}),children:l}),s]})});qS.classes=Rr;qS.displayName="@mantine/core/ComboboxGroup";const AU={},YS=Pe((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,...s}=ue("ComboboxHeader",AU,e),l=En();return E.jsx(pe,{ref:r,...l.getStyles("header",{className:n,classNames:t,style:i,styles:o}),...s,onMouseDown:u=>{u.preventDefault()}})});YS.classes=Rr;YS.displayName="@mantine/core/ComboboxHeader";function $D({value:e,valuesDivider:r=",",...t}){return E.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...t})}$D.displayName="@mantine/core/ComboboxHiddenInput";const MU={},XS=Pe((e,r)=>{const t=ue("ComboboxOption",MU,e),{classNames:n,className:i,style:o,styles:a,vars:s,onClick:l,id:u,active:c,onMouseDown:d,onMouseOver:f,disabled:h,selected:v,mod:p,...b}=t,y=En(),g=_.useId(),m=u||g;return E.jsx(pe,{...y.getStyles("option",{className:i,classNames:n,styles:a,style:o}),...b,ref:r,id:m,mod:["combobox-option",{"combobox-active":c,"combobox-disabled":h,"combobox-selected":v},p],role:"option",onClick:$=>{var w;h?$.preventDefault():((w=y.onOptionSubmit)==null||w.call(y,t.value,t),l==null||l($))},onMouseDown:$=>{$.preventDefault(),d==null||d($)},onMouseOver:$=>{y.resetSelectionOnOptionHover&&y.store.resetSelectedOption(),f==null||f($)}})});XS.classes=Rr;XS.displayName="@mantine/core/ComboboxOption";const NU={},QS=Pe((e,r)=>{const t=ue("ComboboxOptions",NU,e),{classNames:n,className:i,style:o,styles:a,id:s,onMouseDown:l,labelledBy:u,...c}=t,d=En(),f=Jd(s);return _.useEffect(()=>{d.store.setListId(f)},[f]),E.jsx(pe,{ref:r,...d.getStyles("options",{className:i,style:o,classNames:n,styles:a}),...c,id:f,role:"listbox","aria-labelledby":u,onMouseDown:h=>{h.preventDefault(),l==null||l(h)}})});QS.classes=Rr;QS.displayName="@mantine/core/ComboboxOptions";const DU={withAriaAttributes:!0,withKeyboardNavigation:!0},ZS=Pe((e,r)=>{const t=ue("ComboboxSearch",DU,e),{classNames:n,styles:i,unstyled:o,vars:a,withAriaAttributes:s,onKeyDown:l,withKeyboardNavigation:u,size:c,...d}=t,f=En(),h=f.getStyles("search"),v=KS({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return E.jsx(Ir,{ref:$n(r,f.store.searchRef),classNames:[{input:h.className},n],styles:[{input:h.style},i],size:c||f.size,...v,...d,__staticSelector:"Combobox"})});ZS.classes=Rr;ZS.displayName="@mantine/core/ComboboxSearch";const FU={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},wD=Pe((e,r)=>{const{children:t,refProp:n,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:l,...u}=ue("ComboboxTarget",FU,e);if(!Xd(t))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const c=En(),d=KS({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:t.props.onKeyDown,autoComplete:l}),f=_.cloneElement(t,{...d,...u});return E.jsx(ia.Target,{ref:$n(r,c.store.targetRef),children:f})});wD.displayName="@mantine/core/ComboboxTarget";function LU(e,r,t){for(let n=e-1;n>=0;n-=1)if(!r[n].hasAttribute("data-combobox-disabled"))return n;if(t){for(let n=r.length-1;n>-1;n-=1)if(!r[n].hasAttribute("data-combobox-disabled"))return n}return e}function jU(e,r,t){for(let n=e+1;n<r.length;n+=1)if(!r[n].hasAttribute("data-combobox-disabled"))return n;if(t){for(let n=0;n<r.length;n+=1)if(!r[n].hasAttribute("data-combobox-disabled"))return n}return e}function BU(e){for(let r=0;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;return-1}function SD({defaultOpened:e,opened:r,onOpenedChange:t,onDropdownClose:n,onDropdownOpen:i,loop:o=!0,scrollBehavior:a="instant"}={}){const[s,l]=tu({value:r,defaultValue:e,finalValue:!1,onChange:t}),u=_.useRef(null),c=_.useRef(-1),d=_.useRef(null),f=_.useRef(null),h=_.useRef(-1),v=_.useRef(-1),p=_.useRef(-1),b=_.useCallback((F="unknown")=>{s||(l(!0),i==null||i(F))},[l,i,s]),y=_.useCallback((F="unknown")=>{s&&(l(!1),n==null||n(F))},[l,n,s]),g=_.useCallback((F="unknown")=>{s?y(F):b(F)},[y,b,s]),m=_.useCallback(()=>{const F=document.querySelector(`#${u.current} [data-combobox-selected]`);F==null||F.removeAttribute("data-combobox-selected"),F==null||F.removeAttribute("aria-selected")},[]),$=_.useCallback(F=>{const ee=document.getElementById(u.current),x=ee==null?void 0:ee.querySelectorAll("[data-combobox-option]");if(!x)return null;const L=F>=x.length?0:F<0?x.length-1:F;return c.current=L,x!=null&&x[L]&&!x[L].hasAttribute("data-combobox-disabled")?(m(),x[L].setAttribute("data-combobox-selected","true"),x[L].setAttribute("aria-selected","true"),x[L].scrollIntoView({block:"nearest",behavior:a}),x[L].id):null},[a,m]),w=_.useCallback(()=>{const F=document.querySelector(`#${u.current} [data-combobox-active]`);if(F){const ee=document.querySelectorAll(`#${u.current} [data-combobox-option]`),x=Array.from(ee).findIndex(L=>L===F);return $(x)}return $(0)},[$]),S=_.useCallback(()=>$(jU(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),o)),[$,o]),P=_.useCallback(()=>$(LU(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),o)),[$,o]),O=_.useCallback(()=>$(BU(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[$]),C=_.useCallback((F="selected",ee)=>{p.current=window.setTimeout(()=>{var j;const x=document.querySelectorAll(`#${u.current} [data-combobox-option]`),L=Array.from(x).findIndex(Q=>Q.hasAttribute(`data-combobox-${F}`));c.current=L,ee!=null&&ee.scrollIntoView&&((j=x[L])==null||j.scrollIntoView({block:"nearest",behavior:a}))},0)},[]),k=_.useCallback(()=>{c.current=-1,m()},[m]),R=_.useCallback(()=>{const F=document.querySelectorAll(`#${u.current} [data-combobox-option]`),ee=F==null?void 0:F[c.current];ee==null||ee.click()},[]),D=_.useCallback(F=>{u.current=F},[]),z=_.useCallback(()=>{h.current=window.setTimeout(()=>d.current.focus(),0)},[]),X=_.useCallback(()=>{v.current=window.setTimeout(()=>f.current.focus(),0)},[]),Z=_.useCallback(()=>c.current,[]);return _.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(v.current),window.clearTimeout(p.current)},[]),{dropdownOpened:s,openDropdown:b,closeDropdown:y,toggleDropdown:g,selectedOptionIndex:c.current,getSelectedOptionIndex:Z,selectOption:$,selectFirstOption:O,selectActiveOption:w,selectNextOption:S,selectPreviousOption:P,resetSelectedOption:k,updateSelectedOptionIndex:C,listId:u.current,setListId:D,clickSelectedOption:R,searchRef:d,focusSearchInput:z,targetRef:f,focusTarget:X}}const zU={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},HU=(e,{size:r,dropdownPadding:t})=>({options:{"--combobox-option-fz":pn(r),"--combobox-option-padding":Rt(r,"combobox-option-padding")},dropdown:{"--combobox-padding":t===void 0?void 0:M(t),"--combobox-option-fz":pn(r),"--combobox-option-padding":Rt(r,"combobox-option-padding")}});function He(e){const r=ue("Combobox",zU,e),{classNames:t,styles:n,unstyled:i,children:o,store:a,vars:s,onOptionSubmit:l,onClose:u,size:c,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:h,readOnly:v,...p}=r,b=SD(),y=a||b,g=Ue({name:h||"Combobox",classes:Rr,props:r,classNames:t,styles:n,unstyled:i,vars:s,varsResolver:HU}),m=()=>{u==null||u(),y.closeDropdown()};return E.jsx(PU,{value:{getStyles:g,store:y,onOptionSubmit:l,size:c,resetSelectionOnOptionHover:f,readOnly:v},children:E.jsx(ia,{opened:y.dropdownOpened,...p,onClose:m,withRoles:!1,unstyled:i,children:o})})}const WU=e=>e;He.extend=WU;He.classes=Rr;He.displayName="@mantine/core/Combobox";He.Target=wD;He.Dropdown=US;He.Options=QS;He.Option=XS;He.Search=ZS;He.Empty=VS;He.Chevron=WS;He.Footer=GS;He.Header=YS;He.EventsTarget=bD;He.DropdownTarget=mD;He.Group=qS;He.ClearButton=gD;He.HiddenInput=$D;function UU({size:e,style:r,...t}){const n=e!==void 0?{width:M(e),height:M(e),...r}:r;return E.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,"aria-hidden":!0,...t,children:E.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function md(e){return"group"in e}function _D({options:e,search:r,limit:t}){const n=r.trim().toLowerCase(),i=[];for(let o=0;o<e.length;o+=1){const a=e[o];if(i.length===t)return i;md(a)&&i.push({group:a.group,items:_D({options:a.items,search:r,limit:t-i.length})}),md(a)||a.label.toLowerCase().includes(n)&&i.push(a)}return i}function VU(e){if(e.length===0)return!0;for(const r of e)if(!("group"in r)||r.items.length>0)return!1;return!0}function ED(e,r=new Set){if(Array.isArray(e))for(const t of e)if(md(t))ED(t.items,r);else{if(typeof t.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof t.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof t.value}`);if(r.has(t.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${t.value}" was provided more than once`);r.add(t.value)}}function KU(e,r){return Array.isArray(e)?e.includes(r):e===r}function OD({data:e,withCheckIcon:r,value:t,checkIconPosition:n,unstyled:i,renderOption:o}){if(!md(e)){const s=KU(t,e.value),l=r&&s&&E.jsx(UU,{className:Rr.optionsDropdownCheckIcon}),u=E.jsxs(E.Fragment,{children:[n==="left"&&l,E.jsx("span",{children:e.label}),n==="right"&&l]});return E.jsx(He.Option,{value:e.value,disabled:e.disabled,className:bi({[Rr.optionsDropdownOption]:!i}),"data-reverse":n==="right"||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o=="function"?o({option:e,checked:s}):u})}const a=e.items.map(s=>E.jsx(OD,{data:s,value:t,unstyled:i,withCheckIcon:r,checkIconPosition:n,renderOption:o},s.value));return E.jsx(He.Group,{label:e.group,children:a})}function GU({data:e,hidden:r,hiddenWhenEmpty:t,filter:n,search:i,limit:o,maxDropdownHeight:a,withScrollArea:s=!0,filterOptions:l=!0,withCheckIcon:u=!1,value:c,checkIconPosition:d,nothingFoundMessage:f,unstyled:h,labelId:v,renderOption:p,scrollAreaProps:b,"aria-label":y}){ED(e);const m=typeof i=="string"?(n||_D)({options:e,search:l?i:"",limit:o??1/0}):e,$=VU(m),w=m.map(S=>E.jsx(OD,{data:S,withCheckIcon:u,value:c,checkIconPosition:d,unstyled:h,renderOption:p},md(S)?S.group:S.value));return E.jsx(He.Dropdown,{hidden:r||t&&$,children:E.jsxs(He.Options,{labelledBy:v,"aria-label":y,children:[s?E.jsx(tf.Autosize,{mah:a??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...b,children:w}):w,$&&f&&E.jsx(He.Empty,{children:f})]})})}var ky={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844"};const WP={orientation:"horizontal"},qU=(e,{borderWidth:r})=>({group:{"--button-border-width":M(r)}}),JS=Pe((e,r)=>{const t=ue("ButtonGroup",WP,e),{className:n,style:i,classNames:o,styles:a,unstyled:s,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...h}=ue("ButtonGroup",WP,e),v=Ue({name:"ButtonGroup",props:t,classes:ky,className:n,style:i,classNames:o,styles:a,unstyled:s,vars:u,varsResolver:qU,rootSelector:"group"});return E.jsx(pe,{...v("group"),ref:r,variant:d,mod:[{"data-orientation":l},f],role:"group",...h})});JS.classes=ky;JS.displayName="@mantine/core/ButtonGroup";const YU={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${M(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},XU={},QU=(e,{radius:r,color:t,gradient:n,variant:i,size:o,justify:a,autoContrast:s})=>{const l=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:n,variant:i||"filled",autoContrast:s});return{root:{"--button-justify":a,"--button-height":Rt(o,"button-height"),"--button-padding-x":Rt(o,"button-padding-x"),"--button-fz":o!=null&&o.includes("compact")?pn(o.replace("compact-","")):pn(o),"--button-radius":r===void 0?void 0:Eu(r),"--button-bg":t||i?l.background:void 0,"--button-hover":t||i?l.hover:void 0,"--button-color":l.color,"--button-bd":t||i?l.border:void 0,"--button-hover-color":t||i?l.hoverColor:void 0}}},bd=wn((e,r)=>{const t=ue("Button",XU,e),{style:n,vars:i,className:o,color:a,disabled:s,children:l,leftSection:u,rightSection:c,fullWidth:d,variant:f,radius:h,loading:v,loaderProps:p,gradient:b,classNames:y,styles:g,unstyled:m,"data-disabled":$,autoContrast:w,mod:S,...P}=t,O=Ue({name:"Button",props:t,classes:ky,className:o,style:n,classNames:y,styles:g,unstyled:m,vars:i,varsResolver:QU}),C=!!u,k=!!c;return E.jsxs(rf,{ref:r,...O("root",{active:!s&&!v&&!$}),unstyled:m,variant:f,disabled:s||v,mod:[{disabled:s||$,loading:v,block:d,"with-left-section":C,"with-right-section":k},S],...P,children:[E.jsx(Sy,{mounted:!!v,transition:YU,duration:150,children:R=>E.jsx(pe,{component:"span",...O("loader",{style:R}),"aria-hidden":!0,children:E.jsx(of,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...p})})}),E.jsxs("span",{...O("inner"),children:[u&&E.jsx(pe,{component:"span",...O("section"),mod:{position:"left"},children:u}),E.jsx(pe,{component:"span",mod:{loading:v},...O("label"),children:l}),c&&E.jsx(pe,{component:"span",...O("section"),mod:{position:"right"},children:c})]})]})});bd.classes=ky;bd.displayName="@mantine/core/Button";bd.Group=JS;const[ZU,JU]=Qd("Card component was not found in tree");var e_={root:"m_e615b15f",section:"m_599a2148"};const eV={},Iy=wn((e,r)=>{const t=ue("CardSection",eV,e),{classNames:n,className:i,style:o,styles:a,vars:s,withBorder:l,inheritPadding:u,mod:c,...d}=t,f=JU();return E.jsx(pe,{ref:r,mod:[{"with-border":l,"inherit-padding":u},c],...f.getStyles("section",{className:i,style:o,styles:a,classNames:n}),...d})});Iy.classes=e_;Iy.displayName="@mantine/core/CardSection";const tV={},rV=(e,{padding:r})=>({root:{"--card-padding":oN(r)}}),ou=wn((e,r)=>{const t=ue("Card",tV,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,children:u,padding:c,...d}=t,f=Ue({name:"Card",props:t,classes:e_,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:rV}),h=_.Children.toArray(u),v=h.map((p,b)=>typeof p=="object"&&p&&"type"in p&&p.type===Iy?_.cloneElement(p,{"data-first-section":b===0||void 0,"data-last-section":b===h.length-1||void 0}):p);return E.jsx(ZU,{value:{getStyles:f},children:E.jsx(CS,{ref:r,unstyled:s,...f("root"),...d,children:v})})});ou.classes=e_;ou.displayName="@mantine/core/Card";ou.Section=Iy;var PD={root:"m_4451eb3a"};const nV={},t_=wn((e,r)=>{const t=ue("Center",nV,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,inline:u,mod:c,...d}=t,f=Ue({name:"Center",props:t,classes:PD,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l});return E.jsx(pe,{ref:r,mod:[{inline:u},c],...f("root"),...d})});t_.classes=PD;t_.displayName="@mantine/core/Center";var CD={root:"m_3eebeb36",label:"m_9e365f20"};const iV={orientation:"horizontal"},oV=(e,{color:r,variant:t,size:n})=>({root:{"--divider-color":r?yd(r,e):void 0,"--divider-border-style":t,"--divider-size":Rt(n,"divider-size")}}),r_=Pe((e,r)=>{const t=ue("Divider",iV,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,color:u,orientation:c,label:d,labelPosition:f,mod:h,...v}=t,p=Ue({name:"Divider",classes:CD,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:oV});return E.jsx(pe,{ref:r,mod:[{orientation:c,"with-label":!!d},h],...p("root"),...v,role:"separator",children:d&&E.jsx(pe,{component:"span",mod:{position:f},...p("label"),children:d})})});r_.classes=CD;r_.displayName="@mantine/core/Divider";function W$(){return W$=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},W$.apply(null,arguments)}function aV(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.includes(n))continue;t[n]=e[n]}return t}var sV=_.useLayoutEffect,lV=function(r){var t=_.useRef(r);return sV(function(){t.current=r}),t},UP=function(r,t){if(typeof r=="function"){r(t);return}r.current=t},uV=function(r,t){var n=_.useRef();return _.useCallback(function(i){r.current=i,n.current&&UP(n.current,null),n.current=t,t&&UP(t,i)},[t])},VP={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},cV=function(r){Object.keys(VP).forEach(function(t){r.style.setProperty(t,VP[t],"important")})},KP=cV,nr=null,GP=function(r,t){var n=r.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?n+t.borderSize:n-t.paddingSize};function dV(e,r,t,n){t===void 0&&(t=1),n===void 0&&(n=1/0),nr||(nr=document.createElement("textarea"),nr.setAttribute("tabindex","-1"),nr.setAttribute("aria-hidden","true"),KP(nr)),nr.parentNode===null&&document.body.appendChild(nr);var i=e.paddingSize,o=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach(function(f){var h=f;nr.style[h]=a[h]}),KP(nr),nr.value=r;var l=GP(nr,e);nr.value=r,l=GP(nr,e),nr.value="x";var u=nr.scrollHeight-i,c=u*t;s==="border-box"&&(c=c+i+o),l=Math.max(c,l);var d=u*n;return s==="border-box"&&(d=d+i+o),l=Math.min(d,l),[l,u]}var qP=function(){},fV=function(r,t){return r.reduce(function(n,i){return n[i]=t[i],n},{})},hV=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],vV=!!document.documentElement.currentStyle,pV=function(r){var t=window.getComputedStyle(r);if(t===null)return null;var n=fV(hV,t),i=n.boxSizing;if(i==="")return null;vV&&i==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var o=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),a=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:o,borderSize:a}},yV=pV;function TD(e,r,t){var n=lV(t);_.useLayoutEffect(function(){var i=function(a){return n.current(a)};if(e)return e.addEventListener(r,i),function(){return e.removeEventListener(r,i)}},[])}var gV=function(r){TD(window,"resize",r)},mV=function(r){TD(document.fonts,"loadingdone",r)},bV=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],$V=function(r,t){var n=r.cacheMeasurements,i=r.maxRows,o=r.minRows,a=r.onChange,s=a===void 0?qP:a,l=r.onHeightChange,u=l===void 0?qP:l,c=aV(r,bV),d=c.value!==void 0,f=_.useRef(null),h=uV(f,t),v=_.useRef(0),p=_.useRef(),b=function(){var m=f.current,$=n&&p.current?p.current:yV(m);if($){p.current=$;var w=dV($,m.value||m.placeholder||"x",o,i),S=w[0],P=w[1];v.current!==S&&(v.current=S,m.style.setProperty("height",S+"px","important"),u(S,{rowHeight:P}))}},y=function(m){d||b(),s(m)};return _.useLayoutEffect(b),gV(b),mV(b),_.createElement("textarea",W$({},c,{onChange:y,ref:h}))},wV=_.forwardRef($V);const SV={},n_=Pe((e,r)=>{const{autosize:t,maxRows:n,minRows:i,__staticSelector:o,resize:a,...s}=ue("Textarea",SV,e),l=t&&J9()!=="test",u=l?{maxRows:n,minRows:i}:{};return E.jsx(Si,{component:l?wV:"textarea",ref:r,...s,__staticSelector:o||"Textarea",multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...u})});n_.classes=Si.classes;n_.displayName="@mantine/core/Textarea";function YP(e,r){if(typeof e=="string"&&e.trim().length===0)return!0;try{return r(e),!0}catch{return!1}}const _V={serialize:JSON.stringify,deserialize:JSON.parse},i_=Pe((e,r)=>{const{value:t,defaultValue:n,onChange:i,formatOnBlur:o,validationError:a,serialize:s,deserialize:l,onFocus:u,onBlur:c,readOnly:d,error:f,...h}=ue("JsonInput",_V,e),[v,p]=tu({value:t,defaultValue:n,finalValue:"",onChange:i}),[b,y]=_.useState(YP(v,l)),g=$=>{u==null||u($),y(!0)},m=$=>{typeof c=="function"&&c($);const w=YP($.currentTarget.value,l);o&&!d&&w&&$.currentTarget.value.trim()!==""&&p(s(l($.currentTarget.value),null,2)),y(w)};return E.jsx(n_,{value:v,onChange:$=>p($.currentTarget.value),onFocus:g,onBlur:m,ref:r,readOnly:d,...h,autoComplete:"off",__staticSelector:"JsonInput",error:b?f:a||!0,"data-monospace":!0})});i_.classes=Si.classes;i_.displayName="@mantine/core/JsonInput";const EV=({reveal:e})=>E.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:E.jsx("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})});var U$={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const OV={visibilityToggleIcon:EV},PV=(e,{size:r})=>({root:{"--psi-icon-size":Rt(r,"psi-icon-size"),"--psi-button-size":Rt(r,"psi-button-size")}}),o_=Pe((e,r)=>{const t=ue("PasswordInput",OV,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,required:u,error:c,leftSection:d,disabled:f,id:h,variant:v,inputContainer:p,description:b,label:y,size:g,errorProps:m,descriptionProps:$,labelProps:w,withAsterisk:S,inputWrapperOrder:P,wrapperProps:O,radius:C,rightSection:k,rightSectionWidth:R,rightSectionPointerEvents:D,leftSectionWidth:z,visible:X,defaultVisible:Z,onVisibilityChange:F,visibilityToggleIcon:ee,visibilityToggleButtonProps:x,rightSectionProps:L,leftSectionProps:j,leftSectionPointerEvents:Q,withErrorStyles:K,mod:ce,...ge}=t,$e=Jd(h),[Te,xe]=tu({value:X,defaultValue:Z,finalValue:!1,onChange:F}),ke=()=>xe(!Te),H=Ue({name:"PasswordInput",classes:U$,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:PV}),{resolvedClassNames:N,resolvedStyles:B}=$N({classNames:n,styles:a,props:t}),{styleProps:te,rest:ie}=yy(ge),J=ee,_e=E.jsx(Ey,{...H("visibilityToggle"),disabled:f,radius:C,"aria-hidden":!x,tabIndex:-1,...x,variant:"subtle",color:"gray",unstyled:s,onMouseDown:Le=>{var Se;Le.preventDefault(),(Se=x==null?void 0:x.onMouseDown)==null||Se.call(x,Le),ke()},onKeyDown:Le=>{var Se;(Se=x==null?void 0:x.onKeyDown)==null||Se.call(x,Le),Le.key===" "&&(Le.preventDefault(),ke())},children:E.jsx(J,{reveal:Te})});return E.jsx(Ir.Wrapper,{required:u,id:$e,label:y,error:c,description:b,size:g,classNames:N,styles:B,__staticSelector:"PasswordInput",errorProps:m,descriptionProps:$,unstyled:s,withAsterisk:S,inputWrapperOrder:P,inputContainer:p,variant:v,labelProps:{...w,htmlFor:$e},mod:ce,...H("root"),...te,...O,children:E.jsx(Ir,{component:"div",error:c,leftSection:d,size:g,classNames:{...N,input:bi(U$.input,N.input)},styles:B,radius:C,disabled:f,__staticSelector:"PasswordInput",rightSectionWidth:R,rightSection:k??_e,variant:v,unstyled:s,leftSectionWidth:z,rightSectionPointerEvents:D||"all",rightSectionProps:L,leftSectionProps:j,leftSectionPointerEvents:Q,withAria:!1,withErrorStyles:K,children:E.jsx("input",{required:u,"data-invalid":!!c||void 0,"data-with-left-section":!!d||void 0,...H("innerInput"),disabled:f,id:$e,ref:r,...ie,autoComplete:ie.autoComplete||"off",type:Te?"text":"password"})})})});o_.classes={...Si.classes,...U$};o_.displayName="@mantine/core/PasswordInput";const CV={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},a_=Pe((e,r)=>{const t=ue("Select",CV,e),{classNames:n,styles:i,unstyled:o,vars:a,dropdownOpened:s,defaultDropdownOpened:l,onDropdownClose:u,onDropdownOpen:c,onFocus:d,onBlur:f,onClick:h,onChange:v,data:p,value:b,defaultValue:y,selectFirstOptionOnChange:g,onOptionSubmit:m,comboboxProps:$,readOnly:w,disabled:S,filter:P,limit:O,withScrollArea:C,maxDropdownHeight:k,size:R,searchable:D,rightSection:z,checkIconPosition:X,withCheckIcon:Z,nothingFoundMessage:F,name:ee,form:x,searchValue:L,defaultSearchValue:j,onSearchChange:Q,allowDeselect:K,error:ce,rightSectionPointerEvents:ge,id:$e,clearable:Te,clearButtonProps:xe,hiddenInputProps:ke,renderOption:H,onClear:N,autoComplete:B,scrollAreaProps:te,...ie}=t,J=_.useMemo(()=>_U(p),[p]),_e=_.useMemo(()=>yD(J),[J]),Le=Jd($e),[Se,tr,rr]=tu({value:b,defaultValue:y,finalValue:null,onChange:v}),rt=typeof Se=="string"?_e[Se]:void 0,Ci=Q9(rt),[ks,rn]=tu({value:L,defaultValue:j,finalValue:rt?rt.label:"",onChange:Q}),xn=SD({opened:s,defaultOpened:l,onDropdownOpen:()=>{c==null||c(),xn.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u==null||u(),xn.resetSelectedOption()}}),{resolvedClassNames:UE,resolvedStyles:VE}=$N({props:t,styles:i,classNames:n});_.useEffect(()=>{g&&xn.selectFirstOption()},[g,Se]),_.useEffect(()=>{b===null&&rn(""),typeof b=="string"&&rt&&((Ci==null?void 0:Ci.value)!==rt.value||(Ci==null?void 0:Ci.label)!==rt.label)&&rn(rt.label)},[b,rt]);const KE=Te&&!!Se&&!S&&!w&&E.jsx(He.ClearButton,{size:R,...xe,onClear:()=>{tr(null,null),rn(""),N==null||N()}});return E.jsxs(E.Fragment,{children:[E.jsxs(He,{store:xn,__staticSelector:"Select",classNames:UE,styles:VE,unstyled:o,readOnly:w,onOptionSubmit:nn=>{m==null||m(nn);const Ti=K&&_e[nn].value===Se?null:_e[nn],Ng=Ti?Ti.value:null;Ng!==Se&&tr(Ng,Ti),!rr&&rn(typeof Ng=="string"&&(Ti==null?void 0:Ti.label)||""),xn.closeDropdown()},size:R,...$,children:[E.jsx(He.Target,{targetType:D?"input":"button",autoComplete:B,children:E.jsx(Si,{id:Le,ref:r,rightSection:z||KE||E.jsx(He.Chevron,{size:R,error:ce,unstyled:o}),rightSectionPointerEvents:ge||(KE?"all":"none"),...ie,size:R,__staticSelector:"Select",disabled:S,readOnly:w||!D,value:ks,onChange:nn=>{rn(nn.currentTarget.value),xn.openDropdown(),g&&xn.selectFirstOption()},onFocus:nn=>{D&&xn.openDropdown(),d==null||d(nn)},onBlur:nn=>{var Ti;D&&xn.closeDropdown(),rn(Se!=null&&((Ti=_e[Se])==null?void 0:Ti.label)||""),f==null||f(nn)},onClick:nn=>{D?xn.openDropdown():xn.toggleDropdown(),h==null||h(nn)},classNames:UE,styles:VE,unstyled:o,pointer:!D,error:ce})}),E.jsx(GU,{data:J,hidden:w||S,filter:P,search:ks,limit:O,hiddenWhenEmpty:!F,withScrollArea:C,maxDropdownHeight:k,filterOptions:D&&(rt==null?void 0:rt.label)!==ks,value:Se,checkIconPosition:X,withCheckIcon:Z,nothingFoundMessage:F,unstyled:o,labelId:ie.label?`${Le}-label`:void 0,"aria-label":ie.label?void 0:ie["aria-label"],renderOption:H,scrollAreaProps:te})]}),E.jsx(He.HiddenInput,{value:Se,name:ee,form:x,disabled:S,...ke})]})});a_.classes={...Si.classes,...He.classes};a_.displayName="@mantine/core/Select";var xD={root:"m_6d731127"};const TV={gap:"md",align:"stretch",justify:"flex-start"},xV=(e,{gap:r,align:t,justify:n})=>({root:{"--stack-gap":oN(r),"--stack-align":t,"--stack-justify":n}}),Bc=Pe((e,r)=>{const t=ue("Stack",TV,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,align:u,justify:c,gap:d,variant:f,...h}=t,v=Ue({name:"Stack",props:t,classes:xD,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:xV});return E.jsx(pe,{ref:r,...v("root"),variant:f,...h})});Bc.classes=xD;Bc.displayName="@mantine/core/Stack";const kV={},$p=Pe((e,r)=>{const t=ue("TextInput",kV,e);return E.jsx(Si,{component:"input",ref:r,...t,__staticSelector:"TextInput"})});$p.classes=Si.classes;$p.displayName="@mantine/core/TextInput";const IV=["h1","h2","h3","h4","h5","h6"],RV=["xs","sm","md","lg","xl"];function AV(e,r){const t=r!==void 0?r:`h${e}`;return IV.includes(t)?{fontSize:`var(--mantine-${t}-font-size)`,fontWeight:`var(--mantine-${t}-font-weight)`,lineHeight:`var(--mantine-${t}-line-height)`}:RV.includes(t)?{fontSize:`var(--mantine-font-size-${t})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:M(t),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var kD={root:"m_8a5d1357"};const MV={order:1},NV=(e,{order:r,size:t,lineClamp:n,textWrap:i})=>{const o=AV(r,t);return{root:{"--title-fw":o.fontWeight,"--title-lh":o.lineHeight,"--title-fz":o.fontSize,"--title-line-clamp":typeof n=="number"?n.toString():void 0,"--title-text-wrap":i}}},$d=Pe((e,r)=>{const t=ue("Title",MV,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,order:l,vars:u,size:c,variant:d,lineClamp:f,textWrap:h,mod:v,...p}=t,b=Ue({name:"Title",props:t,classes:kD,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:u,varsResolver:NV});return[1,2,3,4,5,6].includes(l)?E.jsx(pe,{...b("root"),component:`h${l}`,variant:d,ref:r,mod:[{order:l,"data-line-clamp":typeof f=="number"},v],size:c,...p}):null});$d.classes=kD;$d.displayName="@mantine/core/Title";var af=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ts=typeof window>"u"||"Deno"in globalThis;function sn(){}function DV(e,r){return typeof e=="function"?e(r):e}function V$(e){return typeof e=="number"&&e>=0&&e!==1/0}function ID(e,r){return Math.max(e+(r||0)-Date.now(),0)}function Pl(e,r){return typeof e=="function"?e(r):e}function Dn(e,r){return typeof e=="function"?e(r):e}function XP(e,r){const{type:t="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(r.queryHash!==s_(a,r.options))return!1}else if(!Sd(r.queryKey,a))return!1}if(t!=="all"){const l=r.isActive();if(t==="active"&&!l||t==="inactive"&&l)return!1}return!(typeof s=="boolean"&&r.isStale()!==s||i&&i!==r.state.fetchStatus||o&&!o(r))}function QP(e,r){const{exact:t,status:n,predicate:i,mutationKey:o}=e;if(o){if(!r.options.mutationKey)return!1;if(t){if(wd(r.options.mutationKey)!==wd(o))return!1}else if(!Sd(r.options.mutationKey,o))return!1}return!(n&&r.state.status!==n||i&&!i(r))}function s_(e,r){return((r==null?void 0:r.queryKeyHashFn)||wd)(e)}function wd(e){return JSON.stringify(e,(r,t)=>G$(t)?Object.keys(t).sort().reduce((n,i)=>(n[i]=t[i],n),{}):t)}function Sd(e,r){return e===r?!0:typeof e!=typeof r?!1:e&&r&&typeof e=="object"&&typeof r=="object"?!Object.keys(r).some(t=>!Sd(e[t],r[t])):!1}function RD(e,r){if(e===r)return e;const t=ZP(e)&&ZP(r);if(t||G$(e)&&G$(r)){const n=t?e:Object.keys(e),i=n.length,o=t?r:Object.keys(r),a=o.length,s=t?[]:{};let l=0;for(let u=0;u<a;u++){const c=t?u:o[u];(!t&&n.includes(c)||t)&&e[c]===void 0&&r[c]===void 0?(s[c]=void 0,l++):(s[c]=RD(e[c],r[c]),s[c]===e[c]&&e[c]!==void 0&&l++)}return i===a&&l===i?e:s}return r}function K$(e,r){if(!r||Object.keys(e).length!==Object.keys(r).length)return!1;for(const t in e)if(e[t]!==r[t])return!1;return!0}function ZP(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function G$(e){if(!JP(e))return!1;const r=e.constructor;if(r===void 0)return!0;const t=r.prototype;return!(!JP(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function JP(e){return Object.prototype.toString.call(e)==="[object Object]"}function FV(e){return new Promise(r=>{setTimeout(r,e)})}function q$(e,r,t){return typeof t.structuralSharing=="function"?t.structuralSharing(e,r):t.structuralSharing!==!1?RD(e,r):r}function LV(e,r,t=0){const n=[...e,r];return t&&n.length>t?n.slice(1):n}function jV(e,r,t=0){const n=[r,...e];return t&&n.length>t?n.slice(0,-1):n}var l_=Symbol();function AD(e,r){return!e.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!e.queryFn||e.queryFn===l_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ca,bo,Il,w2,BV=(w2=class extends af{constructor(){super();ye(this,Ca);ye(this,bo);ye(this,Il);ne(this,Il,r=>{if(!ts&&window.addEventListener){const t=()=>r();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){T(this,bo)||this.setEventListener(T(this,Il))}onUnsubscribe(){var r;this.hasListeners()||((r=T(this,bo))==null||r.call(this),ne(this,bo,void 0))}setEventListener(r){var t;ne(this,Il,r),(t=T(this,bo))==null||t.call(this),ne(this,bo,r(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(r){T(this,Ca)!==r&&(ne(this,Ca,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(t=>{t(r)})}isFocused(){var r;return typeof T(this,Ca)=="boolean"?T(this,Ca):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Ca=new WeakMap,bo=new WeakMap,Il=new WeakMap,w2),u_=new BV,Rl,$o,Al,S2,zV=(S2=class extends af{constructor(){super();ye(this,Rl,!0);ye(this,$o);ye(this,Al);ne(this,Al,r=>{if(!ts&&window.addEventListener){const t=()=>r(!0),n=()=>r(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){T(this,$o)||this.setEventListener(T(this,Al))}onUnsubscribe(){var r;this.hasListeners()||((r=T(this,$o))==null||r.call(this),ne(this,$o,void 0))}setEventListener(r){var t;ne(this,Al,r),(t=T(this,$o))==null||t.call(this),ne(this,$o,r(this.setOnline.bind(this)))}setOnline(r){T(this,Rl)!==r&&(ne(this,Rl,r),this.listeners.forEach(n=>{n(r)}))}isOnline(){return T(this,Rl)}},Rl=new WeakMap,$o=new WeakMap,Al=new WeakMap,S2),wp=new zV;function Y$(){let e,r;const t=new Promise((i,o)=>{e=i,r=o});t.status="pending",t.catch(()=>{});function n(i){Object.assign(t,i),delete t.resolve,delete t.reject}return t.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},t.reject=i=>{n({status:"rejected",reason:i}),r(i)},t}function HV(e){return Math.min(1e3*2**e,3e4)}function MD(e){return(e??"online")==="online"?wp.isOnline():!0}var ND=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Em(e){return e instanceof ND}function DD(e){let r=!1,t=0,n=!1,i;const o=Y$(),a=p=>{var b;n||(f(new ND(p)),(b=e.abort)==null||b.call(e))},s=()=>{r=!0},l=()=>{r=!1},u=()=>u_.isFocused()&&(e.networkMode==="always"||wp.isOnline())&&e.canRun(),c=()=>MD(e.networkMode)&&e.canRun(),d=p=>{var b;n||(n=!0,(b=e.onSuccess)==null||b.call(e,p),i==null||i(),o.resolve(p))},f=p=>{var b;n||(n=!0,(b=e.onError)==null||b.call(e,p),i==null||i(),o.reject(p))},h=()=>new Promise(p=>{var b;i=y=>{(n||u())&&p(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var p;i=void 0,n||(p=e.onContinue)==null||p.call(e)}),v=()=>{if(n)return;let p;const b=t===0?e.initialPromise:void 0;try{p=b??e.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(d).catch(y=>{var S;if(n)return;const g=e.retry??(ts?0:3),m=e.retryDelay??HV,$=typeof m=="function"?m(t,y):m,w=g===!0||typeof g=="number"&&t<g||typeof g=="function"&&g(t,y);if(r||!w){f(y);return}t++,(S=e.onFail)==null||S.call(e,t,y),FV($).then(()=>u()?void 0:h()).then(()=>{r?f(y):v()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:l,canStart:c,start:()=>(c()?v():h().then(v),o)}}function WV(){let e=[],r=0,t=s=>{s()},n=s=>{s()},i=s=>setTimeout(s,0);const o=s=>{r?e.push(s):i(()=>{t(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{t(l)})})})};return{batch:s=>{let l;r++;try{l=s()}finally{r--,r||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{t=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var Wt=WV(),Ta,_2,FD=(_2=class{constructor(){ye(this,Ta)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),V$(this.gcTime)&&ne(this,Ta,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ts?1/0:5*60*1e3))}clearGcTimeout(){T(this,Ta)&&(clearTimeout(T(this,Ta)),ne(this,Ta,void 0))}},Ta=new WeakMap,_2),Ml,Nl,an,Xt,Bd,xa,Rn,ki,E2,UV=(E2=class extends FD{constructor(r){super();ye(this,Rn);ye(this,Ml);ye(this,Nl);ye(this,an);ye(this,Xt);ye(this,Bd);ye(this,xa);ne(this,xa,!1),ne(this,Bd,r.defaultOptions),this.setOptions(r.options),this.observers=[],ne(this,an,r.cache),this.queryKey=r.queryKey,this.queryHash=r.queryHash,ne(this,Ml,VV(this.options)),this.state=r.state??T(this,Ml),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=T(this,Xt))==null?void 0:r.promise}setOptions(r){this.options={...T(this,Bd),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,an).remove(this)}setData(r,t){const n=q$(this.state.data,r,this.options);return Ee(this,Rn,ki).call(this,{data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(r,t){Ee(this,Rn,ki).call(this,{type:"setState",state:r,setStateOptions:t})}cancel(r){var n,i;const t=(n=T(this,Xt))==null?void 0:n.promise;return(i=T(this,Xt))==null||i.cancel(r),t?t.then(sn).catch(sn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Ml))}isActive(){return this.observers.some(r=>Dn(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===l_||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(r=0){return this.state.isInvalidated||this.state.data===void 0||!ID(this.state.dataUpdatedAt,r)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(t=T(this,Xt))==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(t=T(this,Xt))==null||t.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),T(this,an).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(t=>t!==r),this.observers.length||(T(this,Xt)&&(T(this,xa)?T(this,Xt).cancel({revert:!0}):T(this,Xt).cancelRetry()),this.scheduleGc()),T(this,an).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,Rn,ki).call(this,{type:"invalidate"})}fetch(r,t){var l,u,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if(T(this,Xt))return T(this,Xt).continueRetry(),T(this,Xt).promise}if(r&&this.setOptions(r),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(ne(this,xa,!0),n.signal)})},o=()=>{const d=AD(this.options,t),f={queryKey:this.queryKey,meta:this.meta};return i(f),ne(this,xa,!1),this.options.persister?this.options.persister(d,f,this):d(f)},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(a),(l=this.options.behavior)==null||l.onFetch(a,this),ne(this,Nl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Ee(this,Rn,ki).call(this,{type:"fetch",meta:(c=a.fetchOptions)==null?void 0:c.meta});const s=d=>{var f,h,v,p;Em(d)&&d.silent||Ee(this,Rn,ki).call(this,{type:"error",error:d}),Em(d)||((h=(f=T(this,an).config).onError)==null||h.call(f,d,this),(p=(v=T(this,an).config).onSettled)==null||p.call(v,this.state.data,d,this)),this.scheduleGc()};return ne(this,Xt,DD({initialPromise:t==null?void 0:t.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{var f,h,v,p;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(b){s(b);return}(h=(f=T(this,an).config).onSuccess)==null||h.call(f,d,this),(p=(v=T(this,an).config).onSettled)==null||p.call(v,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,f)=>{Ee(this,Rn,ki).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{Ee(this,Rn,ki).call(this,{type:"pause"})},onContinue:()=>{Ee(this,Rn,ki).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,Xt).start()}},Ml=new WeakMap,Nl=new WeakMap,an=new WeakMap,Xt=new WeakMap,Bd=new WeakMap,xa=new WeakMap,Rn=new WeakSet,ki=function(r){const t=n=>{switch(r.type){case"failed":return{...n,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...LD(n.data,this.options),fetchMeta:r.meta??null};case"success":return{...n,data:r.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=r.error;return Em(i)&&i.revert&&T(this,Nl)?{...T(this,Nl),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...r.state}}};this.state=t(this.state),Wt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),T(this,an).notify({query:this,type:"updated",action:r})})},E2);function LD(e,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:MD(r.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function VV(e){const r=typeof e.initialData=="function"?e.initialData():e.initialData,t=r!==void 0,n=t?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var ni,O2,KV=(O2=class extends af{constructor(r={}){super();ye(this,ni);this.config=r,ne(this,ni,new Map)}build(r,t,n){const i=t.queryKey,o=t.queryHash??s_(i,t);let a=this.get(o);return a||(a=new UV({cache:this,queryKey:i,queryHash:o,options:r.defaultQueryOptions(t),state:n,defaultOptions:r.getQueryDefaults(i)}),this.add(a)),a}add(r){T(this,ni).has(r.queryHash)||(T(this,ni).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const t=T(this,ni).get(r.queryHash);t&&(r.destroy(),t===r&&T(this,ni).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Wt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return T(this,ni).get(r)}getAll(){return[...T(this,ni).values()]}find(r){const t={exact:!0,...r};return this.getAll().find(n=>XP(t,n))}findAll(r={}){const t=this.getAll();return Object.keys(r).length>0?t.filter(n=>XP(r,n)):t}notify(r){Wt.batch(()=>{this.listeners.forEach(t=>{t(r)})})}onFocus(){Wt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Wt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},ni=new WeakMap,O2),ii,ir,ka,oi,uo,P2,GV=(P2=class extends FD{constructor(r){super();ye(this,oi);ye(this,ii);ye(this,ir);ye(this,ka);this.mutationId=r.mutationId,ne(this,ir,r.mutationCache),ne(this,ii,[]),this.state=r.state||qV(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){T(this,ii).includes(r)||(T(this,ii).push(r),this.clearGcTimeout(),T(this,ir).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){ne(this,ii,T(this,ii).filter(t=>t!==r)),this.scheduleGc(),T(this,ir).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){T(this,ii).length||(this.state.status==="pending"?this.scheduleGc():T(this,ir).remove(this))}continue(){var r;return((r=T(this,ka))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var i,o,a,s,l,u,c,d,f,h,v,p,b,y,g,m,$,w,S,P;ne(this,ka,DD({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(O,C)=>{Ee(this,oi,uo).call(this,{type:"failed",failureCount:O,error:C})},onPause:()=>{Ee(this,oi,uo).call(this,{type:"pause"})},onContinue:()=>{Ee(this,oi,uo).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,ir).canRun(this)}));const t=this.state.status==="pending",n=!T(this,ka).canStart();try{if(!t){Ee(this,oi,uo).call(this,{type:"pending",variables:r,isPaused:n}),await((o=(i=T(this,ir).config).onMutate)==null?void 0:o.call(i,r,this));const C=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,r));C!==this.state.context&&Ee(this,oi,uo).call(this,{type:"pending",context:C,variables:r,isPaused:n})}const O=await T(this,ka).start();return await((u=(l=T(this,ir).config).onSuccess)==null?void 0:u.call(l,O,r,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,O,r,this.state.context)),await((h=(f=T(this,ir).config).onSettled)==null?void 0:h.call(f,O,null,this.state.variables,this.state.context,this)),await((p=(v=this.options).onSettled)==null?void 0:p.call(v,O,null,r,this.state.context)),Ee(this,oi,uo).call(this,{type:"success",data:O}),O}catch(O){try{throw await((y=(b=T(this,ir).config).onError)==null?void 0:y.call(b,O,r,this.state.context,this)),await((m=(g=this.options).onError)==null?void 0:m.call(g,O,r,this.state.context)),await((w=($=T(this,ir).config).onSettled)==null?void 0:w.call($,void 0,O,this.state.variables,this.state.context,this)),await((P=(S=this.options).onSettled)==null?void 0:P.call(S,void 0,O,r,this.state.context)),O}finally{Ee(this,oi,uo).call(this,{type:"error",error:O})}}finally{T(this,ir).runNext(this)}}},ii=new WeakMap,ir=new WeakMap,ka=new WeakMap,oi=new WeakSet,uo=function(r){const t=n=>{switch(r.type){case"failed":return{...n,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...n,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:r.error,failureCount:n.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Wt.batch(()=>{T(this,ii).forEach(n=>{n.onMutationUpdate(r)}),T(this,ir).notify({mutation:this,type:"updated",action:r})})},P2);function qV(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jr,zd,C2,YV=(C2=class extends af{constructor(r={}){super();ye(this,jr);ye(this,zd);this.config=r,ne(this,jr,new Map),ne(this,zd,Date.now())}build(r,t,n){const i=new GV({mutationCache:this,mutationId:++Jf(this,zd)._,options:r.defaultMutationOptions(t),state:n});return this.add(i),i}add(r){const t=_h(r),n=T(this,jr).get(t)??[];n.push(r),T(this,jr).set(t,n),this.notify({type:"added",mutation:r})}remove(r){var n;const t=_h(r);if(T(this,jr).has(t)){const i=(n=T(this,jr).get(t))==null?void 0:n.filter(o=>o!==r);i&&(i.length===0?T(this,jr).delete(t):T(this,jr).set(t,i))}this.notify({type:"removed",mutation:r})}canRun(r){var n;const t=(n=T(this,jr).get(_h(r)))==null?void 0:n.find(i=>i.state.status==="pending");return!t||t===r}runNext(r){var n;const t=(n=T(this,jr).get(_h(r)))==null?void 0:n.find(i=>i!==r&&i.state.isPaused);return(t==null?void 0:t.continue())??Promise.resolve()}clear(){Wt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}getAll(){return[...T(this,jr).values()].flat()}find(r){const t={exact:!0,...r};return this.getAll().find(n=>QP(t,n))}findAll(r={}){return this.getAll().filter(t=>QP(r,t))}notify(r){Wt.batch(()=>{this.listeners.forEach(t=>{t(r)})})}resumePausedMutations(){const r=this.getAll().filter(t=>t.state.isPaused);return Wt.batch(()=>Promise.all(r.map(t=>t.continue().catch(sn))))}},jr=new WeakMap,zd=new WeakMap,C2);function _h(e){var r;return((r=e.options.scope)==null?void 0:r.id)??String(e.mutationId)}function eC(e){return{onFetch:(r,t)=>{var c,d,f,h,v;const n=r.options,i=(f=(d=(c=r.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((h=r.state.data)==null?void 0:h.pages)||[],a=((v=r.state.data)==null?void 0:v.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let p=!1;const b=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(r.signal.aborted?p=!0:r.signal.addEventListener("abort",()=>{p=!0}),r.signal)})},y=AD(r.options,r.fetchOptions),g=async(m,$,w)=>{if(p)return Promise.reject();if($==null&&m.pages.length)return Promise.resolve(m);const S={queryKey:r.queryKey,pageParam:$,direction:w?"backward":"forward",meta:r.options.meta};b(S);const P=await y(S),{maxPages:O}=r.options,C=w?jV:LV;return{pages:C(m.pages,P,O),pageParams:C(m.pageParams,$,O)}};if(i&&o.length){const m=i==="backward",$=m?XV:tC,w={pages:o,pageParams:a},S=$(n,w);s=await g(w,S,m)}else{const m=e??o.length;do{const $=l===0?a[0]??n.initialPageParam:tC(n,s);if(l>0&&$==null)break;s=await g(s,$),l++}while(l<m)}return s};r.options.persister?r.fetchFn=()=>{var p,b;return(b=(p=r.options).persister)==null?void 0:b.call(p,u,{queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},t)}:r.fetchFn=u}}}function tC(e,{pages:r,pageParams:t}){const n=r.length-1;return r.length>0?e.getNextPageParam(r[n],r,t[n],t):void 0}function XV(e,{pages:r,pageParams:t}){var n;return r.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,r[0],r,t[0],t):void 0}var st,wo,So,Dl,Fl,_o,Ll,jl,T2,QV=(T2=class{constructor(e={}){ye(this,st);ye(this,wo);ye(this,So);ye(this,Dl);ye(this,Fl);ye(this,_o);ye(this,Ll);ye(this,jl);ne(this,st,e.queryCache||new KV),ne(this,wo,e.mutationCache||new YV),ne(this,So,e.defaultOptions||{}),ne(this,Dl,new Map),ne(this,Fl,new Map),ne(this,_o,0)}mount(){Jf(this,_o)._++,T(this,_o)===1&&(ne(this,Ll,u_.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,st).onFocus())})),ne(this,jl,wp.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,st).onOnline())})))}unmount(){var e,r;Jf(this,_o)._--,T(this,_o)===0&&((e=T(this,Ll))==null||e.call(this),ne(this,Ll,void 0),(r=T(this,jl))==null||r.call(this),ne(this,jl,void 0))}isFetching(e){return T(this,st).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,wo).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const r=this.defaultQueryOptions({queryKey:e});return(t=T(this,st).get(r.queryHash))==null?void 0:t.state.data}ensureQueryData(e){const r=this.getQueryData(e.queryKey);if(r===void 0)return this.fetchQuery(e);{const t=this.defaultQueryOptions(e),n=T(this,st).build(this,t);return e.revalidateIfStale&&n.isStaleByTime(Pl(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r)}}getQueriesData(e){return T(this,st).findAll(e).map(({queryKey:r,state:t})=>{const n=t.data;return[r,n]})}setQueryData(e,r,t){const n=this.defaultQueryOptions({queryKey:e}),i=T(this,st).get(n.queryHash),o=i==null?void 0:i.state.data,a=DV(r,o);if(a!==void 0)return T(this,st).build(this,n).setData(a,{...t,manual:!0})}setQueriesData(e,r,t){return Wt.batch(()=>T(this,st).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,r,t)]))}getQueryState(e){var t;const r=this.defaultQueryOptions({queryKey:e});return(t=T(this,st).get(r.queryHash))==null?void 0:t.state}removeQueries(e){const r=T(this,st);Wt.batch(()=>{r.findAll(e).forEach(t=>{r.remove(t)})})}resetQueries(e,r){const t=T(this,st),n={type:"active",...e};return Wt.batch(()=>(t.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,r)))}cancelQueries(e={},r={}){const t={revert:!0,...r},n=Wt.batch(()=>T(this,st).findAll(e).map(i=>i.cancel(t)));return Promise.all(n).then(sn).catch(sn)}invalidateQueries(e={},r={}){return Wt.batch(()=>{if(T(this,st).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const t={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(t,r)})}refetchQueries(e={},r){const t={...r,cancelRefetch:(r==null?void 0:r.cancelRefetch)??!0},n=Wt.batch(()=>T(this,st).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,t);return t.throwOnError||(o=o.catch(sn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(sn)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const t=T(this,st).build(this,r);return t.isStaleByTime(Pl(r.staleTime,t))?t.fetch(r):Promise.resolve(t.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sn).catch(sn)}fetchInfiniteQuery(e){return e.behavior=eC(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sn).catch(sn)}ensureInfiniteQueryData(e){return e.behavior=eC(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wp.isOnline()?T(this,wo).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,st)}getMutationCache(){return T(this,wo)}getDefaultOptions(){return T(this,So)}setDefaultOptions(e){ne(this,So,e)}setQueryDefaults(e,r){T(this,Dl).set(wd(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...T(this,Dl).values()];let t={};return r.forEach(n=>{Sd(e,n.queryKey)&&(t={...t,...n.defaultOptions})}),t}setMutationDefaults(e,r){T(this,Fl).set(wd(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...T(this,Fl).values()];let t={};return r.forEach(n=>{Sd(e,n.mutationKey)&&(t={...t,...n.defaultOptions})}),t}defaultQueryOptions(e){if(e._defaulted)return e;const r={...T(this,So).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=s_(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.enabled!==!0&&r.queryFn===l_&&(r.enabled=!1),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,So).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,st).clear(),T(this,wo).clear()}},st=new WeakMap,wo=new WeakMap,So=new WeakMap,Dl=new WeakMap,Fl=new WeakMap,_o=new WeakMap,Ll=new WeakMap,jl=new WeakMap,T2),br,Oe,Hd,or,Ia,Bl,Eo,ai,Wd,zl,Hl,Ra,Aa,Oo,Wl,De,_c,X$,Q$,Z$,J$,e0,t0,r0,jD,x2,ZV=(x2=class extends af{constructor(r,t){super();ye(this,De);ye(this,br);ye(this,Oe);ye(this,Hd);ye(this,or);ye(this,Ia);ye(this,Bl);ye(this,Eo);ye(this,ai);ye(this,Wd);ye(this,zl);ye(this,Hl);ye(this,Ra);ye(this,Aa);ye(this,Oo);ye(this,Wl,new Set);this.options=t,ne(this,br,r),ne(this,ai,null),ne(this,Eo,Y$()),this.options.experimental_prefetchInRender||T(this,Eo).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Oe).addObserver(this),rC(T(this,Oe),this.options)?Ee(this,De,_c).call(this):this.updateResult(),Ee(this,De,J$).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return n0(T(this,Oe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return n0(T(this,Oe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ee(this,De,e0).call(this),Ee(this,De,t0).call(this),T(this,Oe).removeObserver(this)}setOptions(r,t){const n=this.options,i=T(this,Oe);if(this.options=T(this,br).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,T(this,Oe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ee(this,De,r0).call(this),T(this,Oe).setOptions(this.options),n._defaulted&&!K$(this.options,n)&&T(this,br).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Oe),observer:this});const o=this.hasListeners();o&&nC(T(this,Oe),i,this.options,n)&&Ee(this,De,_c).call(this),this.updateResult(t),o&&(T(this,Oe)!==i||Dn(this.options.enabled,T(this,Oe))!==Dn(n.enabled,T(this,Oe))||Pl(this.options.staleTime,T(this,Oe))!==Pl(n.staleTime,T(this,Oe)))&&Ee(this,De,X$).call(this);const a=Ee(this,De,Q$).call(this);o&&(T(this,Oe)!==i||Dn(this.options.enabled,T(this,Oe))!==Dn(n.enabled,T(this,Oe))||a!==T(this,Oo))&&Ee(this,De,Z$).call(this,a)}getOptimisticResult(r){const t=T(this,br).getQueryCache().build(T(this,br),r),n=this.createResult(t,r);return eK(this,n)&&(ne(this,or,n),ne(this,Bl,this.options),ne(this,Ia,T(this,Oe).state)),n}getCurrentResult(){return T(this,or)}trackResult(r,t){const n={};return Object.keys(r).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),t==null||t(i),r[i])})}),n}trackProp(r){T(this,Wl).add(r)}getCurrentQuery(){return T(this,Oe)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const t=T(this,br).defaultQueryOptions(r),n=T(this,br).getQueryCache().build(T(this,br),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(r){return Ee(this,De,_c).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,or)))}createResult(r,t){var P;const n=T(this,Oe),i=this.options,o=T(this,or),a=T(this,Ia),s=T(this,Bl),u=r!==n?r.state:T(this,Hd),{state:c}=r;let d={...c},f=!1,h;if(t._optimisticResults){const O=this.hasListeners(),C=!O&&rC(r,t),k=O&&nC(r,n,t,i);(C||k)&&(d={...d,...LD(c.data,r.options)}),t._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:v,errorUpdatedAt:p,status:b}=d;if(t.select&&d.data!==void 0)if(o&&d.data===(a==null?void 0:a.data)&&t.select===T(this,Wd))h=T(this,zl);else try{ne(this,Wd,t.select),h=t.select(d.data),h=q$(o==null?void 0:o.data,h,t),ne(this,zl,h),ne(this,ai,null)}catch(O){ne(this,ai,O)}else h=d.data;if(t.placeholderData!==void 0&&h===void 0&&b==="pending"){let O;if(o!=null&&o.isPlaceholderData&&t.placeholderData===(s==null?void 0:s.placeholderData))O=o.data;else if(O=typeof t.placeholderData=="function"?t.placeholderData((P=T(this,Hl))==null?void 0:P.state.data,T(this,Hl)):t.placeholderData,t.select&&O!==void 0)try{O=t.select(O),ne(this,ai,null)}catch(C){ne(this,ai,C)}O!==void 0&&(b="success",h=q$(o==null?void 0:o.data,O,t),f=!0)}T(this,ai)&&(v=T(this,ai),h=T(this,zl),p=Date.now(),b="error");const y=d.fetchStatus==="fetching",g=b==="pending",m=b==="error",$=g&&y,w=h!==void 0;return{status:b,fetchStatus:d.fetchStatus,isPending:g,isSuccess:b==="success",isError:m,isInitialLoading:$,isLoading:$,data:h,dataUpdatedAt:d.dataUpdatedAt,error:v,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!g,isLoadingError:m&&!w,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:m&&w,isStale:c_(r,t),refetch:this.refetch,promise:T(this,Eo)}}updateResult(r){const t=T(this,or),n=this.createResult(T(this,Oe),this.options);if(ne(this,Ia,T(this,Oe).state),ne(this,Bl,this.options),T(this,Ia).data!==void 0&&ne(this,Hl,T(this,Oe)),K$(n,t))return;if(this.options.experimental_prefetchInRender){const a=u=>{n.status==="error"?u.reject(n.error):n.data!==void 0&&u.resolve(n.data)},s=()=>{const u=ne(this,Eo,n.promise=Y$());a(u)},l=T(this,Eo);switch(l.status){case"pending":a(l);break;case"fulfilled":(n.status==="error"||n.data!==l.value)&&s();break;case"rejected":(n.status!=="error"||n.error!==l.reason)&&s();break}}ne(this,or,n);const i={},o=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!T(this,Wl).size)return!0;const l=new Set(s??T(this,Wl));return this.options.throwOnError&&l.add("error"),Object.keys(T(this,or)).some(u=>{const c=u;return T(this,or)[c]!==t[c]&&l.has(c)})};(r==null?void 0:r.listeners)!==!1&&o()&&(i.listeners=!0),Ee(this,De,jD).call(this,{...i,...r})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ee(this,De,J$).call(this)}},br=new WeakMap,Oe=new WeakMap,Hd=new WeakMap,or=new WeakMap,Ia=new WeakMap,Bl=new WeakMap,Eo=new WeakMap,ai=new WeakMap,Wd=new WeakMap,zl=new WeakMap,Hl=new WeakMap,Ra=new WeakMap,Aa=new WeakMap,Oo=new WeakMap,Wl=new WeakMap,De=new WeakSet,_c=function(r){Ee(this,De,r0).call(this);let t=T(this,Oe).fetch(this.options,r);return r!=null&&r.throwOnError||(t=t.catch(sn)),t},X$=function(){Ee(this,De,e0).call(this);const r=Pl(this.options.staleTime,T(this,Oe));if(ts||T(this,or).isStale||!V$(r))return;const n=ID(T(this,or).dataUpdatedAt,r)+1;ne(this,Ra,setTimeout(()=>{T(this,or).isStale||this.updateResult()},n))},Q$=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Oe)):this.options.refetchInterval)??!1},Z$=function(r){Ee(this,De,t0).call(this),ne(this,Oo,r),!(ts||Dn(this.options.enabled,T(this,Oe))===!1||!V$(T(this,Oo))||T(this,Oo)===0)&&ne(this,Aa,setInterval(()=>{(this.options.refetchIntervalInBackground||u_.isFocused())&&Ee(this,De,_c).call(this)},T(this,Oo)))},J$=function(){Ee(this,De,X$).call(this),Ee(this,De,Z$).call(this,Ee(this,De,Q$).call(this))},e0=function(){T(this,Ra)&&(clearTimeout(T(this,Ra)),ne(this,Ra,void 0))},t0=function(){T(this,Aa)&&(clearInterval(T(this,Aa)),ne(this,Aa,void 0))},r0=function(){const r=T(this,br).getQueryCache().build(T(this,br),this.options);if(r===T(this,Oe))return;const t=T(this,Oe);ne(this,Oe,r),ne(this,Hd,r.state),this.hasListeners()&&(t==null||t.removeObserver(this),r.addObserver(this))},jD=function(r){Wt.batch(()=>{r.listeners&&this.listeners.forEach(t=>{t(T(this,or))}),T(this,br).getQueryCache().notify({query:T(this,Oe),type:"observerResultsUpdated"})})},x2);function JV(e,r){return Dn(r.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&r.retryOnMount===!1)}function rC(e,r){return JV(e,r)||e.state.data!==void 0&&n0(e,r,r.refetchOnMount)}function n0(e,r,t){if(Dn(r.enabled,e)!==!1){const n=typeof t=="function"?t(e):t;return n==="always"||n!==!1&&c_(e,r)}return!1}function nC(e,r,t,n){return(e!==r||Dn(n.enabled,e)===!1)&&(!t.suspense||e.state.status!=="error")&&c_(e,t)}function c_(e,r){return Dn(r.enabled,e)!==!1&&e.isStaleByTime(Pl(r.staleTime,e))}function eK(e,r){return!K$(e.getCurrentResult(),r)}var BD=_.createContext(void 0),tK=e=>{const r=_.useContext(BD);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},rK=({client:e,children:r})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(BD.Provider,{value:e,children:r})),zD=_.createContext(!1),nK=()=>_.useContext(zD);zD.Provider;function iK(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var oK=_.createContext(iK()),aK=()=>_.useContext(oK);function sK(e,r){return typeof e=="function"?e(...r):!!e}function lK(){}var uK=(e,r)=>{(e.suspense||e.throwOnError)&&(r.isReset()||(e.retryOnMount=!1))},cK=e=>{_.useEffect(()=>{e.clearReset()},[e])},dK=({result:e,errorResetBoundary:r,throwOnError:t,query:n})=>e.isError&&!r.isReset()&&!e.isFetching&&n&&sK(t,[e.error,n]),fK=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},hK=(e,r)=>e.isLoading&&e.isFetching&&!r,vK=(e,r)=>(e==null?void 0:e.suspense)&&r.isPending,iC=(e,r,t)=>r.fetchOptimistic(e).catch(()=>{t.clearReset()});function pK(e,r,t){var c,d,f,h,v;const n=tK(),i=nK(),o=aK(),a=n.defaultQueryOptions(e);(d=(c=n.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,a),a._optimisticResults=i?"isRestoring":"optimistic",fK(a),uK(a,o),cK(o);const s=!n.getQueryCache().get(a.queryHash),[l]=_.useState(()=>new r(n,a)),u=l.getOptimisticResult(a);if(_.useSyncExternalStore(_.useCallback(p=>{const b=i?()=>{}:l.subscribe(Wt.batchCalls(p));return l.updateResult(),b},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),_.useEffect(()=>{l.setOptions(a,{listeners:!1})},[a,l]),vK(a,u))throw iC(a,l,o);if(dK({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:n.getQueryCache().get(a.queryHash)}))throw u.error;if((h=(f=n.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||h.call(f,a,u),a.experimental_prefetchInRender&&!ts&&hK(u,i)){const p=s?iC(a,l,o):(v=n.getQueryCache().get(a.queryHash))==null?void 0:v.promise;p==null||p.catch(lK).finally(()=>{l.hasListeners()||l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function oC(e,r){return pK(e,ZV)}const yK=new QV,d_=w9({component:()=>E.jsx(_.Fragment,{children:E.jsx(rK,{client:yK,children:E.jsx(bN,{children:E.jsx(pS,{})})})})}),gK=vS("/login")({component:()=>E.jsx(t_,{h:"100vh",children:E.jsxs(Bc,{children:[E.jsx(Fa,{justify:"center",mb:"lg",children:E.jsxs(Fa,{gap:"xs",align:"center",children:[E.jsx("img",{src:"/jac_logo.png",alt:"logo",width:"50"}),E.jsx($d,{order:1,children:"Jaseci Studio"})]})}),E.jsxs(ou,{withBorder:!0,w:"500px",p:"xl",children:[E.jsxs(Bc,{mb:"lg",gap:"xs",children:[E.jsx($d,{order:2,children:"Login"}),E.jsx(xy,{c:"dimmed",children:"Connect to a server to start"})]}),E.jsxs(Bc,{children:[E.jsx($p,{label:"Host"}),E.jsx($p,{label:"Email"}),E.jsx(o_,{label:"Password"}),E.jsxs(Fa,{justify:"space-between",mt:"lg",children:[E.jsx(bd,{color:"gray",children:"Test Connection"}),E.jsx(bd,{color:"teal",children:"Connect"})]})]})]})]})})}),mK=vS("/_ui")({component:()=>E.jsx(pS,{})});/**
|
60
|
-
* vis-data
|
61
|
-
* http://visjs.org/
|
62
|
-
*
|
63
|
-
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
|
64
|
-
*
|
65
|
-
* @version 7.1.9
|
66
|
-
* @date 2023-11-24T17:53:34.179Z
|
67
|
-
*
|
68
|
-
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
69
|
-
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
70
|
-
*
|
71
|
-
* @license
|
72
|
-
* vis.js is dual licensed under both
|
73
|
-
*
|
74
|
-
* 1. The Apache 2.0 License
|
75
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
76
|
-
*
|
77
|
-
* and
|
78
|
-
*
|
79
|
-
* 2. The MIT License
|
80
|
-
* http://opensource.org/licenses/MIT
|
81
|
-
*
|
82
|
-
* vis.js may be distributed under either license.
|
83
|
-
*/function Ry(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var Om=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var HD={exports:{}},Eh=function(e){return e&&e.Math===Math&&e},et=Eh(typeof globalThis=="object"&&globalThis)||Eh(typeof window=="object"&&window)||Eh(typeof self=="object"&&self)||Eh(typeof Om=="object"&&Om)||function(){return this}()||Om||Function("return this")(),Fe=function(e){try{return!!e()}catch{return!0}},bK=Fe,sf=!bK(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),$K=sf,WD=Function.prototype,aC=WD.apply,sC=WD.call,Cu=typeof Reflect=="object"&&Reflect.apply||($K?sC.bind(aC):function(){return sC.apply(aC,arguments)}),UD=sf,VD=Function.prototype,i0=VD.call,wK=UD&&VD.bind.bind(i0,i0),Ze=UD?wK:function(e){return function(){return i0.apply(e,arguments)}},KD=Ze,SK=KD({}.toString),_K=KD("".slice),oa=function(e){return _K(SK(e),8,-1)},EK=oa,OK=Ze,GD=function(e){if(EK(e)==="Function")return OK(e)},o0=typeof document=="object"&&document.all,PK=typeof o0>"u"&&o0!==void 0,qD={all:o0,IS_HTMLDDA:PK},YD=qD,CK=YD.all,dt=YD.IS_HTMLDDA?function(e){return typeof e=="function"||e===CK}:function(e){return typeof e=="function"},ps={},TK=Fe,At=!TK(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),xK=sf,Oh=Function.prototype.call,Mt=xK?Oh.bind(Oh):function(){return Oh.apply(Oh,arguments)},Ay={},XD={}.propertyIsEnumerable,QD=Object.getOwnPropertyDescriptor,kK=QD&&!XD.call({1:2},1);Ay.f=kK?function(r){var t=QD(this,r);return!!t&&t.enumerable}:XD;var ys=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}},IK=Ze,RK=Fe,AK=oa,Pm=Object,MK=IK("".split),My=RK(function(){return!Pm("z").propertyIsEnumerable(0)})?function(e){return AK(e)==="String"?MK(e,""):Pm(e)}:Pm,Tu=function(e){return e==null},NK=Tu,DK=TypeError,f_=function(e){if(NK(e))throw new DK("Can't call method on "+e);return e},FK=My,LK=f_,_i=function(e){return FK(LK(e))},lC=dt,ZD=qD,jK=ZD.all,Gt=ZD.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:lC(e)||e===jK}:function(e){return typeof e=="object"?e!==null:lC(e)},tt={},Cm=tt,Tm=et,BK=dt,uC=function(e){return BK(e)?e:void 0},yr=function(e,r){return arguments.length<2?uC(Cm[e])||uC(Tm[e]):Cm[e]&&Cm[e][r]||Tm[e]&&Tm[e][r]},zK=Ze,_t=zK({}.isPrototypeOf),aa=typeof navigator<"u"&&String(navigator.userAgent)||"",JD=et,xm=aa,cC=JD.process,dC=JD.Deno,fC=cC&&cC.versions||dC&&dC.version,hC=fC&&fC.v8,Fn,Sp;hC&&(Fn=hC.split("."),Sp=Fn[0]>0&&Fn[0]<4?1:+(Fn[0]+Fn[1]));!Sp&&xm&&(Fn=xm.match(/Edge\/(\d+)/),(!Fn||Fn[1]>=74)&&(Fn=xm.match(/Chrome\/(\d+)/),Fn&&(Sp=+Fn[1])));var xu=Sp,vC=xu,HK=Fe,WK=et,UK=WK.String,ku=!!Object.getOwnPropertySymbols&&!HK(function(){var e=Symbol("symbol detection");return!UK(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vC&&vC<41}),VK=ku,eF=VK&&!Symbol.sham&&typeof Symbol.iterator=="symbol",KK=yr,GK=dt,qK=_t,YK=eF,XK=Object,lf=YK?function(e){return typeof e=="symbol"}:function(e){var r=KK("Symbol");return GK(r)&&qK(r.prototype,XK(e))},QK=String,Iu=function(e){try{return QK(e)}catch{return"Object"}},ZK=dt,JK=Iu,eG=TypeError,Nr=function(e){if(ZK(e))return e;throw new eG(JK(e)+" is not a function")},tG=Nr,rG=Tu,h_=function(e,r){var t=e[r];return rG(t)?void 0:tG(t)},km=Mt,Im=dt,Rm=Gt,nG=TypeError,iG=function(e,r){var t,n;if(r==="string"&&Im(t=e.toString)&&!Rm(n=km(t,e))||Im(t=e.valueOf)&&!Rm(n=km(t,e))||r!=="string"&&Im(t=e.toString)&&!Rm(n=km(t,e)))return n;throw new nG("Can't convert object to primitive value")},tF={exports:{}},oG=!0,pC=et,aG=Object.defineProperty,sG=function(e,r){try{aG(pC,e,{value:r,configurable:!0,writable:!0})}catch{pC[e]=r}return r},lG=et,uG=sG,yC="__core-js_shared__",cG=lG[yC]||uG(yC,{}),v_=cG,gC=v_;(tF.exports=function(e,r){return gC[e]||(gC[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 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 Ru=tF.exports,dG=f_,fG=Object,Dr=function(e){return fG(dG(e))},hG=Ze,vG=Dr,pG=hG({}.hasOwnProperty),Et=Object.hasOwn||function(r,t){return pG(vG(r),t)},yG=Ze,gG=0,mG=Math.random(),bG=yG(1 .toString),Ny=function(e){return"Symbol("+(e===void 0?"":e)+")_"+bG(++gG+mG,36)},$G=et,wG=Ru,mC=Et,SG=Ny,_G=ku,EG=eF,sl=$G.Symbol,Am=wG("wks"),OG=EG?sl.for||sl:sl&&sl.withoutSetter||SG,at=function(e){return mC(Am,e)||(Am[e]=_G&&mC(sl,e)?sl[e]:OG("Symbol."+e)),Am[e]},PG=Mt,bC=Gt,$C=lf,CG=h_,TG=iG,xG=at,kG=TypeError,IG=xG("toPrimitive"),RG=function(e,r){if(!bC(e)||$C(e))return e;var t=CG(e,IG),n;if(t){if(r===void 0&&(r="default"),n=PG(t,e,r),!bC(n)||$C(n))return n;throw new kG("Can't convert object to primitive value")}return r===void 0&&(r="number"),TG(e,r)},AG=RG,MG=lf,Dy=function(e){var r=AG(e,"string");return MG(r)?r:r+""},NG=et,wC=Gt,a0=NG.document,DG=wC(a0)&&wC(a0.createElement),p_=function(e){return DG?a0.createElement(e):{}},FG=At,LG=Fe,jG=p_,rF=!FG&&!LG(function(){return Object.defineProperty(jG("div"),"a",{get:function(){return 7}}).a!==7}),BG=At,zG=Mt,HG=Ay,WG=ys,UG=_i,VG=Dy,KG=Et,GG=rF,SC=Object.getOwnPropertyDescriptor;ps.f=BG?SC:function(r,t){if(r=UG(r),t=VG(t),GG)try{return SC(r,t)}catch{}if(KG(r,t))return WG(!zG(HG.f,r,t),r[t])};var qG=Fe,YG=dt,XG=/#|\.prototype\./,uf=function(e,r){var t=ZG[QG(e)];return t===eq?!0:t===JG?!1:YG(r)?qG(r):!!r},QG=uf.normalize=function(e){return String(e).replace(XG,".").toLowerCase()},ZG=uf.data={},JG=uf.NATIVE="N",eq=uf.POLYFILL="P",nF=uf,_C=GD,tq=Nr,rq=sf,nq=_C(_C.bind),sa=function(e,r){return tq(e),r===void 0?e:rq?nq(e,r):function(){return e.apply(r,arguments)}},Fr={},iq=At,oq=Fe,iF=iq&&oq(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),aq=Gt,sq=String,lq=TypeError,Qr=function(e){if(aq(e))return e;throw new lq(sq(e)+" is not an object")},uq=At,cq=rF,dq=iF,Ph=Qr,EC=Dy,fq=TypeError,Mm=Object.defineProperty,hq=Object.getOwnPropertyDescriptor,Nm="enumerable",Dm="configurable",Fm="writable";Fr.f=uq?dq?function(r,t,n){if(Ph(r),t=EC(t),Ph(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Fm in n&&!n[Fm]){var i=hq(r,t);i&&i[Fm]&&(r[t]=n.value,n={configurable:Dm in n?n[Dm]:i[Dm],enumerable:Nm in n?n[Nm]:i[Nm],writable:!1})}return Mm(r,t,n)}:Mm:function(r,t,n){if(Ph(r),t=EC(t),Ph(n),cq)try{return Mm(r,t,n)}catch{}if("get"in n||"set"in n)throw new fq("Accessors not supported");return"value"in n&&(r[t]=n.value),r};var vq=At,pq=Fr,yq=ys,no=vq?function(e,r,t){return pq.f(e,r,yq(1,t))}:function(e,r,t){return e[r]=t,e},Ch=et,gq=Cu,mq=GD,bq=dt,$q=ps.f,wq=nF,Ns=tt,Sq=sa,Ds=no,OC=Et,_q=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return gq(e,this,arguments)};return r.prototype=e.prototype,r},de=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Ch:i?Ch[t]:(Ch[t]||{}).prototype,s=n?Ns:Ns[t]||Ds(Ns,t,{})[t],l=s.prototype,u,c,d,f,h,v,p,b,y;for(f in r)u=wq(n?f:t+(i?".":"#")+f,e.forced),c=!u&&a&&OC(a,f),v=s[f],c&&(e.dontCallGetSet?(y=$q(a,f),p=y&&y.value):p=a[f]),h=c&&p?p:r[f],!(c&&typeof v==typeof h)&&(e.bind&&c?b=Sq(h,Ch):e.wrap&&c?b=_q(h):o&&bq(h)?b=mq(h):b=h,(e.sham||h&&h.sham||v&&v.sham)&&Ds(b,"sham",!0),Ds(s,f,b),o&&(d=t+"Prototype",OC(Ns,d)||Ds(Ns,d,{}),Ds(Ns[d],f,h),e.real&&l&&(u||!l[f])&&Ds(l,f,h)))},Eq=de,Oq=At,PC=Fr.f;Eq({target:"Object",stat:!0,forced:Object.defineProperty!==PC,sham:!Oq},{defineProperty:PC});var Pq=tt,oF=Pq.Object,Cq=HD.exports=function(r,t,n){return oF.defineProperty(r,t,n)};oF.defineProperty.sham&&(Cq.sham=!0);var Tq=HD.exports,xq=Tq,aF=xq,kq=aF,Iq=kq,Rq=Iq,Aq=Rq,sF=Aq,Fy=ve(sF),Mq=oa,la=Array.isArray||function(r){return Mq(r)==="Array"},Nq=Math.ceil,Dq=Math.floor,Fq=Math.trunc||function(r){var t=+r;return(t>0?Dq:Nq)(t)},Lq=Fq,Ly=function(e){var r=+e;return r!==r||r===0?0:Lq(r)},jq=Ly,Bq=Math.min,zq=function(e){return e>0?Bq(jq(e),9007199254740991):0},Hq=zq,Zr=function(e){return Hq(e.length)},Wq=TypeError,Uq=9007199254740991,jy=function(e){if(e>Uq)throw Wq("Maximum allowed index exceeded");return e},Vq=Dy,Kq=Fr,Gq=ys,Au=function(e,r,t){var n=Vq(r);n in e?Kq.f(e,n,Gq(0,t)):e[n]=t},qq=at,Yq=qq("toStringTag"),lF={};lF[Yq]="z";var y_=String(lF)==="[object z]",Xq=y_,Qq=dt,Ev=oa,Zq=at,Jq=Zq("toStringTag"),eY=Object,tY=Ev(function(){return arguments}())==="Arguments",rY=function(e,r){try{return e[r]}catch{}},io=Xq?Ev:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=rY(r=eY(e),Jq))=="string"?t:tY?Ev(r):(n=Ev(r))==="Object"&&Qq(r.callee)?"Arguments":n},nY=Ze,iY=dt,s0=v_,oY=nY(Function.toString);iY(s0.inspectSource)||(s0.inspectSource=function(e){return oY(e)});var uF=s0.inspectSource,aY=Ze,sY=Fe,cF=dt,lY=io,uY=yr,cY=uF,dF=function(){},dY=[],fF=uY("Reflect","construct"),g_=/^\s*(?:class|function)\b/,fY=aY(g_.exec),hY=!g_.test(dF),fc=function(r){if(!cF(r))return!1;try{return fF(dF,dY,r),!0}catch{return!1}},hF=function(r){if(!cF(r))return!1;switch(lY(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return hY||!!fY(g_,cY(r))}catch{return!0}};hF.sham=!0;var By=!fF||sY(function(){var e;return fc(fc.call)||!fc(Object)||!fc(function(){e=!0})||e})?hF:fc,CC=la,vY=By,pY=Gt,yY=at,gY=yY("species"),TC=Array,mY=function(e){var r;return CC(e)&&(r=e.constructor,vY(r)&&(r===TC||CC(r.prototype))?r=void 0:pY(r)&&(r=r[gY],r===null&&(r=void 0))),r===void 0?TC:r},bY=mY,zy=function(e,r){return new(bY(e))(r===0?0:r)},$Y=Fe,wY=at,SY=xu,_Y=wY("species"),cf=function(e){return SY>=51||!$Y(function(){var r=[],t=r.constructor={};return t[_Y]=function(){return{foo:1}},r[e](Boolean).foo!==1})},EY=de,OY=Fe,PY=la,CY=Gt,TY=Dr,xY=Zr,xC=jy,kC=Au,kY=zy,IY=cf,RY=at,AY=xu,vF=RY("isConcatSpreadable"),MY=AY>=51||!OY(function(){var e=[];return e[vF]=!1,e.concat()[0]!==e}),NY=function(e){if(!CY(e))return!1;var r=e[vF];return r!==void 0?!!r:PY(e)},DY=!MY||!IY("concat");EY({target:"Array",proto:!0,arity:1,forced:DY},{concat:function(r){var t=TY(this),n=kY(t,0),i=0,o,a,s,l,u;for(o=-1,s=arguments.length;o<s;o++)if(u=o===-1?t:arguments[o],NY(u))for(l=xY(u),xC(i+l),a=0;a<l;a++,i++)a in u&&kC(n,i,u[a]);else xC(i+1),kC(n,i++,u);return n.length=i,n}});var FY=io,LY=String,gs=function(e){if(FY(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return LY(e)},Hy={},jY=Ly,BY=Math.max,zY=Math.min,Wy=function(e,r){var t=jY(e);return t<0?BY(t+r,0):zY(t,r)},HY=_i,WY=Wy,UY=Zr,IC=function(e){return function(r,t,n){var i=HY(r),o=UY(i),a=WY(n,o),s;if(e&&t!==t){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===t)return e||a||0;return!e&&-1}},VY={includes:IC(!0),indexOf:IC(!1)},df={},KY=Ze,Lm=Et,GY=_i,qY=VY.indexOf,YY=df,RC=KY([].push),pF=function(e,r){var t=GY(e),n=0,i=[],o;for(o in t)!Lm(YY,o)&&Lm(t,o)&&RC(i,o);for(;r.length>n;)Lm(t,o=r[n++])&&(~qY(i,o)||RC(i,o));return i},m_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],XY=pF,QY=m_,Uy=Object.keys||function(r){return XY(r,QY)},ZY=At,JY=iF,eX=Fr,tX=Qr,rX=_i,nX=Uy;Hy.f=ZY&&!JY?Object.defineProperties:function(r,t){tX(r);for(var n=rX(t),i=nX(t),o=i.length,a=0,s;o>a;)eX.f(r,s=i[a++],n[s]);return r};var iX=yr,yF=iX("document","documentElement"),oX=Ru,aX=Ny,AC=oX("keys"),Vy=function(e){return AC[e]||(AC[e]=aX(e))},sX=Qr,lX=Hy,MC=m_,uX=df,cX=yF,dX=p_,fX=Vy,NC=">",DC="<",l0="prototype",u0="script",gF=fX("IE_PROTO"),jm=function(){},mF=function(e){return DC+u0+NC+e+DC+"/"+u0+NC},FC=function(e){e.write(mF("")),e.close();var r=e.parentWindow.Object;return e=null,r},hX=function(){var e=dX("iframe"),r="java"+u0+":",t;return e.style.display="none",cX.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(mF("document.F=Object")),t.close(),t.F},Th,Ov=function(){try{Th=new ActiveXObject("htmlfile")}catch{}Ov=typeof document<"u"?document.domain&&Th?FC(Th):hX():FC(Th);for(var e=MC.length;e--;)delete Ov[l0][MC[e]];return Ov()};uX[gF]=!0;var ms=Object.create||function(r,t){var n;return r!==null?(jm[l0]=sX(r),n=new jm,jm[l0]=null,n[gF]=r):n=Ov(),t===void 0?n:lX.f(n,t)},ff={},vX=pF,pX=m_,yX=pX.concat("length","prototype");ff.f=Object.getOwnPropertyNames||function(r){return vX(r,yX)};var b_={},LC=Wy,gX=Zr,mX=Au,bX=Array,$X=Math.max,bF=function(e,r,t){for(var n=gX(e),i=LC(r,n),o=LC(t===void 0?n:t,n),a=bX($X(o-i,0)),s=0;i<o;i++,s++)mX(a,s,e[i]);return a.length=s,a},wX=oa,SX=_i,$F=ff.f,_X=bF,wF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],EX=function(e){try{return $F(e)}catch{return _X(wF)}};b_.f=function(r){return wF&&wX(r)==="Window"?EX(r):$F(SX(r))};var hf={};hf.f=Object.getOwnPropertySymbols;var OX=no,Mu=function(e,r,t,n){return n&&n.enumerable?e[r]=t:OX(e,r,t),e},PX=Fr,$_=function(e,r,t){return PX.f(e,r,t)},vf={},CX=at;vf.f=CX;var jC=tt,TX=Et,xX=vf,kX=Fr.f,ft=function(e){var r=jC.Symbol||(jC.Symbol={});TX(r,e)||kX(r,e,{value:xX.f(e)})},IX=Mt,RX=yr,AX=at,MX=Mu,SF=function(){var e=RX("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,n=AX("toPrimitive");r&&!r[n]&&MX(r,n,function(i){return IX(t,this)},{arity:1})},NX=y_,DX=io,FX=NX?{}.toString:function(){return"[object "+DX(this)+"]"},LX=y_,jX=Fr.f,BX=no,zX=Et,HX=FX,WX=at,BC=WX("toStringTag"),bs=function(e,r,t,n){if(e){var i=t?e:e.prototype;zX(i,BC)||jX(i,BC,{configurable:!0,value:r}),n&&!LX&&BX(i,"toString",HX)}},UX=et,VX=dt,zC=UX.WeakMap,KX=VX(zC)&&/native code/.test(String(zC)),GX=KX,_F=et,qX=Gt,YX=no,Bm=Et,zm=v_,XX=Vy,QX=df,HC="Object already initialized",c0=_F.TypeError,ZX=_F.WeakMap,_p,_d,Ep,JX=function(e){return Ep(e)?_d(e):_p(e,{})},eQ=function(e){return function(r){var t;if(!qX(r)||(t=_d(r)).type!==e)throw new c0("Incompatible receiver, "+e+" required");return t}};if(GX||zm.state){var Jn=zm.state||(zm.state=new ZX);Jn.get=Jn.get,Jn.has=Jn.has,Jn.set=Jn.set,_p=function(e,r){if(Jn.has(e))throw new c0(HC);return r.facade=e,Jn.set(e,r),r},_d=function(e){return Jn.get(e)||{}},Ep=function(e){return Jn.has(e)}}else{var Fs=XX("state");QX[Fs]=!0,_p=function(e,r){if(Bm(e,Fs))throw new c0(HC);return r.facade=e,YX(e,Fs,r),r},_d=function(e){return Bm(e,Fs)?e[Fs]:{}},Ep=function(e){return Bm(e,Fs)}}var Nu={set:_p,get:_d,has:Ep,enforce:JX,getterFor:eQ},tQ=sa,rQ=Ze,nQ=My,iQ=Dr,oQ=Zr,aQ=zy,WC=rQ([].push),so=function(e){var r=e===1,t=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,u,c,d){for(var f=iQ(l),h=nQ(f),v=tQ(u,c),p=oQ(h),b=0,y=d||aQ,g=r?y(l,p):t||a?y(l,0):void 0,m,$;p>b;b++)if((s||b in h)&&(m=h[b],$=v(m,b,f),e))if(r)g[b]=$;else if($)switch(e){case 3:return!0;case 5:return m;case 6:return b;case 2:WC(g,m)}else switch(e){case 4:return!1;case 7:WC(g,m)}return o?-1:n||i?i:g}},Du={forEach:so(0),map:so(1),filter:so(2),some:so(3),every:so(4),find:so(5),findIndex:so(6),filterReject:so(7)},Ky=de,pf=et,w_=Mt,sQ=Ze,au=At,su=ku,lQ=Fe,xt=Et,uQ=_t,d0=Qr,Gy=_i,S_=Dy,cQ=gs,f0=ys,Ed=ms,EF=Uy,dQ=ff,OF=b_,fQ=hf,PF=ps,CF=Fr,hQ=Hy,TF=Ay,UC=Mu,vQ=$_,__=Ru,pQ=Vy,xF=df,VC=Ny,yQ=at,gQ=vf,mQ=ft,bQ=SF,$Q=bs,kF=Nu,qy=Du.forEach,_r=pQ("hidden"),Yy="Symbol",Od="prototype",wQ=kF.set,KC=kF.getterFor(Yy),Hn=Object[Od],La=pf.Symbol,Ec=La&&La[Od],SQ=pf.RangeError,_Q=pf.TypeError,Hm=pf.QObject,IF=PF.f,ja=CF.f,RF=OF.f,EQ=TF.f,AF=sQ([].push),Zi=__("symbols"),yf=__("op-symbols"),OQ=__("wks"),h0=!Hm||!Hm[Od]||!Hm[Od].findChild,MF=function(e,r,t){var n=IF(Hn,r);n&&delete Hn[r],ja(e,r,t),n&&e!==Hn&&ja(Hn,r,n)},v0=au&&lQ(function(){return Ed(ja({},"a",{get:function(){return ja(this,"a",{value:7}).a}})).a!==7})?MF:ja,Wm=function(e,r){var t=Zi[e]=Ed(Ec);return wQ(t,{type:Yy,tag:e,description:r}),au||(t.description=r),t},Xy=function(r,t,n){r===Hn&&Xy(yf,t,n),d0(r);var i=S_(t);return d0(n),xt(Zi,i)?(n.enumerable?(xt(r,_r)&&r[_r][i]&&(r[_r][i]=!1),n=Ed(n,{enumerable:f0(0,!1)})):(xt(r,_r)||ja(r,_r,f0(1,{})),r[_r][i]=!0),v0(r,i,n)):ja(r,i,n)},E_=function(r,t){d0(r);var n=Gy(t),i=EF(n).concat(LF(n));return qy(i,function(o){(!au||w_(NF,n,o))&&Xy(r,o,n[o])}),r},PQ=function(r,t){return t===void 0?Ed(r):E_(Ed(r),t)},NF=function(r){var t=S_(r),n=w_(EQ,this,t);return this===Hn&&xt(Zi,t)&&!xt(yf,t)?!1:n||!xt(this,t)||!xt(Zi,t)||xt(this,_r)&&this[_r][t]?n:!0},DF=function(r,t){var n=Gy(r),i=S_(t);if(!(n===Hn&&xt(Zi,i)&&!xt(yf,i))){var o=IF(n,i);return o&&xt(Zi,i)&&!(xt(n,_r)&&n[_r][i])&&(o.enumerable=!0),o}},FF=function(r){var t=RF(Gy(r)),n=[];return qy(t,function(i){!xt(Zi,i)&&!xt(xF,i)&&AF(n,i)}),n},LF=function(e){var r=e===Hn,t=RF(r?yf:Gy(e)),n=[];return qy(t,function(i){xt(Zi,i)&&(!r||xt(Hn,i))&&AF(n,Zi[i])}),n};su||(La=function(){if(uQ(Ec,this))throw new _Q("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:cQ(arguments[0]),t=VC(r),n=function(i){var o=this===void 0?pf:this;o===Hn&&w_(n,yf,i),xt(o,_r)&&xt(o[_r],t)&&(o[_r][t]=!1);var a=f0(1,i);try{v0(o,t,a)}catch(s){if(!(s instanceof SQ))throw s;MF(o,t,a)}};return au&&h0&&v0(Hn,t,{configurable:!0,set:n}),Wm(t,r)},Ec=La[Od],UC(Ec,"toString",function(){return KC(this).tag}),UC(La,"withoutSetter",function(e){return Wm(VC(e),e)}),TF.f=NF,CF.f=Xy,hQ.f=E_,PF.f=DF,dQ.f=OF.f=FF,fQ.f=LF,gQ.f=function(e){return Wm(yQ(e),e)},au&&vQ(Ec,"description",{configurable:!0,get:function(){return KC(this).description}}));Ky({global:!0,constructor:!0,wrap:!0,forced:!su,sham:!su},{Symbol:La});qy(EF(OQ),function(e){mQ(e)});Ky({target:Yy,stat:!0,forced:!su},{useSetter:function(){h0=!0},useSimple:function(){h0=!1}});Ky({target:"Object",stat:!0,forced:!su,sham:!au},{create:PQ,defineProperty:Xy,defineProperties:E_,getOwnPropertyDescriptor:DF});Ky({target:"Object",stat:!0,forced:!su},{getOwnPropertyNames:FF});bQ();$Q(La,Yy);xF[_r]=!0;var CQ=ku,jF=CQ&&!!Symbol.for&&!!Symbol.keyFor,TQ=de,xQ=yr,kQ=Et,IQ=gs,BF=Ru,RQ=jF,Um=BF("string-to-symbol-registry"),AQ=BF("symbol-to-string-registry");TQ({target:"Symbol",stat:!0,forced:!RQ},{for:function(e){var r=IQ(e);if(kQ(Um,r))return Um[r];var t=xQ("Symbol")(r);return Um[r]=t,AQ[t]=r,t}});var MQ=de,NQ=Et,DQ=lf,FQ=Iu,LQ=Ru,jQ=jF,GC=LQ("symbol-to-string-registry");MQ({target:"Symbol",stat:!0,forced:!jQ},{keyFor:function(r){if(!DQ(r))throw new TypeError(FQ(r)+" is not a symbol");if(NQ(GC,r))return GC[r]}});var BQ=Ze,gf=BQ([].slice),zQ=Ze,qC=la,HQ=dt,YC=oa,WQ=gs,XC=zQ([].push),UQ=function(e){if(HQ(e))return e;if(qC(e)){for(var r=e.length,t=[],n=0;n<r;n++){var i=e[n];typeof i=="string"?XC(t,i):(typeof i=="number"||YC(i)==="Number"||YC(i)==="String")&&XC(t,WQ(i))}var o=t.length,a=!0;return function(s,l){if(a)return a=!1,l;if(qC(this))return l;for(var u=0;u<o;u++)if(t[u]===s)return l}}},VQ=de,zF=yr,HF=Cu,KQ=Mt,mf=Ze,WF=Fe,QC=dt,ZC=lf,UF=gf,GQ=UQ,qQ=ku,YQ=String,Bo=zF("JSON","stringify"),xh=mf(/./.exec),JC=mf("".charAt),XQ=mf("".charCodeAt),QQ=mf("".replace),ZQ=mf(1 .toString),JQ=/[\uD800-\uDFFF]/g,eT=/^[\uD800-\uDBFF]$/,tT=/^[\uDC00-\uDFFF]$/,rT=!qQ||WF(function(){var e=zF("Symbol")("stringify detection");return Bo([e])!=="[null]"||Bo({a:e})!=="{}"||Bo(Object(e))!=="{}"}),nT=WF(function(){return Bo("\uDF06\uD834")!=='"\\udf06\\ud834"'||Bo("\uDEAD")!=='"\\udead"'}),eZ=function(e,r){var t=UF(arguments),n=GQ(r);if(!(!QC(n)&&(e===void 0||ZC(e))))return t[1]=function(i,o){if(QC(n)&&(o=KQ(n,this,YQ(i),o)),!ZC(o))return o},HF(Bo,null,t)},tZ=function(e,r,t){var n=JC(t,r-1),i=JC(t,r+1);return xh(eT,e)&&!xh(tT,i)||xh(tT,e)&&!xh(eT,n)?"\\u"+ZQ(XQ(e,0),16):e};Bo&&VQ({target:"JSON",stat:!0,arity:3,forced:rT||nT},{stringify:function(r,t,n){var i=UF(arguments),o=HF(rT?eZ:Bo,null,i);return nT&&typeof o=="string"?QQ(o,JQ,tZ):o}});var rZ=de,nZ=ku,iZ=Fe,VF=hf,oZ=Dr,aZ=!nZ||iZ(function(){VF.f(1)});rZ({target:"Object",stat:!0,forced:aZ},{getOwnPropertySymbols:function(r){var t=VF.f;return t?t(oZ(r)):[]}});var sZ=ft;sZ("asyncIterator");var lZ=ft;lZ("hasInstance");var uZ=ft;uZ("isConcatSpreadable");var cZ=ft;cZ("iterator");var dZ=ft;dZ("match");var fZ=ft;fZ("matchAll");var hZ=ft;hZ("replace");var vZ=ft;vZ("search");var pZ=ft;pZ("species");var yZ=ft;yZ("split");var gZ=ft,mZ=SF;gZ("toPrimitive");mZ();var bZ=yr,$Z=ft,wZ=bs;$Z("toStringTag");wZ(bZ("Symbol"),"Symbol");var SZ=ft;SZ("unscopables");var _Z=et,EZ=bs;EZ(_Z.JSON,"JSON",!0);var OZ=tt,PZ=OZ.Symbol,Fu={},p0=At,CZ=Et,KF=Function.prototype,TZ=p0&&Object.getOwnPropertyDescriptor,O_=CZ(KF,"name"),xZ=O_&&(function(){}).name==="something",kZ=O_&&(!p0||p0&&TZ(KF,"name").configurable),IZ={EXISTS:O_,PROPER:xZ,CONFIGURABLE:kZ},RZ=Fe,GF=!RZ(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),AZ=Et,MZ=dt,NZ=Dr,DZ=Vy,FZ=GF,iT=DZ("IE_PROTO"),y0=Object,LZ=y0.prototype,Qy=FZ?y0.getPrototypeOf:function(e){var r=NZ(e);if(AZ(r,iT))return r[iT];var t=r.constructor;return MZ(t)&&r instanceof t?t.prototype:r instanceof y0?LZ:null},jZ=Fe,BZ=dt,zZ=Gt,HZ=ms,oT=Qy,WZ=Mu,UZ=at,g0=UZ("iterator"),qF=!1,Fi,Vm,Km;[].keys&&(Km=[].keys(),"next"in Km?(Vm=oT(oT(Km)),Vm!==Object.prototype&&(Fi=Vm)):qF=!0);var VZ=!zZ(Fi)||jZ(function(){var e={};return Fi[g0].call(e)!==e});VZ?Fi={}:Fi=HZ(Fi);BZ(Fi[g0])||WZ(Fi,g0,function(){return this});var YF={IteratorPrototype:Fi,BUGGY_SAFARI_ITERATORS:qF},KZ=YF.IteratorPrototype,GZ=ms,qZ=ys,YZ=bs,XZ=Fu,QZ=function(){return this},ZZ=function(e,r,t,n){var i=r+" Iterator";return e.prototype=GZ(KZ,{next:qZ(+!n,t)}),YZ(e,i,!1,!0),XZ[i]=QZ,e},JZ=Ze,eJ=Nr,tJ=function(e,r,t){try{return JZ(eJ(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}},rJ=dt,nJ=String,iJ=TypeError,oJ=function(e){if(typeof e=="object"||rJ(e))return e;throw new iJ("Can't set "+nJ(e)+" as a prototype")},aJ=tJ,sJ=Qr,lJ=oJ,XF=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=aJ(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,o){return sJ(i),lJ(o),e?t(i,o):i.__proto__=o,i}}():void 0),uJ=de,cJ=Mt,dJ=IZ,fJ=ZZ,hJ=Qy,vJ=bs,aT=Mu,pJ=at,sT=Fu,yJ=YF,gJ=dJ.PROPER,kh=yJ.BUGGY_SAFARI_ITERATORS,Gm=pJ("iterator"),lT="keys",Ih="values",uT="entries",mJ=function(){return this},P_=function(e,r,t,n,i,o,a){fJ(t,r,n);var s=function(y){if(y===i&&f)return f;if(!kh&&y&&y in c)return c[y];switch(y){case lT:return function(){return new t(this,y)};case Ih:return function(){return new t(this,y)};case uT:return function(){return new t(this,y)}}return function(){return new t(this)}},l=r+" Iterator",u=!1,c=e.prototype,d=c[Gm]||c["@@iterator"]||i&&c[i],f=!kh&&d||s(i),h=r==="Array"&&c.entries||d,v,p,b;if(h&&(v=hJ(h.call(new e)),v!==Object.prototype&&v.next&&(vJ(v,l,!0,!0),sT[l]=mJ)),gJ&&i===Ih&&d&&d.name!==Ih&&(u=!0,f=function(){return cJ(d,this)}),i)if(p={values:s(Ih),keys:o?f:s(lT),entries:s(uT)},a)for(b in p)(kh||u||!(b in c))&&aT(c,b,p[b]);else uJ({target:r,proto:!0,forced:kh||u},p);return a&&c[Gm]!==f&&aT(c,Gm,f,{name:i}),sT[r]=f,p},C_=function(e,r){return{value:e,done:r}},bJ=_i,cT=Fu,QF=Nu;Fr.f;var $J=P_,Rh=C_,ZF="Array Iterator",wJ=QF.set,SJ=QF.getterFor(ZF);$J(Array,"Array",function(e,r){wJ(this,{type:ZF,target:bJ(e),index:0,kind:r})},function(){var e=SJ(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Rh(void 0,!0);switch(e.kind){case"keys":return Rh(t,!1);case"values":return Rh(r[t],!1)}return Rh([t,r[t]],!1)},"values");cT.Arguments=cT.Array;var _J={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},EJ=_J,OJ=et,PJ=io,CJ=no,dT=Fu,TJ=at,fT=TJ("toStringTag");for(var qm in EJ){var hT=OJ[qm],Ym=hT&&hT.prototype;Ym&&PJ(Ym)!==fT&&CJ(Ym,fT,qm),dT[qm]=dT.Array}var xJ=PZ,JF=xJ,kJ=at,IJ=Fr.f,vT=kJ("metadata"),pT=Function.prototype;pT[vT]===void 0&&IJ(pT,vT,{value:null});var RJ=ft;RJ("asyncDispose");var AJ=ft;AJ("dispose");var MJ=ft;MJ("metadata");var NJ=JF,DJ=NJ,FJ=yr,LJ=Ze,T_=FJ("Symbol"),jJ=T_.keyFor,BJ=LJ(T_.prototype.valueOf),eL=T_.isRegisteredSymbol||function(r){try{return jJ(BJ(r))!==void 0}catch{return!1}},zJ=de,HJ=eL;zJ({target:"Symbol",stat:!0},{isRegisteredSymbol:HJ});var WJ=Ru,tL=yr,UJ=Ze,VJ=lf,KJ=at,Op=tL("Symbol"),yT=Op.isWellKnownSymbol,rL=tL("Object","getOwnPropertyNames"),GJ=UJ(Op.prototype.valueOf),gT=WJ("wks");for(var Xm=0,mT=rL(Op),qJ=mT.length;Xm<qJ;Xm++)try{var bT=mT[Xm];VJ(Op[bT])&&KJ(bT)}catch{}var nL=function(r){if(yT&&yT(r))return!0;try{for(var t=GJ(r),n=0,i=rL(gT),o=i.length;n<o;n++)if(gT[i[n]]==t)return!0}catch{}return!1},YJ=de,XJ=nL;YJ({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:XJ});var QJ=ft;QJ("matcher");var ZJ=ft;ZJ("observable");var JJ=de,eee=eL;JJ({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:eee});var tee=de,ree=nL;tee({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:ree});var nee=ft;nee("metadataKey");var iee=ft;iee("patternMatch");var oee=ft;oee("replaceAll");var aee=DJ,see=aee,x_=see,ll=ve(x_),k_=Ze,lee=Ly,uee=gs,cee=f_,dee=k_("".charAt),$T=k_("".charCodeAt),fee=k_("".slice),wT=function(e){return function(r,t){var n=uee(cee(r)),i=lee(t),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=$T(n,i),a<55296||a>56319||i+1===o||(s=$T(n,i+1))<56320||s>57343?e?dee(n,i):a:e?fee(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},hee={codeAt:wT(!1),charAt:wT(!0)},vee=hee.charAt,pee=gs,iL=Nu,yee=P_,ST=C_,oL="String Iterator",gee=iL.set,mee=iL.getterFor(oL);yee(String,"String",function(e){gee(this,{type:oL,string:pee(e),index:0})},function(){var r=mee(this),t=r.string,n=r.index,i;return n>=t.length?ST(void 0,!0):(i=vee(t,n),r.index+=i.length,ST(i,!1))});var bee=vf,$ee=bee.f("iterator"),wee=$ee,aL=wee,See=aL,_ee=See,Eee=_ee,Oee=Eee,sL=Oee,Pee=ve(sL);function lu(e){"@babel/helpers - typeof";return lu=typeof ll=="function"&&typeof Pee=="symbol"?function(r){return typeof r}:function(r){return r&&typeof ll=="function"&&r.constructor===ll&&r!==ll.prototype?"symbol":typeof r},lu(e)}var Cee=vf,Tee=Cee.f("toPrimitive"),xee=Tee,kee=xee,Iee=kee,Ree=Iee,Aee=Ree,Mee=Aee,Nee=Mee,Dee=ve(Nee);function Fee(e,r){if(lu(e)!=="object"||e===null)return e;var t=e[Dee];if(t!==void 0){var n=t.call(e,r||"default");if(lu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function lL(e){var r=Fee(e,"string");return lu(r)==="symbol"?r:String(r)}function _T(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Fy(e,lL(n.key),n)}}function Zy(e,r,t){return r&&_T(e.prototype,r),t&&_T(e,t),Fy(e,"prototype",{writable:!1}),e}function zo(e,r,t){return r=lL(r),r in e?Fy(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var uL=Ze,Lee=Nr,jee=Gt,Bee=Et,ET=gf,zee=sf,cL=Function,Hee=uL([].concat),Wee=uL([].join),Qm={},Uee=function(e,r,t){if(!Bee(Qm,r)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";Qm[r]=cL("C,a","return new C("+Wee(n,",")+")")}return Qm[r](e,t)},dL=zee?cL.bind:function(r){var t=Lee(this),n=t.prototype,i=ET(arguments,1),o=function(){var s=Hee(i,ET(arguments));return this instanceof o?Uee(t,s.length,s):t.apply(r,s)};return jee(n)&&(o.prototype=n),o},Vee=de,OT=dL;Vee({target:"Function",proto:!0,forced:Function.bind!==OT},{bind:OT});var Kee=et,Gee=tt,er=function(e,r){var t=Gee[e+"Prototype"],n=t&&t[r];if(n)return n;var i=Kee[e],o=i&&i.prototype;return o&&o[r]},qee=er,Yee=qee("Function","bind"),Xee=_t,Qee=Yee,Zm=Function.prototype,Zee=function(e){var r=e.bind;return e===Zm||Xee(Zm,e)&&r===Zm.bind?Qee:r},Jee=Zee,fL=Jee,ete=fL,hL=ve(ete),tte=Nr,rte=Dr,nte=My,ite=Zr,ote=TypeError,PT=function(e){return function(r,t,n,i){tte(t);var o=rte(r),a=nte(o),s=ite(o),l=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(l in a){i=a[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw new ote("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in a&&(i=t(i,a[l],l,o));return i}},ate={left:PT(!1),right:PT(!0)},ste=Fe,Jy=function(e,r){var t=[][e];return!!t&&ste(function(){t.call(null,r||function(){return 1},1)})},lte=et,ute=oa,bf=ute(lte.process)==="process",cte=de,dte=ate.left,fte=Jy,CT=xu,hte=bf,vte=!hte&&CT>79&&CT<83,pte=vte||!fte("reduce");cte({target:"Array",proto:!0,forced:pte},{reduce:function(r){var t=arguments.length;return dte(this,r,t,t>1?arguments[1]:void 0)}});var yte=er,gte=yte("Array","reduce"),mte=_t,bte=gte,Jm=Array.prototype,$te=function(e){var r=e.reduce;return e===Jm||mte(Jm,e)&&r===Jm.reduce?bte:r},wte=$te,Ste=wte,_te=Ste,Ete=ve(_te),Ote=de,Pte=Du.filter,Cte=cf,Tte=Cte("filter");Ote({target:"Array",proto:!0,forced:!Tte},{filter:function(r){return Pte(this,r,arguments.length>1?arguments[1]:void 0)}});var xte=er,kte=xte("Array","filter"),Ite=_t,Rte=kte,eb=Array.prototype,Ate=function(e){var r=e.filter;return e===eb||Ite(eb,e)&&r===eb.filter?Rte:r},Mte=Ate,Nte=Mte,Dte=Nte,ul=ve(Dte),Fte=de,Lte=Du.map,jte=cf,Bte=jte("map");Fte({target:"Array",proto:!0,forced:!Bte},{map:function(r){return Lte(this,r,arguments.length>1?arguments[1]:void 0)}});var zte=er,Hte=zte("Array","map"),Wte=_t,Ute=Hte,tb=Array.prototype,Vte=function(e){var r=e.map;return e===tb||Wte(tb,e)&&r===tb.map?Ute:r},Kte=Vte,Gte=Kte,qte=Gte,Ln=ve(qte),Yte=la,Xte=Zr,Qte=jy,Zte=sa,vL=function(e,r,t,n,i,o,a,s){for(var l=i,u=0,c=a?Zte(a,s):!1,d,f;u<n;)u in t&&(d=c?c(t[u],u,r):t[u],o>0&&Yte(d)?(f=Xte(d),l=vL(e,r,d,f,l,o-1)-1):(Qte(l+1),e[l]=d),l++),u++;return l},Jte=vL,ere=de,tre=Jte,rre=Nr,nre=Dr,ire=Zr,ore=zy;ere({target:"Array",proto:!0},{flatMap:function(r){var t=nre(this),n=ire(t),i;return rre(r),i=ore(t,0),i.length=tre(i,t,t,n,0,1,r,arguments.length>1?arguments[1]:void 0),i}});var are=er;are("Array","flatMap");var sre=Mt,TT=Qr,lre=h_,pL=function(e,r,t){var n,i;TT(e);try{if(n=lre(e,"return"),!n){if(r==="throw")throw t;return t}n=sre(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return TT(n),t},ure=Qr,cre=pL,dre=function(e,r,t,n){try{return n?r(ure(t)[0],t[1]):r(t)}catch(i){cre(e,"throw",i)}},fre=at,hre=Fu,vre=fre("iterator"),pre=Array.prototype,yL=function(e){return e!==void 0&&(hre.Array===e||pre[vre]===e)},yre=io,xT=h_,gre=Tu,mre=Fu,bre=at,$re=bre("iterator"),eg=function(e){if(!gre(e))return xT(e,$re)||xT(e,"@@iterator")||mre[yre(e)]},wre=Mt,Sre=Nr,_re=Qr,Ere=Iu,Ore=eg,Pre=TypeError,I_=function(e,r){var t=arguments.length<2?Ore(e):r;if(Sre(t))return _re(wre(t,e));throw new Pre(Ere(e)+" is not iterable")},Cre=sa,Tre=Mt,xre=Dr,kre=dre,Ire=yL,Rre=By,Are=Zr,kT=Au,Mre=I_,Nre=eg,IT=Array,Dre=function(r){var t=xre(r),n=Rre(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=Cre(o,i>2?arguments[2]:void 0));var s=Nre(t),l=0,u,c,d,f,h,v;if(s&&!(this===IT&&Ire(s)))for(f=Mre(t,s),h=f.next,c=n?new this:[];!(d=Tre(h,f)).done;l++)v=a?kre(f,o,[d.value,l],!0):d.value,kT(c,l,v);else for(u=Are(t),c=n?new this(u):IT(u);u>l;l++)v=a?o(t[l],l):t[l],kT(c,l,v);return c.length=l,c},Fre=at,gL=Fre("iterator"),mL=!1;try{var Lre=0,RT={next:function(){return{done:!!Lre++}},return:function(){mL=!0}};RT[gL]=function(){return this},Array.from(RT,function(){throw 2})}catch{}var bL=function(e,r){try{if(!r&&!mL)return!1}catch{return!1}var t=!1;try{var n={};n[gL]=function(){return{next:function(){return{done:t=!0}}}},e(n)}catch{}return t},jre=de,Bre=Dre,zre=bL,Hre=!zre(function(e){Array.from(e)});jre({target:"Array",stat:!0,forced:Hre},{from:Bre});var Wre=tt,Ure=Wre.Array.from,Vre=Ure,$L=Vre,Kre=$L,R_=ve(Kre),Gre=eg,qre=Gre,Yre=qre,Xre=Yre,Qre=Xre,Zre=Qre,Jre=Zre,ene=Jre,wL=ene,SL=ve(wL),tne=wL,A_=ve(tne),rne=de,nne=la;rne({target:"Array",stat:!0},{isArray:nne});var ine=tt,one=ine.Array.isArray,ane=one,_L=ane,sne=_L,lne=sne,une=lne,cne=une,dne=cne,EL=ve(dne);function fne(e){if(EL(e))return e}var hne=At,vne=la,pne=TypeError,yne=Object.getOwnPropertyDescriptor,gne=hne&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),OL=gne?function(e,r){if(vne(e)&&!yne(e,"length").writable)throw new pne("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r},mne=de,bne=Dr,$ne=Zr,wne=OL,Sne=jy,_ne=Fe,Ene=_ne(function(){return[].push.call({length:4294967296},1)!==4294967297}),One=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},Pne=Ene||!One();mne({target:"Array",proto:!0,arity:1,forced:Pne},{push:function(r){var t=bne(this),n=$ne(t),i=arguments.length;Sne(n+i);for(var o=0;o<i;o++)t[n]=arguments[o],n++;return wne(t,n),n}});var Cne=er,Tne=Cne("Array","push"),xne=_t,kne=Tne,rb=Array.prototype,Ine=function(e){var r=e.push;return e===rb||xne(rb,e)&&r===rb.push?kne:r},Rne=Ine,Ane=Rne,Mne=Ane,Nne=Mne,Dne=Nne,Fne=Dne,PL=Fne,Lne=ve(PL);function jne(e,r){var t=e==null?null:typeof ll<"u"&&SL(e)||e["@@iterator"];if(t!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=o.call(t)).done)&&(Lne(s).call(s,n.value),s.length!==r);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}var Bne=de,AT=la,zne=By,Hne=Gt,MT=Wy,Wne=Zr,Une=_i,Vne=Au,Kne=at,Gne=cf,qne=gf,Yne=Gne("slice"),Xne=Kne("species"),nb=Array,Qne=Math.max;Bne({target:"Array",proto:!0,forced:!Yne},{slice:function(r,t){var n=Une(this),i=Wne(n),o=MT(r,i),a=MT(t===void 0?i:t,i),s,l,u;if(AT(n)&&(s=n.constructor,zne(s)&&(s===nb||AT(s.prototype))?s=void 0:Hne(s)&&(s=s[Xne],s===null&&(s=void 0)),s===nb||s===void 0))return qne(n,o,a);for(l=new(s===void 0?nb:s)(Qne(a-o,0)),u=0;o<a;o++,u++)o in n&&Vne(l,u,n[o]);return l.length=u,l}});var Zne=er,Jne=Zne("Array","slice"),eie=_t,tie=Jne,ib=Array.prototype,rie=function(e){var r=e.slice;return e===ib||eie(ib,e)&&r===ib.slice?tie:r},nie=rie,CL=nie,iie=CL,oie=iie,aie=oie,sie=aie,TL=sie,lie=ve(TL),uie=$L,cie=uie,die=cie,fie=die,hie=fie,xL=ve(hie);function m0(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function kL(e,r){var t;if(e){if(typeof e=="string")return m0(e,r);var n=lie(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return xL(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m0(e,r)}}function vie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
84
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gr(e,r){return fne(e)||jne(e,r)||kL(e,r)||vie()}function pie(e){if(EL(e))return m0(e)}function yie(e){if(typeof ll<"u"&&SL(e)!=null||e["@@iterator"]!=null)return xL(e)}function gie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
85
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Er(e){return pie(e)||yie(e)||kL(e)||gie()}var mie=JF,tg=ve(mie),bie=er,$ie=bie("Array","concat"),wie=_t,Sie=$ie,ob=Array.prototype,_ie=function(e){var r=e.concat;return e===ob||wie(ob,e)&&r===ob.concat?Sie:r},Eie=_ie,Oie=Eie,Pie=Oie,rg=ve(Pie),Cie=CL,ng=ve(Cie),Tie=yr,xie=Ze,kie=ff,Iie=hf,Rie=Qr,Aie=xie([].concat),M_=Tie("Reflect","ownKeys")||function(r){var t=kie.f(Rie(r)),n=Iie.f;return n?Aie(t,n(r)):t},Mie=de,Nie=M_;Mie({target:"Reflect",stat:!0},{ownKeys:Nie});var Die=tt,Fie=Die.Reflect.ownKeys,Lie=Fie,jie=Lie,Bie=jie,zie=ve(Bie),Hie=_L,Wr=ve(Hie),Wie=de,Uie=Dr,IL=Uy,Vie=Fe,Kie=Vie(function(){IL(1)});Wie({target:"Object",stat:!0,forced:Kie},{keys:function(r){return IL(Uie(r))}});var Gie=tt,qie=Gie.Object.keys,Yie=qie,Xie=Yie,Qie=Xie,N_=ve(Qie),Zie=Du.forEach,Jie=Jy,eoe=Jie("forEach"),toe=eoe?[].forEach:function(r){return Zie(this,r,arguments.length>1?arguments[1]:void 0)},roe=de,NT=toe;roe({target:"Array",proto:!0,forced:[].forEach!==NT},{forEach:NT});var noe=er,ioe=noe("Array","forEach"),ooe=ioe,aoe=ooe,soe=io,loe=Et,uoe=_t,coe=aoe,ab=Array.prototype,doe={DOMTokenList:!0,NodeList:!0},RL=function(e){var r=e.forEach;return e===ab||uoe(ab,e)&&r===ab.forEach||loe(doe,soe(e))?coe:r},foe=RL,rs=ve(foe),hoe=de,voe=Ze,poe=la,yoe=voe([].reverse),DT=[1,2];hoe({target:"Array",proto:!0,forced:String(DT)===String(DT.reverse())},{reverse:function(){return poe(this)&&(this.length=this.length),yoe(this)}});var goe=er,moe=goe("Array","reverse"),boe=_t,$oe=moe,sb=Array.prototype,woe=function(e){var r=e.reverse;return e===sb||boe(sb,e)&&r===sb.reverse?$oe:r},Soe=woe,AL=Soe,_oe=AL,Eoe=ve(_oe),FT=Iu,Ooe=TypeError,ML=function(e,r){if(!delete e[r])throw new Ooe("Cannot delete property "+FT(r)+" of "+FT(e))},Poe=de,Coe=Dr,Toe=Wy,xoe=Ly,koe=Zr,Ioe=OL,Roe=jy,Aoe=zy,Moe=Au,lb=ML,Noe=cf,Doe=Noe("splice"),Foe=Math.max,Loe=Math.min;Poe({target:"Array",proto:!0,forced:!Doe},{splice:function(r,t){var n=Coe(this),i=koe(n),o=Toe(r,i),a=arguments.length,s,l,u,c,d,f;for(a===0?s=l=0:a===1?(s=0,l=i-o):(s=a-2,l=Loe(Foe(xoe(t),0),i-o)),Roe(i+s-l),u=Aoe(n,l),c=0;c<l;c++)d=o+c,d in n&&Moe(u,c,n[d]);if(u.length=l,s<l){for(c=o;c<i-l;c++)d=c+l,f=c+s,d in n?n[f]=n[d]:lb(n,f);for(c=i;c>i-l+s;c--)lb(n,c-1)}else if(s>l)for(c=i-l;c>o;c--)d=c+l-1,f=c+s-1,d in n?n[f]=n[d]:lb(n,f);for(c=0;c<s;c++)n[c+o]=arguments[c+2];return Ioe(n,i-l+s),u}});var joe=er,Boe=joe("Array","splice"),zoe=_t,Hoe=Boe,ub=Array.prototype,Woe=function(e){var r=e.splice;return e===ub||zoe(ub,e)&&r===ub.splice?Hoe:r},Uoe=Woe,Voe=Uoe,Koe=Voe,NL=ve(Koe),LT=At,Goe=Ze,qoe=Mt,Yoe=Fe,cb=Uy,Xoe=hf,Qoe=Ay,Zoe=Dr,Joe=My,Ls=Object.assign,jT=Object.defineProperty,eae=Goe([].concat),tae=!Ls||Yoe(function(){if(LT&&Ls({b:1},Ls(jT({},"a",{enumerable:!0,get:function(){jT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},r={},t=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach(function(i){r[i]=i}),Ls({},e)[t]!==7||cb(Ls({},r)).join("")!==n})?function(r,t){for(var n=Zoe(r),i=arguments.length,o=1,a=Xoe.f,s=Qoe.f;i>o;)for(var l=Joe(arguments[o++]),u=a?eae(cb(l),a(l)):cb(l),c=u.length,d=0,f;c>d;)f=u[d++],(!LT||qoe(s,l,f))&&(n[f]=l[f]);return n}:Ls,rae=de,BT=tae;rae({target:"Object",stat:!0,arity:2,forced:Object.assign!==BT},{assign:BT});var nae=tt,iae=nae.Object.assign,oae=iae,aae=oae,sae=aae,lae=ve(sae),uae=de,cae=Fe,dae=Dr,DL=Qy,fae=GF,hae=cae(function(){DL(1)});uae({target:"Object",stat:!0,forced:hae,sham:!fae},{getPrototypeOf:function(r){return DL(dae(r))}});var vae=tt,pae=vae.Object.getPrototypeOf,yae=pae,gae=yae,mae=de,bae=At,$ae=ms;mae({target:"Object",stat:!0,sham:!bae},{create:$ae});var wae=tt,Sae=wae.Object,_ae=function(r,t){return Sae.create(r,t)},Eae=_ae,FL=Eae,Oae=FL,Pae=ve(Oae),b0=tt,Cae=Cu;b0.JSON||(b0.JSON={stringify:JSON.stringify});var Tae=function(r,t,n){return Cae(b0.JSON.stringify,null,arguments)},xae=Tae,kae=xae,Iae=kae,Rae=ve(Iae),Aae=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",Mae=TypeError,LL=function(e,r){if(e<r)throw new Mae("Not enough arguments");return e},jL=et,Nae=Cu,Dae=dt,Fae=Aae,Lae=aa,jae=gf,Bae=LL,zae=jL.Function,Hae=/MSIE .\./.test(Lae)||Fae&&function(){var e=jL.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),BL=function(e,r){var t=r?2:1;return Hae?function(n,i){var o=Bae(arguments.length,1)>t,a=Dae(n)?n:zae(n),s=o?jae(arguments,t):[],l=o?function(){Nae(a,this,s)}:a;return r?e(l,i):e(l)}:e},Wae=de,zL=et,Uae=BL,zT=Uae(zL.setInterval,!0);Wae({global:!0,bind:!0,forced:zL.setInterval!==zT},{setInterval:zT});var Vae=de,HL=et,Kae=BL,HT=Kae(HL.setTimeout,!0);Vae({global:!0,bind:!0,forced:HL.setTimeout!==HT},{setTimeout:HT});var Gae=tt,qae=Gae.setTimeout,Yae=qae,Xae=ve(Yae),WL={exports:{}};(function(e){function r(n){if(n)return t(n);this._callbacks=new Map}function t(n){return Object.assign(n,r.prototype),n._callbacks=new Map,n}r.prototype.on=function(n,i){const o=this._callbacks.get(n)??[];return o.push(i),this._callbacks.set(n,o),this},r.prototype.once=function(n,i){const o=(...a)=>{this.off(n,o),i.apply(this,a)};return o.fn=i,this.on(n,o),this},r.prototype.off=function(n,i){if(n===void 0&&i===void 0)return this._callbacks.clear(),this;if(i===void 0)return this._callbacks.delete(n),this;const o=this._callbacks.get(n);if(o){for(const[a,s]of o.entries())if(s===i||s.fn===i){o.splice(a,1);break}o.length===0?this._callbacks.delete(n):this._callbacks.set(n,o)}return this},r.prototype.emit=function(n,...i){const o=this._callbacks.get(n);if(o){const a=[...o];for(const s of a)s.apply(this,i)}return this},r.prototype.listeners=function(n){return this._callbacks.get(n)??[]},r.prototype.listenerCount=function(n){if(n)return this.listeners(n).length;let i=0;for(const o of this._callbacks.values())i+=o.length;return i},r.prototype.hasListeners=function(n){return this.listenerCount(n)>0},r.prototype.addEventListener=r.prototype.on,r.prototype.removeListener=r.prototype.off,r.prototype.removeEventListener=r.prototype.off,r.prototype.removeAllListeners=r.prototype.off,e.exports=r})(WL);var Qae=WL.exports,Zae=ve(Qae);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
86
|
-
* http://naver.github.io/egjs
|
87
|
-
*
|
88
|
-
* Forked By Naver egjs
|
89
|
-
* Copyright (c) hammerjs
|
90
|
-
* Licensed under the MIT license */function Xn(){return Xn=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Xn.apply(this,arguments)}function On(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function Ah(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var $0;typeof Object.assign!="function"?$0=function(r){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(r),n=1;n<arguments.length;n++){var i=arguments[n];if(i!=null)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:$0=Object.assign;var ns=$0,WT=["","webkit","Moz","MS","ms","o"],Jae=typeof document>"u"?{style:{}}:document.createElement("div"),ese="function",cl=Math.round,is=Math.abs,D_=Date.now;function ig(e,r){for(var t,n,i=r[0].toUpperCase()+r.slice(1),o=0;o<WT.length;){if(t=WT[o],n=t?t+i:r,n in e)return n;o++}}var Li;typeof window>"u"?Li={}:Li=window;var UL=ig(Jae.style,"touchAction"),VL=UL!==void 0;function tse(){if(!VL)return!1;var e={},r=Li.CSS&&Li.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return e[t]=r?Li.CSS.supports("touch-action",t):!0}),e}var KL="compute",GL="auto",w0="manipulation",Ba="none",Pd="pan-x",Cd="pan-y",Mh=tse(),rse=/mobile|tablet|ip(ad|hone|od)|android/i,qL="ontouchstart"in Li,nse=ig(Li,"PointerEvent")!==void 0,ise=qL&&rse.test(navigator.userAgent),$f="touch",ose="pen",F_="mouse",ase="kinect",sse=25,fr=1,$s=2,$t=4,Ar=8,Pp=1,wf=2,Sf=4,_f=8,uu=16,pi=wf|Sf,za=_f|uu,YL=pi|za,XL=["x","y"],Cp=["clientX","clientY"];function ji(e,r,t){var n;if(e)if(e.forEach)e.forEach(r,t);else if(e.length!==void 0)for(n=0;n<e.length;)r.call(t,e[n],n,e),n++;else for(n in e)e.hasOwnProperty(n)&&r.call(t,e[n],n,e)}function og(e,r){return typeof e===ese?e.apply(r&&r[0]||void 0,r):e}function Ea(e,r){return e.indexOf(r)>-1}function lse(e){if(Ea(e,Ba))return Ba;var r=Ea(e,Pd),t=Ea(e,Cd);return r&&t?Ba:r||t?r?Pd:Cd:Ea(e,w0)?w0:GL}var QL=function(){function e(t,n){this.manager=t,this.set(n)}var r=e.prototype;return r.set=function(n){n===KL&&(n=this.compute()),VL&&this.manager.element.style&&Mh[n]&&(this.manager.element.style[UL]=n),this.actions=n.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var n=[];return ji(this.manager.recognizers,function(i){og(i.options.enable,[i])&&(n=n.concat(i.getTouchAction()))}),lse(n.join(" "))},r.preventDefaults=function(n){var i=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var a=this.actions,s=Ea(a,Ba)&&!Mh[Ba],l=Ea(a,Cd)&&!Mh[Cd],u=Ea(a,Pd)&&!Mh[Pd];if(s){var c=n.pointers.length===1,d=n.distance<2,f=n.deltaTime<250;if(c&&d&&f)return}if(!(u&&l)&&(s||l&&o&pi||u&&o&za))return this.preventSrc(i)},r.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},e}();function L_(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}function ZL(e){var r=e.length;if(r===1)return{x:cl(e[0].clientX),y:cl(e[0].clientY)};for(var t=0,n=0,i=0;i<r;)t+=e[i].clientX,n+=e[i].clientY,i++;return{x:cl(t/r),y:cl(n/r)}}function UT(e){for(var r=[],t=0;t<e.pointers.length;)r[t]={clientX:cl(e.pointers[t].clientX),clientY:cl(e.pointers[t].clientY)},t++;return{timeStamp:D_(),pointers:r,center:ZL(r),deltaX:e.deltaX,deltaY:e.deltaY}}function Tp(e,r,t){t||(t=XL);var n=r[t[0]]-e[t[0]],i=r[t[1]]-e[t[1]];return Math.sqrt(n*n+i*i)}function S0(e,r,t){t||(t=XL);var n=r[t[0]]-e[t[0]],i=r[t[1]]-e[t[1]];return Math.atan2(i,n)*180/Math.PI}function JL(e,r){return e===r?Pp:is(e)>=is(r)?e<0?wf:Sf:r<0?_f:uu}function use(e,r){var t=r.center,n=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};(r.eventType===fr||o.eventType===$t)&&(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=e.offsetDelta={x:t.x,y:t.y}),r.deltaX=i.x+(t.x-n.x),r.deltaY=i.y+(t.y-n.y)}function e3(e,r,t){return{x:r/e||0,y:t/e||0}}function cse(e,r){return Tp(r[0],r[1],Cp)/Tp(e[0],e[1],Cp)}function dse(e,r){return S0(r[1],r[0],Cp)+S0(e[1],e[0],Cp)}function fse(e,r){var t=e.lastInterval||r,n=r.timeStamp-t.timeStamp,i,o,a,s;if(r.eventType!==Ar&&(n>sse||t.velocity===void 0)){var l=r.deltaX-t.deltaX,u=r.deltaY-t.deltaY,c=e3(n,l,u);o=c.x,a=c.y,i=is(c.x)>is(c.y)?c.x:c.y,s=JL(l,u),e.lastInterval=r}else i=t.velocity,o=t.velocityX,a=t.velocityY,s=t.direction;r.velocity=i,r.velocityX=o,r.velocityY=a,r.direction=s}function hse(e,r){var t=e.session,n=r.pointers,i=n.length;t.firstInput||(t.firstInput=UT(r)),i>1&&!t.firstMultiple?t.firstMultiple=UT(r):i===1&&(t.firstMultiple=!1);var o=t.firstInput,a=t.firstMultiple,s=a?a.center:o.center,l=r.center=ZL(n);r.timeStamp=D_(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=S0(s,l),r.distance=Tp(s,l),use(t,r),r.offsetDirection=JL(r.deltaX,r.deltaY);var u=e3(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=u.x,r.overallVelocityY=u.y,r.overallVelocity=is(u.x)>is(u.y)?u.x:u.y,r.scale=a?cse(a.pointers,n):1,r.rotation=a?dse(a.pointers,n):0,r.maxPointers=t.prevInput?r.pointers.length>t.prevInput.maxPointers?r.pointers.length:t.prevInput.maxPointers:r.pointers.length,fse(t,r);var c=e.element,d=r.srcEvent,f;d.composedPath?f=d.composedPath()[0]:d.path?f=d.path[0]:f=d.target,L_(f,c)&&(c=f),r.target=c}function vse(e,r,t){var n=t.pointers.length,i=t.changedPointers.length,o=r&fr&&n-i===0,a=r&($t|Ar)&&n-i===0;t.isFirst=!!o,t.isFinal=!!a,o&&(e.session={}),t.eventType=r,hse(e,t),e.emit("hammer.input",t),e.recognize(t),e.session.prevInput=t}function Td(e){return e.trim().split(/\s+/g)}function zc(e,r,t){ji(Td(r),function(n){e.addEventListener(n,t,!1)})}function Hc(e,r,t){ji(Td(r),function(n){e.removeEventListener(n,t,!1)})}function VT(e){var r=e.ownerDocument||e;return r.defaultView||r.parentWindow||window}var Lu=function(){function e(t,n){var i=this;this.manager=t,this.callback=n,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(o){og(t.options.enable,[t])&&i.handler(o)},this.init()}var r=e.prototype;return r.handler=function(){},r.init=function(){this.evEl&&zc(this.element,this.evEl,this.domHandler),this.evTarget&&zc(this.target,this.evTarget,this.domHandler),this.evWin&&zc(VT(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&Hc(this.element,this.evEl,this.domHandler),this.evTarget&&Hc(this.target,this.evTarget,this.domHandler),this.evWin&&Hc(VT(this.element),this.evWin,this.domHandler)},e}();function os(e,r,t){if(e.indexOf&&!t)return e.indexOf(r);for(var n=0;n<e.length;){if(t&&e[n][t]==r||!t&&e[n]===r)return n;n++}return-1}var pse={pointerdown:fr,pointermove:$s,pointerup:$t,pointercancel:Ar,pointerout:Ar},yse={2:$f,3:ose,4:F_,5:ase},t3="pointerdown",r3="pointermove pointerup pointercancel";Li.MSPointerEvent&&!Li.PointerEvent&&(t3="MSPointerDown",r3="MSPointerMove MSPointerUp MSPointerCancel");var n3=function(e){On(r,e);function r(){var n,i=r.prototype;return i.evEl=t3,i.evWin=r3,n=e.apply(this,arguments)||this,n.store=n.manager.session.pointerEvents=[],n}var t=r.prototype;return t.handler=function(i){var o=this.store,a=!1,s=i.type.toLowerCase().replace("ms",""),l=pse[s],u=yse[i.pointerType]||i.pointerType,c=u===$f,d=os(o,i.pointerId,"pointerId");l&fr&&(i.button===0||c)?d<0&&(o.push(i),d=o.length-1):l&($t|Ar)&&(a=!0),!(d<0)&&(o[d]=i,this.callback(this.manager,l,{pointers:o,changedPointers:[i],pointerType:u,srcEvent:i}),a&&o.splice(d,1))},r}(Lu);function xd(e){return Array.prototype.slice.call(e,0)}function j_(e,r,t){for(var n=[],i=[],o=0;o<e.length;){var a=r?e[o][r]:e[o];os(i,a)<0&&n.push(e[o]),i[o]=a,o++}return t&&(r?n=n.sort(function(s,l){return s[r]>l[r]}):n=n.sort()),n}var gse={touchstart:fr,touchmove:$s,touchend:$t,touchcancel:Ar},mse="touchstart touchmove touchend touchcancel",B_=function(e){On(r,e);function r(){var n;return r.prototype.evTarget=mse,n=e.apply(this,arguments)||this,n.targetIds={},n}var t=r.prototype;return t.handler=function(i){var o=gse[i.type],a=bse.call(this,i,o);a&&this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:$f,srcEvent:i})},r}(Lu);function bse(e,r){var t=xd(e.touches),n=this.targetIds;if(r&(fr|$s)&&t.length===1)return n[t[0].identifier]=!0,[t,t];var i,o,a=xd(e.changedTouches),s=[],l=this.target;if(o=t.filter(function(u){return L_(u.target,l)}),r===fr)for(i=0;i<o.length;)n[o[i].identifier]=!0,i++;for(i=0;i<a.length;)n[a[i].identifier]&&s.push(a[i]),r&($t|Ar)&&delete n[a[i].identifier],i++;if(s.length)return[j_(o.concat(s),"identifier",!0),s]}var $se={mousedown:fr,mousemove:$s,mouseup:$t},wse="mousedown",Sse="mousemove mouseup",z_=function(e){On(r,e);function r(){var n,i=r.prototype;return i.evEl=wse,i.evWin=Sse,n=e.apply(this,arguments)||this,n.pressed=!1,n}var t=r.prototype;return t.handler=function(i){var o=$se[i.type];o&fr&&i.button===0&&(this.pressed=!0),o&$s&&i.which!==1&&(o=$t),this.pressed&&(o&$t&&(this.pressed=!1),this.callback(this.manager,o,{pointers:[i],changedPointers:[i],pointerType:F_,srcEvent:i}))},r}(Lu),_se=2500,KT=25;function GT(e){var r=e.changedPointers,t=r[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY},i=this.lastTouches;this.lastTouches.push(n);var o=function(){var s=i.indexOf(n);s>-1&&i.splice(s,1)};setTimeout(o,_se)}}function Ese(e,r){e&fr?(this.primaryTouch=r.changedPointers[0].identifier,GT.call(this,r)):e&($t|Ar)&>.call(this,r)}function Ose(e){for(var r=e.srcEvent.clientX,t=e.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var i=this.lastTouches[n],o=Math.abs(r-i.x),a=Math.abs(t-i.y);if(o<=KT&&a<=KT)return!0}return!1}var i3=function(){var e=function(r){On(t,r);function t(i,o){var a;return a=r.call(this,i,o)||this,a.handler=function(s,l,u){var c=u.pointerType===$f,d=u.pointerType===F_;if(!(d&&u.sourceCapabilities&&u.sourceCapabilities.firesTouchEvents)){if(c)Ese.call(Ah(Ah(a)),l,u);else if(d&&Ose.call(Ah(Ah(a)),u))return;a.callback(s,l,u)}},a.touch=new B_(a.manager,a.handler),a.mouse=new z_(a.manager,a.handler),a.primaryTouch=null,a.lastTouches=[],a}var n=t.prototype;return n.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(Lu);return e}();function Pse(e){var r,t=e.options.inputClass;return t?r=t:nse?r=n3:ise?r=B_:qL?r=i3:r=z_,new r(e,vse)}function dl(e,r,t){return Array.isArray(e)?(ji(e,t[r],t),!0):!1}var Pv=1,yn=2,cu=4,Ho=8,Bi=Ho,kd=16,ui=32,Cse=1;function Tse(){return Cse++}function Nh(e,r){var t=r.manager;return t?t.get(e):e}function qT(e){return e&kd?"cancel":e&Ho?"end":e&cu?"move":e&yn?"start":""}var Ef=function(){function e(t){t===void 0&&(t={}),this.options=Xn({enable:!0},t),this.id=Tse(),this.manager=null,this.state=Pv,this.simultaneous={},this.requireFail=[]}var r=e.prototype;return r.set=function(n){return ns(this.options,n),this.manager&&this.manager.touchAction.update(),this},r.recognizeWith=function(n){if(dl(n,"recognizeWith",this))return this;var i=this.simultaneous;return n=Nh(n,this),i[n.id]||(i[n.id]=n,n.recognizeWith(this)),this},r.dropRecognizeWith=function(n){return dl(n,"dropRecognizeWith",this)?this:(n=Nh(n,this),delete this.simultaneous[n.id],this)},r.requireFailure=function(n){if(dl(n,"requireFailure",this))return this;var i=this.requireFail;return n=Nh(n,this),os(i,n)===-1&&(i.push(n),n.requireFailure(this)),this},r.dropRequireFailure=function(n){if(dl(n,"dropRequireFailure",this))return this;n=Nh(n,this);var i=os(this.requireFail,n);return i>-1&&this.requireFail.splice(i,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},r.emit=function(n){var i=this,o=this.state;function a(s){i.manager.emit(s,n)}o<Ho&&a(i.options.event+qT(o)),a(i.options.event),n.additionalEvent&&a(n.additionalEvent),o>=Ho&&a(i.options.event+qT(o))},r.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=ui},r.canEmit=function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(ui|Pv)))return!1;n++}return!0},r.recognize=function(n){var i=ns({},n);if(!og(this.options.enable,[this,i])){this.reset(),this.state=ui;return}this.state&(Bi|kd|ui)&&(this.state=Pv),this.state=this.process(i),this.state&(yn|cu|Ho|kd)&&this.tryEmit(i)},r.process=function(n){},r.getTouchAction=function(){},r.reset=function(){},e}(),_0=function(e){On(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,Xn({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},n))||this,i.pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}var t=r.prototype;return t.getTouchAction=function(){return[w0]},t.process=function(i){var o=this,a=this.options,s=i.pointers.length===a.pointers,l=i.distance<a.threshold,u=i.deltaTime<a.time;if(this.reset(),i.eventType&fr&&this.count===0)return this.failTimeout();if(l&&u&&s){if(i.eventType!==$t)return this.failTimeout();var c=this.pTime?i.timeStamp-this.pTime<a.interval:!0,d=!this.pCenter||Tp(this.pCenter,i.center)<a.posThreshold;this.pTime=i.timeStamp,this.pCenter=i.center,!d||!c?this.count=1:this.count+=1,this._input=i;var f=this.count%a.taps;if(f===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){o.state=Bi,o.tryEmit()},a.interval),yn):Bi}return ui},t.failTimeout=function(){var i=this;return this._timer=setTimeout(function(){i.state=ui},this.options.interval),ui},t.reset=function(){clearTimeout(this._timer)},t.emit=function(){this.state===Bi&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},r}(Ef),du=function(e){On(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Xn({pointers:1},n))||this}var t=r.prototype;return t.attrTest=function(i){var o=this.options.pointers;return o===0||i.pointers.length===o},t.process=function(i){var o=this.state,a=i.eventType,s=o&(yn|cu),l=this.attrTest(i);return s&&(a&Ar||!l)?o|kd:s||l?a&$t?o|Ho:o&yn?o|cu:yn:ui},r}(Ef);function o3(e){return e===uu?"down":e===_f?"up":e===wf?"left":e===Sf?"right":""}var H_=function(e){On(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,Xn({event:"pan",threshold:10,pointers:1,direction:YL},n))||this,i.pX=null,i.pY=null,i}var t=r.prototype;return t.getTouchAction=function(){var i=this.options.direction,o=[];return i&pi&&o.push(Cd),i&za&&o.push(Pd),o},t.directionTest=function(i){var o=this.options,a=!0,s=i.distance,l=i.direction,u=i.deltaX,c=i.deltaY;return l&o.direction||(o.direction&pi?(l=u===0?Pp:u<0?wf:Sf,a=u!==this.pX,s=Math.abs(i.deltaX)):(l=c===0?Pp:c<0?_f:uu,a=c!==this.pY,s=Math.abs(i.deltaY))),i.direction=l,a&&s>o.threshold&&l&o.direction},t.attrTest=function(i){return du.prototype.attrTest.call(this,i)&&(this.state&yn||!(this.state&yn)&&this.directionTest(i))},t.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var o=o3(i.direction);o&&(i.additionalEvent=this.options.event+o),e.prototype.emit.call(this,i)},r}(du),a3=function(e){On(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Xn({event:"swipe",threshold:10,velocity:.3,direction:pi|za,pointers:1},n))||this}var t=r.prototype;return t.getTouchAction=function(){return H_.prototype.getTouchAction.call(this)},t.attrTest=function(i){var o=this.options.direction,a;return o&(pi|za)?a=i.overallVelocity:o&pi?a=i.overallVelocityX:o&za&&(a=i.overallVelocityY),e.prototype.attrTest.call(this,i)&&o&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&is(a)>this.options.velocity&&i.eventType&$t},t.emit=function(i){var o=o3(i.offsetDirection);o&&this.manager.emit(this.options.event+o,i),this.manager.emit(this.options.event,i)},r}(du),s3=function(e){On(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Xn({event:"pinch",threshold:0,pointers:2},n))||this}var t=r.prototype;return t.getTouchAction=function(){return[Ba]},t.attrTest=function(i){return e.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&yn)},t.emit=function(i){if(i.scale!==1){var o=i.scale<1?"in":"out";i.additionalEvent=this.options.event+o}e.prototype.emit.call(this,i)},r}(du),l3=function(e){On(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Xn({event:"rotate",threshold:0,pointers:2},n))||this}var t=r.prototype;return t.getTouchAction=function(){return[Ba]},t.attrTest=function(i){return e.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&yn)},r}(du),u3=function(e){On(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,Xn({event:"press",pointers:1,time:251,threshold:9},n))||this,i._timer=null,i._input=null,i}var t=r.prototype;return t.getTouchAction=function(){return[GL]},t.process=function(i){var o=this,a=this.options,s=i.pointers.length===a.pointers,l=i.distance<a.threshold,u=i.deltaTime>a.time;if(this._input=i,!l||!s||i.eventType&($t|Ar)&&!u)this.reset();else if(i.eventType&fr)this.reset(),this._timer=setTimeout(function(){o.state=Bi,o.tryEmit()},a.time);else if(i.eventType&$t)return Bi;return ui},t.reset=function(){clearTimeout(this._timer)},t.emit=function(i){this.state===Bi&&(i&&i.eventType&$t?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=D_(),this.manager.emit(this.options.event,this._input)))},r}(Ef),c3={domEvents:!1,touchAction:KL,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},YT=[[l3,{enable:!1}],[s3,{enable:!1},["rotate"]],[a3,{direction:pi}],[H_,{direction:pi},["swipe"]],[_0],[_0,{event:"doubletap",taps:2},["tap"]],[u3]],xse=1,XT=2;function QT(e,r){var t=e.element;if(t.style){var n;ji(e.options.cssProps,function(i,o){n=ig(t.style,o),r?(e.oldCssProps[n]=t.style[n],t.style[n]=i):t.style[n]=e.oldCssProps[n]||""}),r||(e.oldCssProps={})}}function kse(e,r){var t=document.createEvent("Event");t.initEvent(e,!0,!0),t.gesture=r,r.target.dispatchEvent(t)}var ZT=function(){function e(t,n){var i=this;this.options=ns({},c3,n||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=Pse(this),this.touchAction=new QL(this,this.options.touchAction),QT(this,!0),ji(this.options.recognizers,function(o){var a=i.add(new o[0](o[1]));o[2]&&a.recognizeWith(o[2]),o[3]&&a.requireFailure(o[3])},this)}var r=e.prototype;return r.set=function(n){return ns(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},r.stop=function(n){this.session.stopped=n?XT:xse},r.recognize=function(n){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(n);var o,a=this.recognizers,s=i.curRecognizer;(!s||s&&s.state&Bi)&&(i.curRecognizer=null,s=null);for(var l=0;l<a.length;)o=a[l],i.stopped!==XT&&(!s||o===s||o.canRecognizeWith(s))?o.recognize(n):o.reset(),!s&&o.state&(yn|cu|Ho)&&(i.curRecognizer=o,s=o),l++}},r.get=function(n){if(n instanceof Ef)return n;for(var i=this.recognizers,o=0;o<i.length;o++)if(i[o].options.event===n)return i[o];return null},r.add=function(n){if(dl(n,"add",this))return this;var i=this.get(n.options.event);return i&&this.remove(i),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},r.remove=function(n){if(dl(n,"remove",this))return this;var i=this.get(n);if(n){var o=this.recognizers,a=os(o,i);a!==-1&&(o.splice(a,1),this.touchAction.update())}return this},r.on=function(n,i){if(n===void 0||i===void 0)return this;var o=this.handlers;return ji(Td(n),function(a){o[a]=o[a]||[],o[a].push(i)}),this},r.off=function(n,i){if(n===void 0)return this;var o=this.handlers;return ji(Td(n),function(a){i?o[a]&&o[a].splice(os(o[a],i),1):delete o[a]}),this},r.emit=function(n,i){this.options.domEvents&&kse(n,i);var o=this.handlers[n]&&this.handlers[n].slice();if(!(!o||!o.length)){i.type=n,i.preventDefault=function(){i.srcEvent.preventDefault()};for(var a=0;a<o.length;)o[a](i),a++}},r.destroy=function(){this.element&&QT(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),Ise={touchstart:fr,touchmove:$s,touchend:$t,touchcancel:Ar},Rse="touchstart",Ase="touchstart touchmove touchend touchcancel",Mse=function(e){On(r,e);function r(){var n,i=r.prototype;return i.evTarget=Rse,i.evWin=Ase,n=e.apply(this,arguments)||this,n.started=!1,n}var t=r.prototype;return t.handler=function(i){var o=Ise[i.type];if(o===fr&&(this.started=!0),!!this.started){var a=Nse.call(this,i,o);o&($t|Ar)&&a[0].length-a[1].length===0&&(this.started=!1),this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:$f,srcEvent:i})}},r}(Lu);function Nse(e,r){var t=xd(e.touches),n=xd(e.changedTouches);return r&($t|Ar)&&(t=j_(t.concat(n),"identifier",!0)),[t,n]}function d3(e,r,t){var n="DEPRECATED METHOD: "+r+`
|
91
|
-
`+t+` AT
|
92
|
-
`;return function(){var i=new Error("get-stack-trace"),o=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,n,o),e.apply(this,arguments)}}var f3=d3(function(e,r,t){for(var n=Object.keys(r),i=0;i<n.length;)(!t||t&&e[n[i]]===void 0)&&(e[n[i]]=r[n[i]]),i++;return e},"extend","Use `assign`."),Dse=d3(function(e,r){return f3(e,r,!0)},"merge","Use `assign`.");function Fse(e,r,t){var n=r.prototype,i;i=e.prototype=Object.create(n),i.constructor=e,i._super=n,t&&ns(i,t)}function JT(e,r){return function(){return e.apply(r,arguments)}}var Lse=function(){var e=function(t,n){return n===void 0&&(n={}),new ZT(t,Xn({recognizers:YT.concat()},n))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=YL,e.DIRECTION_DOWN=uu,e.DIRECTION_LEFT=wf,e.DIRECTION_RIGHT=Sf,e.DIRECTION_UP=_f,e.DIRECTION_HORIZONTAL=pi,e.DIRECTION_VERTICAL=za,e.DIRECTION_NONE=Pp,e.DIRECTION_DOWN=uu,e.INPUT_START=fr,e.INPUT_MOVE=$s,e.INPUT_END=$t,e.INPUT_CANCEL=Ar,e.STATE_POSSIBLE=Pv,e.STATE_BEGAN=yn,e.STATE_CHANGED=cu,e.STATE_ENDED=Ho,e.STATE_RECOGNIZED=Bi,e.STATE_CANCELLED=kd,e.STATE_FAILED=ui,e.Manager=ZT,e.Input=Lu,e.TouchAction=QL,e.TouchInput=B_,e.MouseInput=z_,e.PointerEventInput=n3,e.TouchMouseInput=i3,e.SingleTouchInput=Mse,e.Recognizer=Ef,e.AttrRecognizer=du,e.Tap=_0,e.Pan=H_,e.Swipe=a3,e.Pinch=s3,e.Rotate=l3,e.Press=u3,e.on=zc,e.off=Hc,e.each=ji,e.merge=Dse,e.extend=f3,e.bindFn=JT,e.assign=ns,e.inherit=Fse,e.bindFn=JT,e.prefixed=ig,e.toArray=xd,e.inArray=os,e.uniqueArray=j_,e.splitStr=Td,e.boolOrFn=og,e.hasParent=L_,e.addEventListeners=zc,e.removeEventListeners=Hc,e.defaults=ns({},c3,{preset:YT}),e}(),jse=Lse;function h3(e,r){var t=typeof tg<"u"&&A_(e)||e["@@iterator"];if(!t){if(Wr(e)||(t=Bse(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
93
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}function Bse(e,r){var t;if(e){if(typeof e=="string")return ex(e,r);var n=ng(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return R_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ex(e,r)}}function ex(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var v3=tg("DELETE");function zse(e){for(var r,t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return p3.apply(void 0,rg(r=[{},e]).call(r,n))}function p3(){var e=xp.apply(void 0,arguments);return g3(e),e}function xp(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(r.length<2)return r[0];if(r.length>2){var n;return xp.apply(void 0,rg(n=[p3(r[0],r[1])]).call(n,Er(ng(r).call(r,2))))}var i=r[0],o=r[1];if(i instanceof Date&&o instanceof Date)return i.setTime(o.getTime()),i;var a=h3(zie(o)),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===v3?delete i[l]:i[l]!==null&&o[l]!==null&&typeof i[l]=="object"&&typeof o[l]=="object"&&!Wr(i[l])&&!Wr(o[l])?i[l]=xp(i[l],o[l]):i[l]=y3(o[l]))}}catch(u){a.e(u)}finally{a.f()}return i}function y3(e){return Wr(e)?Ln(e).call(e,function(r){return y3(r)}):typeof e=="object"&&e!==null?e instanceof Date?new Date(e.getTime()):xp({},e):e}function g3(e){for(var r=0,t=N_(e);r<t.length;r++){var n=t[r];e[n]===v3?delete e[n]:typeof e[n]=="object"&&e[n]!==null&&g3(e[n])}}function Hse(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get(){return{set:e}}}}var Wse=typeof window<"u"?window.Hammer||jse:function(){return Hse()};function Ni(e){var r=this,t;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)});var n=Wse(this._dom.overlay);n.on("tap",hL(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push(function(){n.destroy()});var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];rs(i).call(i,function(o){n.on(o,function(a){a.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(o){Use(o.target,e)||r.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",r._onClick)})),this._escListener=function(o){("key"in o?o.key==="Escape":o.keyCode===27)&&r.deactivate()}}Zae(Ni.prototype);Ni.current=null;Ni.prototype.destroy=function(){var e,r;this.deactivate();var t=h3(Eoe(e=NL(r=this._cleanupQueue).call(r,0)).call(e)),n;try{for(t.s();!(n=t.n()).done;){var i=n.value;i()}}catch(o){t.e(o)}finally{t.f()}};Ni.prototype.activate=function(){Ni.current&&Ni.current.deactivate(),Ni.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)};Ni.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")};Ni.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function Use(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}var Vse=By,Kse=Iu,Gse=TypeError,m3=function(e){if(Vse(e))return e;throw new Gse(Kse(e)+" is not a constructor")},qse=de,Yse=yr,db=Cu,Xse=dL,tx=m3,Qse=Qr,rx=Gt,Zse=ms,b3=Fe,W_=Yse("Reflect","construct"),Jse=Object.prototype,ele=[].push,$3=b3(function(){function e(){}return!(W_(function(){},[],e)instanceof e)}),w3=!b3(function(){W_(function(){})}),nx=$3||w3;qse({target:"Reflect",stat:!0,forced:nx,sham:nx},{construct:function(r,t){tx(r),Qse(t);var n=arguments.length<3?r:tx(arguments[2]);if(w3&&!$3)return W_(r,t,n);if(r===n){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var i=[null];return db(ele,i,t),new(db(Xse,r,i))}var o=n.prototype,a=Zse(rx(o)?o:Jse),s=db(r,a,t);return rx(s)?s:a}});var tle=tt,rle=tle.Reflect.construct,nle=rle,ile=nle,ole=ile,Cv=ve(ole),ale=tt,sle=ale.Object.getOwnPropertySymbols,lle=sle,ule=lle,cle=ule,ix=ve(cle),S3={exports:{}},dle=de,fle=Fe,hle=_i,_3=ps.f,E3=At,vle=!E3||fle(function(){_3(1)});dle({target:"Object",stat:!0,forced:vle,sham:!E3},{getOwnPropertyDescriptor:function(r,t){return _3(hle(r),t)}});var ple=tt,O3=ple.Object,yle=S3.exports=function(r,t){return O3.getOwnPropertyDescriptor(r,t)};O3.getOwnPropertyDescriptor.sham&&(yle.sham=!0);var gle=S3.exports,mle=gle,ble=mle,$le=ble,P3=ve($le),wle=de,Sle=At,_le=M_,Ele=_i,Ole=ps,Ple=Au;wle({target:"Object",stat:!0,sham:!Sle},{getOwnPropertyDescriptors:function(r){for(var t=Ele(r),n=Ole.f,i=_le(t),o={},a=0,s,l;i.length>a;)l=n(t,s=i[a++]),l!==void 0&&Ple(o,s,l);return o}});var Cle=tt,Tle=Cle.Object.getOwnPropertyDescriptors,xle=Tle,kle=xle,Ile=kle,ox=ve(Ile),C3={exports:{}},Rle=de,Ale=At,ax=Hy.f;Rle({target:"Object",stat:!0,forced:Object.defineProperties!==ax,sham:!Ale},{defineProperties:ax});var Mle=tt,T3=Mle.Object,Nle=C3.exports=function(r,t){return T3.defineProperties(r,t)};T3.defineProperties.sham&&(Nle.sham=!0);var Dle=C3.exports,Fle=Dle,Lle=Fle,jle=Lle,Ble=ve(jle),zle=aF,Hle=ve(zle);function x3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Wle=FL,Ule=Wle,Vle=Ule,Kle=Vle,k3=Kle,Gle=ve(k3),qle=de,Yle=XF;qle({target:"Object",stat:!0},{setPrototypeOf:Yle});var Xle=tt,Qle=Xle.Object.setPrototypeOf,Zle=Qle,Jle=Zle,eue=Jle,tue=eue,rue=tue,nue=rue,I3=nue,E0=ve(I3),iue=fL,oue=iue,aue=oue,sue=aue,lue=sue,R3=ve(lue);function O0(e,r){var t;return O0=E0?R3(t=E0).call(t):function(i,o){return i.__proto__=o,i},O0(e,r)}function uue(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Gle(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Fy(e,"prototype",{writable:!1}),r&&O0(e,r)}function cue(e,r){if(r&&(lu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x3(e)}var due=gae,fue=due,hue=fue,vue=hue,A3=vue,sx=ve(A3);function kp(e){var r;return kp=E0?R3(r=sx).call(r):function(n){return n.__proto__||sx(n)},kp(e)}var M3={exports:{}},N3={exports:{}};(function(e){var r=x_,t=sL;function n(i){"@babel/helpers - typeof";return e.exports=n=typeof r=="function"&&typeof t=="symbol"?function(o){return typeof o}:function(o){return o&&typeof r=="function"&&o.constructor===r&&o!==r.prototype?"symbol":typeof o},e.exports.__esModule=!0,e.exports.default=e.exports,n(i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(N3);var pue=N3.exports,yue=RL,gue=yue,mue=gue,bue=mue,$ue=bue,lx=Et,wue=M_,Sue=ps,_ue=Fr,Eue=function(e,r,t){for(var n=wue(r),i=_ue.f,o=Sue.f,a=0;a<n.length;a++){var s=n[a];!lx(e,s)&&!(t&&lx(t,s))&&i(e,s,o(r,s))}},Oue=Gt,Pue=no,Cue=function(e,r){Oue(r)&&"cause"in r&&Pue(e,"cause",r.cause)},Tue=Ze,D3=Error,xue=Tue("".replace),kue=function(e){return String(new D3(e).stack)}("zxcasd"),F3=/\n\s*at [^:]*:[^\n]*/,Iue=F3.test(kue),Rue=function(e,r){if(Iue&&typeof e=="string"&&!D3.prepareStackTrace)for(;r--;)e=xue(e,F3,"");return e},Aue=Fe,Mue=ys,Nue=!Aue(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",Mue(1,7)),e.stack!==7):!0}),Due=no,Fue=Rue,Lue=Nue,ux=Error.captureStackTrace,jue=function(e,r,t,n){Lue&&(ux?ux(e,r):Due(e,"stack",Fue(t,n)))},Bue=sa,zue=Mt,Hue=Qr,Wue=Iu,Uue=yL,Vue=Zr,cx=_t,Kue=I_,Gue=eg,dx=pL,que=TypeError,Tv=function(e,r){this.stopped=e,this.result=r},fx=Tv.prototype,ws=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),a=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),l=Bue(r,n),u,c,d,f,h,v,p,b=function(g){return u&&dx(u,"normal",g),new Tv(!0,g)},y=function(g){return i?(Hue(g),s?l(g[0],g[1],b):l(g[0],g[1])):s?l(g,b):l(g)};if(o)u=e.iterator;else if(a)u=e;else{if(c=Gue(e),!c)throw new que(Wue(e)+" is not iterable");if(Uue(c)){for(d=0,f=Vue(e);f>d;d++)if(h=y(e[d]),h&&cx(fx,h))return h;return new Tv(!1)}u=Kue(e,c)}for(v=o?e.next:u.next;!(p=zue(v,u)).done;){try{h=y(p.value)}catch(g){dx(u,"throw",g)}if(typeof h=="object"&&h&&cx(fx,h))return h}return new Tv(!1)},Yue=gs,Xue=function(e,r){return e===void 0?arguments.length<2?"":r:Yue(e)},Que=de,Zue=_t,Jue=Qy,Ip=XF,ece=Eue,L3=ms,fb=no,hb=ys,tce=Cue,rce=jue,nce=ws,ice=Xue,oce=at,ace=oce("toStringTag"),Rp=Error,sce=[].push,fu=function(r,t){var n=Zue(vb,this),i;Ip?i=Ip(new Rp,n?Jue(this):vb):(i=n?this:L3(vb),fb(i,ace,"Error")),t!==void 0&&fb(i,"message",ice(t)),rce(i,fu,i.stack,1),arguments.length>2&&tce(i,arguments[2]);var o=[];return nce(r,sce,{that:o}),fb(i,"errors",o),i};Ip?Ip(fu,Rp):ece(fu,Rp,{name:!0});var vb=fu.prototype=L3(Rp.prototype,{constructor:hb(1,fu),message:hb(1,""),name:hb(1,"AggregateError")});Que({global:!0,constructor:!0,arity:2},{AggregateError:fu});var lce=yr,uce=$_,cce=at,dce=At,hx=cce("species"),j3=function(e){var r=lce(e);dce&&r&&!r[hx]&&uce(r,hx,{configurable:!0,get:function(){return this}})},fce=_t,hce=TypeError,U_=function(e,r){if(fce(r,e))return e;throw new hce("Incorrect invocation")},vx=Qr,vce=m3,pce=Tu,yce=at,gce=yce("species"),B3=function(e,r){var t=vx(e).constructor,n;return t===void 0||pce(n=vx(t)[gce])?r:vce(n)},mce=aa,z3=/(?:ipad|iphone|ipod).*applewebkit/i.test(mce),Vr=et,bce=Cu,$ce=sa,px=dt,wce=Et,H3=Fe,yx=yF,Sce=gf,gx=p_,_ce=LL,Ece=z3,Oce=bf,P0=Vr.setImmediate,C0=Vr.clearImmediate,Pce=Vr.process,pb=Vr.Dispatch,Cce=Vr.Function,mx=Vr.MessageChannel,Tce=Vr.String,yb=0,Wc={},bx="onreadystatechange",Id,ha,gb,mb;H3(function(){Id=Vr.location});var V_=function(e){if(wce(Wc,e)){var r=Wc[e];delete Wc[e],r()}},bb=function(e){return function(){V_(e)}},$x=function(e){V_(e.data)},wx=function(e){Vr.postMessage(Tce(e),Id.protocol+"//"+Id.host)};(!P0||!C0)&&(P0=function(r){_ce(arguments.length,1);var t=px(r)?r:Cce(r),n=Sce(arguments,1);return Wc[++yb]=function(){bce(t,void 0,n)},ha(yb),yb},C0=function(r){delete Wc[r]},Oce?ha=function(e){Pce.nextTick(bb(e))}:pb&&pb.now?ha=function(e){pb.now(bb(e))}:mx&&!Ece?(gb=new mx,mb=gb.port2,gb.port1.onmessage=$x,ha=$ce(mb.postMessage,mb)):Vr.addEventListener&&px(Vr.postMessage)&&!Vr.importScripts&&Id&&Id.protocol!=="file:"&&!H3(wx)?(ha=wx,Vr.addEventListener("message",$x,!1)):bx in gx("script")?ha=function(e){yx.appendChild(gx("script"))[bx]=function(){yx.removeChild(this),V_(e)}}:ha=function(e){setTimeout(bb(e),0)});var W3={set:P0,clear:C0},U3=function(){this.head=null,this.tail=null};U3.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}};var V3=U3,xce=aa,kce=/ipad|iphone|ipod/i.test(xce)&&typeof Pebble<"u",Ice=aa,Rce=/web0s(?!.*chrome)/i.test(Ice),as=et,Sx=sa,Ace=ps.f,$b=W3.set,Mce=V3,Nce=z3,Dce=kce,Fce=Rce,wb=bf,_x=as.MutationObserver||as.WebKitMutationObserver,Ex=as.document,Ox=as.process,Dh=as.Promise,Px=Ace(as,"queueMicrotask"),T0=Px&&Px.value,js,Sb,_b,Fh,Cx;if(!T0){var Lh=new Mce,jh=function(){var e,r;for(wb&&(e=Ox.domain)&&e.exit();r=Lh.get();)try{r()}catch(t){throw Lh.head&&js(),t}e&&e.enter()};!Nce&&!wb&&!Fce&&_x&&Ex?(Sb=!0,_b=Ex.createTextNode(""),new _x(jh).observe(_b,{characterData:!0}),js=function(){_b.data=Sb=!Sb}):!Dce&&Dh&&Dh.resolve?(Fh=Dh.resolve(void 0),Fh.constructor=Dh,Cx=Sx(Fh.then,Fh),js=function(){Cx(jh)}):wb?js=function(){Ox.nextTick(jh)}:($b=Sx($b,as),js=function(){$b(jh)}),T0=function(e){Lh.head||js(),Lh.add(e)}}var Lce=T0,jce=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch{}},ju=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}},Bce=et,Bu=Bce.Promise,K3=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",zce=K3,Hce=bf,Wce=!zce&&!Hce&&typeof window=="object"&&typeof document=="object",Uce=et,Uc=Bu,Vce=dt,Kce=nF,Gce=uF,qce=at,Yce=Wce,Xce=K3,Eb=xu,Tx=Uc&&Uc.prototype,Qce=qce("species"),x0=!1,G3=Vce(Uce.PromiseRejectionEvent),Zce=Kce("Promise",function(){var e=Gce(Uc),r=e!==String(Uc);if(!r&&Eb===66||!(Tx.catch&&Tx.finally))return!0;if(!Eb||Eb<51||!/native code/.test(e)){var t=new Uc(function(o){o(1)}),n=function(o){o(function(){},function(){})},i=t.constructor={};if(i[Qce]=n,x0=t.then(function(){})instanceof n,!x0)return!0}return!r&&(Yce||Xce)&&!G3}),Of={CONSTRUCTOR:Zce,REJECTION_EVENT:G3,SUBCLASSING:x0},Ei={},xx=Nr,Jce=TypeError,ede=function(e){var r,t;this.promise=new e(function(n,i){if(r!==void 0||t!==void 0)throw new Jce("Bad Promise constructor");r=n,t=i}),this.resolve=xx(r),this.reject=xx(t)};Ei.f=function(e){return new ede(e)};var tde=de,Ap=bf,Qo=et,Pf=Mt,rde=Mu,nde=bs,ide=j3,ode=Nr,k0=dt,ade=Gt,sde=U_,lde=B3,q3=W3.set,K_=Lce,ude=jce,cde=ju,dde=V3,Y3=Nu,I0=Bu,X3=Of,Q3=Ei,ag="Promise",Z3=X3.CONSTRUCTOR,fde=X3.REJECTION_EVENT,Ob=Y3.getterFor(ag),hde=Y3.set,vde=I0&&I0.prototype,fl=I0,Pb=vde,J3=Qo.TypeError,R0=Qo.document,G_=Qo.process,A0=Q3.f,pde=A0,yde=!!(R0&&R0.createEvent&&Qo.dispatchEvent),ej="unhandledrejection",gde="rejectionhandled",kx=0,tj=1,mde=2,q_=1,rj=2,Bh,Ix,bde,nj=function(e){var r;return ade(e)&&k0(r=e.then)?r:!1},ij=function(e,r){var t=r.value,n=r.state===tj,i=n?e.ok:e.fail,o=e.resolve,a=e.reject,s=e.domain,l,u,c;try{i?(n||(r.rejection===rj&&wde(r),r.rejection=q_),i===!0?l=t:(s&&s.enter(),l=i(t),s&&(s.exit(),c=!0)),l===e.promise?a(new J3("Promise-chain cycle")):(u=nj(l))?Pf(u,l,o,a):o(l)):a(t)}catch(d){s&&!c&&s.exit(),a(d)}},oj=function(e,r){e.notified||(e.notified=!0,K_(function(){for(var t=e.reactions,n;n=t.get();)ij(n,e);e.notified=!1,r&&!e.rejection&&$de(e)}))},aj=function(e,r,t){var n,i;yde?(n=R0.createEvent("Event"),n.promise=r,n.reason=t,n.initEvent(e,!1,!0),Qo.dispatchEvent(n)):n={promise:r,reason:t},!fde&&(i=Qo["on"+e])?i(n):e===ej&&ude("Unhandled promise rejection",t)},$de=function(e){Pf(q3,Qo,function(){var r=e.facade,t=e.value,n=Rx(e),i;if(n&&(i=cde(function(){Ap?G_.emit("unhandledRejection",t,r):aj(ej,r,t)}),e.rejection=Ap||Rx(e)?rj:q_,i.error))throw i.value})},Rx=function(e){return e.rejection!==q_&&!e.parent},wde=function(e){Pf(q3,Qo,function(){var r=e.facade;Ap?G_.emit("rejectionHandled",r):aj(gde,r,e.value)})},hl=function(e,r,t){return function(n){e(r,n,t)}},Cl=function(e,r,t){e.done||(e.done=!0,t&&(e=t),e.value=r,e.state=mde,oj(e,!0))},M0=function(e,r,t){if(!e.done){e.done=!0,t&&(e=t);try{if(e.facade===r)throw new J3("Promise can't be resolved itself");var n=nj(r);n?K_(function(){var i={done:!1};try{Pf(n,r,hl(M0,i,e),hl(Cl,i,e))}catch(o){Cl(i,o,e)}}):(e.value=r,e.state=tj,oj(e,!1))}catch(i){Cl({done:!1},i,e)}}};Z3&&(fl=function(r){sde(this,Pb),ode(r),Pf(Bh,this);var t=Ob(this);try{r(hl(M0,t),hl(Cl,t))}catch(n){Cl(t,n)}},Pb=fl.prototype,Bh=function(r){hde(this,{type:ag,done:!1,notified:!1,parent:!1,reactions:new dde,rejection:!1,state:kx,value:void 0})},Bh.prototype=rde(Pb,"then",function(r,t){var n=Ob(this),i=A0(lde(this,fl));return n.parent=!0,i.ok=k0(r)?r:!0,i.fail=k0(t)&&t,i.domain=Ap?G_.domain:void 0,n.state===kx?n.reactions.add(i):K_(function(){ij(i,n)}),i.promise}),Ix=function(){var e=new Bh,r=Ob(e);this.promise=e,this.resolve=hl(M0,r),this.reject=hl(Cl,r)},Q3.f=A0=function(e){return e===fl||e===bde?new Ix(e):pde(e)});tde({global:!0,constructor:!0,wrap:!0,forced:Z3},{Promise:fl});nde(fl,ag,!1,!0);ide(ag);var Sde=Bu,_de=bL,Ede=Of.CONSTRUCTOR,sg=Ede||!_de(function(e){Sde.all(e).then(void 0,function(){})}),Ode=de,Pde=Mt,Cde=Nr,Tde=Ei,xde=ju,kde=ws,Ide=sg;Ode({target:"Promise",stat:!0,forced:Ide},{all:function(r){var t=this,n=Tde.f(t),i=n.resolve,o=n.reject,a=xde(function(){var s=Cde(t.resolve),l=[],u=0,c=1;kde(r,function(d){var f=u++,h=!1;c++,Pde(s,t,d).then(function(v){h||(h=!0,l[f]=v,--c||i(l))},o)}),--c||i(l)});return a.error&&o(a.value),n.promise}});var Rde=de,Ade=Of.CONSTRUCTOR,Ax=Bu;Ax&&Ax.prototype;Rde({target:"Promise",proto:!0,forced:Ade,real:!0},{catch:function(e){return this.then(void 0,e)}});var Mde=de,Nde=Mt,Dde=Nr,Fde=Ei,Lde=ju,jde=ws,Bde=sg;Mde({target:"Promise",stat:!0,forced:Bde},{race:function(r){var t=this,n=Fde.f(t),i=n.reject,o=Lde(function(){var a=Dde(t.resolve);jde(r,function(s){Nde(a,t,s).then(n.resolve,i)})});return o.error&&i(o.value),n.promise}});var zde=de,Hde=Mt,Wde=Ei,Ude=Of.CONSTRUCTOR;zde({target:"Promise",stat:!0,forced:Ude},{reject:function(r){var t=Wde.f(this);return Hde(t.reject,void 0,r),t.promise}});var Vde=Qr,Kde=Gt,Gde=Ei,sj=function(e,r){if(Vde(e),Kde(r)&&r.constructor===e)return r;var t=Gde.f(e),n=t.resolve;return n(r),t.promise},qde=de,Yde=yr,Xde=oG,Qde=Bu,Zde=Of.CONSTRUCTOR,Jde=sj,efe=Yde("Promise"),tfe=!Zde;qde({target:"Promise",stat:!0,forced:Xde},{resolve:function(r){return Jde(tfe&&this===efe?Qde:this,r)}});var rfe=de,nfe=Mt,ife=Nr,ofe=Ei,afe=ju,sfe=ws,lfe=sg;rfe({target:"Promise",stat:!0,forced:lfe},{allSettled:function(r){var t=this,n=ofe.f(t),i=n.resolve,o=n.reject,a=afe(function(){var s=ife(t.resolve),l=[],u=0,c=1;sfe(r,function(d){var f=u++,h=!1;c++,nfe(s,t,d).then(function(v){h||(h=!0,l[f]={status:"fulfilled",value:v},--c||i(l))},function(v){h||(h=!0,l[f]={status:"rejected",reason:v},--c||i(l))})}),--c||i(l)});return a.error&&o(a.value),n.promise}});var ufe=de,cfe=Mt,dfe=Nr,ffe=yr,hfe=Ei,vfe=ju,pfe=ws,yfe=sg,Mx="No one promise resolved";ufe({target:"Promise",stat:!0,forced:yfe},{any:function(r){var t=this,n=ffe("AggregateError"),i=hfe.f(t),o=i.resolve,a=i.reject,s=vfe(function(){var l=dfe(t.resolve),u=[],c=0,d=1,f=!1;pfe(r,function(h){var v=c++,p=!1;d++,cfe(l,t,h).then(function(b){p||f||(f=!0,o(b))},function(b){p||f||(p=!0,u[v]=b,--d||a(new n(u,Mx)))})}),--d||a(new n(u,Mx))});return s.error&&a(s.value),i.promise}});var gfe=de,N0=Bu,mfe=Fe,bfe=yr,$fe=dt,wfe=B3,Nx=sj,Sfe=N0&&N0.prototype,_fe=!!N0&&mfe(function(){Sfe.finally.call({then:function(){}},function(){})});gfe({target:"Promise",proto:!0,real:!0,forced:_fe},{finally:function(e){var r=wfe(this,bfe("Promise")),t=$fe(e);return this.then(t?function(n){return Nx(r,e()).then(function(){return n})}:e,t?function(n){return Nx(r,e()).then(function(){throw n})}:e)}});var Efe=tt,Ofe=Efe.Promise,Pfe=Ofe,Cfe=Pfe,Tfe=de,xfe=Ei;Tfe({target:"Promise",stat:!0},{withResolvers:function(){var r=xfe.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}});var kfe=Cfe,Ife=kfe,Rfe=de,Afe=Ei,Mfe=ju;Rfe({target:"Promise",stat:!0,forced:!0},{try:function(e){var r=Afe.f(this),t=Mfe(e);return(t.error?r.reject:r.resolve)(t.value),r.promise}});var Nfe=Ife,Dfe=Nfe,Ffe=Dfe,Lfe=AL,jfe=Lfe,Bfe=jfe,zfe=Bfe,Hfe=zfe;(function(e){var r=pue.default,t=sF,n=x_,i=k3,o=A3,a=$ue,s=PL,l=I3,u=Ffe,c=Hfe,d=TL;function f(){e.exports=f=function(){return v},e.exports.__esModule=!0,e.exports.default=e.exports;var h,v={},p=Object.prototype,b=p.hasOwnProperty,y=t||function(H,N,B){H[N]=B.value},g=typeof n=="function"?n:{},m=g.iterator||"@@iterator",$=g.asyncIterator||"@@asyncIterator",w=g.toStringTag||"@@toStringTag";function S(H,N,B){return t(H,N,{value:B,enumerable:!0,configurable:!0,writable:!0}),H[N]}try{S({},"")}catch{S=function(B,te,ie){return B[te]=ie}}function P(H,N,B,te){var ie=N&&N.prototype instanceof X?N:X,J=i(ie.prototype),_e=new xe(te||[]);return y(J,"_invoke",{value:ce(H,B,_e)}),J}function O(H,N,B){try{return{type:"normal",arg:H.call(N,B)}}catch(te){return{type:"throw",arg:te}}}v.wrap=P;var C="suspendedStart",k="suspendedYield",R="executing",D="completed",z={};function X(){}function Z(){}function F(){}var ee={};S(ee,m,function(){return this});var x=o,L=x&&x(x(ke([])));L&&L!==p&&b.call(L,m)&&(ee=L);var j=F.prototype=X.prototype=i(ee);function Q(H){var N;a(N=["next","throw","return"]).call(N,function(B){S(H,B,function(te){return this._invoke(B,te)})})}function K(H,N){function B(ie,J,_e,Le){var Se=O(H[ie],H,J);if(Se.type!=="throw"){var tr=Se.arg,rr=tr.value;return rr&&r(rr)=="object"&&b.call(rr,"__await")?N.resolve(rr.__await).then(function(rt){B("next",rt,_e,Le)},function(rt){B("throw",rt,_e,Le)}):N.resolve(rr).then(function(rt){tr.value=rt,_e(tr)},function(rt){return B("throw",rt,_e,Le)})}Le(Se.arg)}var te;y(this,"_invoke",{value:function(J,_e){function Le(){return new N(function(Se,tr){B(J,_e,Se,tr)})}return te=te?te.then(Le,Le):Le()}})}function ce(H,N,B){var te=C;return function(ie,J){if(te===R)throw new Error("Generator is already running");if(te===D){if(ie==="throw")throw J;return{value:h,done:!0}}for(B.method=ie,B.arg=J;;){var _e=B.delegate;if(_e){var Le=ge(_e,B);if(Le){if(Le===z)continue;return Le}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(te===C)throw te=D,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);te=R;var Se=O(H,N,B);if(Se.type==="normal"){if(te=B.done?D:k,Se.arg===z)continue;return{value:Se.arg,done:B.done}}Se.type==="throw"&&(te=D,B.method="throw",B.arg=Se.arg)}}}function ge(H,N){var B=N.method,te=H.iterator[B];if(te===h)return N.delegate=null,B==="throw"&&H.iterator.return&&(N.method="return",N.arg=h,ge(H,N),N.method==="throw")||B!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+B+"' method")),z;var ie=O(te,H.iterator,N.arg);if(ie.type==="throw")return N.method="throw",N.arg=ie.arg,N.delegate=null,z;var J=ie.arg;return J?J.done?(N[H.resultName]=J.value,N.next=H.nextLoc,N.method!=="return"&&(N.method="next",N.arg=h),N.delegate=null,z):J:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,z)}function $e(H){var N,B={tryLoc:H[0]};1 in H&&(B.catchLoc=H[1]),2 in H&&(B.finallyLoc=H[2],B.afterLoc=H[3]),s(N=this.tryEntries).call(N,B)}function Te(H){var N=H.completion||{};N.type="normal",delete N.arg,H.completion=N}function xe(H){this.tryEntries=[{tryLoc:"root"}],a(H).call(H,$e,this),this.reset(!0)}function ke(H){if(H||H===""){var N=H[m];if(N)return N.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var B=-1,te=function ie(){for(;++B<H.length;)if(b.call(H,B))return ie.value=H[B],ie.done=!1,ie;return ie.value=h,ie.done=!0,ie};return te.next=te}}throw new TypeError(r(H)+" is not iterable")}return Z.prototype=F,y(j,"constructor",{value:F,configurable:!0}),y(F,"constructor",{value:Z,configurable:!0}),Z.displayName=S(F,w,"GeneratorFunction"),v.isGeneratorFunction=function(H){var N=typeof H=="function"&&H.constructor;return!!N&&(N===Z||(N.displayName||N.name)==="GeneratorFunction")},v.mark=function(H){return l?l(H,F):(H.__proto__=F,S(H,w,"GeneratorFunction")),H.prototype=i(j),H},v.awrap=function(H){return{__await:H}},Q(K.prototype),S(K.prototype,$,function(){return this}),v.AsyncIterator=K,v.async=function(H,N,B,te,ie){ie===void 0&&(ie=u);var J=new K(P(H,N,B,te),ie);return v.isGeneratorFunction(N)?J:J.next().then(function(_e){return _e.done?_e.value:J.next()})},Q(j),S(j,w,"Generator"),S(j,m,function(){return this}),S(j,"toString",function(){return"[object Generator]"}),v.keys=function(H){var N=Object(H),B=[];for(var te in N)s(B).call(B,te);return c(B).call(B),function ie(){for(;B.length;){var J=B.pop();if(J in N)return ie.value=J,ie.done=!1,ie}return ie.done=!0,ie}},v.values=ke,xe.prototype={constructor:xe,reset:function(N){var B;if(this.prev=0,this.next=0,this.sent=this._sent=h,this.done=!1,this.delegate=null,this.method="next",this.arg=h,a(B=this.tryEntries).call(B,Te),!N)for(var te in this)te.charAt(0)==="t"&&b.call(this,te)&&!isNaN(+d(te).call(te,1))&&(this[te]=h)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var B=this;function te(tr,rr){return _e.type="throw",_e.arg=N,B.next=tr,rr&&(B.method="next",B.arg=h),!!rr}for(var ie=this.tryEntries.length-1;ie>=0;--ie){var J=this.tryEntries[ie],_e=J.completion;if(J.tryLoc==="root")return te("end");if(J.tryLoc<=this.prev){var Le=b.call(J,"catchLoc"),Se=b.call(J,"finallyLoc");if(Le&&Se){if(this.prev<J.catchLoc)return te(J.catchLoc,!0);if(this.prev<J.finallyLoc)return te(J.finallyLoc)}else if(Le){if(this.prev<J.catchLoc)return te(J.catchLoc,!0)}else{if(!Se)throw new Error("try statement without catch or finally");if(this.prev<J.finallyLoc)return te(J.finallyLoc)}}}},abrupt:function(N,B){for(var te=this.tryEntries.length-1;te>=0;--te){var ie=this.tryEntries[te];if(ie.tryLoc<=this.prev&&b.call(ie,"finallyLoc")&&this.prev<ie.finallyLoc){var J=ie;break}}J&&(N==="break"||N==="continue")&&J.tryLoc<=B&&B<=J.finallyLoc&&(J=null);var _e=J?J.completion:{};return _e.type=N,_e.arg=B,J?(this.method="next",this.next=J.finallyLoc,z):this.complete(_e)},complete:function(N,B){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&B&&(this.next=B),z},finish:function(N){for(var B=this.tryEntries.length-1;B>=0;--B){var te=this.tryEntries[B];if(te.finallyLoc===N)return this.complete(te.completion,te.afterLoc),Te(te),z}},catch:function(N){for(var B=this.tryEntries.length-1;B>=0;--B){var te=this.tryEntries[B];if(te.tryLoc===N){var ie=te.completion;if(ie.type==="throw"){var J=ie.arg;Te(te)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(N,B,te){return this.delegate={iterator:ke(N),resultName:B,nextLoc:te},this.method==="next"&&(this.arg=h),z}},v}e.exports=f,e.exports.__esModule=!0,e.exports.default=e.exports})(M3);var Wfe=M3.exports,xv=Wfe(),Ufe=xv;try{regeneratorRuntime=xv}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=xv:Function("r","regeneratorRuntime = r")(xv)}var mr=ve(Ufe),lj={exports:{}},Vfe=Fe,Kfe=Vfe(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Gfe=Fe,qfe=Gt,Yfe=oa,Dx=Kfe,kv=Object.isExtensible,Xfe=Gfe(function(){kv(1)}),Qfe=Xfe||Dx?function(r){return!qfe(r)||Dx&&Yfe(r)==="ArrayBuffer"?!1:kv?kv(r):!0}:kv,Zfe=Fe,Jfe=!Zfe(function(){return Object.isExtensible(Object.preventExtensions({}))}),ehe=de,the=Ze,rhe=df,nhe=Gt,Y_=Et,ihe=Fr.f,Fx=ff,ohe=b_,X_=Qfe,ahe=Ny,she=Jfe,uj=!1,Ji=ahe("meta"),lhe=0,Q_=function(e){ihe(e,Ji,{value:{objectID:"O"+lhe++,weakData:{}}})},uhe=function(e,r){if(!nhe(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Y_(e,Ji)){if(!X_(e))return"F";if(!r)return"E";Q_(e)}return e[Ji].objectID},che=function(e,r){if(!Y_(e,Ji)){if(!X_(e))return!0;if(!r)return!1;Q_(e)}return e[Ji].weakData},dhe=function(e){return she&&uj&&X_(e)&&!Y_(e,Ji)&&Q_(e),e},fhe=function(){hhe.enable=function(){},uj=!0;var e=Fx.f,r=the([].splice),t={};t[Ji]=1,e(t).length&&(Fx.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Ji){r(i,o,1);break}return i},ehe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ohe.f}))},hhe=lj.exports={enable:fhe,fastKey:uhe,getWeakData:che,onFreeze:dhe};rhe[Ji]=!0;var cj=lj.exports,vhe=de,phe=et,yhe=cj,ghe=Fe,mhe=no,bhe=ws,$he=U_,whe=dt,She=Gt,_he=Tu,Ehe=bs,Ohe=Fr.f,Phe=Du.forEach,Che=At,dj=Nu,The=dj.set,xhe=dj.getterFor,fj=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=phe[e],s=a&&a.prototype,l={},u;if(!Che||!whe(a)||!(i||s.forEach&&!ghe(function(){new a().entries().next()})))u=t.getConstructor(r,e,n,o),yhe.enable();else{u=r(function(f,h){The($he(f,c),{type:e,collection:new a}),_he(h)||bhe(h,f[o],{that:f,AS_ENTRIES:n})});var c=u.prototype,d=xhe(e);Phe(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(f){var h=f==="add"||f==="set";f in s&&!(i&&f==="clear")&&mhe(c,f,function(v,p){var b=d(this).collection;if(!h&&i&&!She(v))return f==="get"?void 0:!1;var y=b[f](v===0?0:v,p);return h?this:y})}),i||Ohe(c,"size",{configurable:!0,get:function(){return d(this).collection.size}})}return Ehe(u,e,!1,!0),l[e]=u,vhe({global:!0,forced:!0},l),i||t.setStrong(u,e,n),u},khe=Mu,Ihe=function(e,r,t){for(var n in r)t&&t.unsafe&&e[n]?e[n]=r[n]:khe(e,n,r[n],t);return e},Rhe=ms,Ahe=$_,Lx=Ihe,Mhe=sa,Nhe=U_,Dhe=Tu,Fhe=ws,Lhe=P_,zh=C_,jhe=j3,hc=At,jx=cj.fastKey,hj=Nu,Bx=hj.set,Cb=hj.getterFor,vj={getConstructor:function(e,r,t,n){var i=e(function(u,c){Nhe(u,o),Bx(u,{type:r,index:Rhe(null),first:void 0,last:void 0,size:0}),hc||(u.size=0),Dhe(c)||Fhe(c,u[n],{that:u,AS_ENTRIES:t})}),o=i.prototype,a=Cb(r),s=function(u,c,d){var f=a(u),h=l(u,c),v,p;return h?h.value=d:(f.last=h={index:p=jx(c,!0),key:c,value:d,previous:v=f.last,next:void 0,removed:!1},f.first||(f.first=h),v&&(v.next=h),hc?f.size++:u.size++,p!=="F"&&(f.index[p]=h)),u},l=function(u,c){var d=a(u),f=jx(c),h;if(f!=="F")return d.index[f];for(h=d.first;h;h=h.next)if(h.key===c)return h};return Lx(o,{clear:function(){for(var c=this,d=a(c),f=d.index,h=d.first;h;)h.removed=!0,h.previous&&(h.previous=h.previous.next=void 0),delete f[h.index],h=h.next;d.first=d.last=void 0,hc?d.size=0:c.size=0},delete:function(u){var c=this,d=a(c),f=l(c,u);if(f){var h=f.next,v=f.previous;delete d.index[f.index],f.removed=!0,v&&(v.next=h),h&&(h.previous=v),d.first===f&&(d.first=h),d.last===f&&(d.last=v),hc?d.size--:c.size--}return!!f},forEach:function(c){for(var d=a(this),f=Mhe(c,arguments.length>1?arguments[1]:void 0),h;h=h?h.next:d.first;)for(f(h.value,h.key,this);h&&h.removed;)h=h.previous},has:function(c){return!!l(this,c)}}),Lx(o,t?{get:function(c){var d=l(this,c);return d&&d.value},set:function(c,d){return s(this,c===0?0:c,d)}}:{add:function(c){return s(this,c=c===0?0:c,c)}}),hc&&Ahe(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=Cb(r),o=Cb(n);Lhe(e,r,function(a,s){Bx(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(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,zh(void 0,!0)):zh(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},t?"entries":"values",!t,!0),jhe(r)}},Bhe=fj,zhe=vj;Bhe("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},zhe);var Hhe=tt,Whe=Hhe.Map,Uhe=Whe,Vhe=Uhe,Khe=Vhe,pj=ve(Khe),Ghe=de,qhe=Du.some,Yhe=Jy,Xhe=Yhe("some");Ghe({target:"Array",proto:!0,forced:!Xhe},{some:function(r){return qhe(this,r,arguments.length>1?arguments[1]:void 0)}});var Qhe=er,Zhe=Qhe("Array","some"),Jhe=_t,eve=Zhe,Tb=Array.prototype,tve=function(e){var r=e.some;return e===Tb||Jhe(Tb,e)&&r===Tb.some?eve:r},rve=tve,nve=rve,ive=nve,ove=ve(ive),ave=er,sve=ave("Array","keys"),lve=sve,uve=lve,cve=io,dve=Et,fve=_t,hve=uve,xb=Array.prototype,vve={DOMTokenList:!0,NodeList:!0},pve=function(e){var r=e.keys;return e===xb||fve(xb,e)&&r===xb.keys||dve(vve,cve(e))?hve:r},yve=pve,Bs=ve(yve),zx=bF,gve=Math.floor,D0=function(e,r){var t=e.length,n=gve(t/2);return t<8?mve(e,r):bve(e,D0(zx(e,0,n),r),D0(zx(e,n),r),r)},mve=function(e,r){for(var t=e.length,n=1,i,o;n<t;){for(o=n,i=e[n];o&&r(e[o-1],i)>0;)e[o]=e[--o];o!==n++&&(e[o]=i)}return e},bve=function(e,r,t,n){for(var i=r.length,o=t.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(r[a],t[s])<=0?r[a++]:t[s++]:a<i?r[a++]:t[s++];return e},$ve=D0,wve=aa,Hx=wve.match(/firefox\/(\d+)/i),Sve=!!Hx&&+Hx[1],_ve=aa,Eve=/MSIE|Trident/.test(_ve),Ove=aa,Wx=Ove.match(/AppleWebKit\/(\d+)\./),Pve=!!Wx&&+Wx[1],Cve=de,yj=Ze,Tve=Nr,xve=Dr,Ux=Zr,kve=ML,Vx=gs,Z_=Fe,Ive=$ve,Rve=Jy,Kx=Sve,Ave=Eve,Gx=xu,qx=Pve,To=[],Yx=yj(To.sort),Mve=yj(To.push),Nve=Z_(function(){To.sort(void 0)}),Dve=Z_(function(){To.sort(null)}),Fve=Rve("sort"),gj=!Z_(function(){if(Gx)return Gx<70;if(!(Kx&&Kx>3)){if(Ave)return!0;if(qx)return qx<603;var e="",r,t,n,i;for(r=65;r<76;r++){switch(t=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)To.push({k:t+i,v:n})}for(To.sort(function(o,a){return a.v-o.v}),i=0;i<To.length;i++)t=To[i].k.charAt(0),e.charAt(e.length-1)!==t&&(e+=t);return e!=="DGBEFHACIJK"}}),Lve=Nve||!Dve||!Fve||!gj,jve=function(e){return function(r,t){return t===void 0?-1:r===void 0?1:e!==void 0?+e(r,t)||0:Vx(r)>Vx(t)?1:-1}};Cve({target:"Array",proto:!0,forced:Lve},{sort:function(r){r!==void 0&&Tve(r);var t=xve(this);if(gj)return r===void 0?Yx(t):Yx(t,r);var n=[],i=Ux(t),o,a;for(a=0;a<i;a++)a in t&&Mve(n,t[a]);for(Ive(n,jve(r)),o=Ux(n),a=0;a<o;)t[a]=n[a++];for(;a<i;)kve(t,a++);return t}});var Bve=er,zve=Bve("Array","sort"),Hve=_t,Wve=zve,kb=Array.prototype,Uve=function(e){var r=e.sort;return e===kb||Hve(kb,e)&&r===kb.sort?Wve:r},Vve=Uve,Kve=Vve,Gve=Kve,F0=ve(Gve),qve=er,Yve=qve("Array","values"),Xve=Yve,Qve=Xve,Zve=io,Jve=Et,epe=_t,tpe=Qve,Ib=Array.prototype,rpe={DOMTokenList:!0,NodeList:!0},npe=function(e){var r=e.values;return e===Ib||epe(Ib,e)&&r===Ib.values||Jve(rpe,Zve(e))?tpe:r},ipe=npe,Xx=ve(ipe),ope=aL,vl=ve(ope),ape=er,spe=ape("Array","entries"),lpe=spe,upe=lpe,cpe=io,dpe=Et,fpe=_t,hpe=upe,Rb=Array.prototype,vpe={DOMTokenList:!0,NodeList:!0},ppe=function(e){var r=e.entries;return e===Rb||fpe(Rb,e)&&r===Rb.entries||dpe(vpe,cpe(e))?hpe:r},ype=ppe,gpe=ve(ype);let Hh;const mpe=new Uint8Array(16);function bpe(){if(!Hh&&(Hh=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Hh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hh(mpe)}const Bt=[];for(let e=0;e<256;++e)Bt.push((e+256).toString(16).slice(1));function $pe(e,r=0){return Bt[e[r+0]]+Bt[e[r+1]]+Bt[e[r+2]]+Bt[e[r+3]]+"-"+Bt[e[r+4]]+Bt[e[r+5]]+"-"+Bt[e[r+6]]+Bt[e[r+7]]+"-"+Bt[e[r+8]]+Bt[e[r+9]]+"-"+Bt[e[r+10]]+Bt[e[r+11]]+Bt[e[r+12]]+Bt[e[r+13]]+Bt[e[r+14]]+Bt[e[r+15]]}const wpe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var Qx={randomUUID:wpe};function Spe(e,r,t){if(Qx.randomUUID&&!r&&!e)return Qx.randomUUID();e=e||{};const n=e.random||(e.rng||bpe)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,$pe(n)}function Zx(e){return typeof e=="string"||typeof e=="number"}var _pe=function(){function e(r){Ry(this,e),zo(this,"_queue",[]),zo(this,"_timeout",null),zo(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(r)}return Zy(e,[{key:"setOptions",value:function(t){t&&typeof t.delay<"u"&&(this.delay=t.delay),t&&typeof t.max<"u"&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,n=this._extended.methods,i=0;i<n.length;i++){var o=n[i];o.original?t[o.name]=o.original:delete t[o.name]}this._extended=null}}},{key:"replace",value:function(t,n){var i=this,o=t[n];if(!o)throw new Error("Method "+n+" undefined");t[n]=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];i.queue({args:s,fn:o,context:this})}}},{key:"queue",value:function(t){typeof t=="function"?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=Xae(function(){t.flush()},this.delay))}},{key:"flush",value:function(){var t,n;rs(t=NL(n=this._queue).call(n,0)).call(t,function(i){i.fn.apply(i.context||i.fn,i.args||[])})}}],[{key:"extend",value:function(t,n){var i=new e(n);if(t.flush!==void 0)throw new Error("Target object already has a property flush");t.flush=function(){i.flush()};var o=[{name:"flush",original:void 0}];if(n&&n.replace)for(var a=0;a<n.replace.length;a++){var s=n.replace[a];o.push({name:s,original:t[s]}),i.replace(t,s)}return i._extended={object:t,methods:o},i}}]),e}(),Epe=function(){function e(){Ry(this,e),zo(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),zo(this,"subscribe",e.prototype.on),zo(this,"unsubscribe",e.prototype.off)}return Zy(e,[{key:"_trigger",value:function(t,n,i){var o,a;if(t==="*")throw new Error("Cannot trigger event *");rs(o=rg(a=[]).call(a,Er(this._subscribers[t]),Er(this._subscribers["*"]))).call(o,function(s){s(t,n,i??null)})}},{key:"on",value:function(t,n){typeof n=="function"&&this._subscribers[t].push(n)}},{key:"off",value:function(t,n){var i;this._subscribers[t]=ul(i=this._subscribers[t]).call(i,function(o){return o!==n})}}]),e}(),Ope=fj,Ppe=vj;Ope("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ppe);var Cpe=tt,Tpe=Cpe.Set,xpe=Tpe,kpe=xpe,Ipe=kpe,Ab=ve(Ipe),Rpe=I_,Ape=Rpe,Mpe=Ape,Npe=Mpe,Dpe=Npe,Fpe=Dpe,Lpe=Fpe,jpe=Lpe,Bpe=jpe,zpe=Bpe,Mb=ve(zpe);function ei(e,r){var t=typeof tg<"u"&&A_(e)||e["@@iterator"];if(!t){if(Wr(e)||(t=Hpe(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
94
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}function Hpe(e,r){var t;if(e){if(typeof e=="string")return Jx(e,r);var n=ng(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return R_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jx(e,r)}}function Jx(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var ek=function(e){function r(t){Ry(this,r),this._pairs=t}return Zy(r,[{key:e,value:mr.mark(function t(){var n,i,o,a,s;return mr.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n=ei(this._pairs),u.prev=1,n.s();case 3:if((i=n.n()).done){u.next=9;break}return o=gr(i.value,2),a=o[0],s=o[1],u.next=7,[a,s];case 7:u.next=3;break;case 9:u.next=14;break;case 11:u.prev=11,u.t0=u.catch(1),n.e(u.t0);case 14:return u.prev=14,n.f(),u.finish(14);case 17:case"end":return u.stop()}},t,this,[[1,11,14,17]])})},{key:"entries",value:mr.mark(function t(){var n,i,o,a,s;return mr.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n=ei(this._pairs),u.prev=1,n.s();case 3:if((i=n.n()).done){u.next=9;break}return o=gr(i.value,2),a=o[0],s=o[1],u.next=7,[a,s];case 7:u.next=3;break;case 9:u.next=14;break;case 11:u.prev=11,u.t0=u.catch(1),n.e(u.t0);case 14:return u.prev=14,n.f(),u.finish(14);case 17:case"end":return u.stop()}},t,this,[[1,11,14,17]])})},{key:"keys",value:mr.mark(function t(){var n,i,o,a;return mr.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:n=ei(this._pairs),l.prev=1,n.s();case 3:if((i=n.n()).done){l.next=9;break}return o=gr(i.value,1),a=o[0],l.next=7,a;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),n.e(l.t0);case 14:return l.prev=14,n.f(),l.finish(14);case 17:case"end":return l.stop()}},t,this,[[1,11,14,17]])})},{key:"values",value:mr.mark(function t(){var n,i,o,a;return mr.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:n=ei(this._pairs),l.prev=1,n.s();case 3:if((i=n.n()).done){l.next=9;break}return o=gr(i.value,2),a=o[1],l.next=7,a;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),n.e(l.t0);case 14:return l.prev=14,n.f(),l.finish(14);case 17:case"end":return l.stop()}},t,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var n;return Ln(n=Er(this._pairs)).call(n,function(i){return i[0]})}},{key:"toItemArray",value:function(){var n;return Ln(n=Er(this._pairs)).call(n,function(i){return i[1]})}},{key:"toEntryArray",value:function(){return Er(this._pairs)}},{key:"toObjectMap",value:function(){var n=Pae(null),i=ei(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var a=gr(o.value,2),s=a[0],l=a[1];n[s]=l}}catch(u){i.e(u)}finally{i.f()}return n}},{key:"toMap",value:function(){return new pj(this._pairs)}},{key:"toIdSet",value:function(){return new Ab(this.toIdArray())}},{key:"toItemSet",value:function(){return new Ab(this.toItemArray())}},{key:"cache",value:function(){return new r(Er(this._pairs))}},{key:"distinct",value:function(n){var i=new Ab,o=ei(this._pairs),a;try{for(o.s();!(a=o.n()).done;){var s=gr(a.value,2),l=s[0],u=s[1];i.add(n(u,l))}}catch(c){o.e(c)}finally{o.f()}return i}},{key:"filter",value:function(n){var i=this._pairs;return new r({[vl](){return mr.mark(function o(){var a,s,l,u,c;return mr.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:a=ei(i),f.prev=1,a.s();case 3:if((s=a.n()).done){f.next=10;break}if(l=gr(s.value,2),u=l[0],c=l[1],!n(c,u)){f.next=8;break}return f.next=8,[u,c];case 8:f.next=3;break;case 10:f.next=15;break;case 12:f.prev=12,f.t0=f.catch(1),a.e(f.t0);case 15:return f.prev=15,a.f(),f.finish(15);case 18:case"end":return f.stop()}},o,null,[[1,12,15,18]])})()}})}},{key:"forEach",value:function(n){var i=ei(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var a=gr(o.value,2),s=a[0],l=a[1];n(l,s)}}catch(u){i.e(u)}finally{i.f()}}},{key:"map",value:function(n){var i=this._pairs;return new r({[vl](){return mr.mark(function o(){var a,s,l,u,c;return mr.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:a=ei(i),f.prev=1,a.s();case 3:if((s=a.n()).done){f.next=9;break}return l=gr(s.value,2),u=l[0],c=l[1],f.next=7,[u,n(c,u)];case 7:f.next=3;break;case 9:f.next=14;break;case 11:f.prev=11,f.t0=f.catch(1),a.e(f.t0);case 14:return f.prev=14,a.f(),f.finish(14);case 17:case"end":return f.stop()}},o,null,[[1,11,14,17]])})()}})}},{key:"max",value:function(n){var i=Mb(this._pairs),o=i.next();if(o.done)return null;for(var a=o.value[1],s=n(o.value[1],o.value[0]);!(o=i.next()).done;){var l=gr(o.value,2),u=l[0],c=l[1],d=n(c,u);d>s&&(s=d,a=c)}return a}},{key:"min",value:function(n){var i=Mb(this._pairs),o=i.next();if(o.done)return null;for(var a=o.value[1],s=n(o.value[1],o.value[0]);!(o=i.next()).done;){var l=gr(o.value,2),u=l[0],c=l[1],d=n(c,u);d<s&&(s=d,a=c)}return a}},{key:"reduce",value:function(n,i){var o=ei(this._pairs),a;try{for(o.s();!(a=o.n()).done;){var s=gr(a.value,2),l=s[0],u=s[1];i=n(i,u,l)}}catch(c){o.e(c)}finally{o.f()}return i}},{key:"sort",value:function(n){var i=this;return new r({[vl]:function(){var o;return Mb(F0(o=Er(i._pairs)).call(o,function(a,s){var l=gr(a,2),u=l[0],c=l[1],d=gr(s,2),f=d[0],h=d[1];return n(c,h,u,f)}))}})}}]),r}(vl);function tk(e,r){var t=N_(e);if(ix){var n=ix(e);r&&(n=ul(n).call(n,function(i){return P3(e,i).enumerable})),t.push.apply(t,n)}return t}function rk(e){for(var r=1;r<arguments.length;r++){var t,n,i=arguments[r]!=null?arguments[r]:{};r%2?rs(t=tk(Object(i),!0)).call(t,function(o){zo(e,o,i[o])}):ox?Ble(e,ox(i)):rs(n=tk(Object(i))).call(n,function(o){Hle(e,o,P3(i,o))})}return e}function Nb(e,r){var t=typeof tg<"u"&&A_(e)||e["@@iterator"];if(!t){if(Wr(e)||(t=Wpe(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
95
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}function Wpe(e,r){var t;if(e){if(typeof e=="string")return nk(e,r);var n=ng(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return R_(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nk(e,r)}}function nk(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Upe(e){var r=Vpe();return function(){var n=kp(e),i;if(r){var o=kp(this).constructor;i=Cv(n,arguments,o)}else i=n.apply(this,arguments);return cue(this,i)}}function Vpe(){if(typeof Reflect>"u"||!Cv||Cv.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Cv(Boolean,[],function(){})),!0}catch{return!1}}function Kpe(e,r){return e[r]==null&&(e[r]=Spe()),e}var hu=function(e){uue(t,e);var r=Upe(t);function t(n,i){var o;return Ry(this,t),o=r.call(this),zo(x3(o),"_queue",null),n&&!Wr(n)&&(i=n,n=[]),o._options=i||{},o._data=new pj,o.length=0,o._idProp=o._options.fieldId||"id",n&&n.length&&o.add(n),o.setOptions(i),o}return Zy(t,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(i){i&&i.queue!==void 0&&(i.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=_pe.extend(this,{replace:["add","update","remove"]})),i.queue&&typeof i.queue=="object"&&this._queue.setOptions(i.queue)))}},{key:"add",value:function(i,o){var a=this,s=[],l;if(Wr(i)){var u=Ln(i).call(i,function(f){return f[a._idProp]});if(ove(u).call(u,function(f){return a._data.has(f)}))throw new Error("A duplicate id was found in the parameter array.");for(var c=0,d=i.length;c<d;c++)l=this._addItem(i[c]),s.push(l)}else if(i&&typeof i=="object")l=this._addItem(i),s.push(l);else throw new Error("Unknown dataType");return s.length&&this._trigger("add",{items:s},o),s}},{key:"update",value:function(i,o){var a=this,s=[],l=[],u=[],c=[],d=this._idProp,f=function(y){var g=y[d];if(g!=null&&a._data.has(g)){var m=y,$=lae({},a._data.get(g)),w=a._updateItem(m);l.push(w),c.push(m),u.push($)}else{var S=a._addItem(y);s.push(S)}};if(Wr(i))for(var h=0,v=i.length;h<v;h++)i[h]&&typeof i[h]=="object"?f(i[h]):console.warn("Ignoring input item, which is not an object at index "+h);else if(i&&typeof i=="object")f(i);else throw new Error("Unknown dataType");if(s.length&&this._trigger("add",{items:s},o),l.length){var p={items:l,oldData:u,data:c};this._trigger("update",p,o)}return rg(s).call(s,l)}},{key:"updateOnly",value:function(i,o){var a,s=this;Wr(i)||(i=[i]);var l=Ln(a=Ln(i).call(i,function(c){var d=s._data.get(c[s._idProp]);if(d==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:d,update:c}})).call(a,function(c){var d=c.oldData,f=c.update,h=d[s._idProp],v=zse(d,f);return s._data.set(h,v),{id:h,oldData:d,updatedData:v}});if(l.length){var u={items:Ln(l).call(l,function(c){return c.id}),oldData:Ln(l).call(l,function(c){return c.oldData}),data:Ln(l).call(l,function(c){return c.updatedData})};return this._trigger("update",u,o),u.items}else return[]}},{key:"get",value:function(i,o){var a=void 0,s=void 0,l=void 0;Zx(i)?(a=i,l=o):Wr(i)?(s=i,l=o):l=i;var u=l&&l.returnType==="Object"?"Object":"Array",c=l&&ul(l),d=[],f=void 0,h=void 0,v=void 0;if(a!=null)f=this._data.get(a),f&&c&&!c(f)&&(f=void 0);else if(s!=null)for(var p=0,b=s.length;p<b;p++)f=this._data.get(s[p]),f!=null&&(!c||c(f))&&d.push(f);else{var y;h=Er(Bs(y=this._data).call(y));for(var g=0,m=h.length;g<m;g++)v=h[g],f=this._data.get(v),f!=null&&(!c||c(f))&&d.push(f)}if(l&&l.order&&a==null&&this._sort(d,l.order),l&&l.fields){var $=l.fields;if(a!=null&&f!=null)f=this._filterFields(f,$);else for(var w=0,S=d.length;w<S;w++)d[w]=this._filterFields(d[w],$)}if(u=="Object"){for(var P={},O=0,C=d.length;O<C;O++){var k=d[O],R=k[this._idProp];P[R]=k}return P}else if(a!=null){var D;return(D=f)!==null&&D!==void 0?D:null}else return d}},{key:"getIds",value:function(i){var o=this._data,a=i&&ul(i),s=i&&i.order,l=Er(Bs(o).call(o)),u=[];if(a)if(s){for(var c=[],d=0,f=l.length;d<f;d++){var h=l[d],v=this._data.get(h);v!=null&&a(v)&&c.push(v)}this._sort(c,s);for(var p=0,b=c.length;p<b;p++)u.push(c[p][this._idProp])}else for(var y=0,g=l.length;y<g;y++){var m=l[y],$=this._data.get(m);$!=null&&a($)&&u.push($[this._idProp])}else if(s){for(var w=[],S=0,P=l.length;S<P;S++){var O=l[S];w.push(o.get(O))}this._sort(w,s);for(var C=0,k=w.length;C<k;C++)u.push(w[C][this._idProp])}else for(var R=0,D=l.length;R<D;R++){var z=l[R],X=o.get(z);X!=null&&u.push(X[this._idProp])}return u}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(i,o){var a=o&&ul(o),s=this._data,l=Er(Bs(s).call(s));if(o&&o.order)for(var u=this.get(o),c=0,d=u.length;c<d;c++){var f=u[c],h=f[this._idProp];i(f,h)}else for(var v=0,p=l.length;v<p;v++){var b=l[v],y=this._data.get(b);y!=null&&(!a||a(y))&&i(y,b)}}},{key:"map",value:function(i,o){for(var a=o&&ul(o),s=[],l=this._data,u=Er(Bs(l).call(l)),c=0,d=u.length;c<d;c++){var f=u[c],h=this._data.get(f);h!=null&&(!a||a(h))&&s.push(i(h,f))}return o&&o.order&&this._sort(s,o.order),s}},{key:"_filterFields",value:function(i,o){var a;return i&&Ete(a=Wr(o)?o:N_(o)).call(a,function(s,l){return s[l]=i[l],s},{})}},{key:"_sort",value:function(i,o){if(typeof o=="string"){var a=o;F0(i).call(i,function(s,l){var u=s[a],c=l[a];return u>c?1:u<c?-1:0})}else if(typeof o=="function")F0(i).call(i,o);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(i,o){for(var a=[],s=[],l=Wr(i)?i:[i],u=0,c=l.length;u<c;u++){var d=this._remove(l[u]);if(d){var f=d[this._idProp];f!=null&&(a.push(f),s.push(d))}}return a.length&&this._trigger("remove",{items:a,oldData:s},o),a}},{key:"_remove",value:function(i){var o;if(Zx(i)?o=i:i&&typeof i=="object"&&(o=i[this._idProp]),o!=null&&this._data.has(o)){var a=this._data.get(o)||null;return this._data.delete(o),--this.length,a}return null}},{key:"clear",value:function(i){for(var o,a=Er(Bs(o=this._data).call(o)),s=[],l=0,u=a.length;l<u;l++)s.push(this._data.get(a[l]));return this._data.clear(),this.length=0,this._trigger("remove",{items:a,oldData:s},i),a}},{key:"max",value:function(i){var o,a=null,s=null,l=Nb(Xx(o=this._data).call(o)),u;try{for(l.s();!(u=l.n()).done;){var c=u.value,d=c[i];typeof d=="number"&&(s==null||d>s)&&(a=c,s=d)}}catch(f){l.e(f)}finally{l.f()}return a||null}},{key:"min",value:function(i){var o,a=null,s=null,l=Nb(Xx(o=this._data).call(o)),u;try{for(l.s();!(u=l.n()).done;){var c=u.value,d=c[i];typeof d=="number"&&(s==null||d<s)&&(a=c,s=d)}}catch(f){l.e(f)}finally{l.f()}return a||null}},{key:"distinct",value:function(i){for(var o=this._data,a=Er(Bs(o).call(o)),s=[],l=0,u=0,c=a.length;u<c;u++){for(var d=a[u],f=o.get(d),h=f[i],v=!1,p=0;p<l;p++)if(s[p]==h){v=!0;break}!v&&h!==void 0&&(s[l]=h,l++)}return s}},{key:"_addItem",value:function(i){var o=Kpe(i,this._idProp),a=o[this._idProp];if(this._data.has(a))throw new Error("Cannot add item: item with id "+a+" already exists");return this._data.set(a,o),++this.length,a}},{key:"_updateItem",value:function(i){var o=i[this._idProp];if(o==null)throw new Error("Cannot update item: item has no id (item: "+Rae(i)+")");var a=this._data.get(o);if(!a)throw new Error("Cannot update item: no item with id "+o+" found");return this._data.set(o,rk(rk({},a),i)),o}},{key:"stream",value:function(i){if(i){var o=this._data;return new ek({[vl](){return mr.mark(function s(){var l,u,c,d;return mr.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:l=Nb(i),h.prev=1,l.s();case 3:if((u=l.n()).done){h.next=11;break}if(c=u.value,d=o.get(c),d==null){h.next=9;break}return h.next=9,[c,d];case 9:h.next=3;break;case 11:h.next=16;break;case 13:h.prev=13,h.t0=h.catch(1),l.e(h.t0);case 16:return h.prev=16,l.f(),h.finish(16);case 19:case"end":return h.stop()}},s,null,[[1,13,16,19]])})()}})}else{var a;return new ek({[vl]:hL(a=gpe(this._data)).call(a,this._data)})}}}]),t}(Epe);function Gpe(e,r){return typeof r=="object"&&r!==null&&e===r.idProp&&typeof r.add=="function"&&typeof r.clear=="function"&&typeof r.distinct=="function"&&typeof rs(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof Ln(r)=="function"&&typeof r.max=="function"&&typeof r.min=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.remove=="function"&&typeof r.setOptions=="function"&&typeof r.stream=="function"&&typeof r.update=="function"&&typeof r.updateOnly=="function"}function mj(e,r){return typeof r=="object"&&r!==null&&e===r.idProp&&typeof rs(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof Ln(r)=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.stream=="function"&&Gpe(e,r.getDataSet())}/**
|
96
|
-
* vis-network
|
97
|
-
* https://visjs.github.io/vis-network/
|
98
|
-
*
|
99
|
-
* A dynamic, browser-based visualization library.
|
100
|
-
*
|
101
|
-
* @version 9.1.9
|
102
|
-
* @date 2023-11-03T01:42:27.418Z
|
103
|
-
*
|
104
|
-
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
105
|
-
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
106
|
-
*
|
107
|
-
* @license
|
108
|
-
* vis.js is dual licensed under both
|
109
|
-
*
|
110
|
-
* 1. The Apache 2.0 License
|
111
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
112
|
-
*
|
113
|
-
* and
|
114
|
-
*
|
115
|
-
* 2. The MIT License
|
116
|
-
* http://opensource.org/licenses/MIT
|
117
|
-
*
|
118
|
-
* vis.js may be distributed under either license.
|
119
|
-
*/var Db=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wh=function(e){return e&&e.Math===Math&&e},ht=Wh(typeof globalThis=="object"&&globalThis)||Wh(typeof window=="object"&&window)||Wh(typeof self=="object"&&self)||Wh(typeof Db=="object"&&Db)||function(){return this}()||Db||Function("return this")(),Re=function(e){try{return!!e()}catch{return!0}},qpe=Re,Cf=!qpe(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),Ype=Cf,bj=Function.prototype,ik=bj.apply,ok=bj.call,Tf=typeof Reflect=="object"&&Reflect.apply||(Ype?ok.bind(ik):function(){return ok.apply(ik,arguments)}),$j=Cf,wj=Function.prototype,L0=wj.call,Xpe=$j&&wj.bind.bind(L0,L0),Me=$j?Xpe:function(e){return function(){return L0.apply(e,arguments)}},Sj=Me,Qpe=Sj({}.toString),Zpe=Sj("".slice),oo=function(e){return Zpe(Qpe(e),8,-1)},Jpe=oo,eye=Me,J_=function(e){if(Jpe(e)==="Function")return eye(e)},j0=typeof document=="object"&&document.all,tye=typeof j0>"u"&&j0!==void 0,_j={all:j0,IS_HTMLDDA:tye},Ej=_j,rye=Ej.all,Nt=Ej.IS_HTMLDDA?function(e){return typeof e=="function"||e===rye}:function(e){return typeof e=="function"},zu={},nye=Re,Dt=!nye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),iye=Cf,Uh=Function.prototype.call,Jr=iye?Uh.bind(Uh):function(){return Uh.apply(Uh,arguments)},lg={},Oj={}.propertyIsEnumerable,Pj=Object.getOwnPropertyDescriptor,oye=Pj&&!Oj.call({1:2},1);lg.f=oye?function(r){var t=Pj(this,r);return!!t&&t.enumerable}:Oj;var xf=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}},aye=Me,sye=Re,lye=oo,Fb=Object,uye=aye("".split),ug=sye(function(){return!Fb("z").propertyIsEnumerable(0)})?function(e){return lye(e)==="String"?uye(e,""):Fb(e)}:Fb,Hu=function(e){return e==null},cye=Hu,dye=TypeError,kf=function(e){if(cye(e))throw new dye("Can't call method on "+e);return e},fye=ug,hye=kf,Oi=function(e){return fye(hye(e))},ak=Nt,Cj=_j,vye=Cj.all,Ft=Cj.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:ak(e)||e===vye}:function(e){return typeof e=="object"?e!==null:ak(e)},Ae={},Lb=Ae,jb=ht,pye=Nt,sk=function(e){return pye(e)?e:void 0},Pn=function(e,r){return arguments.length<2?sk(Lb[e])||sk(jb[e]):Lb[e]&&Lb[e][r]||jb[e]&&jb[e][r]},yye=Me,mt=yye({}.isPrototypeOf),If=typeof navigator<"u"&&String(navigator.userAgent)||"",Tj=ht,Bb=If,lk=Tj.process,uk=Tj.Deno,ck=lk&&lk.versions||uk&&uk.version,dk=ck&&ck.v8,jn,Mp;dk&&(jn=dk.split("."),Mp=jn[0]>0&&jn[0]<4?1:+(jn[0]+jn[1]));!Mp&&Bb&&(jn=Bb.match(/Edge\/(\d+)/),(!jn||jn[1]>=74)&&(jn=Bb.match(/Chrome\/(\d+)/),jn&&(Mp=+jn[1])));var Rf=Mp,fk=Rf,gye=Re,mye=ht,bye=mye.String,Wu=!!Object.getOwnPropertySymbols&&!gye(function(){var e=Symbol("symbol detection");return!bye(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fk&&fk<41}),$ye=Wu,xj=$ye&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wye=Pn,Sye=Nt,_ye=mt,Eye=xj,Oye=Object,Af=Eye?function(e){return typeof e=="symbol"}:function(e){var r=wye("Symbol");return Sye(r)&&_ye(r.prototype,Oye(e))},Pye=String,Uu=function(e){try{return Pye(e)}catch{return"Object"}},Cye=Nt,Tye=Uu,xye=TypeError,Ss=function(e){if(Cye(e))return e;throw new xye(Tye(e)+" is not a function")},kye=Ss,Iye=Hu,eE=function(e,r){var t=e[r];return Iye(t)?void 0:kye(t)},zb=Jr,Hb=Nt,Wb=Ft,Rye=TypeError,Aye=function(e,r){var t,n;if(r==="string"&&Hb(t=e.toString)&&!Wb(n=zb(t,e))||Hb(t=e.valueOf)&&!Wb(n=zb(t,e))||r!=="string"&&Hb(t=e.toString)&&!Wb(n=zb(t,e)))return n;throw new Rye("Can't convert object to primitive value")},kj={exports:{}},hk=ht,Mye=Object.defineProperty,Nye=function(e,r){try{Mye(hk,e,{value:r,configurable:!0,writable:!0})}catch{hk[e]=r}return r},Dye=ht,Fye=Nye,vk="__core-js_shared__",Lye=Dye[vk]||Fye(vk,{}),tE=Lye,pk=tE;(kj.exports=function(e,r){return pk[e]||(pk[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 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 Vu=kj.exports,jye=kf,Bye=Object,Lr=function(e){return Bye(jye(e))},zye=Me,Hye=Lr,Wye=zye({}.hasOwnProperty),Lt=Object.hasOwn||function(r,t){return Wye(Hye(r),t)},Uye=Me,Vye=0,Kye=Math.random(),Gye=Uye(1 .toString),cg=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Gye(++Vye+Kye,36)},qye=ht,Yye=Vu,yk=Lt,Xye=cg,Qye=Wu,Zye=xj,pl=qye.Symbol,Ub=Yye("wks"),Jye=Zye?pl.for||pl:pl&&pl.withoutSetter||Xye,vt=function(e){return yk(Ub,e)||(Ub[e]=Qye&&yk(pl,e)?pl[e]:Jye("Symbol."+e)),Ub[e]},ege=Jr,gk=Ft,mk=Af,tge=eE,rge=Aye,nge=vt,ige=TypeError,oge=nge("toPrimitive"),age=function(e,r){if(!gk(e)||mk(e))return e;var t=tge(e,oge),n;if(t){if(r===void 0&&(r="default"),n=ege(t,e,r),!gk(n)||mk(n))return n;throw new ige("Can't convert object to primitive value")}return r===void 0&&(r="number"),rge(e,r)},sge=age,lge=Af,dg=function(e){var r=sge(e,"string");return lge(r)?r:r+""},uge=ht,bk=Ft,B0=uge.document,cge=bk(B0)&&bk(B0.createElement),Ij=function(e){return cge?B0.createElement(e):{}},dge=Dt,fge=Re,hge=Ij,Rj=!dge&&!fge(function(){return Object.defineProperty(hge("div"),"a",{get:function(){return 7}}).a!==7}),vge=Dt,pge=Jr,yge=lg,gge=xf,mge=Oi,bge=dg,$ge=Lt,wge=Rj,$k=Object.getOwnPropertyDescriptor;zu.f=vge?$k:function(r,t){if(r=mge(r),t=bge(t),wge)try{return $k(r,t)}catch{}if($ge(r,t))return gge(!pge(yge.f,r,t),r[t])};var Sge=Re,_ge=Nt,Ege=/#|\.prototype\./,Mf=function(e,r){var t=Pge[Oge(e)];return t===Tge?!0:t===Cge?!1:_ge(r)?Sge(r):!!r},Oge=Mf.normalize=function(e){return String(e).replace(Ege,".").toLowerCase()},Pge=Mf.data={},Cge=Mf.NATIVE="N",Tge=Mf.POLYFILL="P",xge=Mf,wk=J_,kge=Ss,Ige=Cf,Rge=wk(wk.bind),Nf=function(e,r){return kge(e),r===void 0?e:Ige?Rge(e,r):function(){return e.apply(r,arguments)}},en={},Age=Dt,Mge=Re,Aj=Age&&Mge(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Nge=Ft,Dge=String,Fge=TypeError,tn=function(e){if(Nge(e))return e;throw new Fge(Dge(e)+" is not an object")},Lge=Dt,jge=Rj,Bge=Aj,Vh=tn,Sk=dg,zge=TypeError,Vb=Object.defineProperty,Hge=Object.getOwnPropertyDescriptor,Kb="enumerable",Gb="configurable",qb="writable";en.f=Lge?Bge?function(r,t,n){if(Vh(r),t=Sk(t),Vh(n),typeof r=="function"&&t==="prototype"&&"value"in n&&qb in n&&!n[qb]){var i=Hge(r,t);i&&i[qb]&&(r[t]=n.value,n={configurable:Gb in n?n[Gb]:i[Gb],enumerable:Kb in n?n[Kb]:i[Kb],writable:!1})}return Vb(r,t,n)}:Vb:function(r,t,n){if(Vh(r),t=Sk(t),Vh(n),jge)try{return Vb(r,t,n)}catch{}if("get"in n||"set"in n)throw new zge("Accessors not supported");return"value"in n&&(r[t]=n.value),r};var Wge=Dt,Uge=en,Vge=xf,Ku=Wge?function(e,r,t){return Uge.f(e,r,Vge(1,t))}:function(e,r,t){return e[r]=t,e},Kh=ht,Kge=Tf,Gge=J_,qge=Nt,Yge=zu.f,Xge=xge,zs=Ae,Qge=Nf,Hs=Ku,_k=Lt,Zge=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Kge(e,this,arguments)};return r.prototype=e.prototype,r},he=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Kh:i?Kh[t]:(Kh[t]||{}).prototype,s=n?zs:zs[t]||Hs(zs,t,{})[t],l=s.prototype,u,c,d,f,h,v,p,b,y;for(f in r)u=Xge(n?f:t+(i?".":"#")+f,e.forced),c=!u&&a&&_k(a,f),v=s[f],c&&(e.dontCallGetSet?(y=Yge(a,f),p=y&&y.value):p=a[f]),h=c&&p?p:r[f],!(c&&typeof v==typeof h)&&(e.bind&&c?b=Qge(h,Kh):e.wrap&&c?b=Zge(h):o&&qge(h)?b=Gge(h):b=h,(e.sham||h&&h.sham||v&&v.sham)&&Hs(b,"sham",!0),Hs(s,f,b),o&&(d=t+"Prototype",_k(zs,d)||Hs(zs,d,{}),Hs(zs[d],f,h),e.real&&l&&(u||!l[f])&&Hs(l,f,h)))},Jge=Math.ceil,eme=Math.floor,tme=Math.trunc||function(r){var t=+r;return(t>0?eme:Jge)(t)},rme=tme,fg=function(e){var r=+e;return r!==r||r===0?0:rme(r)},nme=fg,ime=Math.max,ome=Math.min,Df=function(e,r){var t=nme(e);return t<0?ime(t+r,0):ome(t,r)},ame=fg,sme=Math.min,lme=function(e){return e>0?sme(ame(e),9007199254740991):0},ume=lme,Cn=function(e){return ume(e.length)},cme=Oi,dme=Df,fme=Cn,Ek=function(e){return function(r,t,n){var i=cme(r),o=fme(i),a=dme(n,o),s;if(e&&t!==t){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===t)return e||a||0;return!e&&-1}},rE={includes:Ek(!0),indexOf:Ek(!1)},Ff={},hme=Me,Yb=Lt,vme=Oi,pme=rE.indexOf,yme=Ff,Ok=hme([].push),Mj=function(e,r){var t=vme(e),n=0,i=[],o;for(o in t)!Yb(yme,o)&&Yb(t,o)&&Ok(i,o);for(;r.length>n;)Yb(t,o=r[n++])&&(~pme(i,o)||Ok(i,o));return i},nE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gme=Mj,mme=nE,hg=Object.keys||function(r){return gme(r,mme)},Lf={};Lf.f=Object.getOwnPropertySymbols;var Pk=Dt,bme=Me,$me=Jr,wme=Re,Xb=hg,Sme=Lf,_me=lg,Eme=Lr,Ome=ug,Ws=Object.assign,Ck=Object.defineProperty,Pme=bme([].concat),Cme=!Ws||wme(function(){if(Pk&&Ws({b:1},Ws(Ck({},"a",{enumerable:!0,get:function(){Ck(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},r={},t=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach(function(i){r[i]=i}),Ws({},e)[t]!==7||Xb(Ws({},r)).join("")!==n})?function(r,t){for(var n=Eme(r),i=arguments.length,o=1,a=Sme.f,s=_me.f;i>o;)for(var l=Ome(arguments[o++]),u=a?Pme(Xb(l),a(l)):Xb(l),c=u.length,d=0,f;c>d;)f=u[d++],(!Pk||$me(s,l,f))&&(n[f]=l[f]);return n}:Ws,Tme=he,Tk=Cme;Tme({target:"Object",stat:!0,arity:2,forced:Object.assign!==Tk},{assign:Tk});var xme=Ae,kme=xme.Object.assign,Ime=kme,Rme=Ime,Ame=Rme,wt=le(Ame),Mme=Me,vg=Mme([].slice),Nj=Me,Nme=Ss,Dme=Ft,Fme=Lt,xk=vg,Lme=Cf,Dj=Function,jme=Nj([].concat),Bme=Nj([].join),Qb={},zme=function(e,r,t){if(!Fme(Qb,r)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";Qb[r]=Dj("C,a","return new C("+Bme(n,",")+")")}return Qb[r](e,t)},Fj=Lme?Dj.bind:function(r){var t=Nme(this),n=t.prototype,i=xk(arguments,1),o=function(){var s=jme(i,xk(arguments));return this instanceof o?zme(t,s.length,s):t.apply(r,s)};return Dme(n)&&(o.prototype=n),o},Hme=he,kk=Fj;Hme({target:"Function",proto:!0,forced:Function.bind!==kk},{bind:kk});var Wme=Ae,jt=function(e){return Wme[e+"Prototype"]},Ume=jt,Vme=Ume("Function").bind,Kme=mt,Gme=Vme,Zb=Function.prototype,qme=function(e){var r=e.bind;return e===Zb||Kme(Zb,e)&&r===Zb.bind?Gme:r},Yme=qme,Lj=Yme,Xme=Lj,V=le(Xme);function iE(e,r,t,n){e.beginPath(),e.arc(r,t,n,0,2*Math.PI,!1),e.closePath()}function Qme(e,r,t,n){e.beginPath(),e.rect(r-n,t-n,n*2,n*2),e.closePath()}function Zme(e,r,t,n){e.beginPath(),n*=1.15,t+=.275*n;var i=n*2,o=i/2,a=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);e.moveTo(r,t-(s-a)),e.lineTo(r+o,t+a),e.lineTo(r-o,t+a),e.lineTo(r,t-(s-a)),e.closePath()}function Jme(e,r,t,n){e.beginPath(),n*=1.15,t-=.275*n;var i=n*2,o=i/2,a=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);e.moveTo(r,t+(s-a)),e.lineTo(r+o,t-a),e.lineTo(r-o,t-a),e.lineTo(r,t+(s-a)),e.closePath()}function ebe(e,r,t,n){e.beginPath(),n*=.82,t+=.1*n;for(var i=0;i<10;i++){var o=i%2===0?n*1.3:n*.5;e.lineTo(r+o*Math.sin(i*2*Math.PI/10),t-o*Math.cos(i*2*Math.PI/10))}e.closePath()}function tbe(e,r,t,n){e.beginPath(),e.lineTo(r,t+n),e.lineTo(r+n,t),e.lineTo(r,t-n),e.lineTo(r-n,t),e.closePath()}function jj(e,r,t,n,i,o){var a=Math.PI/180;n-2*o<0&&(o=n/2),i-2*o<0&&(o=i/2),e.beginPath(),e.moveTo(r+o,t),e.lineTo(r+n-o,t),e.arc(r+n-o,t+o,o,a*270,a*360,!1),e.lineTo(r+n,t+i-o),e.arc(r+n-o,t+i-o,o,0,a*90,!1),e.lineTo(r+o,t+i),e.arc(r+o,t+i-o,o,a*90,a*180,!1),e.lineTo(r,t+o),e.arc(r+o,t+o,o,a*180,a*270,!1),e.closePath()}function z0(e,r,t,n,i){var o=.5522848,a=n/2*o,s=i/2*o,l=r+n,u=t+i,c=r+n/2,d=t+i/2;e.beginPath(),e.moveTo(r,d),e.bezierCurveTo(r,d-s,c-a,t,c,t),e.bezierCurveTo(c+a,t,l,d-s,l,d),e.bezierCurveTo(l,d+s,c+a,u,c,u),e.bezierCurveTo(c-a,u,r,d+s,r,d),e.closePath()}function Bj(e,r,t,n,i){var o=.3333333333333333,a=n,s=i*o,l=.5522848,u=a/2*l,c=s/2*l,d=r+a,f=t+s,h=r+a/2,v=t+s/2,p=t+(i-s/2),b=t+i;e.beginPath(),e.moveTo(d,v),e.bezierCurveTo(d,v+c,h+u,f,h,f),e.bezierCurveTo(h-u,f,r,v+c,r,v),e.bezierCurveTo(r,v-c,h-u,t,h,t),e.bezierCurveTo(h+u,t,d,v-c,d,v),e.lineTo(d,p),e.bezierCurveTo(d,p+c,h+u,b,h,b),e.bezierCurveTo(h-u,b,r,p+c,r,p),e.lineTo(r,v)}function zj(e,r,t,n,i,o){e.beginPath(),e.moveTo(r,t);for(var a=o.length,s=n-r,l=i-t,u=l/s,c=Math.sqrt(s*s+l*l),d=0,f=!0,h=0,v=+o[0];c>=.1;)v=+o[d++%a],v>c&&(v=c),h=Math.sqrt(v*v/(1+u*u)),h=s<0?-h:h,r+=h,t+=u*h,f===!0?e.lineTo(r,t):e.moveTo(r,t),c-=v,f=!f}function rbe(e,r,t,n){e.beginPath();var i=6,o=Math.PI*2/i;e.moveTo(r+n,t);for(var a=1;a<i;a++)e.lineTo(r+n*Math.cos(o*a),t+n*Math.sin(o*a));e.closePath()}var Ik={circle:iE,dashedLine:zj,database:Bj,diamond:tbe,ellipse:z0,ellipse_vis:z0,hexagon:rbe,roundRect:jj,square:Qme,star:ebe,triangle:Zme,triangleDown:Jme};function nbe(e){return Object.prototype.hasOwnProperty.call(Ik,e)?Ik[e]:function(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];CanvasRenderingContext2D.prototype[e].call(r,n)}}var Hj={exports:{}};(function(e){e.exports=r;function r(n){if(n)return t(n)}function t(n){for(var i in r.prototype)n[i]=r.prototype[i];return n}r.prototype.on=r.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this},r.prototype.once=function(n,i){function o(){this.off(n,o),i.apply(this,arguments)}return o.fn=i,this.on(n,o),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+n];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var a,s=0;s<o.length;s++)if(a=o[s],a===i||a.fn===i){o.splice(s,1);break}return o.length===0&&delete this._callbacks["$"+n],this},r.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),o=this._callbacks["$"+n],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(o){o=o.slice(0);for(var a=0,s=o.length;a<s;++a)o[a].apply(this,i)}return this},r.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},r.prototype.hasListeners=function(n){return!!this.listeners(n).length}})(Hj);var ibe=Hj.exports,Wj=le(ibe),obe=vt,abe=obe("toStringTag"),Uj={};Uj[abe]="z";var oE=String(Uj)==="[object z]",sbe=oE,lbe=Nt,Iv=oo,ube=vt,cbe=ube("toStringTag"),dbe=Object,fbe=Iv(function(){return arguments}())==="Arguments",hbe=function(e,r){try{return e[r]}catch{}},_s=sbe?Iv:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=hbe(r=dbe(e),cbe))=="string"?t:fbe?Iv(r):(n=Iv(r))==="Object"&&lbe(r.callee)?"Arguments":n},vbe=_s,pbe=String,Pi=function(e){if(vbe(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return pbe(e)},aE=Me,ybe=fg,gbe=Pi,mbe=kf,bbe=aE("".charAt),Rk=aE("".charCodeAt),$be=aE("".slice),Ak=function(e){return function(r,t){var n=gbe(mbe(r)),i=ybe(t),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=Rk(n,i),a<55296||a>56319||i+1===o||(s=Rk(n,i+1))<56320||s>57343?e?bbe(n,i):a:e?$be(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},wbe={codeAt:Ak(!1),charAt:Ak(!0)},Sbe=ht,_be=Nt,Mk=Sbe.WeakMap,Vj=_be(Mk)&&/native code/.test(String(Mk)),Ebe=Vu,Obe=cg,Nk=Ebe("keys"),pg=function(e){return Nk[e]||(Nk[e]=Obe(e))},Pbe=Vj,Kj=ht,Cbe=Ft,Tbe=Ku,Jb=Lt,e1=tE,xbe=pg,kbe=Ff,Dk="Object already initialized",H0=Kj.TypeError,Ibe=Kj.WeakMap,Np,Rd,Dp,Rbe=function(e){return Dp(e)?Rd(e):Np(e,{})},Abe=function(e){return function(r){var t;if(!Cbe(r)||(t=Rd(r)).type!==e)throw new H0("Incompatible receiver, "+e+" required");return t}};if(Pbe||e1.state){var ti=e1.state||(e1.state=new Ibe);ti.get=ti.get,ti.has=ti.has,ti.set=ti.set,Np=function(e,r){if(ti.has(e))throw new H0(Dk);return r.facade=e,ti.set(e,r),r},Rd=function(e){return ti.get(e)||{}},Dp=function(e){return ti.has(e)}}else{var Us=xbe("state");kbe[Us]=!0,Np=function(e,r){if(Jb(e,Us))throw new H0(Dk);return r.facade=e,Tbe(e,Us,r),r},Rd=function(e){return Jb(e,Us)?e[Us]:{}},Dp=function(e){return Jb(e,Us)}}var Es={set:Np,get:Rd,has:Dp,enforce:Rbe,getterFor:Abe},W0=Dt,Mbe=Lt,Gj=Function.prototype,Nbe=W0&&Object.getOwnPropertyDescriptor,sE=Mbe(Gj,"name"),Dbe=sE&&(function(){}).name==="something",Fbe=sE&&(!W0||W0&&Nbe(Gj,"name").configurable),Lbe={EXISTS:sE,PROPER:Dbe,CONFIGURABLE:Fbe},yg={},jbe=Dt,Bbe=Aj,zbe=en,Hbe=tn,Wbe=Oi,Ube=hg;yg.f=jbe&&!Bbe?Object.defineProperties:function(r,t){Hbe(r);for(var n=Wbe(t),i=Ube(t),o=i.length,a=0,s;o>a;)zbe.f(r,s=i[a++],n[s]);return r};var Vbe=Pn,Kbe=Vbe("document","documentElement"),Gbe=tn,qbe=yg,Fk=nE,Ybe=Ff,Xbe=Kbe,Qbe=Ij,Zbe=pg,Lk=">",jk="<",U0="prototype",V0="script",qj=Zbe("IE_PROTO"),t1=function(){},Yj=function(e){return jk+V0+Lk+e+jk+"/"+V0+Lk},Bk=function(e){e.write(Yj("")),e.close();var r=e.parentWindow.Object;return e=null,r},Jbe=function(){var e=Qbe("iframe"),r="java"+V0+":",t;return e.style.display="none",Xbe.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Yj("document.F=Object")),t.close(),t.F},Gh,Rv=function(){try{Gh=new ActiveXObject("htmlfile")}catch{}Rv=typeof document<"u"?document.domain&&Gh?Bk(Gh):Jbe():Bk(Gh);for(var e=Fk.length;e--;)delete Rv[U0][Fk[e]];return Rv()};Ybe[qj]=!0;var Gu=Object.create||function(r,t){var n;return r!==null?(t1[U0]=Gbe(r),n=new t1,t1[U0]=null,n[qj]=r):n=Rv(),t===void 0?n:qbe.f(n,t)},e1e=Re,Xj=!e1e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),t1e=Lt,r1e=Nt,n1e=Lr,i1e=pg,o1e=Xj,zk=i1e("IE_PROTO"),K0=Object,a1e=K0.prototype,gg=o1e?K0.getPrototypeOf:function(e){var r=n1e(e);if(t1e(r,zk))return r[zk];var t=r.constructor;return r1e(t)&&r instanceof t?t.prototype:r instanceof K0?a1e:null},s1e=Ku,jf=function(e,r,t,n){return n&&n.enumerable?e[r]=t:s1e(e,r,t),e},l1e=Re,u1e=Nt,c1e=Ft,d1e=Gu,Hk=gg,f1e=jf,h1e=vt,G0=h1e("iterator"),Qj=!1,zi,r1,n1;[].keys&&(n1=[].keys(),"next"in n1?(r1=Hk(Hk(n1)),r1!==Object.prototype&&(zi=r1)):Qj=!0);var v1e=!c1e(zi)||l1e(function(){var e={};return zi[G0].call(e)!==e});v1e?zi={}:zi=d1e(zi);u1e(zi[G0])||f1e(zi,G0,function(){return this});var Zj={IteratorPrototype:zi,BUGGY_SAFARI_ITERATORS:Qj},p1e=oE,y1e=_s,g1e=p1e?{}.toString:function(){return"[object "+y1e(this)+"]"},m1e=oE,b1e=en.f,$1e=Ku,w1e=Lt,S1e=g1e,_1e=vt,Wk=_1e("toStringTag"),qu=function(e,r,t,n){if(e){var i=t?e:e.prototype;w1e(i,Wk)||b1e(i,Wk,{configurable:!0,value:r}),n&&!m1e&&$1e(i,"toString",S1e)}},Yu={},E1e=Zj.IteratorPrototype,O1e=Gu,P1e=xf,C1e=qu,T1e=Yu,x1e=function(){return this},k1e=function(e,r,t,n){var i=r+" Iterator";return e.prototype=O1e(E1e,{next:P1e(+!n,t)}),C1e(e,i,!1,!0),T1e[i]=x1e,e},I1e=Me,R1e=Ss,A1e=function(e,r,t){try{return I1e(R1e(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}},M1e=Nt,N1e=String,D1e=TypeError,F1e=function(e){if(typeof e=="object"||M1e(e))return e;throw new D1e("Can't set "+N1e(e)+" as a prototype")},L1e=A1e,j1e=tn,B1e=F1e,z1e=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=L1e(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,o){return j1e(i),B1e(o),e?t(i,o):i.__proto__=o,i}}():void 0),H1e=he,W1e=Jr,U1e=Lbe,V1e=k1e,K1e=gg,G1e=qu,Uk=jf,q1e=vt,Vk=Yu,Y1e=Zj,X1e=U1e.PROPER,qh=Y1e.BUGGY_SAFARI_ITERATORS,i1=q1e("iterator"),Kk="keys",Yh="values",Gk="entries",Q1e=function(){return this},lE=function(e,r,t,n,i,o,a){V1e(t,r,n);var s=function(y){if(y===i&&f)return f;if(!qh&&y&&y in c)return c[y];switch(y){case Kk:return function(){return new t(this,y)};case Yh:return function(){return new t(this,y)};case Gk:return function(){return new t(this,y)}}return function(){return new t(this)}},l=r+" Iterator",u=!1,c=e.prototype,d=c[i1]||c["@@iterator"]||i&&c[i],f=!qh&&d||s(i),h=r==="Array"&&c.entries||d,v,p,b;if(h&&(v=K1e(h.call(new e)),v!==Object.prototype&&v.next&&(G1e(v,l,!0,!0),Vk[l]=Q1e)),X1e&&i===Yh&&d&&d.name!==Yh&&(u=!0,f=function(){return W1e(d,this)}),i)if(p={values:s(Yh),keys:o?f:s(Kk),entries:s(Gk)},a)for(b in p)(qh||u||!(b in c))&&Uk(c,b,p[b]);else H1e({target:r,proto:!0,forced:qh||u},p);return a&&c[i1]!==f&&Uk(c,i1,f,{name:i}),Vk[r]=f,p},uE=function(e,r){return{value:e,done:r}},Z1e=wbe.charAt,J1e=Pi,Jj=Es,e$e=lE,qk=uE,eB="String Iterator",t$e=Jj.set,r$e=Jj.getterFor(eB);e$e(String,"String",function(e){t$e(this,{type:eB,string:J1e(e),index:0})},function(){var r=r$e(this),t=r.string,n=r.index,i;return n>=t.length?qk(void 0,!0):(i=Z1e(t,n),r.index+=i.length,qk(i,!1))});var n$e=Jr,Yk=tn,i$e=eE,tB=function(e,r,t){var n,i;Yk(e);try{if(n=i$e(e,"return"),!n){if(r==="throw")throw t;return t}n=n$e(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return Yk(n),t},o$e=tn,a$e=tB,s$e=function(e,r,t,n){try{return n?r(o$e(t)[0],t[1]):r(t)}catch(i){a$e(e,"throw",i)}},l$e=vt,u$e=Yu,c$e=l$e("iterator"),d$e=Array.prototype,rB=function(e){return e!==void 0&&(u$e.Array===e||d$e[c$e]===e)},f$e=Me,h$e=Nt,q0=tE,v$e=f$e(Function.toString);h$e(q0.inspectSource)||(q0.inspectSource=function(e){return v$e(e)});var p$e=q0.inspectSource,y$e=Me,g$e=Re,nB=Nt,m$e=_s,b$e=Pn,$$e=p$e,iB=function(){},w$e=[],oB=b$e("Reflect","construct"),cE=/^\s*(?:class|function)\b/,S$e=y$e(cE.exec),_$e=!cE.test(iB),vc=function(r){if(!nB(r))return!1;try{return oB(iB,w$e,r),!0}catch{return!1}},aB=function(r){if(!nB(r))return!1;switch(m$e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return _$e||!!S$e(cE,$$e(r))}catch{return!0}};aB.sham=!0;var mg=!oB||g$e(function(){var e;return vc(vc.call)||!vc(Object)||!vc(function(){e=!0})||e})?aB:vc,E$e=dg,O$e=en,P$e=xf,Xu=function(e,r,t){var n=E$e(r);n in e?O$e.f(e,n,P$e(0,t)):e[n]=t},C$e=_s,Xk=eE,T$e=Hu,x$e=Yu,k$e=vt,I$e=k$e("iterator"),bg=function(e){if(!T$e(e))return Xk(e,I$e)||Xk(e,"@@iterator")||x$e[C$e(e)]},R$e=Jr,A$e=Ss,M$e=tn,N$e=Uu,D$e=bg,F$e=TypeError,sB=function(e,r){var t=arguments.length<2?D$e(e):r;if(A$e(t))return M$e(R$e(t,e));throw new F$e(N$e(e)+" is not iterable")},L$e=Nf,j$e=Jr,B$e=Lr,z$e=s$e,H$e=rB,W$e=mg,U$e=Cn,Qk=Xu,V$e=sB,K$e=bg,Zk=Array,G$e=function(r){var t=B$e(r),n=W$e(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=L$e(o,i>2?arguments[2]:void 0));var s=K$e(t),l=0,u,c,d,f,h,v;if(s&&!(this===Zk&&H$e(s)))for(f=V$e(t,s),h=f.next,c=n?new this:[];!(d=j$e(h,f)).done;l++)v=a?z$e(f,o,[d.value,l],!0):d.value,Qk(c,l,v);else for(u=U$e(t),c=n?new this(u):Zk(u);u>l;l++)v=a?o(t[l],l):t[l],Qk(c,l,v);return c.length=l,c},q$e=vt,lB=q$e("iterator"),uB=!1;try{var Y$e=0,Jk={next:function(){return{done:!!Y$e++}},return:function(){uB=!0}};Jk[lB]=function(){return this},Array.from(Jk,function(){throw 2})}catch{}var X$e=function(e,r){try{if(!r&&!uB)return!1}catch{return!1}var t=!1;try{var n={};n[lB]=function(){return{next:function(){return{done:t=!0}}}},e(n)}catch{}return t},Q$e=he,Z$e=G$e,J$e=X$e,e0e=!J$e(function(e){Array.from(e)});Q$e({target:"Array",stat:!0,forced:e0e},{from:Z$e});var t0e=Ae,r0e=t0e.Array.from,n0e=r0e,cB=n0e,i0e=cB,Os=le(i0e),o0e=Oi,eI=Yu,dB=Es;en.f;var a0e=lE,Xh=uE,fB="Array Iterator",s0e=dB.set,l0e=dB.getterFor(fB);a0e(Array,"Array",function(e,r){s0e(this,{type:fB,target:o0e(e),index:0,kind:r})},function(){var e=l0e(this),r=e.target,t=e.kind,n=e.index++;if(!r||n>=r.length)return e.target=void 0,Xh(void 0,!0);switch(t){case"keys":return Xh(n,!1);case"values":return Xh(r[n],!1)}return Xh([n,r[n]],!1)},"values");eI.Arguments=eI.Array;var u0e=bg,c0e=u0e,d0e={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},f0e=d0e,h0e=ht,v0e=_s,p0e=Ku,tI=Yu,y0e=vt,rI=y0e("toStringTag");for(var o1 in f0e){var nI=h0e[o1],a1=nI&&nI.prototype;a1&&v0e(a1)!==rI&&p0e(a1,rI,o1),tI[o1]=tI.Array}var g0e=c0e,m0e=g0e,b0e=m0e,$0e=b0e,w0e=$0e,S0e=w0e,hB=S0e,vB=le(hB),_0e=hB,Ps=le(_0e);function q(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var pB={exports:{}},E0e=he,O0e=Dt,iI=en.f;E0e({target:"Object",stat:!0,forced:Object.defineProperty!==iI,sham:!O0e},{defineProperty:iI});var P0e=Ae,yB=P0e.Object,C0e=pB.exports=function(r,t,n){return yB.defineProperty(r,t,n)};yB.defineProperty.sham&&(C0e.sham=!0);var T0e=pB.exports,x0e=T0e,gB=x0e,k0e=gB,I0e=k0e,R0e=I0e,A0e=R0e,M0e=A0e,$g=le(M0e),N0e=oo,Cs=Array.isArray||function(r){return N0e(r)==="Array"},D0e=TypeError,F0e=9007199254740991,dE=function(e){if(e>F0e)throw D0e("Maximum allowed index exceeded");return e},oI=Cs,L0e=mg,j0e=Ft,B0e=vt,z0e=B0e("species"),aI=Array,H0e=function(e){var r;return oI(e)&&(r=e.constructor,L0e(r)&&(r===aI||oI(r.prototype))?r=void 0:j0e(r)&&(r=r[z0e],r===null&&(r=void 0))),r===void 0?aI:r},W0e=H0e,fE=function(e,r){return new(W0e(e))(r===0?0:r)},U0e=Re,V0e=vt,K0e=Rf,G0e=V0e("species"),Bf=function(e){return K0e>=51||!U0e(function(){var r=[],t=r.constructor={};return t[G0e]=function(){return{foo:1}},r[e](Boolean).foo!==1})},q0e=he,Y0e=Re,X0e=Cs,Q0e=Ft,Z0e=Lr,J0e=Cn,sI=dE,lI=Xu,ewe=fE,twe=Bf,rwe=vt,nwe=Rf,mB=rwe("isConcatSpreadable"),iwe=nwe>=51||!Y0e(function(){var e=[];return e[mB]=!1,e.concat()[0]!==e}),owe=function(e){if(!Q0e(e))return!1;var r=e[mB];return r!==void 0?!!r:X0e(e)},awe=!iwe||!twe("concat");q0e({target:"Array",proto:!0,arity:1,forced:awe},{concat:function(r){var t=Z0e(this),n=ewe(t,0),i=0,o,a,s,l,u;for(o=-1,s=arguments.length;o<s;o++)if(u=o===-1?t:arguments[o],owe(u))for(l=J0e(u),sI(i+l),a=0;a<l;a++,i++)a in u&&lI(n,i,u[a]);else sI(i+1),lI(n,i++,u);return n.length=i,n}});var zf={},swe=Mj,lwe=nE,uwe=lwe.concat("length","prototype");zf.f=Object.getOwnPropertyNames||function(r){return swe(r,uwe)};var wg={},uI=Df,cwe=Cn,dwe=Xu,fwe=Array,hwe=Math.max,bB=function(e,r,t){for(var n=cwe(e),i=uI(r,n),o=uI(t===void 0?n:t,n),a=fwe(hwe(o-i,0)),s=0;i<o;i++,s++)dwe(a,s,e[i]);return a.length=s,a},vwe=oo,pwe=Oi,$B=zf.f,ywe=bB,wB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],gwe=function(e){try{return $B(e)}catch{return ywe(wB)}};wg.f=function(r){return wB&&vwe(r)==="Window"?gwe(r):$B(pwe(r))};var mwe=en,hE=function(e,r,t){return mwe.f(e,r,t)},Hf={},bwe=vt;Hf.f=bwe;var cI=Ae,$we=Lt,wwe=Hf,Swe=en.f,pt=function(e){var r=cI.Symbol||(cI.Symbol={});$we(r,e)||Swe(r,e,{value:wwe.f(e)})},_we=Jr,Ewe=Pn,Owe=vt,Pwe=jf,SB=function(){var e=Ewe("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,n=Owe("toPrimitive");r&&!r[n]&&Pwe(r,n,function(i){return _we(t,this)},{arity:1})},Cwe=Nf,Twe=Me,xwe=ug,kwe=Lr,Iwe=Cn,Rwe=fE,dI=Twe([].push),lo=function(e){var r=e===1,t=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,u,c,d){for(var f=kwe(l),h=xwe(f),v=Cwe(u,c),p=Iwe(h),b=0,y=d||Rwe,g=r?y(l,p):t||a?y(l,0):void 0,m,$;p>b;b++)if((s||b in h)&&(m=h[b],$=v(m,b,f),e))if(r)g[b]=$;else if($)switch(e){case 3:return!0;case 5:return m;case 6:return b;case 2:dI(g,m)}else switch(e){case 4:return!1;case 7:dI(g,m)}return o?-1:n||i?i:g}},ua={forEach:lo(0),map:lo(1),filter:lo(2),some:lo(3),every:lo(4),find:lo(5),findIndex:lo(6),filterReject:lo(7)},Sg=he,_g=ht,vE=Jr,Awe=Me,vu=Dt,pu=Wu,Mwe=Re,kt=Lt,Nwe=mt,Y0=tn,Eg=Oi,pE=dg,Dwe=Pi,X0=xf,Ad=Gu,_B=hg,Fwe=zf,EB=wg,Lwe=Lf,OB=zu,PB=en,jwe=yg,CB=lg,fI=jf,Bwe=hE,yE=Vu,zwe=pg,TB=Ff,hI=cg,Hwe=vt,Wwe=Hf,Uwe=pt,Vwe=SB,Kwe=qu,xB=Es,Og=ua.forEach,Or=zwe("hidden"),Pg="Symbol",Md="prototype",Gwe=xB.set,vI=xB.getterFor(Pg),Wn=Object[Md],Ha=_g.Symbol,Oc=Ha&&Ha[Md],qwe=_g.RangeError,Ywe=_g.TypeError,s1=_g.QObject,kB=OB.f,Wa=PB.f,IB=EB.f,Xwe=CB.f,RB=Awe([].push),eo=yE("symbols"),Wf=yE("op-symbols"),Qwe=yE("wks"),Q0=!s1||!s1[Md]||!s1[Md].findChild,AB=function(e,r,t){var n=kB(Wn,r);n&&delete Wn[r],Wa(e,r,t),n&&e!==Wn&&Wa(Wn,r,n)},Z0=vu&&Mwe(function(){return Ad(Wa({},"a",{get:function(){return Wa(this,"a",{value:7}).a}})).a!==7})?AB:Wa,l1=function(e,r){var t=eo[e]=Ad(Oc);return Gwe(t,{type:Pg,tag:e,description:r}),vu||(t.description=r),t},Cg=function(r,t,n){r===Wn&&Cg(Wf,t,n),Y0(r);var i=pE(t);return Y0(n),kt(eo,i)?(n.enumerable?(kt(r,Or)&&r[Or][i]&&(r[Or][i]=!1),n=Ad(n,{enumerable:X0(0,!1)})):(kt(r,Or)||Wa(r,Or,X0(1,{})),r[Or][i]=!0),Z0(r,i,n)):Wa(r,i,n)},gE=function(r,t){Y0(r);var n=Eg(t),i=_B(n).concat(FB(n));return Og(i,function(o){(!vu||vE(MB,n,o))&&Cg(r,o,n[o])}),r},Zwe=function(r,t){return t===void 0?Ad(r):gE(Ad(r),t)},MB=function(r){var t=pE(r),n=vE(Xwe,this,t);return this===Wn&&kt(eo,t)&&!kt(Wf,t)?!1:n||!kt(this,t)||!kt(eo,t)||kt(this,Or)&&this[Or][t]?n:!0},NB=function(r,t){var n=Eg(r),i=pE(t);if(!(n===Wn&&kt(eo,i)&&!kt(Wf,i))){var o=kB(n,i);return o&&kt(eo,i)&&!(kt(n,Or)&&n[Or][i])&&(o.enumerable=!0),o}},DB=function(r){var t=IB(Eg(r)),n=[];return Og(t,function(i){!kt(eo,i)&&!kt(TB,i)&&RB(n,i)}),n},FB=function(e){var r=e===Wn,t=IB(r?Wf:Eg(e)),n=[];return Og(t,function(i){kt(eo,i)&&(!r||kt(Wn,i))&&RB(n,eo[i])}),n};pu||(Ha=function(){if(Nwe(Oc,this))throw new Ywe("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:Dwe(arguments[0]),t=hI(r),n=function(i){this===Wn&&vE(n,Wf,i),kt(this,Or)&&kt(this[Or],t)&&(this[Or][t]=!1);var o=X0(1,i);try{Z0(this,t,o)}catch(a){if(!(a instanceof qwe))throw a;AB(this,t,o)}};return vu&&Q0&&Z0(Wn,t,{configurable:!0,set:n}),l1(t,r)},Oc=Ha[Md],fI(Oc,"toString",function(){return vI(this).tag}),fI(Ha,"withoutSetter",function(e){return l1(hI(e),e)}),CB.f=MB,PB.f=Cg,jwe.f=gE,OB.f=NB,Fwe.f=EB.f=DB,Lwe.f=FB,Wwe.f=function(e){return l1(Hwe(e),e)},vu&&Bwe(Oc,"description",{configurable:!0,get:function(){return vI(this).description}}));Sg({global:!0,constructor:!0,wrap:!0,forced:!pu,sham:!pu},{Symbol:Ha});Og(_B(Qwe),function(e){Uwe(e)});Sg({target:Pg,stat:!0,forced:!pu},{useSetter:function(){Q0=!0},useSimple:function(){Q0=!1}});Sg({target:"Object",stat:!0,forced:!pu,sham:!vu},{create:Zwe,defineProperty:Cg,defineProperties:gE,getOwnPropertyDescriptor:NB});Sg({target:"Object",stat:!0,forced:!pu},{getOwnPropertyNames:DB});Vwe();Kwe(Ha,Pg);TB[Or]=!0;var Jwe=Wu,LB=Jwe&&!!Symbol.for&&!!Symbol.keyFor,eSe=he,tSe=Pn,rSe=Lt,nSe=Pi,jB=Vu,iSe=LB,u1=jB("string-to-symbol-registry"),oSe=jB("symbol-to-string-registry");eSe({target:"Symbol",stat:!0,forced:!iSe},{for:function(e){var r=nSe(e);if(rSe(u1,r))return u1[r];var t=tSe("Symbol")(r);return u1[r]=t,oSe[t]=r,t}});var aSe=he,sSe=Lt,lSe=Af,uSe=Uu,cSe=Vu,dSe=LB,pI=cSe("symbol-to-string-registry");aSe({target:"Symbol",stat:!0,forced:!dSe},{keyFor:function(r){if(!lSe(r))throw new TypeError(uSe(r)+" is not a symbol");if(sSe(pI,r))return pI[r]}});var fSe=Me,yI=Cs,hSe=Nt,gI=oo,vSe=Pi,mI=fSe([].push),pSe=function(e){if(hSe(e))return e;if(yI(e)){for(var r=e.length,t=[],n=0;n<r;n++){var i=e[n];typeof i=="string"?mI(t,i):(typeof i=="number"||gI(i)==="Number"||gI(i)==="String")&&mI(t,vSe(i))}var o=t.length,a=!0;return function(s,l){if(a)return a=!1,l;if(yI(this))return l;for(var u=0;u<o;u++)if(t[u]===s)return l}}},ySe=he,BB=Pn,zB=Tf,gSe=Jr,Uf=Me,HB=Re,bI=Nt,$I=Af,WB=vg,mSe=pSe,bSe=Wu,$Se=String,Wo=BB("JSON","stringify"),Qh=Uf(/./.exec),wI=Uf("".charAt),wSe=Uf("".charCodeAt),SSe=Uf("".replace),_Se=Uf(1 .toString),ESe=/[\uD800-\uDFFF]/g,SI=/^[\uD800-\uDBFF]$/,_I=/^[\uDC00-\uDFFF]$/,EI=!bSe||HB(function(){var e=BB("Symbol")("stringify detection");return Wo([e])!=="[null]"||Wo({a:e})!=="{}"||Wo(Object(e))!=="{}"}),OI=HB(function(){return Wo("\uDF06\uD834")!=='"\\udf06\\ud834"'||Wo("\uDEAD")!=='"\\udead"'}),OSe=function(e,r){var t=WB(arguments),n=mSe(r);if(!(!bI(n)&&(e===void 0||$I(e))))return t[1]=function(i,o){if(bI(n)&&(o=gSe(n,this,$Se(i),o)),!$I(o))return o},zB(Wo,null,t)},PSe=function(e,r,t){var n=wI(t,r-1),i=wI(t,r+1);return Qh(SI,e)&&!Qh(_I,i)||Qh(_I,e)&&!Qh(SI,n)?"\\u"+_Se(wSe(e,0),16):e};Wo&&ySe({target:"JSON",stat:!0,arity:3,forced:EI||OI},{stringify:function(r,t,n){var i=WB(arguments),o=zB(EI?OSe:Wo,null,i);return OI&&typeof o=="string"?SSe(o,ESe,PSe):o}});var CSe=he,TSe=Wu,xSe=Re,UB=Lf,kSe=Lr,ISe=!TSe||xSe(function(){UB.f(1)});CSe({target:"Object",stat:!0,forced:ISe},{getOwnPropertySymbols:function(r){var t=UB.f;return t?t(kSe(r)):[]}});var RSe=pt;RSe("asyncIterator");var ASe=pt;ASe("hasInstance");var MSe=pt;MSe("isConcatSpreadable");var NSe=pt;NSe("iterator");var DSe=pt;DSe("match");var FSe=pt;FSe("matchAll");var LSe=pt;LSe("replace");var jSe=pt;jSe("search");var BSe=pt;BSe("species");var zSe=pt;zSe("split");var HSe=pt,WSe=SB;HSe("toPrimitive");WSe();var USe=Pn,VSe=pt,KSe=qu;VSe("toStringTag");KSe(USe("Symbol"),"Symbol");var GSe=pt;GSe("unscopables");var qSe=ht,YSe=qu;YSe(qSe.JSON,"JSON",!0);var XSe=Ae,QSe=XSe.Symbol,ZSe=QSe,VB=ZSe,JSe=vt,e_e=en.f,PI=JSe("metadata"),CI=Function.prototype;CI[PI]===void 0&&e_e(CI,PI,{value:null});var t_e=pt;t_e("asyncDispose");var r_e=pt;r_e("dispose");var n_e=pt;n_e("metadata");var i_e=VB,o_e=i_e,a_e=Pn,s_e=Me,mE=a_e("Symbol"),l_e=mE.keyFor,u_e=s_e(mE.prototype.valueOf),KB=mE.isRegisteredSymbol||function(r){try{return l_e(u_e(r))!==void 0}catch{return!1}},c_e=he,d_e=KB;c_e({target:"Symbol",stat:!0},{isRegisteredSymbol:d_e});var f_e=Vu,GB=Pn,h_e=Me,v_e=Af,p_e=vt,Fp=GB("Symbol"),TI=Fp.isWellKnownSymbol,qB=GB("Object","getOwnPropertyNames"),y_e=h_e(Fp.prototype.valueOf),xI=f_e("wks");for(var c1=0,kI=qB(Fp),g_e=kI.length;c1<g_e;c1++)try{var II=kI[c1];v_e(Fp[II])&&p_e(II)}catch{}var YB=function(r){if(TI&&TI(r))return!0;try{for(var t=y_e(r),n=0,i=qB(xI),o=i.length;n<o;n++)if(xI[i[n]]==t)return!0}catch{}return!1},m_e=he,b_e=YB;m_e({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:b_e});var $_e=pt;$_e("matcher");var w_e=pt;w_e("observable");var S_e=he,__e=KB;S_e({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:__e});var E_e=he,O_e=YB;E_e({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:O_e});var P_e=pt;P_e("metadataKey");var C_e=pt;C_e("patternMatch");var T_e=pt;T_e("replaceAll");var x_e=o_e,k_e=x_e,I_e=k_e,yl=le(I_e),R_e=Hf,A_e=R_e.f("iterator"),M_e=A_e,N_e=M_e,D_e=N_e,F_e=D_e,L_e=F_e,j_e=L_e,B_e=j_e,z_e=le(B_e);function We(e){"@babel/helpers - typeof";return We=typeof yl=="function"&&typeof z_e=="symbol"?function(r){return typeof r}:function(r){return r&&typeof yl=="function"&&r.constructor===yl&&r!==yl.prototype?"symbol":typeof r},We(e)}var H_e=Hf,W_e=H_e.f("toPrimitive"),U_e=W_e,V_e=U_e,K_e=V_e,G_e=K_e,q_e=G_e,Y_e=q_e,X_e=Y_e,Q_e=le(X_e);function Z_e(e,r){if(We(e)!=="object"||e===null)return e;var t=e[Q_e];if(t!==void 0){var n=t.call(e,r||"default");if(We(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function XB(e){var r=Z_e(e,"string");return We(r)==="symbol"?r:String(r)}function RI(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),$g(e,XB(n.key),n)}}function Y(e,r,t){return r&&RI(e.prototype,r),t&&RI(e,t),$g(e,"prototype",{writable:!1}),e}var J_e=he,eEe=Cs;J_e({target:"Array",stat:!0},{isArray:eEe});var tEe=Ae,rEe=tEe.Array.isArray,nEe=rEe,QB=nEe,iEe=QB,oEe=iEe,aEe=oEe,sEe=aEe,lEe=sEe,ZB=le(lEe);function uEe(e){if(ZB(e))return e}var cEe=Dt,dEe=Cs,fEe=TypeError,hEe=Object.getOwnPropertyDescriptor,vEe=cEe&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),JB=vEe?function(e,r){if(dEe(e)&&!hEe(e,"length").writable)throw new fEe("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r},pEe=he,yEe=Lr,gEe=Cn,mEe=JB,bEe=dE,$Ee=Re,wEe=$Ee(function(){return[].push.call({length:4294967296},1)!==4294967297}),SEe=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},_Ee=wEe||!SEe();pEe({target:"Array",proto:!0,arity:1,forced:_Ee},{push:function(r){var t=yEe(this),n=gEe(t),i=arguments.length;bEe(n+i);for(var o=0;o<i;o++)t[n]=arguments[o],n++;return mEe(t,n),n}});var EEe=jt,OEe=EEe("Array").push,PEe=mt,CEe=OEe,d1=Array.prototype,TEe=function(e){var r=e.push;return e===d1||PEe(d1,e)&&r===d1.push?CEe:r},xEe=TEe,kEe=xEe,IEe=kEe,REe=IEe,AEe=REe,MEe=AEe,NEe=MEe,DEe=le(NEe);function FEe(e,r){var t=e==null?null:typeof yl<"u"&&vB(e)||e["@@iterator"];if(t!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=o.call(t)).done)&&(DEe(s).call(s,n.value),s.length!==r);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}var LEe=he,AI=Cs,jEe=mg,BEe=Ft,MI=Df,zEe=Cn,HEe=Oi,WEe=Xu,UEe=vt,VEe=Bf,KEe=vg,GEe=VEe("slice"),qEe=UEe("species"),f1=Array,YEe=Math.max;LEe({target:"Array",proto:!0,forced:!GEe},{slice:function(r,t){var n=HEe(this),i=zEe(n),o=MI(r,i),a=MI(t===void 0?i:t,i),s,l,u;if(AI(n)&&(s=n.constructor,jEe(s)&&(s===f1||AI(s.prototype))?s=void 0:BEe(s)&&(s=s[qEe],s===null&&(s=void 0)),s===f1||s===void 0))return KEe(n,o,a);for(l=new(s===void 0?f1:s)(YEe(a-o,0)),u=0;o<a;o++,u++)o in n&&WEe(l,u,n[o]);return l.length=u,l}});var XEe=jt,QEe=XEe("Array").slice,ZEe=mt,JEe=QEe,h1=Array.prototype,eOe=function(e){var r=e.slice;return e===h1||ZEe(h1,e)&&r===h1.slice?JEe:r},tOe=eOe,e5=tOe,rOe=e5,nOe=rOe,iOe=nOe,oOe=iOe,aOe=oOe,sOe=le(aOe),lOe=cB,uOe=lOe,cOe=uOe,dOe=cOe,fOe=dOe,t5=le(fOe);function J0(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function r5(e,r){var t;if(e){if(typeof e=="string")return J0(e,r);var n=sOe(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return t5(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J0(e,r)}}function hOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
120
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ct(e,r){return uEe(e)||FEe(e,r)||r5(e,r)||hOe()}function vOe(e){if(ZB(e))return J0(e)}function pOe(e){if(typeof yl<"u"&&vB(e)!=null||e["@@iterator"]!=null)return t5(e)}function yOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
121
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function li(e){return vOe(e)||pOe(e)||r5(e)||yOe()}var gOe=VB,ca=le(gOe),mOe=jt,bOe=mOe("Array").concat,$Oe=mt,wOe=bOe,v1=Array.prototype,SOe=function(e){var r=e.concat;return e===v1||$Oe(v1,e)&&r===v1.concat?wOe:r},_Oe=SOe,EOe=_Oe,OOe=EOe,bE=le(OOe),POe=e5,Ut=le(POe),COe=Pn,TOe=Me,xOe=zf,kOe=Lf,IOe=tn,ROe=TOe([].concat),AOe=COe("Reflect","ownKeys")||function(r){var t=xOe.f(IOe(r)),n=kOe.f;return n?ROe(t,n(r)):t},MOe=QB,Be=le(MOe),NOe=he,DOe=ua.map,FOe=Bf,LOe=FOe("map");NOe({target:"Array",proto:!0,forced:!LOe},{map:function(r){return DOe(this,r,arguments.length>1?arguments[1]:void 0)}});var jOe=jt,BOe=jOe("Array").map,zOe=mt,HOe=BOe,p1=Array.prototype,WOe=function(e){var r=e.map;return e===p1||zOe(p1,e)&&r===p1.map?HOe:r},UOe=WOe,VOe=UOe,KOe=VOe,yu=le(KOe),GOe=he,qOe=Lr,n5=hg,YOe=Re,XOe=YOe(function(){n5(1)});GOe({target:"Object",stat:!0,forced:XOe},{keys:function(r){return n5(qOe(r))}});var QOe=Ae,ZOe=QOe.Object.keys,JOe=ZOe,ePe=JOe,tPe=ePe,ut=le(tPe),rPe=he,nPe=Me,i5=Date,iPe=nPe(i5.prototype.getTime);rPe({target:"Date",stat:!0},{now:function(){return iPe(new i5)}});var oPe=Ae,aPe=oPe.Date.now,sPe=aPe,lPe=sPe,uPe=lPe,Lp=le(uPe),cPe=Re,Qu=function(e,r){var t=[][e];return!!t&&cPe(function(){t.call(null,r||function(){return 1},1)})},dPe=ua.forEach,fPe=Qu,hPe=fPe("forEach"),vPe=hPe?[].forEach:function(r){return dPe(this,r,arguments.length>1?arguments[1]:void 0)},pPe=he,NI=vPe;pPe({target:"Array",proto:!0,forced:[].forEach!==NI},{forEach:NI});var yPe=jt,gPe=yPe("Array").forEach,mPe=gPe,bPe=mPe,$Pe=_s,wPe=Lt,SPe=mt,_Pe=bPe,y1=Array.prototype,EPe={DOMTokenList:!0,NodeList:!0},OPe=function(e){var r=e.forEach;return e===y1||SPe(y1,e)&&r===y1.forEach||wPe(EPe,$Pe(e))?_Pe:r},PPe=OPe,Ve=le(PPe),CPe=he,TPe=Me,xPe=Cs,kPe=TPe([].reverse),DI=[1,2];CPe({target:"Array",proto:!0,forced:String(DI)===String(DI.reverse())},{reverse:function(){return xPe(this)&&(this.length=this.length),kPe(this)}});var IPe=jt,RPe=IPe("Array").reverse,APe=mt,MPe=RPe,g1=Array.prototype,NPe=function(e){var r=e.reverse;return e===g1||APe(g1,e)&&r===g1.reverse?MPe:r},DPe=NPe,FPe=DPe,LPe=FPe,Ua=le(LPe),FI=Uu,jPe=TypeError,o5=function(e,r){if(!delete e[r])throw new jPe("Cannot delete property "+FI(r)+" of "+FI(e))},BPe=he,zPe=Lr,HPe=Df,WPe=fg,UPe=Cn,VPe=JB,KPe=dE,GPe=fE,qPe=Xu,m1=o5,YPe=Bf,XPe=YPe("splice"),QPe=Math.max,ZPe=Math.min;BPe({target:"Array",proto:!0,forced:!XPe},{splice:function(r,t){var n=zPe(this),i=UPe(n),o=HPe(r,i),a=arguments.length,s,l,u,c,d,f;for(a===0?s=l=0:a===1?(s=0,l=i-o):(s=a-2,l=ZPe(QPe(WPe(t),0),i-o)),KPe(i+s-l),u=GPe(n,l),c=0;c<l;c++)d=o+c,d in n&&qPe(u,c,n[d]);if(u.length=l,s<l){for(c=o;c<i-l;c++)d=c+l,f=c+s,d in n?n[f]=n[d]:m1(n,f);for(c=i;c>i-l+s;c--)m1(n,c-1)}else if(s>l)for(c=i-l;c>o;c--)d=c+l-1,f=c+s-1,d in n?n[f]=n[d]:m1(n,f);for(c=0;c<s;c++)n[c+o]=arguments[c+2];return VPe(n,i-l+s),u}});var JPe=jt,eCe=JPe("Array").splice,tCe=mt,rCe=eCe,b1=Array.prototype,nCe=function(e){var r=e.splice;return e===b1||tCe(b1,e)&&r===b1.splice?rCe:r},iCe=nCe,oCe=iCe,aCe=oCe,Hi=le(aCe),sCe=he,lCe=rE.includes,uCe=Re,cCe=uCe(function(){return!Array(1).includes()});sCe({target:"Array",proto:!0,forced:cCe},{includes:function(r){return lCe(this,r,arguments.length>1?arguments[1]:void 0)}});var dCe=jt,fCe=dCe("Array").includes,hCe=Ft,vCe=oo,pCe=vt,yCe=pCe("match"),gCe=function(e){var r;return hCe(e)&&((r=e[yCe])!==void 0?!!r:vCe(e)==="RegExp")},mCe=gCe,bCe=TypeError,$Ce=function(e){if(mCe(e))throw new bCe("The method doesn't accept regular expressions");return e},wCe=vt,SCe=wCe("match"),_Ce=function(e){var r=/./;try{"/./"[e](r)}catch{try{return r[SCe]=!1,"/./"[e](r)}catch{}}return!1},ECe=he,OCe=Me,PCe=$Ce,CCe=kf,LI=Pi,TCe=_Ce,xCe=OCe("".indexOf);ECe({target:"String",proto:!0,forced:!TCe("includes")},{includes:function(r){return!!~xCe(LI(CCe(this)),LI(PCe(r)),arguments.length>1?arguments[1]:void 0)}});var kCe=jt,ICe=kCe("String").includes,jI=mt,RCe=fCe,ACe=ICe,$1=Array.prototype,w1=String.prototype,MCe=function(e){var r=e.includes;return e===$1||jI($1,e)&&r===$1.includes?RCe:typeof e=="string"||e===w1||jI(w1,e)&&r===w1.includes?ACe:r},NCe=MCe,DCe=NCe,FCe=DCe,Uo=le(FCe),LCe=he,jCe=Re,BCe=Lr,a5=gg,zCe=Xj,HCe=jCe(function(){a5(1)});LCe({target:"Object",stat:!0,forced:HCe,sham:!zCe},{getPrototypeOf:function(r){return a5(BCe(r))}});var WCe=Ae,UCe=WCe.Object.getPrototypeOf,VCe=UCe,s5=VCe,KCe=s5,BI=le(KCe),GCe=he,qCe=ua.filter,YCe=Bf,XCe=YCe("filter");GCe({target:"Array",proto:!0,forced:!XCe},{filter:function(r){return qCe(this,r,arguments.length>1?arguments[1]:void 0)}});var QCe=jt,ZCe=QCe("Array").filter,JCe=mt,eTe=ZCe,S1=Array.prototype,tTe=function(e){var r=e.filter;return e===S1||JCe(S1,e)&&r===S1.filter?eTe:r},rTe=tTe,nTe=rTe,iTe=nTe,Pr=le(iTe),$E=`
|
122
|
-
\v\f\r \u2028\u2029\uFEFF`,oTe=Me,aTe=kf,sTe=Pi,ew=$E,zI=oTe("".replace),lTe=RegExp("^["+ew+"]+"),uTe=RegExp("(^|[^"+ew+"])["+ew+"]+$"),_1=function(e){return function(r){var t=sTe(aTe(r));return e&1&&(t=zI(t,lTe,"")),e&2&&(t=zI(t,uTe,"$1")),t}},l5={start:_1(1),end:_1(2),trim:_1(3)},u5=ht,cTe=Re,dTe=Me,fTe=Pi,hTe=l5.trim,HI=$E,Vc=u5.parseInt,WI=u5.Symbol,UI=WI&&WI.iterator,c5=/^[+-]?0x/i,vTe=dTe(c5.exec),pTe=Vc(HI+"08")!==8||Vc(HI+"0x16")!==22||UI&&!cTe(function(){Vc(Object(UI))}),yTe=pTe?function(r,t){var n=hTe(fTe(r));return Vc(n,t>>>0||(vTe(c5,n)?16:10))}:Vc,gTe=he,VI=yTe;gTe({global:!0,forced:parseInt!==VI},{parseInt:VI});var mTe=Ae,bTe=mTe.parseInt,$Te=bTe,wTe=$Te,STe=wTe,Bn=le(STe),_Te=he,ETe=J_,OTe=rE.indexOf,PTe=Qu,tw=ETe([].indexOf),d5=!!tw&&1/tw([1],1,-0)<0,CTe=d5||!PTe("indexOf");_Te({target:"Array",proto:!0,forced:CTe},{indexOf:function(r){var t=arguments.length>1?arguments[1]:void 0;return d5?tw(this,r,t)||0:OTe(this,r,t)}});var TTe=jt,xTe=TTe("Array").indexOf,kTe=mt,ITe=xTe,E1=Array.prototype,RTe=function(e){var r=e.indexOf;return e===E1||kTe(E1,e)&&r===E1.indexOf?ITe:r},ATe=RTe,MTe=ATe,NTe=MTe,Ie=le(NTe),DTe=he,FTe=Dt,LTe=Gu;DTe({target:"Object",stat:!0,sham:!FTe},{create:LTe});var jTe=Ae,BTe=jTe.Object,zTe=function(r,t){return BTe.create(r,t)},HTe=zTe,f5=HTe,WTe=f5,Va=le(WTe),rw=Ae,UTe=Tf;rw.JSON||(rw.JSON={stringify:JSON.stringify});var VTe=function(r,t,n){return UTe(rw.JSON.stringify,null,arguments)},KTe=VTe,GTe=KTe,qTe=GTe,Vf=le(qTe),YTe=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",XTe=TypeError,QTe=function(e,r){if(e<r)throw new XTe("Not enough arguments");return e},h5=ht,ZTe=Tf,JTe=Nt,exe=YTe,txe=If,rxe=vg,nxe=QTe,ixe=h5.Function,oxe=/MSIE .\./.test(txe)||exe&&function(){var e=h5.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),v5=function(e,r){var t=r?2:1;return oxe?function(n,i){var o=nxe(arguments.length,1)>t,a=JTe(n)?n:ixe(n),s=o?rxe(arguments,t):[],l=o?function(){ZTe(a,this,s)}:a;return r?e(l,i):e(l)}:e},axe=he,p5=ht,sxe=v5,KI=sxe(p5.setInterval,!0);axe({global:!0,bind:!0,forced:p5.setInterval!==KI},{setInterval:KI});var lxe=he,y5=ht,uxe=v5,GI=uxe(y5.setTimeout,!0);lxe({global:!0,bind:!0,forced:y5.setTimeout!==GI},{setTimeout:GI});var cxe=Ae,dxe=cxe.setTimeout,fxe=dxe,yi=le(fxe),hxe=Lr,qI=Df,vxe=Cn,pxe=function(r){for(var t=hxe(this),n=vxe(t),i=arguments.length,o=qI(i>1?arguments[1]:void 0,n),a=i>2?arguments[2]:void 0,s=a===void 0?n:qI(a,n);s>o;)t[o++]=r;return t},yxe=he,gxe=pxe;yxe({target:"Array",proto:!0},{fill:gxe});var mxe=jt,bxe=mxe("Array").fill,$xe=mt,wxe=bxe,O1=Array.prototype,Sxe=function(e){var r=e.fill;return e===O1||$xe(O1,e)&&r===O1.fill?wxe:r},_xe=Sxe,Exe=_xe,Oxe=Exe,Kf=le(Oxe);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
123
|
-
* http://naver.github.io/egjs
|
124
|
-
*
|
125
|
-
* Forked By Naver egjs
|
126
|
-
* Copyright (c) hammerjs
|
127
|
-
* Licensed under the MIT license */function Qn(){return Qn=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Qn.apply(this,arguments)}function Tn(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function Zh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var nw;typeof Object.assign!="function"?nw=function(r){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(r),n=1;n<arguments.length;n++){var i=arguments[n];if(i!=null)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:nw=Object.assign;var ss=nw,YI=["","webkit","Moz","MS","ms","o"],Pxe=typeof document>"u"?{style:{}}:document.createElement("div"),Cxe="function",gl=Math.round,ls=Math.abs,wE=Date.now;function Tg(e,r){for(var t,n,i=r[0].toUpperCase()+r.slice(1),o=0;o<YI.length;){if(t=YI[o],n=t?t+i:r,n in e)return n;o++}}var Wi;typeof window>"u"?Wi={}:Wi=window;var g5=Tg(Pxe.style,"touchAction"),m5=g5!==void 0;function Txe(){if(!m5)return!1;var e={},r=Wi.CSS&&Wi.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return e[t]=r?Wi.CSS.supports("touch-action",t):!0}),e}var b5="compute",$5="auto",iw="manipulation",Ka="none",Nd="pan-x",Dd="pan-y",Jh=Txe(),xxe=/mobile|tablet|ip(ad|hone|od)|android/i,w5="ontouchstart"in Wi,kxe=Tg(Wi,"PointerEvent")!==void 0,Ixe=w5&&xxe.test(navigator.userAgent),Gf="touch",Rxe="pen",SE="mouse",Axe="kinect",Mxe=25,hr=1,Ts=2,St=4,Mr=8,jp=1,qf=2,Yf=4,Xf=8,gu=16,gi=qf|Yf,Ga=Xf|gu,S5=gi|Ga,_5=["x","y"],Bp=["clientX","clientY"];function Ui(e,r,t){var n;if(e)if(e.forEach)e.forEach(r,t);else if(e.length!==void 0)for(n=0;n<e.length;)r.call(t,e[n],n,e),n++;else for(n in e)e.hasOwnProperty(n)&&r.call(t,e[n],n,e)}function xg(e,r){return typeof e===Cxe?e.apply(r&&r[0]||void 0,r):e}function Oa(e,r){return e.indexOf(r)>-1}function Nxe(e){if(Oa(e,Ka))return Ka;var r=Oa(e,Nd),t=Oa(e,Dd);return r&&t?Ka:r||t?r?Nd:Dd:Oa(e,iw)?iw:$5}var E5=function(){function e(t,n){this.manager=t,this.set(n)}var r=e.prototype;return r.set=function(n){n===b5&&(n=this.compute()),m5&&this.manager.element.style&&Jh[n]&&(this.manager.element.style[g5]=n),this.actions=n.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var n=[];return Ui(this.manager.recognizers,function(i){xg(i.options.enable,[i])&&(n=n.concat(i.getTouchAction()))}),Nxe(n.join(" "))},r.preventDefaults=function(n){var i=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var a=this.actions,s=Oa(a,Ka)&&!Jh[Ka],l=Oa(a,Dd)&&!Jh[Dd],u=Oa(a,Nd)&&!Jh[Nd];if(s){var c=n.pointers.length===1,d=n.distance<2,f=n.deltaTime<250;if(c&&d&&f)return}if(!(u&&l)&&(s||l&&o&gi||u&&o&Ga))return this.preventSrc(i)},r.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},e}();function _E(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}function O5(e){var r=e.length;if(r===1)return{x:gl(e[0].clientX),y:gl(e[0].clientY)};for(var t=0,n=0,i=0;i<r;)t+=e[i].clientX,n+=e[i].clientY,i++;return{x:gl(t/r),y:gl(n/r)}}function XI(e){for(var r=[],t=0;t<e.pointers.length;)r[t]={clientX:gl(e.pointers[t].clientX),clientY:gl(e.pointers[t].clientY)},t++;return{timeStamp:wE(),pointers:r,center:O5(r),deltaX:e.deltaX,deltaY:e.deltaY}}function zp(e,r,t){t||(t=_5);var n=r[t[0]]-e[t[0]],i=r[t[1]]-e[t[1]];return Math.sqrt(n*n+i*i)}function ow(e,r,t){t||(t=_5);var n=r[t[0]]-e[t[0]],i=r[t[1]]-e[t[1]];return Math.atan2(i,n)*180/Math.PI}function P5(e,r){return e===r?jp:ls(e)>=ls(r)?e<0?qf:Yf:r<0?Xf:gu}function Dxe(e,r){var t=r.center,n=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};(r.eventType===hr||o.eventType===St)&&(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=e.offsetDelta={x:t.x,y:t.y}),r.deltaX=i.x+(t.x-n.x),r.deltaY=i.y+(t.y-n.y)}function C5(e,r,t){return{x:r/e||0,y:t/e||0}}function Fxe(e,r){return zp(r[0],r[1],Bp)/zp(e[0],e[1],Bp)}function Lxe(e,r){return ow(r[1],r[0],Bp)+ow(e[1],e[0],Bp)}function jxe(e,r){var t=e.lastInterval||r,n=r.timeStamp-t.timeStamp,i,o,a,s;if(r.eventType!==Mr&&(n>Mxe||t.velocity===void 0)){var l=r.deltaX-t.deltaX,u=r.deltaY-t.deltaY,c=C5(n,l,u);o=c.x,a=c.y,i=ls(c.x)>ls(c.y)?c.x:c.y,s=P5(l,u),e.lastInterval=r}else i=t.velocity,o=t.velocityX,a=t.velocityY,s=t.direction;r.velocity=i,r.velocityX=o,r.velocityY=a,r.direction=s}function Bxe(e,r){var t=e.session,n=r.pointers,i=n.length;t.firstInput||(t.firstInput=XI(r)),i>1&&!t.firstMultiple?t.firstMultiple=XI(r):i===1&&(t.firstMultiple=!1);var o=t.firstInput,a=t.firstMultiple,s=a?a.center:o.center,l=r.center=O5(n);r.timeStamp=wE(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=ow(s,l),r.distance=zp(s,l),Dxe(t,r),r.offsetDirection=P5(r.deltaX,r.deltaY);var u=C5(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=u.x,r.overallVelocityY=u.y,r.overallVelocity=ls(u.x)>ls(u.y)?u.x:u.y,r.scale=a?Fxe(a.pointers,n):1,r.rotation=a?Lxe(a.pointers,n):0,r.maxPointers=t.prevInput?r.pointers.length>t.prevInput.maxPointers?r.pointers.length:t.prevInput.maxPointers:r.pointers.length,jxe(t,r);var c=e.element,d=r.srcEvent,f;d.composedPath?f=d.composedPath()[0]:d.path?f=d.path[0]:f=d.target,_E(f,c)&&(c=f),r.target=c}function zxe(e,r,t){var n=t.pointers.length,i=t.changedPointers.length,o=r&hr&&n-i===0,a=r&(St|Mr)&&n-i===0;t.isFirst=!!o,t.isFinal=!!a,o&&(e.session={}),t.eventType=r,Bxe(e,t),e.emit("hammer.input",t),e.recognize(t),e.session.prevInput=t}function Fd(e){return e.trim().split(/\s+/g)}function Kc(e,r,t){Ui(Fd(r),function(n){e.addEventListener(n,t,!1)})}function Gc(e,r,t){Ui(Fd(r),function(n){e.removeEventListener(n,t,!1)})}function QI(e){var r=e.ownerDocument||e;return r.defaultView||r.parentWindow||window}var Zu=function(){function e(t,n){var i=this;this.manager=t,this.callback=n,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(o){xg(t.options.enable,[t])&&i.handler(o)},this.init()}var r=e.prototype;return r.handler=function(){},r.init=function(){this.evEl&&Kc(this.element,this.evEl,this.domHandler),this.evTarget&&Kc(this.target,this.evTarget,this.domHandler),this.evWin&&Kc(QI(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&Gc(this.element,this.evEl,this.domHandler),this.evTarget&&Gc(this.target,this.evTarget,this.domHandler),this.evWin&&Gc(QI(this.element),this.evWin,this.domHandler)},e}();function us(e,r,t){if(e.indexOf&&!t)return e.indexOf(r);for(var n=0;n<e.length;){if(t&&e[n][t]==r||!t&&e[n]===r)return n;n++}return-1}var Hxe={pointerdown:hr,pointermove:Ts,pointerup:St,pointercancel:Mr,pointerout:Mr},Wxe={2:Gf,3:Rxe,4:SE,5:Axe},T5="pointerdown",x5="pointermove pointerup pointercancel";Wi.MSPointerEvent&&!Wi.PointerEvent&&(T5="MSPointerDown",x5="MSPointerMove MSPointerUp MSPointerCancel");var k5=function(e){Tn(r,e);function r(){var n,i=r.prototype;return i.evEl=T5,i.evWin=x5,n=e.apply(this,arguments)||this,n.store=n.manager.session.pointerEvents=[],n}var t=r.prototype;return t.handler=function(i){var o=this.store,a=!1,s=i.type.toLowerCase().replace("ms",""),l=Hxe[s],u=Wxe[i.pointerType]||i.pointerType,c=u===Gf,d=us(o,i.pointerId,"pointerId");l&hr&&(i.button===0||c)?d<0&&(o.push(i),d=o.length-1):l&(St|Mr)&&(a=!0),!(d<0)&&(o[d]=i,this.callback(this.manager,l,{pointers:o,changedPointers:[i],pointerType:u,srcEvent:i}),a&&o.splice(d,1))},r}(Zu);function Ld(e){return Array.prototype.slice.call(e,0)}function EE(e,r,t){for(var n=[],i=[],o=0;o<e.length;){var a=r?e[o][r]:e[o];us(i,a)<0&&n.push(e[o]),i[o]=a,o++}return t&&(r?n=n.sort(function(s,l){return s[r]>l[r]}):n=n.sort()),n}var Uxe={touchstart:hr,touchmove:Ts,touchend:St,touchcancel:Mr},Vxe="touchstart touchmove touchend touchcancel",OE=function(e){Tn(r,e);function r(){var n;return r.prototype.evTarget=Vxe,n=e.apply(this,arguments)||this,n.targetIds={},n}var t=r.prototype;return t.handler=function(i){var o=Uxe[i.type],a=Kxe.call(this,i,o);a&&this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:Gf,srcEvent:i})},r}(Zu);function Kxe(e,r){var t=Ld(e.touches),n=this.targetIds;if(r&(hr|Ts)&&t.length===1)return n[t[0].identifier]=!0,[t,t];var i,o,a=Ld(e.changedTouches),s=[],l=this.target;if(o=t.filter(function(u){return _E(u.target,l)}),r===hr)for(i=0;i<o.length;)n[o[i].identifier]=!0,i++;for(i=0;i<a.length;)n[a[i].identifier]&&s.push(a[i]),r&(St|Mr)&&delete n[a[i].identifier],i++;if(s.length)return[EE(o.concat(s),"identifier",!0),s]}var Gxe={mousedown:hr,mousemove:Ts,mouseup:St},qxe="mousedown",Yxe="mousemove mouseup",PE=function(e){Tn(r,e);function r(){var n,i=r.prototype;return i.evEl=qxe,i.evWin=Yxe,n=e.apply(this,arguments)||this,n.pressed=!1,n}var t=r.prototype;return t.handler=function(i){var o=Gxe[i.type];o&hr&&i.button===0&&(this.pressed=!0),o&Ts&&i.which!==1&&(o=St),this.pressed&&(o&St&&(this.pressed=!1),this.callback(this.manager,o,{pointers:[i],changedPointers:[i],pointerType:SE,srcEvent:i}))},r}(Zu),Xxe=2500,ZI=25;function JI(e){var r=e.changedPointers,t=r[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY},i=this.lastTouches;this.lastTouches.push(n);var o=function(){var s=i.indexOf(n);s>-1&&i.splice(s,1)};setTimeout(o,Xxe)}}function Qxe(e,r){e&hr?(this.primaryTouch=r.changedPointers[0].identifier,JI.call(this,r)):e&(St|Mr)&&JI.call(this,r)}function Zxe(e){for(var r=e.srcEvent.clientX,t=e.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var i=this.lastTouches[n],o=Math.abs(r-i.x),a=Math.abs(t-i.y);if(o<=ZI&&a<=ZI)return!0}return!1}var I5=function(){var e=function(r){Tn(t,r);function t(i,o){var a;return a=r.call(this,i,o)||this,a.handler=function(s,l,u){var c=u.pointerType===Gf,d=u.pointerType===SE;if(!(d&&u.sourceCapabilities&&u.sourceCapabilities.firesTouchEvents)){if(c)Qxe.call(Zh(Zh(a)),l,u);else if(d&&Zxe.call(Zh(Zh(a)),u))return;a.callback(s,l,u)}},a.touch=new OE(a.manager,a.handler),a.mouse=new PE(a.manager,a.handler),a.primaryTouch=null,a.lastTouches=[],a}var n=t.prototype;return n.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(Zu);return e}();function Jxe(e){var r,t=e.options.inputClass;return t?r=t:kxe?r=k5:Ixe?r=OE:w5?r=I5:r=PE,new r(e,zxe)}function ml(e,r,t){return Array.isArray(e)?(Ui(e,t[r],t),!0):!1}var Av=1,gn=2,mu=4,Vo=8,Vi=Vo,jd=16,ci=32,eke=1;function tke(){return eke++}function ev(e,r){var t=r.manager;return t?t.get(e):e}function eR(e){return e&jd?"cancel":e&Vo?"end":e&mu?"move":e&gn?"start":""}var Qf=function(){function e(t){t===void 0&&(t={}),this.options=Qn({enable:!0},t),this.id=tke(),this.manager=null,this.state=Av,this.simultaneous={},this.requireFail=[]}var r=e.prototype;return r.set=function(n){return ss(this.options,n),this.manager&&this.manager.touchAction.update(),this},r.recognizeWith=function(n){if(ml(n,"recognizeWith",this))return this;var i=this.simultaneous;return n=ev(n,this),i[n.id]||(i[n.id]=n,n.recognizeWith(this)),this},r.dropRecognizeWith=function(n){return ml(n,"dropRecognizeWith",this)?this:(n=ev(n,this),delete this.simultaneous[n.id],this)},r.requireFailure=function(n){if(ml(n,"requireFailure",this))return this;var i=this.requireFail;return n=ev(n,this),us(i,n)===-1&&(i.push(n),n.requireFailure(this)),this},r.dropRequireFailure=function(n){if(ml(n,"dropRequireFailure",this))return this;n=ev(n,this);var i=us(this.requireFail,n);return i>-1&&this.requireFail.splice(i,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},r.emit=function(n){var i=this,o=this.state;function a(s){i.manager.emit(s,n)}o<Vo&&a(i.options.event+eR(o)),a(i.options.event),n.additionalEvent&&a(n.additionalEvent),o>=Vo&&a(i.options.event+eR(o))},r.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=ci},r.canEmit=function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(ci|Av)))return!1;n++}return!0},r.recognize=function(n){var i=ss({},n);if(!xg(this.options.enable,[this,i])){this.reset(),this.state=ci;return}this.state&(Vi|jd|ci)&&(this.state=Av),this.state=this.process(i),this.state&(gn|mu|Vo|jd)&&this.tryEmit(i)},r.process=function(n){},r.getTouchAction=function(){},r.reset=function(){},e}(),aw=function(e){Tn(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,Qn({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},n))||this,i.pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}var t=r.prototype;return t.getTouchAction=function(){return[iw]},t.process=function(i){var o=this,a=this.options,s=i.pointers.length===a.pointers,l=i.distance<a.threshold,u=i.deltaTime<a.time;if(this.reset(),i.eventType&hr&&this.count===0)return this.failTimeout();if(l&&u&&s){if(i.eventType!==St)return this.failTimeout();var c=this.pTime?i.timeStamp-this.pTime<a.interval:!0,d=!this.pCenter||zp(this.pCenter,i.center)<a.posThreshold;this.pTime=i.timeStamp,this.pCenter=i.center,!d||!c?this.count=1:this.count+=1,this._input=i;var f=this.count%a.taps;if(f===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){o.state=Vi,o.tryEmit()},a.interval),gn):Vi}return ci},t.failTimeout=function(){var i=this;return this._timer=setTimeout(function(){i.state=ci},this.options.interval),ci},t.reset=function(){clearTimeout(this._timer)},t.emit=function(){this.state===Vi&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},r}(Qf),bu=function(e){Tn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Qn({pointers:1},n))||this}var t=r.prototype;return t.attrTest=function(i){var o=this.options.pointers;return o===0||i.pointers.length===o},t.process=function(i){var o=this.state,a=i.eventType,s=o&(gn|mu),l=this.attrTest(i);return s&&(a&Mr||!l)?o|jd:s||l?a&St?o|Vo:o&gn?o|mu:gn:ci},r}(Qf);function R5(e){return e===gu?"down":e===Xf?"up":e===qf?"left":e===Yf?"right":""}var CE=function(e){Tn(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,Qn({event:"pan",threshold:10,pointers:1,direction:S5},n))||this,i.pX=null,i.pY=null,i}var t=r.prototype;return t.getTouchAction=function(){var i=this.options.direction,o=[];return i&gi&&o.push(Dd),i&Ga&&o.push(Nd),o},t.directionTest=function(i){var o=this.options,a=!0,s=i.distance,l=i.direction,u=i.deltaX,c=i.deltaY;return l&o.direction||(o.direction&gi?(l=u===0?jp:u<0?qf:Yf,a=u!==this.pX,s=Math.abs(i.deltaX)):(l=c===0?jp:c<0?Xf:gu,a=c!==this.pY,s=Math.abs(i.deltaY))),i.direction=l,a&&s>o.threshold&&l&o.direction},t.attrTest=function(i){return bu.prototype.attrTest.call(this,i)&&(this.state&gn||!(this.state&gn)&&this.directionTest(i))},t.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var o=R5(i.direction);o&&(i.additionalEvent=this.options.event+o),e.prototype.emit.call(this,i)},r}(bu),A5=function(e){Tn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Qn({event:"swipe",threshold:10,velocity:.3,direction:gi|Ga,pointers:1},n))||this}var t=r.prototype;return t.getTouchAction=function(){return CE.prototype.getTouchAction.call(this)},t.attrTest=function(i){var o=this.options.direction,a;return o&(gi|Ga)?a=i.overallVelocity:o&gi?a=i.overallVelocityX:o&Ga&&(a=i.overallVelocityY),e.prototype.attrTest.call(this,i)&&o&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&ls(a)>this.options.velocity&&i.eventType&St},t.emit=function(i){var o=R5(i.offsetDirection);o&&this.manager.emit(this.options.event+o,i),this.manager.emit(this.options.event,i)},r}(bu),M5=function(e){Tn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Qn({event:"pinch",threshold:0,pointers:2},n))||this}var t=r.prototype;return t.getTouchAction=function(){return[Ka]},t.attrTest=function(i){return e.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&gn)},t.emit=function(i){if(i.scale!==1){var o=i.scale<1?"in":"out";i.additionalEvent=this.options.event+o}e.prototype.emit.call(this,i)},r}(bu),N5=function(e){Tn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Qn({event:"rotate",threshold:0,pointers:2},n))||this}var t=r.prototype;return t.getTouchAction=function(){return[Ka]},t.attrTest=function(i){return e.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&gn)},r}(bu),D5=function(e){Tn(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,Qn({event:"press",pointers:1,time:251,threshold:9},n))||this,i._timer=null,i._input=null,i}var t=r.prototype;return t.getTouchAction=function(){return[$5]},t.process=function(i){var o=this,a=this.options,s=i.pointers.length===a.pointers,l=i.distance<a.threshold,u=i.deltaTime>a.time;if(this._input=i,!l||!s||i.eventType&(St|Mr)&&!u)this.reset();else if(i.eventType&hr)this.reset(),this._timer=setTimeout(function(){o.state=Vi,o.tryEmit()},a.time);else if(i.eventType&St)return Vi;return ci},t.reset=function(){clearTimeout(this._timer)},t.emit=function(i){this.state===Vi&&(i&&i.eventType&St?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=wE(),this.manager.emit(this.options.event,this._input)))},r}(Qf),F5={domEvents:!1,touchAction:b5,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},tR=[[N5,{enable:!1}],[M5,{enable:!1},["rotate"]],[A5,{direction:gi}],[CE,{direction:gi},["swipe"]],[aw],[aw,{event:"doubletap",taps:2},["tap"]],[D5]],rke=1,rR=2;function nR(e,r){var t=e.element;if(t.style){var n;Ui(e.options.cssProps,function(i,o){n=Tg(t.style,o),r?(e.oldCssProps[n]=t.style[n],t.style[n]=i):t.style[n]=e.oldCssProps[n]||""}),r||(e.oldCssProps={})}}function nke(e,r){var t=document.createEvent("Event");t.initEvent(e,!0,!0),t.gesture=r,r.target.dispatchEvent(t)}var iR=function(){function e(t,n){var i=this;this.options=ss({},F5,n||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=Jxe(this),this.touchAction=new E5(this,this.options.touchAction),nR(this,!0),Ui(this.options.recognizers,function(o){var a=i.add(new o[0](o[1]));o[2]&&a.recognizeWith(o[2]),o[3]&&a.requireFailure(o[3])},this)}var r=e.prototype;return r.set=function(n){return ss(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},r.stop=function(n){this.session.stopped=n?rR:rke},r.recognize=function(n){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(n);var o,a=this.recognizers,s=i.curRecognizer;(!s||s&&s.state&Vi)&&(i.curRecognizer=null,s=null);for(var l=0;l<a.length;)o=a[l],i.stopped!==rR&&(!s||o===s||o.canRecognizeWith(s))?o.recognize(n):o.reset(),!s&&o.state&(gn|mu|Vo)&&(i.curRecognizer=o,s=o),l++}},r.get=function(n){if(n instanceof Qf)return n;for(var i=this.recognizers,o=0;o<i.length;o++)if(i[o].options.event===n)return i[o];return null},r.add=function(n){if(ml(n,"add",this))return this;var i=this.get(n.options.event);return i&&this.remove(i),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},r.remove=function(n){if(ml(n,"remove",this))return this;var i=this.get(n);if(n){var o=this.recognizers,a=us(o,i);a!==-1&&(o.splice(a,1),this.touchAction.update())}return this},r.on=function(n,i){if(n===void 0||i===void 0)return this;var o=this.handlers;return Ui(Fd(n),function(a){o[a]=o[a]||[],o[a].push(i)}),this},r.off=function(n,i){if(n===void 0)return this;var o=this.handlers;return Ui(Fd(n),function(a){i?o[a]&&o[a].splice(us(o[a],i),1):delete o[a]}),this},r.emit=function(n,i){this.options.domEvents&&nke(n,i);var o=this.handlers[n]&&this.handlers[n].slice();if(!(!o||!o.length)){i.type=n,i.preventDefault=function(){i.srcEvent.preventDefault()};for(var a=0;a<o.length;)o[a](i),a++}},r.destroy=function(){this.element&&nR(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),ike={touchstart:hr,touchmove:Ts,touchend:St,touchcancel:Mr},oke="touchstart",ake="touchstart touchmove touchend touchcancel",ske=function(e){Tn(r,e);function r(){var n,i=r.prototype;return i.evTarget=oke,i.evWin=ake,n=e.apply(this,arguments)||this,n.started=!1,n}var t=r.prototype;return t.handler=function(i){var o=ike[i.type];if(o===hr&&(this.started=!0),!!this.started){var a=lke.call(this,i,o);o&(St|Mr)&&a[0].length-a[1].length===0&&(this.started=!1),this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:Gf,srcEvent:i})}},r}(Zu);function lke(e,r){var t=Ld(e.touches),n=Ld(e.changedTouches);return r&(St|Mr)&&(t=EE(t.concat(n),"identifier",!0)),[t,n]}function L5(e,r,t){var n="DEPRECATED METHOD: "+r+`
|
128
|
-
`+t+` AT
|
129
|
-
`;return function(){var i=new Error("get-stack-trace"),o=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,n,o),e.apply(this,arguments)}}var j5=L5(function(e,r,t){for(var n=Object.keys(r),i=0;i<n.length;)(!t||t&&e[n[i]]===void 0)&&(e[n[i]]=r[n[i]]),i++;return e},"extend","Use `assign`."),uke=L5(function(e,r){return j5(e,r,!0)},"merge","Use `assign`.");function cke(e,r,t){var n=r.prototype,i;i=e.prototype=Object.create(n),i.constructor=e,i._super=n,t&&ss(i,t)}function oR(e,r){return function(){return e.apply(r,arguments)}}var B5=function(){var e=function(t,n){return n===void 0&&(n={}),new iR(t,Qn({recognizers:tR.concat()},n))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=S5,e.DIRECTION_DOWN=gu,e.DIRECTION_LEFT=qf,e.DIRECTION_RIGHT=Yf,e.DIRECTION_UP=Xf,e.DIRECTION_HORIZONTAL=gi,e.DIRECTION_VERTICAL=Ga,e.DIRECTION_NONE=jp,e.DIRECTION_DOWN=gu,e.INPUT_START=hr,e.INPUT_MOVE=Ts,e.INPUT_END=St,e.INPUT_CANCEL=Mr,e.STATE_POSSIBLE=Av,e.STATE_BEGAN=gn,e.STATE_CHANGED=mu,e.STATE_ENDED=Vo,e.STATE_RECOGNIZED=Vi,e.STATE_CANCELLED=jd,e.STATE_FAILED=ci,e.Manager=iR,e.Input=Zu,e.TouchAction=E5,e.TouchInput=OE,e.MouseInput=PE,e.PointerEventInput=k5,e.TouchMouseInput=I5,e.SingleTouchInput=ske,e.Recognizer=Qf,e.AttrRecognizer=bu,e.Tap=aw,e.Pan=CE,e.Swipe=A5,e.Pinch=M5,e.Rotate=N5,e.Press=D5,e.on=Kc,e.off=Gc,e.each=Ui,e.merge=uke,e.extend=j5,e.bindFn=oR,e.assign=ss,e.inherit=cke,e.bindFn=oR,e.prefixed=Tg,e.toArray=Ld,e.inArray=us,e.uniqueArray=EE,e.splitStr=Fd,e.boolOrFn=xg,e.hasParent=_E,e.addEventListeners=Kc,e.removeEventListeners=Gc,e.defaults=ss({},F5,{preset:tR}),e}();B5.defaults;var dke=B5;function z5(e,r){var t=typeof ca<"u"&&Ps(e)||e["@@iterator"];if(!t){if(Be(e)||(t=fke(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
130
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}function fke(e,r){var t;if(e){if(typeof e=="string")return aR(e,r);var n=Ut(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Os(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aR(e,r)}}function aR(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}ca("DELETE");function kg(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return hke(r.length?r:[Lp()])}function hke(e){var r=vke(e),t=ct(r,3),n=t[0],i=t[1],o=t[2],a=1,s=function(){var u=2091639*n+a*23283064365386963e-26;return n=i,i=o,o=u-(a=u|0)};return s.uint32=function(){return s()*4294967296},s.fract53=function(){return s()+(s()*2097152|0)*11102230246251565e-32},s.algorithm="Alea",s.seed=e,s.version="0.9",s}function vke(){for(var e=pke(),r=e(" "),t=e(" "),n=e(" "),i=0;i<arguments.length;i++)r-=e(i<0||arguments.length<=i?void 0:arguments[i]),r<0&&(r+=1),t-=e(i<0||arguments.length<=i?void 0:arguments[i]),t<0&&(t+=1),n-=e(i<0||arguments.length<=i?void 0:arguments[i]),n<0&&(n+=1);return[r,t,n]}function pke(){var e=4022871197;return function(r){for(var t=r.toString(),n=0;n<t.length;n++){e+=t.charCodeAt(n);var i=.02519603282416938*e;e=i>>>0,i-=e,i*=e,e=i>>>0,i-=e,e+=i*4294967296}return(e>>>0)*23283064365386963e-26}}function yke(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}var TE=typeof window<"u"?window.Hammer||dke:function(){return yke()};function di(e){var r=this,t;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)});var n=TE(this._dom.overlay);n.on("tap",V(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push(function(){n.destroy()});var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Ve(i).call(i,function(o){n.on(o,function(a){a.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(o){gke(o.target,e)||r.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",r._onClick)})),this._escListener=function(o){("key"in o?o.key==="Escape":o.keyCode===27)&&r.deactivate()}}Wj(di.prototype);di.current=null;di.prototype.destroy=function(){var e,r;this.deactivate();var t=z5(Ua(e=Hi(r=this._cleanupQueue).call(r,0)).call(e)),n;try{for(t.s();!(n=t.n()).done;){var i=n.value;i()}}catch(o){t.e(o)}finally{t.f()}};di.prototype.activate=function(){di.current&&di.current.deactivate(),di.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)};di.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")};di.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function gke(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}var mke=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,bke=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,$ke=/^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,wke=/^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 po(e){if(e)for(;e.hasChildNodes()===!0;){var r=e.firstChild;r&&(po(r),e.removeChild(r))}}function Tl(e){return e instanceof String||typeof e=="string"}function sR(e){return We(e)==="object"&&e!==null}function cs(e,r,t,n){var i=!1;n===!0&&(i=r[t]===null&&e[t]!==void 0),i?delete e[t]:e[t]=r[t]}function H5(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var n in e)if(r[n]!==void 0)if(r[n]===null||We(r[n])!=="object")cs(e,r,n,t);else{var i=e[n],o=r[n];sR(i)&&sR(o)&&H5(i,o,t)}}function Ju(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Be(t))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i<e.length;i++){var o=e[i];if(Object.prototype.hasOwnProperty.call(t,o))if(t[o]&&t[o].constructor===Object)r[o]===void 0&&(r[o]={}),r[o].constructor===Object?Ge(r[o],t[o],!1,n):cs(r,t,o,n);else{if(Be(t[o]))throw new TypeError("Arrays are not supported by deepExtend");cs(r,t,o,n)}}return r}function Hp(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Be(t))throw new TypeError("Arrays are not supported by deepExtend");for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&!Uo(e).call(e,i))if(t[i]&&t[i].constructor===Object)r[i]===void 0&&(r[i]={}),r[i].constructor===Object?Ge(r[i],t[i]):cs(r,t,i,n);else if(Be(t[i])){r[i]=[];for(var o=0;o<t[i].length;o++)r[i].push(t[i][o])}else cs(r,t,i,n);return r}function Ge(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)||t===!0)if(We(r[i])==="object"&&r[i]!==null&&BI(r[i])===Object.prototype)e[i]===void 0?e[i]=Ge({},r[i],t):We(e[i])==="object"&&e[i]!==null&&BI(e[i])===Object.prototype?Ge(e[i],r[i],t):cs(e,r,i,n);else if(Be(r[i])){var o;e[i]=Ut(o=r[i]).call(o)}else cs(e,r,i,n);return e}function Wp(e,r){var t;return bE(t=[]).call(t,li(e),[r])}function Ske(e){return Ut(e).call(e)}function _ke(e){return e.getBoundingClientRect().left}function Eke(e){return e.getBoundingClientRect().top}function be(e,r){if(Be(e))for(var t=e.length,n=0;n<t;n++)r(e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r(e[i],i,e)}function xE(e){var r;switch(e.length){case 3:case 4:return r=bke.exec(e),r?{r:Bn(r[1]+r[1],16),g:Bn(r[2]+r[2],16),b:Bn(r[3]+r[3],16)}:null;case 6:case 7:return r=mke.exec(e),r?{r:Bn(r[1],16),g:Bn(r[2],16),b:Bn(r[3],16)}:null;default:return null}}function dn(e,r){if(Uo(e).call(e,"rgba"))return e;if(Uo(e).call(e,"rgb")){var t=e.substr(Ie(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+t[0]+","+t[1]+","+t[2]+","+r+")"}else{var n=xE(e);return n==null?e:"rgba("+n.r+","+n.g+","+n.b+","+r+")"}}function W5(e,r,t){var n;return"#"+Ut(n=((1<<24)+(e<<16)+(r<<8)+t).toString(16)).call(n,1)}function sw(e,r){if(Tl(e)){var t=e;if(V5(t)){var n,i=yu(n=t.substr(4).substr(0,t.length-5).split(",")).call(n,function(d){return Bn(d)});t=W5(i[0],i[1],i[2])}if(U5(t)===!0){var o=Oke(t),a={h:o.h,s:o.s*.8,v:Math.min(1,o.v*1.02)},s={h:o.h,s:Math.min(1,o.s*1.25),v:o.v*.8},l=lw(s.h,s.s,s.v),u=lw(a.h,a.s,a.v);return{background:t,border:l,highlight:{background:u,border:l},hover:{background:u,border:l}}}else return{background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}else{var c={background:e.background||void 0,border:e.border||void 0,highlight:Tl(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||void 0,border:e.highlight&&e.highlight.border||void 0},hover:Tl(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||void 0,background:e.hover&&e.hover.background||void 0}};return c}}function Pc(e,r,t){e=e/255,r=r/255,t=t/255;var n=Math.min(e,Math.min(r,t)),i=Math.max(e,Math.max(r,t));if(n===i)return{h:0,s:0,v:n};var o=e===n?r-t:t===n?e-r:t-e,a=e===n?3:t===n?1:5,s=60*(a-o/(i-n))/360,l=(i-n)/i,u=i;return{h:s,s:l,v:u}}function Mv(e,r,t){var n,i,o,a=Math.floor(e*6),s=e*6-a,l=t*(1-r),u=t*(1-s*r),c=t*(1-(1-s)*r);switch(a%6){case 0:n=t,i=c,o=l;break;case 1:n=u,i=t,o=l;break;case 2:n=l,i=t,o=c;break;case 3:n=l,i=u,o=t;break;case 4:n=c,i=l,o=t;break;case 5:n=t,i=l,o=u;break}return{r:Math.floor(n*255),g:Math.floor(i*255),b:Math.floor(o*255)}}function lw(e,r,t){var n=Mv(e,r,t);return W5(n.r,n.g,n.b)}function Oke(e){var r=xE(e);if(!r)throw new TypeError("'".concat(e,"' is not a valid color."));return Pc(r.r,r.g,r.b)}function U5(e){var r=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return r}function V5(e){return $ke.test(e)}function Pke(e){return wke.test(e)}function Ko(e){if(e===null||We(e)!=="object")return null;if(e instanceof Element)return e;var r=Va(e);for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&We(e[t])=="object"&&(r[t]=Ko(e[t]));return r}function ln(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=function(v){return v!=null},o=function(v){return v!==null&&We(v)==="object"},a=function(v){for(var p in v)if(Object.prototype.hasOwnProperty.call(v,p))return!1;return!0};if(!o(e))throw new Error("Parameter mergeTarget must be an object");if(!o(r))throw new Error("Parameter options must be an object");if(!i(t))throw new Error("Parameter option must have a value");if(!o(n))throw new Error("Parameter globalOptions must be an object");var s=function(v,p,b){o(v[b])||(v[b]={});var y=p[b],g=v[b];for(var m in y)Object.prototype.hasOwnProperty.call(y,m)&&(g[m]=y[m])},l=r[t],u=o(n)&&!a(n),c=u?n[t]:void 0,d=c?c.enabled:void 0;if(l!==void 0){if(typeof l=="boolean"){o(e[t])||(e[t]={}),e[t].enabled=l;return}if(l===null&&!o(e[t]))if(i(c))e[t]=Va(c);else return;if(o(l)){var f=!0;l.enabled!==void 0?f=l.enabled:d!==void 0&&(f=c.enabled),s(e,r,t),e[t].enabled=f}}}var Cke={linear:function(r){return r},easeInQuad:function(r){return r*r},easeOutQuad:function(r){return r*(2-r)},easeInOutQuad:function(r){return r<.5?2*r*r:-1+(4-2*r)*r},easeInCubic:function(r){return r*r*r},easeOutCubic:function(r){return--r*r*r+1},easeInOutCubic:function(r){return r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1},easeInQuart:function(r){return r*r*r*r},easeOutQuart:function(r){return 1- --r*r*r*r},easeInOutQuart:function(r){return r<.5?8*r*r*r*r:1-8*--r*r*r*r},easeInQuint:function(r){return r*r*r*r*r},easeOutQuint:function(r){return 1+--r*r*r*r*r},easeInOutQuint:function(r){return r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r}};function yo(e,r){var t;Be(r)||(r=[r]);var n=z5(e),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o){t=o[r[0]];for(var a=1;a<r.length;a++)t&&(t=t[r[a]]);if(typeof t<"u")break}}}catch(s){n.e(s)}finally{n.f()}return t}var Tke={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},xke=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;q(this,e),this.pixelRatio=r,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 Y(e,[{key:"insertTo",value:function(t){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if(typeof t=="function")this.updateCallback=t;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(t){if(typeof t=="function")this.closeCallback=t;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(t){if(typeof t=="string")return Tke[t]}},{key:"setColor",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t!=="none"){var i,o=this._isColorString(t);if(o!==void 0&&(t=o),Tl(t)===!0){if(V5(t)===!0){var a=t.substr(4).substr(0,t.length-5).split(",");i={r:a[0],g:a[1],b:a[2],a:1}}else if(Pke(t)===!0){var s=t.substr(5).substr(0,t.length-6).split(",");i={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(U5(t)===!0){var l=xE(t);i={r:l.r,g:l.g,b:l.b,a:1}}}else if(t instanceof Object&&t.r!==void 0&&t.g!==void 0&&t.b!==void 0){var u=t.a!==void 0?t.a:"1.0";i={r:t.r,g:t.g,b:t.b,a:u}}if(i===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: "+Vf(t));this._setColor(i,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 t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n===!0&&(this.previousColor=wt({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",yi(function(){t.closeCallback!==void 0&&(t.closeCallback(),t.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(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n===!0&&(this.initialColor=wt({},t)),this.color=t;var i=Pc(t.r,t.g,t.b),o=2*Math.PI,a=this.r*i.s,s=this.centerCoordinates.x+a*Math.sin(o*i.h),l=this.centerCoordinates.y+a*Math.cos(o*i.h);this.colorPickerSelector.style.left=s-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var n=Pc(this.color.r,this.color.g,this.color.b);n.v=t/100;var i=Mv(n.h,n.s,n.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=Pc(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,o,a),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-n.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Kf(i).call(i),this.brightnessRange.value=100*n.v,this.opacityRange.value=100*t.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 t,n,i,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 s=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.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 l=this;this.opacityRange.onchange=function(){l._setOpacity(this.value)},this.opacityRange.oninput=function(){l._setOpacity(this.value)},this.brightnessRange.onchange=function(){l._setBrightness(this.value)},this.brightnessRange.oninput=function(){l._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=V(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=V(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=V(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=V(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 t=this;this.drag={},this.pinch={},this.hammer=new TE(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(n){n.isFirst&&t._moveSelector(n)}),this.hammer.on("tap",function(n){t._moveSelector(n)}),this.hammer.on("panstart",function(n){t._moveSelector(n)}),this.hammer.on("panmove",function(n){t._moveSelector(n)}),this.hammer.on("panend",function(n){t._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var t=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,n,i);var o,a,s,l;this.centerCoordinates={x:n*.5,y:i*.5},this.r=.49*n;var u=2*Math.PI/360,c=1/360,d=1/this.r,f;for(s=0;s<360;s++)for(l=0;l<this.r;l++)o=this.centerCoordinates.x+l*Math.sin(u*s),a=this.centerCoordinates.y+l*Math.cos(u*s),f=Mv(s*c,l*d,1),t.fillStyle="rgb("+f.r+","+f.g+","+f.b+")",t.fillRect(o-.5,a-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,n,i)}this.generated=!0}},{key:"_moveSelector",value:function(t){var n=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-n.left,o=t.center.y-n.top,a=.5*this.colorPickerDiv.clientHeight,s=.5*this.colorPickerDiv.clientWidth,l=i-s,u=o-a,c=Math.atan2(l,u),d=.98*Math.min(Math.sqrt(l*l+u*u),s),f=Math.cos(c)*d+a,h=Math.sin(c)*d+s;this.colorPickerSelector.style.top=f-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=h-.5*this.colorPickerSelector.clientWidth+"px";var v=c/(2*Math.PI);v=v<0?v+1:v;var p=d/this.r,b=Pc(this.color.r,this.color.g,this.color.b);b.h=v,b.s=p;var y=Mv(b.h,b.s,b.v);y.a=this.color.a,this.color=y,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+")"}}]),e}();function uw(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(r.length<1)throw new TypeError("Invalid arguments.");if(r.length===1)return document.createTextNode(r[0]);var n=document.createElement(r[0]);return n.appendChild(uw.apply(void 0,li(Ut(r).call(r,1)))),n}var kke=function(){function e(r,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};q(this,e),this.parent=r,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},wt(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new xke(i),this.wrapper=void 0}return Y(e,[{key:"setOptions",value:function(t){if(t!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof t=="string")this.options.filter=t;else if(Be(t))this.options.filter=t.join();else if(We(t)==="object"){if(t==null)throw new TypeError("options cannot be null");t.container!==void 0&&(this.options.container=t.container),Pr(t)!==void 0&&(this.options.filter=Pr(t)),t.showButton!==void 0&&(this.options.showButton=t.showButton),t.enabled!==void 0&&(n=t.enabled)}else typeof t=="boolean"?(this.options.filter=!0,n=t):typeof t=="function"&&(this.options.filter=t,n=!0);Pr(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,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 t=Pr(this.options),n=0,i=!1;for(var o in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,o)&&(this.allowCreation=!1,i=!1,typeof t=="function"?(i=t(o,[]),i=i||this._handleObject(this.configureOptions[o],[o],!0)):(t===!0||Ie(t).call(t,o)!==-1)&&(i=!0),i!==!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 t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var n=this.moduleOptions,i=0;i<t.length;i++)if(n[t[i]]!==void 0)n=n[t[i]];else{n=void 0;break}return n}},{key:"_makeItem",value:function(t){if(this.allowCreation===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return Ve(o).call(o,function(s){n.appendChild(s)}),this.domElements.push(n),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var n=document.createElement("div");n.className="vis-configuration vis-config-header",n.innerText=t,this._makeItem([],n)}},{key:"_makeLabel",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=document.createElement("div");if(o.className="vis-configuration vis-config-label vis-config-s"+n.length,i===!0){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(uw("i","b",t))}else o.innerText=t+":";return o}},{key:"_makeDropdown",value:function(t,n,i){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var a=0;n!==void 0&&Ie(t).call(t,n)!==-1&&(a=Ie(t).call(t,n));for(var s=0;s<t.length;s++){var l=document.createElement("option");l.value=t[s],s===a&&(l.selected="selected"),l.innerText=t[s],o.appendChild(l)}var u=this;o.onchange=function(){u._update(this.value,i)};var c=this._makeLabel(i[i.length-1],i);this._makeItem(i,c,o)}},{key:"_makeRange",value:function(t,n,i){var o=t[0],a=t[1],s=t[2],l=t[3],u=document.createElement("input");u.className="vis-configuration vis-config-range";try{u.type="range",u.min=a,u.max=s}catch{}u.step=l;var c="",d=0;if(n!==void 0){var f=1.2;n<0&&n*f<a?(u.min=Math.ceil(n*f),d=u.min,c="range increased"):n/f<a&&(u.min=Math.ceil(n/f),d=u.min,c="range increased"),n*f>s&&s!==1&&(u.max=Math.ceil(n*f),d=u.max,c="range increased"),u.value=n}else u.value=o;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=u.value;var v=this;u.onchange=function(){h.value=this.value,v._update(Number(this.value),i)},u.oninput=function(){h.value=this.value};var p=this._makeLabel(i[i.length-1],i),b=this._makeItem(i,p,u,h);c!==""&&this.popupHistory[b]!==d&&(this.popupHistory[b]=d,this._setupPopup(c,b))}},{key:"_makeButton",value:function(){var t=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(){t._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(t,n){var i=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var o=document.createElement("div");o.id="vis-configuration-popup",o.className="vis-configuration-popup",o.innerText=t,o.onclick=function(){i._removePopup()},this.popupCounter+=1,this.popupDiv={html:o,index:n}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(this.popupDiv.html!==void 0){var n=this.domElements[this.popupDiv.index],i=n.getBoundingClientRect();this.popupDiv.html.style.left=i.left+"px",this.popupDiv.html.style.top=i.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=yi(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=yi(function(){t._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(t,n,i){var o=document.createElement("input");o.type="checkbox",o.className="vis-configuration vis-config-checkbox",o.checked=t,n!==void 0&&(o.checked=n,n!==t&&(We(t)==="object"?n!==t.enabled&&this.changedOptions.push({path:i,value:n}):this.changedOptions.push({path:i,value:n})));var a=this;o.onchange=function(){a._update(this.checked,i)};var s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,o)}},{key:"_makeTextInput",value:function(t,n,i){var o=document.createElement("input");o.type="text",o.className="vis-configuration vis-config-text",o.value=n,n!==t&&this.changedOptions.push({path:i,value:n});var a=this;o.onchange=function(){a._update(this.value,i)};var s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,o)}},{key:"_makeColorField",value:function(t,n,i){var o=this,a=t[1],s=document.createElement("div");n=n===void 0?a:n,n!=="none"?(s.className="vis-configuration vis-config-colorBlock",s.style.backgroundColor=n):s.className="vis-configuration vis-config-colorBlock none",n=n===void 0?a:n,s.onclick=function(){o._showColorPicker(n,s,i)};var l=this._makeLabel(i[i.length-1],i);this._makeItem(i,l,s)}},{key:"_showColorPicker",value:function(t,n,i){var o=this;n.onclick=function(){},this.colorPicker.insertTo(n),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(a){var s="rgba("+a.r+","+a.g+","+a.b+","+a.a+")";n.style.backgroundColor=s,o._update(s,i)}),this.colorPicker.setCloseCallback(function(){n.onclick=function(){o._showColorPicker(t,n,i)}})}},{key:"_handleObject",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=!1,a=Pr(this.options),s=!1;for(var l in t)if(Object.prototype.hasOwnProperty.call(t,l)){o=!0;var u=t[l],c=Wp(n,l);if(typeof a=="function"&&(o=a(l,n),o===!1&&!Be(u)&&typeof u!="string"&&typeof u!="boolean"&&u instanceof Object&&(this.allowCreation=!1,o=this._handleObject(u,c,!0),this.allowCreation=i===!1)),o!==!1){s=!0;var d=this._getValue(c);if(Be(u))this._handleArray(u,d,c);else if(typeof u=="string")this._makeTextInput(u,d,c);else if(typeof u=="boolean")this._makeCheckbox(u,d,c);else if(u instanceof Object){if(!this.hideOption(n,l,this.moduleOptions))if(u.enabled!==void 0){var f=Wp(c,"enabled"),h=this._getValue(f);if(h===!0){var v=this._makeLabel(l,c,!0);this._makeItem(c,v),s=this._handleObject(u,c)||s}else this._makeCheckbox(u,h,c)}else{var p=this._makeLabel(l,c,!0);this._makeItem(c,p),s=this._handleObject(u,c)||s}}else console.error("dont know how to handle",u,l,c)}}return s}},{key:"_handleArray",value:function(t,n,i){typeof t[0]=="string"&&t[0]==="color"?(this._makeColorField(t,n,i),t[1]!==n&&this.changedOptions.push({path:i,value:n})):typeof t[0]=="string"?(this._makeDropdown(t,n,i),t[0]!==n&&this.changedOptions.push({path:i,value:n})):typeof t[0]=="number"&&(this._makeRange(t,n,i),t[0]!==n&&this.changedOptions.push({path:i,value:Number(n)}))}},{key:"_update",value:function(t,n){var i=this._constructOptions(t,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i;t=t==="true"?!0:t,t=t==="false"?!1:t;for(var a=0;a<n.length;a++)n[a]!=="global"&&(o[n[a]]===void 0&&(o[n[a]]={}),a!==n.length-1?o=o[n[a]]:o[n[a]]=t);return i}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(uw("pre","const options = "+Vf(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},n=0;n<this.changedOptions.length;n++)this._constructOptions(this.changedOptions[n].value,this.changedOptions[n].path,t);return t}}]),e}(),Ike=function(){function e(r,t){q(this,e),this.container=r,this.overflowMethod=t||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return Y(e,[{key:"setPosition",value:function(t,n){this.x=Bn(t),this.y=Bn(n)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(t===void 0&&(t=!0),t===!0){var n=this.frame.clientHeight,i=this.frame.clientWidth,o=this.frame.parentNode.clientHeight,a=this.frame.parentNode.clientWidth,s=0,l=0;if(this.overflowMethod=="flip"){var u=!1,c=!0;this.y-n<this.padding&&(c=!1),this.x+i>a-this.padding&&(u=!0),u?s=this.x-i:s=this.x,c?l=this.y-n:l=this.y}else l=this.y-n,l+n+this.padding>o&&(l=o-n-this.padding),l<this.padding&&(l=this.padding),s=this.x,s+i+this.padding>a&&(s=a-i-this.padding),s<this.padding&&(s=this.padding);this.frame.style.left=s+"px",this.frame.style.top=l+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),e}(),pc=!1,lR,cw="background: #FFeeee; color: #dd0000",Rke=function(){function e(){q(this,e)}return Y(e,null,[{key:"validate",value:function(t,n,i){pc=!1,lR=n;var o=n;return i!==void 0&&(o=n[i]),e.parse(t,o,[]),pc}},{key:"parse",value:function(t,n,i){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.check(o,t,n,i)}},{key:"check",value:function(t,n,i,o){if(i[t]===void 0&&i.__any__===void 0){e.getSuggestion(t,i,o);return}var a=t,s=!0;i[t]===void 0&&i.__any__!==void 0&&(a="__any__",s=e.getType(n[t])==="object");var l=i[a];s&&l.__type__!==void 0&&(l=l.__type__),e.checkFields(t,n,i,a,l,o)}},{key:"checkFields",value:function(t,n,i,o,a,s){var l=function(f){console.error("%c"+f+e.printLocation(s,t),cw)},u=e.getType(n[t]),c=a[u];c!==void 0?e.getType(c)==="array"&&Ie(c).call(c,n[t])===-1?(l('Invalid option detected in "'+t+'". Allowed values are:'+e.print(c)+' not "'+n[t]+'". '),pc=!0):u==="object"&&o!=="__any__"&&(s=Wp(s,t),e.parse(n[t],i[o],s)):a.any===void 0&&(l('Invalid type received for "'+t+'". Expected: '+e.print(ut(a))+". Received ["+u+'] "'+n[t]+'"'),pc=!0)}},{key:"getType",value:function(t){var n=We(t);return n==="object"?t===null?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Be(t)?"array":t instanceof Date?"date":t.nodeType!==void 0?"dom":t._isAMomentObject===!0?"moment":"object":n==="number"?"number":n==="boolean"?"boolean":n==="string"?"string":n===void 0?"undefined":n}},{key:"getSuggestion",value:function(t,n,i){var o=e.findInOptions(t,n,i,!1),a=e.findInOptions(t,lR,[],!0),s=8,l=4,u;o.indexMatch!==void 0?u=" in "+e.printLocation(o.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+`"?
|
131
|
-
|
132
|
-
`:a.distance<=l&&o.distance>a.distance?u=" in "+e.printLocation(o.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(a.path,a.closestMatch,""):o.distance<=s?u='. Did you mean "'+o.closestMatch+'"?'+e.printLocation(o.path,t):u=". Did you mean one of these: "+e.print(ut(n))+e.printLocation(i,t),console.error('%cUnknown option detected: "'+t+'"'+u,cw),pc=!0}},{key:"findInOptions",value:function(t,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=1e9,s="",l=[],u=t.toLowerCase(),c=void 0;for(var d in n){var f=void 0;if(n[d].__type__!==void 0&&o===!0){var h=e.findInOptions(t,n[d],Wp(i,d));a>h.distance&&(s=h.closestMatch,l=h.path,a=h.distance,c=h.indexMatch)}else{var v;Ie(v=d.toLowerCase()).call(v,u)!==-1&&(c=d),f=e.levenshteinDistance(t,d),a>f&&(s=d,l=Ske(i),a=f)}}return{closestMatch:s,path:l,distance:a,indexMatch:c}}},{key:"printLocation",value:function(t,n){for(var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
|
133
|
-
`,o=`
|
134
|
-
|
135
|
-
`+i+`options = {
|
136
|
-
`,a=0;a<t.length;a++){for(var s=0;s<a+1;s++)o+=" ";o+=t[a]+`: {
|
137
|
-
`}for(var l=0;l<t.length+1;l++)o+=" ";o+=n+`
|
138
|
-
`;for(var u=0;u<t.length+1;u++){for(var c=0;c<t.length-u;c++)o+=" ";o+=`}
|
139
|
-
`}return o+`
|
140
|
-
|
141
|
-
`}},{key:"print",value:function(t){return Vf(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,n){if(t.length===0)return n.length;if(n.length===0)return t.length;var i=[],o;for(o=0;o<=n.length;o++)i[o]=[o];var a;for(a=0;a<=t.length;a++)i[0][a]=a;for(o=1;o<=n.length;o++)for(a=1;a<=t.length;a++)n.charAt(o-1)==t.charAt(a-1)?i[o][a]=i[o-1][a-1]:i[o][a]=Math.min(i[o-1][a-1]+1,Math.min(i[o][a-1]+1,i[o-1][a]+1));return i[n.length][t.length]}}]),e}(),Ake=di,Mke=kke,xl=TE,Nke=Ike,K5=cw,Dke=Rke;function Fke(e){return xo=e,zke()}var G5={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},kE=Va(G5);kE.color="color.color";kE.style="dashes";var sr={NULL:0,DELIMITER:1,IDENTIFIER:2,UNKNOWN:3},uR={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},xo="",$u=0,me="",fe="",wr=sr.NULL;function Lke(){$u=0,me=xo.charAt(0)}function Ct(){$u++,me=xo.charAt($u)}function Vs(){return xo.charAt($u+1)}function cR(e){var r=e.charCodeAt(0);return r<47?r===35||r===46:r<59?r>47:r<91?r>64:r<96?r===95:r<123?r>96:!1}function Zo(e,r){if(e||(e={}),r)for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t]);return e}function jke(e,r,t){for(var n=r.split("."),i=e;n.length;){var o=n.shift();n.length?(i[o]||(i[o]={}),i=i[o]):i[o]=t}}function q5(e,r){for(var t,n,i=null,o=[e],a=e;a.parent;)o.push(a.parent),a=a.parent;if(a.nodes){for(t=0,n=a.nodes.length;t<n;t++)if(r.id===a.nodes[t].id){i=a.nodes[t];break}}for(i||(i={id:r.id},e.node&&(i.attr=Zo(i.attr,e.node))),t=o.length-1;t>=0;t--){var s,l=o[t];l.nodes||(l.nodes=[]),Ie(s=l.nodes).call(s,i)===-1&&l.nodes.push(i)}r.attr&&(i.attr=Zo(i.attr,r.attr))}function Bke(e,r){if(e.edges||(e.edges=[]),e.edges.push(r),e.edge){var t=Zo({},e.edge);r.attr=Zo(t,r.attr)}}function Y5(e,r,t,n,i){var o={from:r,to:t,type:n};return e.edge&&(o.attr=Zo({},e.edge)),o.attr=Zo(o.attr||{},i),i!=null&&i.hasOwnProperty("arrows")&&i.arrows!=null&&(o.arrows={to:{enabled:!0,type:i.arrows.type}},i.arrows=null),o}function qe(){for(wr=sr.NULL,fe="";me===" "||me===" "||me===`
|
142
|
-
`||me==="\r";)Ct();do{var e=!1;if(me==="#"){for(var r=$u-1;xo.charAt(r)===" "||xo.charAt(r)===" ";)r--;if(xo.charAt(r)===`
|
143
|
-
`||xo.charAt(r)===""){for(;me!=""&&me!=`
|
144
|
-
`;)Ct();e=!0}}if(me==="/"&&Vs()==="/"){for(;me!=""&&me!=`
|
145
|
-
`;)Ct();e=!0}if(me==="/"&&Vs()==="*"){for(;me!="";)if(me==="*"&&Vs()==="/"){Ct(),Ct();break}else Ct();e=!0}for(;me===" "||me===" "||me===`
|
146
|
-
`||me==="\r";)Ct()}while(e);if(me===""){wr=sr.DELIMITER;return}var t=me+Vs();if(uR[t]){wr=sr.DELIMITER,fe=t,Ct(),Ct();return}if(uR[me]){wr=sr.DELIMITER,fe=me,Ct();return}if(cR(me)||me==="-"){for(fe+=me,Ct();cR(me);)fe+=me,Ct();fe==="false"?fe=!1:fe==="true"?fe=!0:isNaN(Number(fe))||(fe=Number(fe)),wr=sr.IDENTIFIER;return}if(me==='"'){for(Ct();me!=""&&(me!='"'||me==='"'&&Vs()==='"');)me==='"'?(fe+=me,Ct()):me==="\\"&&Vs()==="n"?(fe+=`
|
147
|
-
`,Ct()):fe+=me,Ct();if(me!='"')throw lr('End of string " expected');Ct(),wr=sr.IDENTIFIER;return}for(wr=sr.UNKNOWN;me!="";)fe+=me,Ct();throw new SyntaxError('Syntax error in part "'+J5(fe,30)+'"')}function zke(){var e={};if(Lke(),qe(),fe==="strict"&&(e.strict=!0,qe()),(fe==="graph"||fe==="digraph")&&(e.type=fe,qe()),wr===sr.IDENTIFIER&&(e.id=fe,qe()),fe!="{")throw lr("Angle bracket { expected");if(qe(),X5(e),fe!="}")throw lr("Angle bracket } expected");if(qe(),fe!=="")throw lr("End of file expected");return qe(),delete e.node,delete e.edge,delete e.graph,e}function X5(e){for(;fe!==""&&fe!="}";)Hke(e),fe===";"&&qe()}function Hke(e){var r=Q5(e);if(r){Z5(e,r);return}var t=Wke(e);if(!t){if(wr!=sr.IDENTIFIER)throw lr("Identifier expected");var n=fe;if(qe(),fe==="="){if(qe(),wr!=sr.IDENTIFIER)throw lr("Identifier expected");e[n]=fe,qe()}else Uke(e,n)}}function Q5(e){var r=null;if(fe==="subgraph"&&(r={},r.type="subgraph",qe(),wr===sr.IDENTIFIER&&(r.id=fe,qe())),fe==="{"){if(qe(),r||(r={}),r.parent=e,r.node=e.node,r.edge=e.edge,r.graph=e.graph,X5(r),fe!="}")throw lr("Angle bracket } expected");qe(),delete r.node,delete r.edge,delete r.graph,delete r.parent,e.subgraphs||(e.subgraphs=[]),e.subgraphs.push(r)}return r}function Wke(e){return fe==="node"?(qe(),e.node=qc(),"node"):fe==="edge"?(qe(),e.edge=qc(),"edge"):fe==="graph"?(qe(),e.graph=qc(),"graph"):null}function Uke(e,r){var t={id:r},n=qc();n&&(t.attr=n),q5(e,t),Z5(e,r)}function Z5(e,r){for(;fe==="->"||fe==="--";){var t,n=fe;qe();var i=Q5(e);if(i)t=i;else{if(wr!=sr.IDENTIFIER)throw lr("Identifier or subgraph expected");t=fe,q5(e,{id:t}),qe()}var o=qc(),a=Y5(e,r,t,n,o);Bke(e,a),r=t}}function qc(){for(var e,r=null,t={dashed:!0,solid:!1,dotted:[1,5]},n={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},i=new Array,o=new Array;fe==="[";){for(qe(),r={};fe!==""&&fe!="]";){if(wr!=sr.IDENTIFIER)throw lr("Attribute name expected");var a=fe;if(qe(),fe!="=")throw lr("Equal sign = expected");if(qe(),wr!=sr.IDENTIFIER)throw lr("Attribute value expected");var s=fe;a==="style"&&(s=t[s]);var l;a==="arrowhead"&&(l=n[s],a="arrows",s={to:{enabled:!0,type:l}}),a==="arrowtail"&&(l=n[s],a="arrows",s={from:{enabled:!0,type:l}}),i.push({attr:r,name:a,value:s}),o.push(a),qe(),fe==","&&qe()}if(fe!="]")throw lr("Bracket ] expected");qe()}if(Uo(o).call(o,"dir")){var u={};for(u.arrows={},e=0;e<i.length;e++)if(i[e].name==="arrows")if(i[e].value.to!=null)u.arrows.to=e;else if(i[e].value.from!=null)u.arrows.from=e;else throw lr("Invalid value of arrows");else i[e].name==="dir"&&(u.dir=e);var c=i[u.dir].value;if(!Uo(o).call(o,"arrows"))if(c==="both")i.push({attr:i[u.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),u.arrows.to=i.length-1,i.push({attr:i[u.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),u.arrows.from=i.length-1;else if(c==="forward")i.push({attr:i[u.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),u.arrows.to=i.length-1;else if(c==="back")i.push({attr:i[u.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),u.arrows.from=i.length-1;else if(c==="none")i.push({attr:i[u.dir].attr,name:"arrows",value:""}),u.arrows.to=i.length-1;else throw lr('Invalid dir type "'+c+'"');var d,f;if(c==="both")u.arrows.to&&u.arrows.from?(f=i[u.arrows.to].value.to.type,d=i[u.arrows.from].value.from.type,i[u.arrows.to]={attr:i[u.arrows.to].attr,name:i[u.arrows.to].name,value:{to:{enabled:!0,type:f},from:{enabled:!0,type:d}}},Hi(i).call(i,u.arrows.from,1)):u.arrows.to?(f=i[u.arrows.to].value.to.type,d="arrow",i[u.arrows.to]={attr:i[u.arrows.to].attr,name:i[u.arrows.to].name,value:{to:{enabled:!0,type:f},from:{enabled:!0,type:d}}}):u.arrows.from&&(f="arrow",d=i[u.arrows.from].value.from.type,i[u.arrows.from]={attr:i[u.arrows.from].attr,name:i[u.arrows.from].name,value:{to:{enabled:!0,type:f},from:{enabled:!0,type:d}}});else if(c==="back")u.arrows.to&&u.arrows.from?(f="",d=i[u.arrows.from].value.from.type,i[u.arrows.from]={attr:i[u.arrows.from].attr,name:i[u.arrows.from].name,value:{to:{enabled:!0,type:f},from:{enabled:!0,type:d}}}):u.arrows.to?(f="",d="arrow",u.arrows.from=u.arrows.to,i[u.arrows.from]={attr:i[u.arrows.from].attr,name:i[u.arrows.from].name,value:{to:{enabled:!0,type:f},from:{enabled:!0,type:d}}}):u.arrows.from&&(f="",d=i[u.arrows.from].value.from.type,i[u.arrows.to]={attr:i[u.arrows.from].attr,name:i[u.arrows.from].name,value:{to:{enabled:!0,type:f},from:{enabled:!0,type:d}}}),i[u.arrows.from]={attr:i[u.arrows.from].attr,name:i[u.arrows.from].name,value:{from:{enabled:!0,type:i[u.arrows.from].value.from.type}}};else if(c==="none"){var h;u.arrows.to?h=u.arrows.to:h=u.arrows.from,i[h]={attr:i[h].attr,name:i[h].name,value:""}}else if(c==="forward")u.arrows.to&&u.arrows.from?(f=i[u.arrows.to].value.to.type,d="",i[u.arrows.to]={attr:i[u.arrows.to].attr,name:i[u.arrows.to].name,value:{to:{enabled:!0,type:f},from:{enabled:!0,type:d}}}):u.arrows.to?(f=i[u.arrows.to].value.to.type,d="",i[u.arrows.to]={attr:i[u.arrows.to].attr,name:i[u.arrows.to].name,value:{to:{enabled:!0,type:f},from:{enabled:!0,type:d}}}):u.arrows.from&&(f="arrow",d="",u.arrows.to=u.arrows.from,i[u.arrows.to]={attr:i[u.arrows.to].attr,name:i[u.arrows.to].name,value:{to:{enabled:!0,type:f},from:{enabled:!0,type:d}}}),i[u.arrows.to]={attr:i[u.arrows.to].attr,name:i[u.arrows.to].name,value:{to:{enabled:!0,type:i[u.arrows.to].value.to.type}}};else throw lr('Invalid dir type "'+c+'"');Hi(i).call(i,u.dir,1)}var v;if(Uo(o).call(o,"penwidth")){var p=[];for(v=i.length,e=0;e<v;e++)i[e].name!=="width"&&(i[e].name==="penwidth"&&(i[e].name="width"),p.push(i[e]));i=p}for(v=i.length,e=0;e<v;e++)jke(i[e].attr,i[e].name,i[e].value);return r}function lr(e){return new SyntaxError(e+', got "'+J5(fe,30)+'" (char '+$u+")")}function J5(e,r){return e.length<=r?e:e.substr(0,27)+"..."}function Vke(e,r,t){Be(e)?Ve(e).call(e,function(n){Be(r)?Ve(r).call(r,function(i){t(n,i)}):t(n,r)}):Be(r)?Ve(r).call(r,function(n){t(e,n)}):t(e,r)}function P1(e,r,t){for(var n=r.split("."),i=n.pop(),o=e,a=0;a<n.length;a++){var s=n[a];s in o||(o[s]={}),o=o[s]}return o[i]=t,e}function dR(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=r[n];Be(i)?Ve(i).call(i,function(o){P1(t,o,e[n])}):typeof i=="string"?P1(t,i,e[n]):P1(t,n,e[n])}return t}function Kke(e){var r=Fke(e),t={nodes:[],edges:[],options:{}};if(r.nodes){var n;Ve(n=r.nodes).call(n,function(a){var s={id:a.id,label:String(a.label||a.id)};Zo(s,dR(a.attr,G5)),s.image&&(s.shape="image"),t.nodes.push(s)})}if(r.edges){var i,o=function(s){var l={from:s.from,to:s.to};return Zo(l,dR(s.attr,kE)),l.arrows==null&&s.type==="->"&&(l.arrows="to"),l};Ve(i=r.edges).call(i,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;Ve(u=a.from.edges).call(u,function(d){var f=o(d);t.edges.push(f)})}if(Vke(s,l,function(d,f){var h=Y5(t,d.id,f.id,a.type,a.attr),v=o(h);t.edges.push(v)}),a.to instanceof Object&&a.to.edges){var c;Ve(c=a.to.edges).call(c,function(d){var f=o(d);t.edges.push(f)})}})}return r.attr&&(t.options=r.attr),t}function Gke(e,r){var t,n={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};r!=null&&(r.fixed!=null&&(n.nodes.fixed=r.fixed),r.parseColor!=null&&(n.nodes.parseColor=r.parseColor),r.inheritColor!=null&&(n.edges.inheritColor=r.inheritColor));var i=e.edges,o=yu(i).call(i,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&&n.edges.inheritColor===!1&&(l.color=s.color),l}),a=yu(t=e.nodes).call(t,function(s){var l={id:s.id,fixed:n.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&&(n.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:o}}var qke={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"},Yke={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},Xke={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",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"},Qke={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"},Zke={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"},Jke={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},eIe={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},tIe={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},rIe={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},nIe={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},iIe={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},oIe=Object.freeze({__proto__:null,cn:tIe,cs:iIe,de:Yke,en:qke,es:Xke,fr:nIe,it:Qke,nl:Zke,pt:Jke,ru:eIe,uk:rIe});function aIe(e,r){try{var t=r.split(/[-_ /]/,2),n=ct(t,2),i=n[0],o=n[1],a=i!=null?i.toLowerCase():null,s=o!=null?o.toUpperCase():null;if(a&&s){var l=a+"-"+s;if(Object.prototype.hasOwnProperty.call(e,l))return l;var u;console.warn(bE(u="Unknown variant ".concat(s," of language ")).call(u,a,"."))}if(a){var c=a;if(Object.prototype.hasOwnProperty.call(e,c))return c;console.warn("Unknown language ".concat(a))}return console.warn("Unknown locale ".concat(r,", falling back to English.")),"en"}catch(d){return console.error(d),console.warn("Unexpected error while normalizing locale ".concat(r,", falling back to English.")),"en"}}var sIe=function(){function e(){q(this,e),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return Y(e,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var t=this.image.width,n=this.image.height;this.width=t,this.height=n;var i=Math.floor(n/2),o=Math.floor(n/4),a=Math.floor(n/8),s=Math.floor(n/16),l=Math.floor(t/2),u=Math.floor(t/4),c=Math.floor(t/8),d=Math.floor(t/16);this.canvas.width=3*u,this.canvas.height=i,this.coordinates=[[0,0,l,i],[l,0,u,o],[l,o,c,a],[5*c,o,d,s]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var t=this.canvas.getContext("2d"),n=this.coordinates[0];t.drawImage(this.image,n[0],n[1],n[2],n[3]);for(var i=1;i<this.NUM_ITERATIONS;i++){var o=this.coordinates[i-1],a=this.coordinates[i];t.drawImage(this.canvas,o[0],o[1],o[2],o[3],a[0],a[1],a[2],a[3])}}},{key:"drawImageAtPosition",value:function(t,n,i,o,a,s){if(this.initialized())if(n>2){n*=.5;for(var l=0;n>2&&l<this.NUM_ITERATIONS;)n*=.5,l+=1;l>=this.NUM_ITERATIONS&&(l=this.NUM_ITERATIONS-1);var u=this.coordinates[l];t.drawImage(this.canvas,u[0],u[1],u[2],u[3],i,o,a,s)}else t.drawImage(this.image,i,o,a,s)}}]),e}(),lIe=function(){function e(r){q(this,e),this.images={},this.imageBroken={},this.callback=r}return Y(e,[{key:"_tryloadBrokenUrl",value:function(t,n,i){if(!(t===void 0||i===void 0)){if(n===void 0){console.warn("No broken url image defined");return}i.image.onerror=function(){console.error("Could not load brokenImage:",n)},i.image.src=n}}},{key:"_redrawWithImage",value:function(t){this.callback&&this.callback(t)}},{key:"load",value:function(t,n){var i=this,o=this.images[t];if(o)return o;var a=new sIe;return this.images[t]=a,a.image.onload=function(){i._fixImageCoordinates(a.image),a.init(),i._redrawWithImage(a)},a.image.onerror=function(){console.error("Could not load image:",t),i._tryloadBrokenUrl(t,n,a)},a.image.src=t,a}},{key:"_fixImageCoordinates",value:function(t){t.width===0&&(document.body.appendChild(t),t.width=t.offsetWidth,t.height=t.offsetHeight,document.body.removeChild(t))}}]),e}(),ez={exports:{}},uIe=Re,cIe=uIe(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),dIe=Re,fIe=Ft,hIe=oo,fR=cIe,Nv=Object.isExtensible,vIe=dIe(function(){Nv(1)}),pIe=vIe||fR?function(r){return!fIe(r)||fR&&hIe(r)==="ArrayBuffer"?!1:Nv?Nv(r):!0}:Nv,yIe=Re,tz=!yIe(function(){return Object.isExtensible(Object.preventExtensions({}))}),gIe=he,mIe=Me,bIe=Ff,$Ie=Ft,IE=Lt,wIe=en.f,hR=zf,SIe=wg,RE=pIe,_Ie=cg,EIe=tz,rz=!1,to=_Ie("meta"),OIe=0,AE=function(e){wIe(e,to,{value:{objectID:"O"+OIe++,weakData:{}}})},PIe=function(e,r){if(!$Ie(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!IE(e,to)){if(!RE(e))return"F";if(!r)return"E";AE(e)}return e[to].objectID},CIe=function(e,r){if(!IE(e,to)){if(!RE(e))return!0;if(!r)return!1;AE(e)}return e[to].weakData},TIe=function(e){return EIe&&rz&&RE(e)&&!IE(e,to)&&AE(e),e},xIe=function(){kIe.enable=function(){},rz=!0;var e=hR.f,r=mIe([].splice),t={};t[to]=1,e(t).length&&(hR.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===to){r(i,o,1);break}return i},gIe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:SIe.f}))},kIe=ez.exports={enable:xIe,fastKey:PIe,getWeakData:CIe,onFreeze:TIe};bIe[to]=!0;var Ig=ez.exports,IIe=Nf,RIe=Jr,AIe=tn,MIe=Uu,NIe=rB,DIe=Cn,vR=mt,FIe=sB,LIe=bg,pR=tB,jIe=TypeError,Dv=function(e,r){this.stopped=e,this.result=r},yR=Dv.prototype,ME=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),a=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),l=IIe(r,n),u,c,d,f,h,v,p,b=function(g){return u&&pR(u,"normal",g),new Dv(!0,g)},y=function(g){return i?(AIe(g),s?l(g[0],g[1],b):l(g[0],g[1])):s?l(g,b):l(g)};if(o)u=e.iterator;else if(a)u=e;else{if(c=LIe(e),!c)throw new jIe(MIe(e)+" is not iterable");if(NIe(c)){for(d=0,f=DIe(e);f>d;d++)if(h=y(e[d]),h&&vR(yR,h))return h;return new Dv(!1)}u=FIe(e,c)}for(v=o?e.next:u.next;!(p=RIe(v,u)).done;){try{h=y(p.value)}catch(g){pR(u,"throw",g)}if(typeof h=="object"&&h&&vR(yR,h))return h}return new Dv(!1)},BIe=mt,zIe=TypeError,NE=function(e,r){if(BIe(r,e))return e;throw new zIe("Incorrect invocation")},HIe=he,WIe=ht,UIe=Ig,VIe=Re,KIe=Ku,GIe=ME,qIe=NE,YIe=Nt,XIe=Ft,QIe=Hu,ZIe=qu,JIe=en.f,eRe=ua.forEach,tRe=Dt,nz=Es,rRe=nz.set,nRe=nz.getterFor,DE=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=WIe[e],s=a&&a.prototype,l={},u;if(!tRe||!YIe(a)||!(i||s.forEach&&!VIe(function(){new a().entries().next()})))u=t.getConstructor(r,e,n,o),UIe.enable();else{u=r(function(f,h){rRe(qIe(f,c),{type:e,collection:new a}),QIe(h)||GIe(h,f[o],{that:f,AS_ENTRIES:n})});var c=u.prototype,d=nRe(e);eRe(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(f){var h=f==="add"||f==="set";f in s&&!(i&&f==="clear")&&KIe(c,f,function(v,p){var b=d(this).collection;if(!h&&i&&!XIe(v))return f==="get"?void 0:!1;var y=b[f](v===0?0:v,p);return h?this:y})}),i||JIe(c,"size",{configurable:!0,get:function(){return d(this).collection.size}})}return ZIe(u,e,!1,!0),l[e]=u,HIe({global:!0,forced:!0},l),i||t.setStrong(u,e,n),u},iRe=jf,FE=function(e,r,t){for(var n in r)t&&t.unsafe&&e[n]?e[n]=r[n]:iRe(e,n,r[n],t);return e},oRe=Pn,aRe=hE,sRe=vt,lRe=Dt,gR=sRe("species"),uRe=function(e){var r=oRe(e);lRe&&r&&!r[gR]&&aRe(r,gR,{configurable:!0,get:function(){return this}})},cRe=Gu,dRe=hE,mR=FE,fRe=Nf,hRe=NE,vRe=Hu,pRe=ME,yRe=lE,tv=uE,gRe=uRe,yc=Dt,bR=Ig.fastKey,iz=Es,$R=iz.set,C1=iz.getterFor,oz={getConstructor:function(e,r,t,n){var i=e(function(u,c){hRe(u,o),$R(u,{type:r,index:cRe(null),first:void 0,last:void 0,size:0}),yc||(u.size=0),vRe(c)||pRe(c,u[n],{that:u,AS_ENTRIES:t})}),o=i.prototype,a=C1(r),s=function(u,c,d){var f=a(u),h=l(u,c),v,p;return h?h.value=d:(f.last=h={index:p=bR(c,!0),key:c,value:d,previous:v=f.last,next:void 0,removed:!1},f.first||(f.first=h),v&&(v.next=h),yc?f.size++:u.size++,p!=="F"&&(f.index[p]=h)),u},l=function(u,c){var d=a(u),f=bR(c),h;if(f!=="F")return d.index[f];for(h=d.first;h;h=h.next)if(h.key===c)return h};return mR(o,{clear:function(){for(var c=this,d=a(c),f=d.index,h=d.first;h;)h.removed=!0,h.previous&&(h.previous=h.previous.next=void 0),delete f[h.index],h=h.next;d.first=d.last=void 0,yc?d.size=0:c.size=0},delete:function(u){var c=this,d=a(c),f=l(c,u);if(f){var h=f.next,v=f.previous;delete d.index[f.index],f.removed=!0,v&&(v.next=h),h&&(h.previous=v),d.first===f&&(d.first=h),d.last===f&&(d.last=v),yc?d.size--:c.size--}return!!f},forEach:function(c){for(var d=a(this),f=fRe(c,arguments.length>1?arguments[1]:void 0),h;h=h?h.next:d.first;)for(f(h.value,h.key,this);h&&h.removed;)h=h.previous},has:function(c){return!!l(this,c)}}),mR(o,t?{get:function(c){var d=l(this,c);return d&&d.value},set:function(c,d){return s(this,c===0?0:c,d)}}:{add:function(c){return s(this,c=c===0?0:c,c)}}),yc&&dRe(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=C1(r),o=C1(n);yRe(e,r,function(a,s){$R(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(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,tv(void 0,!0)):tv(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},t?"entries":"values",!t,!0),gRe(r)}},mRe=DE,bRe=oz;mRe("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},bRe);var $Re=Ae,wRe=$Re.Map,SRe=wRe,_Re=SRe,ERe=_Re,az=le(ERe),ORe=function(){function e(){q(this,e),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},wt(this.options,this.defaultOptions)}return Y(e,[{key:"setOptions",value:function(t){var n=["useDefaultGroups"];if(t!==void 0){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&Ie(n).call(n,i)===-1){var o=t[i];this.add(i,o)}}}},{key:"clear",value:function(){this._groups=new az,this._groupNames=[]}},{key:"get",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._groups.get(t);if(i===void 0&&n)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var o=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[o]),this._groups.set(t,i)}else{var a=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[a],this._groups.set(t,i)}return i}},{key:"add",value:function(t,n){return this._groups.has(t)||this._groupNames.push(t),this._groups.set(t,n),n}}]),e}(),PRe=he;PRe({target:"Number",stat:!0},{isNaN:function(r){return r!==r}});var CRe=Ae,TRe=CRe.Number.isNaN,xRe=TRe,kRe=xRe,IRe=kRe,dw=le(IRe),RRe=ht,ARe=RRe.isFinite,MRe=Number.isFinite||function(r){return typeof r=="number"&&ARe(r)},NRe=he,DRe=MRe;NRe({target:"Number",stat:!0},{isFinite:DRe});var FRe=Ae,LRe=FRe.Number.isFinite,jRe=LRe,BRe=jRe,zRe=BRe,Pa=le(zRe),HRe=he,WRe=ua.some,URe=Qu,VRe=URe("some");HRe({target:"Array",proto:!0,forced:!VRe},{some:function(r){return WRe(this,r,arguments.length>1?arguments[1]:void 0)}});var KRe=jt,GRe=KRe("Array").some,qRe=mt,YRe=GRe,T1=Array.prototype,XRe=function(e){var r=e.some;return e===T1||qRe(T1,e)&&r===T1.some?YRe:r},QRe=XRe,ZRe=QRe,JRe=ZRe,e2e=le(JRe),t2e=Ae,r2e=t2e.Object.getOwnPropertySymbols,n2e=r2e,i2e=n2e,o2e=i2e,Jo=le(o2e),sz={exports:{}},a2e=he,s2e=Re,l2e=Oi,lz=zu.f,uz=Dt,u2e=!uz||s2e(function(){lz(1)});a2e({target:"Object",stat:!0,forced:u2e,sham:!uz},{getOwnPropertyDescriptor:function(r,t){return lz(l2e(r),t)}});var c2e=Ae,cz=c2e.Object,d2e=sz.exports=function(r,t){return cz.getOwnPropertyDescriptor(r,t)};cz.getOwnPropertyDescriptor.sham&&(d2e.sham=!0);var f2e=sz.exports,h2e=f2e,dz=h2e,v2e=dz,da=le(v2e),p2e=he,y2e=Dt,g2e=AOe,m2e=Oi,b2e=zu,$2e=Xu;p2e({target:"Object",stat:!0,sham:!y2e},{getOwnPropertyDescriptors:function(r){for(var t=m2e(r),n=b2e.f,i=g2e(t),o={},a=0,s,l;i.length>a;)l=n(t,s=i[a++]),l!==void 0&&$2e(o,s,l);return o}});var w2e=Ae,S2e=w2e.Object.getOwnPropertyDescriptors,_2e=S2e,E2e=_2e,O2e=E2e,ea=le(O2e),fz={exports:{}},P2e=he,C2e=Dt,wR=yg.f;P2e({target:"Object",stat:!0,forced:Object.defineProperties!==wR,sham:!C2e},{defineProperties:wR});var T2e=Ae,hz=T2e.Object,x2e=fz.exports=function(r,t){return hz.defineProperties(r,t)};hz.defineProperties.sham&&(x2e.sham=!0);var k2e=fz.exports,I2e=k2e,R2e=I2e,A2e=R2e,Rg=le(A2e),M2e=gB,Ag=le(M2e);function Mg(e,r,t){return r=XB(r),r in e?$g(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var vz=ht,N2e=Re,D2e=Me,F2e=Pi,L2e=l5.trim,j2e=$E,B2e=D2e("".charAt),Up=vz.parseFloat,SR=vz.Symbol,_R=SR&&SR.iterator,z2e=1/Up(j2e+"-0")!==-1/0||_R&&!N2e(function(){Up(Object(_R))}),H2e=z2e?function(r){var t=L2e(F2e(r)),n=Up(t);return n===0&&B2e(t,0)==="-"?-0:n}:Up,W2e=he,ER=H2e;W2e({global:!0,forced:parseFloat!==ER},{parseFloat:ER});var U2e=Ae,V2e=U2e.parseFloat,K2e=V2e,G2e=K2e,q2e=G2e,pz=le(q2e),Y2e=he,X2e=Re,Q2e=wg.f,Z2e=X2e(function(){return!Object.getOwnPropertyNames(1)});Y2e({target:"Object",stat:!0,forced:Z2e},{getOwnPropertyNames:Q2e});var J2e=Ae,eAe=J2e.Object,tAe=function(r){return eAe.getOwnPropertyNames(r)},rAe=tAe,nAe=rAe,iAe=nAe,oAe=le(iAe);function LE(e,r){var t=["node","edge","label"],n=!0,i=yo(r,"chosen");if(typeof i=="boolean")n=i;else if(We(i)==="object"){if(Ie(t).call(t,e)===-1)throw new Error("choosify: subOption '"+e+"' should be one of '"+t.join("', '")+"'");var o=yo(r,["chosen",e]);(typeof o=="boolean"||typeof o=="function")&&(n=o)}return n}function fw(e,r,t){if(e.width<=0||e.height<=0)return!1;if(t!==void 0){var n={x:r.x-t.x,y:r.y-t.y};if(t.angle!==0){var i=-t.angle,o={x:Math.cos(i)*n.x-Math.sin(i)*n.y,y:Math.sin(i)*n.x+Math.cos(i)*n.y};r=o}else r=n}var a=e.x+e.width,s=e.y+e.width;return e.left<r.x&&a>r.x&&e.top<r.y&&s>r.y}function Vp(e){return typeof e=="string"&&e!==""}function yz(e,r,t,n){var i=n.x,o=n.y;if(typeof n.distanceToBorder=="function"){var a=n.distanceToBorder(e,r),s=Math.sin(r)*a,l=Math.cos(r)*a;l===a?(i+=a,o=n.y):s===a?(i=n.x,o-=a):(i+=l,o-=s)}else n.shape.width>n.shape.height?(i=n.x+n.shape.width*.5,o=n.y-t):(i=n.x+t,o=n.y-n.shape.height*.5);return{x:i,y:o}}var aAe=jt,sAe=aAe("Array").values,lAe=sAe,uAe=lAe,cAe=_s,dAe=Lt,fAe=mt,hAe=uAe,x1=Array.prototype,vAe={DOMTokenList:!0,NodeList:!0},pAe=function(e){var r=e.values;return e===x1||fAe(x1,e)&&r===x1.values||dAe(vAe,cAe(e))?hAe:r},yAe=pAe,gz=le(yAe),gAe=function(){function e(r){q(this,e),this.measureText=r,this.current=0,this.width=0,this.height=0,this.lines=[]}return Y(e,[{key:"_add",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[t]===void 0&&(this.lines[t]={width:0,height:0,blocks:[]});var o=n;(n===void 0||n==="")&&(o=" ");var a=this.measureText(o,i),s=wt({},gz(a));s.text=n,s.width=a.width,s.mod=i,(n===void 0||n==="")&&(s.width=0),this.lines[t].blocks.push(s),this.lines[t].width+=s.width}},{key:"curWidth",value:function(){var t=this.lines[this.current];return t===void 0?0:t.width}},{key:"append",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,t,n)}},{key:"newLine",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,t,n),this.current++}},{key:"determineLineHeights",value:function(){for(var t=0;t<this.lines.length;t++){var n=this.lines[t],i=0;if(n.blocks!==void 0)for(var o=0;o<n.blocks.length;o++){var a=n.blocks[o];i<a.height&&(i=a.height)}n.height=i}}},{key:"determineLabelSize",value:function(){for(var t=0,n=0,i=0;i<this.lines.length;i++){var o=this.lines[i];o.width>t&&(t=o.width),n+=o.height}this.width=t,this.height=n}},{key:"removeEmptyBlocks",value:function(){for(var t=[],n=0;n<this.lines.length;n++){var i=this.lines[n];if(i.blocks.length!==0&&!(n===this.lines.length-1&&i.width===0)){var o={};wt(o,i),o.blocks=[];for(var a=void 0,s=[],l=0;l<i.blocks.length;l++){var u=i.blocks[l];u.width!==0?s.push(u):a===void 0&&(a=u)}s.length===0&&a!==void 0&&s.push(a),o.blocks=s,t.push(o)}}return t}},{key:"finalize",value:function(){this.determineLineHeights(),this.determineLabelSize();var t=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:t}}}]),e}(),mAe={"<b>":/<b>/,"<i>":/<i>/,"<code>":/<code>/,"</b>":/<\/b>/,"</i>":/<\/i>/,"</code>":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},OR=function(){function e(r){q(this,e),this.text=r,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return Y(e,[{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(t){t===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),t!=" "&&(this.buffer+=t)}},{key:"parseWS",value:function(t){return/[ \t]/.test(t)?(this.mono?this.add(t):this.spacing=!0,!0):!1}},{key:"setTag",value:function(t){this.emitBlock(),this[t]=!0,this.modStack.unshift(t)}},{key:"unsetTag",value:function(t){this.emitBlock(),this[t]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(t,n){return!this.mono&&!this[t]&&this.match(n)?(this.setTag(t),!0):!1}},{key:"match",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.prepareRegExp(t),o=ct(i,2),a=o[0],s=o[1],l=a.test(this.text.substr(this.position,s));return l&&n&&(this.position+=s-1),l}},{key:"parseEndTag",value:function(t,n,i){var o=this.mod()===t;return t==="mono"?o=o&&this.mono:o=o&&!this.mono,o&&this.match(n)?(i!==void 0?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(t):this.unsetTag(t),!0):!1}},{key:"replace",value:function(t,n){return this.match(t)?(this.add(n),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(t){var n,i;if(t instanceof RegExp)i=t,n=1;else{var o=mAe[t];o!==void 0?i=o:i=new RegExp(t),n=t.length}return[i,n]}}]),e}(),bAe=function(){function e(r,t,n,i){var o=this;q(this,e),this.ctx=r,this.parent=t,this.selected=n,this.hover=i;var a=function(l,u){if(l===void 0)return 0;var c=o.parent.getFormattingValues(r,n,i,u),d=0;if(l!==""){var f=o.ctx.measureText(l);d=f.width}return{width:d,values:c}};this.lines=new gAe(a)}return Y(e,[{key:"process",value:function(t){if(!Vp(t))return this.lines.finalize();var n=this.parent.fontOptions;t=t.replace(/\r\n/g,`
|
148
|
-
`),t=t.replace(/\r/g,`
|
149
|
-
`);var i=String(t).split(`
|
150
|
-
`),o=i.length;if(n.multi)for(var a=0;a<o;a++){var s=this.splitBlocks(i[a],n.multi);if(s!==void 0){if(s.length===0){this.lines.newLine("");continue}if(n.maxWdt>0)for(var l=0;l<s.length;l++){var u=s[l].mod,c=s[l].text;this.splitStringIntoLines(c,u,!0)}else for(var d=0;d<s.length;d++){var f=s[d].mod,h=s[d].text;this.lines.append(h,f)}this.lines.newLine()}}else if(n.maxWdt>0)for(var v=0;v<o;v++)this.splitStringIntoLines(i[v]);else for(var p=0;p<o;p++)this.lines.newLine(i[p]);return this.lines.finalize()}},{key:"decodeMarkupSystem",value:function(t){var n="none";return t==="markdown"||t==="md"?n="markdown":(t===!0||t==="html")&&(n="html"),n}},{key:"splitHtmlBlocks",value:function(t){for(var n=new OR(t),i=function(l){if(/&/.test(l)){var u=n.replace(n.text,"<","<")||n.replace(n.text,"&","&");return u||n.add("&"),!0}return!1};n.position<n.text.length;){var o=n.text.charAt(n.position),a=n.parseWS(o)||/</.test(o)&&(n.parseStartTag("bold","<b>")||n.parseStartTag("ital","<i>")||n.parseStartTag("mono","<code>")||n.parseEndTag("bold","</b>")||n.parseEndTag("ital","</i>")||n.parseEndTag("mono","</code>"))||i(o);a||n.add(o),n.position++}return n.emitBlock(),n.blocks}},{key:"splitMarkdownBlocks",value:function(t){for(var n=this,i=new OR(t),o=!0,a=function(c){return/\\/.test(c)?(i.position<n.text.length+1&&(i.position++,c=n.text.charAt(i.position),/ \t/.test(c)?i.spacing=!0:(i.add(c),o=!1)),!0):!1};i.position<i.text.length;){var s=i.text.charAt(i.position),l=i.parseWS(s)||a(s)||(o||i.spacing)&&(i.parseStartTag("bold","*")||i.parseStartTag("ital","_")||i.parseStartTag("mono","`"))||i.parseEndTag("bold","*","afterBold")||i.parseEndTag("ital","_","afterItal")||i.parseEndTag("mono","`","afterMono");l||(i.add(s),o=!1),i.position++}return i.emitBlock(),i.blocks}},{key:"splitBlocks",value:function(t,n){var i=this.decodeMarkupSystem(n);if(i==="none")return[{text:t,mod:"normal"}];if(i==="markdown")return this.splitMarkdownBlocks(t);if(i==="html")return this.splitHtmlBlocks(t)}},{key:"overMaxWidth",value:function(t){var n=this.ctx.measureText(t).width;return this.lines.curWidth()+n>this.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(t){for(var n="",i=0;i<t.length;){var o=n===""?"":" ",a=n+o+t[i];if(this.overMaxWidth(a))break;n=a,i++}return i}},{key:"getLongestFitWord",value:function(t){for(var n=0;n<t.length&&!this.overMaxWidth(Ut(t).call(t,0,n));)n++;return n}},{key:"splitStringIntoLines",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,n),t=t.replace(/^( +)/g,"$1\r"),t=t.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var o=t.split("\r");o.length>0;){var a=this.getLongestFit(o);if(a===0){var s=o[0],l=this.getLongestFitWord(s);this.lines.newLine(Ut(s).call(s,0,l),n),o[0]=Ut(s).call(s,l)}else{var u=a;o[a-1]===" "?a--:o[u]===" "&&u++;var c=Ut(o).call(o,0,a).join("");a==o.length&&i?this.lines.append(c,n):this.lines.newLine(c,n),o=Ut(o).call(o,u)}}}}]),e}(),gc=["bold","ital","boldital","mono"],mz=function(){function e(r,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;q(this,e),this.body=r,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(t),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=n}return Y(e,[{key:"setOptions",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),Vp(t.label)?this.labelDirty=!0:t.label=void 0,t.font!==void 0&&t.font!==null){if(typeof t.font=="string")this.baseSize=this.fontOptions.size;else if(We(t.font)==="object"){var n=t.font.size;n!==void 0&&(this.baseSize=n)}}}},{key:"initFontOptions",value:function(t){var n=this;if(be(gc,function(i){n.fontOptions[i]={}}),e.parseFontString(this.fontOptions,t)){this.fontOptions.vadjust=0;return}be(t,function(i,o){i!=null&&We(i)!=="object"&&(n.fontOptions[o]=i)})}},{key:"constrain",value:function(t){var n={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=yo(t,"widthConstraint");if(typeof i=="number")n.maxWdt=Number(i),n.minWdt=Number(i);else if(We(i)==="object"){var o=yo(t,["widthConstraint","maximum"]);typeof o=="number"&&(n.maxWdt=Number(o));var a=yo(t,["widthConstraint","minimum"]);typeof a=="number"&&(n.minWdt=Number(a))}var s=yo(t,"heightConstraint");if(typeof s=="number")n.minHgt=Number(s);else if(We(s)==="object"){var l=yo(t,["heightConstraint","minimum"]);typeof l=="number"&&(n.minHgt=Number(l));var u=yo(t,["heightConstraint","valign"]);typeof u=="string"&&(u==="top"||u==="bottom")&&(n.valign=u)}return n}},{key:"update",value:function(t,n){this.setOptions(t,!0),this.propagateFonts(n),Ge(this.fontOptions,this.constrain(n)),this.fontOptions.chooser=LE("label",n)}},{key:"adjustSizes",value:function(t){var n=t?t.right+t.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=n,this.fontOptions.minWdt-=n);var i=t?t.top+t.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:"addFontOptionsToPile",value:function(t,n){for(var i=0;i<n.length;++i)this.addFontToPile(t,n[i])}},{key:"addFontToPile",value:function(t,n){if(n!==void 0&&!(n.font===void 0||n.font===null)){var i=n.font;t.push(i)}}},{key:"getBasicOptions",value:function(t){for(var n={},i=0;i<t.length;++i){var o=t[i],a={};e.parseFontString(a,o)&&(o=a),be(o,function(s,l){s!==void 0&&(Object.prototype.hasOwnProperty.call(n,l)||(Ie(gc).call(gc,l)!==-1?n[l]={}:n[l]=s))})}return n}},{key:"getFontOption",value:function(t,n,i){for(var o,a=0;a<t.length;++a){var s=t[a];if(Object.prototype.hasOwnProperty.call(s,n)){if(o=s[n],o==null)continue;var l={};if(e.parseFontString(l,o)&&(o=l),Object.prototype.hasOwnProperty.call(o,i))return o[i]}}if(Object.prototype.hasOwnProperty.call(this.fontOptions,i))return this.fontOptions[i];throw new Error("Did not find value for multi-font for property: '"+i+"'")}},{key:"getFontOptions",value:function(t,n){for(var i={},o=["color","size","face","mod","vadjust"],a=0;a<o.length;++a){var s=o[a];i[s]=this.getFontOption(t,n,s)}return i}},{key:"propagateFonts",value:function(t){var n=this,i=[];this.addFontOptionsToPile(i,t),this.fontOptions=this.getBasicOptions(i);for(var o=function(){var l=gc[a],u=n.fontOptions[l],c=n.getFontOptions(i,l);be(c,function(d,f){u[f]=d}),u.size=Number(u.size),u.vadjust=Number(u.vadjust)},a=0;a<gc.length;++a)o()}},{key:"draw",value:function(t,n,i,o,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var l=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&l<this.elementOptions.scaling.label.drawThreshold-1||(l>=this.elementOptions.scaling.label.maxVisible&&(l=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(t,o,a,n,i,s),this._drawBackground(t),this._drawText(t,n,this.size.yLine,s,l))}}},{key:"_drawBackground",value:function(t){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){t.fillStyle=this.fontOptions.background;var n=this.getSize();t.fillRect(n.left,n.top,n.width,n.height)}}},{key:"_drawText",value:function(t,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",a=arguments.length>4?arguments[4]:void 0,s=this._setAlignment(t,n,i,o),l=ct(s,2);n=l[0],i=l[1],t.textAlign="left",n=n-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(i-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(i+=(this.size.height-this.size.labelHeight)/2));for(var u=0;u<this.lineCount;u++){var c=this.lines[u];if(c&&c.blocks){var d=0;this.isEdgeLabel||this.fontOptions.align==="center"?d+=(this.size.width-c.width)/2:this.fontOptions.align==="right"&&(d+=this.size.width-c.width);for(var f=0;f<c.blocks.length;f++){var h=c.blocks[f];t.font=h.font;var v=this._getColor(h.color,a,h.strokeColor),p=ct(v,2),b=p[0],y=p[1];h.strokeWidth>0&&(t.lineWidth=h.strokeWidth,t.strokeStyle=y,t.lineJoin="round"),t.fillStyle=b,h.strokeWidth>0&&t.strokeText(h.text,n+d,i+h.vadjust),t.fillText(h.text,n+d,i+h.vadjust),d+=h.width}i+=c.height}}}},{key:"_setAlignment",value:function(t,n,i,o){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){n=0,i=0;var a=2;this.fontOptions.align==="top"?(t.textBaseline="alphabetic",i-=2*a):this.fontOptions.align==="bottom"?(t.textBaseline="hanging",i+=2*a):t.textBaseline="middle"}else t.textBaseline=o;return[n,i]}},{key:"_getColor",value:function(t,n,i){var o=t||"#000000",a=i||"#ffffff";if(n<=this.elementOptions.scaling.label.drawThreshold){var s=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-n)));o=dn(o,s),a=dn(a,s)}return[o,a]}},{key:"getTextSize",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(t,n,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var t=2,n=this.size.left,i=this.size.top-.5*t;if(this.isEdgeLabel){var o=-this.size.width*.5;switch(this.fontOptions.align){case"middle":n=o,i=-this.size.height*.5;break;case"top":n=o,i=-(this.size.height+t);break;case"bottom":n=o,i=t;break}}var a={left:n,top:i,width:this.size.width,height:this.size.height};return a}},{key:"calculateLabelSize",value:function(t,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(t,n,i),this.size.left=o-this.size.width*.5,this.size.top=a-this.size.height*.5,this.size.yLine=a+(1-this.lineCount)*.5*this.fontOptions.size,s==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(t,n,i,o){var a=function(c,d,f){return d==="normal"?f==="mod"?"":c[f]:c[d][f]!==void 0?c[d][f]:c[f]},s={color:a(this.fontOptions,o,"color"),size:a(this.fontOptions,o,"size"),face:a(this.fontOptions,o,"face"),mod:a(this.fontOptions,o,"mod"),vadjust:a(this.fontOptions,o,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(n||i)&&(o==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?s.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(s,this.elementOptions.id,n,i));var l="";return s.mod!==void 0&&s.mod!==""&&(l+=s.mod+" "),l+=s.size+"px "+s.face,t.font=l.replace(/"/g,""),s.font=t.font,s.height=s.size,s}},{key:"differentState",value:function(t,n){return t!==this.selectedState||n!==this.hoverState}},{key:"_processLabelText",value:function(t,n,i,o){var a=new bAe(t,this,n,i);return a.process(o)}},{key:"_processLabel",value:function(t,n,i){if(!(this.labelDirty===!1&&!this.differentState(n,i))){var o=this._processLabelText(t,n,i,this.elementOptions.label);this.fontOptions.minWdt>0&&o.width<this.fontOptions.minWdt&&(o.width=this.fontOptions.minWdt),this.size.labelHeight=o.height,this.fontOptions.minHgt>0&&o.height<this.fontOptions.minHgt&&(o.height=this.fontOptions.minHgt),this.lines=o.lines,this.lineCount=o.lines.length,this.size.width=o.width,this.size.height=o.height,this.selectedState=n,this.hoverState=i,this.labelDirty=!1}}},{key:"visible",value:function(){if(this.size.width===0||this.size.height===0||this.elementOptions.label===void 0)return!1;var t=this.fontOptions.size*this.body.view.scale;return!(t<this.elementOptions.scaling.label.drawThreshold-1)}}],[{key:"parseFontString",value:function(t,n){if(!n||typeof n!="string")return!1;var i=n.split(" ");return t.size=+i[0].replace("px",""),t.face=i[1],t.color=i[2],!0}}]),e}(),$Ae=mg,wAe=Uu,SAe=TypeError,_Ae=function(e){if($Ae(e))return e;throw new SAe(wAe(e)+" is not a constructor")},EAe=he,OAe=Pn,k1=Tf,PAe=Fj,PR=_Ae,CAe=tn,CR=Ft,TAe=Gu,bz=Re,jE=OAe("Reflect","construct"),xAe=Object.prototype,kAe=[].push,$z=bz(function(){function e(){}return!(jE(function(){},[],e)instanceof e)}),wz=!bz(function(){jE(function(){})}),TR=$z||wz;EAe({target:"Reflect",stat:!0,forced:TR,sham:TR},{construct:function(r,t){PR(r),CAe(t);var n=arguments.length<3?r:PR(arguments[2]);if(wz&&!$z)return jE(r,t,n);if(r===n){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var i=[null];return k1(kAe,i,t),new(k1(PAe,r,i))}var o=n.prototype,a=TAe(CR(o)?o:xAe),s=k1(r,a,t);return CR(s)?s:a}});var IAe=Ae,RAe=IAe.Reflect.construct,AAe=RAe,MAe=AAe,NAe=MAe,A=le(NAe),DAe=f5,FAe=DAe,LAe=FAe,jAe=LAe,BAe=jAe,zAe=le(BAe),HAe=he,WAe=z1e;HAe({target:"Object",stat:!0},{setPrototypeOf:WAe});var UAe=Ae,VAe=UAe.Object.setPrototypeOf,KAe=VAe,GAe=KAe,qAe=GAe,YAe=qAe,XAe=YAe,QAe=XAe,ZAe=QAe,hw=le(ZAe),JAe=Lj,eMe=JAe,tMe=eMe,rMe=tMe,nMe=rMe,BE=le(nMe);function vw(e,r){var t;return vw=hw?BE(t=hw).call(t):function(i,o){return i.__proto__=o,i},vw(e,r)}function Ne(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=zAe(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),$g(e,"prototype",{writable:!1}),r&&vw(e,r)}function iMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ze(e,r){if(r&&(We(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iMe(e)}var oMe=s5,aMe=oMe,sMe=aMe,lMe=sMe,uMe=lMe,xR=le(uMe);function oe(e){var r;return oe=hw?BE(r=xR).call(r):function(n){return n.__proto__||xR(n)},oe(e)}var xs=function(){function e(r,t,n){q(this,e),this.body=t,this.labelModule=n,this.setOptions(r),this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.radius=void 0,this.margin=void 0,this.refreshNeeded=!0,this.boundingBox={top:0,left:0,right:0,bottom:0}}return Y(e,[{key:"setOptions",value:function(t){this.options=t}},{key:"_setMargins",value:function(t){this.margin={},this.options.margin&&(We(this.options.margin)=="object"?(this.margin.top=this.options.margin.top,this.margin.right=this.options.margin.right,this.margin.bottom=this.options.margin.bottom,this.margin.left=this.options.margin.left):(this.margin.top=this.options.margin,this.margin.right=this.options.margin,this.margin.bottom=this.options.margin,this.margin.left=this.options.margin)),t.adjustSizes(this.margin)}},{key:"_distanceToBorder",value:function(t,n){var i=this.options.borderWidth;return t&&this.resize(t),Math.min(Math.abs(this.width/2/Math.cos(n)),Math.abs(this.height/2/Math.sin(n)))+i}},{key:"enableShadow",value:function(t,n){n.shadow&&(t.shadowColor=n.shadowColor,t.shadowBlur=n.shadowSize,t.shadowOffsetX=n.shadowX,t.shadowOffsetY=n.shadowY)}},{key:"disableShadow",value:function(t,n){n.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"enableBorderDashes",value:function(t,n){if(n.borderDashes!==!1)if(t.setLineDash!==void 0){var i=n.borderDashes;i===!0&&(i=[5,15]),t.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,n.borderDashes=!1}},{key:"disableBorderDashes",value:function(t,n){n.borderDashes!==!1&&(t.setLineDash!==void 0?t.setLineDash([0]):(console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,n.borderDashes=!1))}},{key:"needsRefresh",value:function(t,n){return this.refreshNeeded===!0?(this.refreshNeeded=!1,!0):this.width===void 0||this.labelModule.differentState(t,n)}},{key:"initContextForDraw",value:function(t,n){var i=n.borderWidth/this.body.view.scale;t.lineWidth=Math.min(this.width,i),t.strokeStyle=n.borderColor,t.fillStyle=n.color}},{key:"performStroke",value:function(t,n){var i=n.borderWidth/this.body.view.scale;t.save(),i>0&&(this.enableBorderDashes(t,n),t.stroke(),this.disableBorderDashes(t,n)),t.restore()}},{key:"performFill",value:function(t,n){t.save(),t.fillStyle=n.color,this.enableShadow(t,n),Kf(t).call(t),this.disableShadow(t,n),t.restore(),this.performStroke(t,n)}},{key:"_addBoundingBoxMargin",value:function(t){this.boundingBox.left-=t,this.boundingBox.top-=t,this.boundingBox.bottom+=t,this.boundingBox.right+=t}},{key:"_updateBoundingBox",value:function(t,n,i,o,a){i!==void 0&&this.resize(i,o,a),this.left=t-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(t,n,i,o,a){this._updateBoundingBox(t,n,i,o,a)}},{key:"getDimensionsFromLabel",value:function(t,n,i){this.textSize=this.labelModule.getTextSize(t,n,i);var o=this.textSize.width,a=this.textSize.height,s=14;return o===0&&(o=s,a=s),{width:o,height:a}}}]),e}();function cMe(e){var r=dMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function dMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var fMe=function(e){Ne(t,e);var r=cMe(t);function t(n,i,o){var a;return q(this,t),a=r.call(this,n,i,o),a._setMargins(o),a}return Y(t,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.width=s.width+this.margin.right+this.margin.left,this.height=s.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,u){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,u),jj(i,this.left,this.top,this.width,this.height,u.borderRadius),this.performFill(i,u),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"updateBoundingBox",value:function(i,o,a,s,l){this._updateBoundingBox(i,o,a,s,l);var u=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(u)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(o)),Math.abs(this.height/2/Math.sin(o)))+a}}]),t}(xs);function hMe(e){var r=vMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function vMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var zE=function(e){Ne(t,e);var r=hMe(t);function t(n,i,o){var a;return q(this,t),a=r.call(this,n,i,o),a.labelOffset=0,a.selected=!1,a}return Y(t,[{key:"setOptions",value:function(i,o,a){this.options=i,o===void 0&&a===void 0||this.setImages(o,a)}},{key:"setImages",value:function(i,o){o&&this.selected?(this.imageObj=o,this.imageObjAlt=i):(this.imageObj=i,this.imageObjAlt=o)}},{key:"switchImages",value:function(i){var o=i&&!this.selected||!i&&this.selected;if(this.selected=i,this.imageObjAlt!==void 0&&o){var a=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=a}}},{key:"_getImagePadding",value:function(){var i={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var o=this.options.imagePadding;We(o)=="object"?(i.top=o.top,i.right=o.right,i.bottom=o.bottom,i.left=o.left):(i.top=o,i.right=o,i.bottom=o,i.left=o)}return i}},{key:"_resizeImage",value:function(){var i,o;if(this.options.shapeProperties.useImageSize===!1){var a=1,s=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?a=this.imageObj.width/this.imageObj.height:s=this.imageObj.height/this.imageObj.width),i=this.options.size*2*a,o=this.options.size*2*s}else{var l=this._getImagePadding();i=this.imageObj.width+l.left+l.right,o=this.imageObj.height+l.top+l.bottom}this.width=i,this.height=o,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(i,o,a,s){this.initContextForDraw(i,s),iE(i,o,a,s.size),this.performFill(i,s)}},{key:"_drawImageAtPosition",value:function(i,o){if(this.imageObj.width!=0){i.globalAlpha=o.opacity!==void 0?o.opacity:1,this.enableShadow(i,o);var a=1;this.options.shapeProperties.interpolation===!0&&(a=this.imageObj.width/this.width/this.body.view.scale);var s=this._getImagePadding(),l=this.left+s.left,u=this.top+s.top,c=this.width-s.left-s.right,d=this.height-s.top-s.bottom;this.imageObj.drawImageAtPosition(i,a,l,u,c,d),this.disableShadow(i,o)}}},{key:"_drawImageLabel",value:function(i,o,a,s,l){var u=0;if(this.height!==void 0){u=this.height*.5;var c=this.labelModule.getTextSize(i,s,l);c.lineCount>=1&&(u+=c.height/2)}var d=a+u;this.options.label&&(this.labelOffset=u),this.labelModule.draw(i,o,d,s,l,"hanging")}}]),t}(xs);function pMe(e){var r=yMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function yMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var gMe=function(e){Ne(t,e);var r=pMe(t);function t(n,i,o){var a;return q(this,t),a=r.call(this,n,i,o),a._setMargins(o),a}return Y(t,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=Math.max(s.width+this.margin.right+this.margin.left,s.height+this.margin.top+this.margin.bottom);this.options.size=l/2,this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,u){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this._drawRawCircle(i,o,a,u),this.updateBoundingBox(o,a),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,a,s,l)}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),t}(zE);function mMe(e){var r=bMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function bMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var $Me=function(e){Ne(t,e);var r=mMe(t);function t(n,i,o,a,s){var l;return q(this,t),l=r.call(this,n,i,o),l.setImages(a,s),l}return Y(t,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l,this.radius=.5*this.width;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,u){this.switchImages(s),this.resize();var c=o,d=a;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,c+=this.width/2,d+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this._drawRawCircle(i,c,d,u),i.save(),i.clip(),this._drawImageAtPosition(i,u),i.restore(),this._drawImageLabel(i,c,d,s,l),this.updateBoundingBox(o,a)}},{key:"updateBoundingBox",value:function(i,o){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=o,this.boundingBox.left=i,this.boundingBox.right=i+this.options.size*2,this.boundingBox.bottom=o+this.options.size*2):(this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+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(i){return i&&this.resize(i),this.width*.5}}]),t}(zE);function wMe(e){var r=SMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function SMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var fa=function(e){Ne(t,e);var r=wMe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(o,a)){var l,u;this.labelModule.getTextSize(i,o,a);var c=2*s.size;this.width=(l=this.customSizeWidth)!==null&&l!==void 0?l:c,this.height=(u=this.customSizeHeight)!==null&&u!==void 0?u:c,this.radius=.5*this.width}}},{key:"_drawShape",value:function(i,o,a,s,l,u,c,d){var f=this;return this.resize(i,u,c,d),this.left=s-this.width/2,this.top=l-this.height/2,this.initContextForDraw(i,d),nbe(o)(i,s,l,d.size),this.performFill(i,d),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(i.font=(u?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",i.fillText(this.options.icon.code,s,l)),{drawExternalLabel:function(){if(f.options.label!==void 0){f.labelModule.calculateLabelSize(i,u,c,s,l,"hanging");var v=l+.5*f.height+.5*f.labelModule.size.height;f.labelModule.draw(i,s,v,u,c,"hanging")}f.updateBoundingBox(s,l)}}}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+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))}}]),t}(xs);function kR(e,r){var t=ut(e);if(Jo){var n=Jo(e);r&&(n=Pr(n).call(n,function(i){return da(e,i).enumerable})),t.push.apply(t,n)}return t}function _Me(e){for(var r=1;r<arguments.length;r++){var t,n,i=arguments[r]!=null?arguments[r]:{};r%2?Ve(t=kR(Object(i),!0)).call(t,function(o){Mg(e,o,i[o])}):ea?Rg(e,ea(i)):Ve(n=kR(Object(i))).call(n,function(o){Ag(e,o,da(i,o))})}return e}function EMe(e){var r=OMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function OMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var PMe=function(e){Ne(t,e);var r=EMe(t);function t(n,i,o,a){var s;return q(this,t),s=r.call(this,n,i,o,a),s.ctxRenderer=a,s}return Y(t,[{key:"draw",value:function(i,o,a,s,l,u){this.resize(i,s,l,u),this.left=o-this.width/2,this.top=a-this.height/2,i.save();var c=this.ctxRenderer({ctx:i,id:this.options.id,x:o,y:a,state:{selected:s,hover:l},style:_Me({},u),label:this.options.label});if(c.drawNode!=null&&c.drawNode(),i.restore(),c.drawExternalLabel){var d=c.drawExternalLabel;c.drawExternalLabel=function(){i.save(),d(),i.restore()}}return c.nodeDimensions&&(this.customSizeWidth=c.nodeDimensions.width,this.customSizeHeight=c.nodeDimensions.height),c}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),t}(fa);function CMe(e){var r=TMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function TMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var xMe=function(e){Ne(t,e);var r=CMe(t);function t(n,i,o){var a;return q(this,t),a=r.call(this,n,i,o),a._setMargins(o),a}return Y(t,[{key:"resize",value:function(i,o,a){if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=s.width+this.margin.right+this.margin.left;this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,u){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,u),Bj(i,o-this.width/2,a-this.height/2,this.width,this.height),this.performFill(i,u),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),t}(xs);function kMe(e){var r=IMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function IMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var RMe=function(e){Ne(t,e);var r=kMe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"draw",value:function(i,o,a,s,l,u){return this._drawShape(i,"diamond",4,o,a,s,l,u)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),t}(fa);function AMe(e){var r=MMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function MMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var NMe=function(e){Ne(t,e);var r=AMe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"draw",value:function(i,o,a,s,l,u){return this._drawShape(i,"circle",2,o,a,s,l,u)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.options.size}}]),t}(fa);function DMe(e){var r=FMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function FMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var IR=function(e){Ne(t,e);var r=DMe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.height=s.height*2,this.width=s.width+s.height,this.radius=.5*this.width}}},{key:"draw",value:function(i,o,a,s,l,u){this.resize(i,s,l),this.left=o-this.width*.5,this.top=a-this.height*.5,this.initContextForDraw(i,u),z0(i,this.left,this.top,this.width,this.height),this.performFill(i,u),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,o,a,s,l)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.width*.5,s=this.height*.5,l=Math.sin(o)*a,u=Math.cos(o)*s;return a*s/Math.sqrt(l*l+u*u)}}]),t}(xs);function LMe(e){var r=jMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function jMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var BMe=function(e){Ne(t,e);var r=LMe(t);function t(n,i,o){var a;return q(this,t),a=r.call(this,n,i,o),a._setMargins(o),a}return Y(t,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(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(i,o,a,s,l,u){var c=this;return this.resize(i,s,l),this.options.icon.size=this.options.icon.size||50,this.left=o-this.width/2,this.top=a-this.height/2,this._icon(i,o,a,s,l,u),{drawExternalLabel:function(){if(c.options.label!==void 0){var f=5;c.labelModule.draw(i,c.left+c.iconSize.width/2+c.margin.left,a+c.height/2+f,s)}c.updateBoundingBox(o,a)}}}},{key:"updateBoundingBox",value:function(i,o){if(this.boundingBox.top=o-this.options.icon.size*.5,this.boundingBox.left=i-this.options.icon.size*.5,this.boundingBox.right=i+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 a=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+a)}}},{key:"_icon",value:function(i,o,a,s,l,u){var c=Number(this.options.icon.size);this.options.icon.code!==void 0?(i.font=[this.options.icon.weight!=null?this.options.icon.weight:s?"bold":"",(this.options.icon.weight!=null&&s?5:0)+c+"px",this.options.icon.face].join(" "),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",this.enableShadow(i,u),i.fillText(this.options.icon.code,o,a),this.disableShadow(i,u)):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(i,o){return this._distanceToBorder(i,o)}}]),t}(xs);function zMe(e){var r=HMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function HMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var WMe=function(e){Ne(t,e);var r=zMe(t);function t(n,i,o,a,s){var l;return q(this,t),l=r.call(this,n,i,o),l.setImages(a,s),l}return Y(t,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,u){i.save(),this.switchImages(s),this.resize();var c=o,d=a;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,c+=this.width/2,d+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var f=this.options.borderWidth,h=this.options.borderWidthSelected||2*this.options.borderWidth,v=(s?h:f)/this.body.view.scale;i.lineWidth=Math.min(this.width,v),i.beginPath();var p=s?this.options.color.highlight.border:l?this.options.color.hover.border:this.options.color.border,b=s?this.options.color.highlight.background:l?this.options.color.hover.background:this.options.color.background;u.opacity!==void 0&&(p=dn(p,u.opacity),b=dn(b,u.opacity)),i.strokeStyle=p,i.fillStyle=b,i.rect(this.left-.5*i.lineWidth,this.top-.5*i.lineWidth,this.width+i.lineWidth,this.height+i.lineWidth),Kf(i).call(i),this.performStroke(i,u),i.closePath()}this._drawImageAtPosition(i,u),this._drawImageLabel(i,c,d,s,l),this.updateBoundingBox(o,a),i.restore()}},{key:"updateBoundingBox",value:function(i,o){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=i,this.top=o):(this.left=i-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(i,o){return this._distanceToBorder(i,o)}}]),t}(zE);function UMe(e){var r=VMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function VMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var KMe=function(e){Ne(t,e);var r=UMe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"draw",value:function(i,o,a,s,l,u){return this._drawShape(i,"square",2,o,a,s,l,u)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),t}(fa);function GMe(e){var r=qMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function qMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var YMe=function(e){Ne(t,e);var r=GMe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"draw",value:function(i,o,a,s,l,u){return this._drawShape(i,"hexagon",4,o,a,s,l,u)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),t}(fa);function XMe(e){var r=QMe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function QMe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var ZMe=function(e){Ne(t,e);var r=XMe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"draw",value:function(i,o,a,s,l,u){return this._drawShape(i,"star",4,o,a,s,l,u)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),t}(fa);function JMe(e){var r=eNe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function eNe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var tNe=function(e){Ne(t,e);var r=JMe(t);function t(n,i,o){var a;return q(this,t),a=r.call(this,n,i,o),a._setMargins(o),a}return Y(t,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(this.textSize=this.labelModule.getTextSize(i,o,a),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(i,o,a,s,l,u){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.enableShadow(i,u),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l),this.disableShadow(i,u),this.updateBoundingBox(o,a,i,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),t}(xs);function rNe(e){var r=nNe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function nNe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var iNe=function(e){Ne(t,e);var r=rNe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"draw",value:function(i,o,a,s,l,u){return this._drawShape(i,"triangle",3,o,a,s,l,u)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),t}(fa);function oNe(e){var r=aNe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function aNe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var sNe=function(e){Ne(t,e);var r=oNe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"draw",value:function(i,o,a,s,l,u){return this._drawShape(i,"triangleDown",3,o,a,s,l,u)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),t}(fa);function RR(e,r){var t=ut(e);if(Jo){var n=Jo(e);r&&(n=Pr(n).call(n,function(i){return da(e,i).enumerable})),t.push.apply(t,n)}return t}function AR(e){for(var r=1;r<arguments.length;r++){var t,n,i=arguments[r]!=null?arguments[r]:{};r%2?Ve(t=RR(Object(i),!0)).call(t,function(o){Mg(e,o,i[o])}):ea?Rg(e,ea(i)):Ve(n=RR(Object(i))).call(n,function(o){Ag(e,o,da(i,o))})}return e}var Br=function(){function e(r,t,n,i,o,a){q(this,e),this.options=Ko(o),this.globalOptions=o,this.defaultOptions=a,this.body=t,this.edges=[],this.id=void 0,this.imagelist=n,this.grouplist=i,this.x=void 0,this.y=void 0,this.baseSize=this.options.size,this.baseFontSize=this.options.font.size,this.predefinedPosition=!1,this.selected=!1,this.hover=!1,this.labelModule=new mz(this.body,this.options,!1),this.setOptions(r)}return Y(e,[{key:"attachEdge",value:function(t){var n;Ie(n=this.edges).call(n,t)===-1&&this.edges.push(t)}},{key:"detachEdge",value:function(t){var n,i=Ie(n=this.edges).call(n,t);if(i!=-1){var o;Hi(o=this.edges).call(o,i,1)}}},{key:"setOptions",value:function(t){var n=this.options.shape;if(t){if(typeof t.color<"u"&&(this._localColor=t.color),t.id!==void 0&&(this.id=t.id),this.id===void 0)throw new Error("Node must have an id");e.checkMass(t,this.id),t.x!==void 0&&(t.x===null?(this.x=void 0,this.predefinedPosition=!1):(this.x=Bn(t.x),this.predefinedPosition=!0)),t.y!==void 0&&(t.y===null?(this.y=void 0,this.predefinedPosition=!1):(this.y=Bn(t.y),this.predefinedPosition=!0)),t.size!==void 0&&(this.baseSize=t.size),t.value!==void 0&&(t.value=pz(t.value)),e.parseOptions(this.options,t,!0,this.globalOptions,this.grouplist);var i=[t,this.options,this.defaultOptions];return this.chooser=LE("node",i),this._load_images(),this.updateLabelModule(t),t.opacity!==void 0&&e.checkOpacity(t.opacity)&&(this.options.opacity=t.opacity),this.updateShape(n),t.hidden!==void 0||t.physics!==void 0}}},{key:"_load_images",value:function(){if((this.options.shape==="circularImage"||this.options.shape==="image")&&this.options.image===void 0)throw new Error("Option image must be defined for node type '"+this.options.shape+"'");if(this.options.image!==void 0){if(this.imagelist===void 0)throw new Error("Internal Error: No images provided");if(typeof this.options.image=="string")this.imageObj=this.imagelist.load(this.options.image,this.options.brokenImage,this.id);else{if(this.options.image.unselected===void 0)throw new Error("No unselected image provided");this.imageObj=this.imagelist.load(this.options.image.unselected,this.options.brokenImage,this.id),this.options.image.selected!==void 0?this.imageObjAlt=this.imagelist.load(this.options.image.selected,this.options.brokenImage,this.id):this.imageObjAlt=void 0}}}},{key:"getFormattingValues",value:function(){var t={color:this.options.color.background,opacity:this.options.opacity,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,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};if(this.selected||this.hover?this.chooser===!0?this.selected?(this.options.borderWidthSelected!=null?t.borderWidth=this.options.borderWidthSelected:t.borderWidth*=2,t.color=this.options.color.highlight.background,t.borderColor=this.options.color.highlight.border,t.shadow=this.options.shadow.enabled):this.hover&&(t.color=this.options.color.hover.background,t.borderColor=this.options.color.hover.border,t.shadow=this.options.shadow.enabled):typeof this.chooser=="function"&&(this.chooser(t,this.options.id,this.selected,this.hover),t.shadow===!1&&(t.shadowColor!==this.options.shadow.color||t.shadowSize!==this.options.shadow.size||t.shadowX!==this.options.shadow.x||t.shadowY!==this.options.shadow.y)&&(t.shadow=!0)):t.shadow=this.options.shadow.enabled,this.options.opacity!==void 0){var n=this.options.opacity;t.borderColor=dn(t.borderColor,n),t.color=dn(t.color,n),t.shadowColor=dn(t.shadowColor,n)}return t}},{key:"updateLabelModule",value:function(t){(this.options.label===void 0||this.options.label===null)&&(this.options.label=""),e.updateGroupOptions(this.options,AR(AR({},t),{},{color:t&&t.color||this._localColor||void 0}),this.grouplist);var n=this.grouplist.get(this.options.group,!1),i=[t,this.options,n,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,i),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateShape",value:function(t){if(t===this.options.shape&&this.shape)this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt);else switch(this.options.shape){case"box":this.shape=new fMe(this.options,this.body,this.labelModule);break;case"circle":this.shape=new gMe(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new $Me(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"custom":this.shape=new PMe(this.options,this.body,this.labelModule,this.options.ctxRenderer);break;case"database":this.shape=new xMe(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new RMe(this.options,this.body,this.labelModule);break;case"dot":this.shape=new NMe(this.options,this.body,this.labelModule);break;case"ellipse":this.shape=new IR(this.options,this.body,this.labelModule);break;case"icon":this.shape=new BMe(this.options,this.body,this.labelModule);break;case"image":this.shape=new WMe(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new KMe(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new YMe(this.options,this.body,this.labelModule);break;case"star":this.shape=new ZMe(this.options,this.body,this.labelModule);break;case"text":this.shape=new tNe(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new iNe(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new sNe(this.options,this.body,this.labelModule);break;default:this.shape=new IR(this.options,this.body,this.labelModule);break}this.needsRefresh()}},{key:"select",value:function(){this.selected=!0,this.needsRefresh()}},{key:"unselect",value:function(){this.selected=!1,this.needsRefresh()}},{key:"needsRefresh",value:function(){this.shape.refreshNeeded=!0}},{key:"getTitle",value:function(){return this.options.title}},{key:"distanceToBorder",value:function(t,n){return this.shape.distanceToBorder(t,n)}},{key:"isFixed",value:function(){return this.options.fixed.x&&this.options.fixed.y}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"getLabelSize",value:function(){return this.labelModule.size()}},{key:"setValueRange",value:function(t,n,i){if(this.options.value!==void 0){var o=this.options.scaling.customScalingFunction(t,n,i,this.options.value),a=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*s}this.options.size=this.options.scaling.min+o*a}else this.options.size=this.baseSize,this.options.font.size=this.baseFontSize;this.updateLabelModule()}},{key:"draw",value:function(t){var n=this.getFormattingValues();return this.shape.draw(t,this.x,this.y,this.selected,this.hover,n)||{}}},{key:"updateBoundingBox",value:function(t){this.shape.updateBoundingBox(this.x,this.y,t)}},{key:"resize",value:function(t){var n=this.getFormattingValues();this.shape.resize(t,this.selected,this.hover,n)}},{key:"getItemsOnPoint",value:function(t){var n=[];return this.labelModule.visible()&&fw(this.labelModule.getSize(),t)&&n.push({nodeId:this.id,labelId:0}),fw(this.shape.boundingBox,t)&&n.push({nodeId:this.id}),n}},{key:"isOverlappingWith",value:function(t){return this.shape.left<t.right&&this.shape.left+this.shape.width>t.left&&this.shape.top<t.bottom&&this.shape.top+this.shape.height>t.top}},{key:"isBoundingBoxOverlappingWith",value:function(t){return this.shape.boundingBox.left<t.right&&this.shape.boundingBox.right>t.left&&this.shape.boundingBox.top<t.bottom&&this.shape.boundingBox.bottom>t.top}}],[{key:"checkOpacity",value:function(t){return 0<=t&&t<=1}},{key:"checkCoordinateOrigin",value:function(t){return t===void 0||t==="center"||t==="top-left"}},{key:"updateGroupOptions",value:function(t,n,i){var o;if(i!==void 0){var a=t.group;if(n!==void 0&&n.group!==void 0&&a!==n.group)throw new Error("updateGroupOptions: group values in options don't match.");var s=typeof a=="number"||typeof a=="string"&&a!="";if(s){var l=i.get(a);l.opacity!==void 0&&n.opacity===void 0&&(e.checkOpacity(l.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+l.opacity),l.opacity=void 0));var u=Pr(o=oAe(n)).call(o,function(c){return n[c]!=null});u.push("font"),Hp(u,t,l),t.color=sw(t.color)}}}},{key:"parseOptions",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0,s=["color","fixed","shadow"];if(Hp(s,t,n,i),e.checkMass(n),t.opacity!==void 0&&(e.checkOpacity(t.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity),t.opacity=void 0)),n.opacity!==void 0&&(e.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&&!e.checkCoordinateOrigin(n.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+n.shapeProperties.coordinateOrigin),ln(t,n,"shadow",o),n.color!==void 0&&n.color!==null){var l=sw(n.color);H5(t.color,l)}else i===!0&&n.color===null&&(t.color=Ko(o.color));n.fixed!==void 0&&n.fixed!==null&&(typeof n.fixed=="boolean"?(t.fixed.x=n.fixed,t.fixed.y=n.fixed):(n.fixed.x!==void 0&&typeof n.fixed.x=="boolean"&&(t.fixed.x=n.fixed.x),n.fixed.y!==void 0&&typeof n.fixed.y=="boolean"&&(t.fixed.y=n.fixed.y))),i===!0&&n.font===null&&(t.font=Ko(o.font)),e.updateGroupOptions(t,n,a),n.scaling!==void 0&&ln(t.scaling,n.scaling,"label",o.scaling)}},{key:"checkMass",value:function(t,n){if(t.mass!==void 0&&t.mass<=0){var i="";n!==void 0&&(i=" in node id: "+n),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",K5),t.mass=1}}}]),e}();function lNe(e,r){var t=typeof ca<"u"&&Ps(e)||e["@@iterator"];if(!t){if(Be(e)||(t=uNe(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
151
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}function uNe(e,r){var t;if(e){if(typeof e=="string")return MR(e,r);var n=Ut(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Os(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MR(e,r)}}function MR(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var cNe=function(){function e(r,t,n,i){var o,a=this;if(q(this,e),this.body=r,this.images=t,this.groups=n,this.layoutEngine=i,this.body.functions.createNode=V(o=this.create).call(o,this),this.nodesListeners={add:function(l,u){a.add(u.items)},update:function(l,u){a.update(u.items,u.data,u.oldData)},remove:function(l,u){a.remove(u.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:void 0,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},opacity:void 0,fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,imagePadding:{top:0,right:0,bottom:0,left:0},label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(l,u,c,d){if(u===l)return .5;var f=1/(u-l);return Math.max(0,(d-l)*f)}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1,coordinateOrigin:"center"},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=Ko(this.defaultOptions),this.bindEventListeners()}return Y(e,[{key:"bindEventListeners",value:function(){var t,n,i=this;this.body.emitter.on("refreshNodes",V(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",V(n=this.refresh).call(n,this)),this.body.emitter.on("destroy",function(){be(i.nodesListeners,function(o,a){i.body.data.nodes&&i.body.data.nodes.off(a,o)}),delete i.body.functions.createNode,delete i.nodesListeners.add,delete i.nodesListeners.update,delete i.nodesListeners.remove,delete i.nodesListeners})}},{key:"setOptions",value:function(t){if(t!==void 0){if(Br.parseOptions(this.options,t),t.opacity!==void 0&&(dw(t.opacity)||!Pa(t.opacity)||t.opacity<0||t.opacity>1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity):this.options.opacity=t.opacity),t.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 t.font<"u"||typeof t.widthConstraint<"u"||typeof t.heightConstraint<"u")for(var i=0,o=ut(this.body.nodes);i<o.length;i++){var a=o[i];this.body.nodes[a].updateLabelModule(),this.body.nodes[a].needsRefresh()}if(t.size!==void 0)for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.body.nodes[s].needsRefresh();(t.hidden!==void 0||t.physics!==void 0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.data.nodes;if(mj("id",t))this.body.data.nodes=t;else if(Be(t))this.body.data.nodes=new hu,this.body.data.nodes.add(t);else if(!t)this.body.data.nodes=new hu;else throw new TypeError("Array or DataSet expected");if(i&&be(this.nodesListeners,function(s,l){i.off(l,s)}),this.body.nodes={},this.body.data.nodes){var o=this;be(this.nodesListeners,function(s,l){o.body.data.nodes.on(l,s)});var a=this.body.data.nodes.getIds();this.add(a,!0)}n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i,o=[],a=0;a<t.length;a++){i=t[a];var s=this.body.data.nodes.get(i),l=this.create(s);o.push(l),this.body.nodes[i]=l}this.layoutEngine.positionInitially(o),n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(t,n,i){for(var o=this.body.nodes,a=!1,s=0;s<t.length;s++){var l=t[s],u=o[l],c=n[s];u!==void 0?u.setOptions(c)&&(a=!0):(a=!0,u=this.create(c),o[l]=u)}!a&&i!==void 0&&(a=e2e(n).call(n,function(d,f){var h=i[f];return h&&h.level!==d.level})),a===!0?this.body.emitter.emit("_dataChanged"):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(t){for(var n=this.body.nodes,i=0;i<t.length;i++){var o=t[i];delete n[o]}this.body.emitter.emit("_dataChanged")}},{key:"create",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br;return new n(t,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;be(this.body.nodes,function(i,o){var a=t.body.data.nodes.get(o);a!==void 0&&(n===!0&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(a))})}},{key:"getPositions",value:function(t){var n={};if(t!==void 0){if(Be(t)===!0){for(var i=0;i<t.length;i++)if(this.body.nodes[t[i]]!==void 0){var o=this.body.nodes[t[i]];n[t[i]]={x:Math.round(o.x),y:Math.round(o.y)}}}else if(this.body.nodes[t]!==void 0){var a=this.body.nodes[t];n[t]={x:Math.round(a.x),y:Math.round(a.y)}}}else for(var s=0;s<this.body.nodeIndices.length;s++){var l=this.body.nodes[this.body.nodeIndices[s]];n[this.body.nodeIndices[s]]={x:Math.round(l.x),y:Math.round(l.y)}}return n}},{key:"getPosition",value:function(t){if(t==null)throw new TypeError("No id was specified for getPosition method.");if(this.body.nodes[t]==null)throw new ReferenceError("NodeId provided for getPosition does not exist. Provided: ".concat(t));return{x:Math.round(this.body.nodes[t].x),y:Math.round(this.body.nodes[t].y)}}},{key:"storePositions",value:function(){var t=[],n=this.body.data.nodes.getDataSet(),i=lNe(n.get()),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=a.id,l=this.body.nodes[s],u=Math.round(l.x),c=Math.round(l.y);(a.x!==u||a.y!==c)&&t.push({id:s,x:u,y:c})}}catch(d){i.e(d)}finally{i.f()}n.update(t)}},{key:"getBoundingBox",value:function(t){if(this.body.nodes[t]!==void 0)return this.body.nodes[t].shape.boundingBox}},{key:"getConnectedNodes",value:function(t,n){var i=[];if(this.body.nodes[t]!==void 0)for(var o=this.body.nodes[t],a={},s=0;s<o.edges.length;s++){var l=o.edges[s];n!=="to"&&l.toId==o.id?a[l.fromId]===void 0&&(i.push(l.fromId),a[l.fromId]=!0):n!=="from"&&l.fromId==o.id&&a[l.toId]===void 0&&(i.push(l.toId),a[l.toId]=!0)}return i}},{key:"getConnectedEdges",value:function(t){var n=[];if(this.body.nodes[t]!==void 0)for(var i=this.body.nodes[t],o=0;o<i.edges.length;o++)n.push(i.edges[o].id);else console.error("NodeId provided for getConnectedEdges does not exist. Provided: ",t);return n}},{key:"moveNode",value:function(t,n,i){var o=this;this.body.nodes[t]!==void 0?(this.body.nodes[t].x=Number(n),this.body.nodes[t].y=Number(i),yi(function(){o.body.emitter.emit("startSimulation")},0)):console.error("Node id supplied to moveNode does not exist. Provided: ",t)}}]),e}(),NR=Lt,dNe=function(e){return e!==void 0&&(NR(e,"value")||NR(e,"writable"))},fNe=he,hNe=Jr,vNe=Ft,pNe=tn,yNe=dNe,gNe=zu,mNe=gg;function Sz(e,r){var t=arguments.length<3?e:arguments[2],n,i;if(pNe(e)===t)return e[r];if(n=gNe.f(e,r),n)return yNe(n)?n.value:n.get===void 0?void 0:hNe(n.get,t);if(vNe(i=mNe(e)))return Sz(i,r,t)}fNe({target:"Reflect",stat:!0},{get:Sz});var bNe=Ae,$Ne=bNe.Reflect.get,wNe=$Ne,SNe=wNe,_Ne=SNe,ENe=_Ne,ONe=ENe,PNe=ONe,CNe=PNe,DR=le(CNe),TNe=dz,xNe=TNe,kNe=xNe,INe=kNe,RNe=INe,ANe=le(RNe);function MNe(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=oe(e),e!==null););return e}function Fv(){if(typeof Reflect<"u"&&DR){var e;Fv=BE(e=DR).call(e)}else Fv=function(t,n,i){var o=MNe(t,n);if(o){var a=ANe(o,n);return a.get?a.get.call(arguments.length<3?t:i):a.value}};return Fv.apply(this,arguments)}var NNe=he,FR=Math.hypot,DNe=Math.abs,FNe=Math.sqrt,LNe=!!FR&&FR(1/0,NaN)!==1/0;NNe({target:"Math",stat:!0,arity:2,forced:LNe},{hypot:function(r,t){for(var n=0,i=0,o=arguments.length,a=0,s,l;i<o;)s=DNe(arguments[i++]),a<s?(l=a/s,n=n*l*l+1,a=s):s>0?(l=s/a,n+=l*l):n+=s;return a===1/0?1/0:a*FNe(n)}});var jNe=Ae,BNe=jNe.Math.hypot,zNe=BNe,HNe=zNe,WNe=HNe,UNe=le(WNe);function _z(e){var r=VNe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function VNe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var gt=function(){function e(){q(this,e)}return Y(e,null,[{key:"transform",value:function(t,n){Be(t)||(t=[t]);for(var i=n.point.x,o=n.point.y,a=n.angle,s=n.length,l=0;l<t.length;++l){var u=t[l],c=u.x*Math.cos(a)-u.y*Math.sin(a),d=u.x*Math.sin(a)+u.y*Math.cos(a);u.x=i+s*c,u.y=o+s*d}}},{key:"drawPath",value:function(t,n){t.beginPath(),t.moveTo(n[0].x,n[0].y);for(var i=1;i<n.length;++i)t.lineTo(n[i].x,n[i].y);t.closePath()}}]),e}(),KNe=function(e){Ne(t,e);var r=_z(t);function t(){return q(this,t),r.apply(this,arguments)}return Y(t,null,[{key:"draw",value:function(i,o){if(o.image){i.save(),i.translate(o.point.x,o.point.y),i.rotate(Math.PI/2+o.angle);var a=o.imageWidth!=null?o.imageWidth:o.image.width,s=o.imageHeight!=null?o.imageHeight:o.image.height;o.image.drawImageAtPosition(i,1,-a/2,0,a,s),i.restore()}return!1}}]),t}(gt),GNe=function(e){Ne(t,e);var r=_z(t);function t(){return q(this,t),r.apply(this,arguments)}return Y(t,null,[{key:"draw",value:function(i,o){var a=[{x:0,y:0},{x:-1,y:.3},{x:-.9,y:0},{x:-1,y:-.3}];return gt.transform(a,o),gt.drawPath(i,a),!0}}]),t}(gt),qNe=function(){function e(){q(this,e)}return Y(e,null,[{key:"draw",value:function(t,n){var i=[{x:-1,y:0},{x:0,y:.3},{x:-.4,y:0},{x:0,y:-.3}];return gt.transform(i,n),gt.drawPath(t,i),!0}}]),e}(),YNe=function(){function e(){q(this,e)}return Y(e,null,[{key:"draw",value:function(t,n){var i={x:-.4,y:0};gt.transform(i,n),t.strokeStyle=t.fillStyle,t.fillStyle="rgba(0, 0, 0, 0)";var o=Math.PI,a=n.angle-o/2,s=n.angle+o/2;return t.beginPath(),t.arc(i.x,i.y,n.length*.4,a,s,!1),t.stroke(),!0}}]),e}(),XNe=function(){function e(){q(this,e)}return Y(e,null,[{key:"draw",value:function(t,n){var i={x:-.3,y:0};gt.transform(i,n),t.strokeStyle=t.fillStyle,t.fillStyle="rgba(0, 0, 0, 0)";var o=Math.PI,a=n.angle+o/2,s=n.angle+3*o/2;return t.beginPath(),t.arc(i.x,i.y,n.length*.4,a,s,!1),t.stroke(),!0}}]),e}(),QNe=function(){function e(){q(this,e)}return Y(e,null,[{key:"draw",value:function(t,n){var i=[{x:.02,y:0},{x:-1,y:.3},{x:-1,y:-.3}];return gt.transform(i,n),gt.drawPath(t,i),!0}}]),e}(),ZNe=function(){function e(){q(this,e)}return Y(e,null,[{key:"draw",value:function(t,n){var i=[{x:0,y:.3},{x:0,y:-.3},{x:-1,y:0}];return gt.transform(i,n),gt.drawPath(t,i),!0}}]),e}(),JNe=function(){function e(){q(this,e)}return Y(e,null,[{key:"draw",value:function(t,n){var i={x:-.4,y:0};return gt.transform(i,n),iE(t,i.x,i.y,n.length*.4),!0}}]),e}(),eDe=function(){function e(){q(this,e)}return Y(e,null,[{key:"draw",value:function(t,n){var i=[{x:0,y:.5},{x:0,y:-.5},{x:-.15,y:-.5},{x:-.15,y:.5}];return gt.transform(i,n),gt.drawPath(t,i),!0}}]),e}(),tDe=function(){function e(){q(this,e)}return Y(e,null,[{key:"draw",value:function(t,n){var i=[{x:0,y:.3},{x:0,y:-.3},{x:-.6,y:-.3},{x:-.6,y:.3}];return gt.transform(i,n),gt.drawPath(t,i),!0}}]),e}(),rDe=function(){function e(){q(this,e)}return Y(e,null,[{key:"draw",value:function(t,n){var i=[{x:0,y:0},{x:-.5,y:-.3},{x:-1,y:0},{x:-.5,y:.3}];return gt.transform(i,n),gt.drawPath(t,i),!0}}]),e}(),nDe=function(){function e(){q(this,e)}return Y(e,null,[{key:"draw",value:function(t,n){var i=[{x:-1,y:.3},{x:-.5,y:0},{x:-1,y:-.3},{x:0,y:0}];return gt.transform(i,n),gt.drawPath(t,i),!0}}]),e}(),Ez=function(){function e(){q(this,e)}return Y(e,null,[{key:"draw",value:function(t,n){var i;switch(n.type&&(i=n.type.toLowerCase()),i){case"image":return KNe.draw(t,n);case"circle":return JNe.draw(t,n);case"box":return tDe.draw(t,n);case"crow":return qNe.draw(t,n);case"curve":return YNe.draw(t,n);case"diamond":return rDe.draw(t,n);case"inv_curve":return XNe.draw(t,n);case"triangle":return QNe.draw(t,n);case"inv_triangle":return ZNe.draw(t,n);case"bar":return eDe.draw(t,n);case"vee":return nDe.draw(t,n);case"arrow":default:return GNe.draw(t,n)}}}]),e}();function LR(e,r){var t=ut(e);if(Jo){var n=Jo(e);r&&(n=Pr(n).call(n,function(i){return da(e,i).enumerable})),t.push.apply(t,n)}return t}function jR(e){for(var r=1;r<arguments.length;r++){var t,n,i=arguments[r]!=null?arguments[r]:{};r%2?Ve(t=LR(Object(i),!0)).call(t,function(o){Mg(e,o,i[o])}):ea?Rg(e,ea(i)):Ve(n=LR(Object(i))).call(n,function(o){Ag(e,o,da(i,o))})}return e}var Oz=function(){function e(r,t,n){q(this,e),this._body=t,this._labelModule=n,this.color={},this.colorDirty=!0,this.hoverWidth=1.5,this.selectionWidth=2,this.setOptions(r),this.fromPoint=this.from,this.toPoint=this.to}return Y(e,[{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to]}},{key:"cleanup",value:function(){return!1}},{key:"setOptions",value:function(t){this.options=t,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.id=this.options.id}},{key:"drawLine",value:function(t,n,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();t.strokeStyle=this.getColor(t,n),t.lineWidth=n.width,n.dashes!==!1?this._drawDashedLine(t,n,a):this._drawLine(t,n,a)}},{key:"_drawLine",value:function(t,n,i,o,a){if(this.from!=this.to)this._line(t,n,i,o,a);else{var s=this._getCircleData(t),l=ct(s,3),u=l[0],c=l[1],d=l[2];this._circle(t,n,u,c,d)}}},{key:"_drawDashedLine",value:function(t,n,i,o,a){t.lineCap="round";var s=Be(n.dashes)?n.dashes:[5,5];if(t.setLineDash!==void 0){if(t.save(),t.setLineDash(s),t.lineDashOffset=0,this.from!=this.to)this._line(t,n,i);else{var l=this._getCircleData(t),u=ct(l,3),c=u[0],d=u[1],f=u[2];this._circle(t,n,c,d,f)}t.setLineDash([0]),t.lineDashOffset=0,t.restore()}else{if(this.from!=this.to)zj(t,this.from.x,this.from.y,this.to.x,this.to.y,s);else{var h=this._getCircleData(t),v=ct(h,3),p=v[0],b=v[1],y=v[2];this._circle(t,n,p,b,y)}this.enableShadow(t,n),t.stroke(),this.disableShadow(t,n)}}},{key:"findBorderPosition",value:function(t,n,i){return this.from!=this.to?this._findBorderPosition(t,n,i):this._findBorderPositionCircle(t,n,i)}},{key:"findBorderPositions",value:function(t){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,t),to:this._findBorderPosition(this.to,t)};var n,i=Ut(n=this._getCircleData(t)).call(n,0,2),o=ct(i,2),a=o[0],s=o[1];return{from:this._findBorderPositionCircle(this.from,t,{x:a,y:s,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,t,{x:a,y:s,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(t){var n=this.options.selfReference.size;t!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(t);var i=yz(t,this.options.selfReference.angle,n,this.from);return[i.x,i.y,n]}},{key:"_pointOnCircle",value:function(t,n,i,o){var a=o*2*Math.PI;return{x:t+i*Math.cos(a),y:n-i*Math.sin(a)}}},{key:"_findBorderPositionCircle",value:function(t,n,i){var o=i.x,a=i.y,s=i.low,l=i.high,u=i.direction,c=10,d=this.options.selfReference.size,f=.05,h,v=(s+l)*.5,p=0;this.options.arrowStrikethrough===!0&&(u===-1?p=this.options.endPointOffset.from:u===1&&(p=this.options.endPointOffset.to));var b=0;do{v=(s+l)*.5,h=this._pointOnCircle(o,a,d,v);var y=Math.atan2(t.y-h.y,t.x-h.x),g=t.distanceToBorder(n,y)+p,m=Math.sqrt(Math.pow(h.x-t.x,2)+Math.pow(h.y-t.y,2)),$=g-m;if(Math.abs($)<f)break;$>0?u>0?s=v:l=v:u>0?l=v:s=v,++b}while(s<=l&&b<c);return jR(jR({},h),{},{t:v})}},{key:"getLineWidth",value:function(t,n){return t===!0?Math.max(this.selectionWidth,.3/this._body.view.scale):n===!0?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:"getColor",value:function(t,n){if(n.inheritsColor!==!1){if(n.inheritsColor==="both"&&this.from.id!==this.to.id){var i=t.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),o=this.from.options.color.highlight.border,a=this.to.options.color.highlight.border;return this.from.selected===!1&&this.to.selected===!1?(o=dn(this.from.options.color.border,n.opacity),a=dn(this.to.options.color.border,n.opacity)):this.from.selected===!0&&this.to.selected===!1?a=this.to.options.color.border:this.from.selected===!1&&this.to.selected===!0&&(o=this.from.options.color.border),i.addColorStop(0,o),i.addColorStop(1,a),i}return n.inheritsColor==="to"?dn(this.to.options.color.border,n.opacity):dn(this.from.options.color.border,n.opacity)}else return dn(n.color,n.opacity)}},{key:"_circle",value:function(t,n,i,o,a){this.enableShadow(t,n);var s=0,l=Math.PI*2;if(!this.options.selfReference.renderBehindTheNode){var u=this.options.selfReference.angle,c=this.options.selfReference.angle+Math.PI,d=this._findBorderPositionCircle(this.from,t,{x:i,y:o,low:u,high:c,direction:-1}),f=this._findBorderPositionCircle(this.from,t,{x:i,y:o,low:u,high:c,direction:1});s=Math.atan2(d.y-o,d.x-i),l=Math.atan2(f.y-o,f.x-i)}t.beginPath(),t.arc(i,o,a,s,l,!1),t.stroke(),this.disableShadow(t,n)}},{key:"getDistanceToEdge",value:function(t,n,i,o,a,s){if(this.from!=this.to)return this._getDistanceToEdge(t,n,i,o,a,s);var l=this._getCircleData(void 0),u=ct(l,3),c=u[0],d=u[1],f=u[2],h=c-a,v=d-s;return Math.abs(Math.sqrt(h*h+v*v)-f)}},{key:"_getDistanceToLine",value:function(t,n,i,o,a,s){var l=i-t,u=o-n,c=l*l+u*u,d=((a-t)*l+(s-n)*u)/c;d>1?d=1:d<0&&(d=0);var f=t+d*l,h=n+d*u,v=f-a,p=h-s;return Math.sqrt(v*v+p*p)}},{key:"getArrowData",value:function(t,n,i,o,a,s){var l,u,c,d,f,h,v,p=s.width;n==="from"?(c=this.from,d=this.to,f=s.fromArrowScale<0,h=Math.abs(s.fromArrowScale),v=s.fromArrowType):n==="to"?(c=this.to,d=this.from,f=s.toArrowScale<0,h=Math.abs(s.toArrowScale),v=s.toArrowType):(c=this.to,d=this.from,f=s.middleArrowScale<0,h=Math.abs(s.middleArrowScale),v=s.middleArrowType);var b=15*h+3*p;if(c!=d){var y=UNe(c.x-d.x,c.y-d.y),g=b/y;if(n!=="middle")if(this.options.smooth.enabled===!0){var m=this._findBorderPosition(c,t,{via:i}),$=this.getPoint(m.t+g*(n==="from"?1:-1),i);l=Math.atan2(m.y-$.y,m.x-$.x),u=m}else l=Math.atan2(c.y-d.y,c.x-d.x),u=this._findBorderPosition(c,t);else{var w=(f?-g:g)/2,S=this.getPoint(.5+w,i),P=this.getPoint(.5-w,i);l=Math.atan2(S.y-P.y,S.x-P.x),u=this.getPoint(.5,i)}}else{var O=this._getCircleData(t),C=ct(O,3),k=C[0],R=C[1],D=C[2];if(n==="from"){var z=this.options.selfReference.angle,X=this.options.selfReference.angle+Math.PI,Z=this._findBorderPositionCircle(this.from,t,{x:k,y:R,low:z,high:X,direction:-1});l=Z.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,u=Z}else if(n==="to"){var F=this.options.selfReference.angle,ee=this.options.selfReference.angle+Math.PI,x=this._findBorderPositionCircle(this.from,t,{x:k,y:R,low:F,high:ee,direction:1});l=x.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,u=x}else{var L=this.options.selfReference.angle/(2*Math.PI);u=this._pointOnCircle(k,R,D,L),l=L*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var j=u.x-b*.9*Math.cos(l),Q=u.y-b*.9*Math.sin(l),K={x:j,y:Q};return{point:u,core:K,angle:l,length:b,type:v}}},{key:"drawArrowHead",value:function(t,n,i,o,a){t.strokeStyle=this.getColor(t,n),t.fillStyle=t.strokeStyle,t.lineWidth=n.width;var s=Ez.draw(t,a);s&&(this.enableShadow(t,n),Kf(t).call(t),this.disableShadow(t,n))}},{key:"enableShadow",value:function(t,n){n.shadow===!0&&(t.shadowColor=n.shadowColor,t.shadowBlur=n.shadowSize,t.shadowOffsetX=n.shadowX,t.shadowOffsetY=n.shadowY)}},{key:"disableShadow",value:function(t,n){n.shadow===!0&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"drawBackground",value:function(t,n){if(n.background!==!1){var i={strokeStyle:t.strokeStyle,lineWidth:t.lineWidth,dashes:t.dashes};t.strokeStyle=n.backgroundColor,t.lineWidth=n.backgroundSize,this.setStrokeDashed(t,n.backgroundDashes),t.stroke(),t.strokeStyle=i.strokeStyle,t.lineWidth=i.lineWidth,t.dashes=i.dashes,this.setStrokeDashed(t,n.dashes)}}},{key:"setStrokeDashed",value:function(t,n){if(n!==!1)if(t.setLineDash!==void 0){var i=Be(n)?n:[5,5];t.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else t.setLineDash!==void 0?t.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),e}();function BR(e,r){var t=ut(e);if(Jo){var n=Jo(e);r&&(n=Pr(n).call(n,function(i){return da(e,i).enumerable})),t.push.apply(t,n)}return t}function zR(e){for(var r=1;r<arguments.length;r++){var t,n,i=arguments[r]!=null?arguments[r]:{};r%2?Ve(t=BR(Object(i),!0)).call(t,function(o){Mg(e,o,i[o])}):ea?Rg(e,ea(i)):Ve(n=BR(Object(i))).call(n,function(o){Ag(e,o,da(i,o))})}return e}function iDe(e){var r=oDe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function oDe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var HE=function(e){Ne(t,e);var r=iDe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"_findBorderPositionBezier",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),s=10,l=.2,u=!1,c=1,d=0,f=this.to,h,v,p=this.options.endPointOffset?this.options.endPointOffset.to:0;i.id===this.from.id&&(f=this.from,u=!0,p=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(p=0);var b=0;do{v=(d+c)*.5,h=this.getPoint(v,a);var y=Math.atan2(f.y-h.y,f.x-h.x),g=f.distanceToBorder(o,y)+p,m=Math.sqrt(Math.pow(h.x-f.x,2)+Math.pow(h.y-f.y,2)),$=g-m;if(Math.abs($)<l)break;$<0?u===!1?d=v:c=v:u===!1?c=v:d=v,++b}while(d<=c&&b<s);return zR(zR({},h),{},{t:v})}},{key:"_getDistanceToBezierEdge",value:function(i,o,a,s,l,u,c){var d=1e9,f,h,v,p,b,y=i,g=o;for(h=1;h<10;h++)v=.1*h,p=Math.pow(1-v,2)*i+2*v*(1-v)*c.x+Math.pow(v,2)*a,b=Math.pow(1-v,2)*o+2*v*(1-v)*c.y+Math.pow(v,2)*s,h>0&&(f=this._getDistanceToLine(y,g,p,b,l,u),d=f<d?f:d),y=p,g=b;return d}},{key:"_bezierCurve",value:function(i,o,a,s){i.beginPath(),i.moveTo(this.fromPoint.x,this.fromPoint.y),a!=null&&a.x!=null?s!=null&&s.x!=null?i.bezierCurveTo(a.x,a.y,s.x,s.y,this.toPoint.x,this.toPoint.y):i.quadraticCurveTo(a.x,a.y,this.toPoint.x,this.toPoint.y):i.lineTo(this.toPoint.x,this.toPoint.y),this.drawBackground(i,o),this.enableShadow(i,o),i.stroke(),this.disableShadow(i,o)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}}]),t}(Oz);function aDe(e){var r=sDe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function sDe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var HR=function(e){Ne(t,e);var r=aDe(t);function t(n,i,o){var a;return q(this,t),a=r.call(this,n,i,o),a.via=a.via,a._boundFunction=function(){a.positionBezierNode()},a._body.emitter.on("_repositionBezierNodes",a._boundFunction),a}return Y(t,[{key:"setOptions",value:function(i){Fv(oe(t.prototype),"setOptions",this).call(this,i);var o=!1;this.options.physics!==i.physics&&(o=!0),this.options=i,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 i="edgeId:"+this.id,o=this._body.functions.createNode({id:i,shape:"circle",physics:!0,hidden:!0});this._body.nodes[i]=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(i,o,a){this._bezierCurve(i,o,a)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var a=this._getCircleData(),s=ct(a,3),l=s[0],u=s[1],c=s[2],d=2*Math.PI*(1-i);return{x:l+c*Math.sin(d),y:u+c-c*(1-Math.cos(d))}}else return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*o.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*o.y+Math.pow(i,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o,this.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,u){return this._getDistanceToBezierEdge(i,o,a,s,l,u,this.via)}}]),t}(HE);function lDe(e){var r=uDe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function uDe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var WR=function(e){Ne(t,e);var r=lDe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var i=this.options.smooth.roundness,o=this.options.smooth.type,a=Math.abs(this.from.x-this.to.x),s=Math.abs(this.from.y-this.to.y);if(o==="discrete"||o==="diagonalCross"){var l,u;a<=s?l=u=i*s:l=u=i*a,this.from.x>this.to.x&&(l=-l),this.from.y>=this.to.y&&(u=-u);var c=this.from.x+l,d=this.from.y+u;return o==="discrete"&&(a<=s?c=a<i*s?this.from.x:c:d=s<i*a?this.from.y:d),{x:c,y:d}}else if(o==="straightCross"){var f=(1-i)*a,h=(1-i)*s;return a<=s?(f=0,this.from.y<this.to.y&&(h=-h)):(this.from.x<this.to.x&&(f=-f),h=0),{x:this.to.x+f,y:this.to.y+h}}else if(o==="horizontal"){var v=(1-i)*a;return this.from.x<this.to.x&&(v=-v),{x:this.to.x+v,y:this.from.y}}else if(o==="vertical"){var p=(1-i)*s;return this.from.y<this.to.y&&(p=-p),{x:this.from.x,y:this.to.y+p}}else if(o==="curvedCW"){a=this.to.x-this.from.x,s=this.from.y-this.to.y;var b=Math.sqrt(a*a+s*s),y=Math.PI,g=Math.atan2(s,a),m=(g+(i*.5+.5)*y)%(2*y);return{x:this.from.x+(i*.5+.5)*b*Math.sin(m),y:this.from.y+(i*.5+.5)*b*Math.cos(m)}}else if(o==="curvedCCW"){a=this.to.x-this.from.x,s=this.from.y-this.to.y;var $=Math.sqrt(a*a+s*s),w=Math.PI,S=Math.atan2(s,a),P=(S+(-i*.5+.5)*w)%(2*w);return{x:this.from.x+(i*.5+.5)*$*Math.sin(P),y:this.from.y+(i*.5+.5)*$*Math.cos(P)}}else{var O,C;a<=s?O=C=i*s:O=C=i*a,this.from.x>this.to.x&&(O=-O),this.from.y>=this.to.y&&(C=-C);var k=this.from.x+O,R=this.from.y+C;return a<=s?this.from.x<=this.to.x?k=this.to.x<k?this.to.x:k:k=this.to.x>k?this.to.x:k:this.from.y>=this.to.y?R=this.to.y>R?this.to.y:R:R=this.to.y<R?this.to.y:R,{x:k,y:R}}}},{key:"_findBorderPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(i,o,a.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,u){var c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(i,o,a,s,l,u,c)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=i,s=Math.pow(1-a,2)*this.fromPoint.x+2*a*(1-a)*o.x+Math.pow(a,2)*this.toPoint.x,l=Math.pow(1-a,2)*this.fromPoint.y+2*a*(1-a)*o.y+Math.pow(a,2)*this.toPoint.y;return{x:s,y:l}}}]),t}(HE);function cDe(e){var r=dDe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function dDe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var fDe=function(e){Ne(t,e);var r=cDe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"_getDistanceToBezierEdge2",value:function(i,o,a,s,l,u,c,d){for(var f=1e9,h=i,v=o,p=[0,0,0,0],b=1;b<10;b++){var y=.1*b;p[0]=Math.pow(1-y,3),p[1]=3*y*Math.pow(1-y,2),p[2]=3*Math.pow(y,2)*(1-y),p[3]=Math.pow(y,3);var g=p[0]*i+p[1]*c.x+p[2]*d.x+p[3]*a,m=p[0]*o+p[1]*c.y+p[2]*d.y+p[3]*s;if(b>0){var $=this._getDistanceToLine(h,v,g,m,l,u);f=$<f?$:f}h=g,v=m}return f}}]),t}(HE);function hDe(e){var r=vDe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function vDe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var UR=function(e){Ne(t,e);var r=hDe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"_line",value:function(i,o,a){var s=a[0],l=a[1];this._bezierCurve(i,o,s,l)}},{key:"_getViaCoordinates",value:function(){var i=this.from.x-this.to.x,o=this.from.y-this.to.y,a,s,l,u,c=this.options.smooth.roundness;return(Math.abs(i)>Math.abs(o)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(s=this.from.y,u=this.to.y,a=this.from.x-c*i,l=this.to.x+c*i):(s=this.from.y-c*o,u=this.to.y+c*o,a=this.from.x,l=this.to.x),[{x:a,y:s},{x:l,y:u}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,u){var c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),d=ct(c,2),f=d[0],h=d[1];return this._getDistanceToBezierEdge2(i,o,a,s,l,u,f,h)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=ct(o,2),s=a[0],l=a[1],u=i,c=[Math.pow(1-u,3),3*u*Math.pow(1-u,2),3*Math.pow(u,2)*(1-u),Math.pow(u,3)],d=c[0]*this.fromPoint.x+c[1]*s.x+c[2]*l.x+c[3]*this.toPoint.x,f=c[0]*this.fromPoint.y+c[1]*s.y+c[2]*l.y+c[3]*this.toPoint.y;return{x:d,y:f}}}]),t}(fDe);function pDe(e){var r=yDe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function yDe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var VR=function(e){Ne(t,e);var r=pDe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"_line",value:function(i,o){i.beginPath(),i.moveTo(this.fromPoint.x,this.fromPoint.y),i.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(i,o),i.stroke(),this.disableShadow(i,o)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(i){return{x:(1-i)*this.fromPoint.x+i*this.toPoint.x,y:(1-i)*this.fromPoint.y+i*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){var a=this.to,s=this.from;i.id===this.from.id&&(a=this.from,s=this.to);var l=Math.atan2(a.y-s.y,a.x-s.x),u=a.x-s.x,c=a.y-s.y,d=Math.sqrt(u*u+c*c),f=i.distanceToBorder(o,l),h=(d-f)/d;return{x:(1-h)*s.x+h*a.x,y:(1-h)*s.y+h*a.y,t:0}}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,u){return this._getDistanceToLine(i,o,a,s,l,u)}}]),t}(Oz),kl=function(){function e(r,t,n,i,o){if(q(this,e),t===void 0)throw new Error("No body provided");this.options=Ko(i),this.globalOptions=i,this.defaultOptions=o,this.body=t,this.imagelist=n,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 mz(this.body,this.options,!0),this.setOptions(r)}return Y(e,[{key:"setOptions",value:function(t){if(t){var n=typeof t.physics<"u"&&this.options.physics!==t.physics||typeof t.hidden<"u"&&(this.options.hidden||!1)!==(t.hidden||!1)||typeof t.from<"u"&&this.options.from!==t.from||typeof t.to<"u"&&this.options.to!==t.to;e.parseOptions(this.options,t,!0,this.globalOptions),t.id!==void 0&&(this.id=t.id),t.from!==void 0&&(this.fromId=t.from),t.to!==void 0&&(this.toId=t.to),t.title!==void 0&&(this.title=t.title),t.value!==void 0&&(t.value=pz(t.value));var i=[t,this.options,this.defaultOptions];return this.chooser=LE("edge",i),this.updateLabelModule(t),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var t=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,n=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,i=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,o=this.options.color.inherit,a={toArrow:t,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:i,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 s=this.options.selectionWidth;typeof s=="function"?a.width=s(a.width):typeof s=="number"&&(a.width+=s),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.highlight,a.shadow=this.options.shadow.enabled}else if(this.hover){var l=this.options.hoverWidth;typeof l=="function"?a.width=l(a.width):typeof l=="number"&&(a.width+=l),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.hover,a.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(a,this.options.id,this.selected,this.hover),a.color!==void 0&&(a.inheritsColor=!1),a.shadow===!1&&(a.shadowColor!==this.options.shadow.color||a.shadowSize!==this.options.shadow.size||a.shadowX!==this.options.shadow.x||a.shadowY!==this.options.shadow.y)&&(a.shadow=!0));else a.shadow=this.options.shadow.enabled,a.width=Math.max(a.width,.3/this.body.view.scale);return a}},{key:"updateLabelModule",value:function(t){var n=[t,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 t=this.options.smooth,n=!1,i=!0;return this.edgeType!==void 0&&((this.edgeType instanceof HR&&t.enabled===!0&&t.type==="dynamic"||this.edgeType instanceof UR&&t.enabled===!0&&t.type==="cubicBezier"||this.edgeType instanceof WR&&t.enabled===!0&&t.type!=="dynamic"&&t.type!=="cubicBezier"||this.edgeType instanceof VR&&t.type.enabled===!1)&&(i=!1),i===!0&&(n=this.cleanup())),i===!0?t.enabled===!0?t.type==="dynamic"?(n=!0,this.edgeType=new HR(this.options,this.body,this.labelModule)):t.type==="cubicBezier"?this.edgeType=new UR(this.options,this.body,this.labelModule):this.edgeType=new WR(this.options,this.body,this.labelModule):this.edgeType=new VR(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(t,n,i){if(this.options.value!==void 0){var o=this.options.scaling.customScalingFunction(t,n,i,this.options.value),a=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*s}this.options.width=this.options.scaling.min+o*a}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(t){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode();this.edgeType.drawLine(t,n,this.selected,this.hover,i),this.drawLabel(t,i)}}},{key:"drawArrows",value:function(t){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode(),o={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,n.fromArrow&&(o.from=this.edgeType.getArrowData(t,"from",i,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(t,"to",i,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(t,"middle",i,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(t,n,this.selected,this.hover,o.from),n.middleArrow&&this.edgeType.drawArrowHead(t,n,this.selected,this.hover,o.middle),n.toArrow&&this.edgeType.drawArrowHead(t,n,this.selected,this.hover,o.to)}}},{key:"drawLabel",value:function(t,n){if(this.options.label!==void 0){var i=this.from,o=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(t,this.selected,this.hover);var a;if(i.id!=o.id){this.labelModule.pointToSelf=!1,a=this.edgeType.getPoint(.5,n),t.save();var s=this._getRotation(t);s.angle!=0&&(t.translate(s.x,s.y),t.rotate(s.angle)),this.labelModule.draw(t,a.x,a.y,this.selected,this.hover),t.restore()}else{this.labelModule.pointToSelf=!0;var l=yz(t,this.options.selfReference.angle,this.options.selfReference.size,i);a=this._pointOnCircle(l.x,l.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(t,a.x,a.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(t){var n=[];if(this.labelModule.visible()){var i=this._getRotation();fw(this.labelModule.getSize(),t,i)&&n.push({edgeId:this.id,labelId:0})}var o={left:t.x,top:t.y};return this.isOverlappingWith(o)&&n.push({edgeId:this.id}),n}},{key:"isOverlappingWith",value:function(t){if(this.connected){var n=10,i=this.from.x,o=this.from.y,a=this.to.x,s=this.to.y,l=t.left,u=t.top,c=this.edgeType.getDistanceToEdge(i,o,a,s,l,u);return c<n}else return!1}},{key:"_getRotation",value:function(t){var n=this.edgeType.getViaNode(),i=this.edgeType.getPoint(.5,n);t!==void 0&&this.labelModule.calculateLabelSize(t,this.selected,this.hover,i.x,i.y);var o={x:i.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible()||this.options.font.align==="horizontal")return o;var a=this.from.y-this.to.y,s=this.from.x-this.to.x,l=Math.atan2(a,s);return(l<-1&&s<0||l>0&&s<0)&&(l+=Math.PI),o.angle=l,o}},{key:"_pointOnCircle",value:function(t,n,i,o){return{x:t+i*Math.cos(o),y:n-i*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(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(Ju(s,t,n,i),n.endPointOffset!==void 0&&n.endPointOffset.from!==void 0&&(Pa(n.endPointOffset.from)?t.endPointOffset.from=n.endPointOffset.from:(t.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&&(Pa(n.endPointOffset.to)?t.endPointOffset.to=n.endPointOffset.to:(t.endPointOffset.to=o.endPointOffset.to!==void 0?o.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),Vp(n.label)?t.label=n.label:Vp(t.label)||(t.label=void 0),ln(t,n,"smooth",o),ln(t,n,"shadow",o),ln(t,n,"background",o),n.dashes!==void 0&&n.dashes!==null?t.dashes=n.dashes:i===!0&&n.dashes===null&&(t.dashes=Va(o.dashes)),n.scaling!==void 0&&n.scaling!==null?(n.scaling.min!==void 0&&(t.scaling.min=n.scaling.min),n.scaling.max!==void 0&&(t.scaling.max=n.scaling.max),ln(t.scaling,n.scaling,"label",o.scaling)):i===!0&&n.scaling===null&&(t.scaling=Va(o.scaling)),n.arrows!==void 0&&n.arrows!==null)if(typeof n.arrows=="string"){var l=n.arrows.toLowerCase();t.arrows.to.enabled=Ie(l).call(l,"to")!=-1,t.arrows.middle.enabled=Ie(l).call(l,"middle")!=-1,t.arrows.from.enabled=Ie(l).call(l,"from")!=-1}else if(We(n.arrows)==="object")ln(t.arrows,n.arrows,"to",o.arrows),ln(t.arrows,n.arrows,"middle",o.arrows),ln(t.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:"+Vf(n.arrows));else i===!0&&n.arrows===null&&(t.arrows=Va(o.arrows));if(n.color!==void 0&&n.color!==null){var u=Tl(n.color)?{color:n.color,highlight:n.color,hover:n.color,inherit:!1,opacity:1}:n.color,c=t.color;if(a)Ge(c,o.color,!1,i);else for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&delete c[d];if(Tl(c))c.color=c,c.highlight=c,c.hover=c,c.inherit=!1,u.opacity===void 0&&(c.opacity=1);else{var f=!1;u.color!==void 0&&(c.color=u.color,f=!0),u.highlight!==void 0&&(c.highlight=u.highlight,f=!0),u.hover!==void 0&&(c.hover=u.hover,f=!0),u.inherit!==void 0&&(c.inherit=u.inherit),u.opacity!==void 0&&(c.opacity=Math.min(1,Math.max(0,u.opacity))),f===!0?c.inherit=!1:c.inherit===void 0&&(c.inherit="from")}}else i===!0&&n.color===null&&(t.color=Ko(o.color));i===!0&&n.font===null&&(t.font=Ko(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}"),t.selfReference.size=n.selfReferenceSize)}}]),e}(),gDe=function(){function e(r,t,n){var i,o=this;q(this,e),this.body=r,this.images=t,this.groups=n,this.body.functions.createEdge=V(i=this.create).call(i,this),this.edgesListeners={add:function(s,l){o.add(l.items)},update:function(s,l){o.update(l.items)},remove:function(s,l){o.remove(l.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(s,l,u,c){if(l===s)return .5;var d=1/(l-s);return Math.max(0,(c-s)*d)}},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},Ge(this.options,this.defaultOptions),this.bindEventListeners()}return Y(e,[{key:"bindEventListeners",value:function(){var t=this,n,i;this.body.emitter.on("_forceDisableDynamicCurves",function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;o==="dynamic"&&(o="continuous");var s=!1;for(var l in t.body.edges)if(Object.prototype.hasOwnProperty.call(t.body.edges,l)){var u=t.body.edges[l],c=t.body.data.edges.get(l);if(c!=null){var d=c.smooth;d!==void 0&&d.enabled===!0&&d.type==="dynamic"&&(o===void 0?u.setOptions({smooth:!1}):u.setOptions({smooth:{type:o}}),s=!0)}}a===!0&&s===!0&&t.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){t.reconnectEdges()}),this.body.emitter.on("refreshEdges",V(n=this.refresh).call(n,this)),this.body.emitter.on("refresh",V(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",function(){be(t.edgesListeners,function(o,a){t.body.data.edges&&t.body.data.edges.off(a,o)}),delete t.body.functions.createEdge,delete t.edgesListeners.add,delete t.edgesListeners.update,delete t.edgesListeners.remove,delete t.edgesListeners})}},{key:"setOptions",value:function(t){if(t!==void 0){kl.parseOptions(this.options,t,!0,this.defaultOptions,!0);var n=!1;if(t.smooth!==void 0)for(var i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(n=this.body.edges[i].updateEdgeType()||n);if(t.font!==void 0)for(var o in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,o)&&this.body.edges[o].updateLabelModule();(t.hidden!==void 0||t.physics!==void 0||n===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.body.data.edges;if(mj("id",t))this.body.data.edges=t;else if(Be(t))this.body.data.edges=new hu,this.body.data.edges.add(t);else if(!t)this.body.data.edges=new hu;else throw new TypeError("Array or DataSet expected");if(o&&be(this.edgesListeners,function(s,l){o.off(l,s)}),this.body.edges={},this.body.data.edges){be(this.edgesListeners,function(s,l){n.body.data.edges.on(l,s)});var a=this.body.data.edges.getIds();this.add(a,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),i===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.edges,o=this.body.data.edges,a=0;a<t.length;a++){var s=t[a],l=i[s];l&&l.disconnect();var u=o.get(s,{showInternalIds:!0});i[s]=this.create(u)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(t){for(var n=this.body.edges,i=this.body.data.edges,o=!1,a=0;a<t.length;a++){var s=t[a],l=i.get(s),u=n[s];u!==void 0?(u.disconnect(),o=u.setOptions(l)||o,u.connect()):(this.body.edges[s]=this.create(l),o=!0)}o===!0?(this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),this.body.emitter.emit("_dataChanged")):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(t.length!==0){var i=this.body.edges;be(t,function(o){var a=i[o];a!==void 0&&a.remove()}),n&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var t=this;be(this.body.edges,function(n,i){var o=t.body.data.edges.get(i);o!==void 0&&n.setOptions(o)})}},{key:"create",value:function(t){return new kl(t,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var t,n=this.body.nodes,i=this.body.edges;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(n[t].edges=[]);for(t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var o=i[t];o.from=null,o.to=null,o.connect()}}},{key:"getConnectedNodes",value:function(t){var n=[];if(this.body.edges[t]!==void 0){var i=this.body.edges[t];i.fromId!==void 0&&n.push(i.fromId),i.toId!==void 0&&n.push(i.toId)}return n}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var t=this,n=[];be(this.body.edges,function(i,o){var a=t.body.nodes[i.toId],s=t.body.nodes[i.fromId];a!==void 0&&a.isCluster===!0||s!==void 0&&s.isCluster===!0||(a===void 0||s===void 0)&&n.push(o)}),this.remove(n,!1)}},{key:"_addMissingEdges",value:function(){var t=this.body.data.edges;if(t!=null){var n=this.body.edges,i=[];Ve(t).call(t,function(o,a){var s=n[a];s===void 0&&i.push(a)}),this.add(i,!0)}}}]),e}(),Pz=function(){function e(r,t,n){q(this,e),this.body=r,this.physicsBody=t,this.barnesHutTree,this.setOptions(n),this._rng=kg("BARNES HUT SOLVER")}return Y(e,[{key:"setOptions",value:function(t){this.options=t,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 t,n=this.body.nodes,i=this.physicsBody.physicsNodeIndices,o=i.length,a=this._formBarnesHutTree(n,i);this.barnesHutTree=a;for(var s=0;s<o;s++)t=n[i[s]],t.options.mass>0&&this._getForceContributions(a.root,t)}}},{key:"_getForceContributions",value:function(t,n){this._getForceContribution(t.children.NW,n),this._getForceContribution(t.children.NE,n),this._getForceContribution(t.children.SW,n),this._getForceContribution(t.children.SE,n)}},{key:"_getForceContribution",value:function(t,n){if(t.childrenCount>0){var i=t.centerOfMass.x-n.x,o=t.centerOfMass.y-n.y,a=Math.sqrt(i*i+o*o);a*t.calcSize>this.thetaInversed?this._calculateForces(a,i,o,n,t):t.childrenCount===4?this._getForceContributions(t,n):t.children.data.id!=n.id&&this._calculateForces(a,i,o,n,t)}}},{key:"_calculateForces",value:function(t,n,i,o,a){t===0&&(t=.1,n=t),this.overlapAvoidanceFactor<1&&o.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*o.shape.radius,t-o.shape.radius));var s=this.options.gravitationalConstant*a.mass*o.options.mass/Math.pow(t,3),l=n*s,u=i*s;this.physicsBody.forces[o.id].x+=l,this.physicsBody.forces[o.id].y+=u}},{key:"_formBarnesHutTree",value:function(t,n){for(var i,o=n.length,a=t[n[0]].x,s=t[n[0]].y,l=t[n[0]].x,u=t[n[0]].y,c=1;c<o;c++){var d=t[n[c]],f=d.x,h=d.y;d.options.mass>0&&(f<a&&(a=f),f>l&&(l=f),h<s&&(s=h),h>u&&(u=h))}var v=Math.abs(l-a)-Math.abs(u-s);v>0?(s-=.5*v,u+=.5*v):(a+=.5*v,l-=.5*v);var p=1e-5,b=Math.max(p,Math.abs(l-a)),y=.5*b,g=.5*(a+l),m=.5*(s+u),$={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:g-y,maxX:g+y,minY:m-y,maxY:m+y},size:b,calcSize:1/b,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch($.root);for(var w=0;w<o;w++)i=t[n[w]],i.options.mass>0&&this._placeInTree($.root,i);return $}},{key:"_updateBranchMass",value:function(t,n){var i=t.centerOfMass,o=t.mass+n.options.mass,a=1/o;i.x=i.x*t.mass+n.x*n.options.mass,i.x*=a,i.y=i.y*t.mass+n.y*n.options.mass,i.y*=a,t.mass=o;var s=Math.max(Math.max(n.height,n.radius),n.width);t.maxWidth=t.maxWidth<s?s:t.maxWidth}},{key:"_placeInTree",value:function(t,n,i){(i!=!0||i===void 0)&&this._updateBranchMass(t,n);var o=t.children.NW.range,a;o.maxX>n.x?o.maxY>n.y?a="NW":a="SW":o.maxY>n.y?a="NE":a="SE",this._placeInRegion(t,n,a)}},{key:"_placeInRegion",value:function(t,n,i){var o=t.children[i];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(t){var n=null;t.childrenCount===1&&(n=t.children.data,t.mass=0,t.centerOfMass.x=0,t.centerOfMass.y=0),t.childrenCount=4,t.children.data=null,this._insertRegion(t,"NW"),this._insertRegion(t,"NE"),this._insertRegion(t,"SW"),this._insertRegion(t,"SE"),n!=null&&this._placeInTree(t,n)}},{key:"_insertRegion",value:function(t,n){var i,o,a,s,l=.5*t.size;switch(n){case"NW":i=t.range.minX,o=t.range.minX+l,a=t.range.minY,s=t.range.minY+l;break;case"NE":i=t.range.minX+l,o=t.range.maxX,a=t.range.minY,s=t.range.minY+l;break;case"SW":i=t.range.minX,o=t.range.minX+l,a=t.range.minY+l,s=t.range.maxY;break;case"SE":i=t.range.minX+l,o=t.range.maxX,a=t.range.minY+l,s=t.range.maxY;break}t.children[n]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:o,minY:a,maxY:s},size:.5*t.size,calcSize:2*t.calcSize,children:{data:null},maxWidth:0,level:t.level+1,childrenCount:0}}},{key:"_debug",value:function(t,n){this.barnesHutTree!==void 0&&(t.lineWidth=1,this._drawBranch(this.barnesHutTree.root,t,n))}},{key:"_drawBranch",value:function(t,n,i){i===void 0&&(i="#FF0000"),t.childrenCount===4&&(this._drawBranch(t.children.NW,n),this._drawBranch(t.children.NE,n),this._drawBranch(t.children.SE,n),this._drawBranch(t.children.SW,n)),n.strokeStyle=i,n.beginPath(),n.moveTo(t.range.minX,t.range.minY),n.lineTo(t.range.maxX,t.range.minY),n.stroke(),n.beginPath(),n.moveTo(t.range.maxX,t.range.minY),n.lineTo(t.range.maxX,t.range.maxY),n.stroke(),n.beginPath(),n.moveTo(t.range.maxX,t.range.maxY),n.lineTo(t.range.minX,t.range.maxY),n.stroke(),n.beginPath(),n.moveTo(t.range.minX,t.range.maxY),n.lineTo(t.range.minX,t.range.minY),n.stroke()}}]),e}(),mDe=function(){function e(r,t,n){q(this,e),this._rng=kg("REPULSION SOLVER"),this.body=r,this.physicsBody=t,this.setOptions(n)}return Y(e,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,n,i,o,a,s,l,u,c=this.body.nodes,d=this.physicsBody.physicsNodeIndices,f=this.physicsBody.forces,h=this.options.nodeDistance,v=-2/3/h,p=4/3,b=0;b<d.length-1;b++){l=c[d[b]];for(var y=b+1;y<d.length;y++)u=c[d[y]],t=u.x-l.x,n=u.y-l.y,i=Math.sqrt(t*t+n*n),i===0&&(i=.1*this._rng(),t=i),i<2*h&&(i<.5*h?s=1:s=v*i+p,s=s/i,o=t*s,a=n*s,f[l.id].x-=o,f[l.id].y-=a,f[u.id].x+=o,f[u.id].y+=a)}}}]),e}(),bDe=function(){function e(r,t,n){q(this,e),this.body=r,this.physicsBody=t,this.setOptions(n)}return Y(e,[{key:"setOptions",value:function(t){this.options=t,this.overlapAvoidanceFactor=Math.max(0,Math.min(1,this.options.avoidOverlap||0))}},{key:"solve",value:function(){for(var t=this.body.nodes,n=this.physicsBody.physicsNodeIndices,i=this.physicsBody.forces,o=this.options.nodeDistance,a=0;a<n.length-1;a++)for(var s=t[n[a]],l=a+1;l<n.length;l++){var u=t[n[l]];if(s.level===u.level){var c=o+this.overlapAvoidanceFactor*((s.shape.radius||0)/2+(u.shape.radius||0)/2),d=u.x-s.x,f=u.y-s.y,h=Math.sqrt(d*d+f*f),v=.05,p=void 0;h<c?p=-Math.pow(v*h,2)+Math.pow(v*c,2):p=0,h!==0&&(p=p/h);var b=d*p,y=f*p;i[s.id].x-=b,i[s.id].y-=y,i[u.id].x+=b,i[u.id].y+=y}}}}]),e}(),I1=function(){function e(r,t,n){q(this,e),this.body=r,this.physicsBody=t,this.setOptions(n)}return Y(e,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,n,i=this.physicsBody.physicsEdgeIndices,o=this.body.edges,a,s,l,u=0;u<i.length;u++)n=o[i[u]],n.connected===!0&&n.toId!==n.fromId&&this.body.nodes[n.toId]!==void 0&&this.body.nodes[n.fromId]!==void 0&&(n.edgeType.via!==void 0?(t=n.options.length===void 0?this.options.springLength:n.options.length,a=n.to,s=n.edgeType.via,l=n.from,this._calculateSpringForce(a,s,.5*t),this._calculateSpringForce(s,l,.5*t)):(t=n.options.length===void 0?this.options.springLength*1.5:n.options.length,this._calculateSpringForce(n.from,n.to,t)))}},{key:"_calculateSpringForce",value:function(t,n,i){var o=t.x-n.x,a=t.y-n.y,s=Math.max(Math.sqrt(o*o+a*a),.01),l=this.options.springConstant*(i-s)/s,u=o*l,c=a*l;this.physicsBody.forces[t.id]!==void 0&&(this.physicsBody.forces[t.id].x+=u,this.physicsBody.forces[t.id].y+=c),this.physicsBody.forces[n.id]!==void 0&&(this.physicsBody.forces[n.id].x-=u,this.physicsBody.forces[n.id].y-=c)}}]),e}(),$De=function(){function e(r,t,n){q(this,e),this.body=r,this.physicsBody=t,this.setOptions(n)}return Y(e,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,n,i,o,a,s,l,u,c=this.body.edges,d=.5,f=this.physicsBody.physicsEdgeIndices,h=this.physicsBody.physicsNodeIndices,v=this.physicsBody.forces,p=0;p<h.length;p++){var b=h[p];v[b].springFx=0,v[b].springFy=0}for(var y=0;y<f.length;y++)n=c[f[y]],n.connected===!0&&(t=n.options.length===void 0?this.options.springLength:n.options.length,i=n.from.x-n.to.x,o=n.from.y-n.to.y,u=Math.sqrt(i*i+o*o),u=u===0?.01:u,l=this.options.springConstant*(t-u)/u,a=i*l,s=o*l,n.to.level!=n.from.level?(v[n.toId]!==void 0&&(v[n.toId].springFx-=a,v[n.toId].springFy-=s),v[n.fromId]!==void 0&&(v[n.fromId].springFx+=a,v[n.fromId].springFy+=s)):(v[n.toId]!==void 0&&(v[n.toId].x-=d*a,v[n.toId].y-=d*s),v[n.fromId]!==void 0&&(v[n.fromId].x+=d*a,v[n.fromId].y+=d*s)));l=1;for(var g,m,$=0;$<h.length;$++){var w=h[$];g=Math.min(l,Math.max(-l,v[w].springFx)),m=Math.min(l,Math.max(-l,v[w].springFy)),v[w].x+=g,v[w].y+=m}for(var S=0,P=0,O=0;O<h.length;O++){var C=h[O];S+=v[C].x,P+=v[C].y}for(var k=S/h.length,R=P/h.length,D=0;D<h.length;D++){var z=h[D];v[z].x-=k,v[z].y-=R}}}]),e}(),Lv=function(){function e(r,t,n){q(this,e),this.body=r,this.physicsBody=t,this.setOptions(n)}return Y(e,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,n,i,o,a=this.body.nodes,s=this.physicsBody.physicsNodeIndices,l=this.physicsBody.forces,u=0;u<s.length;u++){var c=s[u];o=a[c],t=-o.x,n=-o.y,i=Math.sqrt(t*t+n*n),this._calculateForces(i,t,n,l,o)}}},{key:"_calculateForces",value:function(t,n,i,o,a){var s=t===0?0:this.options.centralGravity/t;o[a.id].x=n*s,o[a.id].y=i*s}}]),e}();function wDe(e){var r=SDe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function SDe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var _De=function(e){Ne(t,e);var r=wDe(t);function t(n,i,o){var a;return q(this,t),a=r.call(this,n,i,o),a._rng=kg("FORCE ATLAS 2 BASED REPULSION SOLVER"),a}return Y(t,[{key:"_calculateForces",value:function(i,o,a,s,l){i===0&&(i=.1*this._rng(),o=i),this.overlapAvoidanceFactor<1&&s.shape.radius&&(i=Math.max(.1+this.overlapAvoidanceFactor*s.shape.radius,i-s.shape.radius));var u=s.edges.length+1,c=this.options.gravitationalConstant*l.mass*s.options.mass*u/Math.pow(i,2),d=o*c,f=a*c;this.physicsBody.forces[s.id].x+=d,this.physicsBody.forces[s.id].y+=f}}]),t}(Pz);function EDe(e){var r=ODe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function ODe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var PDe=function(e){Ne(t,e);var r=EDe(t);function t(n,i,o){return q(this,t),r.call(this,n,i,o)}return Y(t,[{key:"_calculateForces",value:function(i,o,a,s,l){if(i>0){var u=l.edges.length+1,c=this.options.centralGravity*u*l.options.mass;s[l.id].x=o*c,s[l.id].y=a*c}}}]),t}(Lv),CDe=function(){function e(r){q(this,e),this.body=r,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}},wt(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return Y(e,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("initPhysics",function(){t.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){t.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){t.stopSimulation(),t.ready=!1}),this.body.emitter.on("disablePhysics",function(){t.physicsEnabled=!1,t.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){t.setOptions(t.options),t.ready===!0&&t.startSimulation()}),this.body.emitter.on("startSimulation",function(){t.ready===!0&&t.startSimulation()}),this.body.emitter.on("stopSimulation",function(){t.stopSimulation()}),this.body.emitter.on("destroy",function(){t.stopSimulation(!1),t.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){t.updatePhysicsData()})}},{key:"setOptions",value:function(t){if(t!==void 0)if(t===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(t===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Hp(["stabilization"],this.options,t),ln(this.options,t,"stabilization"),t.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"||dw(n.x))&&(n.x=0),(typeof n.y!="number"||dw(n.y))&&(n.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var t;this.options.solver==="forceAtlas2Based"?(t=this.options.forceAtlas2Based,this.nodesSolver=new _De(this.body,this.physicsBody,t),this.edgesSolver=new I1(this.body,this.physicsBody,t),this.gravitySolver=new PDe(this.body,this.physicsBody,t)):this.options.solver==="repulsion"?(t=this.options.repulsion,this.nodesSolver=new mDe(this.body,this.physicsBody,t),this.edgesSolver=new I1(this.body,this.physicsBody,t),this.gravitySolver=new Lv(this.body,this.physicsBody,t)):this.options.solver==="hierarchicalRepulsion"?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new bDe(this.body,this.physicsBody,t),this.edgesSolver=new $De(this.body,this.physicsBody,t),this.gravitySolver=new Lv(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new Pz(this.body,this.physicsBody,t),this.edgesSolver=new I1(this.body,this.physicsBody,t),this.gravitySolver=new Lv(this.body,this.physicsBody,t)),this.modelOptions=t}},{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 t;this.viewFunction=V(t=this.simulationStep).call(t,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,t===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,t===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var t=Lp();this.physicsTick();var n=Lp()-t;(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 t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&yi(function(){t.body.emitter.emit("stabilized",{iterations:n}),t.startedStabilization=!1,t.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var t=1.2;this._evaluateStepQuality()===!0?this.timestep=t*this.timestep:this.timestep/t<this.options.timestep?this.timestep=this.options.timestep:(this.adaptiveCounter=-1,this.timestep=Math.max(this.options.timestep,this.timestep/t))}},{key:"physicsTick",value:function(){if(this._startStabilizing(),this.stabilized!==!0){if(this.adaptiveTimestep===!0&&this.adaptiveTimestepEnabled===!0){var t=this.adaptiveCounter%this.adaptiveInterval===0;t?(this.timestep=2*this.timestep,this.physicsStep(),this.revert(),this.timestep=.5*this.timestep,this.physicsStep(),this.physicsStep(),this.adjustTimeStep()):this.physicsStep(),this.adaptiveCounter+=1}else this.timestep=this.options.timestep,this.physicsStep();this.stabilized===!0&&this.revert(),this.stabilizationIterations++}}},{key:"updatePhysicsData",value:function(){this.physicsBody.forces={},this.physicsBody.physicsNodeIndices=[],this.physicsBody.physicsEdgeIndices=[];var t=this.body.nodes,n=this.body.edges;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&t[i].options.physics===!0&&this.physicsBody.physicsNodeIndices.push(t[i].id);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&n[o].options.physics===!0&&this.physicsBody.physicsEdgeIndices.push(n[o].id);for(var a=0;a<this.physicsBody.physicsNodeIndices.length;a++){var s=this.physicsBody.physicsNodeIndices[a];this.physicsBody.forces[s]={x:0,y:0},this.physicsBody.velocities[s]===void 0&&(this.physicsBody.velocities[s]={x:0,y:0})}for(var l in this.physicsBody.velocities)t[l]===void 0&&delete this.physicsBody.velocities[l]}},{key:"revert",value:function(){var t=ut(this.previousStates),n=this.body.nodes,i=this.physicsBody.velocities;this.referenceState={};for(var o=0;o<t.length;o++){var a=t[o];n[a]!==void 0?n[a].options.physics===!0&&(this.referenceState[a]={positions:{x:n[a].x,y:n[a].y}},i[a].x=this.previousStates[a].vx,i[a].y=this.previousStates[a].vy,n[a].x=this.previousStates[a].x,n[a].y=this.previousStates[a].y):delete this.previousStates[a]}}},{key:"_evaluateStepQuality",value:function(){var t,n,i,o=this.body.nodes,a=this.referenceState,s=.3;for(var l in this.referenceState)if(Object.prototype.hasOwnProperty.call(this.referenceState,l)&&o[l]!==void 0&&(t=o[l].x-a[l].positions.x,n=o[l].y-a[l].positions.y,i=Math.sqrt(Math.pow(t,2)+Math.pow(n,2)),i>s))return!1;return!0}},{key:"moveNodes",value:function(){for(var t=this.physicsBody.physicsNodeIndices,n=0,i=0,o=5,a=0;a<t.length;a++){var s=t[a],l=this._performStep(s);n=Math.max(n,l),i+=l}this.adaptiveTimestepEnabled=i/t.length<o,this.stabilized=n<this.options.minVelocity}},{key:"calculateComponentVelocity",value:function(t,n,i){var o=this.modelOptions.damping*t,a=(n-o)/i;t+=a*this.timestep;var s=this.options.maxVelocity||1e9;return Math.abs(t)>s&&(t=t>0?s:-s),t}},{key:"_performStep",value:function(t){var n=this.body.nodes[t],i=this.physicsBody.forces[t];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var o=this.physicsBody.velocities[t];this.previousStates[t]={x:n.x,y:n.y,vx:o.x,vy:o.y},n.options.fixed.x===!1?(o.x=this.calculateComponentVelocity(o.x,i.x,n.options.mass),n.x+=o.x*this.timestep):(i.x=0,o.x=0),n.options.fixed.y===!1?(o.y=this.calculateComponentVelocity(o.y,i.y,n.options.mass),n.y+=o.y*this.timestep):(i.y=0,o.y=0);var a=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2));return a}},{key:"_freezeNodes",value:function(){var t=this.body.nodes;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n].x&&t[n].y){var i=t[n].options.fixed;this.freezeCache[n]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var t=this.body.nodes;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.freezeCache[n]!==void 0&&(t[n].options.fixed.x=this.freezeCache[n].x,t[n].options.fixed.y=this.freezeCache[n].y);this.freezeCache={}}},{key:"stabilize",value:function(){var t=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,yi(function(){return t._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 t=this,n=function(){return t.stabilized===!1&&t.stabilizationIterations<t.targetIterations},i=function(){t.body.emitter.emit("stabilizationProgress",{iterations:t.stabilizationIterations,total:t.targetIterations})};this._startStabilizing()&&i();for(var o=0;n()&&o<this.options.stabilization.updateInterval;)this.physicsTick(),o++;if(i(),n()){var a;yi(V(a=this._stabilizationBatch).call(a,this),0)}else this._finalizeStabilization()}},{key:"_finalizeStabilization",value:function(){this.body.emitter.emit("_allowRedraw"),this.options.stabilization.fit===!0&&this.body.emitter.emit("fit"),this.options.stabilization.onlyDynamicEdges===!0&&this._restoreFrozenNodes(),this.body.emitter.emit("stabilizationIterationsDone"),this.body.emitter.emit("_requestRedraw"),this.stabilized===!0?this._emitStabilized():this.startSimulation(),this.ready=!0}},{key:"_drawForces",value:function(t){for(var n=0;n<this.physicsBody.physicsNodeIndices.length;n++){var i=this.physicsBody.physicsNodeIndices[n],o=this.body.nodes[i],a=this.physicsBody.forces[i],s=20,l=.03,u=Math.sqrt(Math.pow(a.x,2)+Math.pow(a.x,2)),c=Math.min(Math.max(5,u),15),d=3*c,f=lw((180-Math.min(1,Math.max(0,l*u))*180)/360,1,1),h={x:o.x+s*a.x,y:o.y+s*a.y};t.lineWidth=c,t.strokeStyle=f,t.beginPath(),t.moveTo(o.x,o.y),t.lineTo(h.x,h.y),t.stroke();var v=Math.atan2(a.y,a.x);t.fillStyle=f,Ez.draw(t,{type:"arrow",point:h,angle:v,length:d}),Kf(t).call(t)}}}]),e}();let rv;const TDe=new Uint8Array(16);function xDe(){if(!rv&&(rv=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!rv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rv(TDe)}const zt=[];for(let e=0;e<256;++e)zt.push((e+256).toString(16).slice(1));function kDe(e,r=0){return zt[e[r+0]]+zt[e[r+1]]+zt[e[r+2]]+zt[e[r+3]]+"-"+zt[e[r+4]]+zt[e[r+5]]+"-"+zt[e[r+6]]+zt[e[r+7]]+"-"+zt[e[r+8]]+zt[e[r+9]]+"-"+zt[e[r+10]]+zt[e[r+11]]+zt[e[r+12]]+zt[e[r+13]]+zt[e[r+14]]+zt[e[r+15]]}const IDe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var KR={randomUUID:IDe};function Yc(e,r,t){if(KR.randomUUID&&!r&&!e)return KR.randomUUID();e=e||{};const n=e.random||(e.rng||xDe)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,kDe(n)}var ur=function(){function e(){q(this,e)}return Y(e,null,[{key:"getRange",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var u=0;u<n.length;u++)l=t[n[u]],a>l.shape.boundingBox.left&&(a=l.shape.boundingBox.left),s<l.shape.boundingBox.right&&(s=l.shape.boundingBox.right),i>l.shape.boundingBox.top&&(i=l.shape.boundingBox.top),o<l.shape.boundingBox.bottom&&(o=l.shape.boundingBox.bottom);return a===1e9&&s===-1e9&&i===1e9&&o===-1e9&&(i=0,o=0,a=0,s=0),{minX:a,maxX:s,minY:i,maxY:o}}},{key:"getRangeCore",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var u=0;u<n.length;u++)l=t[n[u]],a>l.x&&(a=l.x),s<l.x&&(s=l.x),i>l.y&&(i=l.y),o<l.y&&(o=l.y);return a===1e9&&s===-1e9&&i===1e9&&o===-1e9&&(i=0,o=0,a=0,s=0),{minX:a,maxX:s,minY:i,maxY:o}}},{key:"findCenter",value:function(t){return{x:.5*(t.maxX+t.minX),y:.5*(t.maxY+t.minY)}}},{key:"cloneOptions",value:function(t,n){var i={};return n===void 0||n==="node"?(Ge(i,t.options,!0),i.x=t.x,i.y=t.y,i.amountOfConnections=t.edges.length):Ge(i,t.options,!0),i}}]),e}();function RDe(e){var r=ADe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function ADe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var MDe=function(e){Ne(t,e);var r=RDe(t);function t(n,i,o,a,s,l){var u;return q(this,t),u=r.call(this,n,i,o,a,s,l),u.isCluster=!0,u.containedNodes={},u.containedEdges={},u}return Y(t,[{key:"_openChildCluster",value:function(i){var o=this,a=this.body.nodes[i];if(this.containedNodes[i]===void 0)throw new Error("node with id: "+i+" not in current cluster");if(!a.isCluster)throw new Error("node with id: "+i+" is not a cluster");delete this.containedNodes[i],be(a.edges,function(s){delete o.containedEdges[s.id]}),be(a.containedNodes,function(s,l){o.containedNodes[l]=s}),a.containedNodes={},be(a.containedEdges,function(s,l){o.containedEdges[l]=s}),a.containedEdges={},be(a.edges,function(s){be(o.edges,function(l){var u,c,d=Ie(u=l.clusteringEdgeReplacingIds).call(u,s.id);d!==-1&&(be(s.clusteringEdgeReplacingIds,function(f){l.clusteringEdgeReplacingIds.push(f),o.body.edges[f].edgeReplacedById=l.id}),Hi(c=l.clusteringEdgeReplacingIds).call(c,d,1))})}),a.edges=[]}}]),t}(Br),NDe=function(){function e(r){var t=this;q(this,e),this.body=r,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},wt(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){t.clusteredNodes={},t.clusteredEdges={}})}return Y(e,[{key:"clusterByHubsize",value:function(t,n){t===void 0?t=this._getHubSize():We(t)==="object"&&(n=this._checkOptions(t),t=this._getHubSize());for(var i=[],o=0;o<this.body.nodeIndices.length;o++){var a=this.body.nodes[this.body.nodeIndices[o]];a.edges.length>=t&&i.push(a.id)}for(var s=0;s<i.length;s++)this.clusterByConnection(i[s],n,!0);this.body.emitter.emit("_dataChanged")}},{key:"cluster",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=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={},a={};be(this.body.nodes,function(s,l){s.options&&n.joinCondition(s.options)===!0&&(o[l]=s,be(s.edges,function(u){t.clusteredEdges[u.id]===void 0&&(a[u.id]=u)}))}),this._cluster(o,a,n,i)}},{key:"clusterByEdgeCount",value:function(t,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;n=this._checkOptions(n);for(var a=[],s={},l,u,c,d=function(){var p={},b={},y=i.body.nodeIndices[f],g=i.body.nodes[y];if(s[y]===void 0){c=0,u=[];for(var m=0;m<g.edges.length;m++)l=g.edges[m],i.clusteredEdges[l.id]===void 0&&(l.toId!==l.fromId&&c++,u.push(l));if(c===t){for(var $=function(z){if(n.joinCondition===void 0||n.joinCondition===null)return!0;var X=ur.cloneOptions(z);return n.joinCondition(X)},w=!0,S=0;S<u.length;S++){l=u[S];var P=i._getConnectedId(l,y);if($(g))b[l.id]=l,p[y]=g,p[P]=i.body.nodes[P],s[y]=!0;else{w=!1;break}}if(ut(p).length>0&&ut(b).length>0&&w===!0){var O=function(){for(var z=0;z<a.length;++z)for(var X in p)if(a[z].nodes[X]!==void 0)return a[z]},C=O();if(C!==void 0){for(var k in p)C.nodes[k]===void 0&&(C.nodes[k]=p[k]);for(var R in b)C.edges[R]===void 0&&(C.edges[R]=b[R])}else a.push({nodes:p,edges:b})}}}},f=0;f<this.body.nodeIndices.length;f++)d();for(var h=0;h<a.length;h++)this._cluster(a[h].nodes,a[h].edges,n,!1);o===!0&&this.body.emitter.emit("_dataChanged")}},{key:"clusterOutliers",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,t,n)}},{key:"clusterBridges",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,t,n)}},{key:"clusterByConnection",value:function(t,n){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(t===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[t]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");var a=this.body.nodes[t];n=this._checkOptions(n,a),n.clusterNodeProperties.x===void 0&&(n.clusterNodeProperties.x=a.x),n.clusterNodeProperties.y===void 0&&(n.clusterNodeProperties.y=a.y),n.clusterNodeProperties.fixed===void 0&&(n.clusterNodeProperties.fixed={},n.clusterNodeProperties.fixed.x=a.options.fixed.x,n.clusterNodeProperties.fixed.y=a.options.fixed.y);var s={},l={},u=a.id,c=ur.cloneOptions(a);s[u]=a;for(var d=0;d<a.edges.length;d++){var f=a.edges[d];if(this.clusteredEdges[f.id]===void 0){var h=this._getConnectedId(f,u);if(this.clusteredNodes[h]===void 0)if(h!==u)if(n.joinCondition===void 0)l[f.id]=f,s[h]=this.body.nodes[h];else{var v=ur.cloneOptions(this.body.nodes[h]);n.joinCondition(c,v)===!0&&(l[f.id]=f,s[h]=this.body.nodes[h])}else l[f.id]=f}}var p=yu(i=ut(s)).call(i,function($){return s[$].id});for(var b in s)if(Object.prototype.hasOwnProperty.call(s,b))for(var y=s[b],g=0;g<y.edges.length;g++){var m=y.edges[g];Ie(p).call(p,this._getConnectedId(m,y.id))>-1&&(l[m.id]=m)}this._cluster(s,l,n,o)}},{key:"_createClusterEdges",value:function(t,n,i,o){for(var a,s,l,u,c,d,f=ut(t),h=[],v=0;v<f.length;v++){s=f[v],l=t[s];for(var p=0;p<l.edges.length;p++)a=l.edges[p],this.clusteredEdges[a.id]===void 0&&(a.toId==a.fromId?n[a.id]=a:a.toId==s?(u=i.id,c=a.fromId,d=c):(u=a.toId,c=i.id,d=u),t[d]===void 0&&h.push({edge:a,fromId:c,toId:u}))}for(var b=[],y=function(P){for(var O=0;O<b.length;O++){var C=b[O],k=P.fromId===C.fromId&&P.toId===C.toId,R=P.fromId===C.toId&&P.toId===C.fromId;if(k||R)return C}return null},g=0;g<h.length;g++){var m=h[g],$=m.edge,w=y(m);w===null?(w=this._createClusteredEdge(m.fromId,m.toId,$,o),b.push(w)):w.clusteringEdgeReplacingIds.push($.id),this.body.edges[$.id].edgeReplacedById=w.id,this._backupEdgeOptions($),$.setOptions({physics:!1})}}},{key:"_checkOptions",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.clusterEdgeProperties===void 0&&(t.clusterEdgeProperties={}),t.clusterNodeProperties===void 0&&(t.clusterNodeProperties={}),t}},{key:"_cluster",value:function(t,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=[];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&this.clusteredNodes[s]!==void 0&&a.push(s);for(var l=0;l<a.length;++l)delete t[a[l]];if(ut(t).length!=0&&!(ut(t).length==1&&i.clusterNodeProperties.allowSingleNodeCluster!=!0)){var u=Ge({},i.clusterNodeProperties);if(i.processProperties!==void 0){var c=[];for(var d in t)if(Object.prototype.hasOwnProperty.call(t,d)){var f=ur.cloneOptions(t[d]);c.push(f)}var h=[];for(var v in n)if(Object.prototype.hasOwnProperty.call(n,v)&&v.substr(0,12)!=="clusterEdge:"){var p=ur.cloneOptions(n[v],"edge");h.push(p)}if(u=i.processProperties(u,c,h),!u)throw new Error("The processProperties function does not return properties!")}u.id===void 0&&(u.id="cluster:"+Yc());var b=u.id;u.label===void 0&&(u.label="cluster");var y=void 0;u.x===void 0&&(y=this._getClusterPosition(t),u.x=y.x),u.y===void 0&&(y===void 0&&(y=this._getClusterPosition(t)),u.y=y.y),u.id=b;var g=this.body.functions.createNode(u,MDe);g.containedNodes=t,g.containedEdges=n,g.clusterEdgeProperties=i.clusterEdgeProperties,this.body.nodes[u.id]=g,this._clusterEdges(t,n,u,i.clusterEdgeProperties),u.id=void 0,o===!0&&this.body.emitter.emit("_dataChanged")}}},{key:"_backupEdgeOptions",value:function(t){this.clusteredEdges[t.id]===void 0&&(this.clusteredEdges[t.id]={physics:t.options.physics})}},{key:"_restoreEdge",value:function(t){var n=this.clusteredEdges[t.id];n!==void 0&&(t.setOptions({physics:n.physics}),delete this.clusteredEdges[t.id])}},{key:"isCluster",value:function(t){return this.body.nodes[t]!==void 0?this.body.nodes[t].isCluster===!0:(console.error("Node does not exist."),!1)}},{key:"_getClusterPosition",value:function(t){for(var n=ut(t),i=t[n[0]].x,o=t[n[0]].x,a=t[n[0]].y,s=t[n[0]].y,l,u=1;u<n.length;u++)l=t[n[u]],i=l.x<i?l.x:i,o=l.x>o?l.x:o,a=l.y<a?l.y:a,s=l.y>s?l.y:s;return{x:.5*(i+o),y:.5*(a+s)}}},{key:"openCluster",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(t===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var o=this.body.nodes[t];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:"+t+" is not a valid cluster.");var a=this.findNode(t),s=Ie(a).call(a,t)-1;if(s>=0){var l=a[s],u=this.body.nodes[l];u._openChildCluster(t),delete this.body.nodes[t],i===!0&&this.body.emitter.emit("_dataChanged");return}var c=o.containedNodes,d=o.containedEdges;if(n!==void 0&&n.releaseFunction!==void 0&&typeof n.releaseFunction=="function"){var f={},h={x:o.x,y:o.y};for(var v in c)if(Object.prototype.hasOwnProperty.call(c,v)){var p=this.body.nodes[v];f[v]={x:p.x,y:p.y}}var b=n.releaseFunction(h,f);for(var y in c)if(Object.prototype.hasOwnProperty.call(c,y)){var g=this.body.nodes[y];b[y]!==void 0&&(g.x=b[y].x===void 0?o.x:b[y].x,g.y=b[y].y===void 0?o.y:b[y].y)}}else be(c,function(x){x.options.fixed.x===!1&&(x.x=o.x),x.options.fixed.y===!1&&(x.y=o.y)});for(var m in c)if(Object.prototype.hasOwnProperty.call(c,m)){var $=this.body.nodes[m];$.vx=o.vx,$.vy=o.vy,$.setOptions({physics:!0}),delete this.clusteredNodes[m]}for(var w=[],S=0;S<o.edges.length;S++)w.push(o.edges[S]);for(var P=0;P<w.length;P++){for(var O=w[P],C=this._getConnectedId(O,t),k=this.clusteredNodes[C],R=0;R<O.clusteringEdgeReplacingIds.length;R++){var D=O.clusteringEdgeReplacingIds[R],z=this.body.edges[D];if(z!==void 0)if(k!==void 0){var X=this.body.nodes[k.clusterId];X.containedEdges[z.id]=z,delete d[z.id];var Z=z.fromId,F=z.toId;z.toId==C?F=k.clusterId:Z=k.clusterId,this._createClusteredEdge(Z,F,z,X.clusterEdgeProperties,{hidden:!1,physics:!0})}else this._restoreEdge(z)}O.remove()}for(var ee in d)Object.prototype.hasOwnProperty.call(d,ee)&&this._restoreEdge(d[ee]);delete this.body.nodes[t],i===!0&&this.body.emitter.emit("_dataChanged")}},{key:"getNodesInCluster",value:function(t){var n=[];if(this.isCluster(t)===!0){var i=this.body.nodes[t].containedNodes;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&n.push(this.body.nodes[o].id)}return n}},{key:"findNode",value:function(t){for(var n=[],i=100,o=0,a;this.clusteredNodes[t]!==void 0&&o<i;){if(a=this.body.nodes[t],a===void 0)return[];n.push(a.id),t=this.clusteredNodes[t].clusterId,o++}return a=this.body.nodes[t],a===void 0?[]:(n.push(a.id),Ua(n).call(n),n)}},{key:"updateClusteredNode",value:function(t,n){if(t===void 0)throw new Error("No clusteredNodeId supplied to updateClusteredNode.");if(n===void 0)throw new Error("No newOptions supplied to updateClusteredNode.");if(this.body.nodes[t]===void 0)throw new Error("The clusteredNodeId supplied to updateClusteredNode does not exist.");this.body.nodes[t].setOptions(n),this.body.emitter.emit("_dataChanged")}},{key:"updateEdge",value:function(t,n){if(t===void 0)throw new Error("No startEdgeId supplied to updateEdge.");if(n===void 0)throw new Error("No newOptions supplied to updateEdge.");if(this.body.edges[t]===void 0)throw new Error("The startEdgeId supplied to updateEdge does not exist.");for(var i=this.getClusteredEdges(t),o=0;o<i.length;o++){var a=this.body.edges[i[o]];a.setOptions(n)}this.body.emitter.emit("_dataChanged")}},{key:"getClusteredEdges",value:function(t){for(var n=[],i=100,o=0;t!==void 0&&this.body.edges[t]!==void 0&&o<i;)n.push(this.body.edges[t].id),t=this.body.edges[t].edgeReplacedById,o++;return Ua(n).call(n),n}},{key:"getBaseEdge",value:function(t){return this.getBaseEdges(t)[0]}},{key:"getBaseEdges",value:function(t){for(var n=[t],i=[],o=[],a=100,s=0;n.length>0&&s<a;){var l=n.pop();if(l!==void 0){var u=this.body.edges[l];if(u!==void 0){s++;var c=u.clusteringEdgeReplacingIds;if(c===void 0)o.push(l);else for(var d=0;d<c.length;++d){var f=c[d];Ie(n).call(n,c)!==-1||Ie(i).call(i,c)!==-1||n.push(f)}i.push(l)}}}return o}},{key:"_getConnectedId",value:function(t,n){return t.toId!=n?t.toId:(t.fromId!=n,t.fromId)}},{key:"_getHubSize",value:function(){for(var t=0,n=0,i=0,o=0,a=0;a<this.body.nodeIndices.length;a++){var s=this.body.nodes[this.body.nodeIndices[a]];s.edges.length>o&&(o=s.edges.length),t+=s.edges.length,n+=Math.pow(s.edges.length,2),i+=1}t=t/i,n=n/i;var l=n-Math.pow(t,2),u=Math.sqrt(l),c=Math.floor(t+2*u);return c>o&&(c=o),c}},{key:"_createClusteredEdge",value:function(t,n,i,o,a){var s=ur.cloneOptions(i,"edge");Ge(s,o),s.from=t,s.to=n,s.id="clusterEdge:"+Yc(),a!==void 0&&Ge(s,a);var l=this.body.functions.createEdge(s);return l.clusteringEdgeReplacingIds=[i.id],l.connect(),this.body.edges[l.id]=l,l}},{key:"_clusterEdges",value:function(t,n,i,o){if(n instanceof kl){var a=n,s={};s[a.id]=a,n=s}if(t instanceof Br){var l=t,u={};u[l.id]=l,t=u}if(i==null)throw new Error("_clusterEdges: parameter clusterNode required");o===void 0&&(o=i.clusterEdgeProperties),this._createClusterEdges(t,n,i,o);for(var c in n)if(Object.prototype.hasOwnProperty.call(n,c)&&this.body.edges[c]!==void 0){var d=this.body.edges[c];this._backupEdgeOptions(d),d.setOptions({physics:!1})}for(var f in t)Object.prototype.hasOwnProperty.call(t,f)&&(this.clusteredNodes[f]={clusterId:i.id,node:this.body.nodes[f]},this.body.nodes[f].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(t){if(t!==void 0){var n=this.clusteredNodes[t];if(n!==void 0){var i=n.clusterId;if(i!==void 0)return this.body.nodes[i]}}}},{key:"_filter",value:function(t,n){var i=[];return be(t,function(o){n(o)&&i.push(o)}),i}},{key:"_updateState",value:function(){var t=this,n,i=[],o={},a=function(v){be(t.body.nodes,function(p){p.isCluster===!0&&v(p)})};for(n in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,n)){var s=this.body.nodes[n];s===void 0&&i.push(n)}a(function(h){for(var v=0;v<i.length;v++)delete h.containedNodes[i[v]]});for(var l=0;l<i.length;l++)delete this.clusteredNodes[i[l]];be(this.clusteredEdges,function(h){var v=t.body.edges[h];(v===void 0||!v.endPointsValid())&&(o[h]=h)}),a(function(h){be(h.containedEdges,function(v,p){!v.endPointsValid()&&!o[p]&&(o[p]=p)})}),be(this.body.edges,function(h,v){var p=!0,b=h.clusteringEdgeReplacingIds;if(b!==void 0){var y=0;be(b,function(g){var m=t.body.edges[g];m!==void 0&&m.endPointsValid()&&(y+=1)}),p=y>0}(!h.endPointsValid()||!p)&&(o[v]=v)}),a(function(h){be(o,function(v){delete h.containedEdges[v],be(h.edges,function(p,b){if(p.id===v){h.edges[b]=null;return}p.clusteringEdgeReplacingIds=t._filter(p.clusteringEdgeReplacingIds,function(y){return!o[y]})}),h.edges=t._filter(h.edges,function(p){return p!==null})})}),be(o,function(h){delete t.clusteredEdges[h]}),be(o,function(h){delete t.body.edges[h]});var u=ut(this.body.edges);be(u,function(h){var v=t.body.edges[h],p=t._isClusteredNode(v.fromId)||t._isClusteredNode(v.toId);if(p!==t._isClusteredEdge(v.id))if(p){var b=t._getClusterNodeForNode(v.fromId);b!==void 0&&t._clusterEdges(t.body.nodes[v.fromId],v,b);var y=t._getClusterNodeForNode(v.toId);y!==void 0&&t._clusterEdges(t.body.nodes[v.toId],v,y)}else delete t._clusterEdges[h],t._restoreEdge(v)});for(var c=!1,d=!0,f=function(){var v=[];a(function(b){var y=ut(b.containedNodes).length,g=b.options.allowSingleNodeCluster===!0;(g&&y<1||!g&&y<2)&&v.push(b.id)});for(var p=0;p<v.length;++p)t.openCluster(v[p],{},!1);d=v.length>0,c=c||d};d;)f();c&&this._updateState()}},{key:"_isClusteredNode",value:function(t){return this.clusteredNodes[t]!==void 0}},{key:"_isClusteredEdge",value:function(t){return this.clusteredEdges[t]!==void 0}}]),e}();function DDe(){var e;window!==void 0&&(e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),e===void 0?window.requestAnimationFrame=function(r){r()}:window.requestAnimationFrame=e}var FDe=function(){function e(r,t){q(this,e),DDe(),this.body=r,this.canvas=t,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},wt(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return Y(e,[{key:"bindEventListeners",value:function(){var t=this,n;this.body.emitter.on("dragStart",function(){t.dragging=!0}),this.body.emitter.on("dragEnd",function(){t.dragging=!1}),this.body.emitter.on("zoom",function(){t.zooming=!0,window.clearTimeout(t.zoomTimeoutId),t.zoomTimeoutId=yi(function(){var i;t.zooming=!1,V(i=t._requestRedraw).call(i,t)()},250)}),this.body.emitter.on("_resizeNodes",function(){t._resizeNodes()}),this.body.emitter.on("_redraw",function(){t.renderingActive===!1&&t._redraw()}),this.body.emitter.on("_blockRedraw",function(){t.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){t.allowRedraw=!0,t.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",V(n=this._requestRedraw).call(n,this)),this.body.emitter.on("_startRendering",function(){t.renderRequests+=1,t.renderingActive=!0,t._startRendering()}),this.body.emitter.on("_stopRendering",function(){t.renderRequests-=1,t.renderingActive=t.renderRequests>0,t.renderTimer=void 0}),this.body.emitter.on("destroy",function(){t.renderRequests=0,t.allowRedraw=!1,t.renderingActive=!1,t.requiresTimeout===!0?clearTimeout(t.renderTimer):window.cancelAnimationFrame(t.renderTimer),t.body.emitter.off()})}},{key:"setOptions",value:function(t){if(t!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];Ju(n,this.options,t)}}},{key:"_requestNextFrame",value:function(t,n){if(!(typeof window>"u")){var i,o=window;return this.requiresTimeout===!0?i=yi(t,n):o.requestAnimationFrame&&(i=o.requestAnimationFrame(t)),i}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var t;this.renderTimer=this._requestNextFrame(V(t=this._renderStep).call(t,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 t=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){t._redraw(!1)},0))}},{key:"_redraw",value:function(){var t=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 i=this.canvas.getContext(),o=this.canvas.frame.canvas.clientWidth,a=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,o,a),this.canvas.frame.clientWidth===0)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit("beforeDrawing",i),i.closePath(),t===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(i),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){var s=this._drawNodes(i,t),l=s.drawExternalLabels;n.drawExternalLabels=l}t===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(i),n.drawExternalLabels!=null&&n.drawExternalLabels(),t===!1&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),t===!0&&i.clearRect(0,0,o,a)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var t=this.canvas.getContext();t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale);var n=this.body.nodes,i;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i=n[o],i.resize(t),i.updateBoundingBox(t,i.selected));t.restore()}},{key:"_drawNodes",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.nodes,o=this.body.nodeIndices,a,s=[],l=[],u=20,c=this.canvas.DOMtoCanvas({x:-u,y:-u}),d=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+u,y:this.canvas.frame.canvas.clientHeight+u}),f={top:c.y,left:c.x,bottom:d.y,right:d.x},h=[],v=0;v<o.length;v++)if(a=i[o[v]],a.hover)l.push(o[v]);else if(a.isSelected())s.push(o[v]);else if(n===!0){var p=a.draw(t);p.drawExternalLabel!=null&&h.push(p.drawExternalLabel)}else if(a.isBoundingBoxOverlappingWith(f)===!0){var b=a.draw(t);b.drawExternalLabel!=null&&h.push(b.drawExternalLabel)}else a.updateBoundingBox(t,a.selected);var y,g=s.length,m=l.length;for(y=0;y<g;y++){a=i[s[y]];var $=a.draw(t);$.drawExternalLabel!=null&&h.push($.drawExternalLabel)}for(y=0;y<m;y++){a=i[l[y]];var w=a.draw(t);w.drawExternalLabel!=null&&h.push(w.drawExternalLabel)}return{drawExternalLabels:function(){for(var P=0,O=h;P<O.length;P++){var C=O[P];C()}}}}},{key:"_drawEdges",value:function(t){for(var n=this.body.edges,i=this.body.edgeIndices,o=0;o<i.length;o++){var a=n[i[o]];a.connected===!0&&a.draw(t)}}},{key:"_drawArrows",value:function(t){for(var n=this.body.edges,i=this.body.edgeIndices,o=0;o<i.length;o++){var a=n[i[o]];a.connected===!0&&a.drawArrows(t)}}},{key:"_determineBrowserMethod",value:function(){if(typeof window<"u"){var t=navigator.userAgent.toLowerCase();this.requiresTimeout=!1,Ie(t).call(t,"msie 9.0")!=-1?this.requiresTimeout=!0:Ie(t).call(t,"safari")!=-1&&Ie(t).call(t,"chrome")<=-1&&(this.requiresTimeout=!0)}else this.requiresTimeout=!0}},{key:"_drawSelectionBox",value:function(t){if(this.body.selectionBox.show){t.beginPath();var n=this.body.selectionBox.position.end.x-this.body.selectionBox.position.start.x,i=this.body.selectionBox.position.end.y-this.body.selectionBox.position.start.y;t.rect(this.body.selectionBox.position.start.x,this.body.selectionBox.position.start.y,n,i),t.fillStyle="rgba(151, 194, 252, 0.2)",t.fillRect(this.body.selectionBox.position.start.x,this.body.selectionBox.position.start.y,n,i),t.strokeStyle="rgba(151, 194, 252, 1)",t.stroke()}else t.closePath()}}]),e}(),LDe=Ae,jDe=LDe.setInterval,BDe=jDe,zDe=le(BDe);function Kp(e,r){r.inputHandler=function(t){t.isFirst&&r(t)},e.on("hammer.input",r.inputHandler)}function Cz(e,r){return r.inputHandler=function(t){t.isFinal&&r(t)},e.on("hammer.input",r.inputHandler)}var HDe=function(){function e(r){q(this,e),this.body=r,this.pixelRatio=1,this.cameraState={},this.initialized=!1,this.canvasViewCenter={},this._cleanupCallbacks=[],this.options={},this.defaultOptions={autoResize:!0,height:"100%",width:"100%"},wt(this.options,this.defaultOptions),this.bindEventListeners()}return Y(e,[{key:"bindEventListeners",value:function(){var t=this,n;this.body.emitter.once("resize",function(i){i.width!==0&&(t.body.view.translation.x=i.width*.5),i.height!==0&&(t.body.view.translation.y=i.height*.5)}),this.body.emitter.on("setSize",V(n=this.setSize).call(n,this)),this.body.emitter.on("destroy",function(){t.hammerFrame.destroy(),t.hammer.destroy(),t._cleanUp()})}},{key:"setOptions",value:function(t){var n=this;if(t!==void 0){var i=["width","height","autoResize"];Ju(i,this.options,t)}if(this._cleanUp(),this.options.autoResize===!0){var o;if(window.ResizeObserver){var a=new ResizeObserver(function(){var c=n.setSize();c===!0&&n.body.emitter.emit("_requestRedraw")}),s=this.frame;a.observe(s),this._cleanupCallbacks.push(function(){a.unobserve(s)})}else{var l=zDe(function(){var c=n.setSize();c===!0&&n.body.emitter.emit("_requestRedraw")},1e3);this._cleanupCallbacks.push(function(){clearInterval(l)})}var u=V(o=this._onResize).call(o,this);window.addEventListener("resize",u),this._cleanupCallbacks.push(function(){window.removeEventListener("resize",u)})}}},{key:"_cleanUp",value:function(){var t,n,i;Ve(t=Ua(n=Hi(i=this._cleanupCallbacks).call(i,0)).call(n)).call(t,function(o){try{o()}catch(a){console.error(a)}})}},{key:"_onResize",value:function(){this.setSize(),this.body.emitter.emit("_redraw")}},{key:"_getCameraState",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/t,this.cameraState.previousHeight=this.frame.canvas.height/t,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/t,y:.5*this.frame.canvas.height/t}))}},{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 t=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,n=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;t!=1&&n!=1?i=this.cameraState.scale*.5*(t+n):t!=1?i=this.cameraState.scale*t:n!=1&&(i=this.cameraState.scale*n),this.body.view.scale=i;var o=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),a={x:o.x-this.cameraState.position.x,y:o.y-this.cameraState.position.y};this.body.view.translation.x+=a.x*this.body.view.scale,this.body.view.translation.y+=a.y*this.body.view.scale}}},{key:"_prepareValue",value:function(t){if(typeof t=="number")return t+"px";if(typeof t=="string"){if(Ie(t).call(t,"%")!==-1||Ie(t).call(t,"px")!==-1)return t;if(Ie(t).call(t,"%")===-1)return t+"px"}throw new Error("Could not use the value supplied for width or height:"+t)}},{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 t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}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 t=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new xl(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:xl.DIRECTION_ALL}),Kp(this.hammer,function(n){t.body.eventListeners.onTouch(n)}),this.hammer.on("tap",function(n){t.body.eventListeners.onTap(n)}),this.hammer.on("doubletap",function(n){t.body.eventListeners.onDoubleTap(n)}),this.hammer.on("press",function(n){t.body.eventListeners.onHold(n)}),this.hammer.on("panstart",function(n){t.body.eventListeners.onDragStart(n)}),this.hammer.on("panmove",function(n){t.body.eventListeners.onDrag(n)}),this.hammer.on("panend",function(n){t.body.eventListeners.onDragEnd(n)}),this.hammer.on("pinch",function(n){t.body.eventListeners.onPinch(n)}),this.frame.canvas.addEventListener("wheel",function(n){t.body.eventListeners.onMouseWheel(n)}),this.frame.canvas.addEventListener("mousemove",function(n){t.body.eventListeners.onMouseMove(n)}),this.frame.canvas.addEventListener("contextmenu",function(n){t.body.eventListeners.onContext(n)}),this.hammerFrame=new xl(this.frame),Cz(this.hammerFrame,function(n){t.body.eventListeners.onRelease(n)})}},{key:"setSize",value:function(){var t=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;t=this._prepareValue(t),n=this._prepareValue(n);var i=!1,o=this.frame.canvas.width,a=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),t!=this.options.width||n!=this.options.height||this.frame.style.width!=t||this.frame.style.height!=n)this._getCameraState(s),this.frame.style.width=t,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=t,this.options.height=n,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var l=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),u=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==l||this.frame.canvas.height!==u)&&this._getCameraState(s),this.frame.canvas.width!==l&&(this.frame.canvas.width=l,i=!0),this.frame.canvas.height!==u&&(this.frame.canvas.height=u,i=!0)}return i===!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(a/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var t=this.getContext();if(t===void 0)throw new Error("Could not get canvax context");var n=1;typeof window<"u"&&(n=window.devicePixelRatio||1);var i=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return n/i}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var t=this.getContext();if(t===void 0)throw new Error("Could not get canvax context");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(t){return{x:this._XconvertCanvasToDOM(t.x),y:this._YconvertCanvasToDOM(t.y)}}},{key:"DOMtoCanvas",value:function(t){return{x:this._XconvertDOMtoCanvas(t.x),y:this._YconvertDOMtoCanvas(t.y)}}}]),e}();function WDe(e,r){var t=wt({nodes:r,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},e??{});if(!Be(t.nodes))throw new TypeError("Nodes has to be an array of ids.");if(t.nodes.length===0&&(t.nodes=r),!(typeof t.minZoomLevel=="number"&&t.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof t.maxZoomLevel=="number"&&t.minZoomLevel<=t.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return t}var UDe=function(){function e(r,t){var n,i=this,o;q(this,e),this.body=r,this.canvas=t,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",V(n=this.fit).call(n,this)),this.body.emitter.on("animationFinished",function(){i.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",V(o=this.releaseNode).call(o,this))}return Y(e,[{key:"setOptions",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=t}},{key:"fit",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;t=WDe(t,this.body.nodeIndices);var i=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight,a,s;if(i===0||o===0)s=1,a=ur.getRange(this.body.nodes,t.nodes);else if(n===!0){var l=0;for(var u in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,u)){var c=this.body.nodes[u];c.predefinedPosition===!0&&(l+=1)}if(l>.5*this.body.nodeIndices.length){this.fit(t,!1);return}a=ur.getRange(this.body.nodes,t.nodes);var d=this.body.nodeIndices.length;s=12.662/(d+7.4147)+.0964822;var f=Math.min(i/600,o/600);s*=f}else{this.body.emitter.emit("_resizeNodes"),a=ur.getRange(this.body.nodes,t.nodes);var h=Math.abs(a.maxX-a.minX)*1.1,v=Math.abs(a.maxY-a.minY)*1.1,p=i/h,b=o/v;s=p<=b?p:b}s>t.maxZoomLevel?s=t.maxZoomLevel:s<t.minZoomLevel&&(s=t.minZoomLevel);var y=ur.findCenter(a),g={position:y,scale:s,animation:t.animation};this.moveTo(g)}},{key:"focus",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[t]!==void 0){var i={x:this.body.nodes[t].x,y:this.body.nodes[t].y};n.position=i,n.lockedOnNode=t,this.moveTo(n)}else console.error("Node: "+t+" cannot be found.")}},{key:"moveTo",value:function(t){if(t===void 0){t={};return}if(t.offset!=null){if(t.offset.x!=null){if(t.offset.x=+t.offset.x,!Pa(t.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else t.offset.x=0;if(t.offset.y!=null){if(t.offset.y=+t.offset.y,!Pa(t.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else t.offset.x=0}else t.offset={x:0,y:0};if(t.position!=null){if(t.position.x!=null){if(t.position.x=+t.position.x,!Pa(t.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else t.position.x=0;if(t.position.y!=null){if(t.position.y=+t.position.y,!Pa(t.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else t.position.x=0}else t.position=this.getViewPosition();if(t.scale!=null){if(t.scale=+t.scale,!(t.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else t.scale=this.body.view.scale;t.animation===void 0&&(t.animation={duration:0}),t.animation===!1&&(t.animation={duration:0}),t.animation===!0&&(t.animation={}),t.animation.duration===void 0&&(t.animation.duration=1e3),t.animation.easingFunction===void 0&&(t.animation.easingFunction="easeInOutQuad"),this.animateView(t)}},{key:"animateView",value:function(t){if(t!==void 0){this.animationEasingFunction=t.animation.easingFunction,this.releaseNode(),t.locked===!0&&(this.lockedOnNodeId=t.lockedOnNode,this.lockedOnNodeOffset=t.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=t.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}),i={x:n.x-t.position.x,y:n.y-t.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+i.x*this.targetScale+t.offset.x,y:this.sourceTranslation.y+i.y*this.targetScale+t.offset.y},t.animation.duration===0)if(this.lockedOnNodeId!=null){var o;this.viewFunction=V(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 a;this.animationSpeed=1/(60*t.animation.duration*.001)||1/60,this.animationEasingFunction=t.animation.easingFunction,this.viewFunction=V(a=this._transitionRedraw).call(a,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var t={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}),i={x:n.x-t.x,y:n.y-t.y},o=this.body.view.translation,a={x:o.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=a}},{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 t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=t===!0?1:this.easingTime;var n=Cke[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 i;this.viewFunction=V(i=this._lockedRedraw).call(i,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})}}]),e}();function GR(e){var r=e&&e.preventDefault||!1,t=e&&e.container||window,n={},i={keydown:{},keyup:{}},o={},a;for(a=97;a<=122;a++)o[String.fromCharCode(a)]={code:65+(a-97),shift:!1};for(a=65;a<=90;a++)o[String.fromCharCode(a)]={code:a,shift:!0};for(a=0;a<=9;a++)o[""+a]={code:48+a,shift:!1};for(a=1;a<=12;a++)o["F"+a]={code:111+a,shift:!1};for(a=0;a<=9;a++)o["num"+a]={code:96+a,shift:!1};o["num*"]={code:106,shift:!1},o["num+"]={code:107,shift:!1},o["num-"]={code:109,shift:!1},o["num/"]={code:111,shift:!1},o["num."]={code:110,shift:!1},o.left={code:37,shift:!1},o.up={code:38,shift:!1},o.right={code:39,shift:!1},o.down={code:40,shift:!1},o.space={code:32,shift:!1},o.enter={code:13,shift:!1},o.shift={code:16,shift:void 0},o.esc={code:27,shift:!1},o.backspace={code:8,shift:!1},o.tab={code:9,shift:!1},o.ctrl={code:17,shift:!1},o.alt={code:18,shift:!1},o.delete={code:46,shift:!1},o.pageup={code:33,shift:!1},o.pagedown={code:34,shift:!1},o["="]={code:187,shift:!1},o["-"]={code:189,shift:!1},o["]"]={code:221,shift:!1},o["["]={code:219,shift:!1};var s=function(c){u(c,"keydown")},l=function(c){u(c,"keyup")},u=function(c,d){if(i[d][c.keyCode]!==void 0){for(var f=i[d][c.keyCode],h=0;h<f.length;h++)(f[h].shift===void 0||f[h].shift==!0&&c.shiftKey==!0||f[h].shift==!1&&c.shiftKey==!1)&&f[h].fn(c);r==!0&&c.preventDefault()}};return n.bind=function(c,d,f){if(f===void 0&&(f="keydown"),o[c]===void 0)throw new Error("unsupported key: "+c);i[f][o[c].code]===void 0&&(i[f][o[c].code]=[]),i[f][o[c].code].push({fn:d,shift:o[c].shift})},n.bindAll=function(c,d){d===void 0&&(d="keydown");for(var f in o)o.hasOwnProperty(f)&&n.bind(f,c,d)},n.getKey=function(c){for(var d in o)if(o.hasOwnProperty(d)){if(c.shiftKey==!0&&o[d].shift==!0&&c.keyCode==o[d].code)return d;if(c.shiftKey==!1&&o[d].shift==!1&&c.keyCode==o[d].code)return d;if(c.keyCode==o[d].code&&d=="shift")return d}return"unknown key, currently not supported"},n.unbind=function(c,d,f){if(f===void 0&&(f="keydown"),o[c]===void 0)throw new Error("unsupported key: "+c);if(d!==void 0){var h=[],v=i[f][o[c].code];if(v!==void 0)for(var p=0;p<v.length;p++)v[p].fn==d&&v[p].shift==o[c].shift||h.push(i[f][o[c].code][p]);i[f][o[c].code]=h}else i[f][o[c].code]=[]},n.reset=function(){i={keydown:{},keyup:{}}},n.destroy=function(){i={keydown:{},keyup:{}},t.removeEventListener("keydown",s,!0),t.removeEventListener("keyup",l,!0)},t.addEventListener("keydown",s,!0),t.addEventListener("keyup",l,!0),n}var VDe=function(){function e(r,t){var n=this;q(this,e),this.body=r,this.canvas=t,this.iconsCreated=!1,this.navigationHammers=[],this.boundFunctions={},this.touchTime=0,this.activated=!1,this.body.emitter.on("activate",function(){n.activated=!0,n.configureKeyboardBindings()}),this.body.emitter.on("deactivate",function(){n.activated=!1,n.configureKeyboardBindings()}),this.body.emitter.on("destroy",function(){n.keycharm!==void 0&&n.keycharm.destroy()}),this.options={}}return Y(e,[{key:"setOptions",value:function(t){t!==void 0&&(this.options=t,this.create())}},{key:"create",value:function(){this.options.navigationButtons===!0?this.iconsCreated===!1&&this.loadNavigationElements():this.iconsCreated===!0&&this.cleanNavigation(),this.configureKeyboardBindings()}},{key:"cleanNavigation",value:function(){if(this.navigationHammers.length!=0){for(var t=0;t<this.navigationHammers.length;t++)this.navigationHammers[t].destroy();this.navigationHammers=[]}this.navigationDOM&&this.navigationDOM.wrapper&&this.navigationDOM.wrapper.parentNode&&this.navigationDOM.wrapper.parentNode.removeChild(this.navigationDOM.wrapper),this.iconsCreated=!1}},{key:"loadNavigationElements",value:function(){var t=this;this.cleanNavigation(),this.navigationDOM={};var n=["up","down","left","right","zoomIn","zoomOut","zoomExtends"],i=["_moveUp","_moveDown","_moveLeft","_moveRight","_zoomIn","_zoomOut","_fit"];this.navigationDOM.wrapper=document.createElement("div"),this.navigationDOM.wrapper.className="vis-navigation",this.canvas.frame.appendChild(this.navigationDOM.wrapper);for(var o=0;o<n.length;o++){this.navigationDOM[n[o]]=document.createElement("div"),this.navigationDOM[n[o]].className="vis-button vis-"+n[o],this.navigationDOM.wrapper.appendChild(this.navigationDOM[n[o]]);var a=new xl(this.navigationDOM[n[o]]);if(i[o]==="_fit"){var s;Kp(a,V(s=this._fit).call(s,this))}else{var l;Kp(a,V(l=this.bindToRedraw).call(l,this,i[o]))}this.navigationHammers.push(a)}var u=new xl(this.canvas.frame);Cz(u,function(){t._stopMovement()}),this.navigationHammers.push(u),this.iconsCreated=!0}},{key:"bindToRedraw",value:function(t){if(this.boundFunctions[t]===void 0){var n;this.boundFunctions[t]=V(n=this[t]).call(n,this),this.body.emitter.on("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_startRendering")}}},{key:"unbindFromRedraw",value:function(t){this.boundFunctions[t]!==void 0&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"),delete this.boundFunctions[t])}},{key:"_fit",value:function(){new Date().valueOf()-this.touchTime>700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}},{key:"_stopMovement",value:function(){for(var t in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,t)&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),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 t=this.body.view.scale,n=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/t,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var t=this.body.view.scale,n=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/t,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var t=this;if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=GR({container:window,preventDefault:!0}):this.keycharm=GR({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var n,i,o,a,s,l,u,c,d,f,h,v,p,b,y,g,m,$,w,S,P,O,C,k;V(n=this.keycharm).call(n,"up",function(){t.bindToRedraw("_moveUp")},"keydown"),V(i=this.keycharm).call(i,"down",function(){t.bindToRedraw("_moveDown")},"keydown"),V(o=this.keycharm).call(o,"left",function(){t.bindToRedraw("_moveLeft")},"keydown"),V(a=this.keycharm).call(a,"right",function(){t.bindToRedraw("_moveRight")},"keydown"),V(s=this.keycharm).call(s,"=",function(){t.bindToRedraw("_zoomIn")},"keydown"),V(l=this.keycharm).call(l,"num+",function(){t.bindToRedraw("_zoomIn")},"keydown"),V(u=this.keycharm).call(u,"num-",function(){t.bindToRedraw("_zoomOut")},"keydown"),V(c=this.keycharm).call(c,"-",function(){t.bindToRedraw("_zoomOut")},"keydown"),V(d=this.keycharm).call(d,"[",function(){t.bindToRedraw("_zoomOut")},"keydown"),V(f=this.keycharm).call(f,"]",function(){t.bindToRedraw("_zoomIn")},"keydown"),V(h=this.keycharm).call(h,"pageup",function(){t.bindToRedraw("_zoomIn")},"keydown"),V(v=this.keycharm).call(v,"pagedown",function(){t.bindToRedraw("_zoomOut")},"keydown"),V(p=this.keycharm).call(p,"up",function(){t.unbindFromRedraw("_moveUp")},"keyup"),V(b=this.keycharm).call(b,"down",function(){t.unbindFromRedraw("_moveDown")},"keyup"),V(y=this.keycharm).call(y,"left",function(){t.unbindFromRedraw("_moveLeft")},"keyup"),V(g=this.keycharm).call(g,"right",function(){t.unbindFromRedraw("_moveRight")},"keyup"),V(m=this.keycharm).call(m,"=",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),V($=this.keycharm).call($,"num+",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),V(w=this.keycharm).call(w,"num-",function(){t.unbindFromRedraw("_zoomOut")},"keyup"),V(S=this.keycharm).call(S,"-",function(){t.unbindFromRedraw("_zoomOut")},"keyup"),V(P=this.keycharm).call(P,"[",function(){t.unbindFromRedraw("_zoomOut")},"keyup"),V(O=this.keycharm).call(O,"]",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),V(C=this.keycharm).call(C,"pageup",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),V(k=this.keycharm).call(k,"pagedown",function(){t.unbindFromRedraw("_zoomOut")},"keyup")}}}]),e}();function KDe(e,r){var t=typeof ca<"u"&&Ps(e)||e["@@iterator"];if(!t){if(Be(e)||(t=GDe(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
152
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}function GDe(e,r){var t;if(e){if(typeof e=="string")return qR(e,r);var n=Ut(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Os(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qR(e,r)}}function qR(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var qDe=function(){function e(r,t,n){var i,o,a,s,l,u,c,d,f,h,v,p,b;q(this,e),this.body=r,this.canvas=t,this.selectionHandler=n,this.navigationHandler=new VDe(r,t),this.body.eventListeners.onTap=V(i=this.onTap).call(i,this),this.body.eventListeners.onTouch=V(o=this.onTouch).call(o,this),this.body.eventListeners.onDoubleTap=V(a=this.onDoubleTap).call(a,this),this.body.eventListeners.onHold=V(s=this.onHold).call(s,this),this.body.eventListeners.onDragStart=V(l=this.onDragStart).call(l,this),this.body.eventListeners.onDrag=V(u=this.onDrag).call(u,this),this.body.eventListeners.onDragEnd=V(c=this.onDragEnd).call(c,this),this.body.eventListeners.onMouseWheel=V(d=this.onMouseWheel).call(d,this),this.body.eventListeners.onPinch=V(f=this.onPinch).call(f,this),this.body.eventListeners.onMouseMove=V(h=this.onMouseMove).call(h,this),this.body.eventListeners.onRelease=V(v=this.onRelease).call(v,this),this.body.eventListeners.onContext=V(p=this.onContext).call(p,this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=V(b=this.getPointer).call(b,this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0,autoFocus:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0,zoomSpeed:1},wt(this.options,this.defaultOptions),this.bindEventListeners()}return Y(e,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("destroy",function(){clearTimeout(t.popupTimer),delete t.body.functions.getPointer})}},{key:"setOptions",value:function(t){if(t!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"];Hp(n,this.options,t),ln(this.options,t,"keyboard"),t.tooltip&&(wt(this.options.tooltip,t.tooltip),t.tooltip.color&&(this.options.tooltip.color=sw(t.tooltip.color)))}this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(t){return{x:t.x-_ke(this.canvas.frame.canvas),y:t.y-Eke(this.canvas.frame.canvas)}}},{key:"onTouch",value:function(t){new Date().valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(t.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(t){var n=this.getPointer(t.center),i=this.selectionHandler.options.multiselect&&(t.changedPointers[0].ctrlKey||t.changedPointers[0].metaKey);this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,t),this.selectionHandler.generateClickEvent("click",t,n)}},{key:"onDoubleTap",value:function(t){var n=this.getPointer(t.center);this.selectionHandler.generateClickEvent("doubleClick",t,n)}},{key:"onHold",value:function(t){var n=this.getPointer(t.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,t),this.selectionHandler.generateClickEvent("click",t,n),this.selectionHandler.generateClickEvent("hold",t,n)}},{key:"onRelease",value:function(t){if(new Date().valueOf()-this.touchTime>10){var n=this.getPointer(t.center);this.selectionHandler.generateClickEvent("release",t,n),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(t){var n=this.getPointer({x:t.clientX,y:t.clientY});this.selectionHandler.generateClickEvent("oncontext",t,n)}},{key:"checkSelectionChanges",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n===!0?this.selectionHandler.selectAdditionalOnPoint(t):this.selectionHandler.selectOnPoint(t)}},{key:"_determineDifference",value:function(t,n){var i=function(a,s){for(var l=[],u=0;u<a.length;u++){var c=a[u];Ie(s).call(s,c)===-1&&l.push(c)}return l};return{nodes:i(t.nodes,n.nodes),edges:i(t.edges,n.edges)}}},{key:"onDragStart",value:function(t){if(!this.drag.dragging){this.drag.pointer===void 0&&this.onTouch(t);var n=this.selectionHandler.getNodeAt(this.drag.pointer);if(this.drag.dragging=!0,this.drag.selection=[],this.drag.translation=wt({},this.body.view.translation),this.drag.nodeId=void 0,t.srcEvent.shiftKey){this.body.selectionBox.show=!0;var i=this.getPointer(t.center);this.body.selectionBox.position.start={x:this.canvas._XconvertDOMtoCanvas(i.x),y:this.canvas._YconvertDOMtoCanvas(i.y)},this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(i.x),y:this.canvas._YconvertDOMtoCanvas(i.y)}}else if(n!==void 0&&this.options.dragNodes===!0){this.drag.nodeId=n.id,n.isSelected()===!1&&this.selectionHandler.setSelection({nodes:[n.id]}),this.selectionHandler.generateClickEvent("dragStart",t,this.drag.pointer);var o=KDe(this.selectionHandler.getSelectedNodes()),a;try{for(o.s();!(a=o.n()).done;){var s=a.value,l={id:s.id,node:s,x:s.x,y:s.y,xFixed:s.options.fixed.x,yFixed:s.options.fixed.y};s.options.fixed.x=!0,s.options.fixed.y=!0,this.drag.selection.push(l)}}catch(u){o.e(u)}finally{o.f()}}else this.selectionHandler.generateClickEvent("dragStart",t,this.drag.pointer,void 0,!0)}}},{key:"onDrag",value:function(t){var n=this;if(this.drag.pinched!==!0){this.body.emitter.emit("unlockNode");var i=this.getPointer(t.center),o=this.drag.selection;if(o&&o.length&&this.options.dragNodes===!0){this.selectionHandler.generateClickEvent("dragging",t,i);var a=i.x-this.drag.pointer.x,s=i.y-this.drag.pointer.y;Ve(o).call(o,function(c){var d=c.node;c.xFixed===!1&&(d.x=n.canvas._XconvertDOMtoCanvas(n.canvas._XconvertCanvasToDOM(c.x)+a)),c.yFixed===!1&&(d.y=n.canvas._YconvertDOMtoCanvas(n.canvas._YconvertCanvasToDOM(c.y)+s))}),this.body.emitter.emit("startSimulation")}else{if(t.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",t,i,void 0,!0),this.drag.pointer===void 0){this.onDragStart(t);return}this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(i.x),y:this.canvas._YconvertDOMtoCanvas(i.y)},this.body.emitter.emit("_requestRedraw")}if(this.options.dragView===!0&&!t.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",t,i,void 0,!0),this.drag.pointer===void 0){this.onDragStart(t);return}var l=i.x-this.drag.pointer.x,u=i.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+l,y:this.drag.translation.y+u},this.body.emitter.emit("_requestRedraw")}}}}},{key:"onDragEnd",value:function(t){var n=this;if(this.drag.dragging=!1,this.body.selectionBox.show){var i;this.body.selectionBox.show=!1;var o=this.body.selectionBox.position,a={minX:Math.min(o.start.x,o.end.x),minY:Math.min(o.start.y,o.end.y),maxX:Math.max(o.start.x,o.end.x),maxY:Math.max(o.start.y,o.end.y)},s=Pr(i=this.body.nodeIndices).call(i,function(c){var d=n.body.nodes[c];return d.x>=a.minX&&d.x<=a.maxX&&d.y>=a.minY&&d.y<=a.maxY});Ve(s).call(s,function(c){return n.selectionHandler.selectObject(n.body.nodes[c])});var l=this.getPointer(t.center);this.selectionHandler.commitAndEmit(l,t),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var u=this.drag.selection;u&&u.length?(Ve(u).call(u,function(c){c.node.options.fixed.x=c.xFixed,c.node.options.fixed.y=c.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(t){var n=this.getPointer(t.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var i=this.pinch.scale*t.scale;this.zoom(i,n)}},{key:"zoom",value:function(t,n){if(this.options.zoomView===!0){var i=this.body.view.scale;t<1e-5&&(t=1e-5),t>10&&(t=10);var o=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(o=this.canvas.DOMtoCanvas(this.drag.pointer));var a=this.body.view.translation,s=t/i,l=(1-s)*n.x+a.x*s,u=(1-s)*n.y+a.y*s;if(this.body.view.scale=t,this.body.view.translation={x:l,y:u},o!=null){var c=this.canvas.canvasToDOM(o);this.drag.pointer.x=c.x,this.drag.pointer.y=c.y}this.body.emitter.emit("_requestRedraw"),i<t?this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:n}):this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:n})}}},{key:"onMouseWheel",value:function(t){if(this.options.zoomView===!0){if(t.deltaY!==0){var n=this.body.view.scale;n*=1+(t.deltaY<0?1:-1)*(this.options.zoomSpeed*.1);var i=this.getPointer({x:t.clientX,y:t.clientY});this.zoom(n,i)}t.preventDefault()}}},{key:"onMouseMove",value:function(t){var n=this,i=this.getPointer({x:t.clientX,y:t.clientY}),o=!1;this.popup!==void 0&&(this.popup.hidden===!1&&this._checkHidePopup(i),this.popup.hidden===!1&&(o=!0,this.popup.setPosition(i.x+3,i.y-5),this.popup.show())),this.options.keyboard.autoFocus&&this.options.keyboard.bindToWindow===!1&&this.options.keyboard.enabled===!0&&this.canvas.frame.focus(),o===!1&&(this.popupTimer!==void 0&&(clearInterval(this.popupTimer),this.popupTimer=void 0),this.drag.dragging||(this.popupTimer=yi(function(){return n._checkShowPopup(i)},this.options.tooltipDelay))),this.options.hover===!0&&this.selectionHandler.hoverObject(t,i)}},{key:"_checkShowPopup",value:function(t){var n=this.canvas._XconvertDOMtoCanvas(t.x),i=this.canvas._YconvertDOMtoCanvas(t.y),o={left:n,top:i,right:n,bottom:i},a=this.popupObj===void 0?void 0:this.popupObj.id,s=!1,l="node";if(this.popupObj===void 0){for(var u=this.body.nodeIndices,c=this.body.nodes,d,f=[],h=0;h<u.length;h++)d=c[u[h]],d.isOverlappingWith(o)===!0&&(s=!0,d.getTitle()!==void 0&&f.push(u[h]));f.length>0&&(this.popupObj=c[f[f.length-1]],s=!0)}if(this.popupObj===void 0&&s===!1){for(var v=this.body.edgeIndices,p=this.body.edges,b,y=[],g=0;g<v.length;g++)b=p[v[g]],b.isOverlappingWith(o)===!0&&b.connected===!0&&b.getTitle()!==void 0&&y.push(v[g]);y.length>0&&(this.popupObj=p[y[y.length-1]],l="edge")}this.popupObj!==void 0?this.popupObj.id!==a&&(this.popup===void 0&&(this.popup=new Nke(this.canvas.frame)),this.popup.popupTargetType=l,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(t.x+3,t.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(t){var n=this.selectionHandler._pointerToPositionObject(t),i=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(n),i===!0)){var o=this.selectionHandler.getNodeAt(t);i=o===void 0?!1:o.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(t)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(n));i===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),e}(),YDe=DE,XDe=oz;YDe("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},XDe);var QDe=Ae,ZDe=QDe.Set,JDe=ZDe,eFe=JDe,tFe=eFe,ba=le(tFe),rFe=Me,YR=FE,nv=Ig.getWeakData,nFe=NE,iFe=tn,oFe=Hu,R1=Ft,aFe=ME,Tz=ua,XR=Lt,xz=Es,sFe=xz.set,lFe=xz.getterFor,uFe=Tz.find,cFe=Tz.findIndex,dFe=rFe([].splice),fFe=0,iv=function(e){return e.frozen||(e.frozen=new kz)},kz=function(){this.entries=[]},A1=function(e,r){return uFe(e.entries,function(t){return t[0]===r})};kz.prototype={get:function(e){var r=A1(this,e);if(r)return r[1]},has:function(e){return!!A1(this,e)},set:function(e,r){var t=A1(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=cFe(this.entries,function(t){return t[0]===e});return~r&&dFe(this.entries,r,1),!!~r}};var hFe={getConstructor:function(e,r,t,n){var i=e(function(l,u){nFe(l,o),sFe(l,{type:r,id:fFe++,frozen:void 0}),oFe(u)||aFe(u,l[n],{that:l,AS_ENTRIES:t})}),o=i.prototype,a=lFe(r),s=function(l,u,c){var d=a(l),f=nv(iFe(u),!0);return f===!0?iv(d).set(u,c):f[d.id]=c,l};return YR(o,{delete:function(l){var u=a(this);if(!R1(l))return!1;var c=nv(l);return c===!0?iv(u).delete(l):c&&XR(c,u.id)&&delete c[u.id]},has:function(u){var c=a(this);if(!R1(u))return!1;var d=nv(u);return d===!0?iv(c).has(u):d&&XR(d,c.id)}}),YR(o,t?{get:function(u){var c=a(this);if(R1(u)){var d=nv(u);return d===!0?iv(c).get(u):d?d[c.id]:void 0}},set:function(u,c){return s(this,u,c)}}:{add:function(u){return s(this,u,!0)}}),i}},vFe=tz,QR=ht,jv=Me,ZR=FE,pFe=Ig,yFe=DE,Iz=hFe,ov=Ft,av=Es.enforce,gFe=Re,mFe=Vj,Zf=Object,bFe=Array.isArray,sv=Zf.isExtensible,Rz=Zf.isFrozen,$Fe=Zf.isSealed,Az=Zf.freeze,wFe=Zf.seal,JR={},e2={},SFe=!QR.ActiveXObject&&"ActiveXObject"in QR,mc,Mz=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Nz=yFe("WeakMap",Mz,Iz),qs=Nz.prototype,Bv=jv(qs.set),_Fe=function(){return vFe&&gFe(function(){var e=Az([]);return Bv(new Nz,e,1),!Rz(e)})};if(mFe)if(SFe){mc=Iz.getConstructor(Mz,"WeakMap",!0),pFe.enable();var t2=jv(qs.delete),lv=jv(qs.has),r2=jv(qs.get);ZR(qs,{delete:function(e){if(ov(e)&&!sv(e)){var r=av(this);return r.frozen||(r.frozen=new mc),t2(this,e)||r.frozen.delete(e)}return t2(this,e)},has:function(r){if(ov(r)&&!sv(r)){var t=av(this);return t.frozen||(t.frozen=new mc),lv(this,r)||t.frozen.has(r)}return lv(this,r)},get:function(r){if(ov(r)&&!sv(r)){var t=av(this);return t.frozen||(t.frozen=new mc),lv(this,r)?r2(this,r):t.frozen.get(r)}return r2(this,r)},set:function(r,t){if(ov(r)&&!sv(r)){var n=av(this);n.frozen||(n.frozen=new mc),lv(this,r)?Bv(this,r,t):n.frozen.set(r,t)}else Bv(this,r,t);return this}})}else _Fe()&&ZR(qs,{set:function(r,t){var n;return bFe(r)&&(Rz(r)?n=JR:$Fe(r)&&(n=e2)),Bv(this,r,t),n===JR&&Az(r),n===e2&&wFe(r),this}});var EFe=Ae,OFe=EFe.WeakMap,PFe=OFe,CFe=PFe,TFe=CFe,Xc=le(TFe);function Ke(e,r,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?e!==r||!n:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(e):n?n.value:r.get(e)}function pw(e,r,t,n,i){if(typeof r=="function"?e!==r||!i:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r.set(e,t),t}function yw(e,r){var t=typeof ca<"u"&&Ps(e)||e["@@iterator"];if(!t){if(Be(e)||(t=xFe(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
153
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}function xFe(e,r){var t;if(e){if(typeof e=="string")return n2(e,r);var n=Ut(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Os(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n2(e,r)}}function n2(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var ga,on,co,fo,zv;function i2(e,r){var t=new ba,n=yw(r),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;e.has(o)||t.add(o)}}catch(a){n.e(a)}finally{n.f()}return t}var o2=function(){function e(){q(this,e),ga.set(this,new ba),on.set(this,new ba)}return Y(e,[{key:"size",get:function(){return Ke(this,on,"f").size}},{key:"add",value:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var o=0,a=n;o<a.length;o++){var s=a[o];Ke(this,on,"f").add(s)}}},{key:"delete",value:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var o=0,a=n;o<a.length;o++){var s=a[o];Ke(this,on,"f").delete(s)}}},{key:"clear",value:function(){Ke(this,on,"f").clear()}},{key:"getSelection",value:function(){return li(Ke(this,on,"f"))}},{key:"getChanges",value:function(){return{added:li(i2(Ke(this,ga,"f"),Ke(this,on,"f"))),deleted:li(i2(Ke(this,on,"f"),Ke(this,ga,"f"))),previous:li(new ba(Ke(this,ga,"f"))),current:li(new ba(Ke(this,on,"f")))}}},{key:"commit",value:function(){var t=this.getChanges();pw(this,ga,Ke(this,on,"f")),pw(this,on,new ba(Ke(this,ga,"f")));var n=yw(t.added),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o.select()}}catch(u){n.e(u)}finally{n.f()}var a=yw(t.deleted),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;l.unselect()}}catch(u){a.e(u)}finally{a.f()}return t}}]),e}();ga=new Xc,on=new Xc;var kFe=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};q(this,e),co.set(this,new o2),fo.set(this,new o2),zv.set(this,void 0),pw(this,zv,r)}return Y(e,[{key:"sizeNodes",get:function(){return Ke(this,co,"f").size}},{key:"sizeEdges",get:function(){return Ke(this,fo,"f").size}},{key:"getNodes",value:function(){return Ke(this,co,"f").getSelection()}},{key:"getEdges",value:function(){return Ke(this,fo,"f").getSelection()}},{key:"addNodes",value:function(){var t;(t=Ke(this,co,"f")).add.apply(t,arguments)}},{key:"addEdges",value:function(){var t;(t=Ke(this,fo,"f")).add.apply(t,arguments)}},{key:"deleteNodes",value:function(t){Ke(this,co,"f").delete(t)}},{key:"deleteEdges",value:function(t){Ke(this,fo,"f").delete(t)}},{key:"clear",value:function(){Ke(this,co,"f").clear(),Ke(this,fo,"f").clear()}},{key:"commit",value:function(){for(var t,n,i={nodes:Ke(this,co,"f").commit(),edges:Ke(this,fo,"f").commit()},o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(t=Ke(this,zv,"f")).call.apply(t,bE(n=[this,i]).call(n,a)),i}}]),e}();co=new Xc,fo=new Xc,zv=new Xc;function a2(e,r){var t=typeof ca<"u"&&Ps(e)||e["@@iterator"];if(!t){if(Be(e)||(t=IFe(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
154
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}function IFe(e,r){var t;if(e){if(typeof e=="string")return s2(e,r);var n=Ut(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Os(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s2(e,r)}}function s2(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var RFe=function(){function e(r,t){var n=this;q(this,e),this.body=r,this.canvas=t,this._selectionAccumulator=new kFe,this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},wt(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",function(){n.updateSelection()})}return Y(e,[{key:"setOptions",value:function(t){if(t!==void 0){var n=["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"];Ju(n,this.options,t)}}},{key:"selectOnPoint",value:function(t){var n=!1;if(this.options.selectable===!0){var i=this.getNodeAt(t)||this.getEdgeAt(t);this.unselectAll(),i!==void 0&&(n=this.selectObject(i)),this.body.emitter.emit("_requestRedraw")}return n}},{key:"selectAdditionalOnPoint",value:function(t){var n=!1;if(this.options.selectable===!0){var i=this.getNodeAt(t)||this.getEdgeAt(t);i!==void 0&&(n=!0,i.isSelected()===!0?this.deselectObject(i):this.selectObject(i),this.body.emitter.emit("_requestRedraw"))}return n}},{key:"_initBaseEvent",value:function(t,n){var i={};return i.pointer={DOM:{x:n.x,y:n.y},canvas:this.canvas.DOMtoCanvas(n)},i.event=t,i}},{key:"generateClickEvent",value:function(t,n,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=this._initBaseEvent(n,i);if(a===!0)s.nodes=[],s.edges=[];else{var l=this.getSelection();s.nodes=l.nodes,s.edges=l.edges}o!==void 0&&(s.previousSelection=o),t=="click"&&(s.items=this.getClickedItems(i)),n.controlEdge!==void 0&&(s.controlEdge=n.controlEdge),this.body.emitter.emit(t,s)}},{key:"selectObject",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(t!==void 0){if(t instanceof Br){if(n===!0){var i;(i=this._selectionAccumulator).addEdges.apply(i,li(t.edges))}this._selectionAccumulator.addNodes(t)}else this._selectionAccumulator.addEdges(t);return!0}return!1}},{key:"deselectObject",value:function(t){t.isSelected()===!0&&(t.selected=!1,this._removeFromSelection(t))}},{key:"_getAllNodesOverlappingWith",value:function(t){for(var n=[],i=this.body.nodes,o=0;o<this.body.nodeIndices.length;o++){var a=this.body.nodeIndices[o];i[a].isOverlappingWith(t)&&n.push(a)}return n}},{key:"_pointerToPositionObject",value:function(t){var n=this.canvas.DOMtoCanvas(t);return{left:n.x-1,top:n.y+1,right:n.x+1,bottom:n.y-1}}},{key:"getNodeAt",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._pointerToPositionObject(t),o=this._getAllNodesOverlappingWith(i);if(o.length>0)return n===!0?this.body.nodes[o[o.length-1]]:o[o.length-1]}},{key:"_getEdgesOverlappingWith",value:function(t,n){for(var i=this.body.edges,o=0;o<this.body.edgeIndices.length;o++){var a=this.body.edgeIndices[o];i[a].isOverlappingWith(t)&&n.push(a)}}},{key:"_getAllEdgesOverlappingWith",value:function(t){var n=[];return this._getEdgesOverlappingWith(t,n),n}},{key:"getEdgeAt",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.canvas.DOMtoCanvas(t),o=10,a=null,s=this.body.edges,l=0;l<this.body.edgeIndices.length;l++){var u=this.body.edgeIndices[l],c=s[u];if(c.connected){var d=c.from.x,f=c.from.y,h=c.to.x,v=c.to.y,p=c.edgeType.getDistanceToEdge(d,f,h,v,i.x,i.y);p<o&&(a=u,o=p)}}if(a!==null)return n===!0?this.body.edges[a]:a}},{key:"_addToHover",value:function(t){t instanceof Br?this.hoverObj.nodes[t.id]=t:this.hoverObj.edges[t.id]=t}},{key:"_removeFromSelection",value:function(t){if(t instanceof Br){var n;this._selectionAccumulator.deleteNodes(t),(n=this._selectionAccumulator).deleteEdges.apply(n,li(t.edges))}else this._selectionAccumulator.deleteEdges(t)}},{key:"unselectAll",value:function(){this._selectionAccumulator.clear()}},{key:"getSelectedNodeCount",value:function(){return this._selectionAccumulator.sizeNodes}},{key:"getSelectedEdgeCount",value:function(){return this._selectionAccumulator.sizeEdges}},{key:"_hoverConnectedEdges",value:function(t){for(var n=0;n<t.edges.length;n++){var i=t.edges[n];i.hover=!0,this._addToHover(i)}}},{key:"emitBlurEvent",value:function(t,n,i){var o=this._initBaseEvent(t,n);i.hover===!0&&(i.hover=!1,i instanceof Br?(o.node=i.id,this.body.emitter.emit("blurNode",o)):(o.edge=i.id,this.body.emitter.emit("blurEdge",o)))}},{key:"emitHoverEvent",value:function(t,n,i){var o=this._initBaseEvent(t,n),a=!1;return i.hover===!1&&(i.hover=!0,this._addToHover(i),a=!0,i instanceof Br?(o.node=i.id,this.body.emitter.emit("hoverNode",o)):(o.edge=i.id,this.body.emitter.emit("hoverEdge",o))),a}},{key:"hoverObject",value:function(t,n){var i=this.getNodeAt(n);i===void 0&&(i=this.getEdgeAt(n));var o=!1;for(var a in this.hoverObj.nodes)Object.prototype.hasOwnProperty.call(this.hoverObj.nodes,a)&&(i===void 0||i instanceof Br&&i.id!=a||i instanceof kl)&&(this.emitBlurEvent(t,n,this.hoverObj.nodes[a]),delete this.hoverObj.nodes[a],o=!0);for(var s in this.hoverObj.edges)Object.prototype.hasOwnProperty.call(this.hoverObj.edges,s)&&(o===!0?(this.hoverObj.edges[s].hover=!1,delete this.hoverObj.edges[s]):(i===void 0||i instanceof kl&&i.id!=s||i instanceof Br&&!i.hover)&&(this.emitBlurEvent(t,n,this.hoverObj.edges[s]),delete this.hoverObj.edges[s],o=!0));if(i!==void 0){var l=ut(this.hoverObj.edges).length,u=ut(this.hoverObj.nodes).length,c=i instanceof kl&&l===0&&u===0,d=i instanceof Br&&l===0&&u===0;(o||c||d)&&(o=this.emitHoverEvent(t,n,i)),i instanceof Br&&this.options.hoverConnectedEdges===!0&&this._hoverConnectedEdges(i)}o===!0&&this.body.emitter.emit("_requestRedraw")}},{key:"commitWithoutEmitting",value:function(){this._selectionAccumulator.commit()}},{key:"commitAndEmit",value:function(t,n){var i=!1,o=this._selectionAccumulator.commit(),a={nodes:o.nodes.previous,edges:o.edges.previous};o.edges.deleted.length>0&&(this.generateClickEvent("deselectEdge",n,t,a),i=!0),o.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",n,t,a),i=!0),o.nodes.added.length>0&&(this.generateClickEvent("selectNode",n,t),i=!0),o.edges.added.length>0&&(this.generateClickEvent("selectEdge",n,t),i=!0),i===!0&&this.generateClickEvent("select",n,t)}},{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 t;return yu(t=this._selectionAccumulator.getNodes()).call(t,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var t;return yu(t=this._selectionAccumulator.getEdges()).call(t,function(n){return n.id})}},{key:"setSelection",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!t||!t.nodes&&!t.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((n.unselectAll||n.unselectAll===void 0)&&this.unselectAll(),t.nodes){var i=a2(t.nodes),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=this.body.nodes[a];if(!s)throw new RangeError('Node with id "'+a+'" not found');this.selectObject(s,n.highlightEdges)}}catch(f){i.e(f)}finally{i.f()}}if(t.edges){var l=a2(t.edges),u;try{for(l.s();!(u=l.n()).done;){var c=u.value,d=this.body.edges[c];if(!d)throw new RangeError('Edge with id "'+c+'" not found');this.selectObject(d)}}catch(f){l.e(f)}finally{l.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!t||t.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:t},{highlightEdges:n})}},{key:"selectEdges",value:function(t){if(!t||t.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:t})}},{key:"updateSelection",value:function(){for(var t in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,t.id)||this._selectionAccumulator.deleteNodes(t);for(var n in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,n.id)||this._selectionAccumulator.deleteEdges(n)}},{key:"getClickedItems",value:function(t){for(var n=this.canvas.DOMtoCanvas(t),i=[],o=this.body.nodeIndices,a=this.body.nodes,s=o.length-1;s>=0;s--){var l=a[o[s]],u=l.getItemsOnPoint(n);i.push.apply(i,u)}for(var c=this.body.edgeIndices,d=this.body.edges,f=c.length-1;f>=0;f--){var h=d[c[f]],v=h.getItemsOnPoint(n);i.push.apply(i,v)}return i}}]),e}(),l2=bB,AFe=Math.floor,gw=function(e,r){var t=e.length,n=AFe(t/2);return t<8?MFe(e,r):NFe(e,gw(l2(e,0,n),r),gw(l2(e,n),r),r)},MFe=function(e,r){for(var t=e.length,n=1,i,o;n<t;){for(o=n,i=e[n];o&&r(e[o-1],i)>0;)e[o]=e[--o];o!==n++&&(e[o]=i)}return e},NFe=function(e,r,t,n){for(var i=r.length,o=t.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(r[a],t[s])<=0?r[a++]:t[s++]:a<i?r[a++]:t[s++];return e},DFe=gw,FFe=If,u2=FFe.match(/firefox\/(\d+)/i),LFe=!!u2&&+u2[1],jFe=If,BFe=/MSIE|Trident/.test(jFe),zFe=If,c2=zFe.match(/AppleWebKit\/(\d+)\./),HFe=!!c2&&+c2[1],WFe=he,Dz=Me,UFe=Ss,VFe=Lr,d2=Cn,KFe=o5,f2=Pi,WE=Re,GFe=DFe,qFe=Qu,h2=LFe,YFe=BFe,v2=Rf,p2=HFe,ko=[],y2=Dz(ko.sort),XFe=Dz(ko.push),QFe=WE(function(){ko.sort(void 0)}),ZFe=WE(function(){ko.sort(null)}),JFe=qFe("sort"),Fz=!WE(function(){if(v2)return v2<70;if(!(h2&&h2>3)){if(YFe)return!0;if(p2)return p2<603;var e="",r,t,n,i;for(r=65;r<76;r++){switch(t=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)ko.push({k:t+i,v:n})}for(ko.sort(function(o,a){return a.v-o.v}),i=0;i<ko.length;i++)t=ko[i].k.charAt(0),e.charAt(e.length-1)!==t&&(e+=t);return e!=="DGBEFHACIJK"}}),eLe=QFe||!ZFe||!JFe||!Fz,tLe=function(e){return function(r,t){return t===void 0?-1:r===void 0?1:e!==void 0?+e(r,t)||0:f2(r)>f2(t)?1:-1}};WFe({target:"Array",proto:!0,forced:eLe},{sort:function(r){r!==void 0&&UFe(r);var t=VFe(this);if(Fz)return r===void 0?y2(t):y2(t,r);var n=[],i=d2(t),o,a;for(a=0;a<i;a++)a in t&&XFe(n,t[a]);for(GFe(n,tLe(r)),o=d2(n),a=0;a<o;)t[a]=n[a++];for(;a<i;)KFe(t,a++);return t}});var rLe=jt,nLe=rLe("Array").sort,iLe=mt,oLe=nLe,M1=Array.prototype,aLe=function(e){var r=e.sort;return e===M1||iLe(M1,e)&&r===M1.sort?oLe:r},sLe=aLe,lLe=sLe,uLe=lLe,Qc=le(uLe),cLe=Ss,dLe=Lr,fLe=ug,hLe=Cn,vLe=TypeError,g2=function(e){return function(r,t,n,i){cLe(t);var o=dLe(r),a=fLe(o),s=hLe(o),l=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(l in a){i=a[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw new vLe("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in a&&(i=t(i,a[l],l,o));return i}},pLe={left:g2(!1),right:g2(!0)},yLe=ht,gLe=oo,mLe=gLe(yLe.process)==="process",bLe=he,$Le=pLe.left,wLe=Qu,m2=Rf,SLe=mLe,_Le=!SLe&&m2>79&&m2<83,ELe=_Le||!wLe("reduce");bLe({target:"Array",proto:!0,forced:ELe},{reduce:function(r){var t=arguments.length;return $Le(this,r,t,t>1?arguments[1]:void 0)}});var OLe=jt,PLe=OLe("Array").reduce,CLe=mt,TLe=PLe,N1=Array.prototype,xLe=function(e){var r=e.reduce;return e===N1||CLe(N1,e)&&r===N1.reduce?TLe:r},kLe=xLe,ILe=kLe,RLe=ILe,Lz=le(RLe);function jz(e){var r=ALe();return function(){var n=oe(e),i;if(r){var o=oe(this).constructor;i=A(n,arguments,o)}else i=n.apply(this,arguments);return ze(this,i)}}function ALe(){if(typeof Reflect>"u"||!A||A.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(A(Boolean,[],function(){})),!0}catch{return!1}}var Bz=function(){function e(){q(this,e)}return Y(e,[{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(t){return this.fake_use(t),this.abstract()}},{key:"setPosition",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(t,n,i),this.abstract()}},{key:"getTreeSize",value:function(t){return this.fake_use(t),this.abstract()}},{key:"sort",value:function(t){this.fake_use(t),this.abstract()}},{key:"fix",value:function(t,n){this.fake_use(t,n),this.abstract()}},{key:"shift",value:function(t,n){this.fake_use(t,n),this.abstract()}}]),e}(),MLe=function(e){Ne(t,e);var r=jz(t);function t(n){var i;return q(this,t),i=r.call(this),i.layout=n,i}return Y(t,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(i){return i.x}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.x=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_x,max:o.max_x}}},{key:"sort",value:function(i){Qc(i).call(i,function(o,a){return o.x-a.x})}},{key:"fix",value:function(i,o){i.y=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.y=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].x+=o}}]),t}(Bz),NLe=function(e){Ne(t,e);var r=jz(t);function t(n){var i;return q(this,t),i=r.call(this),i.layout=n,i}return Y(t,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(i){return i.y}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.y=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_y,max:o.max_y}}},{key:"sort",value:function(i){Qc(i).call(i,function(o,a){return o.y-a.y})}},{key:"fix",value:function(i,o){i.x=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.x=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].y+=o}}]),t}(Bz),DLe=he,FLe=ua.every,LLe=Qu,jLe=LLe("every");DLe({target:"Array",proto:!0,forced:!jLe},{every:function(r){return FLe(this,r,arguments.length>1?arguments[1]:void 0)}});var BLe=jt,zLe=BLe("Array").every,HLe=mt,WLe=zLe,D1=Array.prototype,ULe=function(e){var r=e.every;return e===D1||HLe(D1,e)&&r===D1.every?WLe:r},VLe=ULe,KLe=VLe,GLe=KLe,zz=le(GLe);function qLe(e,r){var t=typeof ca<"u"&&Ps(e)||e["@@iterator"];if(!t){if(Be(e)||(t=YLe(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
155
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}function YLe(e,r){var t;if(e){if(typeof e=="string")return b2(e,r);var n=Ut(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Os(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b2(e,r)}}function b2(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function XLe(e,r){var t=new ba;return Ve(e).call(e,function(n){var i;Ve(i=n.edges).call(i,function(o){o.connected&&t.add(o)})}),Ve(t).call(t,function(n){var i=n.from.id,o=n.to.id;r[i]==null&&(r[i]=0),(r[o]==null||r[i]>=r[o])&&(r[o]=r[i]+1)}),r}function QLe(e){return Hz(function(r){var t,n;return zz(t=Pr(n=r.edges).call(n,function(i){return e.has(i.toId)})).call(t,function(i){return i.to===r})},function(r,t){return t>r},"from",e)}function ZLe(e){return Hz(function(r){var t,n;return zz(t=Pr(n=r.edges).call(n,function(i){return e.has(i.toId)})).call(t,function(i){return i.from===r})},function(r,t){return t<r},"to",e)}function Hz(e,r,t,n){var i,o=Va(null),a=Lz(i=li(gz(n).call(n))).call(i,function(h,v){return h+1+v.edges.length},0),s=t+"Id",l=t==="to"?1:-1,u=qLe(n),c;try{var d=function(){var v=ct(c.value,2),p=v[0],b=v[1];if(!n.has(p)||!e(b))return 0;o[p]=0;for(var y=[b],g=0,m,$=function(){var P,O;if(!n.has(p))return 0;var C=o[m.id]+l;if(Ve(P=Pr(O=m.edges).call(O,function(k){return k.connected&&k.to!==k.from&&k[t]!==m&&n.has(k.toId)&&n.has(k.fromId)})).call(P,function(k){var R=k[s],D=o[R];(D==null||r(C,D))&&(o[R]=C,y.push(k[t]))}),g>a)return{v:{v:XLe(n,o)}};++g},w;m=y.pop();)if(w=$(),w!==0&&w)return w.v},f;for(u.s();!(c=u.n()).done;)if(f=d(),f!==0&&f)return f.v}catch(h){u.e(h)}finally{u.f()}return o}var JLe=function(){function e(){q(this,e),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return Y(e,[{key:"addRelation",value:function(t,n){this.childrenReference[t]===void 0&&(this.childrenReference[t]=[]),this.childrenReference[t].push(n),this.parentReference[n]===void 0&&(this.parentReference[n]=[]),this.parentReference[n].push(t)}},{key:"checkIfTree",value:function(){for(var t in this.parentReference)if(this.parentReference[t].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(t,n){n!==void 0&&this.trees[t.id]===void 0&&(this.trees[t.id]=n,this.treeIndex=Math.max(n,this.treeIndex))}},{key:"ensureLevel",value:function(t){this.levels[t]===void 0&&(this.levels[t]=0)}},{key:"getMaxLevel",value:function(t){var n=this,i={},o=function a(s){if(i[s]!==void 0)return i[s];var l=n.levels[s];if(n.childrenReference[s]){var u=n.childrenReference[s];if(u.length>0)for(var c=0;c<u.length;c++)l=Math.max(l,a(u[c]))}return i[s]=l,l};return o(t)}},{key:"levelDownstream",value:function(t,n){this.levels[n.id]===void 0&&(this.levels[t.id]===void 0&&(this.levels[t.id]=0),this.levels[n.id]=this.levels[t.id]+1)}},{key:"setMinLevelToZero",value:function(t){var n=1e9;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.levels[i]!==void 0&&(n=Math.min(this.levels[i],n));for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&this.levels[o]!==void 0&&(this.levels[o]-=n)}},{key:"getTreeSize",value:function(t,n){var i=1e9,o=-1e9,a=1e9,s=-1e9;for(var l in this.trees)if(Object.prototype.hasOwnProperty.call(this.trees,l)&&this.trees[l]===n){var u=t[l];i=Math.min(u.x,i),o=Math.max(u.x,o),a=Math.min(u.y,a),s=Math.max(u.y,s)}return{min_x:i,max_x:o,min_y:a,max_y:s}}},{key:"hasSameParent",value:function(t,n){var i=this.parentReference[t.id],o=this.parentReference[n.id];if(i===void 0||o===void 0)return!1;for(var a=0;a<i.length;a++)for(var s=0;s<o.length;s++)if(i[a]==o[s])return!0;return!1}},{key:"inSameSubNetwork",value:function(t,n){return this.trees[t.id]===this.trees[n.id]}},{key:"getLevels",value:function(){return ut(this.distributionOrdering)}},{key:"addToOrdering",value:function(t,n){this.distributionOrdering[n]===void 0&&(this.distributionOrdering[n]=[]);var i=!1,o=this.distributionOrdering[n];for(var a in o)if(o[a]===t){i=!0;break}i||(this.distributionOrdering[n].push(t),this.distributionIndex[t.id]=this.distributionOrdering[n].length-1)}}]),e}(),e3e=function(){function e(r){q(this,e),this.body=r,this._resetRNG(Math.random()+":"+Lp()),this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,clusterThreshold:150,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},wt(this.options,this.defaultOptions),this.bindEventListeners()}return Y(e,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("_dataChanged",function(){t.setupHierarchicalLayout()}),this.body.emitter.on("_dataLoaded",function(){t.layoutNetwork()}),this.body.emitter.on("_resetHierarchicalLayout",function(){t.setupHierarchicalLayout()}),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",function(){if(t.options.hierarchical.enabled===!0){var n=t.direction.curveType();t.body.emitter.emit("_forceDisableDynamicCurves",n,!1)}})}},{key:"setOptions",value:function(t,n){if(t!==void 0){var i=this.options.hierarchical,o=i.enabled;if(Ju(["randomSeed","improvedLayout","clusterThreshold"],this.options,t),ln(this.options,t,"hierarchical"),t.randomSeed!==void 0&&this._resetRNG(t.randomSeed),i.enabled===!0)return o===!0&&this.body.emitter.emit("refresh",!0),i.direction==="RL"||i.direction==="DU"?i.levelSeparation>0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(n);if(o===!0)return this.body.emitter.emit("refresh"),Ge(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(t){this.initialRandomSeed=t,this._rng=kg(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(t){if(this.options.hierarchical.enabled===!0){var n=this.optionsBackup.physics;t.physics===void 0||t.physics===!0?(t.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"):We(t.physics)==="object"?(n.enabled=t.physics.enabled===void 0?!0:t.physics.enabled,n.solver=t.physics.solver||"barnesHut",t.physics.solver="hierarchicalRepulsion"):t.physics!==!1&&(n.solver="barnesHut",t.physics={solver:"hierarchicalRepulsion"});var i=this.direction.curveType();if(t.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges={smooth:!1};else if(t.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges.smooth=!1;else if(typeof t.edges.smooth=="boolean")this.optionsBackup.edges={smooth:t.edges.smooth},t.edges.smooth={enabled:t.edges.smooth,type:i};else{var o=t.edges.smooth;o.type!==void 0&&o.type!=="dynamic"&&(i=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}},t.edges.smooth={enabled:o.enabled===void 0?!0:o.enabled,type:i,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return t}},{key:"positionInitially",value:function(t){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var n=t.length+50,i=0;i<t.length;i++){var o=t[i],a=2*Math.PI*this._rng();o.x===void 0&&(o.x=n*Math.cos(a)),o.y===void 0&&(o.y=n*Math.sin(a))}}}},{key:"layoutNetwork",value:function(){if(this.options.hierarchical.enabled!==!0&&this.options.improvedLayout===!0){for(var t=this.body.nodeIndices,n=0,i=0;i<t.length;i++){var o=this.body.nodes[t[i]];o.predefinedPosition===!0&&(n+=1)}if(n<.5*t.length){var a=10,s=0,l=this.options.clusterThreshold,u={clusterNodeProperties:{shape:"ellipse",label:"",group:"",font:{multi:!1}},clusterEdgeProperties:{label:"",font:{multi:!1},smooth:{enabled:!1}}};if(t.length>l){for(var c=t.length;t.length>l&&s<=a;){s+=1;var d=t.length;s%3===0?this.body.modules.clustering.clusterBridges(u):this.body.modules.clustering.clusterOutliers(u);var f=t.length;if(d==f&&s%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*c)})}s>a&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(t,this.body.edgeIndices,!0),this._shiftToCenter();for(var h=70,v=0;v<t.length;v++){var p=this.body.nodes[t[v]];p.predefinedPosition===!1&&(p.x+=(.5-this._rng())*h,p.y+=(.5-this._rng())*h)}this._declusterAll(),this.body.emitter.emit("_repositionBezierNodes")}}}},{key:"_shiftToCenter",value:function(){for(var t=ur.getRangeCore(this.body.nodes,this.body.nodeIndices),n=ur.findCenter(t),i=0;i<this.body.nodeIndices.length;i++){var o=this.body.nodes[this.body.nodeIndices[i]];o.x-=n.x,o.y-=n.y}}},{key:"_declusterAll",value:function(){for(var t=!0;t===!0;){t=!1;for(var n=0;n<this.body.nodeIndices.length;n++)this.body.nodes[this.body.nodeIndices[n]].isCluster===!0&&(t=!0,this.body.modules.clustering.openCluster(this.body.nodeIndices[n],{},!1));t===!0&&this.body.emitter.emit("_dataChanged")}}},{key:"getSeed",value:function(){return this.initialRandomSeed}},{key:"setupHierarchicalLayout",value:function(){if(this.options.hierarchical.enabled===!0&&this.body.nodeIndices.length>0){var t,n,i=!1,o=!1;this.lastNodeOnLevel={},this.hierarchical=new JLe;for(n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&(t=this.body.nodes[n],t.options.level!==void 0?(i=!0,this.hierarchical.levels[n]=t.options.level):o=!0);if(o===!0&&i===!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 a=this.options.hierarchical.sortMethod;a==="hubsize"?this._determineLevelsByHubsize():a==="directed"?this._determineLevelsDirected():a==="custom"&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.hierarchical.ensureLevel(s);var l=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(l),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var t=this,n=!1,i={},o=function(){for(var m=s(),$=0,w=0;w<m.length-1;w++){var S=m[w].max-m[w+1].min;$+=S+t.options.hierarchical.treeSpacing,a(w+1,$)}},a=function(m,$){var w=t.hierarchical.trees;for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&w[S]===m&&t.direction.shift(S,$)},s=function(){for(var m=[],$=0;$<t.hierarchical.numTrees();$++)m.push(t.direction.getTreeSize($));return m},l=function g(m,$){if(!$[m.id]&&($[m.id]=!0,t.hierarchical.childrenReference[m.id])){var w=t.hierarchical.childrenReference[m.id];if(w.length>0)for(var S=0;S<w.length;S++)g(t.body.nodes[w[S]],$)}},u=function(m){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e9,w=1e9,S=1e9,P=1e9,O=-1e9;for(var C in m)if(Object.prototype.hasOwnProperty.call(m,C)){var k=t.body.nodes[C],R=t.hierarchical.levels[k.id],D=t.direction.getPosition(k),z=t._getSpaceAroundNode(k,m),X=ct(z,2),Z=X[0],F=X[1];w=Math.min(Z,w),S=Math.min(F,S),R<=$&&(P=Math.min(D,P),O=Math.max(D,O))}return[P,O,w,S]},c=function(m,$){var w=t.hierarchical.getMaxLevel(m.id),S=t.hierarchical.getMaxLevel($.id);return Math.min(w,S)},d=function(m,$,w){for(var S=t.hierarchical,P=0;P<$.length;P++){var O=$[P],C=S.distributionOrdering[O];if(C.length>1)for(var k=0;k<C.length-1;k++){var R=C[k],D=C[k+1];S.hasSameParent(R,D)&&S.inSameSubNetwork(R,D)&&m(R,D,w)}}},f=function(m,$){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,S=t.direction.getPosition(m),P=t.direction.getPosition($),O=Math.abs(P-S),C=t.options.hierarchical.nodeSpacing;if(O>C){var k={},R={};l(m,k),l($,R);var D=c(m,$),z=u(k,D),X=u(R,D),Z=z[1],F=X[0],ee=X[2],x=Math.abs(Z-F);if(x>C){var L=Z-F+C;L<-ee+C&&(L=-ee+C),L<0&&(t._shiftBlock($.id,L),n=!0,w===!0&&t._centerParent($))}}},h=function(m,$){for(var w=$.id,S=$.edges,P=t.hierarchical.levels[$.id],O=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,C={},k=[],R=0;R<S.length;R++){var D=S[R];if(D.toId!=D.fromId){var z=D.toId==w?D.from:D.to;C[S[R].id]=z,t.hierarchical.levels[z.id]<P&&k.push(D)}}var X=function(Q,K){for(var ce=0,ge=0;ge<K.length;ge++)if(C[K[ge].id]!==void 0){var $e=t.direction.getPosition(C[K[ge].id])-Q;ce+=$e/Math.sqrt($e*$e+O)}return ce},Z=function(Q,K){for(var ce=0,ge=0;ge<K.length;ge++)if(C[K[ge].id]!==void 0){var $e=t.direction.getPosition(C[K[ge].id])-Q;ce-=O*Math.pow($e*$e+O,-1.5)}return ce},F=function(Q,K){for(var ce=t.direction.getPosition($),ge={},$e=0;$e<Q;$e++){var Te=X(ce,K),xe=Z(ce,K),ke=40,H=Math.max(-ke,Math.min(ke,Math.round(Te/xe)));if(ce=ce-H,ge[ce]!==void 0)break;ge[ce]=$e}return ce},ee=function(Q){var K=t.direction.getPosition($);if(i[$.id]===void 0){var ce={};l($,ce),i[$.id]=ce}var ge=u(i[$.id]),$e=ge[2],Te=ge[3],xe=Q-K,ke=0;xe>0?ke=Math.min(xe,Te-t.options.hierarchical.nodeSpacing):xe<0&&(ke=-Math.min(-xe,$e-t.options.hierarchical.nodeSpacing)),ke!=0&&(t._shiftBlock($.id,ke),n=!0)},x=function(Q){var K=t.direction.getPosition($),ce=t._getSpaceAroundNode($),ge=ct(ce,2),$e=ge[0],Te=ge[1],xe=Q-K,ke=K;xe>0?ke=Math.min(K+(Te-t.options.hierarchical.nodeSpacing),Q):xe<0&&(ke=Math.max(K-($e-t.options.hierarchical.nodeSpacing),Q)),ke!==K&&(t.direction.setPosition($,ke),n=!0)},L=F(m,k);ee(L),L=F(m,S),x(L)},v=function(m){var $=t.hierarchical.getLevels();$=Ua($).call($);for(var w=0;w<m;w++){n=!1;for(var S=0;S<$.length;S++)for(var P=$[S],O=t.hierarchical.distributionOrdering[P],C=0;C<O.length;C++)h(1e3,O[C]);if(n!==!0)break}},p=function(m){var $=t.hierarchical.getLevels();$=Ua($).call($);for(var w=0;w<m&&(n=!1,d(f,$,!0),n===!0);w++);},b=function(){for(var m in t.body.nodes)Object.prototype.hasOwnProperty.call(t.body.nodes,m)&&t._centerParent(t.body.nodes[m])},y=function(){var m=t.hierarchical.getLevels();m=Ua(m).call(m);for(var $=0;$<m.length;$++)for(var w=m[$],S=t.hierarchical.distributionOrdering[w],P=0;P<S.length;P++)t._centerParent(S[P])};this.options.hierarchical.blockShifting===!0&&(p(5),b()),this.options.hierarchical.edgeMinimization===!0&&v(20),this.options.hierarchical.parentCentralization===!0&&y(),o()}},{key:"_getSpaceAroundNode",value:function(t,n){var i=!0;n===void 0&&(i=!1);var o=this.hierarchical.levels[t.id];if(o!==void 0){var a=this.hierarchical.distributionIndex[t.id],s=this.direction.getPosition(t),l=this.hierarchical.distributionOrdering[o],u=1e9,c=1e9;if(a!==0){var d=l[a-1];if(i===!0&&n[d.id]===void 0||i===!1){var f=this.direction.getPosition(d);u=s-f}}if(a!=l.length-1){var h=l[a+1];if(i===!0&&n[h.id]===void 0||i===!1){var v=this.direction.getPosition(h);c=Math.min(c,v-s)}}return[u,c]}else return[0,0]}},{key:"_centerParent",value:function(t){if(this.hierarchical.parentReference[t.id])for(var n=this.hierarchical.parentReference[t.id],i=0;i<n.length;i++){var o=n[i],a=this.body.nodes[o],s=this.hierarchical.childrenReference[o];if(s!==void 0){var l=this._getCenterPosition(s),u=this.direction.getPosition(a),c=this._getSpaceAroundNode(a),d=ct(c,2),f=d[0],h=d[1],v=u-l;(v<0&&Math.abs(v)<h-this.options.hierarchical.nodeSpacing||v>0&&Math.abs(v)<f-this.options.hierarchical.nodeSpacing)&&this.direction.setPosition(a,l)}}}},{key:"_placeNodesByHierarchy",value:function(t){this.positionedNodes={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i,o=ut(t[n]);o=this._indexArrayToNodes(o),Qc(i=this.direction).call(i,o);for(var a=0,s=0;s<o.length;s++){var l=o[s];if(this.positionedNodes[l.id]===void 0){var u=this.options.hierarchical.nodeSpacing,c=u*a;a>0&&(c=this.direction.getPosition(o[s-1])+u),this.direction.setPosition(l,c,n),this._validatePositionAndContinue(l,n,c),a++}}}}},{key:"_placeBranchNodes",value:function(t,n){var i,o=this.hierarchical.childrenReference[t];if(o!==void 0){for(var a=[],s=0;s<o.length;s++)a.push(this.body.nodes[o[s]]);Qc(i=this.direction).call(i,a);for(var l=0;l<a.length;l++){var u=a[l],c=this.hierarchical.levels[u.id];if(c>n&&this.positionedNodes[u.id]===void 0){var d=this.options.hierarchical.nodeSpacing,f=void 0;l===0?f=this.direction.getPosition(this.body.nodes[t]):f=this.direction.getPosition(a[l-1])+d,this.direction.setPosition(u,f,c),this._validatePositionAndContinue(u,c,f)}else return}var h=this._getCenterPosition(a);this.direction.setPosition(this.body.nodes[t],h,n)}}},{key:"_validatePositionAndContinue",value:function(t,n,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[n]!==void 0){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[n]]);if(i-o<this.options.hierarchical.nodeSpacing){var a=o+this.options.hierarchical.nodeSpacing-i,s=this._findCommonParent(this.lastNodeOnLevel[n],t.id);this._shiftBlock(s.withChild,a)}}this.lastNodeOnLevel[n]=t.id,this.positionedNodes[t.id]=!0,this._placeBranchNodes(t.id,n)}}},{key:"_indexArrayToNodes",value:function(t){for(var n=[],i=0;i<t.length;i++)n.push(this.body.nodes[t[i]]);return n}},{key:"_getDistribution",value:function(){var t={},n,i;for(n in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,n)){i=this.body.nodes[n];var o=this.hierarchical.levels[n]===void 0?0:this.hierarchical.levels[n];this.direction.fix(i,o),t[o]===void 0&&(t[o]={}),t[o][n]=i}return t}},{key:"_getActiveEdges",value:function(t){var n=this,i=[];return be(t.edges,function(o){var a;Ie(a=n.body.edgeIndices).call(a,o.id)!==-1&&i.push(o)}),i}},{key:"_getHubSizes",value:function(){var t=this,n={},i=this.body.nodeIndices;be(i,function(a){var s=t.body.nodes[a],l=t._getActiveEdges(s).length;n[l]=!0});var o=[];return be(n,function(a){o.push(Number(a))}),Qc(o).call(o,function(a,s){return s-a}),o}},{key:"_determineLevelsByHubsize",value:function(){for(var t=this,n=function(l,u){t.hierarchical.levelDownstream(l,u)},i=this._getHubSizes(),o=function(){var l=i[a];if(l===0)return 1;be(t.body.nodeIndices,function(u){var c=t.body.nodes[u];l===t._getActiveEdges(c).length&&t._crawlNetwork(n,u)})},a=0;a<i.length&&!o();++a);}},{key:"_determineLevelsCustomCallback",value:function(){var t=this,n=1e5,i=function(s,l,u){},o=function(s,l,u){var c=t.hierarchical.levels[s.id];c===void 0&&(c=t.hierarchical.levels[s.id]=n);var d=i(ur.cloneOptions(s,"node"),ur.cloneOptions(l,"node"),ur.cloneOptions(u,"edge"));t.hierarchical.levels[l.id]=c+d};this._crawlNetwork(o),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_determineLevelsDirected",value:function(){var t,n=this,i=Lz(t=this.body.nodeIndices).call(t,function(o,a){return o.set(a,n.body.nodes[a]),o},new az);this.options.hierarchical.shakeTowards==="roots"?this.hierarchical.levels=ZLe(i):this.hierarchical.levels=QLe(i),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var t=this,n=function(o,a){t.hierarchical.levels[a.id]>t.hierarchical.levels[o.id]&&t.hierarchical.addRelation(o.id,a.id)};this._crawlNetwork(n),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,o={},a=function f(h,v){if(o[h.id]===void 0){t.hierarchical.setTreeIndex(h,v),o[h.id]=!0;for(var p,b=t._getActiveEdges(h),y=0;y<b.length;y++){var g=b[y];g.connected===!0&&(g.toId==h.id?p=g.from:p=g.to,h.id!=p.id&&(n(h,p,g),f(p,v)))}}};if(i===void 0)for(var s=0,l=0;l<this.body.nodeIndices.length;l++){var u=this.body.nodeIndices[l];if(o[u]===void 0){var c=this.body.nodes[u];a(c,s),s+=1}}else{var d=this.body.nodes[i];if(d===void 0){console.error("Node not found:",i);return}a(d)}}},{key:"_shiftBlock",value:function(t,n){var i=this,o={},a=function s(l){if(!o[l]){o[l]=!0,i.direction.shift(l,n);var u=i.hierarchical.childrenReference[l];if(u!==void 0)for(var c=0;c<u.length;c++)s(u[c])}};a(t)}},{key:"_findCommonParent",value:function(t,n){var i=this,o={},a=function l(u,c){var d=i.hierarchical.parentReference[c];if(d!==void 0)for(var f=0;f<d.length;f++){var h=d[f];u[h]=!0,l(u,h)}},s=function l(u,c){var d=i.hierarchical.parentReference[c];if(d!==void 0)for(var f=0;f<d.length;f++){var h=d[f];if(u[h]!==void 0)return{foundParent:h,withChild:c};var v=l(u,h);if(v.foundParent!==null)return v}return{foundParent:null,withChild:c}};return a(o,t),s(o,n)}},{key:"setDirectionStrategy",value:function(){var t=this.options.hierarchical.direction==="UD"||this.options.hierarchical.direction==="DU";t?this.direction=new MLe(this):this.direction=new NLe(this)}},{key:"_getCenterPosition",value:function(t){for(var n=1e9,i=-1e9,o=0;o<t.length;o++){var a=void 0;if(t[o].id!==void 0)a=t[o];else{var s=t[o];a=this.body.nodes[s]}var l=this.direction.getPosition(a);n=Math.min(n,l),i=Math.max(i,l)}return .5*(n+i)}}]),e}();function t3e(e,r){var t=typeof ca<"u"&&Ps(e)||e["@@iterator"];if(!t){if(Be(e)||(t=r3e(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
156
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}function r3e(e,r){var t;if(e){if(typeof e=="string")return $2(e,r);var n=Ut(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Os(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $2(e,r)}}function $2(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var n3e=function(){function e(r,t,n,i){var o=this,a,s;q(this,e),this.body=r,this.canvas=t,this.selectionHandler=n,this.interactionHandler=i,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this._domEventListenerCleanupQueue=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},wt(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){o._clean()}),this.body.emitter.on("_dataChanged",V(a=this._restore).call(a,this)),this.body.emitter.on("_resetData",V(s=this._restore).call(s,this))}return Y(e,[{key:"_restore",value:function(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(t,n,i){n!==void 0&&(n.locale!==void 0?this.options.locale=n.locale:this.options.locale=i.locale,n.locales!==void 0?this.options.locales=n.locales:this.options.locales=i.locales),t!==void 0&&(typeof t=="boolean"?this.options.enabled=t:(this.options.enabled=!0,Ge(this.options,t)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){var t,n;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var i=this.selectionHandler.getSelectedNodeCount(),o=this.selectionHandler.getSelectedEdgeCount(),a=i+o,s=this.options.locales[this.options.locale],l=!1;this.options.addNode!==!1&&(this._createAddNodeButton(s),l=!0),this.options.addEdge!==!1&&(l===!0?this._createSeperator(1):l=!0,this._createAddEdgeButton(s)),i===1&&typeof this.options.editNode=="function"?(l===!0?this._createSeperator(2):l=!0,this._createEditNodeButton(s)):o===1&&i===0&&this.options.editEdge!==!1&&(l===!0?this._createSeperator(3):l=!0,this._createEditEdgeButton(s)),a!==0&&(i>0&&this.options.deleteNode!==!1?(l===!0&&this._createSeperator(4),this._createDeleteButton(s)):i===0&&this.options.deleteEdge!==!1&&(l===!0&&this._createSeperator(4),this._createDeleteButton(s))),this._bindElementEvents(this.closeDiv,V(t=this.toggleEditMode).call(t,this)),this._temporaryBindEvent("select",V(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var t;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,V(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",V(t=this._performAddNode).call(t,this))}},{key:"editNode",value:function(){var t=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 i=Ge({},n.options,!1);if(i.x=n.x,i.y=n.y,this.options.editNode.length===2)this.options.editNode(i,function(o){o!=null&&t.inMode==="editNode"&&t.body.data.nodes.getDataSet().update(o),t.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 t,n,i,o,a;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var s,l=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(l),this._createSeperator(),this._createDescription(l.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,V(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",V(t=this._handleConnect).call(t,this)),this._temporaryBindUI("onDragEnd",V(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",V(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",V(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",V(a=this._dragStartEdge).call(a,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",We(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var t=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(t.from.id,t.to.id);return}if(this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,V(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var o,a,s,l,u=this.body.edges[this.edgeBeingEditedId],c=this._getNewTargetNode(u.from.x,u.from.y),d=this._getNewTargetNode(u.to.x,u.to.y);this.temporaryIds.nodes.push(c.id),this.temporaryIds.nodes.push(d.id),this.body.nodes[c.id]=c,this.body.nodeIndices.push(c.id),this.body.nodes[d.id]=d,this.body.nodeIndices.push(d.id),this._temporaryBindUI("onTouch",V(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",V(a=this._controlNodeDragStart).call(a,this)),this._temporaryBindUI("onDrag",V(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",V(l=this._controlNodeDragEnd).call(l,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(f){var h=u.edgeType.findBorderPositions(f);c.selected===!1&&(c.x=h.from.x,c.y=h.from.y),d.selected===!1&&(d.x=h.to.x,d.y=h.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var t=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),i=this.selectionHandler.getSelectedEdgeIds(),o=void 0;if(n.length>0){for(var a=0;a<n.length;a++)if(this.body.nodes[n[a]].isCluster===!0){alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);return}typeof this.options.deleteNode=="function"&&(o=this.options.deleteNode)}else i.length>0&&typeof this.options.deleteEdge=="function"&&(o=this.options.deleteEdge);if(typeof o=="function"){var s={nodes:n,edges:i};if(o.length===2)o(s,function(l){l!=null&&t.inMode==="delete"?(t.body.data.edges.getDataSet().remove(l.edges),t.body.data.nodes.getDataSet().remove(l.nodes),t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar()):(t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(i),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 t,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(t=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.close)!==null&&t!==void 0?t:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(t,n){var i=Ge({},this.options.controlNodeStyle);i.id="targetNode"+Yc(),i.hidden=!1,i.physics=!1,i.x=t,i.y=n;var o=this.body.functions.createNode(i);return o.shape.boundingBox={left:t,right:t,top:n,bottom:n},o}},{key:"_createEditButton",value:function(){var t;this._clean(),this.manipulationDOM={},po(this.editModeDiv);var n=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,V(t=this.toggleEditMode).call(t,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(po(this.editModeDiv),po(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var t,n=t3e(Hi(t=this._domEventListenerCleanupQueue).call(t,0)),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o()}}catch(a){n.e(a)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),po(this.manipulationDiv),po(this.editModeDiv),po(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 t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+t]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+t].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+t])}},{key:"_createAddNodeButton",value:function(t){var n,i=this._createButton("addNode","vis-add",t.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,V(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(t){var n,i=this._createButton("addEdge","vis-connect",t.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,V(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(t){var n,i=this._createButton("editNode","vis-edit",t.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,V(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(t){var n,i=this._createButton("editEdge","vis-edit",t.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,V(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(t){var n,i;this.options.rtl?i="vis-delete-rtl":i="vis-delete";var o=this._createButton("delete",i,t.del||this.options.locales.en.del);this.manipulationDiv.appendChild(o),this._bindElementEvents(o,V(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(t){var n,i=this._createButton("back","vis-back",t.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,V(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(t,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[t+"Div"]=document.createElement("button"),this.manipulationDOM[t+"Div"].className="vis-button "+n,this.manipulationDOM[t+"Label"]=document.createElement("div"),this.manipulationDOM[t+"Label"].className=o,this.manipulationDOM[t+"Label"].innerText=i,this.manipulationDOM[t+"Div"].appendChild(this.manipulationDOM[t+"Label"]),this.manipulationDOM[t+"Div"]}},{key:"_createDescription",value:function(t){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=t,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(t,n){this.temporaryEventFunctions.push({event:t,boundFunction:n}),this.body.emitter.on(t,n)}},{key:"_temporaryBindUI",value:function(t,n){if(this.body.eventListeners[t]!==void 0)this.temporaryUIFunctions[t]=this.body.eventListeners[t],this.body.eventListeners[t]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+t+" possible are: "+Vf(ut(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var t in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,t)&&(this.body.eventListeners[t]=this.temporaryUIFunctions[t],delete this.temporaryUIFunctions[t]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var t=0;t<this.temporaryEventFunctions.length;t++){var n=this.temporaryEventFunctions[t].event,i=this.temporaryEventFunctions[t].boundFunction;this.body.emitter.off(n,i)}this.temporaryEventFunctions=[]}},{key:"_bindElementEvents",value:function(t,n){var i=new xl(t,{});Kp(i,n),this._domEventListenerCleanupQueue.push(function(){i.destroy()});var o=function(s){var l=s.keyCode,u=s.key;(u==="Enter"||u===" "||l===13||l===32)&&n()};t.addEventListener("keyup",o,!1),this._domEventListenerCleanupQueue.push(function(){t.removeEventListener("keyup",o,!1)})}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var t=0;t<this.temporaryIds.edges.length;t++){var n;this.body.edges[this.temporaryIds.edges[t]].disconnect(),delete this.body.edges[this.temporaryIds.edges[t]];var i=Ie(n=this.body.edgeIndices).call(n,this.temporaryIds.edges[t]);if(i!==-1){var o;Hi(o=this.body.edgeIndices).call(o,i,1)}}for(var a=0;a<this.temporaryIds.nodes.length;a++){var s;delete this.body.nodes[this.temporaryIds.nodes[a]];var l=Ie(s=this.body.nodeIndices).call(s,this.temporaryIds.nodes[a]);if(l!==-1){var u;Hi(u=this.body.nodeIndices).call(u,l,1)}}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(t){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=wt({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(){var t=this.lastTouch,n=this.selectionHandler._pointerToPositionObject(t),i=this.body.nodes[this.temporaryIds.nodes[0]],o=this.body.nodes[this.temporaryIds.nodes[1]],a=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var s=i.isOverlappingWith(n),l=o.isOverlappingWith(n);s===!0?(this.selectedControlNode=i,a.edgeType.from=i):l===!0&&(this.selectedControlNode=o,a.edgeType.to=o),this.selectedControlNode!==void 0&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(t){this.body.emitter.emit("disablePhysics");var n=this.body.functions.getPointer(t.center),i=this.canvas.DOMtoCanvas(n);this.selectedControlNode!==void 0?(this.selectedControlNode.x=i.x,this.selectedControlNode.y=i.y):this.interactionHandler.onDrag(t),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(t){var n=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(n),o=this.body.edges[this.edgeBeingEditedId];if(this.selectedControlNode!==void 0){this.selectionHandler.unselectAll();for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--)if(a[l]!==this.selectedControlNode.id){s=this.body.nodes[a[l]];break}if(s!==void 0&&this.selectedControlNode!==void 0)if(s.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var u=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===u.id?this._performEditEdge(s.id,o.to.id):this._performEditEdge(o.from.id,s.id)}else o.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(t){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=wt({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,i=this.selectionHandler.getNodeAt(n);if(i!==void 0)if(i.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var o=this._getNewTargetNode(i.x,i.y);this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id);var a=this.body.functions.createEdge({id:"connectionEdge"+Yc(),from:i.id,to:o.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[a.id]=a,this.body.edgeIndices.push(a.id),this.temporaryIds.nodes.push(o.id),this.temporaryIds.edges.push(a.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(t){var n=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var u;if(Ie(u=this.temporaryIds.nodes).call(u,a[l])===-1){s=this.body.nodes[a[l]];break}}if(t.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",t,n),this.temporaryIds.nodes[0]!==void 0){var c=this.body.nodes[this.temporaryIds.nodes[0]];c.x=this.canvas._XconvertDOMtoCanvas(n.x),c.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(t)}},{key:"_finishConnect",value:function(t){var n=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var u;if(Ie(u=this.temporaryIds.nodes).call(u,a[l])===-1){s=this.body.nodes[a[l]];break}}this._cleanupTemporaryNodesAndEdges(),s!==void 0&&(s.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[o]!==void 0&&this.body.nodes[s.id]!==void 0&&this._performAddEdge(o,s.id)),t.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",t,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(t){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",t,n,void 0,!0)}},{key:"_performAddNode",value:function(t){var n=this,i={id:Yc(),x:t.pointer.canvas.x,y:t.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(i,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(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(t,n){var i=this,o={from:t,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(o,function(a){a!=null&&i.inMode==="addEdge"&&(i.body.data.edges.getDataSet().add(a),i.selectionHandler.unselectAll(),i.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(t,n){var i=this,o={id:this.edgeBeingEditedId,from:t,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},a=this.options.editEdge;if(We(a)==="object"&&(a=a.editWithoutDrag),typeof a=="function")if(a.length===2)a(o,function(s){s==null||i.inMode!=="editEdge"?(i.body.edges[o.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(s),i.selectionHandler.unselectAll(),i.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()}}]),e}(),G="string",U="boolean",I="number",Cc="array",se="object",Wz="dom",i3e="any",F1=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],L1={borderWidth:{number:I},borderWidthSelected:{number:I,undefined:"undefined"},brokenImage:{string:G,undefined:"undefined"},chosen:{label:{boolean:U,function:"function"},node:{boolean:U,function:"function"},__type__:{object:se,boolean:U}},color:{border:{string:G},background:{string:G},highlight:{border:{string:G},background:{string:G},__type__:{object:se,string:G}},hover:{border:{string:G},background:{string:G},__type__:{object:se,string:G}},__type__:{object:se,string:G}},opacity:{number:I,undefined:"undefined"},fixed:{x:{boolean:U},y:{boolean:U},__type__:{object:se,boolean:U}},font:{align:{string:G},color:{string:G},size:{number:I},face:{string:G},background:{string:G},strokeWidth:{number:I},strokeColor:{string:G},vadjust:{number:I},multi:{boolean:U,string:G},bold:{color:{string:G},size:{number:I},face:{string:G},mod:{string:G},vadjust:{number:I},__type__:{object:se,string:G}},boldital:{color:{string:G},size:{number:I},face:{string:G},mod:{string:G},vadjust:{number:I},__type__:{object:se,string:G}},ital:{color:{string:G},size:{number:I},face:{string:G},mod:{string:G},vadjust:{number:I},__type__:{object:se,string:G}},mono:{color:{string:G},size:{number:I},face:{string:G},mod:{string:G},vadjust:{number:I},__type__:{object:se,string:G}},__type__:{object:se,string:G}},group:{string:G,number:I,undefined:"undefined"},heightConstraint:{minimum:{number:I},valign:{string:G},__type__:{object:se,boolean:U,number:I}},hidden:{boolean:U},icon:{face:{string:G},code:{string:G},size:{number:I},color:{string:G},weight:{string:G,number:I},__type__:{object:se}},id:{string:G,number:I},image:{selected:{string:G,undefined:"undefined"},unselected:{string:G,undefined:"undefined"},__type__:{object:se,string:G}},imagePadding:{top:{number:I},right:{number:I},bottom:{number:I},left:{number:I},__type__:{object:se,number:I}},label:{string:G,undefined:"undefined"},labelHighlightBold:{boolean:U},level:{number:I,undefined:"undefined"},margin:{top:{number:I},right:{number:I},bottom:{number:I},left:{number:I},__type__:{object:se,number:I}},mass:{number:I},physics:{boolean:U},scaling:{min:{number:I},max:{number:I},label:{enabled:{boolean:U},min:{number:I},max:{number:I},maxVisible:{number:I},drawThreshold:{number:I},__type__:{object:se,boolean:U}},customScalingFunction:{function:"function"},__type__:{object:se}},shadow:{enabled:{boolean:U},color:{string:G},size:{number:I},x:{number:I},y:{number:I},__type__:{object:se,boolean:U}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:U,array:Cc},borderRadius:{number:I},interpolation:{boolean:U},useImageSize:{boolean:U},useBorderWithImage:{boolean:U},coordinateOrigin:{string:["center","top-left"]},__type__:{object:se}},size:{number:I},title:{string:G,dom:Wz,undefined:"undefined"},value:{number:I,undefined:"undefined"},widthConstraint:{minimum:{number:I},maximum:{number:I},__type__:{object:se,boolean:U,number:I}},x:{number:I},y:{number:I},__type__:{object:se}},o3e={configure:{enabled:{boolean:U},filter:{boolean:U,string:G,array:Cc,function:"function"},container:{dom:Wz},showButton:{boolean:U},__type__:{object:se,boolean:U,string:G,array:Cc,function:"function"}},edges:{arrows:{to:{enabled:{boolean:U},scaleFactor:{number:I},type:{string:F1},imageHeight:{number:I},imageWidth:{number:I},src:{string:G},__type__:{object:se,boolean:U}},middle:{enabled:{boolean:U},scaleFactor:{number:I},type:{string:F1},imageWidth:{number:I},imageHeight:{number:I},src:{string:G},__type__:{object:se,boolean:U}},from:{enabled:{boolean:U},scaleFactor:{number:I},type:{string:F1},imageWidth:{number:I},imageHeight:{number:I},src:{string:G},__type__:{object:se,boolean:U}},__type__:{string:["from","to","middle"],object:se}},endPointOffset:{from:{number:I},to:{number:I},__type__:{object:se,number:I}},arrowStrikethrough:{boolean:U},background:{enabled:{boolean:U},color:{string:G},size:{number:I},dashes:{boolean:U,array:Cc},__type__:{object:se,boolean:U}},chosen:{label:{boolean:U,function:"function"},edge:{boolean:U,function:"function"},__type__:{object:se,boolean:U}},color:{color:{string:G},highlight:{string:G},hover:{string:G},inherit:{string:["from","to","both"],boolean:U},opacity:{number:I},__type__:{object:se,string:G}},dashes:{boolean:U,array:Cc},font:{color:{string:G},size:{number:I},face:{string:G},background:{string:G},strokeWidth:{number:I},strokeColor:{string:G},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:I},multi:{boolean:U,string:G},bold:{color:{string:G},size:{number:I},face:{string:G},mod:{string:G},vadjust:{number:I},__type__:{object:se,string:G}},boldital:{color:{string:G},size:{number:I},face:{string:G},mod:{string:G},vadjust:{number:I},__type__:{object:se,string:G}},ital:{color:{string:G},size:{number:I},face:{string:G},mod:{string:G},vadjust:{number:I},__type__:{object:se,string:G}},mono:{color:{string:G},size:{number:I},face:{string:G},mod:{string:G},vadjust:{number:I},__type__:{object:se,string:G}},__type__:{object:se,string:G}},hidden:{boolean:U},hoverWidth:{function:"function",number:I},label:{string:G,undefined:"undefined"},labelHighlightBold:{boolean:U},length:{number:I,undefined:"undefined"},physics:{boolean:U},scaling:{min:{number:I},max:{number:I},label:{enabled:{boolean:U},min:{number:I},max:{number:I},maxVisible:{number:I},drawThreshold:{number:I},__type__:{object:se,boolean:U}},customScalingFunction:{function:"function"},__type__:{object:se}},selectionWidth:{function:"function",number:I},selfReferenceSize:{number:I},selfReference:{size:{number:I},angle:{number:I},renderBehindTheNode:{boolean:U},__type__:{object:se}},shadow:{enabled:{boolean:U},color:{string:G},size:{number:I},x:{number:I},y:{number:I},__type__:{object:se,boolean:U}},smooth:{enabled:{boolean:U},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:I},forceDirection:{string:["horizontal","vertical","none"],boolean:U},__type__:{object:se,boolean:U}},title:{string:G,undefined:"undefined"},width:{number:I},widthConstraint:{maximum:{number:I},__type__:{object:se,boolean:U,number:I}},value:{number:I,undefined:"undefined"},__type__:{object:se}},groups:{useDefaultGroups:{boolean:U},__any__:L1,__type__:{object:se}},interaction:{dragNodes:{boolean:U},dragView:{boolean:U},hideEdgesOnDrag:{boolean:U},hideEdgesOnZoom:{boolean:U},hideNodesOnDrag:{boolean:U},hover:{boolean:U},keyboard:{enabled:{boolean:U},speed:{x:{number:I},y:{number:I},zoom:{number:I},__type__:{object:se}},bindToWindow:{boolean:U},autoFocus:{boolean:U},__type__:{object:se,boolean:U}},multiselect:{boolean:U},navigationButtons:{boolean:U},selectable:{boolean:U},selectConnectedEdges:{boolean:U},hoverConnectedEdges:{boolean:U},tooltipDelay:{number:I},zoomView:{boolean:U},zoomSpeed:{number:I},__type__:{object:se}},layout:{randomSeed:{undefined:"undefined",number:I,string:G},improvedLayout:{boolean:U},clusterThreshold:{number:I},hierarchical:{enabled:{boolean:U},levelSeparation:{number:I},nodeSpacing:{number:I},treeSpacing:{number:I},blockShifting:{boolean:U},edgeMinimization:{boolean:U},parentCentralization:{boolean:U},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:se,boolean:U}},__type__:{object:se}},manipulation:{enabled:{boolean:U},initiallyActive:{boolean:U},addNode:{boolean:U,function:"function"},addEdge:{boolean:U,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:se,boolean:U,function:"function"}},deleteNode:{boolean:U,function:"function"},deleteEdge:{boolean:U,function:"function"},controlNodeStyle:L1,__type__:{object:se,boolean:U}},nodes:L1,physics:{enabled:{boolean:U},barnesHut:{theta:{number:I},gravitationalConstant:{number:I},centralGravity:{number:I},springLength:{number:I},springConstant:{number:I},damping:{number:I},avoidOverlap:{number:I},__type__:{object:se}},forceAtlas2Based:{theta:{number:I},gravitationalConstant:{number:I},centralGravity:{number:I},springLength:{number:I},springConstant:{number:I},damping:{number:I},avoidOverlap:{number:I},__type__:{object:se}},repulsion:{centralGravity:{number:I},springLength:{number:I},springConstant:{number:I},nodeDistance:{number:I},damping:{number:I},__type__:{object:se}},hierarchicalRepulsion:{centralGravity:{number:I},springLength:{number:I},springConstant:{number:I},nodeDistance:{number:I},damping:{number:I},avoidOverlap:{number:I},__type__:{object:se}},maxVelocity:{number:I},minVelocity:{number:I},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:U},iterations:{number:I},updateInterval:{number:I},onlyDynamicEdges:{boolean:U},fit:{boolean:U},__type__:{object:se,boolean:U}},timestep:{number:I},adaptiveTimestep:{boolean:U},wind:{x:{number:I},y:{number:I},__type__:{object:se}},__type__:{object:se,boolean:U}},autoResize:{boolean:U},clickToUse:{boolean:U},locale:{string:G},locales:{__any__:{any:i3e},__type__:{object:se}},height:{string:G},width:{string:G},__type__:{object:se}},Uz={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]}}},a3e=function(r,t,n){var i;return!!(Uo(r).call(r,"physics")&&Uo(i=Uz.physics.solver).call(i,t)&&n.physics.solver!==t&&t!=="wind")},s3e=function(){function e(){q(this,e)}return Y(e,[{key:"getDistances",value:function(t,n,i){for(var o={},a=t.edges,s=0;s<n.length;s++){var l=n[s],u={};o[l]=u;for(var c=0;c<n.length;c++)u[n[c]]=s==c?0:1e9}for(var d=0;d<i.length;d++){var f=a[i[d]];f.connected===!0&&o[f.fromId]!==void 0&&o[f.toId]!==void 0&&(o[f.fromId][f.toId]=1,o[f.toId][f.fromId]=1)}for(var h=n.length,v=0;v<h;v++)for(var p=n[v],b=o[p],y=0;y<h-1;y++)for(var g=n[y],m=o[g],$=y+1;$<h;$++){var w=n[$],S=o[w],P=Math.min(m[w],m[p]+b[w]);m[w]=P,S[g]=P}return o}}]),e}(),l3e=function(){function e(r,t,n){q(this,e),this.body=r,this.springLength=t,this.springConstant=n,this.distanceSolver=new s3e}return Y(e,[{key:"setOptions",value:function(t){t&&(t.springLength&&(this.springLength=t.springLength),t.springConstant&&(this.springConstant=t.springConstant))}},{key:"solve",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.distanceSolver.getDistances(this.body,t,n);this._createL_matrix(o),this._createK_matrix(o),this._createE_matrix();for(var a=.01,s=1,l=0,u=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),c=5,d=1e9,f=0,h=0,v=0,p=0,b=0;d>a&&l<u;){l+=1;var y=this._getHighestEnergyNode(i),g=ct(y,4);for(f=g[0],d=g[1],h=g[2],v=g[3],p=d,b=0;p>s&&b<c;){b+=1,this._moveNode(f,h,v);var m=this._getEnergy(f),$=ct(m,3);p=$[0],h=$[1],v=$[2]}}}},{key:"_getHighestEnergyNode",value:function(t){for(var n=this.body.nodeIndices,i=this.body.nodes,o=0,a=n[0],s=0,l=0,u=0;u<n.length;u++){var c=n[u];if(i[c].predefinedPosition!==!0||i[c].isCluster===!0&&t===!0||i[c].options.fixed.x!==!0||i[c].options.fixed.y!==!0){var d=this._getEnergy(c),f=ct(d,3),h=f[0],v=f[1],p=f[2];o<h&&(o=h,a=c,s=v,l=p)}}return[a,o,s,l]}},{key:"_getEnergy",value:function(t){var n=ct(this.E_sums[t],2),i=n[0],o=n[1],a=Math.sqrt(Math.pow(i,2)+Math.pow(o,2));return[a,i,o]}},{key:"_moveNode",value:function(t,n,i){for(var o=this.body.nodeIndices,a=this.body.nodes,s=0,l=0,u=0,c=a[t].x,d=a[t].y,f=this.K_matrix[t],h=this.L_matrix[t],v=0;v<o.length;v++){var p=o[v];if(p!==t){var b=a[p].x,y=a[p].y,g=f[p],m=h[p],$=1/Math.pow(Math.pow(c-b,2)+Math.pow(d-y,2),1.5);s+=g*(1-m*Math.pow(d-y,2)*$),l+=g*(m*(c-b)*(d-y)*$),u+=g*(1-m*Math.pow(c-b,2)*$)}}var w=s,S=l,P=n,O=u,C=i,k=(P/w+C/S)/(S/w-O/S),R=-(S*k+P)/w;a[t].x+=R,a[t].y+=k,this._updateE_matrix(t)}},{key:"_createL_matrix",value:function(t){var n=this.body.nodeIndices,i=this.springLength;this.L_matrix=[];for(var o=0;o<n.length;o++){this.L_matrix[n[o]]={};for(var a=0;a<n.length;a++)this.L_matrix[n[o]][n[a]]=i*t[n[o]][n[a]]}}},{key:"_createK_matrix",value:function(t){var n=this.body.nodeIndices,i=this.springConstant;this.K_matrix=[];for(var o=0;o<n.length;o++){this.K_matrix[n[o]]={};for(var a=0;a<n.length;a++)this.K_matrix[n[o]][n[a]]=i*Math.pow(t[n[o]][n[a]],-2)}}},{key:"_createE_matrix",value:function(){var t=this.body.nodeIndices,n=this.body.nodes;this.E_matrix={},this.E_sums={};for(var i=0;i<t.length;i++)this.E_matrix[t[i]]=[];for(var o=0;o<t.length;o++){for(var a=t[o],s=n[a].x,l=n[a].y,u=0,c=0,d=o;d<t.length;d++){var f=t[d];if(f!==a){var h=n[f].x,v=n[f].y,p=1/Math.sqrt(Math.pow(s-h,2)+Math.pow(l-v,2));this.E_matrix[a][d]=[this.K_matrix[a][f]*(s-h-this.L_matrix[a][f]*(s-h)*p),this.K_matrix[a][f]*(l-v-this.L_matrix[a][f]*(l-v)*p)],this.E_matrix[f][o]=this.E_matrix[a][d],u+=this.E_matrix[a][d][0],c+=this.E_matrix[a][d][1]}}this.E_sums[a]=[u,c]}}},{key:"_updateE_matrix",value:function(t){for(var n=this.body.nodeIndices,i=this.body.nodes,o=this.E_matrix[t],a=this.K_matrix[t],s=this.L_matrix[t],l=i[t].x,u=i[t].y,c=0,d=0,f=0;f<n.length;f++){var h=n[f];if(h!==t){var v=o[f],p=v[0],b=v[1],y=i[h].x,g=i[h].y,m=1/Math.sqrt(Math.pow(l-y,2)+Math.pow(u-g,2)),$=a[h]*(l-y-s[h]*(l-y)*m),w=a[h]*(u-g-s[h]*(u-g)*m);o[f]=[$,w],c+=$,d+=w;var S=this.E_sums[h];S[0]+=$-p,S[1]+=w-b}}this.E_sums[t]=[c,d]}}]),e}();function ae(e,r,t){var n,i,o,a,s=this;if(!(this instanceof ae))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:oIe,clickToUse:!1},wt(this.options,this.defaultOptions),this.body={container:e,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:V(n=this.on).call(n,this),off:V(i=this.off).call(i,this),emit:V(o=this.emit).call(o,this),once:V(a=this.once).call(a,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}},selectionBox:{show:!1,position:{start:{x:0,y:0},end:{x:0,y:0}}}},this.bindEventListeners(),this.images=new lIe(function(){return s.body.emitter.emit("_requestRedraw")}),this.groups=new ORe,this.canvas=new HDe(this.body),this.selectionHandler=new RFe(this.body,this.canvas),this.interactionHandler=new qDe(this.body,this.canvas,this.selectionHandler),this.view=new UDe(this.body,this.canvas),this.renderer=new FDe(this.body,this.canvas),this.physics=new CDe(this.body),this.layoutEngine=new e3e(this.body),this.clustering=new NDe(this.body),this.manipulation=new n3e(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new cNe(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new gDe(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new l3e(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(t),this.setData(r)}Wj(ae.prototype);ae.prototype.setOptions=function(e){var r=this;if(e===null&&(e=void 0),e!==void 0){var t=Dke.validate(e,o3e);t===!0&&console.error("%cErrors have been found in the supplied options object.",K5);var n=["locale","locales","clickToUse"];if(Ju(n,this.options,e),e.locale!==void 0&&(e.locale=aIe(e.locales||this.options.locales,e.locale)),e=this.layoutEngine.setOptions(e.layout,e),this.canvas.setOptions(e),this.groups.setOptions(e.groups),this.nodesHandler.setOptions(e.nodes),this.edgesHandler.setOptions(e.edges),this.physics.setOptions(e.physics),this.manipulation.setOptions(e.manipulation,e,this.options),this.interactionHandler.setOptions(e.interaction),this.renderer.setOptions(e.interaction),this.selectionHandler.setOptions(e.interaction),e.groups!==void 0&&this.body.emitter.emit("refreshNodes"),"configure"in e&&(this.configurator||(this.configurator=new Mke(this,this.body.container,Uz,this.canvas.pixelRatio,a3e)),this.configurator.setOptions(e.configure)),this.configurator&&this.configurator.options.enabled===!0){var i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Ge(i.nodes,this.nodesHandler.options),Ge(i.edges,this.edgesHandler.options),Ge(i.layout,this.layoutEngine.options),Ge(i.interaction,this.selectionHandler.options),Ge(i.interaction,this.renderer.options),Ge(i.interaction,this.interactionHandler.options),Ge(i.manipulation,this.manipulation.options),Ge(i.physics,this.physics.options),Ge(i.global,this.canvas.options),Ge(i.global,this.options),this.configurator.setModuleOptions(i)}e.clickToUse!==void 0?e.clickToUse===!0?this.activator===void 0&&(this.activator=new Ake(this.canvas.frame),this.activator.on("change",function(){r.body.emitter.emit("activate")})):(this.activator!==void 0&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}};ae.prototype._updateVisibleIndices=function(){var e=this.body.nodes,r=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&!this.clustering._isClusteredNode(t)&&e[t].options.hidden===!1&&this.body.nodeIndices.push(e[t].id);for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var i=r[n],o=e[i.fromId],a=e[i.toId],s=o!==void 0&&a!==void 0,l=!this.clustering._isClusteredEdge(n)&&i.options.hidden===!1&&s&&o.options.hidden===!1&&a.options.hidden===!1;l&&this.body.edgeIndices.push(i.id)}};ae.prototype.bindEventListeners=function(){var e=this;this.body.emitter.on("_dataChanged",function(){e.edgesHandler._updateState(),e.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",function(){e.clustering._updateState(),e._updateVisibleIndices(),e._updateValueRange(e.body.nodes),e._updateValueRange(e.body.edges),e.body.emitter.emit("startSimulation"),e.body.emitter.emit("_requestRedraw")})};ae.prototype.setData=function(e){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),e&&e.dot&&(e.nodes||e.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(e&&e.options),e&&e.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var r=Kke(e.dot);this.setData(r);return}else if(e&&e.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var t=Gke(e.gephi);this.setData(t);return}else this.nodesHandler.setData(e&&e.nodes,!0),this.edgesHandler.setData(e&&e.edges,!0);this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")};ae.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(var e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&delete this.body.nodes[e];for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&delete this.body.edges[r];po(this.body.container)};ae.prototype._updateValueRange=function(e){var r,t=void 0,n=void 0,i=0;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=e[r].getValue();o!==void 0&&(t=t===void 0?o:Math.min(o,t),n=n===void 0?o:Math.max(o,n),i+=o)}if(t!==void 0&&n!==void 0)for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&e[r].setValueRange(t,n,i)};ae.prototype.isActive=function(){return!this.activator||this.activator.active};ae.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};ae.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};ae.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};ae.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};ae.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};ae.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};ae.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};ae.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};ae.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};ae.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};ae.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};ae.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};ae.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};ae.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};ae.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};ae.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};ae.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};ae.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};ae.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};ae.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};ae.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};ae.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};ae.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};ae.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};ae.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};ae.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};ae.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};ae.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};ae.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};ae.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};ae.prototype.getConnectedNodes=function(e){return this.body.nodes[e]!==void 0?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)};ae.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};ae.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};ae.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};ae.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};ae.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};ae.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};ae.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};ae.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};ae.prototype.getNodeAt=function(){var e=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return e!==void 0&&e.id!==void 0?e.id:e};ae.prototype.getEdgeAt=function(){var e=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return e!==void 0&&e.id!==void 0?e.id:e};ae.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};ae.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};ae.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};ae.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};ae.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};ae.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};ae.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};ae.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};ae.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};ae.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};ae.prototype.getOptionsFromConfigurator=function(){var e={};return this.configurator&&(e=this.configurator.getOptions.apply(this.configurator)),e};const u3e=vS("/_ui/")({component:()=>{const[e,r]=_.useState(!0),t=_.useRef(null),[n,i]=_.useState(null),[o,a]=_.useState(null),[s,l]=_.useState(null),[u,c]=_.useState(null),[d,f]=_.useState(new hu([])),[h,v]=_.useState(new hu([])),[p,b]=_.useState(""),{isSuccess:y,data:g}=oC({queryKey:["userData"],queryFn:()=>fetch("/users").then(w=>w.json()).then(w=>(b(p||w[0].root_id),w))}),{isSuccess:m,data:$}=oC({queryKey:[`graph-${p}`],queryFn:()=>fetch(`/graph?root=${p}`).then(w=>w.json()),enabled:!!p});return _.useEffect(()=>{if(m){for(const w of $.nodes||[])try{d.add({id:w.id,label:w.name,info:w.data,group:w.name})}catch(S){console.log(S)}for(const w of $.edges||[])try{h.add({id:w.id,from:w.source.split(":").pop()||"",info:w.data,to:w.target.split(":").pop()||"",label:w.name})}catch(S){console.log(S)}}},[$,m]),_.useEffect(()=>{t.current&&(u||(u!==null?(u==null||u.destroy(),c(null)):c(new ae(t.current,{nodes:d,edges:h},{width:"100%",height:"100%",edges:{arrowStrikethrough:!0,arrows:{to:{enabled:!0,scaleFactor:.3},from:{enabled:!0,scaleFactor:.1,type:"circle"}}},nodes:{shape:"dot",size:10,scaling:{customScalingFunction(w,S,P,O){return O||0/(P||0*2)},min:8,max:50}},manipulation:{enabled:!0,addNode:!0},layout:{improvedLayout:!1},physics:{forceAtlas2Based:{gravitationalConstant:-26,centralGravity:.005,springLength:200,springConstant:.1},maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:800,updateInterval:15}}}))))},[t.current]),_.useEffect(()=>{u&&u.on("click",w=>{if(i(w.nodes),w.nodes.length===1){const S=d.get(w.nodes[0]);l(null),a(S),r(!1)}else if(w.nodes.length===0&&w.edges.length===1){const S=h.get(w.edges[0]);a(null),l(S),r(!1)}else l(null),a(null),r(!0)})},[u]),E.jsxs(pe,{pos:"relative",children:[E.jsx(bp,{position:{top:20,left:20},children:E.jsxs(ou,{withBorder:!0,w:"300px",p:"xs",children:[E.jsx(Fa,{justify:"center",mb:"lg",children:E.jsxs(Fa,{gap:"xs",align:"center",children:[E.jsx("img",{src:"/jac_logo.png",alt:"logo",width:"24"}),E.jsx($d,{order:6,children:"Jaseci Studio"})]})}),E.jsx(r_,{py:"xs"}),y&&E.jsx(a_,{size:"xs",label:"Graph",searchable:!0,value:p,data:g==null?void 0:g.map(w=>({value:w.root_id,label:w.email}))})]})}),E.jsx(bp,{position:{bottom:20,right:80,left:160},children:E.jsx(xN,{in:!e,children:E.jsxs(ou,{withBorder:!0,w:"100%",h:"260px",children:[E.jsx(xy,{mb:"sm",children:"Object Information"}),E.jsx(i_,{rows:7,minRows:7,value:JSON.stringify((o==null?void 0:o.info)||(s==null?void 0:s.info),null," "),variant:"filled"})]})})}),E.jsx("div",{id:"graph",style:{width:"100%",height:"100vh"},ref:t})]})}}),c3e=gK.update({path:"/login",getParentRoute:()=>d_}),Vz=mK.update({id:"/_ui",getParentRoute:()=>d_}),d3e=u3e.update({path:"/",getParentRoute:()=>Vz}),f3e={UiIndexRoute:d3e},h3e=Vz._addFileChildren(f3e),v3e={UiRoute:h3e,LoginRoute:c3e},p3e=d_._addFileChildren(v3e)._addFileTypes(),y3e=l9({routeTree:p3e}),uv=document.getElementById("root");uv!=null&&uv.innerHTML||j1.createRoot(uv).render(E.jsx(_.StrictMode,{children:E.jsx(T9,{router:y3e})}));
|