jvcli 2.0.8__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/app.py +0 -2
- 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/templates/2.0.0/project/README.md +3 -3
- jvcli/templates/2.0.0/project/sh/exportenv.sh +12 -0
- jvcli/templates/2.0.0/project/sh/importagent.sh +36 -0
- jvcli/templates/2.0.0/project/sh/initagents.sh +34 -0
- jvcli/templates/2.0.0/project/sh/inituser.sh +50 -0
- jvcli/templates/2.0.0/project/sh/serve.sh +2 -2
- jvcli/templates/2.0.0/project/sh/startclient.sh +7 -0
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/METADATA +1 -1
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/RECORD +28 -19
- jvcli/studio/assets/index-BtFItD2q.js +0 -156
- jvcli/studio/assets/index-CIEsu-TC.css +0 -1
- jvcli/templates/2.0.0/project/sh/import_agent.sh +0 -66
- jvcli/templates/2.0.0/project/sh/init.sh +0 -70
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/LICENSE +0 -0
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/WHEEL +0 -0
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/entry_points.txt +0 -0
- {jvcli-2.0.8.dist-info → jvcli-2.0.10.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,218 @@
|
|
1
|
+
var bP=e=>{throw TypeError(e)};var m1=(e,r,t)=>r.has(e)||bP("Cannot "+t);var I=(e,r,t)=>(m1(e,r,"read from private field"),t?t.call(e):r.get(e)),ye=(e,r,t)=>r.has(e)?bP("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),ae=(e,r,t,n)=>(m1(e,r,"write to private field"),n?n.call(e,t):r.set(e,t),t),Ce=(e,r,t)=>(m1(e,r,"access private method"),t);var Jv=(e,r,t,n)=>({set _(i){ae(e,r,i,t)},get _(){return I(e,r,n)}});function o7(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 uD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cD={exports:{}},dy={},dD={exports:{}},Ie={};/**
|
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 Rh=Symbol.for("react.element"),a7=Symbol.for("react.portal"),s7=Symbol.for("react.fragment"),l7=Symbol.for("react.strict_mode"),u7=Symbol.for("react.profiler"),c7=Symbol.for("react.provider"),d7=Symbol.for("react.context"),f7=Symbol.for("react.forward_ref"),h7=Symbol.for("react.suspense"),v7=Symbol.for("react.memo"),p7=Symbol.for("react.lazy"),$P=Symbol.iterator;function m7(e){return e===null||typeof e!="object"?null:(e=$P&&e[$P]||e["@@iterator"],typeof e=="function"?e:null)}var fD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hD=Object.assign,vD={};function qc(e,r,t){this.props=e,this.context=r,this.refs=vD,this.updater=t||fD}qc.prototype.isReactComponent={};qc.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")};qc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pD(){}pD.prototype=qc.prototype;function mE(e,r,t){this.props=e,this.context=r,this.refs=vD,this.updater=t||fD}var gE=mE.prototype=new pD;gE.constructor=mE;hD(gE,qc.prototype);gE.isPureReactComponent=!0;var wP=Array.isArray,mD=Object.prototype.hasOwnProperty,yE={current:null},gD={key:!0,ref:!0,__self:!0,__source:!0};function yD(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)mD.call(r,n)&&!gD.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:Rh,type:e,key:o,ref:a,props:i,_owner:yE.current}}function g7(e,r){return{$$typeof:Rh,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}function bE(e){return typeof e=="object"&&e!==null&&e.$$typeof===Rh}function y7(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return r[t]})}var SP=/\/+/g;function g1(e,r){return typeof e=="object"&&e!==null&&e.key!=null?y7(""+e.key):r.toString(36)}function gm(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 Rh:case a7:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+g1(a,0):n,wP(i)?(t="",e!=null&&(t=e.replace(SP,"$&/")+"/"),gm(i,r,t,"",function(u){return u})):i!=null&&(bE(i)&&(i=g7(i,t+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(SP,"$&/")+"/")+e)),r.push(i)),1;if(a=0,n=n===""?".":n+":",wP(e))for(var s=0;s<e.length;s++){o=e[s];var l=n+g1(o,s);a+=gm(o,r,t,l,i)}else if(l=m7(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=n+g1(o,s++),a+=gm(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 Zv(e,r,t){if(e==null)return e;var n=[],i=0;return gm(e,n,"","",function(o){return r.call(t,o,i++)}),n}function b7(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 Ir={current:null},ym={transition:null},$7={ReactCurrentDispatcher:Ir,ReactCurrentBatchConfig:ym,ReactCurrentOwner:yE};function bD(){throw Error("act(...) is not supported in production builds of React.")}Ie.Children={map:Zv,forEach:function(e,r,t){Zv(e,function(){r.apply(this,arguments)},t)},count:function(e){var r=0;return Zv(e,function(){r++}),r},toArray:function(e){return Zv(e,function(r){return r})||[]},only:function(e){if(!bE(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ie.Component=qc;Ie.Fragment=s7;Ie.Profiler=u7;Ie.PureComponent=mE;Ie.StrictMode=l7;Ie.Suspense=h7;Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$7;Ie.act=bD;Ie.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=hD({},e.props),i=e.key,o=e.ref,a=e._owner;if(r!=null){if(r.ref!==void 0&&(o=r.ref,a=yE.current),r.key!==void 0&&(i=""+r.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in r)mD.call(r,l)&&!gD.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:Rh,type:e.type,key:i,ref:o,props:n,_owner:a}};Ie.createContext=function(e){return e={$$typeof:d7,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:c7,_context:e},e.Consumer=e};Ie.createElement=yD;Ie.createFactory=function(e){var r=yD.bind(null,e);return r.type=e,r};Ie.createRef=function(){return{current:null}};Ie.forwardRef=function(e){return{$$typeof:f7,render:e}};Ie.isValidElement=bE;Ie.lazy=function(e){return{$$typeof:p7,_payload:{_status:-1,_result:e},_init:b7}};Ie.memo=function(e,r){return{$$typeof:v7,type:e,compare:r===void 0?null:r}};Ie.startTransition=function(e){var r=ym.transition;ym.transition={};try{e()}finally{ym.transition=r}};Ie.unstable_act=bD;Ie.useCallback=function(e,r){return Ir.current.useCallback(e,r)};Ie.useContext=function(e){return Ir.current.useContext(e)};Ie.useDebugValue=function(){};Ie.useDeferredValue=function(e){return Ir.current.useDeferredValue(e)};Ie.useEffect=function(e,r){return Ir.current.useEffect(e,r)};Ie.useId=function(){return Ir.current.useId()};Ie.useImperativeHandle=function(e,r,t){return Ir.current.useImperativeHandle(e,r,t)};Ie.useInsertionEffect=function(e,r){return Ir.current.useInsertionEffect(e,r)};Ie.useLayoutEffect=function(e,r){return Ir.current.useLayoutEffect(e,r)};Ie.useMemo=function(e,r){return Ir.current.useMemo(e,r)};Ie.useReducer=function(e,r,t){return Ir.current.useReducer(e,r,t)};Ie.useRef=function(e){return Ir.current.useRef(e)};Ie.useState=function(e){return Ir.current.useState(e)};Ie.useSyncExternalStore=function(e,r,t){return Ir.current.useSyncExternalStore(e,r,t)};Ie.useTransition=function(){return Ir.current.useTransition()};Ie.version="18.3.1";dD.exports=Ie;var _=dD.exports;const hr=uD(_),w7=o7({__proto__:null,default:hr},[_]);/**
|
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 S7=_,_7=Symbol.for("react.element"),E7=Symbol.for("react.fragment"),x7=Object.prototype.hasOwnProperty,C7=S7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k7={key:!0,ref:!0,__self:!0,__source:!0};function $D(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)x7.call(r,n)&&!k7.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:_7,type:e,key:o,ref:a,props:i,_owner:C7.current}}dy.Fragment=E7;dy.jsx=$D;dy.jsxs=$D;cD.exports=dy;var b=cD.exports,Ow={},wD={exports:{}},mn={},SD={exports:{}},_D={};/**
|
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(O,D){var z=O.length;O.push(D);e:for(;0<z;){var G=z-1>>>1,K=O[G];if(0<i(K,D))O[G]=D,O[z]=K,z=G;else break e}}function t(O){return O.length===0?null:O[0]}function n(O){if(O.length===0)return null;var D=O[0],z=O.pop();if(z!==D){O[0]=z;e:for(var G=0,K=O.length,ee=K>>>1;G<ee;){var le=2*(G+1)-1,se=O[le],de=le+1,ge=O[de];if(0>i(se,z))de<K&&0>i(ge,se)?(O[G]=ge,O[de]=z,G=de):(O[G]=se,O[le]=z,G=le);else if(de<K&&0>i(ge,z))O[G]=ge,O[de]=z,G=de;else break e}}return D}function i(O,D){var z=O.sortIndex-D.sortIndex;return z!==0?z:O.id-D.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,$=typeof setTimeout=="function"?setTimeout:null,m=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 y(O){for(var D=t(u);D!==null;){if(D.callback===null)n(u);else if(D.startTime<=O)n(u),D.sortIndex=D.expirationTime,r(l,D);else break;D=t(u)}}function w(O){if(p=!1,y(O),!v)if(t(l)!==null)v=!0,M(S);else{var D=t(u);D!==null&&j(w,D.startTime-O)}}function S(O,D){v=!1,p&&(p=!1,m(C),C=-1),h=!0;var z=f;try{for(y(D),d=t(l);d!==null&&(!(d.expirationTime>D)||O&&!T());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var K=G(d.expirationTime<=D);D=e.unstable_now(),typeof K=="function"?d.callback=K:d===t(l)&&n(l),y(D)}else n(l);d=t(l)}if(d!==null)var ee=!0;else{var le=t(u);le!==null&&j(w,le.startTime-D),ee=!1}return ee}finally{d=null,f=z,h=!1}}var E=!1,x=null,C=-1,k=5,P=-1;function T(){return!(e.unstable_now()-P<k)}function R(){if(x!==null){var O=e.unstable_now();P=O;var D=!0;try{D=x(!0,O)}finally{D?N():(E=!1,x=null)}}else E=!1}var N;if(typeof g=="function")N=function(){g(R)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,W=F.port2;F.port1.onmessage=R,N=function(){W.postMessage(null)}}else N=function(){$(R,0)};function M(O){x=O,E||(E=!0,N())}function j(O,D){C=$(function(){O(e.unstable_now())},D)}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(O){O.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,M(S))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return t(l)},e.unstable_next=function(O){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var z=f;f=D;try{return O()}finally{f=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,D){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var z=f;f=O;try{return D()}finally{f=z}},e.unstable_scheduleCallback=function(O,D,z){var G=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?G+z:G):z=G,O){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=z+K,O={id:c++,callback:D,priorityLevel:O,startTime:z,expirationTime:K,sortIndex:-1},z>G?(O.sortIndex=z,r(u,O),t(l)===null&&O===t(u)&&(p?(m(C),C=-1):p=!0,j(w,z-G))):(O.sortIndex=K,r(l,O),v||h||(v=!0,M(S))),O},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(O){var D=f;return function(){var z=f;f=D;try{return O.apply(this,arguments)}finally{f=z}}}})(_D);SD.exports=_D;var P7=SD.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 O7=_,pn=P7;function q(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 ED=new Set,Wf={};function $l(e,r){gc(e,r),gc(e+"Capture",r)}function gc(e,r){for(Wf[e]=r,e=0;e<r.length;e++)ED.add(r[e])}var Oo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tw=Object.prototype.hasOwnProperty,T7=/^[: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]*$/,_P={},EP={};function I7(e){return Tw.call(EP,e)?!0:Tw.call(_P,e)?!1:T7.test(e)?EP[e]=!0:(_P[e]=!0,!1)}function R7(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 M7(e,r,t,n){if(r===null||typeof r>"u"||R7(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 Rr(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 or={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){or[e]=new Rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];or[r]=new Rr(r,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){or[e]=new Rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){or[e]=new Rr(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){or[e]=new Rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){or[e]=new Rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){or[e]=new Rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){or[e]=new Rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){or[e]=new Rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var $E=/[\-:]([a-z])/g;function wE(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($E,wE);or[r]=new Rr(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($E,wE);or[r]=new Rr(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($E,wE);or[r]=new Rr(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){or[e]=new Rr(e,1,!1,e.toLowerCase(),null,!1,!1)});or.xlinkHref=new Rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){or[e]=new Rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function SE(e,r,t,n){var i=or.hasOwnProperty(r)?or[r]:null;(i!==null?i.type!==0:n||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(M7(r,t,i,n)&&(t=null),n||i===null?I7(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 zo=O7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ep=Symbol.for("react.element"),gu=Symbol.for("react.portal"),yu=Symbol.for("react.fragment"),_E=Symbol.for("react.strict_mode"),Iw=Symbol.for("react.profiler"),xD=Symbol.for("react.provider"),CD=Symbol.for("react.context"),EE=Symbol.for("react.forward_ref"),Rw=Symbol.for("react.suspense"),Mw=Symbol.for("react.suspense_list"),xE=Symbol.for("react.memo"),ra=Symbol.for("react.lazy"),kD=Symbol.for("react.offscreen"),xP=Symbol.iterator;function Ld(e){return e===null||typeof e!="object"?null:(e=xP&&e[xP]||e["@@iterator"],typeof e=="function"?e:null)}var ct=Object.assign,y1;function af(e){if(y1===void 0)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);y1=r&&r[1]||""}return`
|
34
|
+
`+y1+e}var b1=!1;function $1(e,r){if(!e||b1)return"";b1=!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{b1=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?af(e):""}function N7(e){switch(e.tag){case 5:return af(e.type);case 16:return af("Lazy");case 13:return af("Suspense");case 19:return af("SuspenseList");case 0:case 2:case 15:return e=$1(e.type,!1),e;case 11:return e=$1(e.type.render,!1),e;case 1:return e=$1(e.type,!0),e;default:return""}}function Nw(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 yu:return"Fragment";case gu:return"Portal";case Iw:return"Profiler";case _E:return"StrictMode";case Rw:return"Suspense";case Mw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case CD:return(e.displayName||"Context")+".Consumer";case xD:return(e._context.displayName||"Context")+".Provider";case EE:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xE:return r=e.displayName||null,r!==null?r:Nw(e.type)||"Memo";case ra:r=e._payload,e=e._init;try{return Nw(e(r))}catch{}}return null}function A7(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 Nw(r);case 8:return r===_E?"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 Ba(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function PD(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function D7(e){var r=PD(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 tp(e){e._valueTracker||(e._valueTracker=D7(e))}function OD(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var t=r.getValue(),n="";return e&&(n=PD(e)?e.checked?"true":"false":e.value),e=n,e!==t?(r.setValue(e),!0):!1}function Zm(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 Aw(e,r){var t=r.checked;return ct({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function CP(e,r){var t=r.defaultValue==null?"":r.defaultValue,n=r.checked!=null?r.checked:r.defaultChecked;t=Ba(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 TD(e,r){r=r.checked,r!=null&&SE(e,"checked",r,!1)}function Dw(e,r){TD(e,r);var t=Ba(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")?Fw(e,r.type,t):r.hasOwnProperty("defaultValue")&&Fw(e,r.type,Ba(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(e.defaultChecked=!!r.defaultChecked)}function kP(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 Fw(e,r,t){(r!=="number"||Zm(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var sf=Array.isArray;function Hu(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=""+Ba(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 jw(e,r){if(r.dangerouslySetInnerHTML!=null)throw Error(q(91));return ct({},r,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function PP(e,r){var t=r.value;if(t==null){if(t=r.children,r=r.defaultValue,t!=null){if(r!=null)throw Error(q(92));if(sf(t)){if(1<t.length)throw Error(q(93));t=t[0]}r=t}r==null&&(r=""),t=r}e._wrapperState={initialValue:Ba(t)}}function ID(e,r){var t=Ba(r.value),n=Ba(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 OP(e){var r=e.textContent;r===e._wrapperState.initialValue&&r!==""&&r!==null&&(e.value=r)}function RD(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 Lw(e,r){return e==null||e==="http://www.w3.org/1999/xhtml"?RD(r):e==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var rp,MD=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(rp=rp||document.createElement("div"),rp.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=rp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;r.firstChild;)e.appendChild(r.firstChild)}});function Vf(e,r){if(r){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=r;return}}e.textContent=r}var bf={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},F7=["Webkit","ms","Moz","O"];Object.keys(bf).forEach(function(e){F7.forEach(function(r){r=r+e.charAt(0).toUpperCase()+e.substring(1),bf[r]=bf[e]})});function ND(e,r,t){return r==null||typeof r=="boolean"||r===""?"":t||typeof r!="number"||r===0||bf.hasOwnProperty(e)&&bf[e]?(""+r).trim():r+"px"}function AD(e,r){e=e.style;for(var t in r)if(r.hasOwnProperty(t)){var n=t.indexOf("--")===0,i=ND(t,r[t],n);t==="float"&&(t="cssFloat"),n?e.setProperty(t,i):e[t]=i}}var j7=ct({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 Bw(e,r){if(r){if(j7[e]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(q(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(q(61))}if(r.style!=null&&typeof r.style!="object")throw Error(q(62))}}function zw(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 Hw=null;function CE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ww=null,Wu=null,Vu=null;function TP(e){if(e=Ah(e)){if(typeof Ww!="function")throw Error(q(280));var r=e.stateNode;r&&(r=my(r),Ww(e.stateNode,e.type,r))}}function DD(e){Wu?Vu?Vu.push(e):Vu=[e]:Wu=e}function FD(){if(Wu){var e=Wu,r=Vu;if(Vu=Wu=null,TP(e),r)for(e=0;e<r.length;e++)TP(r[e])}}function jD(e,r){return e(r)}function LD(){}var w1=!1;function BD(e,r,t){if(w1)return e(r,t);w1=!0;try{return jD(e,r,t)}finally{w1=!1,(Wu!==null||Vu!==null)&&(LD(),FD())}}function Uf(e,r){var t=e.stateNode;if(t===null)return null;var n=my(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(q(231,r,typeof t));return t}var Vw=!1;if(Oo)try{var Bd={};Object.defineProperty(Bd,"passive",{get:function(){Vw=!0}}),window.addEventListener("test",Bd,Bd),window.removeEventListener("test",Bd,Bd)}catch{Vw=!1}function L7(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 $f=!1,eg=null,tg=!1,Uw=null,B7={onError:function(e){$f=!0,eg=e}};function z7(e,r,t,n,i,o,a,s,l){$f=!1,eg=null,L7.apply(B7,arguments)}function H7(e,r,t,n,i,o,a,s,l){if(z7.apply(this,arguments),$f){if($f){var u=eg;$f=!1,eg=null}else throw Error(q(198));tg||(tg=!0,Uw=u)}}function wl(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 zD(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 IP(e){if(wl(e)!==e)throw Error(q(188))}function W7(e){var r=e.alternate;if(!r){if(r=wl(e),r===null)throw Error(q(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 IP(i),e;if(o===n)return IP(i),r;o=o.sibling}throw Error(q(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(q(189))}}if(t.alternate!==n)throw Error(q(190))}if(t.tag!==3)throw Error(q(188));return t.stateNode.current===t?e:r}function HD(e){return e=W7(e),e!==null?WD(e):null}function WD(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var r=WD(e);if(r!==null)return r;e=e.sibling}return null}var VD=pn.unstable_scheduleCallback,RP=pn.unstable_cancelCallback,V7=pn.unstable_shouldYield,U7=pn.unstable_requestPaint,St=pn.unstable_now,K7=pn.unstable_getCurrentPriorityLevel,kE=pn.unstable_ImmediatePriority,UD=pn.unstable_UserBlockingPriority,rg=pn.unstable_NormalPriority,G7=pn.unstable_LowPriority,KD=pn.unstable_IdlePriority,fy=null,Ui=null;function q7(e){if(Ui&&typeof Ui.onCommitFiberRoot=="function")try{Ui.onCommitFiberRoot(fy,e,void 0,(e.current.flags&128)===128)}catch{}}var pi=Math.clz32?Math.clz32:Q7,Y7=Math.log,X7=Math.LN2;function Q7(e){return e>>>=0,e===0?32:31-(Y7(e)/X7|0)|0}var np=64,ip=4194304;function lf(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 ng(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=lf(s):(o&=a,o!==0&&(n=lf(o)))}else a=t&~i,a!==0?n=lf(a):o!==0&&(n=lf(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-pi(r),i=1<<t,n|=e[t],r&=~i;return n}function J7(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 Z7(e,r){for(var t=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-pi(o),s=1<<a,l=i[a];l===-1?(!(s&t)||s&n)&&(i[a]=J7(s,r)):l<=r&&(e.expiredLanes|=s),o&=~s}}function Kw(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function GD(){var e=np;return np<<=1,!(np&4194240)&&(np=64),e}function S1(e){for(var r=[],t=0;31>t;t++)r.push(e);return r}function Mh(e,r,t){e.pendingLanes|=r,r!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,r=31-pi(r),e[r]=t}function eW(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-pi(t),o=1<<i;r[i]=0,n[i]=-1,e[i]=-1,t&=~o}}function PE(e,r){var t=e.entangledLanes|=r;for(e=e.entanglements;t;){var n=31-pi(t),i=1<<n;i&r|e[n]&r&&(e[n]|=r),t&=~i}}var We=0;function qD(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var YD,OE,XD,QD,JD,Gw=!1,op=[],Ea=null,xa=null,Ca=null,Kf=new Map,Gf=new Map,sa=[],tW="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 MP(e,r){switch(e){case"focusin":case"focusout":Ea=null;break;case"dragenter":case"dragleave":xa=null;break;case"mouseover":case"mouseout":Ca=null;break;case"pointerover":case"pointerout":Kf.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gf.delete(r.pointerId)}}function zd(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=Ah(r),r!==null&&OE(r)),e):(e.eventSystemFlags|=n,r=e.targetContainers,i!==null&&r.indexOf(i)===-1&&r.push(i),e)}function rW(e,r,t,n,i){switch(r){case"focusin":return Ea=zd(Ea,e,r,t,n,i),!0;case"dragenter":return xa=zd(xa,e,r,t,n,i),!0;case"mouseover":return Ca=zd(Ca,e,r,t,n,i),!0;case"pointerover":var o=i.pointerId;return Kf.set(o,zd(Kf.get(o)||null,e,r,t,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Gf.set(o,zd(Gf.get(o)||null,e,r,t,n,i)),!0}return!1}function ZD(e){var r=Cs(e.target);if(r!==null){var t=wl(r);if(t!==null){if(r=t.tag,r===13){if(r=zD(t),r!==null){e.blockedOn=r,JD(e.priority,function(){XD(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 bm(e){if(e.blockedOn!==null)return!1;for(var r=e.targetContainers;0<r.length;){var t=qw(e.domEventName,e.eventSystemFlags,r[0],e.nativeEvent);if(t===null){t=e.nativeEvent;var n=new t.constructor(t.type,t);Hw=n,t.target.dispatchEvent(n),Hw=null}else return r=Ah(t),r!==null&&OE(r),e.blockedOn=t,!1;r.shift()}return!0}function NP(e,r,t){bm(e)&&t.delete(r)}function nW(){Gw=!1,Ea!==null&&bm(Ea)&&(Ea=null),xa!==null&&bm(xa)&&(xa=null),Ca!==null&&bm(Ca)&&(Ca=null),Kf.forEach(NP),Gf.forEach(NP)}function Hd(e,r){e.blockedOn===r&&(e.blockedOn=null,Gw||(Gw=!0,pn.unstable_scheduleCallback(pn.unstable_NormalPriority,nW)))}function qf(e){function r(i){return Hd(i,e)}if(0<op.length){Hd(op[0],e);for(var t=1;t<op.length;t++){var n=op[t];n.blockedOn===e&&(n.blockedOn=null)}}for(Ea!==null&&Hd(Ea,e),xa!==null&&Hd(xa,e),Ca!==null&&Hd(Ca,e),Kf.forEach(r),Gf.forEach(r),t=0;t<sa.length;t++)n=sa[t],n.blockedOn===e&&(n.blockedOn=null);for(;0<sa.length&&(t=sa[0],t.blockedOn===null);)ZD(t),t.blockedOn===null&&sa.shift()}var Uu=zo.ReactCurrentBatchConfig,ig=!0;function iW(e,r,t,n){var i=We,o=Uu.transition;Uu.transition=null;try{We=1,TE(e,r,t,n)}finally{We=i,Uu.transition=o}}function oW(e,r,t,n){var i=We,o=Uu.transition;Uu.transition=null;try{We=4,TE(e,r,t,n)}finally{We=i,Uu.transition=o}}function TE(e,r,t,n){if(ig){var i=qw(e,r,t,n);if(i===null)R1(e,r,n,og,t),MP(e,n);else if(rW(i,e,r,t,n))n.stopPropagation();else if(MP(e,n),r&4&&-1<tW.indexOf(e)){for(;i!==null;){var o=Ah(i);if(o!==null&&YD(o),o=qw(e,r,t,n),o===null&&R1(e,r,n,og,t),o===i)break;i=o}i!==null&&n.stopPropagation()}else R1(e,r,n,null,t)}}var og=null;function qw(e,r,t,n){if(og=null,e=CE(n),e=Cs(e),e!==null)if(r=wl(e),r===null)e=null;else if(t=r.tag,t===13){if(e=zD(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 og=e,null}function eF(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(K7()){case kE:return 1;case UD:return 4;case rg:case G7:return 16;case KD:return 536870912;default:return 16}default:return 16}}var ya=null,IE=null,$m=null;function tF(){if($m)return $m;var e,r=IE,t=r.length,n,i="value"in ya?ya.value:ya.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 $m=i.slice(e,1<n?1-n:void 0)}function wm(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 ap(){return!0}function AP(){return!1}function gn(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)?ap:AP,this.isPropagationStopped=AP,this}return ct(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=ap)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=ap)},persist:function(){},isPersistent:ap}),r}var Yc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},RE=gn(Yc),Nh=ct({},Yc,{view:0,detail:0}),aW=gn(Nh),_1,E1,Wd,hy=ct({},Nh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ME,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!==Wd&&(Wd&&e.type==="mousemove"?(_1=e.screenX-Wd.screenX,E1=e.screenY-Wd.screenY):E1=_1=0,Wd=e),_1)},movementY:function(e){return"movementY"in e?e.movementY:E1}}),DP=gn(hy),sW=ct({},hy,{dataTransfer:0}),lW=gn(sW),uW=ct({},Nh,{relatedTarget:0}),x1=gn(uW),cW=ct({},Yc,{animationName:0,elapsedTime:0,pseudoElement:0}),dW=gn(cW),fW=ct({},Yc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hW=gn(fW),vW=ct({},Yc,{data:0}),FP=gn(vW),pW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mW={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"},gW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yW(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):(e=gW[e])?!!r[e]:!1}function ME(){return yW}var bW=ct({},Nh,{key:function(e){if(e.key){var r=pW[e.key]||e.key;if(r!=="Unidentified")return r}return e.type==="keypress"?(e=wm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mW[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ME,charCode:function(e){return e.type==="keypress"?wm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$W=gn(bW),wW=ct({},hy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jP=gn(wW),SW=ct({},Nh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ME}),_W=gn(SW),EW=ct({},Yc,{propertyName:0,elapsedTime:0,pseudoElement:0}),xW=gn(EW),CW=ct({},hy,{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}),kW=gn(CW),PW=[9,13,27,32],NE=Oo&&"CompositionEvent"in window,wf=null;Oo&&"documentMode"in document&&(wf=document.documentMode);var OW=Oo&&"TextEvent"in window&&!wf,rF=Oo&&(!NE||wf&&8<wf&&11>=wf),LP=" ",BP=!1;function nF(e,r){switch(e){case"keyup":return PW.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iF(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bu=!1;function TW(e,r){switch(e){case"compositionend":return iF(r);case"keypress":return r.which!==32?null:(BP=!0,LP);case"textInput":return e=r.data,e===LP&&BP?null:e;default:return null}}function IW(e,r){if(bu)return e==="compositionend"||!NE&&nF(e,r)?(e=tF(),$m=IE=ya=null,bu=!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 rF&&r.locale!=="ko"?null:r.data;default:return null}}var RW={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 zP(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r==="input"?!!RW[e.type]:r==="textarea"}function oF(e,r,t,n){DD(n),r=ag(r,"onChange"),0<r.length&&(t=new RE("onChange","change",null,t,n),e.push({event:t,listeners:r}))}var Sf=null,Yf=null;function MW(e){mF(e,0)}function vy(e){var r=Su(e);if(OD(r))return e}function NW(e,r){if(e==="change")return r}var aF=!1;if(Oo){var C1;if(Oo){var k1="oninput"in document;if(!k1){var HP=document.createElement("div");HP.setAttribute("oninput","return;"),k1=typeof HP.oninput=="function"}C1=k1}else C1=!1;aF=C1&&(!document.documentMode||9<document.documentMode)}function WP(){Sf&&(Sf.detachEvent("onpropertychange",sF),Yf=Sf=null)}function sF(e){if(e.propertyName==="value"&&vy(Yf)){var r=[];oF(r,Yf,e,CE(e)),BD(MW,r)}}function AW(e,r,t){e==="focusin"?(WP(),Sf=r,Yf=t,Sf.attachEvent("onpropertychange",sF)):e==="focusout"&&WP()}function DW(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vy(Yf)}function FW(e,r){if(e==="click")return vy(r)}function jW(e,r){if(e==="input"||e==="change")return vy(r)}function LW(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var yi=typeof Object.is=="function"?Object.is:LW;function Xf(e,r){if(yi(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(!Tw.call(r,i)||!yi(e[i],r[i]))return!1}return!0}function VP(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function UP(e,r){var t=VP(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=VP(t)}}function lF(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?lF(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function uF(){for(var e=window,r=Zm();r instanceof e.HTMLIFrameElement;){try{var t=typeof r.contentWindow.location.href=="string"}catch{t=!1}if(t)e=r.contentWindow;else break;r=Zm(e.document)}return r}function AE(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 BW(e){var r=uF(),t=e.focusedElem,n=e.selectionRange;if(r!==t&&t&&t.ownerDocument&&lF(t.ownerDocument.documentElement,t)){if(n!==null&&AE(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=UP(t,o);var a=UP(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 zW=Oo&&"documentMode"in document&&11>=document.documentMode,$u=null,Yw=null,_f=null,Xw=!1;function KP(e,r,t){var n=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Xw||$u==null||$u!==Zm(n)||(n=$u,"selectionStart"in n&&AE(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}),_f&&Xf(_f,n)||(_f=n,n=ag(Yw,"onSelect"),0<n.length&&(r=new RE("onSelect","select",null,r,t),e.push({event:r,listeners:n}),r.target=$u)))}function sp(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit"+e]="webkit"+r,t["Moz"+e]="moz"+r,t}var wu={animationend:sp("Animation","AnimationEnd"),animationiteration:sp("Animation","AnimationIteration"),animationstart:sp("Animation","AnimationStart"),transitionend:sp("Transition","TransitionEnd")},P1={},cF={};Oo&&(cF=document.createElement("div").style,"AnimationEvent"in window||(delete wu.animationend.animation,delete wu.animationiteration.animation,delete wu.animationstart.animation),"TransitionEvent"in window||delete wu.transitionend.transition);function py(e){if(P1[e])return P1[e];if(!wu[e])return e;var r=wu[e],t;for(t in r)if(r.hasOwnProperty(t)&&t in cF)return P1[e]=r[t];return e}var dF=py("animationend"),fF=py("animationiteration"),hF=py("animationstart"),vF=py("transitionend"),pF=new Map,GP="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 Xa(e,r){pF.set(e,r),$l(r,[e])}for(var O1=0;O1<GP.length;O1++){var T1=GP[O1],HW=T1.toLowerCase(),WW=T1[0].toUpperCase()+T1.slice(1);Xa(HW,"on"+WW)}Xa(dF,"onAnimationEnd");Xa(fF,"onAnimationIteration");Xa(hF,"onAnimationStart");Xa("dblclick","onDoubleClick");Xa("focusin","onFocus");Xa("focusout","onBlur");Xa(vF,"onTransitionEnd");gc("onMouseEnter",["mouseout","mouseover"]);gc("onMouseLeave",["mouseout","mouseover"]);gc("onPointerEnter",["pointerout","pointerover"]);gc("onPointerLeave",["pointerout","pointerover"]);$l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$l("onBeforeInput",["compositionend","keypress","textInput","paste"]);$l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uf="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(" "),VW=new Set("cancel close invalid load scroll toggle".split(" ").concat(uf));function qP(e,r,t){var n=e.type||"unknown-event";e.currentTarget=t,H7(n,r,void 0,e),e.currentTarget=null}function mF(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;qP(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;qP(i,s,u),o=l}}}if(tg)throw e=Uw,tg=!1,Uw=null,e}function rt(e,r){var t=r[tS];t===void 0&&(t=r[tS]=new Set);var n=e+"__bubble";t.has(n)||(gF(r,e,2,!1),t.add(n))}function I1(e,r,t){var n=0;r&&(n|=4),gF(t,e,n,r)}var lp="_reactListening"+Math.random().toString(36).slice(2);function Qf(e){if(!e[lp]){e[lp]=!0,ED.forEach(function(t){t!=="selectionchange"&&(VW.has(t)||I1(t,!1,e),I1(t,!0,e))});var r=e.nodeType===9?e:e.ownerDocument;r===null||r[lp]||(r[lp]=!0,I1("selectionchange",!1,r))}}function gF(e,r,t,n){switch(eF(r)){case 1:var i=iW;break;case 4:i=oW;break;default:i=TE}t=i.bind(null,r,t,e),i=void 0,!Vw||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 R1(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=Cs(s),a===null)return;if(l=a.tag,l===5||l===6){n=o=a;continue e}s=s.parentNode}}n=n.return}BD(function(){var u=o,c=CE(t),d=[];e:{var f=pF.get(e);if(f!==void 0){var h=RE,v=e;switch(e){case"keypress":if(wm(t)===0)break e;case"keydown":case"keyup":h=$W;break;case"focusin":v="focus",h=x1;break;case"focusout":v="blur",h=x1;break;case"beforeblur":case"afterblur":h=x1;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=DP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=lW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=_W;break;case dF:case fF:case hF:h=dW;break;case vF:h=xW;break;case"scroll":h=aW;break;case"wheel":h=kW;break;case"copy":case"cut":case"paste":h=hW;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=jP}var p=(r&4)!==0,$=!p&&e==="scroll",m=p?f!==null?f+"Capture":null:f;p=[];for(var g=u,y;g!==null;){y=g;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,m!==null&&(w=Uf(g,m),w!=null&&p.push(Jf(g,w,y)))),$)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!==Hw&&(v=t.relatedTarget||t.fromElement)&&(Cs(v)||v[To]))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?Cs(v):null,v!==null&&($=wl(v),v!==$||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(p=DP,w="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(p=jP,w="onPointerLeave",m="onPointerEnter",g="pointer"),$=h==null?f:Su(h),y=v==null?f:Su(v),f=new p(w,g+"leave",h,t,c),f.target=$,f.relatedTarget=y,w=null,Cs(c)===u&&(p=new p(m,g+"enter",v,t,c),p.target=y,p.relatedTarget=$,w=p),$=w,h&&v)t:{for(p=h,m=v,g=0,y=p;y;y=Yl(y))g++;for(y=0,w=m;w;w=Yl(w))y++;for(;0<g-y;)p=Yl(p),g--;for(;0<y-g;)m=Yl(m),y--;for(;g--;){if(p===m||m!==null&&p===m.alternate)break t;p=Yl(p),m=Yl(m)}p=null}else p=null;h!==null&&YP(d,f,h,p,!1),v!==null&&$!==null&&YP(d,$,v,p,!0)}}e:{if(f=u?Su(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=NW;else if(zP(f))if(aF)S=jW;else{S=DW;var E=AW}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=FW);if(S&&(S=S(e,u))){oF(d,S,t,c);break e}E&&E(e,f,u),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&Fw(f,"number",f.value)}switch(E=u?Su(u):window,e){case"focusin":(zP(E)||E.contentEditable==="true")&&($u=E,Yw=u,_f=null);break;case"focusout":_f=Yw=$u=null;break;case"mousedown":Xw=!0;break;case"contextmenu":case"mouseup":case"dragend":Xw=!1,KP(d,t,c);break;case"selectionchange":if(zW)break;case"keydown":case"keyup":KP(d,t,c)}var x;if(NE)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else bu?nF(e,t)&&(C="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(C="onCompositionStart");C&&(rF&&t.locale!=="ko"&&(bu||C!=="onCompositionStart"?C==="onCompositionEnd"&&bu&&(x=tF()):(ya=c,IE="value"in ya?ya.value:ya.textContent,bu=!0)),E=ag(u,C),0<E.length&&(C=new FP(C,e,null,t,c),d.push({event:C,listeners:E}),x?C.data=x:(x=iF(t),x!==null&&(C.data=x)))),(x=OW?TW(e,t):IW(e,t))&&(u=ag(u,"onBeforeInput"),0<u.length&&(c=new FP("onBeforeInput","beforeinput",null,t,c),d.push({event:c,listeners:u}),c.data=x))}mF(d,r)})}function Jf(e,r,t){return{instance:e,listener:r,currentTarget:t}}function ag(e,r){for(var t=r+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Uf(e,t),o!=null&&n.unshift(Jf(e,o,i)),o=Uf(e,r),o!=null&&n.push(Jf(e,o,i))),e=e.return}return n}function Yl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function YP(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=Uf(t,o),l!=null&&a.unshift(Jf(t,l,s))):i||(l=Uf(t,o),l!=null&&a.push(Jf(t,l,s)))),t=t.return}a.length!==0&&e.push({event:r,listeners:a})}var UW=/\r\n?/g,KW=/\u0000|\uFFFD/g;function XP(e){return(typeof e=="string"?e:""+e).replace(UW,`
|
38
|
+
`).replace(KW,"")}function up(e,r,t){if(r=XP(r),XP(e)!==r&&t)throw Error(q(425))}function sg(){}var Qw=null,Jw=null;function Zw(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 eS=typeof setTimeout=="function"?setTimeout:void 0,GW=typeof clearTimeout=="function"?clearTimeout:void 0,QP=typeof Promise=="function"?Promise:void 0,qW=typeof queueMicrotask=="function"?queueMicrotask:typeof QP<"u"?function(e){return QP.resolve(null).then(e).catch(YW)}:eS;function YW(e){setTimeout(function(){throw e})}function M1(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),qf(r);return}n--}else t!=="$"&&t!=="$?"&&t!=="$!"||n++;t=i}while(t);qf(r)}function ka(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 JP(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 Xc=Math.random().toString(36).slice(2),ji="__reactFiber$"+Xc,Zf="__reactProps$"+Xc,To="__reactContainer$"+Xc,tS="__reactEvents$"+Xc,XW="__reactListeners$"+Xc,QW="__reactHandles$"+Xc;function Cs(e){var r=e[ji];if(r)return r;for(var t=e.parentNode;t;){if(r=t[To]||t[ji]){if(t=r.alternate,r.child!==null||t!==null&&t.child!==null)for(e=JP(e);e!==null;){if(t=e[ji])return t;e=JP(e)}return r}e=t,t=e.parentNode}return null}function Ah(e){return e=e[ji]||e[To],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Su(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(q(33))}function my(e){return e[Zf]||null}var rS=[],_u=-1;function Qa(e){return{current:e}}function nt(e){0>_u||(e.current=rS[_u],rS[_u]=null,_u--)}function et(e,r){_u++,rS[_u]=e.current,e.current=r}var za={},vr=Qa(za),Yr=Qa(!1),tl=za;function yc(e,r){var t=e.type.contextTypes;if(!t)return za;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 lg(){nt(Yr),nt(vr)}function ZP(e,r,t){if(vr.current!==za)throw Error(q(168));et(vr,r),et(Yr,t)}function yF(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(q(108,A7(e)||"Unknown",i));return ct({},t,n)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||za,tl=vr.current,et(vr,e),et(Yr,Yr.current),!0}function eO(e,r,t){var n=e.stateNode;if(!n)throw Error(q(169));t?(e=yF(e,r,tl),n.__reactInternalMemoizedMergedChildContext=e,nt(Yr),nt(vr),et(vr,e)):nt(Yr),et(Yr,t)}var co=null,gy=!1,N1=!1;function bF(e){co===null?co=[e]:co.push(e)}function JW(e){gy=!0,bF(e)}function Ja(){if(!N1&&co!==null){N1=!0;var e=0,r=We;try{var t=co;for(We=1;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}co=null,gy=!1}catch(i){throw co!==null&&(co=co.slice(e+1)),VD(kE,Ja),i}finally{We=r,N1=!1}}return null}var Eu=[],xu=0,cg=null,dg=0,In=[],Rn=0,rl=null,vo=1,po="";function gs(e,r){Eu[xu++]=dg,Eu[xu++]=cg,cg=e,dg=r}function $F(e,r,t){In[Rn++]=vo,In[Rn++]=po,In[Rn++]=rl,rl=e;var n=vo;e=po;var i=32-pi(n)-1;n&=~(1<<i),t+=1;var o=32-pi(r)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,vo=1<<32-pi(r)+i|t<<i|n,po=o+e}else vo=1<<o|t<<i|n,po=e}function DE(e){e.return!==null&&(gs(e,1),$F(e,1,0))}function FE(e){for(;e===cg;)cg=Eu[--xu],Eu[xu]=null,dg=Eu[--xu],Eu[xu]=null;for(;e===rl;)rl=In[--Rn],In[Rn]=null,po=In[--Rn],In[Rn]=null,vo=In[--Rn],In[Rn]=null}var fn=null,cn=null,ot=!1,oi=null;function wF(e,r){var t=Nn(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 tO(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,fn=e,cn=ka(r.firstChild),!0):!1;case 6:return r=e.pendingProps===""||r.nodeType!==3?null:r,r!==null?(e.stateNode=r,fn=e,cn=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(t=rl!==null?{id:vo,overflow:po}:null,e.memoizedState={dehydrated:r,treeContext:t,retryLane:1073741824},t=Nn(18,null,null,0),t.stateNode=r,t.return=e,e.child=t,fn=e,cn=null,!0):!1;default:return!1}}function nS(e){return(e.mode&1)!==0&&(e.flags&128)===0}function iS(e){if(ot){var r=cn;if(r){var t=r;if(!tO(e,r)){if(nS(e))throw Error(q(418));r=ka(t.nextSibling);var n=fn;r&&tO(e,r)?wF(n,t):(e.flags=e.flags&-4097|2,ot=!1,fn=e)}}else{if(nS(e))throw Error(q(418));e.flags=e.flags&-4097|2,ot=!1,fn=e}}}function rO(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;fn=e}function cp(e){if(e!==fn)return!1;if(!ot)return rO(e),ot=!0,!1;var r;if((r=e.tag!==3)&&!(r=e.tag!==5)&&(r=e.type,r=r!=="head"&&r!=="body"&&!Zw(e.type,e.memoizedProps)),r&&(r=cn)){if(nS(e))throw SF(),Error(q(418));for(;r;)wF(e,r),r=ka(r.nextSibling)}if(rO(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));e:{for(e=e.nextSibling,r=0;e;){if(e.nodeType===8){var t=e.data;if(t==="/$"){if(r===0){cn=ka(e.nextSibling);break e}r--}else t!=="$"&&t!=="$!"&&t!=="$?"||r++}e=e.nextSibling}cn=null}}else cn=fn?ka(e.stateNode.nextSibling):null;return!0}function SF(){for(var e=cn;e;)e=ka(e.nextSibling)}function bc(){cn=fn=null,ot=!1}function jE(e){oi===null?oi=[e]:oi.push(e)}var ZW=zo.ReactCurrentBatchConfig;function Vd(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(q(309));var n=t.stateNode}if(!n)throw Error(q(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(q(284));if(!t._owner)throw Error(q(290,e))}return e}function dp(e,r){throw e=Object.prototype.toString.call(r),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}function nO(e){var r=e._init;return r(e._payload)}function _F(e){function r(m,g){if(e){var y=m.deletions;y===null?(m.deletions=[g],m.flags|=16):y.push(g)}}function t(m,g){if(!e)return null;for(;g!==null;)r(m,g),g=g.sibling;return null}function n(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function i(m,g){return m=Ia(m,g),m.index=0,m.sibling=null,m}function o(m,g,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<g?(m.flags|=2,g):y):(m.flags|=2,g)):(m.flags|=1048576,g)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,g,y,w){return g===null||g.tag!==6?(g=z1(y,m.mode,w),g.return=m,g):(g=i(g,y),g.return=m,g)}function l(m,g,y,w){var S=y.type;return S===yu?c(m,g,y.props.children,w,y.key):g!==null&&(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ra&&nO(S)===g.type)?(w=i(g,y.props),w.ref=Vd(m,g,y),w.return=m,w):(w=Pm(y.type,y.key,y.props,null,m.mode,w),w.ref=Vd(m,g,y),w.return=m,w)}function u(m,g,y,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=H1(y,m.mode,w),g.return=m,g):(g=i(g,y.children||[]),g.return=m,g)}function c(m,g,y,w,S){return g===null||g.tag!==7?(g=Ws(y,m.mode,w,S),g.return=m,g):(g=i(g,y),g.return=m,g)}function d(m,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=z1(""+g,m.mode,y),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ep:return y=Pm(g.type,g.key,g.props,null,m.mode,y),y.ref=Vd(m,null,g),y.return=m,y;case gu:return g=H1(g,m.mode,y),g.return=m,g;case ra:var w=g._init;return d(m,w(g._payload),y)}if(sf(g)||Ld(g))return g=Ws(g,m.mode,y,null),g.return=m,g;dp(m,g)}return null}function f(m,g,y,w){var S=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:s(m,g,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ep:return y.key===S?l(m,g,y,w):null;case gu:return y.key===S?u(m,g,y,w):null;case ra:return S=y._init,f(m,g,S(y._payload),w)}if(sf(y)||Ld(y))return S!==null?null:c(m,g,y,w,null);dp(m,y)}return null}function h(m,g,y,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(y)||null,s(g,m,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ep:return m=m.get(w.key===null?y:w.key)||null,l(g,m,w,S);case gu:return m=m.get(w.key===null?y:w.key)||null,u(g,m,w,S);case ra:var E=w._init;return h(m,g,y,E(w._payload),S)}if(sf(w)||Ld(w))return m=m.get(y)||null,c(g,m,w,S,null);dp(g,w)}return null}function v(m,g,y,w){for(var S=null,E=null,x=g,C=g=0,k=null;x!==null&&C<y.length;C++){x.index>C?(k=x,x=null):k=x.sibling;var P=f(m,x,y[C],w);if(P===null){x===null&&(x=k);break}e&&x&&P.alternate===null&&r(m,x),g=o(P,g,C),E===null?S=P:E.sibling=P,E=P,x=k}if(C===y.length)return t(m,x),ot&&gs(m,C),S;if(x===null){for(;C<y.length;C++)x=d(m,y[C],w),x!==null&&(g=o(x,g,C),E===null?S=x:E.sibling=x,E=x);return ot&&gs(m,C),S}for(x=n(m,x);C<y.length;C++)k=h(x,m,C,y[C],w),k!==null&&(e&&k.alternate!==null&&x.delete(k.key===null?C:k.key),g=o(k,g,C),E===null?S=k:E.sibling=k,E=k);return e&&x.forEach(function(T){return r(m,T)}),ot&&gs(m,C),S}function p(m,g,y,w){var S=Ld(y);if(typeof S!="function")throw Error(q(150));if(y=S.call(y),y==null)throw Error(q(151));for(var E=S=null,x=g,C=g=0,k=null,P=y.next();x!==null&&!P.done;C++,P=y.next()){x.index>C?(k=x,x=null):k=x.sibling;var T=f(m,x,P.value,w);if(T===null){x===null&&(x=k);break}e&&x&&T.alternate===null&&r(m,x),g=o(T,g,C),E===null?S=T:E.sibling=T,E=T,x=k}if(P.done)return t(m,x),ot&&gs(m,C),S;if(x===null){for(;!P.done;C++,P=y.next())P=d(m,P.value,w),P!==null&&(g=o(P,g,C),E===null?S=P:E.sibling=P,E=P);return ot&&gs(m,C),S}for(x=n(m,x);!P.done;C++,P=y.next())P=h(x,m,C,P.value,w),P!==null&&(e&&P.alternate!==null&&x.delete(P.key===null?C:P.key),g=o(P,g,C),E===null?S=P:E.sibling=P,E=P);return e&&x.forEach(function(R){return r(m,R)}),ot&&gs(m,C),S}function $(m,g,y,w){if(typeof y=="object"&&y!==null&&y.type===yu&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ep:e:{for(var S=y.key,E=g;E!==null;){if(E.key===S){if(S=y.type,S===yu){if(E.tag===7){t(m,E.sibling),g=i(E,y.props.children),g.return=m,m=g;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ra&&nO(S)===E.type){t(m,E.sibling),g=i(E,y.props),g.ref=Vd(m,E,y),g.return=m,m=g;break e}t(m,E);break}else r(m,E);E=E.sibling}y.type===yu?(g=Ws(y.props.children,m.mode,w,y.key),g.return=m,m=g):(w=Pm(y.type,y.key,y.props,null,m.mode,w),w.ref=Vd(m,g,y),w.return=m,m=w)}return a(m);case gu:e:{for(E=y.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){t(m,g.sibling),g=i(g,y.children||[]),g.return=m,m=g;break e}else{t(m,g);break}else r(m,g);g=g.sibling}g=H1(y,m.mode,w),g.return=m,m=g}return a(m);case ra:return E=y._init,$(m,g,E(y._payload),w)}if(sf(y))return v(m,g,y,w);if(Ld(y))return p(m,g,y,w);dp(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(t(m,g.sibling),g=i(g,y),g.return=m,m=g):(t(m,g),g=z1(y,m.mode,w),g.return=m,m=g),a(m)):t(m,g)}return $}var $c=_F(!0),EF=_F(!1),fg=Qa(null),hg=null,Cu=null,LE=null;function BE(){LE=Cu=hg=null}function zE(e){var r=fg.current;nt(fg),e._currentValue=r}function oS(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 Ku(e,r){hg=e,LE=Cu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&r&&(Gr=!0),e.firstContext=null)}function Ln(e){var r=e._currentValue;if(LE!==e)if(e={context:e,memoizedValue:r,next:null},Cu===null){if(hg===null)throw Error(q(308));Cu=e,hg.dependencies={lanes:0,firstContext:e}}else Cu=Cu.next=e;return r}var ks=null;function HE(e){ks===null?ks=[e]:ks.push(e)}function xF(e,r,t,n){var i=r.interleaved;return i===null?(t.next=t,HE(r)):(t.next=i.next,i.next=t),r.interleaved=t,Io(e,n)}function Io(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 na=!1;function WE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function CF(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 go(e,r){return{eventTime:e,lane:r,tag:0,payload:null,callback:null,next:null}}function Pa(e,r,t){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ne&2){var i=n.pending;return i===null?r.next=r:(r.next=i.next,i.next=r),n.pending=r,Io(e,t)}return i=n.interleaved,i===null?(r.next=r,HE(n)):(r.next=i.next,i.next=r),n.interleaved=r,Io(e,t)}function Sm(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,PE(e,t)}}function iO(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 vg(e,r,t,n){var i=e.updateQueue;na=!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=ct({},d,f);break e;case 2:na=!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);il|=a,e.lanes=a,e.memoizedState=d}}function oO(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(q(191,i));i.call(n)}}}var Dh={},Ki=Qa(Dh),eh=Qa(Dh),th=Qa(Dh);function Ps(e){if(e===Dh)throw Error(q(174));return e}function VE(e,r){switch(et(th,r),et(eh,e),et(Ki,Dh),e=r.nodeType,e){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Lw(null,"");break;default:e=e===8?r.parentNode:r,r=e.namespaceURI||null,e=e.tagName,r=Lw(r,e)}nt(Ki),et(Ki,r)}function wc(){nt(Ki),nt(eh),nt(th)}function kF(e){Ps(th.current);var r=Ps(Ki.current),t=Lw(r,e.type);r!==t&&(et(eh,e),et(Ki,t))}function UE(e){eh.current===e&&(nt(Ki),nt(eh))}var lt=Qa(0);function pg(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 A1=[];function KE(){for(var e=0;e<A1.length;e++)A1[e]._workInProgressVersionPrimary=null;A1.length=0}var _m=zo.ReactCurrentDispatcher,D1=zo.ReactCurrentBatchConfig,nl=0,ut=null,At=null,zt=null,mg=!1,Ef=!1,rh=0,eV=0;function lr(){throw Error(q(321))}function GE(e,r){if(r===null)return!1;for(var t=0;t<r.length&&t<e.length;t++)if(!yi(e[t],r[t]))return!1;return!0}function qE(e,r,t,n,i,o){if(nl=o,ut=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,_m.current=e===null||e.memoizedState===null?iV:oV,e=t(n,i),Ef){o=0;do{if(Ef=!1,rh=0,25<=o)throw Error(q(301));o+=1,zt=At=null,r.updateQueue=null,_m.current=aV,e=t(n,i)}while(Ef)}if(_m.current=gg,r=At!==null&&At.next!==null,nl=0,zt=At=ut=null,mg=!1,r)throw Error(q(300));return e}function YE(){var e=rh!==0;return rh=0,e}function Ri(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?ut.memoizedState=zt=e:zt=zt.next=e,zt}function Bn(){if(At===null){var e=ut.alternate;e=e!==null?e.memoizedState:null}else e=At.next;var r=zt===null?ut.memoizedState:zt.next;if(r!==null)zt=r,At=e;else{if(e===null)throw Error(q(310));At=e,e={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},zt===null?ut.memoizedState=zt=e:zt=zt.next=e}return zt}function nh(e,r){return typeof r=="function"?r(e):r}function F1(e){var r=Bn(),t=r.queue;if(t===null)throw Error(q(311));t.lastRenderedReducer=e;var n=At,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((nl&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,ut.lanes|=c,il|=c}u=u.next}while(u!==null&&u!==o);l===null?a=n:l.next=s,yi(n,r.memoizedState)||(Gr=!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,ut.lanes|=o,il|=o,i=i.next;while(i!==e)}else i===null&&(t.lanes=0);return[r.memoizedState,t.dispatch]}function j1(e){var r=Bn(),t=r.queue;if(t===null)throw Error(q(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);yi(o,r.memoizedState)||(Gr=!0),r.memoizedState=o,r.baseQueue===null&&(r.baseState=o),t.lastRenderedState=o}return[o,n]}function PF(){}function OF(e,r){var t=ut,n=Bn(),i=r(),o=!yi(n.memoizedState,i);if(o&&(n.memoizedState=i,Gr=!0),n=n.queue,XE(RF.bind(null,t,n,e),[e]),n.getSnapshot!==r||o||zt!==null&&zt.memoizedState.tag&1){if(t.flags|=2048,ih(9,IF.bind(null,t,n,i,r),void 0,null),Vt===null)throw Error(q(349));nl&30||TF(t,r,i)}return i}function TF(e,r,t){e.flags|=16384,e={getSnapshot:r,value:t},r=ut.updateQueue,r===null?(r={lastEffect:null,stores:null},ut.updateQueue=r,r.stores=[e]):(t=r.stores,t===null?r.stores=[e]:t.push(e))}function IF(e,r,t,n){r.value=t,r.getSnapshot=n,MF(r)&&NF(e)}function RF(e,r,t){return t(function(){MF(r)&&NF(e)})}function MF(e){var r=e.getSnapshot;e=e.value;try{var t=r();return!yi(e,t)}catch{return!0}}function NF(e){var r=Io(e,1);r!==null&&mi(r,e,1,-1)}function aO(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:nh,lastRenderedState:e},r.queue=e,e=e.dispatch=nV.bind(null,ut,e),[r.memoizedState,e]}function ih(e,r,t,n){return e={tag:e,create:r,destroy:t,deps:n,next:null},r=ut.updateQueue,r===null?(r={lastEffect:null,stores:null},ut.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 AF(){return Bn().memoizedState}function Em(e,r,t,n){var i=Ri();ut.flags|=e,i.memoizedState=ih(1|r,t,void 0,n===void 0?null:n)}function yy(e,r,t,n){var i=Bn();n=n===void 0?null:n;var o=void 0;if(At!==null){var a=At.memoizedState;if(o=a.destroy,n!==null&&GE(n,a.deps)){i.memoizedState=ih(r,t,o,n);return}}ut.flags|=e,i.memoizedState=ih(1|r,t,o,n)}function sO(e,r){return Em(8390656,8,e,r)}function XE(e,r){return yy(2048,8,e,r)}function DF(e,r){return yy(4,2,e,r)}function FF(e,r){return yy(4,4,e,r)}function jF(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 LF(e,r,t){return t=t!=null?t.concat([e]):null,yy(4,4,jF.bind(null,r,e),t)}function QE(){}function BF(e,r){var t=Bn();r=r===void 0?null:r;var n=t.memoizedState;return n!==null&&r!==null&&GE(r,n[1])?n[0]:(t.memoizedState=[e,r],e)}function zF(e,r){var t=Bn();r=r===void 0?null:r;var n=t.memoizedState;return n!==null&&r!==null&&GE(r,n[1])?n[0]:(e=e(),t.memoizedState=[e,r],e)}function HF(e,r,t){return nl&21?(yi(t,r)||(t=GD(),ut.lanes|=t,il|=t,e.baseState=!0),r):(e.baseState&&(e.baseState=!1,Gr=!0),e.memoizedState=t)}function tV(e,r){var t=We;We=t!==0&&4>t?t:4,e(!0);var n=D1.transition;D1.transition={};try{e(!1),r()}finally{We=t,D1.transition=n}}function WF(){return Bn().memoizedState}function rV(e,r,t){var n=Ta(e);if(t={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null},VF(e))UF(r,t);else if(t=xF(e,r,t,n),t!==null){var i=Pr();mi(t,e,n,i),KF(t,r,n)}}function nV(e,r,t){var n=Ta(e),i={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null};if(VF(e))UF(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,yi(s,a)){var l=r.interleaved;l===null?(i.next=i,HE(r)):(i.next=l.next,l.next=i),r.interleaved=i;return}}catch{}finally{}t=xF(e,r,i,n),t!==null&&(i=Pr(),mi(t,e,n,i),KF(t,r,n))}}function VF(e){var r=e.alternate;return e===ut||r!==null&&r===ut}function UF(e,r){Ef=mg=!0;var t=e.pending;t===null?r.next=r:(r.next=t.next,t.next=r),e.pending=r}function KF(e,r,t){if(t&4194240){var n=r.lanes;n&=e.pendingLanes,t|=n,r.lanes=t,PE(e,t)}}var gg={readContext:Ln,useCallback:lr,useContext:lr,useEffect:lr,useImperativeHandle:lr,useInsertionEffect:lr,useLayoutEffect:lr,useMemo:lr,useReducer:lr,useRef:lr,useState:lr,useDebugValue:lr,useDeferredValue:lr,useTransition:lr,useMutableSource:lr,useSyncExternalStore:lr,useId:lr,unstable_isNewReconciler:!1},iV={readContext:Ln,useCallback:function(e,r){return Ri().memoizedState=[e,r===void 0?null:r],e},useContext:Ln,useEffect:sO,useImperativeHandle:function(e,r,t){return t=t!=null?t.concat([e]):null,Em(4194308,4,jF.bind(null,r,e),t)},useLayoutEffect:function(e,r){return Em(4194308,4,e,r)},useInsertionEffect:function(e,r){return Em(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=rV.bind(null,ut,e),[n.memoizedState,e]},useRef:function(e){var r=Ri();return e={current:e},r.memoizedState=e},useState:aO,useDebugValue:QE,useDeferredValue:function(e){return Ri().memoizedState=e},useTransition:function(){var e=aO(!1),r=e[0];return e=tV.bind(null,e[1]),Ri().memoizedState=e,[r,e]},useMutableSource:function(){},useSyncExternalStore:function(e,r,t){var n=ut,i=Ri();if(ot){if(t===void 0)throw Error(q(407));t=t()}else{if(t=r(),Vt===null)throw Error(q(349));nl&30||TF(n,r,t)}i.memoizedState=t;var o={value:t,getSnapshot:r};return i.queue=o,sO(RF.bind(null,n,o,e),[e]),n.flags|=2048,ih(9,IF.bind(null,n,o,t,r),void 0,null),t},useId:function(){var e=Ri(),r=Vt.identifierPrefix;if(ot){var t=po,n=vo;t=(n&~(1<<32-pi(n)-1)).toString(32)+t,r=":"+r+"R"+t,t=rh++,0<t&&(r+="H"+t.toString(32)),r+=":"}else t=eV++,r=":"+r+"r"+t.toString(32)+":";return e.memoizedState=r},unstable_isNewReconciler:!1},oV={readContext:Ln,useCallback:BF,useContext:Ln,useEffect:XE,useImperativeHandle:LF,useInsertionEffect:DF,useLayoutEffect:FF,useMemo:zF,useReducer:F1,useRef:AF,useState:function(){return F1(nh)},useDebugValue:QE,useDeferredValue:function(e){var r=Bn();return HF(r,At.memoizedState,e)},useTransition:function(){var e=F1(nh)[0],r=Bn().memoizedState;return[e,r]},useMutableSource:PF,useSyncExternalStore:OF,useId:WF,unstable_isNewReconciler:!1},aV={readContext:Ln,useCallback:BF,useContext:Ln,useEffect:XE,useImperativeHandle:LF,useInsertionEffect:DF,useLayoutEffect:FF,useMemo:zF,useReducer:j1,useRef:AF,useState:function(){return j1(nh)},useDebugValue:QE,useDeferredValue:function(e){var r=Bn();return At===null?r.memoizedState=e:HF(r,At.memoizedState,e)},useTransition:function(){var e=j1(nh)[0],r=Bn().memoizedState;return[e,r]},useMutableSource:PF,useSyncExternalStore:OF,useId:WF,unstable_isNewReconciler:!1};function ti(e,r){if(e&&e.defaultProps){r=ct({},r),e=e.defaultProps;for(var t in e)r[t]===void 0&&(r[t]=e[t]);return r}return r}function aS(e,r,t,n){r=e.memoizedState,t=t(n,r),t=t==null?r:ct({},r,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var by={isMounted:function(e){return(e=e._reactInternals)?wl(e)===e:!1},enqueueSetState:function(e,r,t){e=e._reactInternals;var n=Pr(),i=Ta(e),o=go(n,i);o.payload=r,t!=null&&(o.callback=t),r=Pa(e,o,i),r!==null&&(mi(r,e,i,n),Sm(r,e,i))},enqueueReplaceState:function(e,r,t){e=e._reactInternals;var n=Pr(),i=Ta(e),o=go(n,i);o.tag=1,o.payload=r,t!=null&&(o.callback=t),r=Pa(e,o,i),r!==null&&(mi(r,e,i,n),Sm(r,e,i))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var t=Pr(),n=Ta(e),i=go(t,n);i.tag=2,r!=null&&(i.callback=r),r=Pa(e,i,n),r!==null&&(mi(r,e,n,t),Sm(r,e,n))}};function lO(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?!Xf(t,n)||!Xf(i,o):!0}function GF(e,r,t){var n=!1,i=za,o=r.contextType;return typeof o=="object"&&o!==null?o=Ln(o):(i=Xr(r)?tl:vr.current,n=r.contextTypes,o=(n=n!=null)?yc(e,i):za),r=new r(t,o),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=by,e.stateNode=r,r._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),r}function uO(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&&by.enqueueReplaceState(r,r.state,null)}function sS(e,r,t,n){var i=e.stateNode;i.props=t,i.state=e.memoizedState,i.refs={},WE(e);var o=r.contextType;typeof o=="object"&&o!==null?i.context=Ln(o):(o=Xr(r)?tl:vr.current,i.context=yc(e,o)),i.state=e.memoizedState,o=r.getDerivedStateFromProps,typeof o=="function"&&(aS(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&&by.enqueueReplaceState(i,i.state,null),vg(e,t,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Sc(e,r){try{var t="",n=r;do t+=N7(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 L1(e,r,t){return{value:e,source:null,stack:t??null,digest:r??null}}function lS(e,r){try{console.error(r.value)}catch(t){setTimeout(function(){throw t})}}var sV=typeof WeakMap=="function"?WeakMap:Map;function qF(e,r,t){t=go(-1,t),t.tag=3,t.payload={element:null};var n=r.value;return t.callback=function(){bg||(bg=!0,yS=n),lS(e,r)},t}function YF(e,r,t){t=go(-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(){lS(e,r)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){lS(e,r),typeof n!="function"&&(Oa===null?Oa=new Set([this]):Oa.add(this));var a=r.stack;this.componentDidCatch(r.value,{componentStack:a!==null?a:""})}),t}function cO(e,r,t){var n=e.pingCache;if(n===null){n=e.pingCache=new sV;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=wV.bind(null,e,r,t),r.then(e,e))}function dO(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 fO(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=go(-1,1),r.tag=2,Pa(t,r,1))),t.lanes|=1),e)}var lV=zo.ReactCurrentOwner,Gr=!1;function _r(e,r,t,n){r.child=e===null?EF(r,null,t,n):$c(r,e.child,t,n)}function hO(e,r,t,n,i){t=t.render;var o=r.ref;return Ku(r,i),n=qE(e,r,t,n,o,i),t=YE(),e!==null&&!Gr?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~i,Ro(e,r,i)):(ot&&t&&DE(r),r.flags|=1,_r(e,r,n,i),r.child)}function vO(e,r,t,n,i){if(e===null){var o=t.type;return typeof o=="function"&&!ox(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(r.tag=15,r.type=o,XF(e,r,o,n,i)):(e=Pm(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:Xf,t(a,n)&&e.ref===r.ref)return Ro(e,r,i)}return r.flags|=1,e=Ia(o,n),e.ref=r.ref,e.return=r,r.child=e}function XF(e,r,t,n,i){if(e!==null){var o=e.memoizedProps;if(Xf(o,n)&&e.ref===r.ref)if(Gr=!1,r.pendingProps=n=o,(e.lanes&i)!==0)e.flags&131072&&(Gr=!0);else return r.lanes=e.lanes,Ro(e,r,i)}return uS(e,r,t,n,i)}function QF(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},et(Pu,ln),ln|=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,et(Pu,ln),ln|=e,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:t,et(Pu,ln),ln|=n}else o!==null?(n=o.baseLanes|t,r.memoizedState=null):n=t,et(Pu,ln),ln|=n;return _r(e,r,i,t),r.child}function JF(e,r){var t=r.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(r.flags|=512,r.flags|=2097152)}function uS(e,r,t,n,i){var o=Xr(t)?tl:vr.current;return o=yc(r,o),Ku(r,i),t=qE(e,r,t,n,o,i),n=YE(),e!==null&&!Gr?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~i,Ro(e,r,i)):(ot&&n&&DE(r),r.flags|=1,_r(e,r,t,i),r.child)}function pO(e,r,t,n,i){if(Xr(t)){var o=!0;ug(r)}else o=!1;if(Ku(r,i),r.stateNode===null)xm(e,r),GF(r,t,n),sS(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=Ln(u):(u=Xr(t)?tl:vr.current,u=yc(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)&&uO(r,a,n,u),na=!1;var f=r.memoizedState;a.state=f,vg(r,n,a,i),l=r.memoizedState,s!==n||f!==l||Yr.current||na?(typeof c=="function"&&(aS(r,t,c,n),l=r.memoizedState),(s=na||lO(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,CF(e,r),s=r.memoizedProps,u=r.type===r.elementType?s:ti(r.type,s),a.props=u,d=r.pendingProps,f=a.context,l=t.contextType,typeof l=="object"&&l!==null?l=Ln(l):(l=Xr(t)?tl:vr.current,l=yc(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)&&uO(r,a,n,l),na=!1,f=r.memoizedState,a.state=f,vg(r,n,a,i);var v=r.memoizedState;s!==d||f!==v||Yr.current||na?(typeof h=="function"&&(aS(r,t,h,n),v=r.memoizedState),(u=na||lO(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 cS(e,r,t,n,o,i)}function cS(e,r,t,n,i,o){JF(e,r);var a=(r.flags&128)!==0;if(!n&&!a)return i&&eO(r,t,!1),Ro(e,r,o);n=r.stateNode,lV.current=r;var s=a&&typeof t.getDerivedStateFromError!="function"?null:n.render();return r.flags|=1,e!==null&&a?(r.child=$c(r,e.child,null,o),r.child=$c(r,null,s,o)):_r(e,r,s,o),r.memoizedState=n.state,i&&eO(r,t,!0),r.child}function ZF(e){var r=e.stateNode;r.pendingContext?ZP(e,r.pendingContext,r.pendingContext!==r.context):r.context&&ZP(e,r.context,!1),VE(e,r.containerInfo)}function mO(e,r,t,n,i){return bc(),jE(i),r.flags|=256,_r(e,r,t,n),r.child}var dS={dehydrated:null,treeContext:null,retryLane:0};function fS(e){return{baseLanes:e,cachePool:null,transitions:null}}function ej(e,r,t){var n=r.pendingProps,i=lt.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),et(lt,i&1),e===null)return iS(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=Sy(a,n,0,null),e=Ws(e,n,t,null),o.return=r,e.return=r,o.sibling=e,r.child=o,r.child.memoizedState=fS(t),r.memoizedState=dS,e):JE(r,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return uV(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=Ia(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Ia(s,o):(o=Ws(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?fS(t):{baseLanes:a.baseLanes|t,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~t,r.memoizedState=dS,n}return o=e.child,e=o.sibling,n=Ia(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 JE(e,r){return r=Sy({mode:"visible",children:r},e.mode,0,null),r.return=e,e.child=r}function fp(e,r,t,n){return n!==null&&jE(n),$c(r,e.child,null,t),e=JE(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function uV(e,r,t,n,i,o,a){if(t)return r.flags&256?(r.flags&=-257,n=L1(Error(q(422))),fp(e,r,a,n)):r.memoizedState!==null?(r.child=e.child,r.flags|=128,null):(o=n.fallback,i=r.mode,n=Sy({mode:"visible",children:n.children},i,0,null),o=Ws(o,i,a,null),o.flags|=2,n.return=r,o.return=r,n.sibling=o,r.child=n,r.mode&1&&$c(r,e.child,null,a),r.child.memoizedState=fS(a),r.memoizedState=dS,o);if(!(r.mode&1))return fp(e,r,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(q(419)),n=L1(o,n,void 0),fp(e,r,a,n)}if(s=(a&e.childLanes)!==0,Gr||s){if(n=Vt,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,Io(e,i),mi(n,e,i,-1))}return ix(),n=L1(Error(q(421))),fp(e,r,a,n)}return i.data==="$?"?(r.flags|=128,r.child=e.child,r=SV.bind(null,e),i._reactRetry=r,null):(e=o.treeContext,cn=ka(i.nextSibling),fn=r,ot=!0,oi=null,e!==null&&(In[Rn++]=vo,In[Rn++]=po,In[Rn++]=rl,vo=e.id,po=e.overflow,rl=r),r=JE(r,n.children),r.flags|=4096,r)}function gO(e,r,t){e.lanes|=r;var n=e.alternate;n!==null&&(n.lanes|=r),oS(e.return,r,t)}function B1(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 tj(e,r,t){var n=r.pendingProps,i=n.revealOrder,o=n.tail;if(_r(e,r,n.children,t),n=lt.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&&gO(e,t,r);else if(e.tag===19)gO(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(et(lt,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&&pg(e)===null&&(i=t),t=t.sibling;t=i,t===null?(i=r.child,r.child=null):(i=t.sibling,t.sibling=null),B1(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&&pg(e)===null){r.child=i;break}e=i.sibling,i.sibling=t,t=i,i=e}B1(r,!0,t,null,o);break;case"together":B1(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function xm(e,r){!(r.mode&1)&&e!==null&&(e.alternate=null,r.alternate=null,r.flags|=2)}function Ro(e,r,t){if(e!==null&&(r.dependencies=e.dependencies),il|=r.lanes,!(t&r.childLanes))return null;if(e!==null&&r.child!==e.child)throw Error(q(153));if(r.child!==null){for(e=r.child,t=Ia(e,e.pendingProps),r.child=t,t.return=r;e.sibling!==null;)e=e.sibling,t=t.sibling=Ia(e,e.pendingProps),t.return=r;t.sibling=null}return r.child}function cV(e,r,t){switch(r.tag){case 3:ZF(r),bc();break;case 5:kF(r);break;case 1:Xr(r.type)&&ug(r);break;case 4:VE(r,r.stateNode.containerInfo);break;case 10:var n=r.type._context,i=r.memoizedProps.value;et(fg,n._currentValue),n._currentValue=i;break;case 13:if(n=r.memoizedState,n!==null)return n.dehydrated!==null?(et(lt,lt.current&1),r.flags|=128,null):t&r.child.childLanes?ej(e,r,t):(et(lt,lt.current&1),e=Ro(e,r,t),e!==null?e.sibling:null);et(lt,lt.current&1);break;case 19:if(n=(t&r.childLanes)!==0,e.flags&128){if(n)return tj(e,r,t);r.flags|=128}if(i=r.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),et(lt,lt.current),n)break;return null;case 22:case 23:return r.lanes=0,QF(e,r,t)}return Ro(e,r,t)}var rj,hS,nj,ij;rj=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}};hS=function(){};nj=function(e,r,t,n){var i=e.memoizedProps;if(i!==n){e=r.stateNode,Ps(Ki.current);var o=null;switch(t){case"input":i=Aw(e,i),n=Aw(e,n),o=[];break;case"select":i=ct({},i,{value:void 0}),n=ct({},n,{value:void 0}),o=[];break;case"textarea":i=jw(e,i),n=jw(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=sg)}Bw(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"&&(Wf.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"&&(Wf.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&rt("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)}};ij=function(e,r,t,n){t!==n&&(r.flags|=4)};function Ud(e,r){if(!ot)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 ur(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 dV(e,r,t){var n=r.pendingProps;switch(FE(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ur(r),null;case 1:return Xr(r.type)&&lg(),ur(r),null;case 3:return n=r.stateNode,wc(),nt(Yr),nt(vr),KE(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(cp(r)?r.flags|=4:e===null||e.memoizedState.isDehydrated&&!(r.flags&256)||(r.flags|=1024,oi!==null&&(wS(oi),oi=null))),hS(e,r),ur(r),null;case 5:UE(r);var i=Ps(th.current);if(t=r.type,e!==null&&r.stateNode!=null)nj(e,r,t,n,i),e.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!n){if(r.stateNode===null)throw Error(q(166));return ur(r),null}if(e=Ps(Ki.current),cp(r)){n=r.stateNode,t=r.type;var o=r.memoizedProps;switch(n[ji]=r,n[Zf]=o,e=(r.mode&1)!==0,t){case"dialog":rt("cancel",n),rt("close",n);break;case"iframe":case"object":case"embed":rt("load",n);break;case"video":case"audio":for(i=0;i<uf.length;i++)rt(uf[i],n);break;case"source":rt("error",n);break;case"img":case"image":case"link":rt("error",n),rt("load",n);break;case"details":rt("toggle",n);break;case"input":CP(n,o),rt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},rt("invalid",n);break;case"textarea":PP(n,o),rt("invalid",n)}Bw(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&&up(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&up(n.textContent,s,e),i=["children",""+s]):Wf.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&rt("scroll",n)}switch(t){case"input":tp(n),kP(n,o,!0);break;case"textarea":tp(n),OP(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=sg)}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=RD(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[ji]=r,e[Zf]=n,rj(e,r,!1,!1),r.stateNode=e;e:{switch(a=zw(t,n),t){case"dialog":rt("cancel",e),rt("close",e),i=n;break;case"iframe":case"object":case"embed":rt("load",e),i=n;break;case"video":case"audio":for(i=0;i<uf.length;i++)rt(uf[i],e);i=n;break;case"source":rt("error",e),i=n;break;case"img":case"image":case"link":rt("error",e),rt("load",e),i=n;break;case"details":rt("toggle",e),i=n;break;case"input":CP(e,n),i=Aw(e,n),rt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=ct({},n,{value:void 0}),rt("invalid",e);break;case"textarea":PP(e,n),i=jw(e,n),rt("invalid",e);break;default:i=n}Bw(t,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?AD(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&MD(e,l)):o==="children"?typeof l=="string"?(t!=="textarea"||l!=="")&&Vf(e,l):typeof l=="number"&&Vf(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Wf.hasOwnProperty(o)?l!=null&&o==="onScroll"&&rt("scroll",e):l!=null&&SE(e,o,l,a))}switch(t){case"input":tp(e),kP(e,n,!1);break;case"textarea":tp(e),OP(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ba(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Hu(e,!!n.multiple,o,!1):n.defaultValue!=null&&Hu(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=sg)}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 ur(r),null;case 6:if(e&&r.stateNode!=null)ij(e,r,e.memoizedProps,n);else{if(typeof n!="string"&&r.stateNode===null)throw Error(q(166));if(t=Ps(th.current),Ps(Ki.current),cp(r)){if(n=r.stateNode,t=r.memoizedProps,n[ji]=r,(o=n.nodeValue!==t)&&(e=fn,e!==null))switch(e.tag){case 3:up(n.nodeValue,t,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&up(n.nodeValue,t,(e.mode&1)!==0)}o&&(r.flags|=4)}else n=(t.nodeType===9?t:t.ownerDocument).createTextNode(n),n[ji]=r,r.stateNode=n}return ur(r),null;case 13:if(nt(lt),n=r.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ot&&cn!==null&&r.mode&1&&!(r.flags&128))SF(),bc(),r.flags|=98560,o=!1;else if(o=cp(r),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(q(318));if(o=r.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(q(317));o[ji]=r}else bc(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;ur(r),o=!1}else oi!==null&&(wS(oi),oi=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||lt.current&1?Ft===0&&(Ft=3):ix())),r.updateQueue!==null&&(r.flags|=4),ur(r),null);case 4:return wc(),hS(e,r),e===null&&Qf(r.stateNode.containerInfo),ur(r),null;case 10:return zE(r.type._context),ur(r),null;case 17:return Xr(r.type)&&lg(),ur(r),null;case 19:if(nt(lt),o=r.memoizedState,o===null)return ur(r),null;if(n=(r.flags&128)!==0,a=o.rendering,a===null)if(n)Ud(o,!1);else{if(Ft!==0||e!==null&&e.flags&128)for(e=r.child;e!==null;){if(a=pg(e),a!==null){for(r.flags|=128,Ud(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 et(lt,lt.current&1|2),r.child}e=e.sibling}o.tail!==null&&St()>_c&&(r.flags|=128,n=!0,Ud(o,!1),r.lanes=4194304)}else{if(!n)if(e=pg(a),e!==null){if(r.flags|=128,n=!0,t=e.updateQueue,t!==null&&(r.updateQueue=t,r.flags|=4),Ud(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ot)return ur(r),null}else 2*St()-o.renderingStartTime>_c&&t!==1073741824&&(r.flags|=128,n=!0,Ud(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=St(),r.sibling=null,t=lt.current,et(lt,n?t&1|2:t&1),r):(ur(r),null);case 22:case 23:return nx(),n=r.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(r.flags|=8192),n&&r.mode&1?ln&1073741824&&(ur(r),r.subtreeFlags&6&&(r.flags|=8192)):ur(r),null;case 24:return null;case 25:return null}throw Error(q(156,r.tag))}function fV(e,r){switch(FE(r),r.tag){case 1:return Xr(r.type)&&lg(),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return wc(),nt(Yr),nt(vr),KE(),e=r.flags,e&65536&&!(e&128)?(r.flags=e&-65537|128,r):null;case 5:return UE(r),null;case 13:if(nt(lt),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(q(340));bc()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return nt(lt),null;case 4:return wc(),null;case 10:return zE(r.type._context),null;case 22:case 23:return nx(),null;case 24:return null;default:return null}}var hp=!1,dr=!1,hV=typeof WeakSet=="function"?WeakSet:Set,ue=null;function ku(e,r){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){ht(e,r,n)}else t.current=null}function vS(e,r,t){try{t()}catch(n){ht(e,r,n)}}var yO=!1;function vV(e,r){if(Qw=ig,e=uF(),AE(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(Jw={focusedElem:e,selectionRange:t},ig=!1,ue=r;ue!==null;)if(r=ue,e=r.child,(r.subtreeFlags&1028)!==0&&e!==null)e.return=r,ue=e;else for(;ue!==null;){r=ue;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,$=v.memoizedState,m=r.stateNode,g=m.getSnapshotBeforeUpdate(r.elementType===r.type?p:ti(r.type,p),$);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=r.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(w){ht(r,r.return,w)}if(e=r.sibling,e!==null){e.return=r.return,ue=e;break}ue=r.return}return v=yO,yO=!1,v}function xf(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&&vS(r,t,o)}i=i.next}while(i!==n)}}function $y(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 pS(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 oj(e){var r=e.alternate;r!==null&&(e.alternate=null,oj(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&(delete r[ji],delete r[Zf],delete r[tS],delete r[XW],delete r[QW])),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 aj(e){return e.tag===5||e.tag===3||e.tag===4}function bO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||aj(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 mS(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=sg));else if(n!==4&&(e=e.child,e!==null))for(mS(e,r,t),e=e.sibling;e!==null;)mS(e,r,t),e=e.sibling}function gS(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(gS(e,r,t),e=e.sibling;e!==null;)gS(e,r,t),e=e.sibling}var tr=null,ii=!1;function Qo(e,r,t){for(t=t.child;t!==null;)sj(e,r,t),t=t.sibling}function sj(e,r,t){if(Ui&&typeof Ui.onCommitFiberUnmount=="function")try{Ui.onCommitFiberUnmount(fy,t)}catch{}switch(t.tag){case 5:dr||ku(t,r);case 6:var n=tr,i=ii;tr=null,Qo(e,r,t),tr=n,ii=i,tr!==null&&(ii?(e=tr,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):tr.removeChild(t.stateNode));break;case 18:tr!==null&&(ii?(e=tr,t=t.stateNode,e.nodeType===8?M1(e.parentNode,t):e.nodeType===1&&M1(e,t),qf(e)):M1(tr,t.stateNode));break;case 4:n=tr,i=ii,tr=t.stateNode.containerInfo,ii=!0,Qo(e,r,t),tr=n,ii=i;break;case 0:case 11:case 14:case 15:if(!dr&&(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)&&vS(t,r,a),i=i.next}while(i!==n)}Qo(e,r,t);break;case 1:if(!dr&&(ku(t,r),n=t.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(s){ht(t,r,s)}Qo(e,r,t);break;case 21:Qo(e,r,t);break;case 22:t.mode&1?(dr=(n=dr)||t.memoizedState!==null,Qo(e,r,t),dr=n):Qo(e,r,t);break;default:Qo(e,r,t)}}function $O(e){var r=e.updateQueue;if(r!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new hV),r.forEach(function(n){var i=_V.bind(null,e,n);t.has(n)||(t.add(n),n.then(i,i))})}}function ei(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:tr=s.stateNode,ii=!1;break e;case 3:tr=s.stateNode.containerInfo,ii=!0;break e;case 4:tr=s.stateNode.containerInfo,ii=!0;break e}s=s.return}if(tr===null)throw Error(q(160));sj(o,a,i),tr=null,ii=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ht(i,r,u)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)lj(r,e),r=r.sibling}function lj(e,r){var t=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ei(r,e),Pi(e),n&4){try{xf(3,e,e.return),$y(3,e)}catch(p){ht(e,e.return,p)}try{xf(5,e,e.return)}catch(p){ht(e,e.return,p)}}break;case 1:ei(r,e),Pi(e),n&512&&t!==null&&ku(t,t.return);break;case 5:if(ei(r,e),Pi(e),n&512&&t!==null&&ku(t,t.return),e.flags&32){var i=e.stateNode;try{Vf(i,"")}catch(p){ht(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&&TD(i,o),zw(s,a);var u=zw(s,o);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];c==="style"?AD(i,d):c==="dangerouslySetInnerHTML"?MD(i,d):c==="children"?Vf(i,d):SE(i,c,d,u)}switch(s){case"input":Dw(i,o);break;case"textarea":ID(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Hu(i,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?Hu(i,!!o.multiple,o.defaultValue,!0):Hu(i,!!o.multiple,o.multiple?[]:"",!1))}i[Zf]=o}catch(p){ht(e,e.return,p)}}break;case 6:if(ei(r,e),Pi(e),n&4){if(e.stateNode===null)throw Error(q(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(p){ht(e,e.return,p)}}break;case 3:if(ei(r,e),Pi(e),n&4&&t!==null&&t.memoizedState.isDehydrated)try{qf(r.containerInfo)}catch(p){ht(e,e.return,p)}break;case 4:ei(r,e),Pi(e);break;case 13:ei(r,e),Pi(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(tx=St())),n&4&&$O(e);break;case 22:if(c=t!==null&&t.memoizedState!==null,e.mode&1?(dr=(u=dr)||c,ei(r,e),dr=u):ei(r,e),Pi(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(ue=e,c=e.child;c!==null;){for(d=ue=c;ue!==null;){switch(f=ue,h=f.child,f.tag){case 0:case 11:case 14:case 15:xf(4,f,f.return);break;case 1:ku(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){ht(n,t,p)}}break;case 5:ku(f,f.return);break;case 22:if(f.memoizedState!==null){SO(d);continue}}h!==null?(h.return=f,ue=h):SO(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=ND("display",a))}catch(p){ht(e,e.return,p)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(p){ht(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:ei(r,e),Pi(e),n&4&&$O(e);break;case 21:break;default:ei(r,e),Pi(e)}}function Pi(e){var r=e.flags;if(r&2){try{e:{for(var t=e.return;t!==null;){if(aj(t)){var n=t;break e}t=t.return}throw Error(q(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Vf(i,""),n.flags&=-33);var o=bO(e);gS(e,o,i);break;case 3:case 4:var a=n.stateNode.containerInfo,s=bO(e);mS(e,s,a);break;default:throw Error(q(161))}}catch(l){ht(e,e.return,l)}e.flags&=-3}r&4096&&(e.flags&=-4097)}function pV(e,r,t){ue=e,uj(e)}function uj(e,r,t){for(var n=(e.mode&1)!==0;ue!==null;){var i=ue,o=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||hp;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||dr;s=hp;var u=dr;if(hp=a,(dr=l)&&!u)for(ue=i;ue!==null;)a=ue,l=a.child,a.tag===22&&a.memoizedState!==null?_O(i):l!==null?(l.return=a,ue=l):_O(i);for(;o!==null;)ue=o,uj(o),o=o.sibling;ue=i,hp=s,dr=u}wO(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ue=o):wO(e)}}function wO(e){for(;ue!==null;){var r=ue;if(r.flags&8772){var t=r.alternate;try{if(r.flags&8772)switch(r.tag){case 0:case 11:case 15:dr||$y(5,r);break;case 1:var n=r.stateNode;if(r.flags&4&&!dr)if(t===null)n.componentDidMount();else{var i=r.elementType===r.type?t.memoizedProps:ti(r.type,t.memoizedProps);n.componentDidUpdate(i,t.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=r.updateQueue;o!==null&&oO(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}oO(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&&qf(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(q(163))}dr||r.flags&512&&pS(r)}catch(f){ht(r,r.return,f)}}if(r===e){ue=null;break}if(t=r.sibling,t!==null){t.return=r.return,ue=t;break}ue=r.return}}function SO(e){for(;ue!==null;){var r=ue;if(r===e){ue=null;break}var t=r.sibling;if(t!==null){t.return=r.return,ue=t;break}ue=r.return}}function _O(e){for(;ue!==null;){var r=ue;try{switch(r.tag){case 0:case 11:case 15:var t=r.return;try{$y(4,r)}catch(l){ht(r,t,l)}break;case 1:var n=r.stateNode;if(typeof n.componentDidMount=="function"){var i=r.return;try{n.componentDidMount()}catch(l){ht(r,i,l)}}var o=r.return;try{pS(r)}catch(l){ht(r,o,l)}break;case 5:var a=r.return;try{pS(r)}catch(l){ht(r,a,l)}}}catch(l){ht(r,r.return,l)}if(r===e){ue=null;break}var s=r.sibling;if(s!==null){s.return=r.return,ue=s;break}ue=r.return}}var mV=Math.ceil,yg=zo.ReactCurrentDispatcher,ZE=zo.ReactCurrentOwner,An=zo.ReactCurrentBatchConfig,Ne=0,Vt=null,Ct=null,nr=0,ln=0,Pu=Qa(0),Ft=0,oh=null,il=0,wy=0,ex=0,Cf=null,Hr=null,tx=0,_c=1/0,uo=null,bg=!1,yS=null,Oa=null,vp=!1,ba=null,$g=0,kf=0,bS=null,Cm=-1,km=0;function Pr(){return Ne&6?St():Cm!==-1?Cm:Cm=St()}function Ta(e){return e.mode&1?Ne&2&&nr!==0?nr&-nr:ZW.transition!==null?(km===0&&(km=GD()),km):(e=We,e!==0||(e=window.event,e=e===void 0?16:eF(e.type)),e):1}function mi(e,r,t,n){if(50<kf)throw kf=0,bS=null,Error(q(185));Mh(e,t,n),(!(Ne&2)||e!==Vt)&&(e===Vt&&(!(Ne&2)&&(wy|=t),Ft===4&&la(e,nr)),Qr(e,n),t===1&&Ne===0&&!(r.mode&1)&&(_c=St()+500,gy&&Ja()))}function Qr(e,r){var t=e.callbackNode;Z7(e,r);var n=ng(e,e===Vt?nr:0);if(n===0)t!==null&&RP(t),e.callbackNode=null,e.callbackPriority=0;else if(r=n&-n,e.callbackPriority!==r){if(t!=null&&RP(t),r===1)e.tag===0?JW(EO.bind(null,e)):bF(EO.bind(null,e)),qW(function(){!(Ne&6)&&Ja()}),t=null;else{switch(qD(n)){case 1:t=kE;break;case 4:t=UD;break;case 16:t=rg;break;case 536870912:t=KD;break;default:t=rg}t=gj(t,cj.bind(null,e))}e.callbackPriority=r,e.callbackNode=t}}function cj(e,r){if(Cm=-1,km=0,Ne&6)throw Error(q(327));var t=e.callbackNode;if(Gu()&&e.callbackNode!==t)return null;var n=ng(e,e===Vt?nr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||r)r=wg(e,n);else{r=n;var i=Ne;Ne|=2;var o=fj();(Vt!==e||nr!==r)&&(uo=null,_c=St()+500,Hs(e,r));do try{bV();break}catch(s){dj(e,s)}while(!0);BE(),yg.current=o,Ne=i,Ct!==null?r=0:(Vt=null,nr=0,r=Ft)}if(r!==0){if(r===2&&(i=Kw(e),i!==0&&(n=i,r=$S(e,i))),r===1)throw t=oh,Hs(e,0),la(e,n),Qr(e,St()),t;if(r===6)la(e,n);else{if(i=e.current.alternate,!(n&30)&&!gV(i)&&(r=wg(e,n),r===2&&(o=Kw(e),o!==0&&(n=o,r=$S(e,o))),r===1))throw t=oh,Hs(e,0),la(e,n),Qr(e,St()),t;switch(e.finishedWork=i,e.finishedLanes=n,r){case 0:case 1:throw Error(q(345));case 2:ys(e,Hr,uo);break;case 3:if(la(e,n),(n&130023424)===n&&(r=tx+500-St(),10<r)){if(ng(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Pr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=eS(ys.bind(null,e,Hr,uo),r);break}ys(e,Hr,uo);break;case 4:if(la(e,n),(n&4194240)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-pi(n);o=1<<a,a=r[a],a>i&&(i=a),n&=~o}if(n=i,n=St()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*mV(n/1960))-n,10<n){e.timeoutHandle=eS(ys.bind(null,e,Hr,uo),n);break}ys(e,Hr,uo);break;case 5:ys(e,Hr,uo);break;default:throw Error(q(329))}}}return Qr(e,St()),e.callbackNode===t?cj.bind(null,e):null}function $S(e,r){var t=Cf;return e.current.memoizedState.isDehydrated&&(Hs(e,r).flags|=256),e=wg(e,r),e!==2&&(r=Hr,Hr=t,r!==null&&wS(r)),e}function wS(e){Hr===null?Hr=e:Hr.push.apply(Hr,e)}function gV(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(!yi(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 la(e,r){for(r&=~ex,r&=~wy,e.suspendedLanes|=r,e.pingedLanes&=~r,e=e.expirationTimes;0<r;){var t=31-pi(r),n=1<<t;e[t]=-1,r&=~n}}function EO(e){if(Ne&6)throw Error(q(327));Gu();var r=ng(e,0);if(!(r&1))return Qr(e,St()),null;var t=wg(e,r);if(e.tag!==0&&t===2){var n=Kw(e);n!==0&&(r=n,t=$S(e,n))}if(t===1)throw t=oh,Hs(e,0),la(e,r),Qr(e,St()),t;if(t===6)throw Error(q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=r,ys(e,Hr,uo),Qr(e,St()),null}function rx(e,r){var t=Ne;Ne|=1;try{return e(r)}finally{Ne=t,Ne===0&&(_c=St()+500,gy&&Ja())}}function ol(e){ba!==null&&ba.tag===0&&!(Ne&6)&&Gu();var r=Ne;Ne|=1;var t=An.transition,n=We;try{if(An.transition=null,We=1,e)return e()}finally{We=n,An.transition=t,Ne=r,!(Ne&6)&&Ja()}}function nx(){ln=Pu.current,nt(Pu)}function Hs(e,r){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(t!==-1&&(e.timeoutHandle=-1,GW(t)),Ct!==null)for(t=Ct.return;t!==null;){var n=t;switch(FE(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&lg();break;case 3:wc(),nt(Yr),nt(vr),KE();break;case 5:UE(n);break;case 4:wc();break;case 13:nt(lt);break;case 19:nt(lt);break;case 10:zE(n.type._context);break;case 22:case 23:nx()}t=t.return}if(Vt=e,Ct=e=Ia(e.current,null),nr=ln=r,Ft=0,oh=null,ex=wy=il=0,Hr=Cf=null,ks!==null){for(r=0;r<ks.length;r++)if(t=ks[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}ks=null}return e}function dj(e,r){do{var t=Ct;try{if(BE(),_m.current=gg,mg){for(var n=ut.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}mg=!1}if(nl=0,zt=At=ut=null,Ef=!1,rh=0,ZE.current=null,t===null||t.return===null){Ft=1,oh=r,Ct=null;break}e:{var o=e,a=t.return,s=t,l=r;if(r=nr,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=dO(a);if(h!==null){h.flags&=-257,fO(h,a,s,o,r),h.mode&1&&cO(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)){cO(o,u,r),ix();break e}l=Error(q(426))}}else if(ot&&s.mode&1){var $=dO(a);if($!==null){!($.flags&65536)&&($.flags|=256),fO($,a,s,o,r),jE(Sc(l,s));break e}}o=l=Sc(l,s),Ft!==4&&(Ft=2),Cf===null?Cf=[o]:Cf.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,r&=-r,o.lanes|=r;var m=qF(o,l,r);iO(o,m);break e;case 1:s=l;var g=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Oa===null||!Oa.has(y)))){o.flags|=65536,r&=-r,o.lanes|=r;var w=YF(o,s,r);iO(o,w);break e}}o=o.return}while(o!==null)}vj(t)}catch(S){r=S,Ct===t&&t!==null&&(Ct=t=t.return);continue}break}while(!0)}function fj(){var e=yg.current;return yg.current=gg,e===null?gg:e}function ix(){(Ft===0||Ft===3||Ft===2)&&(Ft=4),Vt===null||!(il&268435455)&&!(wy&268435455)||la(Vt,nr)}function wg(e,r){var t=Ne;Ne|=2;var n=fj();(Vt!==e||nr!==r)&&(uo=null,Hs(e,r));do try{yV();break}catch(i){dj(e,i)}while(!0);if(BE(),Ne=t,yg.current=n,Ct!==null)throw Error(q(261));return Vt=null,nr=0,Ft}function yV(){for(;Ct!==null;)hj(Ct)}function bV(){for(;Ct!==null&&!V7();)hj(Ct)}function hj(e){var r=mj(e.alternate,e,ln);e.memoizedProps=e.pendingProps,r===null?vj(e):Ct=r,ZE.current=null}function vj(e){var r=e;do{var t=r.alternate;if(e=r.return,r.flags&32768){if(t=fV(t,r),t!==null){t.flags&=32767,Ct=t;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ft=6,Ct=null;return}}else if(t=dV(t,r,ln),t!==null){Ct=t;return}if(r=r.sibling,r!==null){Ct=r;return}Ct=r=e}while(r!==null);Ft===0&&(Ft=5)}function ys(e,r,t){var n=We,i=An.transition;try{An.transition=null,We=1,$V(e,r,t,n)}finally{An.transition=i,We=n}return null}function $V(e,r,t,n){do Gu();while(ba!==null);if(Ne&6)throw Error(q(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(q(177));e.callbackNode=null,e.callbackPriority=0;var o=t.lanes|t.childLanes;if(eW(e,o),e===Vt&&(Ct=Vt=null,nr=0),!(t.subtreeFlags&2064)&&!(t.flags&2064)||vp||(vp=!0,gj(rg,function(){return Gu(),null})),o=(t.flags&15990)!==0,t.subtreeFlags&15990||o){o=An.transition,An.transition=null;var a=We;We=1;var s=Ne;Ne|=4,ZE.current=null,vV(e,t),lj(t,e),BW(Jw),ig=!!Qw,Jw=Qw=null,e.current=t,pV(t),U7(),Ne=s,We=a,An.transition=o}else e.current=t;if(vp&&(vp=!1,ba=e,$g=i),o=e.pendingLanes,o===0&&(Oa=null),q7(t.stateNode),Qr(e,St()),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(bg)throw bg=!1,e=yS,yS=null,e;return $g&1&&e.tag!==0&&Gu(),o=e.pendingLanes,o&1?e===bS?kf++:(kf=0,bS=e):kf=0,Ja(),null}function Gu(){if(ba!==null){var e=qD($g),r=An.transition,t=We;try{if(An.transition=null,We=16>e?16:e,ba===null)var n=!1;else{if(e=ba,ba=null,$g=0,Ne&6)throw Error(q(331));var i=Ne;for(Ne|=4,ue=e.current;ue!==null;){var o=ue,a=o.child;if(ue.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(ue=u;ue!==null;){var c=ue;switch(c.tag){case 0:case 11:case 15:xf(8,c,o)}var d=c.child;if(d!==null)d.return=c,ue=d;else for(;ue!==null;){c=ue;var f=c.sibling,h=c.return;if(oj(c),c===u){ue=null;break}if(f!==null){f.return=h,ue=f;break}ue=h}}}var v=o.alternate;if(v!==null){var p=v.child;if(p!==null){v.child=null;do{var $=p.sibling;p.sibling=null,p=$}while(p!==null)}}ue=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,ue=a;else e:for(;ue!==null;){if(o=ue,o.flags&2048)switch(o.tag){case 0:case 11:case 15:xf(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,ue=m;break e}ue=o.return}}var g=e.current;for(ue=g;ue!==null;){a=ue;var y=a.child;if(a.subtreeFlags&2064&&y!==null)y.return=a,ue=y;else e:for(a=g;ue!==null;){if(s=ue,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:$y(9,s)}}catch(S){ht(s,s.return,S)}if(s===a){ue=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,ue=w;break e}ue=s.return}}if(Ne=i,Ja(),Ui&&typeof Ui.onPostCommitFiberRoot=="function")try{Ui.onPostCommitFiberRoot(fy,e)}catch{}n=!0}return n}finally{We=t,An.transition=r}}return!1}function xO(e,r,t){r=Sc(t,r),r=qF(e,r,1),e=Pa(e,r,1),r=Pr(),e!==null&&(Mh(e,1,r),Qr(e,r))}function ht(e,r,t){if(e.tag===3)xO(e,e,t);else for(;r!==null;){if(r.tag===3){xO(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Oa===null||!Oa.has(n))){e=Sc(t,e),e=YF(r,e,1),r=Pa(r,e,1),e=Pr(),r!==null&&(Mh(r,1,e),Qr(r,e));break}}r=r.return}}function wV(e,r,t){var n=e.pingCache;n!==null&&n.delete(r),r=Pr(),e.pingedLanes|=e.suspendedLanes&t,Vt===e&&(nr&t)===t&&(Ft===4||Ft===3&&(nr&130023424)===nr&&500>St()-tx?Hs(e,0):ex|=t),Qr(e,r)}function pj(e,r){r===0&&(e.mode&1?(r=ip,ip<<=1,!(ip&130023424)&&(ip=4194304)):r=1);var t=Pr();e=Io(e,r),e!==null&&(Mh(e,r,t),Qr(e,t))}function SV(e){var r=e.memoizedState,t=0;r!==null&&(t=r.retryLane),pj(e,t)}function _V(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(q(314))}n!==null&&n.delete(r),pj(e,t)}var mj;mj=function(e,r,t){if(e!==null)if(e.memoizedProps!==r.pendingProps||Yr.current)Gr=!0;else{if(!(e.lanes&t)&&!(r.flags&128))return Gr=!1,cV(e,r,t);Gr=!!(e.flags&131072)}else Gr=!1,ot&&r.flags&1048576&&$F(r,dg,r.index);switch(r.lanes=0,r.tag){case 2:var n=r.type;xm(e,r),e=r.pendingProps;var i=yc(r,vr.current);Ku(r,t),i=qE(null,r,n,e,i,t);var o=YE();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,ug(r)):o=!1,r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,WE(r),i.updater=by,r.stateNode=i,i._reactInternals=r,sS(r,n,e,t),r=cS(null,r,n,!0,o,t)):(r.tag=0,ot&&o&&DE(r),_r(null,r,i,t),r=r.child),r;case 16:n=r.elementType;e:{switch(xm(e,r),e=r.pendingProps,i=n._init,n=i(n._payload),r.type=n,i=r.tag=xV(n),e=ti(n,e),i){case 0:r=uS(null,r,n,e,t);break e;case 1:r=pO(null,r,n,e,t);break e;case 11:r=hO(null,r,n,e,t);break e;case 14:r=vO(null,r,n,ti(n.type,e),t);break e}throw Error(q(306,n,""))}return r;case 0:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:ti(n,i),uS(e,r,n,i,t);case 1:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:ti(n,i),pO(e,r,n,i,t);case 3:e:{if(ZF(r),e===null)throw Error(q(387));n=r.pendingProps,o=r.memoizedState,i=o.element,CF(e,r),vg(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=Sc(Error(q(423)),r),r=mO(e,r,n,t,i);break e}else if(n!==i){i=Sc(Error(q(424)),r),r=mO(e,r,n,t,i);break e}else for(cn=ka(r.stateNode.containerInfo.firstChild),fn=r,ot=!0,oi=null,t=EF(r,null,n,t),r.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(bc(),n===i){r=Ro(e,r,t);break e}_r(e,r,n,t)}r=r.child}return r;case 5:return kF(r),e===null&&iS(r),n=r.type,i=r.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Zw(n,i)?a=null:o!==null&&Zw(n,o)&&(r.flags|=32),JF(e,r),_r(e,r,a,t),r.child;case 6:return e===null&&iS(r),null;case 13:return ej(e,r,t);case 4:return VE(r,r.stateNode.containerInfo),n=r.pendingProps,e===null?r.child=$c(r,null,n,t):_r(e,r,n,t),r.child;case 11:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:ti(n,i),hO(e,r,n,i,t);case 7:return _r(e,r,r.pendingProps,t),r.child;case 8:return _r(e,r,r.pendingProps.children,t),r.child;case 12:return _r(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,et(fg,n._currentValue),n._currentValue=a,o!==null)if(yi(o.value,a)){if(o.children===i.children&&!Yr.current){r=Ro(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=go(-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),oS(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(q(341));a.lanes|=t,s=a.alternate,s!==null&&(s.lanes|=t),oS(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}_r(e,r,i.children,t),r=r.child}return r;case 9:return i=r.type,n=r.pendingProps.children,Ku(r,t),i=Ln(i),n=n(i),r.flags|=1,_r(e,r,n,t),r.child;case 14:return n=r.type,i=ti(n,r.pendingProps),i=ti(n.type,i),vO(e,r,n,i,t);case 15:return XF(e,r,r.type,r.pendingProps,t);case 17:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:ti(n,i),xm(e,r),r.tag=1,Xr(n)?(e=!0,ug(r)):e=!1,Ku(r,t),GF(r,n,i),sS(r,n,i,t),cS(null,r,n,!0,e,t);case 19:return tj(e,r,t);case 22:return QF(e,r,t)}throw Error(q(156,r.tag))};function gj(e,r){return VD(e,r)}function EV(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 Nn(e,r,t,n){return new EV(e,r,t,n)}function ox(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xV(e){if(typeof e=="function")return ox(e)?1:0;if(e!=null){if(e=e.$$typeof,e===EE)return 11;if(e===xE)return 14}return 2}function Ia(e,r){var t=e.alternate;return t===null?(t=Nn(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 Pm(e,r,t,n,i,o){var a=2;if(n=e,typeof e=="function")ox(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case yu:return Ws(t.children,i,o,r);case _E:a=8,i|=8;break;case Iw:return e=Nn(12,t,r,i|2),e.elementType=Iw,e.lanes=o,e;case Rw:return e=Nn(13,t,r,i),e.elementType=Rw,e.lanes=o,e;case Mw:return e=Nn(19,t,r,i),e.elementType=Mw,e.lanes=o,e;case kD:return Sy(t,i,o,r);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xD:a=10;break e;case CD:a=9;break e;case EE:a=11;break e;case xE:a=14;break e;case ra:a=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return r=Nn(a,t,r,i),r.elementType=e,r.type=n,r.lanes=o,r}function Ws(e,r,t,n){return e=Nn(7,e,n,r),e.lanes=t,e}function Sy(e,r,t,n){return e=Nn(22,e,n,r),e.elementType=kD,e.lanes=t,e.stateNode={isHidden:!1},e}function z1(e,r,t){return e=Nn(6,e,null,r),e.lanes=t,e}function H1(e,r,t){return r=Nn(4,e.children!==null?e.children:[],e.key,r),r.lanes=t,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function CV(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=S1(0),this.expirationTimes=S1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=S1(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ax(e,r,t,n,i,o,a,s,l){return e=new CV(e,r,t,s,l),r===1?(r=1,o===!0&&(r|=8)):r=0,o=Nn(3,null,null,r),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},WE(o),e}function kV(e,r,t){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gu,key:n==null?null:""+n,children:e,containerInfo:r,implementation:t}}function yj(e){if(!e)return za;e=e._reactInternals;e:{if(wl(e)!==e||e.tag!==1)throw Error(q(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(q(171))}if(e.tag===1){var t=e.type;if(Xr(t))return yF(e,t,r)}return r}function bj(e,r,t,n,i,o,a,s,l){return e=ax(t,n,!0,e,i,o,a,s,l),e.context=yj(null),t=e.current,n=Pr(),i=Ta(t),o=go(n,i),o.callback=r??null,Pa(t,o,i),e.current.lanes=i,Mh(e,i,n),Qr(e,n),e}function _y(e,r,t,n){var i=r.current,o=Pr(),a=Ta(i);return t=yj(t),r.context===null?r.context=t:r.pendingContext=t,r=go(o,a),r.payload={element:e},n=n===void 0?null:n,n!==null&&(r.callback=n),e=Pa(i,r,a),e!==null&&(mi(e,i,a,o),Sm(e,i,a)),a}function Sg(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 CO(e,r){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<r?t:r}}function sx(e,r){CO(e,r),(e=e.alternate)&&CO(e,r)}function PV(){return null}var $j=typeof reportError=="function"?reportError:function(e){console.error(e)};function lx(e){this._internalRoot=e}Ey.prototype.render=lx.prototype.render=function(e){var r=this._internalRoot;if(r===null)throw Error(q(409));_y(e,r,null,null)};Ey.prototype.unmount=lx.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var r=e.containerInfo;ol(function(){_y(null,e,null,null)}),r[To]=null}};function Ey(e){this._internalRoot=e}Ey.prototype.unstable_scheduleHydration=function(e){if(e){var r=QD();e={blockedOn:null,target:e,priority:r};for(var t=0;t<sa.length&&r!==0&&r<sa[t].priority;t++);sa.splice(t,0,e),t===0&&ZD(e)}};function ux(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kO(){}function OV(e,r,t,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var u=Sg(a);o.call(u)}}var a=bj(r,n,e,0,null,!1,!1,"",kO);return e._reactRootContainer=a,e[To]=a.current,Qf(e.nodeType===8?e.parentNode:e),ol(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=Sg(l);s.call(u)}}var l=ax(e,0,!1,null,null,!1,!1,"",kO);return e._reactRootContainer=l,e[To]=l.current,Qf(e.nodeType===8?e.parentNode:e),ol(function(){_y(r,l,t,n)}),l}function Cy(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=Sg(a);s.call(l)}}_y(r,a,e,i)}else a=OV(t,r,e,i,n);return Sg(a)}YD=function(e){switch(e.tag){case 3:var r=e.stateNode;if(r.current.memoizedState.isDehydrated){var t=lf(r.pendingLanes);t!==0&&(PE(r,t|1),Qr(r,St()),!(Ne&6)&&(_c=St()+500,Ja()))}break;case 13:ol(function(){var n=Io(e,1);if(n!==null){var i=Pr();mi(n,e,1,i)}}),sx(e,1)}};OE=function(e){if(e.tag===13){var r=Io(e,134217728);if(r!==null){var t=Pr();mi(r,e,134217728,t)}sx(e,134217728)}};XD=function(e){if(e.tag===13){var r=Ta(e),t=Io(e,r);if(t!==null){var n=Pr();mi(t,e,r,n)}sx(e,r)}};QD=function(){return We};JD=function(e,r){var t=We;try{return We=e,r()}finally{We=t}};Ww=function(e,r,t){switch(r){case"input":if(Dw(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=my(n);if(!i)throw Error(q(90));OD(n),Dw(n,i)}}}break;case"textarea":ID(e,t);break;case"select":r=t.value,r!=null&&Hu(e,!!t.multiple,r,!1)}};jD=rx;LD=ol;var TV={usingClientEntryPoint:!1,Events:[Ah,Su,my,DD,FD,rx]},Kd={findFiberByHostInstance:Cs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},IV={bundleType:Kd.bundleType,version:Kd.version,rendererPackageName:Kd.rendererPackageName,rendererConfig:Kd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=HD(e),e===null?null:e.stateNode},findFiberByHostInstance:Kd.findFiberByHostInstance||PV,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 pp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pp.isDisabled&&pp.supportsFiber)try{fy=pp.inject(IV),Ui=pp}catch{}}mn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=TV;mn.createPortal=function(e,r){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ux(r))throw Error(q(200));return kV(e,r,null,t)};mn.createRoot=function(e,r){if(!ux(e))throw Error(q(299));var t=!1,n="",i=$j;return r!=null&&(r.unstable_strictMode===!0&&(t=!0),r.identifierPrefix!==void 0&&(n=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),r=ax(e,1,!1,null,null,t,!1,n,i),e[To]=r.current,Qf(e.nodeType===8?e.parentNode:e),new lx(r)};mn.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(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=HD(r),e=e===null?null:e.stateNode,e};mn.flushSync=function(e){return ol(e)};mn.hydrate=function(e,r,t){if(!xy(r))throw Error(q(200));return Cy(null,e,r,!0,t)};mn.hydrateRoot=function(e,r,t){if(!ux(e))throw Error(q(405));var n=t!=null&&t.hydratedSources||null,i=!1,o="",a=$j;if(t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),r=bj(r,null,e,1,t??null,i,!1,o,a),e[To]=r.current,Qf(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 Ey(r)};mn.render=function(e,r,t){if(!xy(r))throw Error(q(200));return Cy(null,e,r,!1,t)};mn.unmountComponentAtNode=function(e){if(!xy(e))throw Error(q(40));return e._reactRootContainer?(ol(function(){Cy(null,null,e,!1,function(){e._reactRootContainer=null,e[To]=null})}),!0):!1};mn.unstable_batchedUpdates=rx;mn.unstable_renderSubtreeIntoContainer=function(e,r,t,n){if(!xy(t))throw Error(q(200));if(e==null||e._reactInternals===void 0)throw Error(q(38));return Cy(e,r,t,!1,n)};mn.version="18.3.1-next-f1338f8080-20240426";function wj(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wj)}catch(e){console.error(e)}}wj(),wD.exports=mn;var Fh=wD.exports;const cf=uD(Fh);var PO=Fh;Ow.createRoot=PO.createRoot,Ow.hydrateRoot=PO.hydrateRoot;var RV="Invariant failed";function di(e,r){if(!e)throw new Error(RV)}function qu(e){const r=e.resolvedLocation,t=e.location,n=(r==null?void 0:r.pathname)!==t.pathname,i=(r==null?void 0:r.href)!==t.href,o=(r==null?void 0:r.hash)!==t.hash;return{fromLocation:r,toLocation:t,pathChanged:n,hrefChanged:i,hashChanged:o}}function Pf(e){return e[e.length-1]}function MV(e){return typeof e=="function"}function df(e,r){return MV(e)?e(r):e}function SS(e,r){return r.reduce((t,n)=>(t[n]=e[n],t),{})}function Cn(e,r){if(e===r)return e;const t=r,n=TO(e)&&TO(t);if(n||_g(e)&&_g(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]=Cn(e[d],t[d]),l[d]===e[d]&&e[d]!==void 0&&u++)}return o===s&&u===o?e:l}return t}function _g(e){if(!OO(e))return!1;const r=e.constructor;if(typeof r>"u")return!0;const t=r.prototype;return!(!OO(t)||!t.hasOwnProperty("isPrototypeOf"))}function OO(e){return Object.prototype.toString.call(e)==="[object Object]"}function TO(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function IO(e,r){let t=Object.keys(e);return r&&(t=t.filter(n=>e[n]!==void 0)),t}function Of(e,r,t){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(_g(e)&&_g(r)){const n=(t==null?void 0:t.ignoreUndefined)??!0,i=IO(e,n),o=IO(r,n);return!(t!=null&&t.partial)&&i.length!==o.length?!1:o.every(a=>Of(e[a],r[a],t))}return Array.isArray(e)&&Array.isArray(r)?e.length!==r.length?!1:!e.some((n,i)=>!Of(n,r[i],t)):!1}function vu(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 NV(e){return/%[0-9A-Fa-f]{2}/.test(e)}function yo(e){return ky(e.filter(r=>r!==void 0).join("/"))}function ky(e){return e.replace(/\/{2,}/g,"/")}function cx(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Os(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function AV(e){return Os(cx(e))}function DV({basepath:e,base:r,to:t,trailingSlash:n="never",caseSensitive:i}){var o,a;r=Eg(e,r,i),t=Eg(e,t,i);let s=Ec(r);const l=Ec(t);s.length>1&&((o=Pf(s))==null?void 0:o.value)==="/"&&s.pop(),l.forEach((c,d)=>{c.value==="/"?d?d===l.length-1&&s.push(c):s=[c]:c.value===".."?s.pop():c.value==="."||s.push(c)}),s.length>1&&(((a=Pf(s))==null?void 0:a.value)==="/"?n==="never"&&s.pop():n==="always"&&s.push({type:"pathname",value:"/"}));const u=yo([e,...s.map(c=>c.value)]);return ky(u)}function Ec(e){if(!e)return[];e=ky(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 mp({path:e,params:r,leaveWildcards:t,leaveParams:n,decodeCharMap:i}){const o=Ec(e);function a(u){const c=r[u],d=typeof c=="string";return["*","_splat"].includes(u)?d?encodeURI(c):c:d?FV(c,i):c}const s={},l=yo(o.map(u=>{if(u.type==="wildcard"){s._splat=r._splat;const c=a("_splat");return t?`${u.value}${c??""}`:c}if(u.type==="param"){const c=u.value.substring(1);if(s[c]=r[c],n){const d=a(u.value);return`${u.value}${d??""}`}return a(c)??"undefined"}return u.value}));return{usedParams:s,interpolatedPath:l}}function FV(e,r){let t=encodeURIComponent(e);if(r)for(const[n,i]of r)t=t.replaceAll(n,i);return t}function gp(e,r,t){const n=jV(e,r,t);if(!(t.to&&!n))return n??{}}function Eg(e,r,t=!1){const n=t?e:e.toLowerCase(),i=t?r:r.toLowerCase();switch(!0){case n==="/":return r;case i===n:return"";case r.length<e.length:return r;case i[n.length]!=="/":return r;case i.startsWith(n):return r.slice(e.length);default:return r}}function jV(e,r,t){if(e!=="/"&&!r.startsWith(e))return;r=Eg(e,r,t.caseSensitive);const n=Eg(e,`${t.to??"$"}`,t.caseSensitive),i=Ec(r),o=Ec(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(yo(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["**"]=yo(i.slice(l+1).map(h=>h.value)),!!t.fuzzy&&(c==null?void 0:c.value)!=="/"}return!0})()?a:void 0}function LV(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 RO(e){if(!e)return"";const r=NV(e)?decodeURIComponent(e):decodeURIComponent(encodeURIComponent(e));return r==="false"?!1:r==="true"?!0:+r*0===0&&+r+""===r?+r:r}function BV(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],RO(s)):i[n]=RO(s)}else n=t,n=decodeURIComponent(n),i[n]=""}return i}const Br="__root__",zV=WV(JSON.parse),HV=VV(JSON.stringify,JSON.parse);function WV(e){return r=>{r.substring(0,1)==="?"&&(r=r.substring(1));const t=BV(r);for(const n in t){const i=t[n];if(typeof i=="string")try{t[n]=e(i)}catch{}}return t}}function VV(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=LV(n).toString();return i?`?${i}`:""}}const Ra="__TSR_index",MO="popstate",NO="beforeunload";function Sj(e){let r=e.getLocation();const t=new Set,n=a=>{r=e.getLocation(),t.forEach(s=>s({location:r,action:a}))},i=a=>{e.notifyOnIndexChange??!0?n(a):r=e.getLocation()},o=async({task:a,navigateOpts:s,...l})=>{var u,c;if((s==null?void 0:s.ignoreBlocker)??!1){a();return}const f=((u=e.getBlockers)==null?void 0:u.call(e))??[],h=l.type==="PUSH"||l.type==="REPLACE";if(typeof document<"u"&&f.length&&h)for(const v of f){const p=ah(l.path,l.state);if(await v.blockerFn({currentLocation:r,nextLocation:p,action:l.type})){(c=e.onBlocked)==null||c.call(e);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)=>{const u=r.state[Ra];s=_S(u+1,s),o({task:()=>{e.pushState(a,s),n({type:"PUSH"})},navigateOpts:l,type:"PUSH",path:a,state:s})},replace:(a,s,l)=>{const u=r.state[Ra];s=_S(u,s),o({task:()=>{e.replaceState(a,s),n({type:"REPLACE"})},navigateOpts:l,type:"REPLACE",path:a,state:s})},go:(a,s)=>{o({task:()=>{e.go(a),i({type:"GO",index:a})},navigateOpts:s,type:"GO"})},back:a=>{o({task:()=>{e.back((a==null?void 0:a.ignoreBlocker)??!1),i({type:"BACK"})},navigateOpts:a,type:"BACK"})},forward:a=>{o({task:()=>{e.forward((a==null?void 0:a.ignoreBlocker)??!1),i({type:"FORWARD"})},navigateOpts:a,type:"FORWARD"})},canGoBack:()=>r.state[Ra]!==0,createHref:a=>e.createHref(a),block:a=>{var s;if(!e.setBlockers)return()=>{};const l=((s=e.getBlockers)==null?void 0:s.call(e))??[];return e.setBlockers([...l,a]),()=>{var u,c;const d=((u=e.getBlockers)==null?void 0:u.call(e))??[];(c=e.setBlockers)==null||c.call(e,d.filter(f=>f!==a))}},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:n}}function _S(e,r){return r||(r={}),{...r,key:dx(),[Ra]:e}}function UV(e){var r;const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let o=[];const a=()=>o,s=k=>o=k,l=k=>k,u=()=>ah(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state);(r=t.history.state)!=null&&r.key||t.history.replaceState({[Ra]:0,key:dx()},"");let c=u(),d,f=!1,h=!1,v=!1,p=!1;const $=()=>c;let m,g;const y=()=>{m&&(C._ignoreSubscribers=!0,(m.isPush?t.history.pushState:t.history.replaceState)(m.state,"",m.href),C._ignoreSubscribers=!1,m=void 0,g=void 0,d=void 0)},w=(k,P,T)=>{const R=l(P);g||(d=c),c=ah(P,T),m={href:R,state:T,isPush:(m==null?void 0:m.isPush)||k==="push"},g||(g=Promise.resolve().then(()=>y()))},S=k=>{c=u(),C.notify({type:k})},E=async()=>{if(h){h=!1;return}const k=u(),P=k.state[Ra]-c.state[Ra],T=P===1,R=P===-1,N=!T&&!R||f;f=!1;const F=N?"GO":R?"BACK":"FORWARD",W=N?{type:"GO",index:P}:{type:R?"BACK":"FORWARD"};if(v)v=!1;else{const M=a();if(typeof document<"u"&&M.length){for(const j of M)if(await j.blockerFn({currentLocation:c,nextLocation:k,action:F})){h=!0,t.history.go(1),C.notify(W);return}}}c=u(),C.notify(W)},x=k=>{if(p){p=!1;return}let P=!1;const T=a();if(typeof document<"u"&&T.length)for(const R of T){const N=R.enableBeforeUnload??!0;if(N===!0){P=!0;break}if(typeof N=="function"&&N()===!0){P=!0;break}}if(P)return k.preventDefault(),k.returnValue=""},C=Sj({getLocation:$,getLength:()=>t.history.length,pushState:(k,P)=>w("push",k,P),replaceState:(k,P)=>w("replace",k,P),back:k=>(k&&(v=!0),p=!0,t.history.back()),forward:k=>{k&&(v=!0),p=!0,t.history.forward()},go:k=>{f=!0,t.history.go(k)},createHref:k=>l(k),flush:y,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(NO,x,{capture:!0}),t.removeEventListener(MO,E)},onBlocked:()=>{d&&c!==d&&(c=d)},getBlockers:a,setBlockers:s,notifyOnIndexChange:!1});return t.addEventListener(NO,x,{capture:!0}),t.addEventListener(MO,E),t.history.pushState=function(...k){const P=n.apply(t.history,k);return C._ignoreSubscribers||S("PUSH"),P},t.history.replaceState=function(...k){const P=i.apply(t.history,k);return C._ignoreSubscribers||S("REPLACE"),P},C}function KV(e={initialEntries:["/"]}){const r=e.initialEntries;let t=e.initialIndex?Math.min(Math.max(e.initialIndex,0),r.length-1):r.length-1;const n=r.map((o,a)=>_S(a,void 0));return Sj({getLocation:()=>ah(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 ah(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||{[Ra]:0,key:dx()}}}function dx(){return(Math.random()+1).toString(36).substring(7)}function fx(e){const r=e.errorComponent??Py;return b.jsx(GV,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:t,reset:n})=>t?_.createElement(r,{error:t,reset:n}):e.children})}class GV 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 Py({error:e}){const[r,t]=_.useState(!1);return b.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[b.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),b.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"})]}),b.jsx("div",{style:{height:".25rem"}}),r?b.jsx("div",{children:b.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?b.jsx("code",{children:e.message}):null})}):null]})}var _j={exports:{}},Ej={},xj={exports:{}},Cj={};/**
|
41
|
+
* @license React
|
42
|
+
* use-sync-external-store-shim.production.js
|
43
|
+
*
|
44
|
+
* Copyright (c) Meta Platforms, Inc. and 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 xc=_;function qV(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var YV=typeof Object.is=="function"?Object.is:qV,XV=xc.useState,QV=xc.useEffect,JV=xc.useLayoutEffect,ZV=xc.useDebugValue;function eU(e,r){var t=r(),n=XV({inst:{value:t,getSnapshot:r}}),i=n[0].inst,o=n[1];return JV(function(){i.value=t,i.getSnapshot=r,W1(i)&&o({inst:i})},[e,t,r]),QV(function(){return W1(i)&&o({inst:i}),e(function(){W1(i)&&o({inst:i})})},[e]),ZV(t),t}function W1(e){var r=e.getSnapshot;e=e.value;try{var t=r();return!YV(e,t)}catch{return!0}}function tU(e,r){return r()}var rU=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tU:eU;Cj.useSyncExternalStore=xc.useSyncExternalStore!==void 0?xc.useSyncExternalStore:rU;xj.exports=Cj;var nU=xj.exports;/**
|
49
|
+
* @license React
|
50
|
+
* use-sync-external-store-shim/with-selector.production.js
|
51
|
+
*
|
52
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Oy=_,iU=nU;function oU(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var aU=typeof Object.is=="function"?Object.is:oU,sU=iU.useSyncExternalStore,lU=Oy.useRef,uU=Oy.useEffect,cU=Oy.useMemo,dU=Oy.useDebugValue;Ej.useSyncExternalStoreWithSelector=function(e,r,t,n,i){var o=lU(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=cU(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,aU(c,h))return v;var p=n(h);return i!==void 0&&i(v,p)?(c=h,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=sU(e,o[0],o[1]);return uU(function(){a.hasValue=!0,a.value=s},[s]),dU(s),s};_j.exports=Ej;var fU=_j.exports;const Yu=new WeakMap,Om=new WeakMap,xg={current:[]};let V1=!1,Tf=0;const ff=new Set,yp=new Map;function kj(e){const r=Array.from(e).sort((t,n)=>t instanceof Xu&&t.options.deps.includes(n)?1:n instanceof Xu&&n.options.deps.includes(t)?-1:0);for(const t of r){if(xg.current.includes(t))continue;xg.current.push(t),t.recompute();const n=Om.get(t);if(n)for(const i of n){const o=Yu.get(i);o&&kj(o)}}}function hU(e){e.listeners.forEach(r=>r({prevVal:e.prevState,currentVal:e.state}))}function vU(e){e.listeners.forEach(r=>r({prevVal:e.prevState,currentVal:e.state}))}function Pj(e){if(Tf>0&&!yp.has(e)&&yp.set(e,e.prevState),ff.add(e),!(Tf>0)&&!V1)try{for(V1=!0;ff.size>0;){const r=Array.from(ff);ff.clear();for(const t of r){const n=yp.get(t)??t.prevState;t.prevState=n,hU(t)}for(const t of r){const n=Yu.get(t);n&&(xg.current.push(t),kj(n))}for(const t of r){const n=Yu.get(t);if(n)for(const i of n)vU(i)}}}finally{V1=!1,xg.current=[],yp.clear()}}function U1(e){Tf++;try{e()}finally{if(Tf--,Tf===0){const r=Array.from(ff)[0];r&&Pj(r)}}}class ES{constructor(r,t){this.listeners=new Set,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;this.prevState=this.state,this.state=(i=this.options)!=null&&i.updateFn?this.options.updateFn(this.prevState)(n):n(this.prevState),(a=(o=this.options)==null?void 0:o.onUpdate)==null||a.call(o),Pj(this)},this.prevState=r,this.state=r,this.options=t}}class Xu{constructor(r){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const t=[],n=[];for(const i of this.options.deps)t.push(i.prevState),n.push(i.state);return this.lastSeenDepValues=n,{prevDepVals:t,currDepVals:n,prevVal:this.prevState??void 0}},this.recompute=()=>{var t,n;this.prevState=this.state;const{prevDepVals:i,currDepVals:o,prevVal:a}=this.getDepVals();this.state=this.options.fn({prevDepVals:i,currDepVals:o,prevVal:a}),(n=(t=this.options).onUpdate)==null||n.call(t)},this.checkIfRecalculationNeededDeeply=()=>{for(const o of this.options.deps)o instanceof Xu&&o.checkIfRecalculationNeededDeeply();let t=!1;const n=this.lastSeenDepValues,{currDepVals:i}=this.getDepVals();for(let o=0;o<i.length;o++)if(i[o]!==n[o]){t=!0;break}t&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const t of this._subscriptions)t()}),this.subscribe=t=>{var n,i;this.listeners.add(t);const o=(i=(n=this.options).onSubscribe)==null?void 0:i.call(n,t,this);return()=>{this.listeners.delete(t),o==null||o()}},this.options=r,this.state=r.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(r=this.options.deps){for(const t of r)if(t instanceof Xu)t.registerOnGraph(),this.registerOnGraph(t.options.deps);else if(t instanceof ES){let n=Yu.get(t);n||(n=new Set,Yu.set(t,n)),n.add(this);let i=Om.get(this);i||(i=new Set,Om.set(this,i)),i.add(t)}}unregisterFromGraph(r=this.options.deps){for(const t of r)if(t instanceof Xu)this.unregisterFromGraph(t.options.deps);else if(t instanceof ES){const n=Yu.get(t);n&&n.delete(this);const i=Om.get(this);i&&i.delete(t)}}}function pU(e,r=t=>t){return fU.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,r,mU)}function mU(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[n,i]of e)if(!r.has(n)||!Object.is(i,r.get(n)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}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 K1=_.createContext(null);function Oj(){return typeof document>"u"?K1:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=K1,K1)}function Ho(e){const r=_.useContext(Oj());return e==null||e.warn,r}function hn(e){const r=Ho({warn:(e==null?void 0:e.router)===void 0}),t=(e==null?void 0:e.router)||r,n=_.useRef(void 0);return pU(t.__store,i=>{if(e!=null&&e.select){if(e.structuralSharing??t.options.defaultStructuralSharing){const o=Cn(n.current,e.select(i));return n.current=o,o}return e.select(i)}return i})}const Ty=_.createContext(void 0),gU=_.createContext(void 0);function Cc(e){const r=_.useContext(e.from?gU:Ty);return hn({select:n=>{const i=n.matches.find(o=>e.from?e.from===o.routeId:o.id===r);if(di(!((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},structuralSharing:e.structuralSharing})}function yU(e){return Cc({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:r=>e.select?e.select(r.loaderData):r.loaderData})}function bU(e){const{select:r,...t}=e;return Cc({...t,select:n=>r?r(n.loaderDeps):n.loaderDeps})}function $U(e){return Cc({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:r=>e.select?e.select(r.params):r.params})}function hx(e){return Cc({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:r=>e.select?e.select(r.search):r.search})}function Pn(e){return!!(e!=null&&e.isNotFound)}function wU(e){const r=hn({select:t=>`not-found-${t.location.pathname}-${t.status}`});return b.jsx(fx,{getResetKey:()=>r,onCatch:(t,n)=>{var i;if(Pn(t))(i=e.onCatch)==null||i.call(e,t,n);else throw t},errorComponent:({error:t})=>{var n;if(Pn(t))return(n=e.fallback)==null?void 0:n.call(e,t);throw t},children:e.children})}function SU(){return b.jsx("p",{children:"Not Found"})}function _U(e){const{navigate:r}=Ho();return _.useCallback(t=>r({...t}),[r])}let Tj=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=Br:di(this.parentRoute);let s=a?Br:o.path;s&&s!=="/"&&(s=cx(s));const l=(o==null?void 0:o.id)||s;let u=a?Br:yo([this.parentRoute.id===Br?"":this.parentRoute.id,l]);s===Br&&(s="/"),u!==Br&&(u=yo(["/",u]));const c=u===Br?"/":yo([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=>Cc({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>Cc({...t,from:this.id,select:n=>t!=null&&t.select?t.select(n.context):n.context}),this.useSearch=t=>hx({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>$U({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>bU({...t,from:this.id}),this.useLoaderData=t=>yU({...t,from:this.id}),this.useNavigate=()=>_U({from:this.id}),this.options=r||{},this.isRoot=!(r!=null&&r.getParentRoute),di(!(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 EU(e){return new Tj(e)}class xU extends Tj{constructor(r){super(r)}addChildren(r){return super.addChildren(r),this}_addFileChildren(r){return super._addFileChildren(r),this}_addFileTypes(){return this}}function CU(e){return new xU(e)}function vx(e){return new kU(e,{silent:!0}).createRoute}class kU{constructor(r,t){this.path=r,this.createRoute=n=>{this.silent;const i=EU(n);return i.isRoot=!1,i},this.silent=t==null?void 0:t.silent}}function bs(e){return!!(e!=null&&e.isRedirect)}function G1(e){return!!(e!=null&&e.isRedirect)&&e.href}function Tm(e){return b.jsx(b.Fragment,{children:e.children})}function Ij(e,r,t){return r.options.notFoundComponent?b.jsx(r.options.notFoundComponent,{data:t}):e.options.defaultNotFoundComponent?b.jsx(e.options.defaultNotFoundComponent,{data:t}):b.jsx(SU,{})}const Rj={},PU=Rj.hasOwnProperty,Mj=(e,r)=>{for(const t in e)PU.call(e,t)&&r(t,e[t])},OU=(e,r)=>(r&&Mj(r,(t,n)=>{e[t]=n}),e),TU=(e,r)=>{const t=e.length;let n=-1;for(;++n<t;)r(e[n])},bp=e=>"\\u"+("0000"+e).slice(-4),Gd=(e,r)=>{let t=e.toString(16);return r?t:t.toUpperCase()},jh=Rj.toString,IU=Array.isArray,RU=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),MU=e=>jh.call(e)=="[object Object]",NU=e=>typeof e=="string"||jh.call(e)=="[object String]",AU=e=>typeof e=="number"||jh.call(e)=="[object Number]",q1=e=>typeof e=="bigint",DU=e=>typeof e=="function",FU=e=>jh.call(e)=="[object Map]",jU=e=>jh.call(e)=="[object Set]",LU={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},BU=/[\\\b\f\n\r\t]/,zU=/[0-9]/,HU=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,WU=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,VU=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,$s=(e,r)=>{const t=()=>{u=l,++r.indentLevel,l=r.indent.repeat(r.indentLevel)},n={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},i=r&&r.json;i&&(n.quotes="double",n.wrap=!0),r=OU(n,r),r.quotes!="single"&&r.quotes!="double"&&r.quotes!="backtick"&&(r.quotes="single");const o=r.quotes=="double"?'"':r.quotes=="backtick"?"`":"'",a=r.compact,s=r.lowercaseHex;let l=r.indent.repeat(r.indentLevel),u="";const c=r.__inline1__,d=r.__inline2__,f=a?"":`
|
57
|
+
`;let h,v=!0;const p=r.numbers=="binary",$=r.numbers=="octal",m=r.numbers=="decimal",g=r.numbers=="hexadecimal";if(i&&e&&DU(e.toJSON)&&(e=e.toJSON()),!NU(e)){if(FU(e))return e.size==0?"new Map()":(a||(r.__inline1__=!0,r.__inline2__=!1),"new Map("+$s(Array.from(e),r)+")");if(jU(e))return e.size==0?"new Set()":"new Set("+$s(Array.from(e),r)+")";if(RU(e))return e.length==0?"Buffer.from([])":"Buffer.from("+$s(Array.from(e),r)+")";if(IU(e))return h=[],r.wrap=!0,c&&(r.__inline1__=!1,r.__inline2__=!0),d||t(),TU(e,w=>{v=!1,d&&(r.__inline2__=!1),h.push((a||d?"":l)+$s(w,r))}),v?"[]":d?"["+h.join(", ")+"]":"["+f+h.join(","+f)+f+(a?"":u)+"]";if(AU(e)||q1(e)){if(i)return JSON.stringify(Number(e));let w;if(m)w=String(e);else if(g){let S=e.toString(16);s||(S=S.toUpperCase()),w="0x"+S}else p?w="0b"+e.toString(2):$&&(w="0o"+e.toString(8));return q1(e)?w+"n":w}else return q1(e)?i?JSON.stringify(Number(e)):e+"n":MU(e)?(h=[],r.wrap=!0,t(),Mj(e,(w,S)=>{v=!1,h.push((a?"":l)+$s(w,r)+":"+(a?"":" ")+$s(S,r))}),v?"{}":"{"+f+h.join(","+f)+f+(a?"":u)+"}"):i?JSON.stringify(e)||"null":String(e)}const y=r.escapeEverything?WU:VU;return h=e.replace(y,(w,S,E,x,C,k)=>{if(S){if(r.minimal)return S;const T=S.charCodeAt(0),R=S.charCodeAt(1);if(r.es6){const N=(T-55296)*1024+R-56320+65536;return"\\u{"+Gd(N,s)+"}"}return bp(Gd(T,s))+bp(Gd(R,s))}if(E)return bp(Gd(E.charCodeAt(0),s));if(w=="\0"&&!i&&!zU.test(k.charAt(C+1)))return"\\0";if(x)return x==o||r.escapeEverything?"\\"+x:x;if(BU.test(w))return LU[w];if(r.minimal&&!HU.test(w))return w;const P=Gd(w.charCodeAt(0),s);return i||P.length>2?bp(P):"\\x"+("00"+P).slice(-2)}),o=="`"&&(h=h.replace(/\$\{/g,"\\${")),r.isScriptContext&&(h=h.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,i?"\\u003C!--":"\\x3C!--")),r.wrap&&(h=o+h+o),h};$s.version="3.0.2";function UU({children:e,log:r}){return typeof document<"u"?null:b.jsx("script",{className:"tsr-once",dangerouslySetInnerHTML:{__html:[e,"",'if (typeof __TSR_SSR__ !== "undefined") __TSR_SSR__.cleanScripts()'].filter(Boolean).join(`
|
58
|
+
`)}})}const Cg="tsr-scroll-restoration-v1_3",KU=typeof window<"u"&&window.sessionStorage,GU=(e,r)=>{let t;return(...n)=>{t||(t=setTimeout(()=>{e(...n),t=null},r))}},Ou=KU?{state:JSON.parse(window.sessionStorage.getItem(Cg)||"null")||{},set:r=>(Ou.state=df(r,Ou.state)||Ou.state,window.sessionStorage.setItem(Cg,JSON.stringify(Ou.state)))}:void 0,xS=e=>e.state.key||e.href;function qU(e){const r=[];let t;for(;t=e.parentNode;)r.unshift(`${e.tagName}:nth-child(${[].indexOf.call(t.children,e)+1})`),e=t;return`${r.join(" > ")}`.toLowerCase()}let kg=!1;function Nj(e,r,t,n,i){var o;let a;try{a=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(u){console.error(u);return}const s=r||((o=window.history.state)==null?void 0:o.key),l=a[s];kg=!0,(()=>{if(n&&l){for(const c in l){const d=l[c];if(c==="window")window.scrollTo({top:d.scrollY,left:d.scrollX,behavior:t});else if(c){const f=document.querySelector(c);f&&(f.scrollLeft=d.scrollX,f.scrollTop=d.scrollY)}}return}const u=window.location.hash.split("#")[1];if(u){const c=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(c){const d=document.getElementById(u);d&&d.scrollIntoView(c)}return}["window",...(i==null?void 0:i.filter(c=>c!=="window"))??[]].forEach(c=>{const d=c==="window"?window:document.querySelector(c);d&&d.scrollTo({top:0,left:0,behavior:t})})})(),kg=!1}function YU(e,r){if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),typeof document>"u"||e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,kg=!1;const n=e.options.getScrollRestorationKey||xS;window.history.scrollRestoration="manual";const i=o=>{if(kg||!e.isScrollRestoring)return;let a="";if(o.target===document||o.target===window)a="window";else{const l=o.target.getAttribute("data-scroll-restoration-id");l?a=`[data-scroll-restoration-id="${l}"]`:a=qU(o.target)}const s=n(e.state.location);Ou.set(l=>{const u=l[s]=l[s]||{},c=u[a]=u[a]||{};if(a==="window")c.scrollX=window.scrollX||0,c.scrollY=window.scrollY||0;else if(a){const d=document.querySelector(a);d&&(c.scrollX=d.scrollLeft||0,c.scrollY=d.scrollTop||0)}return l})};typeof document<"u"&&document.addEventListener("scroll",GU(i,100),!0),e.subscribe("onRendered",o=>{const a=n(o.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}Nj(Cg,a,e.options.scrollRestorationBehavior,e.isScrollRestoring,e.options.scrollToTopSelectors),e.isScrollRestoring&&Ou.set(s=>(s[a]=s[a]||{},s))})}function XU(){const e=Ho(),t=(e.options.getScrollRestorationKey||xS)(e.latestLocation),n=t!==xS(e.latestLocation)?t:null;return!e.isScrollRestoring||!e.isServer?null:b.jsx(UU,{children:`(${Nj.toString()})(${JSON.stringify(Cg)},${JSON.stringify(n)}, undefined, true)`,log:!1})}const Aj=_.memo(function({matchId:r}){var t,n;const i=Ho(),o=hn({select:m=>{var g;return(g=m.matches.find(y=>y.id===r))==null?void 0:g.routeId}});di(o);const a=i.routesById[o],s=a.options.pendingComponent??i.options.defaultPendingComponent,l=s?b.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:Tm,h=u?fx:Tm,v=d?wU:Tm,p=hn({select:m=>m.loadedAt}),$=hn({select:m=>{var g;const y=m.matches.findIndex(w=>w.id===r);return(g=m.matches[y-1])==null?void 0:g.routeId}});return b.jsxs(b.Fragment,{children:[b.jsx(Ty.Provider,{value:r,children:b.jsx(f,{fallback:l,children:b.jsx(h,{getResetKey:()=>p,errorComponent:u||Py,onCatch:(m,g)=>{if(Pn(m))throw m;c==null||c(m,g)},children:b.jsx(v,{fallback:m=>{if(!d||m.routeId&&m.routeId!==o||!m.routeId&&!a.isRoot)throw m;return _.createElement(d,m)},children:b.jsx(JU,{matchId:r})})})})}),$===Br?b.jsxs(b.Fragment,{children:[b.jsx(QU,{}),b.jsx(XU,{})]}):null]})});function QU(){var e;const r=Ho(),t=_.useRef(void 0);return b.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n?r.emit({type:"onRendered",...qu(r.state)}):t.current=r.state.resolvedLocation}},(e=r.state.resolvedLocation)==null?void 0:e.state.key)}const JU=_.memo(function({matchId:r}){var t,n,i;const o=Ho(),{match:a,key:s,routeId:l}=hn({select:f=>{const h=f.matches.findIndex(y=>y.id===r),v=f.matches[h],p=v.routeId,$=o.routesById[p].options.remountDeps??o.options.defaultRemountDeps,m=$==null?void 0:$({routeId:p,loaderDeps:v.loaderDeps,params:v._strictParams,search:v._strictSearch});return{key:m?JSON.stringify(m):void 0,routeId:p,match:SS(v,["id","status","error"])}},structuralSharing:!0}),u=o.routesById[l],c=_.useMemo(()=>{const f=u.options.component??o.options.defaultComponent;return f?b.jsx(f,{},s):b.jsx(px,{})},[s,u.options.component,o.options.defaultComponent]),d=(u.options.errorComponent??o.options.defaultErrorComponent)||Py;if(a.status==="notFound")return di(Pn(a.error)),Ij(o,u,a.error);if(a.status==="redirected")throw di(bs(a.error)),(t=o.getMatch(a.id))==null?void 0:t.loadPromise;if(a.status==="error"){if(o.isServer)return b.jsx(d,{error:a.error,reset:void 0,info:{componentStack:""}});throw a.error}if(a.status==="pending"){const f=u.options.pendingMinMs??o.options.defaultPendingMinMs;if(f&&!((n=o.getMatch(a.id))!=null&&n.minPendingPromise)&&!o.isServer){const h=vu();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(i=o.getMatch(a.id))==null?void 0:i.loadPromise}return c}),px=_.memo(function(){const r=Ho(),t=_.useContext(Ty),n=hn({select:u=>{var c;return(c=u.matches.find(d=>d.id===t))==null?void 0:c.routeId}}),i=r.routesById[n],o=hn({select:u=>{const d=u.matches.find(f=>f.id===t);return di(d),d.globalNotFound}}),a=hn({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 Ij(r,i,void 0);if(!a)return null;const s=b.jsx(Aj,{matchId:a}),l=r.options.defaultPendingComponent?b.jsx(r.options.defaultPendingComponent,{}):null;return t===Br?b.jsx(_.Suspense,{fallback:l,children:s}):s}),$p=typeof window<"u"?_.useLayoutEffect:_.useEffect;function Y1(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 ZU(){const e=Ho(),r=_.useRef({router:e,mounted:!1}),t=hn({select:({isLoading:d})=>d}),[n,i]=_.useState(!1),o=hn({select:d=>d.matches.some(f=>f.status==="pending"),structuralSharing:!0}),a=Y1(t),s=t||n||o,l=Y1(s),u=t||o,c=Y1(u);return e.isServer||(e.startReactTransition=d=>{i(!0),_.startTransition(()=>{d(),i(!1)})}),_.useEffect(()=>{const d=e.history.subscribe(e.load),f=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Os(e.latestLocation.href)!==Os(f.href)&&e.commitLocation({...f,replace:!0}),()=>{d()}},[e,e.history]),$p(()=>{if(typeof window<"u"&&e.clientSsr||r.current.router===e&&r.current.mounted)return;r.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(f){console.error(f)}})()},[e]),$p(()=>{a&&!t&&e.emit({type:"onLoad",...qu(e.state)})},[a,e,t]),$p(()=>{c&&!u&&e.emit({type:"onBeforeRouteMount",...qu(e.state)})},[u,c,e]),$p(()=>{l&&!s&&(e.emit({type:"onResolved",...qu(e.state)}),e.__store.setState(d=>({...d,status:"idle",resolvedLocation:d.location})))},[s,l,e]),null}function eK(){const e=Ho(),r=e.options.defaultPendingComponent?b.jsx(e.options.defaultPendingComponent,{}):null,t=e.isServer||typeof document<"u"&&e.clientSsr?Tm:_.Suspense,n=b.jsxs(t,{fallback:r,children:[b.jsx(ZU,{}),b.jsx(tK,{})]});return e.options.InnerWrap?b.jsx(e.options.InnerWrap,{children:n}):n}function tK(){const e=hn({select:t=>{var n;return(n=t.matches[0])==null?void 0:n.id}}),r=hn({select:t=>t.loadedAt});return b.jsx(Ty.Provider,{value:e,children:b.jsx(fx,{getResetKey:()=>r,errorComponent:Py,onCatch:t=>{t.message||t.toString()},children:e?b.jsx(Aj,{matchId:e}):null})})}const Dj=["component","errorComponent","pendingComponent","notFoundComponent"];function rK(e){var r;for(const t of Dj)if((r=e.options[t])!=null&&r.preload)return!0;return!1}function X1(e,r){if(e==null)return{};if("~standard"in e){const t=e["~standard"].validate(r);if(t instanceof Promise)throw new Pg("Async validation not supported");if(t.issues)throw new Pg(JSON.stringify(t.issues,void 0,2),{cause:t});return t.value}return"parse"in e?e.parse(r):typeof e=="function"?e(r):{}}function nK(e){return new iK(e)}class iK{constructor(r){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startReactTransition=t=>t(),this.update=t=>{var n;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/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options;this.options={...this.options,...t},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(o=>[encodeURIComponent(o),o])):void 0,(!this.basepath||t.basepath&&t.basepath!==i.basepath)&&(t.basepath===void 0||t.basepath===""||t.basepath==="/"?this.basepath="/":this.basepath=`/${AV(t.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?KV({initialEntries:[this.basepath||"/"]}):UV()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new ES(aK(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(o=>!["redirected"].includes(o.status))}}}),YU(this)),typeof window<"u"&&"CSS"in window&&typeof((n=window.CSS)==null?void 0:n.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},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(di(!u,`Duplicate routes found with id: ${String(s.id)}`),this.routesById[s.id]=s,!s.isRoot&&s.path){const d=Os(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=cx(a.fullPath),c=Ec(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,n)=>{const i=({pathname:l,search:u,hash:c,state:d})=>{const f=this.options.parseSearch(u),h=this.options.stringifySearch(f);return{pathname:l,searchStr:h,search:Cn(t==null?void 0:t.search,f),hash:c.split("#").reverse()[0]??"",href:`${l}${h}${c}`,state:Cn(t==null?void 0:t.state,d)}},o=i(n??this.history.location),{__tempLocation:a,__tempKey:s}=o.state;if(a&&(!s||s===this.tempLocationKey)){const l=i(a);return l.state.key=o.state.key,delete l.state.__tempLocation,{...l,maskedLocation:o}}return o},this.resolvePathWithBase=(t,n)=>DV({basepath:this.basepath,base:t,to:ky(n),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.getMatchedRoutes=(t,n)=>{let i={};const o=Os(t.pathname),a=c=>gp(this.basepath,o,{to:c.fullPath,caseSensitive:c.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});let s=(n==null?void 0:n.to)!==void 0?this.routesByPath[n.to]:void 0;s?i=a(s):s=this.flatRoutes.find(c=>{const d=a(c);return d?(i=d,!0):!1});let l=s||this.routesById[Br];const u=[l];for(;l.parentRoute;)l=l.parentRoute,u.unshift(l);return{matchedRoutes:u,routeParams:i,foundRoute:s}},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,f;const h=o._fromLocation?this.matchRoutes(o._fromLocation,{_buildLocation:!0}):this.state.matches,v=o.from!=null?h.find(T=>gp(this.basepath,Os(T.pathname),{to:o.from,caseSensitive:!1,fuzzy:!1})):void 0,p=(v==null?void 0:v.pathname)||this.latestLocation.pathname;di(o.from==null||v!=null,"Could not find match for from: "+o.from);const $=(s=this.state.pendingMatches)!=null&&s.length?(l=Pf(this.state.pendingMatches))==null?void 0:l.search:((u=Pf(h))==null?void 0:u.search)||this.latestLocation.search,m=a==null?void 0:a.matchedRoutes.filter(T=>h.find(R=>R.routeId===T.id));let g;if(o.to)g=this.resolvePathWithBase(p,`${o.to}`);else{const T=this.routesById[(c=m==null?void 0:m.find(R=>{const N=mp({path:R.fullPath,params:(a==null?void 0:a.routeParams)??{},decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;return yo([this.basepath,N])===p}))==null?void 0:c.id];g=this.resolvePathWithBase(p,(T==null?void 0:T.to)??p)}const y={...(d=Pf(h))==null?void 0:d.params};let w=(o.params??!0)===!0?y:{...y,...df(o.params,y)};Object.keys(w).length>0&&(a==null||a.matchedRoutes.map(T=>{var R;return((R=T.options.params)==null?void 0:R.stringify)??T.options.stringifyParams}).filter(Boolean).forEach(T=>{w={...w,...T(w)}})),g=mp({path:g,params:w??{},leaveWildcards:!1,leaveParams:t.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;let S=$;if(t._includeValidateSearch&&((f=this.options.search)!=null&&f.strict)){let T={};a==null||a.matchedRoutes.forEach(R=>{try{R.options.validateSearch&&(T={...T,...X1(R.options.validateSearch,{...T,...S})??{}})}catch{}}),S=T}S=(T=>{const R=(a==null?void 0:a.matchedRoutes.reduce((W,M)=>{var j;const O=[];if("search"in M.options)(j=M.options.search)!=null&&j.middlewares&&O.push(...M.options.search.middlewares);else if(M.options.preSearchFilters||M.options.postSearchFilters){const D=({search:z,next:G})=>{let K=z;"preSearchFilters"in M.options&&M.options.preSearchFilters&&(K=M.options.preSearchFilters.reduce((le,se)=>se(le),z));const ee=G(K);return"postSearchFilters"in M.options&&M.options.postSearchFilters?M.options.postSearchFilters.reduce((le,se)=>se(le),ee):ee};O.push(D)}if(t._includeValidateSearch&&M.options.validateSearch){const D=({search:z,next:G})=>{try{const K=G(z);return{...K,...X1(M.options.validateSearch,K)??{}}}catch{}};O.push(D)}return W.concat(O)},[]))??[],N=({search:W})=>o.search?o.search===!0?W:df(o.search,W):{};R.push(N);const F=(W,M)=>{if(W>=R.length)return M;const j=R[W];return j({search:M,next:D=>F(W+1,D)})};return F(0,T)})(S),S=Cn($,S);const x=this.options.stringifySearch(S),C=o.hash===!0?this.latestLocation.hash:o.hash?df(o.hash,this.latestLocation.hash):void 0,k=C?`#${C}`:"";let P=o.state===!0?this.latestLocation.state:o.state?df(o.state,this.latestLocation.state):{};return P=Cn(this.latestLocation.state,P),{pathname:g,search:S,searchStr:x,state:P,hash:C??"",href:`${g}${x}${k}`,unmaskOnReload:o.unmaskOnReload}},i=(o={},a)=>{var s;const l=n(o);let u=a?n(a):void 0;if(!u){let f={};const h=(s=this.options.routeMasks)==null?void 0:s.find(v=>{const p=gp(this.basepath,l.pathname,{to:v.from,caseSensitive:!1,fuzzy:!1});return p?(f=p,!0):!1});if(h){const{from:v,...p}=h;a={...SS(t,["from"]),...p,params:f},u=n(a)}}const c=this.getMatchedRoutes(l,o),d=n(o,c);if(u){const f=this.getMatchedRoutes(u,a),h=n(a,f);d.maskedLocation=h}return d};return t.mask?i(t,{...SS(t,["from"]),...t.mask}):i(t)},this.commitLocation=({viewTransition:t,ignoreBlocker:n,...i})=>{const o=()=>{const l=["key","__TSR_index","__hashScrollIntoViewOptions"];l.forEach(c=>{i.state[c]=this.latestLocation.state[c]});const u=Of(i.state,this.latestLocation.state);return l.forEach(c=>{delete i.state[c]}),u},a=this.latestLocation.href===i.href,s=this.commitLocationPromise;if(this.commitLocationPromise=vu(()=>{s==null||s.resolve()}),a&&o())this.load();else{let{maskedLocation:l,hashScrollIntoView:u,...c}=i;l&&(c={...l,state:{...l.state,__tempKey:void 0,__tempLocation:{...c,search:c.searchStr,state:{...c.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(c.unmaskOnReload??this.options.unmaskOnReload??!1)&&(c.state.__tempKey=this.tempLocationKey)),c.state.__hashScrollIntoViewOptions=u??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=t,this.history[i.replace?"replace":"push"](c.href,c.state,{ignoreBlocker:n})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:t,resetScroll:n,hashScrollIntoView:i,viewTransition:o,ignoreBlocker:a,href:s,...l}={})=>{if(s){const c=this.history.location.state.__TSR_index,d=ah(s,{__TSR_index:t?c:c+1});l.to=d.pathname,l.search=this.options.parseSearch(d.search),l.hash=d.hash.slice(1)}const u=this.buildLocation({...l,_includeValidateSearch:!0});return this.commitLocation({...u,viewTransition:o,replace:t,resetScroll:n,hashScrollIntoView:i,ignoreBlocker:a})},this.navigate=({to:t,reloadDocument:n,href:i,...o})=>{if(n){if(!i){const a=this.buildLocation({to:t,...o});i=this.history.createHref(a.href)}o.replace?window.location.replace(i):window.location.href=i;return}return this.buildAndCommitLocation({...o,href:i,to:t})},this.load=async t=>{this.latestLocation=this.parseLocation(this.latestLocation);let n,i,o;for(o=new Promise(a=>{this.startReactTransition(async()=>{var s;try{const l=this.latestLocation,u=this.state.resolvedLocation;this.cancelMatches();let c;U1(()=>{c=this.matchRoutes(l),this.__store.setState(d=>({...d,status:"pending",isLoading:!0,location:l,pendingMatches:c,cachedMatches:d.cachedMatches.filter(f=>!c.find(h=>h.id===f.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",...qu({resolvedLocation:u,location:l})}),this.emit({type:"onBeforeLoad",...qu({resolvedLocation:u,location:l})}),await this.loadMatches({sync:t==null?void 0:t.sync,matches:c,location:l,onReady:async()=>{this.startViewTransition(async()=>{let d,f,h;U1(()=>{this.__store.setState(v=>{const p=v.matches,$=v.pendingMatches||v.matches;return d=p.filter(m=>!$.find(g=>g.id===m.id)),f=$.filter(m=>!p.find(g=>g.id===m.id)),h=p.filter(m=>$.find(g=>g.id===m.id)),{...v,isLoading:!1,loadedAt:Date.now(),matches:$,pendingMatches:void 0,cachedMatches:[...v.cachedMatches,...d.filter(m=>m.status!=="error")]}}),this.clearExpiredCache()}),[[d,"onLeave"],[f,"onEnter"],[h,"onStay"]].forEach(([v,p])=>{v.forEach($=>{var m,g;(g=(m=this.looseRoutesById[$.routeId].options)[p])==null||g.call(m,$)})})})}})}catch(l){G1(l)?(n=l,this.isServer||this.navigate({...n,replace:!0,ignoreBlocker:!0})):Pn(l)&&(i=l),this.__store.setState(u=>({...u,statusCode:n?n.statusCode:i?404:u.matches.some(c=>c.status==="error")?500:200,redirect:n}))}this.latestLoadPromise===o&&((s=this.commitLocationPromise)==null||s.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),a()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(a=>({...a,statusCode:404}))},this.startViewTransition=t=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let i;typeof n=="object"&&this.isViewTransitionTypesSupported?i={update:t,types:n.types}:i=t,document.startViewTransition(i)}else t()},this.updateMatch=(t,n)=>{var i;let o;const a=(i=this.state.pendingMatches)==null?void 0:i.find(c=>c.id===t),s=this.state.matches.find(c=>c.id===t),l=this.state.cachedMatches.find(c=>c.id===t),u=a?"pendingMatches":s?"matches":l?"cachedMatches":"";return u&&this.__store.setState(c=>{var d;return{...c,[u]:(d=c[u])==null?void 0:d.map(f=>f.id===t?o=n(f):f)}}),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,sync:s})=>{let l,u=!1;const c=async()=>{u||(u=!0,await(o==null?void 0:o()))},d=h=>!!(i&&!this.state.matches.find(v=>v.id===h));!this.isServer&&!this.state.matches.length&&c();const f=(h,v)=>{var p,$,m,g;if(G1(v)&&!v.reloadDocument)throw v;if(bs(v)||Pn(v)){if(a(h.id,y=>({...y,status:bs(v)?"redirected":Pn(v)?"notFound":"error",isFetching:!1,error:v,beforeLoadPromise:void 0,loaderPromise:void 0})),v.routeId||(v.routeId=h.routeId),(p=h.beforeLoadPromise)==null||p.resolve(),($=h.loaderPromise)==null||$.resolve(),(m=h.loadPromise)==null||m.resolve(),bs(v))throw u=!0,v=this.resolveRedirect({...v,_fromLocation:t}),v;if(Pn(v))throw this._handleNotFound(n,v,{updateMatch:a}),(g=this.serverSsr)==null||g.onMatchSettled({router:this,match:this.getMatch(h.id)}),v}};try{await new Promise((h,v)=>{(async()=>{var p,$,m;try{const g=(S,E,x)=>{var C,k;const{id:P,routeId:T}=n[S],R=this.looseRoutesById[T];if(E instanceof Promise)throw E;E.routerCode=x,l=l??S,f(this.getMatch(P),E);try{(k=(C=R.options).onError)==null||k.call(C,E)}catch(N){E=N,f(this.getMatch(P),E)}a(P,N=>{var F,W;return(F=N.beforeLoadPromise)==null||F.resolve(),(W=N.loadPromise)==null||W.resolve(),{...N,error:E,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[S,{id:E,routeId:x}]of n.entries()){const C=this.getMatch(E),k=(p=n[S-1])==null?void 0:p.id,P=this.looseRoutesById[x],T=P.options.pendingMs??this.options.defaultPendingMs,R=!!(o&&!this.isServer&&!d(E)&&(P.options.loader||P.options.beforeLoad)&&typeof T=="number"&&T!==1/0&&(P.options.pendingComponent??this.options.defaultPendingComponent));let N=!0;if((C.beforeLoadPromise||C.loaderPromise)&&(R&&setTimeout(()=>{try{c()}catch{}},T),await C.beforeLoadPromise,N=this.getMatch(E).status!=="success"),N){try{a(E,de=>({...de,loadPromise:vu(()=>{var ge;(ge=de.loadPromise)==null||ge.resolve()}),beforeLoadPromise:vu()}));const F=new AbortController;let W;R&&(W=setTimeout(()=>{try{c()}catch{}},T));const{paramsError:M,searchError:j}=this.getMatch(E);M&&g(S,M,"PARSE_PARAMS"),j&&g(S,j,"VALIDATE_SEARCH");const O=()=>k?this.getMatch(k).context:this.options.context??{};a(E,de=>({...de,isFetching:"beforeLoad",fetchCount:de.fetchCount+1,abortController:F,pendingTimeout:W,context:{...O(),...de.__routeContext}}));const{search:D,params:z,context:G,cause:K}=this.getMatch(E),ee=d(E),le={search:D,abortController:F,params:z,preload:ee,context:G,location:t,navigate:de=>this.navigate({...de,_fromLocation:t}),buildLocation:this.buildLocation,cause:ee?"preload":K,matches:n},se=await((m=($=P.options).beforeLoad)==null?void 0:m.call($,le))??{};(bs(se)||Pn(se))&&g(S,se,"BEFORE_LOAD"),a(E,de=>({...de,__beforeLoadContext:se,context:{...O(),...de.__routeContext,...se},abortController:F}))}catch(F){g(S,F,"BEFORE_LOAD")}a(E,F=>{var W;return(W=F.beforeLoadPromise)==null||W.resolve(),{...F,beforeLoadPromise:void 0,isFetching:!1}})}}const y=n.slice(0,l),w=[];y.forEach(({id:S,routeId:E},x)=>{w.push((async()=>{const{loaderPromise:C}=this.getMatch(S);let k=!1,P=!1;if(C){await C;const T=this.getMatch(S);T.error&&f(T,T.error)}else{const T=w[x-1],R=this.looseRoutesById[E],N=()=>{const{params:K,loaderDeps:ee,abortController:le,context:se,cause:de}=this.getMatch(S),ge=d(S);return{params:K,deps:ee,preload:!!ge,parentMatchPromise:T,abortController:le,context:se,location:t,navigate:oe=>this.navigate({...oe,_fromLocation:t}),cause:ge?"preload":de,route:R}},F=Date.now()-this.getMatch(S).updatedAt,W=d(S),M=W?R.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:R.options.staleTime??this.options.defaultStaleTime??0,j=R.options.shouldReload,O=typeof j=="function"?j(N()):j;a(S,K=>({...K,loaderPromise:vu(),preload:!!W&&!this.state.matches.find(ee=>ee.id===S)}));const D=async()=>{var K,ee,le,se,de,ge,oe,V,H;try{const U=async()=>{const te=this.getMatch(S);te.minPendingPromise&&await te.minPendingPromise};try{this.loadRouteChunk(R),a(S,tt=>({...tt,isFetching:"loader"}));const te=await((ee=(K=R.options).loader)==null?void 0:ee.call(K,N()));f(this.getMatch(S),te),await R._lazyPromise,await U();const ce=(se=(le=R.options).head)==null?void 0:se.call(le,{matches:n,match:this.getMatch(S),params:this.getMatch(S).params,loaderData:te}),ie=ce==null?void 0:ce.meta,ke=ce==null?void 0:ce.links,Ee=ce==null?void 0:ce.scripts,xe=(ge=(de=R.options).headers)==null?void 0:ge.call(de,{loaderData:te});a(S,tt=>({...tt,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:te,meta:ie,links:ke,scripts:Ee,headers:xe}))}catch(te){let ce=te;await U(),f(this.getMatch(S),te);try{(V=(oe=R.options).onError)==null||V.call(oe,te)}catch(ie){ce=ie,f(this.getMatch(S),ie)}a(S,ie=>({...ie,error:ce,status:"error",isFetching:!1}))}(H=this.serverSsr)==null||H.onMatchSettled({router:this,match:this.getMatch(S)}),await R._componentsPromise}catch(U){a(S,te=>({...te,loaderPromise:void 0})),f(this.getMatch(S),U)}},{status:z,invalid:G}=this.getMatch(S);k=z==="success"&&(G||(O??F>M)),W&&R.options.preload===!1||(k&&!s?(P=!0,(async()=>{try{await D();const{loaderPromise:K,loadPromise:ee}=this.getMatch(S);K==null||K.resolve(),ee==null||ee.resolve(),a(S,le=>({...le,loaderPromise:void 0}))}catch(K){G1(K)&&await this.navigate(K)}})()):(z!=="success"||k&&s)&&await D())}if(!P){const{loaderPromise:T,loadPromise:R}=this.getMatch(S);T==null||T.resolve(),R==null||R.resolve()}return a(S,T=>({...T,isFetching:P?T.isFetching:!1,loaderPromise:P?T.loaderPromise:void 0,invalid:!1})),this.getMatch(S)})())}),await Promise.all(w),h()}catch(g){v(g)}})()}),await c()}catch(h){if(bs(h)||Pn(h))throw Pn(h)&&!i&&await c(),h}return n},this.invalidate=t=>{const n=i=>{var o;return((o=t==null?void 0:t.filter)==null?void 0:o.call(t,i))??!0?{...i,invalid:!0,...i.status==="error"?{status:"pending",error:void 0}:{}}:i};return this.__store.setState(i=>{var o;return{...i,matches:i.matches.map(n),cachedMatches:i.cachedMatches.map(n),pendingMatches:(o=i.pendingMatches)==null?void 0:o.map(n)}}),this.load({sync:t==null?void 0:t.sync})},this.resolveRedirect=t=>{const n=t;return n.href||(n.href=this.buildLocation(n).href),n},this.clearCache=t=>{const n=t==null?void 0:t.filter;n!==void 0?this.__store.setState(i=>({...i,cachedMatches:i.cachedMatches.filter(o=>!n(o))})):this.__store.setState(i=>({...i,cachedMatches:[]}))},this.clearExpiredCache=()=>{const t=n=>{const i=this.looseRoutesById[n.routeId];if(!i.options.loader)return!0;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.clearCache({filter:t})},this.loadRouteChunk=t=>(t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(n=>{const{id:i,...o}=n.options;Object.assign(t.options,o)}):t._lazyPromise=Promise.resolve()),t._componentsPromise===void 0&&(t._componentsPromise=t._lazyPromise.then(()=>Promise.all(Dj.map(async n=>{const i=t.options[n];i!=null&&i.preload&&await i.preload()})))),t._componentsPromise),this.preloadRoute=async t=>{const n=this.buildLocation(t);let i=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:t});const o=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(s=>s.id)),a=new Set([...o,...this.state.cachedMatches.map(s=>s.id)]);U1(()=>{i.forEach(s=>{a.has(s.id)||this.__store.setState(l=>({...l,cachedMatches:[...l.cachedMatches,s]}))})});try{return i=await this.loadMatches({matches:i,location:n,preload:!0,updateMatch:(s,l)=>{o.has(s)?i=i.map(u=>u.id===s?l(u):u):this.updateMatch(s,l)}}),i}catch(s){if(bs(s))return s.reloadDocument?void 0:await this.preloadRoute({...s,_fromLocation:n});Pn(s)||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||this.state.location,l=gp(this.basepath,s.pathname,{...n,to:o.pathname});return!l||t.params&&!Of(l,t.params,{partial:!0})?!1:l&&((n==null?void 0:n.includeSearch)??!0)?Of(s.search,o.search,{partial:!0})?l:!1:l},this._handleNotFound=(t,n,{updateMatch:i=this.updateMatch}={})=>{const o=Object.fromEntries(t.map(l=>[l.routeId,l]));let a=(n.global?this.looseRoutesById[Br]:this.looseRoutesById[n.routeId])||this.looseRoutesById[Br];for(;!a.options.notFoundComponent&&!this.options.defaultNotFoundComponent&&a.id!==Br;)a=a.parentRoute,di(a);const s=o[a.id];di(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,caseSensitive:r.caseSensitive??!1,notFoundMode:r.notFoundMode??"fuzzy",stringifySearch:r.stringifySearch??HV,parseSearch:r.parseSearch??zV}),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){const{foundRoute:n,matchedRoutes:i,routeParams:o}=this.getMatchedRoutes(r,t==null?void 0:t.dest);let a=!1;(n?n.path!=="/"&&o["**"]:Os(r.pathname))&&(this.options.notFoundRoute?i.push(this.options.notFoundRoute):a=!0);const s=(()=>{if(a){if(this.options.notFoundMode!=="root")for(let d=i.length-1;d>=0;d--){const f=i[d];if(f.children)return f.id}return Br}})(),l=i.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(o);Object.assign(o,p)}catch(p){if(h=new oK(p.message,{cause:p}),t!=null&&t.throwOnError)throw h;return h}}),u=[],c=d=>(d==null?void 0:d.id)?d.context??this.options.context??{}:this.options.context??{};return i.forEach((d,f)=>{var h,v,p,$;const m=u[f-1],[g,y,w]=(()=>{const W=(m==null?void 0:m.search)??r.search,M=(m==null?void 0:m._strictSearch)??{};try{const j=X1(d.options.validateSearch,{...W})??{};return[{...W,...j},{...M,...j},void 0]}catch(j){let O=j;if(j instanceof Pg||(O=new Pg(j.message,{cause:j})),t!=null&&t.throwOnError)throw O;return[W,{},O]}})(),S=((v=(h=d.options).loaderDeps)==null?void 0:v.call(h,{search:g}))??"",E=S?JSON.stringify(S):"",{usedParams:x,interpolatedPath:C}=mp({path:d.fullPath,params:o,decodeCharMap:this.pathParamsDecodeCharMap}),k=mp({path:d.id,params:o,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath+E,P=this.getMatch(k),T=this.state.matches.find(W=>W.routeId===d.id),R=T?"stay":"enter";let N;if(P)N={...P,cause:R,params:T?Cn(T.params,o):o,_strictParams:x,search:Cn(T?T.search:P.search,g),_strictSearch:y};else{const W=d.options.loader||d.options.beforeLoad||d.lazyFn||rK(d)?"pending":"success";N={id:k,index:f,routeId:d.id,params:T?Cn(T.params,o):o,_strictParams:x,pathname:yo([this.basepath,C]),updatedAt:Date.now(),search:T?Cn(T.search,g):g,_strictSearch:y,searchError:void 0,status:W,isFetching:!1,error:void 0,paramsError:l[f],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:R,loaderDeps:T?Cn(T.loaderDeps,S):S,invalid:!1,preload:!1,links:void 0,scripts:void 0,meta:void 0,staticData:d.options.staticData||{},loadPromise:vu(),fullPath:d.fullPath}}N.status==="success"&&(N.headers=($=(p=d.options).headers)==null?void 0:$.call(p,{loaderData:N.loaderData})),t!=null&&t.preload||(N.globalNotFound=s===d.id),N.searchError=w;const F=c(m);N.context={...F,...N.__routeContext,...N.__beforeLoadContext},u.push(N)}),u.forEach((d,f)=>{var h,v,p,$;const m=this.looseRoutesById[d.routeId];if(!this.getMatch(d.id)&&(t==null?void 0:t._buildLocation)!==!0){const w=u[f-1],S=c(w),E={deps:d.loaderDeps,params:d.params,context:S,location:r,navigate:x=>this.navigate({...x,_fromLocation:r}),buildLocation:this.buildLocation,cause:d.cause,abortController:d.abortController,preload:!!d.preload,matches:u};d.__routeContext=((v=(h=m.options).context)==null?void 0:v.call(h,E))??{},d.context={...S,...d.__routeContext,...d.__beforeLoadContext}}const y=($=(p=m.options).head)==null?void 0:$.call(p,{matches:u,match:d,params:d.params,loaderData:d.loaderData??void 0});d.links=y==null?void 0:y.links,d.scripts=y==null?void 0:y.scripts,d.meta=y==null?void 0:y.meta}),u}}class Pg extends Error{}class oK extends Error{}function aK(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function sK({router:e,children:r,...t}){e.update({...e.options,...t,context:{...e.options.context,...t.context}});const n=Oj(),i=b.jsx(n.Provider,{value:e,children:r});return e.options.Wrap?b.jsx(e.options.Wrap,{children:i}):i}function lK({router:e,...r}){return b.jsx(sK,{router:e,...r,children:b.jsx(eK,{})})}var Li=function(){return Li=Object.assign||function(r){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r},Li.apply(this,arguments)};function Fj(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t}function uK(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,o;n<i;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return e.concat(o||Array.prototype.slice.call(r))}var Im="right-scroll-bar-position",Rm="width-before-scroll-bar",cK="with-scroll-bars-hidden",dK="--removed-body-scroll-bar-size";function Q1(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function fK(e,r){var t=_.useState(function(){return{value:e,callback:r,facade:{get current(){return t.value},set current(n){var i=t.value;i!==n&&(t.value=n,t.callback(n,i))}}}})[0];return t.callback=r,t.facade}var hK=typeof window<"u"?_.useLayoutEffect:_.useEffect,AO=new WeakMap;function vK(e,r){var t=fK(null,function(n){return e.forEach(function(i){return Q1(i,n)})});return hK(function(){var n=AO.get(t);if(n){var i=new Set(n),o=new Set(e),a=t.current;i.forEach(function(s){o.has(s)||Q1(s,null)}),o.forEach(function(s){i.has(s)||Q1(s,a)})}AO.set(t,e)},[e]),t}function pK(e){return e}function mK(e,r){r===void 0&&(r=pK);var t=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(o){var a=r(o,n);return t.push(a),function(){t=t.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(n=!0;t.length;){var a=t;t=[],a.forEach(o)}t={push:function(s){return o(s)},filter:function(){return t}}},assignMedium:function(o){n=!0;var a=[];if(t.length){var s=t;t=[],s.forEach(o),a=t}var l=function(){var c=a;a=[],c.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),t={push:function(c){a.push(c),u()},filter:function(c){return a=a.filter(c),t}}}};return i}function gK(e){e===void 0&&(e={});var r=mK(null);return r.options=Li({async:!0,ssr:!1},e),r}var jj=function(e){var r=e.sideCar,t=Fj(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=r.read();if(!n)throw new Error("Sidecar medium not found");return _.createElement(n,Li({},t))};jj.isSideCarExport=!0;function yK(e,r){return e.useMedium(r),jj}var Lj=gK(),J1=function(){},Iy=_.forwardRef(function(e,r){var t=_.useRef(null),n=_.useState({onScrollCapture:J1,onWheelCapture:J1,onTouchMoveCapture:J1}),i=n[0],o=n[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noIsolation,v=e.inert,p=e.allowPinchZoom,$=e.as,m=$===void 0?"div":$,g=e.gapMode,y=Fj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,S=vK([t,r]),E=Li(Li({},y),i);return _.createElement(_.Fragment,null,c&&_.createElement(w,{sideCar:Lj,removeScrollBar:u,shards:d,noIsolation:h,inert:v,setCallbacks:o,allowPinchZoom:!!p,lockRef:t,gapMode:g}),a?_.cloneElement(_.Children.only(s),Li(Li({},E),{ref:S})):_.createElement(m,Li({},E,{className:l,ref:S}),s))});Iy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Iy.classNames={fullWidth:Rm,zeroRight:Im};var bK=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $K(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=bK();return r&&e.setAttribute("nonce",r),e}function wK(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function SK(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var _K=function(){var e=0,r=null;return{add:function(t){e==0&&(r=$K())&&(wK(r,t),SK(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},EK=function(){var e=_K();return function(r,t){_.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&t])}},Bj=function(){var e=EK(),r=function(t){var n=t.styles,i=t.dynamic;return e(n,i),null};return r},xK={left:0,top:0,right:0,gap:0},Z1=function(e){return parseInt(e||"",10)||0},CK=function(e){var r=window.getComputedStyle(document.body),t=r[e==="padding"?"paddingLeft":"marginLeft"],n=r[e==="padding"?"paddingTop":"marginTop"],i=r[e==="padding"?"paddingRight":"marginRight"];return[Z1(t),Z1(n),Z1(i)]},kK=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xK;var r=CK(e),t=document.documentElement.clientWidth,n=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,n-t+r[2]-r[0])}},PK=Bj(),Qu="data-scroll-locked",OK=function(e,r,t,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return t===void 0&&(t="margin"),`
|
59
|
+
.`.concat(cK,` {
|
60
|
+
overflow: hidden `).concat(n,`;
|
61
|
+
padding-right: `).concat(s,"px ").concat(n,`;
|
62
|
+
}
|
63
|
+
body[`).concat(Qu,`] {
|
64
|
+
overflow: hidden `).concat(n,`;
|
65
|
+
overscroll-behavior: contain;
|
66
|
+
`).concat([r&&"position: relative ".concat(n,";"),t==="margin"&&`
|
67
|
+
padding-left: `.concat(i,`px;
|
68
|
+
padding-top: `).concat(o,`px;
|
69
|
+
padding-right: `).concat(a,`px;
|
70
|
+
margin-left:0;
|
71
|
+
margin-top:0;
|
72
|
+
margin-right: `).concat(s,"px ").concat(n,`;
|
73
|
+
`),t==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
|
74
|
+
}
|
75
|
+
|
76
|
+
.`).concat(Im,` {
|
77
|
+
right: `).concat(s,"px ").concat(n,`;
|
78
|
+
}
|
79
|
+
|
80
|
+
.`).concat(Rm,` {
|
81
|
+
margin-right: `).concat(s,"px ").concat(n,`;
|
82
|
+
}
|
83
|
+
|
84
|
+
.`).concat(Im," .").concat(Im,` {
|
85
|
+
right: 0 `).concat(n,`;
|
86
|
+
}
|
87
|
+
|
88
|
+
.`).concat(Rm," .").concat(Rm,` {
|
89
|
+
margin-right: 0 `).concat(n,`;
|
90
|
+
}
|
91
|
+
|
92
|
+
body[`).concat(Qu,`] {
|
93
|
+
`).concat(dK,": ").concat(s,`px;
|
94
|
+
}
|
95
|
+
`)},DO=function(){var e=parseInt(document.body.getAttribute(Qu)||"0",10);return isFinite(e)?e:0},TK=function(){_.useEffect(function(){return document.body.setAttribute(Qu,(DO()+1).toString()),function(){var e=DO()-1;e<=0?document.body.removeAttribute(Qu):document.body.setAttribute(Qu,e.toString())}},[])},IK=function(e){var r=e.noRelative,t=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;TK();var o=_.useMemo(function(){return kK(i)},[i]);return _.createElement(PK,{styles:OK(o,!r,i,t?"":"!important")})},CS=!1;if(typeof window<"u")try{var wp=Object.defineProperty({},"passive",{get:function(){return CS=!0,!0}});window.addEventListener("test",wp,wp),window.removeEventListener("test",wp,wp)}catch{CS=!1}var Xl=CS?{passive:!1}:!1,RK=function(e){return e.tagName==="TEXTAREA"},zj=function(e,r){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[r]!=="hidden"&&!(t.overflowY===t.overflowX&&!RK(e)&&t[r]==="visible")},MK=function(e){return zj(e,"overflowY")},NK=function(e){return zj(e,"overflowX")},FO=function(e,r){var t=r.ownerDocument,n=r;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=Hj(e,n);if(i){var o=Wj(e,n),a=o[1],s=o[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==t.body);return!1},AK=function(e){var r=e.scrollTop,t=e.scrollHeight,n=e.clientHeight;return[r,t,n]},DK=function(e){var r=e.scrollLeft,t=e.scrollWidth,n=e.clientWidth;return[r,t,n]},Hj=function(e,r){return e==="v"?MK(r):NK(r)},Wj=function(e,r){return e==="v"?AK(r):DK(r)},FK=function(e,r){return e==="h"&&r==="rtl"?-1:1},jK=function(e,r,t,n,i){var o=FK(e,window.getComputedStyle(r).direction),a=o*n,s=t.target,l=r.contains(s),u=!1,c=a>0,d=0,f=0;do{var h=Wj(e,s),v=h[0],p=h[1],$=h[2],m=p-$-o*v;(v||m)&&Hj(e,s)&&(d+=m,f+=v),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(r.contains(s)||r===s));return(c&&Math.abs(d)<1||!c&&Math.abs(f)<1)&&(u=!0),u},Sp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jO=function(e){return[e.deltaX,e.deltaY]},LO=function(e){return e&&"current"in e?e.current:e},LK=function(e,r){return e[0]===r[0]&&e[1]===r[1]},BK=function(e){return`
|
96
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
97
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
98
|
+
`)},zK=0,Ql=[];function HK(e){var r=_.useRef([]),t=_.useRef([0,0]),n=_.useRef(),i=_.useState(zK++)[0],o=_.useState(Bj)[0],a=_.useRef(e);_.useEffect(function(){a.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=uK([e.lockRef.current],(e.shards||[]).map(LO),!0).filter(Boolean);return p.forEach(function($){return $.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function($){return $.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=_.useCallback(function(p,$){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!a.current.allowPinchZoom;var m=Sp(p),g=t.current,y="deltaX"in p?p.deltaX:g[0]-m[0],w="deltaY"in p?p.deltaY:g[1]-m[1],S,E=p.target,x=Math.abs(y)>Math.abs(w)?"h":"v";if("touches"in p&&x==="h"&&E.type==="range")return!1;var C=FO(x,E);if(!C)return!0;if(C?S=x:(S=x==="v"?"h":"v",C=FO(x,E)),!C)return!1;if(!n.current&&"changedTouches"in p&&(y||w)&&(n.current=S),!S)return!0;var k=n.current||S;return jK(k,$,p,k==="h"?y:w)},[]),l=_.useCallback(function(p){var $=p;if(!(!Ql.length||Ql[Ql.length-1]!==o)){var m="deltaY"in $?jO($):Sp($),g=r.current.filter(function(S){return S.name===$.type&&(S.target===$.target||$.target===S.shadowParent)&&LK(S.delta,m)})[0];if(g&&g.should){$.cancelable&&$.preventDefault();return}if(!g){var y=(a.current.shards||[]).map(LO).filter(Boolean).filter(function(S){return S.contains($.target)}),w=y.length>0?s($,y[0]):!a.current.noIsolation;w&&$.cancelable&&$.preventDefault()}}},[]),u=_.useCallback(function(p,$,m,g){var y={name:p,delta:$,target:m,should:g,shadowParent:WK(m)};r.current.push(y),setTimeout(function(){r.current=r.current.filter(function(w){return w!==y})},1)},[]),c=_.useCallback(function(p){t.current=Sp(p),n.current=void 0},[]),d=_.useCallback(function(p){u(p.type,jO(p),p.target,s(p,e.lockRef.current))},[]),f=_.useCallback(function(p){u(p.type,Sp(p),p.target,s(p,e.lockRef.current))},[]);_.useEffect(function(){return Ql.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Xl),document.addEventListener("touchmove",l,Xl),document.addEventListener("touchstart",c,Xl),function(){Ql=Ql.filter(function(p){return p!==o}),document.removeEventListener("wheel",l,Xl),document.removeEventListener("touchmove",l,Xl),document.removeEventListener("touchstart",c,Xl)}},[]);var h=e.removeScrollBar,v=e.inert;return _.createElement(_.Fragment,null,v?_.createElement(o,{styles:BK(i)}):null,h?_.createElement(IK,{gapMode:e.gapMode}):null)}function WK(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const VK=yK(Lj,HK);var kS=_.forwardRef(function(e,r){return _.createElement(Iy,Li({},e,{ref:r,sideCar:VK}))});kS.classNames=Iy.classNames;function Gi(e){return Object.keys(e)}function e0(e){return e&&typeof e=="object"&&!Array.isArray(e)}function mx(e,r){const t={...e},n=r;return e0(e)&&e0(r)&&Object.keys(r).forEach(i=>{e0(n[i])&&i in e?t[i]=mx(t[i],n[i]):t[i]=n[i]}),t}function UK(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function KK(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 GK(e){const r=KK(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 t0(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function Vj(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?t0(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?t0(n):n;const i=n.replace("px","");if(!Number.isNaN(Number(i))){const o=`${Number(i)/16}${e}`;return r?t0(o):o}}return n}return t}const L=Vj("rem",{shouldScale:!0}),BO=Vj("em");function Ry(e){return Object.keys(e).reduce((r,t)=>(e[t]!==void 0&&(r[t]=e[t]),r),{})}function Uj(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|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(n=>r.test(n))}return!1}function Qc(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==_.Fragment:!1}function eo(e){const r=_.createContext(null);return[({children:i,value:o})=>b.jsx(r.Provider,{value:o,children:i}),()=>{const i=_.useContext(r);if(i===null)throw new Error(e);return i}]}function gx(e=null){const r=_.createContext(e);return[({children:i,value:o})=>b.jsx(r.Provider,{value:o,children:i}),()=>_.useContext(r)]}function Og(e,r){let t=e;for(;(t=t.parentElement)&&!t.matches(r););return t}function qK(e,r,t){for(let n=e-1;n>=0;n-=1)if(!r[n].disabled)return n;if(t){for(let n=r.length-1;n>-1;n-=1)if(!r[n].disabled)return n}return e}function YK(e,r,t){for(let n=e+1;n<r.length;n+=1)if(!r[n].disabled)return n;if(t){for(let n=0;n<r.length;n+=1)if(!r[n].disabled)return n}return e}function XK(e,r,t){return Og(e,t)===Og(r,t)}function QK({parentSelector:e,siblingSelector:r,onKeyDown:t,loop:n=!0,activateOnFocus:i=!1,dir:o="rtl",orientation:a}){return s=>{var f;t==null||t(s);const l=Array.from(((f=Og(s.currentTarget,e))==null?void 0:f.querySelectorAll(r))||[]).filter(h=>XK(s.currentTarget,h,e)),u=l.findIndex(h=>s.currentTarget===h),c=YK(u,l,n),d=qK(u,l,n);switch(s.key){case"ArrowRight":break;case"ArrowLeft":break;case"ArrowUp":{s.stopPropagation(),s.preventDefault(),l[d].focus(),i&&l[d].click();break}case"ArrowDown":{s.stopPropagation(),s.preventDefault(),l[c].focus(),i&&l[c].click();break}case"Home":{s.stopPropagation(),s.preventDefault(),!l[0].disabled&&l[0].focus();break}case"End":{s.stopPropagation(),s.preventDefault();const h=l.length-1;!l[h].disabled&&l[h].focus();break}}}}const JK={app:100,modal:200,popover:300,overlay:400,max:9999};function My(e){return JK[e]}const ZK=()=>{};function eG(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||ZK:t=>{var n;t.key==="Escape"&&(e(t),(n=r.onTrigger)==null||n.call(r))}}function qe(e,r="size",t=!0){if(e!==void 0)return Uj(e)?t?L(e):e:`var(--${r}-${e})`}function kc(e){return qe(e,"mantine-spacing")}function pr(e){return e===void 0?"var(--mantine-radius-default)":qe(e,"mantine-radius")}function Ut(e){return qe(e,"mantine-font-size")}function tG(e){return qe(e,"mantine-line-height",!1)}function Kj(e){if(e)return qe(e,"mantine-shadow",!1)}function qr(e,r){return t=>{e==null||e(t),r==null||r(t)}}function rG(e,r,t){var n;return t?Array.from(((n=Og(t,r))==null?void 0:n.querySelectorAll(e))||[]).findIndex(i=>i===t):null}function nG(){const[e,r]=_.useState(-1);return[e,{setHovered:r,resetHovered:()=>r(-1)}]}function If(e,r,t){return r===void 0&&t===void 0?e:r!==void 0&&t===void 0?Math.max(e,r):Math.min(r===void 0&&t!==void 0?e:Math.max(e,r),t)}function Gj(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function Es(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)},[])}const iG=()=>{};function Lh(e,r){const t=typeof r=="number"?r:r.delay,n=typeof r=="number"?!1:r.flushOnUnmount,i=Es(e),o=_.useRef(0),a=Object.assign(_.useCallback((...s)=>{window.clearTimeout(o.current);const l=()=>{o.current!==0&&(o.current=0,i(...s))};a.flush=l,o.current=window.setTimeout(l,t)},[i,t]),{flush:iG});return _.useEffect(()=>()=>{window.clearTimeout(o.current),n&&a.flush()},[a,n]),a}const zO=["mousedown","touchstart"];function qj(e,r,t){const n=_.useRef(null);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||zO).forEach(o=>document.addEventListener(o,i)),()=>{(r||zO).forEach(o=>document.removeEventListener(o,i))}},[n,e,t]),n}function oG(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch{return e.addListener(r),()=>e.removeListener(r)}}function aG(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Yj(e,r,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){const[n,i]=_.useState(t?r:aG(e)),o=_.useRef(null);return _.useEffect(()=>{if("matchMedia"in window)return o.current=window.matchMedia(e),i(o.current.matches),oG(o.current,a=>i(a.matches))},[e]),n}const Bh=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Mo(e,r){const t=_.useRef(!1);_.useEffect(()=>()=>{t.current=!1},[]),_.useEffect(()=>{if(t.current)return e();t.current=!0},r)}function sG({opened:e,shouldReturnFocus:r=!0}){const t=_.useRef(null),n=()=>{var i;t.current&&"focus"in t.current&&typeof t.current.focus=="function"&&((i=t.current)==null||i.focus({preventScroll:!0}))};return Mo(()=>{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}const lG=/input|select|textarea|button|object/,Xj="a, input, select, textarea, button, object, [tabindex]";function uG(e){return e.style.display==="none"}function cG(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(uG(t))return!1;t=t.parentNode}return!0}function Qj(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function PS(e){const r=e.nodeName.toLowerCase(),t=!Number.isNaN(Qj(e));return(lG.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||t)&&cG(e)}function Jj(e){const r=Qj(e);return(Number.isNaN(r)||r>=0)&&PS(e)}function dG(e){return Array.from(e.querySelectorAll(Xj)).filter(Jj)}function fG(e,r){const t=dG(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 hG(e=!0){const r=_.useRef(null),t=i=>{let o=i.querySelector("[data-autofocus]");if(!o){const a=Array.from(i.querySelectorAll(Xj));o=a.find(Jj)||a.find(PS)||null,!o&&PS(i)&&(o=i)}o&&o.focus({preventScroll:!0})},n=_.useCallback(i=>{e&&i!==null&&r.current!==i&&(i?(setTimeout(()=>{i.getRootNode()&&t(i)}),r.current=i):r.current=null)},[e]);return _.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>t(r.current));const i=o=>{o.key==="Tab"&&r.current&&fG(r.current,o)};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[e]),n}const vG=e=>(e+1)%1e6;function pG(){const[,e]=_.useReducer(vG,0);return e}const mG=hr.useId||(()=>{});function gG(){const e=mG();return e?`mantine-${e.replace(/:/g,"")}`:""}function Sl(e){const r=gG(),[t,n]=_.useState(r);return Bh(()=>{n(Gj())},[]),typeof e=="string"?e:typeof window>"u"?r:t}function HO(e,r,t){_.useEffect(()=>(window.addEventListener(e,r,t),()=>window.removeEventListener(e,r,t)),[e,r])}function yG(e,r="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${r}: Failed to serialize the value`)}}function bG(e){try{return e&&JSON.parse(e)}catch{return e}}function $G(e){return{getItem:i=>{try{return window[e].getItem(i)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(i,o)=>{try{window[e].setItem(i,o)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:i=>{try{window[e].removeItem(i)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function wG(e,r){const t="mantine-local-storage",{getItem:n,setItem:i,removeItem:o}=$G(e);return function({key:s,defaultValue:l,getInitialValueInEffect:u=!0,sync:c=!0,deserialize:d=bG,serialize:f=h=>yG(h,r)}){const h=_.useCallback(g=>{let y;try{y=typeof window>"u"||!(e in window)||window[e]===null||!!g}catch{y=!0}if(y)return l;const w=n(s);return w!==null?d(w):l},[s,l]),[v,p]=_.useState(h(u)),$=_.useCallback(g=>{g instanceof Function?p(y=>{const w=g(y);return i(s,f(w)),window.dispatchEvent(new CustomEvent(t,{detail:{key:s,value:g(y)}})),w}):(i(s,f(g)),window.dispatchEvent(new CustomEvent(t,{detail:{key:s,value:g}})),p(g))},[s]),m=_.useCallback(()=>{o(s),window.dispatchEvent(new CustomEvent(t,{detail:{key:s,value:l}}))},[]);return HO("storage",g=>{c&&g.storageArea===window[e]&&g.key===s&&p(d(g.newValue??void 0))}),HO(t,g=>{c&&g.detail.key===s&&p(g.detail.value)}),_.useEffect(()=>{l!==void 0&&v===void 0&&$(l)},[l,v,$]),_.useEffect(()=>{const g=h();g!==void 0&&$(g)},[s]),[v===void 0?l:v,$,m]}}function r0(e){return wG("localStorage","use-local-storage")(e)}function OS(e,r){if(typeof e=="function")return e(r);typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function Zj(...e){const r=new Map;return t=>{if(e.forEach(n=>{const i=OS(n,t);i&&r.set(n,i)}),r.size>0)return()=>{e.forEach(n=>{const i=r.get(n);i?i():OS(n,null)}),r.clear()}}}function Tt(...e){return _.useCallback(Zj(...e),e)}function SG(e,r,t="ltr"){const n=_.useRef(null),i=_.useRef(!1),o=_.useRef(!1),a=_.useRef(0),[s,l]=_.useState(!1);return _.useEffect(()=>{i.current=!0},[]),_.useEffect(()=>{const u=n.current,c=({x:y,y:w})=>{cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{if(i.current&&u){u.style.userSelect="none";const S=u.getBoundingClientRect();if(S.width&&S.height){const E=If((y-S.left)/S.width,0,1);e({x:t==="ltr"?E:1-E,y:If((w-S.top)/S.height,0,1)})}}})},d=()=>{document.addEventListener("mousemove",$),document.addEventListener("mouseup",v),document.addEventListener("touchmove",g),document.addEventListener("touchend",v)},f=()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",v),document.removeEventListener("touchmove",g),document.removeEventListener("touchend",v)},h=()=>{!o.current&&i.current&&(o.current=!0,typeof(r==null?void 0:r.onScrubStart)=="function"&&r.onScrubStart(),l(!0),d())},v=()=>{o.current&&i.current&&(o.current=!1,l(!1),f(),setTimeout(()=>{typeof(r==null?void 0:r.onScrubEnd)=="function"&&r.onScrubEnd()},0))},p=y=>{h(),y.preventDefault(),$(y)},$=y=>c({x:y.clientX,y:y.clientY}),m=y=>{y.cancelable&&y.preventDefault(),h(),g(y)},g=y=>{y.cancelable&&y.preventDefault(),c({x:y.changedTouches[0].clientX,y:y.changedTouches[0].clientY})};return u==null||u.addEventListener("mousedown",p),u==null||u.addEventListener("touchstart",m,{passive:!1}),()=>{u&&(u.removeEventListener("mousedown",p),u.removeEventListener("touchstart",m))}},[t,e]),{ref:n,active:s}}function zn({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 Jo(e,r){const t=r-e+1;return Array.from({length:t},(n,i)=>i+e)}const _p="dots";function _G({total:e,siblings:r=1,boundaries:t=1,page:n,initialPage:i=1,onChange:o}){const a=Math.max(Math.trunc(e),0),[s,l]=zn({value:n,onChange:o,defaultValue:i,finalValue:i}),u=p=>{p<=0?l(1):p>a?l(a):l(p)},c=()=>u(s+1),d=()=>u(s-1),f=()=>u(1),h=()=>u(a);return{range:_.useMemo(()=>{if(r*2+3+t*2>=a)return Jo(1,a);const $=Math.max(s-r,t),m=Math.min(s+r,a-t),g=$>t+2,y=m<a-(t+1);if(!g&&y){const w=r*2+t+2;return[...Jo(1,w),_p,...Jo(a-(t-1),a)]}if(g&&!y){const w=t+1+2*r;return[...Jo(1,t),_p,...Jo(a-w,a)]}return[...Jo(1,t),_p,...Jo($,m),_p,...Jo(a-t+1,a)]},[a,r,s]),active:s,setPage:u,next:c,previous:d,first:f,last:h}}function yx(e,r){return Yj("(prefers-reduced-motion: reduce)",e,r)}const EG={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function xG(e){const r=_.useRef(0),t=_.useRef(null),[n,i]=_.useState(EG),o=_.useMemo(()=>typeof window<"u"?new ResizeObserver(a=>{const s=a[0];s&&(cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{t.current&&i(s.contentRect)}))}):null,[]);return _.useEffect(()=>(t.current&&(o==null||o.observe(t.current,e)),()=>{o==null||o.disconnect(),r.current&&cancelAnimationFrame(r.current)}),[t.current]),[t,n]}function CG(e=!1,r){const{onOpen:t,onClose:n}={},[i,o]=_.useState(e),a=_.useCallback(()=>{o(u=>u||(t==null||t(),!0))},[t]),s=_.useCallback(()=>{o(u=>u&&(n==null||n(),!1))},[n]),l=_.useCallback(()=>{i?s():a()},[s,a,i]);return[i,{open:a,close:s,toggle:l}]}function TS(e,r,t={autoInvoke:!1}){const n=_.useRef(null),i=_.useCallback((...a)=>{n.current||(n.current=window.setTimeout(()=>{e(a),n.current=null},r))},[r]),o=_.useCallback(()=>{n.current&&(window.clearTimeout(n.current),n.current=null)},[]);return _.useEffect(()=>(t.autoInvoke&&i(),o),[o,i]),{start:i,clear:o}}function kG(e){const r=_.useRef(void 0);return _.useEffect(()=>{r.current=e},[e]),r.current}function PG(e,r,t){const n=_.useRef(null),i=_.useRef(null);return _.useEffect(()=>{const o=typeof t=="function"?t():t;return(o||i.current)&&(n.current=new MutationObserver(e),n.current.observe(o||i.current,r)),()=>{var a;(a=n.current)==null||a.disconnect()}},[e,r]),i}function OG(){const[e,r]=_.useState(!1);return _.useEffect(()=>r(!0),[]),e}var TG={};function e3(){return typeof process<"u"&&TG?"production":"development"}function WO(e,r){return r.length===0?e:r.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t)}function t3(e){var t;const r=hr.version;return typeof hr.version!="string"||r.startsWith("18.")?e==null?void 0:e.ref:(t=e==null?void 0:e.props)==null?void 0:t.ref}function r3(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=r3(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ae(){for(var e,r,t=0,n="",i=arguments.length;t<i;t++)(e=arguments[t])&&(r=r3(e))&&(n&&(n+=" "),n+=r);return n}const IG={};function RG(e){const r={};return e.forEach(t=>{Object.entries(t).forEach(([n,i])=>{r[n]?r[n]=Ae(r[n],i):r[n]=i})}),r}function Ny({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||IG);return RG(o)}function Tg({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 n3=_.createContext(null);function _l(){const e=_.useContext(n3);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function MG(){return _l().cssVariablesResolver}function NG(){return _l().classNamesPrefix}function bx(){return _l().getStyleNonce}function AG(){return _l().withStaticClasses}function DG(){return _l().headless}function FG(){var e;return(e=_l().stylesTransform)==null?void 0:e.sx}function jG(){var e;return(e=_l().stylesTransform)==null?void 0:e.styles}function LG(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function BG(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 zG(e){const[r,t,n,i]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r,g:t,b:n,a:i||1}}function HG(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 $x(e){return LG(e)?BG(e):e.startsWith("rgb")?zG(e):e.startsWith("hsl")?HG(e):{r:0,g:0,b:0,a:1}}function Ep(e,r){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${r*100}%)`;const{r:t,g:n,b:i,a:o}=$x(e),a=1-r,s=l=>Math.round(l*a);return`rgba(${s(t)}, ${s(n)}, ${s(i)}, ${o})`}function sh(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function n0(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function WG(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function VG(e){if(e.startsWith("oklch("))return(WG(e)||0)/100;const{r,g:t,b:n}=$x(e),i=r/255,o=t/255,a=n/255,s=n0(i),l=n0(o),u=n0(a);return .2126*s+.7152*l+.0722*u}function qd(e,r=.179){return e.startsWith("var(")?!1:VG(e)>r}function Wo({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:qd(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:qd(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:qd(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][sh(r,t||"light")];return{color:n,value:s,shade:o,isThemeColor:a,isLight:qd(s,r.luminanceThreshold),variable:i?`--mantine-color-${n}-${o}`:`--mantine-color-${n}-filled`}}return{color:e,value:e,isThemeColor:a,isLight:qd(e,r.luminanceThreshold),shade:o,variable:void 0}}function ir(e,r){const t=Wo({color:e||r.primaryColor,theme:r});return t.variable?`var(${t.variable})`:e}function IS(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=ir(t.from,r),i=ir(t.to,r);return`linear-gradient(${t.deg}deg, ${n} 0%, ${i} 100%)`}function Mi(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}=$x(e);return`rgba(${t}, ${n}, ${i}, ${r})`}const Jl=Mi,UG=({color:e,theme:r,variant:t,gradient:n,autoContrast:i})=>{const o=Wo({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:`${L(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:`${L(1)} solid transparent`}:{background:e,hover:Ep(e,.1),color:s,border:`${L(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:`${L(1)} solid transparent`};const s=r.colors[o.color][o.shade];return{background:Mi(s,.1),hover:Mi(s,.12),color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${L(1)} solid transparent`}}return{background:Mi(e,.1),hover:Mi(e,.12),color:e,border:`${L(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:`${L(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:Mi(r.colors[o.color][o.shade],.05),color:`var(--mantine-color-${o.color}-${o.shade})`,border:`${L(1)} solid var(--mantine-color-${o.color}-${o.shade})`}:{background:"transparent",hover:Mi(e,.05),color:e,border:`${L(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:`${L(1)} solid transparent`};const s=r.colors[o.color][o.shade];return{background:"transparent",hover:Mi(s,.12),color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${L(1)} solid transparent`}}return{background:"transparent",hover:Mi(e,.12),color:e,border:`${L(1)} solid transparent`}}return t==="transparent"?o.isThemeColor?o.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${L(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${L(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${L(1)} solid transparent`}:t==="white"?o.isThemeColor?o.shade===void 0?{background:"var(--mantine-color-white)",hover:Ep(r.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${L(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Ep(r.white,.01),color:`var(--mantine-color-${o.color}-${o.shade})`,border:`${L(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Ep(r.white,.01),color:e,border:`${L(1)} solid transparent`}:t==="gradient"?{background:IS(n,r),hover:IS(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:`${L(1)} solid var(--mantine-color-default-border)`}:{}},KG={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"]},VO="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",wx={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:KG,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:UG,autoContrast:!1,luminanceThreshold:.3,fontFamily:VO,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:VO,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:L(34),lineHeight:"1.3"},h2:{fontSize:L(26),lineHeight:"1.35"},h3:{fontSize:L(22),lineHeight:"1.4"},h4:{fontSize:L(18),lineHeight:"1.45"},h5:{fontSize:L(16),lineHeight:"1.5"},h6:{fontSize:L(14),lineHeight:"1.5"}}},fontSizes:{xs:L(12),sm:L(14),md:L(16),lg:L(18),xl:L(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:L(2),sm:L(4),md:L(8),lg:L(16),xl:L(32)},spacing:{xs:L(10),sm:L(12),md:L(16),lg:L(20),xl:L(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${L(1)} ${L(3)} rgba(0, 0, 0, 0.05), 0 ${L(1)} ${L(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${L(1)} ${L(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${L(10)} ${L(15)} ${L(-5)}, rgba(0, 0, 0, 0.04) 0 ${L(7)} ${L(7)} ${L(-5)}`,md:`0 ${L(1)} ${L(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${L(20)} ${L(25)} ${L(-5)}, rgba(0, 0, 0, 0.04) 0 ${L(10)} ${L(10)} ${L(-5)}`,lg:`0 ${L(1)} ${L(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${L(28)} ${L(23)} ${L(-7)}, rgba(0, 0, 0, 0.04) 0 ${L(12)} ${L(12)} ${L(-7)}`,xl:`0 ${L(1)} ${L(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${L(36)} ${L(28)} ${L(-7)}, rgba(0, 0, 0, 0.04) 0 ${L(17)} ${L(17)} ${L(-7)}`},other:{},components:{}};function UO(e){return e==="auto"||e==="dark"||e==="light"}function GG({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 UO(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&&UO(n.newValue)&&t(n.newValue)},window.addEventListener("storage",r)},unsubscribe:()=>{window.removeEventListener("storage",r)},clear:()=>{window.localStorage.removeItem(e)}}}const qG="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",KO="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function i0(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function GO(e){if(!(e.primaryColor in e.colors))throw new Error(qG);if(typeof e.primaryShade=="object"&&(!i0(e.primaryShade.dark)||!i0(e.primaryShade.light)))throw new Error(KO);if(typeof e.primaryShade=="number"&&!i0(e.primaryShade))throw new Error(KO)}function YG(e,r){var n;if(!r)return GO(e),e;const t=mx(e,r);return r.fontFamily&&!((n=r.headings)!=null&&n.fontFamily)&&(t.headings.fontFamily=r.fontFamily),GO(t),t}const Sx=_.createContext(null),XG=()=>_.useContext(Sx)||wx;function Mr(){const e=_.useContext(Sx);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 i3({theme:e,children:r,inherit:t=!0}){const n=XG(),i=_.useMemo(()=>YG(t?n:wx,e),[e,n,t]);return b.jsx(Sx.Provider,{value:i,children:r})}i3.displayName="@mantine/core/MantineThemeProvider";function QG(){const e=Mr(),r=bx(),t=Gi(e.breakpoints).reduce((n,i)=>{const o=e.breakpoints[i].includes("px"),a=GK(e.breakpoints[i]),s=o?`${a-.1}px`:BO(a-.1),l=o?`${a}px`:BO(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 b.jsx("style",{"data-mantine-styles":"classes",nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:t}})}function o0(e){return Object.entries(e).map(([r,t])=>`${r}: ${t};`).join("")}function Yd(e,r){return(Array.isArray(e)?e:[e]).reduce((n,i)=>`${i}{${n}}`,r)}function JG(e,r){const t=o0(e.variables),n=t?Yd(r,t):"",i=o0(e.dark),o=o0(e.light),a=i?Yd(r===":host"?`${r}([data-mantine-color-scheme="dark"])`:`${r}[data-mantine-color-scheme="dark"]`,i):"",s=o?Yd(r===":host"?`${r}([data-mantine-color-scheme="light"])`:`${r}[data-mantine-color-scheme="light"]`,o):"";return`${n}${a}${s}`}function zh({color:e,theme:r,autoContrast:t}){return(typeof t=="boolean"?t:r.autoContrast)&&Wo({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function qO(e,r){return zh({color:e.colors[e.primaryColor][sh(e,r)],theme:e,autoContrast:null})}function xp({theme:e,color:r,colorScheme:t,name:n=r,withColorValues:i=!0}){if(!e.colors[r])return{};if(t==="light"){const s=sh(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`]:Jl(e.colors[r][s],.1),[`--mantine-color-${n}-light-hover`]:Jl(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`]:Jl(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=sh(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`]:Jl(e.colors[r][Math.max(0,o-2)],.15),[`--mantine-color-${n}-light-hover`]:Jl(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`]:Jl(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 ZG(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function Zl(e,r,t){Gi(r).forEach(n=>Object.assign(e,{[`--mantine-${t}-${n}`]:r[n]}))}const o3=e=>{const r=sh(e,"light"),t=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:L(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":qO(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":qO(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)"}};Zl(n.variables,e.breakpoints,"breakpoint"),Zl(n.variables,e.spacing,"spacing"),Zl(n.variables,e.fontSizes,"font-size"),Zl(n.variables,e.lineHeights,"line-height"),Zl(n.variables,e.shadows,"shadow"),Zl(n.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((o,a)=>{n.variables[`--mantine-primary-color-${a}`]=`var(--mantine-color-${e.primaryColor}-${a})`}),Gi(e.colors).forEach(o=>{const a=e.colors[o];if(ZG(a)){Object.assign(n.light,xp({theme:e,name:a.name,color:a.light,colorScheme:"light",withColorValues:!0})),Object.assign(n.dark,xp({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,xp({theme:e,color:o,colorScheme:"light",withColorValues:!1})),Object.assign(n.dark,xp({theme:e,color:o,colorScheme:"dark",withColorValues:!1}))});const i=e.headings.sizes;return Gi(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 eq({theme:e,generator:r}){const t=o3(e),n=r==null?void 0:r(e);return n?mx(t,n):t}const a0=o3(wx);function tq(e){const r={variables:{},light:{},dark:{}};return Gi(e.variables).forEach(t=>{a0.variables[t]!==e.variables[t]&&(r.variables[t]=e.variables[t])}),Gi(e.light).forEach(t=>{a0.light[t]!==e.light[t]&&(r.light[t]=e.light[t])}),Gi(e.dark).forEach(t=>{a0.dark[t]!==e.dark[t]&&(r.dark[t]=e.dark[t])}),r}function rq(e){return`
|
99
|
+
${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
|
100
|
+
${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
|
101
|
+
`}function a3({cssVariablesSelector:e,deduplicateCssVariables:r}){const t=Mr(),n=bx(),i=MG(),o=eq({theme:t,generator:i}),a=e===":root"&&r,s=a?tq(o):o,l=JG(s,e);return l?b.jsx("style",{"data-mantine-styles":!0,nonce:n==null?void 0:n(),dangerouslySetInnerHTML:{__html:`${l}${a?"":rq(e)}`}}):null}a3.displayName="@mantine/CssVariables";function nq(){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 eu(e,r){var i,o;const t=typeof window<"u"&&"matchMedia"in window&&((i=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:i.matches),n=e!=="auto"?e:t?"dark":"light";(o=r())==null||o.setAttribute("data-mantine-color-scheme",n)}function iq({manager:e,defaultColorScheme:r,getRootElement:t,forceColorScheme:n}){const i=_.useRef(null),[o,a]=_.useState(()=>e.get(r)),s=n||o,l=_.useCallback(c=>{n||(eu(c,t),a(c),e.set(c))},[e.set,s,n]),u=_.useCallback(()=>{a(r),eu(r,t),e.clear()},[e.clear,r]);return _.useEffect(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),Bh(()=>{eu(e.get(r),t)},[]),_.useEffect(()=>{var d;if(n)return eu(n,t),()=>{};n===void 0&&eu(o,t),typeof window<"u"&&"matchMedia"in window&&(i.current=window.matchMedia("(prefers-color-scheme: dark)"));const c=f=>{o==="auto"&&eu(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 oq({respectReducedMotion:e,getRootElement:r}){Bh(()=>{var t;e&&((t=r())==null||t.setAttribute("data-respect-reduced-motion","true"))},[e])}nq();function s3({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=GG(),defaultColorScheme:c="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:h,stylesTransform:v}){const{colorScheme:p,setColorScheme:$,clearColorScheme:m}=iq({defaultColorScheme:c,forceColorScheme:h,manager:u,getRootElement:d});return oq({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:d}),b.jsx(n3.Provider,{value:{colorScheme:p,setColorScheme:$,clearColorScheme:m,getRootElement:d,classNamesPrefix:l,getStyleNonce:t,cssVariablesResolver:f,cssVariablesSelector:s,withStaticClasses:n,stylesTransform:v},children:b.jsxs(i3,{theme:e,children:[a&&b.jsx(a3,{cssVariablesSelector:s,deduplicateCssVariables:o}),i&&b.jsx(QG,{}),r]})})}s3.displayName="@mantine/core/MantineProvider";function Hh({classNames:e,styles:r,props:t,stylesCtx:n}){const i=Mr();return{resolvedClassNames:Ny({theme:i,classNames:e,props:t,stylesCtx:n||void 0}),resolvedStyles:Tg({theme:i,styles:r,props:t,stylesCtx:n||void 0})}}const aq={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function sq({theme:e,options:r,unstyled:t}){return Ae((r==null?void 0:r.focusable)&&!t&&(e.focusClassName||aq[e.focusRing]),(r==null?void 0:r.active)&&!t&&e.activeClassName)}function lq({selector:e,stylesCtx:r,options:t,props:n,theme:i}){return Ny({theme:i,classNames:t==null?void 0:t.classNames,props:(t==null?void 0:t.props)||n,stylesCtx:r})[e]}function YO({selector:e,stylesCtx:r,theme:t,classNames:n,props:i}){return Ny({theme:t,classNames:n,props:i,stylesCtx:r})[e]}function uq({rootSelector:e,selector:r,className:t}){return e===r?t:void 0}function cq({selector:e,classes:r,unstyled:t}){return t?void 0:r[e]}function dq({themeName:e,classNamesPrefix:r,selector:t,withStaticClass:n}){return n===!1?[]:e.map(i=>`${r}-${i}-${t}`)}function fq({themeName:e,theme:r,selector:t,props:n,stylesCtx:i}){return e.map(o=>{var a,s;return(s=Ny({theme:r,classNames:(a=r.components[o])==null?void 0:a.classNames,props:n,stylesCtx:i}))==null?void 0:s[t]})}function hq({options:e,classes:r,selector:t,unstyled:n}){return e!=null&&e.variant&&!n?r[`${t}--${e.variant}`]:void 0}function vq({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 Ae(sq({theme:e,options:r,unstyled:s||h}),fq({theme:e,themeName:t,selector:n,props:c,stylesCtx:d}),hq({options:r,classes:a,selector:n,unstyled:s}),YO({selector:n,stylesCtx:d,theme:e,classNames:o,props:c}),YO({selector:n,stylesCtx:d,theme:e,classNames:v,props:c}),lq({selector:n,stylesCtx:d,options:r,props:c,theme:e}),uq({rootSelector:u,selector:n,className:l}),cq({selector:n,classes:a,unstyled:s||h}),f&&!h&&dq({themeName:t,classNamesPrefix:i,selector:n,withStaticClass:r==null?void 0:r.withStaticClass}),r==null?void 0:r.className)}function pq({theme:e,themeName:r,props:t,stylesCtx:n,selector:i}){return r.map(o=>{var a;return Tg({theme:e,styles:(a=e.components[o])==null?void 0:a.styles,props:t,stylesCtx:n})[i]}).reduce((o,a)=>({...o,...a}),{})}function RS({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((t,n)=>({...t,...RS({style:n,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function mq(e){return e.reduce((r,t)=>(t&&Object.keys(t).forEach(n=>{r[n]={...r[n],...Ry(t[n])}}),r),{})}function gq({vars:e,varsResolver:r,theme:t,props:n,stylesCtx:i,selector:o,themeName:a,headless:s}){var l;return(l=mq([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 yq({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&&pq({theme:e,themeName:r,props:i,stylesCtx:o,selector:t}),...!f&&Tg({theme:e,styles:s,props:i,stylesCtx:o})[t],...!f&&Tg({theme:e,styles:n==null?void 0:n.styles,props:(n==null?void 0:n.props)||i,stylesCtx:o})[t],...gq({theme:e,props:i,stylesCtx:o,vars:u,varsResolver:c,selector:t,themeName:r,headless:d}),...a===t?RS({style:l,theme:e}):null,...RS({style:n==null?void 0:n.style,theme:e})}}function bq({props:e,stylesCtx:r,themeName:t}){var a;const n=Mr(),i=(a=jG())==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 _e({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=Mr(),h=NG(),v=AG(),p=DG(),$=(Array.isArray(e)?e:[e]).filter(y=>y),{withStylesTransform:m,getTransformedStyles:g}=bq({props:t,stylesCtx:n,themeName:$});return(y,w)=>({className:vq({theme:f,options:w,themeName:$,selector:y,classNamesPrefix:h,classNames:l,classes:r,unstyled:s,className:i,rootSelector:a,props:t,stylesCtx:n,withStaticClasses:v,headless:p,transformedStyles:g([w==null?void 0:w.styles,u])}),style:yq({theme:f,themeName:$,selector:y,options:w,props:t,stylesCtx:n,rootSelector:a,styles:u,style:o,vars:c,varsResolver:d,headless:p,withStylesTransform:m})})}function _x(e,r){return typeof e=="boolean"?e:r.autoContrast}function J(e,r,t){var a;const n=Mr(),i=(a=n.components[e])==null?void 0:a.defaultProps,o=typeof i=="function"?i(n):i;return{...r,...o,...Ry(t)}}function s0(e){return Gi(e).reduce((r,t)=>e[t]!==void 0?`${r}${UK(t)}:${e[t]};`:r,"").trim()}function $q({selector:e,styles:r,media:t,container:n}){const i=r?s0(r):"",o=Array.isArray(t)?t.map(s=>`@media${s.query}{${e}{${s0(s.styles)}}}`):[],a=Array.isArray(n)?n.map(s=>`@container ${s.query}{${e}{${s0(s.styles)}}}`):[];return`${i?`${e}{${i}}`:""}${o.join("")}${a.join("")}`.trim()}function l3(e){const r=bx();return b.jsx("style",{"data-mantine-styles":"inline",nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:$q(e)}})}function Wh(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:$,pe:m,ps:g,bd:y,bg:w,c:S,opacity:E,ff:x,fz:C,fw:k,lts:P,ta:T,lh:R,fs:N,tt:F,td:W,w:M,miw:j,maw:O,h:D,mih:z,mah:G,bgsz:K,bgp:ee,bgr:le,bga:se,pos:de,top:ge,left:oe,bottom:V,right:H,inset:U,display:te,flex:ce,hiddenFrom:ie,visibleFrom:ke,lightHidden:Ee,darkHidden:xe,sx:tt,...Te}=e;return{styleProps:Ry({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:$,pe:m,ps:g,bd:y,bg:w,c:S,opacity:E,ff:x,fz:C,fw:k,lts:P,ta:T,lh:R,fs:N,tt:F,td:W,w:M,miw:j,maw:O,h:D,mih:z,mah:G,bgsz:K,bgp:ee,bgr:le,bga:se,pos:de,top:ge,left:oe,bottom:V,right:H,inset:U,display:te,flex:ce,hiddenFrom:ie,visibleFrom:ke,lightHidden:Ee,darkHidden:xe,sx:tt}),rest:Te}}const wq={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:"size",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 Ex(e,r){const t=Wo({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 Sq(e,r){const t=Wo({color:e,theme:r});return t.isThemeColor&&t.shade===void 0?`var(--mantine-color-${t.color}-text)`:Ex(e,r)}function _q(e,r){if(typeof e=="number")return L(e);if(typeof e=="string"){const[t,n,...i]=e.split(" ").filter(a=>a.trim()!=="");let o=`${L(t)}`;return n&&(o+=` ${n}`),i.length>0&&(o+=` ${Ex(i.join(" "),r)}`),o.trim()}return e}const XO={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 Eq(e){return typeof e=="string"&&e in XO?XO[e]:e}const xq=["h1","h2","h3","h4","h5","h6"];function Cq(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&xq.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?L(e):e}function kq(e){return e}const Pq=["h1","h2","h3","h4","h5","h6"];function Oq(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&Pq.includes(e)?`var(--mantine-${e}-line-height)`:e}function Tq(e){return typeof e=="number"?L(e):e}function Iq(e,r){if(typeof e=="number")return L(e);if(typeof e=="string"){const t=e.replace("-","");if(!(t in r.spacing))return L(e);const n=`--mantine-spacing-${t}`;return e.startsWith("-")?`calc(var(${n}) * -1)`:`var(${n})`}return e}const l0={color:Ex,textColor:Sq,fontSize:Cq,spacing:Iq,identity:kq,size:Tq,lineHeight:Oq,fontFamily:Eq,border:_q};function QO(e){return e.replace("(min-width: ","").replace("em)","")}function Rq({media:e,...r}){const n=Object.keys(e).sort((i,o)=>Number(QO(i))-Number(QO(o))).map(i=>({query:i,styles:e[i]}));return{...r,media:n}}function Mq(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function Nq(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function Aq(e){return typeof e=="object"&&e!==null?Gi(e).filter(r=>r!=="base"):[]}function Dq(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function u3({styleProps:e,data:r,theme:t}){return Rq(Gi(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=Nq(e[i]);if(!Mq(e[i]))return a.forEach(u=>{n.inlineStyles[u]=l0[o.type](s,t)}),n;n.hasResponsiveStyles=!0;const l=Aq(e[i]);return a.forEach(u=>{s&&(n.styles[u]=l0[o.type](s,t)),l.forEach(c=>{const d=`(min-width: ${t.breakpoints[c]})`;n.media[d]={...n.media[d],[u]:l0[o.type](Dq(e[i],c),t)}})}),n},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function c3(){return`__m__-${_.useId().replace(/:/g,"")}`}function d3(e,r){return Array.isArray(e)?[...e].reduce((t,n)=>({...t,...d3(n,r)}),{}):typeof e=="function"?e(r):e??{}}function f3(e){return e.startsWith("data-")?e:`data-${e}`}function Fq(e){return Object.keys(e).reduce((r,t)=>{const n=e[t];return n===void 0||n===""||n===!1||n===null||(r[f3(t)]=e[t]),r},{})}function h3(e){return e?typeof e=="string"?{[f3(e)]:!0}:Array.isArray(e)?[...e].reduce((r,t)=>({...r,...h3(t)}),{}):Fq(e):null}function MS(e,r){return Array.isArray(e)?[...e].reduce((t,n)=>({...t,...MS(n,r)}),{}):typeof e=="function"?e(r):e??{}}function jq({theme:e,style:r,vars:t,styleProps:n}){const i=MS(r,e),o=MS(t,e);return{...i,...o,...n}}const v3=_.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 C;const p=Mr(),$=e||"div",{styleProps:m,rest:g}=Wh(h),y=FG(),w=(C=y==null?void 0:y())==null?void 0:C(m.sx),S=c3(),E=u3({styleProps:m,theme:p,data:wq}),x={ref:v,style:jq({theme:p,style:r,vars:t,styleProps:E.inlineStyles}),className:Ae(n,w,{[S]:E.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":c,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${l}`]:l}),"data-variant":i,"data-size":Uj(a)?void 0:a||void 0,size:f,...h3(o),...g};return b.jsxs(b.Fragment,{children:[E.hasResponsiveStyles&&b.jsx(l3,{selector:`.${S}`,styles:E.styles,media:E.media}),typeof d=="function"?d(x):b.jsx($,{...x})]})});v3.displayName="@mantine/core/Box";const Q=v3;function p3(e){return e}function me(e){const r=_.forwardRef(e);return r.extend=p3,r.withProps=t=>{const n=_.forwardRef((i,o)=>b.jsx(r,{...t,...i,ref:o}));return n.extend=r.extend,n.displayName=`WithProps(${r.displayName})`,n},r}function tn(e){const r=_.forwardRef(e);return r.withProps=t=>{const n=_.forwardRef((i,o)=>b.jsx(r,{...t,...i,ref:o}));return n.extend=r.extend,n.displayName=`WithProps(${r.displayName})`,n},r.extend=p3,r}const Lq=_.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Vh(){return _.useContext(Lq)}function Bq(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function u0(e){return e!=null&&e.current?e.current.scrollHeight:"auto"}const Xd=typeof window<"u"&&window.requestAnimationFrame;function zq({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=>{Fh.flushSync(()=>l(v))},c=v=>{u(p=>({...p,...v}))};function d(v){const p=e||Bq(v);return{transition:`height ${p}ms ${r}, opacity ${p}ms ${r}`}}Mo(()=>{typeof Xd=="function"&&Xd(n?()=>{c({willChange:"height",display:"block",overflow:"hidden"}),Xd(()=>{const v=u0(i);c({...d(v),height:v})})}:()=>{const v=u0(i);c({...d(v),willChange:"height",height:v}),Xd(()=>c({height:o,overflow:"hidden"}))})},[n]);const f=v=>{if(!(v.target!==i.current||v.propertyName!=="height"))if(n){const p=u0(i);p===s.height?u({}):c({height:p}),t()}else s.height===o&&(u(a),t())};function h({style:v={},refKey:p="ref",...$}={}){const m=$[p];return{"aria-hidden":!n,...$,[p]:Zj(i,m),onTransitionEnd:f,style:{boxSizing:"border-box",...v,...s}}}return h}const Hq={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},xx=me((e,r)=>{const{children:t,in:n,transitionDuration:i,transitionTimingFunction:o,style:a,onTransitionEnd:s,animateOpacity:l,...u}=J("Collapse",Hq,e),c=Mr(),d=yx(),h=(c.respectReducedMotion?d:!1)?0:i,v=zq({opened:n,transitionDuration:h,transitionTimingFunction:o,onTransitionEnd:s});return h===0?n?b.jsx(Q,{...u,children:t}):null:b.jsx(Q,{...v({style:{opacity:n||!l?1:0,transition:l?`opacity ${h}ms ${o}`:"none",...d3(a,c)},ref:r,...u}),children:t})});xx.displayName="@mantine/core/Collapse";const[Wq,Hn]=eo("ScrollArea.Root component was not found in tree");function Pc(e,r){const t=Es(r);Bh(()=>{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 Vq=_.forwardRef((e,r)=>{const{style:t,...n}=e,i=Hn(),[o,a]=_.useState(0),[s,l]=_.useState(0),u=!!(o&&s);return Pc(i.scrollbarX,()=>{var d;const c=((d=i.scrollbarX)==null?void 0:d.offsetHeight)||0;i.onCornerHeightChange(c),l(c)}),Pc(i.scrollbarY,()=>{var d;const c=((d=i.scrollbarY)==null?void 0:d.offsetWidth)||0;i.onCornerWidthChange(c),a(c)}),u?b.jsx("div",{...n,ref:r,style:{...t,width:o,height:s}}):null}),Uq=_.forwardRef((e,r)=>{const t=Hn(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&n?b.jsx(Vq,{...e,ref:r}):null}),Kq={scrollHideDelay:1e3,type:"hover"},m3=_.forwardRef((e,r)=>{const t=J("ScrollAreaRoot",Kq,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,$]=_.useState(null),[m,g]=_.useState(0),[y,w]=_.useState(0),[S,E]=_.useState(!1),[x,C]=_.useState(!1),k=Tt(r,P=>l(P));return b.jsx(Wq,{value:{type:n,scrollHideDelay:i,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:v,scrollbarXEnabled:S,onScrollbarXEnabledChange:E,scrollbarY:p,onScrollbarYChange:$,scrollbarYEnabled:x,onScrollbarYEnabledChange:C,onCornerWidthChange:g,onCornerHeightChange:w},children:b.jsx(Q,{...a,ref:k,__vars:{"--sa-corner-width":o!=="xy"?"0px":`${m}px`,"--sa-corner-height":o!=="xy"?"0px":`${y}px`}})})});m3.displayName="@mantine/core/ScrollAreaRoot";function g3(e,r){const t=e/r;return Number.isNaN(t)?0:t}function Ay(e){const r=g3(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-t)*r;return Math.max(n,18)}function y3(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 Gq(e,[r,t]){return Math.min(t,Math.max(r,e))}function JO(e,r,t="ltr"){const n=Ay(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=Gq(e,l);return y3([0,a],[0,s])(u)}function qq(e,r,t,n="ltr"){const i=Ay(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 y3([l,u],d)(e)}function b3(e,r){return e>0&&e<r}function $a(e){return e?parseInt(e,10):0}function Vs(e,r,{checkForDefaultPrevented:t=!0}={}){return n=>{e==null||e(n),(t===!1||!n.defaultPrevented)&&(r==null||r(n))}}const[Yq,$3]=eo("ScrollAreaScrollbar was not found in tree"),w3=_.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=Hn(),[h,v]=_.useState(null),p=Tt(r,C=>v(C)),$=_.useRef(null),m=_.useRef(""),{viewport:g}=f,y=t.content-t.viewport,w=Es(u),S=Es(s),E=Lh(c,10),x=C=>{if($.current){const k=C.clientX-$.current.left,P=C.clientY-$.current.top;l({x:k,y:P})}};return _.useEffect(()=>{const C=k=>{const P=k.target;(h==null?void 0:h.contains(P))&&w(k,y)};return document.addEventListener("wheel",C,{passive:!1}),()=>document.removeEventListener("wheel",C,{passive:!1})},[g,h,y,w]),_.useEffect(S,[t,S]),Pc(h,E),Pc(f.content,E),b.jsx(Yq,{value:{scrollbar:h,hasThumb:n,onThumbChange:Es(i),onThumbPointerUp:Es(o),onThumbPositionChange:S,onThumbPointerDown:Es(a)},children:b.jsx("div",{...d,ref:p,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:Vs(e.onPointerDown,C=>{C.preventDefault(),C.button===0&&(C.target.setPointerCapture(C.pointerId),$.current=h.getBoundingClientRect(),m.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x(C))}),onPointerMove:Vs(e.onPointerMove,x),onPointerUp:Vs(e.onPointerUp,C=>{const k=C.target;k.hasPointerCapture(C.pointerId)&&(C.preventDefault(),k.releasePointerCapture(C.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=m.current,$.current=null}})})}),S3=_.forwardRef((e,r)=>{const{sizes:t,onSizesChange:n,style:i,...o}=e,a=Hn(),[s,l]=_.useState(),u=_.useRef(null),c=Tt(r,u,a.onScrollbarXChange);return _.useEffect(()=>{u.current&&l(getComputedStyle(u.current))},[u]),b.jsx(w3,{"data-orientation":"horizontal",...o,ref:c,sizes:t,style:{...i,"--sa-thumb-width":`${Ay(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),b3(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:$a(s.paddingLeft),paddingEnd:$a(s.paddingRight)}})}})});S3.displayName="@mantine/core/ScrollAreaScrollbarX";const _3=_.forwardRef((e,r)=>{const{sizes:t,onSizesChange:n,style:i,...o}=e,a=Hn(),[s,l]=_.useState(),u=_.useRef(null),c=Tt(r,u,a.onScrollbarYChange);return _.useEffect(()=>{u.current&&l(window.getComputedStyle(u.current))},[]),b.jsx(w3,{...o,"data-orientation":"vertical",ref:c,sizes:t,style:{"--sa-thumb-height":`${Ay(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),b3(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:$a(s.paddingTop),paddingEnd:$a(s.paddingBottom)}})}})});_3.displayName="@mantine/core/ScrollAreaScrollbarY";const Dy=_.forwardRef((e,r)=>{const{orientation:t="vertical",...n}=e,{dir:i}=Vh(),o=Hn(),a=_.useRef(null),s=_.useRef(0),[l,u]=_.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=g3(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)=>qq(h,s.current,l,v);return t==="horizontal"?b.jsx(S3,{...d,ref:r,onThumbPositionChange:()=>{if(o.viewport&&a.current){const h=o.viewport.scrollLeft,v=JO(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"?b.jsx(_3,{...d,ref:r,onThumbPositionChange:()=>{if(o.viewport&&a.current){const h=o.viewport.scrollTop,v=JO(h,l);l.scrollbar.size===0?a.current.style.setProperty("--thumb-opacity","0"):a.current.style.setProperty("--thumb-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});Dy.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Cx=_.forwardRef((e,r)=>{const t=Hn(),{forceMount:n,...i}=e,[o,a]=_.useState(!1),s=e.orientation==="horizontal",l=Lh(()=>{if(t.viewport){const u=t.viewport.offsetWidth<t.viewport.scrollWidth,c=t.viewport.offsetHeight<t.viewport.scrollHeight;a(s?u:c)}},10);return Pc(t.viewport,l),Pc(t.content,l),n||o?b.jsx(Dy,{"data-state":o?"visible":"hidden",...i,ref:r}):null});Cx.displayName="@mantine/core/ScrollAreaScrollbarAuto";const E3=_.forwardRef((e,r)=>{const{forceMount:t,...n}=e,i=Hn(),[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?b.jsx(Cx,{"data-state":o?"visible":"hidden",...n,ref:r}):null});E3.displayName="@mantine/core/ScrollAreaScrollbarHover";const Xq=_.forwardRef((e,r)=>{const{forceMount:t,...n}=e,i=Hn(),o=e.orientation==="horizontal",[a,s]=_.useState("hidden"),l=Lh(()=>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"?b.jsx(Dy,{"data-state":a==="hidden"?"hidden":"visible",...n,ref:r,onPointerEnter:Vs(e.onPointerEnter,()=>s("interacting")),onPointerLeave:Vs(e.onPointerLeave,()=>s("idle"))}):null}),NS=_.forwardRef((e,r)=>{const{forceMount:t,...n}=e,i=Hn(),{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"?b.jsx(E3,{...n,ref:r,forceMount:t}):i.type==="scroll"?b.jsx(Xq,{...n,ref:r,forceMount:t}):i.type==="auto"?b.jsx(Cx,{...n,ref:r,forceMount:t}):i.type==="always"?b.jsx(Dy,{...n,ref:r}):null});NS.displayName="@mantine/core/ScrollAreaScrollbar";function Qq(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 x3=_.forwardRef((e,r)=>{const{style:t,...n}=e,i=Hn(),o=$3(),{onThumbPositionChange:a}=o,s=Tt(r,c=>o.onThumbChange(c)),l=_.useRef(void 0),u=Lh(()=>{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=Qq(c,a);l.current=f,a()}};return a(),c.addEventListener("scroll",d),()=>c.removeEventListener("scroll",d)}},[i.viewport,u,a]),b.jsx("div",{"data-state":o.hasThumb?"visible":"hidden",...n,ref:s,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...t},onPointerDownCapture:Vs(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:Vs(e.onPointerUp,o.onThumbPointerUp)})});x3.displayName="@mantine/core/ScrollAreaThumb";const AS=_.forwardRef((e,r)=>{const{forceMount:t,...n}=e,i=$3();return t||i.hasThumb?b.jsx(x3,{ref:r,...n}):null});AS.displayName="@mantine/core/ScrollAreaThumb";const C3=_.forwardRef(({children:e,style:r,...t},n)=>{const i=Hn(),o=Tt(n,i.onViewportChange);return b.jsx(Q,{...t,ref:o,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...r},children:b.jsx("div",{style:{minWidth:"100%",display:"table"},ref:i.onContentChange,children:e})})});C3.displayName="@mantine/core/ScrollAreaViewport";var kx={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const k3={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Jq=(e,{scrollbarSize:r})=>({root:{"--scrollarea-scrollbar-size":L(r)}}),El=me((e,r)=>{const t=J("ScrollArea",k3,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:$,scrollbars:m,onBottomReached:g,onTopReached:y,...w}=t,[S,E]=_.useState(!1),x=_e({name:"ScrollArea",props:t,classes:kx,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:u,varsResolver:Jq});return b.jsxs(m3,{type:c==="never"?"always":c,scrollHideDelay:d,ref:r,scrollbars:m,...x("root"),...w,children:[b.jsx(C3,{...f,...x("viewport",{style:f==null?void 0:f.style}),ref:h,"data-offset-scrollbars":$===!0?"xy":$||void 0,"data-scrollbars":m||void 0,onScroll:C=>{var R;(R=f==null?void 0:f.onScroll)==null||R.call(f,C),v==null||v({x:C.currentTarget.scrollLeft,y:C.currentTarget.scrollTop});const{scrollTop:k,scrollHeight:P,clientHeight:T}=C.currentTarget;k-(P-T)>=0&&(g==null||g()),k===0&&(y==null||y())},children:p}),(m==="xy"||m==="x")&&b.jsx(NS,{...x("scrollbar"),orientation:"horizontal","data-hidden":c==="never"||void 0,forceMount:!0,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:b.jsx(AS,{...x("thumb")})}),(m==="xy"||m==="y")&&b.jsx(NS,{...x("scrollbar"),orientation:"vertical","data-hidden":c==="never"||void 0,forceMount:!0,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:b.jsx(AS,{...x("thumb")})}),b.jsx(Uq,{...x("corner"),"data-hovered":S||void 0,"data-hidden":c==="never"||void 0})]})});El.displayName="@mantine/core/ScrollArea";const Px=me((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:$,vars:m,onBottomReached:g,onTopReached:y,...w}=J("ScrollAreaAutosize",k3,e);return b.jsx(Q,{...w,ref:r,style:[{display:"flex",overflow:"auto"},$],children:b.jsx(Q,{style:{display:"flex",flexDirection:"column",flex:1},children:b.jsx(El,{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:m,scrollbars:p,onBottomReached:g,onTopReached:y,children:t})})})});El.classes=kx;Px.displayName="@mantine/core/ScrollAreaAutosize";Px.classes=kx;El.Autosize=Px;var P3={root:"m_87cf2631"};const Zq={__staticSelector:"UnstyledButton"},Za=tn((e,r)=>{const t=J("UnstyledButton",Zq,e),{className:n,component:i="button",__staticSelector:o,unstyled:a,classNames:s,styles:l,style:u,...c}=t,d=_e({name:o,props:t,classes:P3,className:n,style:u,classNames:s,styles:l,unstyled:a});return b.jsx(Q,{...d("root",{focusable:!0}),component:i,ref:r,type:i==="button"?"button":void 0,...c})});Za.classes=P3;Za.displayName="@mantine/core/UnstyledButton";var O3={root:"m_515a97f8"};const eY={},Ox=me((e,r)=>{const t=J("VisuallyHidden",eY,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,...u}=t,c=_e({name:"VisuallyHidden",classes:O3,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s});return b.jsx(Q,{component:"span",ref:r,...c("root"),...u})});Ox.classes=O3;Ox.displayName="@mantine/core/VisuallyHidden";var T3={root:"m_1b7284a3"};const tY={},rY=(e,{radius:r,shadow:t})=>({root:{"--paper-radius":r===void 0?void 0:pr(r),"--paper-shadow":Kj(t)}}),Tx=tn((e,r)=>{const t=J("Paper",tY,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=_e({name:"Paper",props:t,classes:T3,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:u,varsResolver:rY});return b.jsx(Q,{ref:r,mod:[{"data-with-border":l},h],...p("root"),variant:f,...v})});Tx.classes=T3;Tx.displayName="@mantine/core/Paper";function Fy(){return typeof window<"u"}function Jc(e){return I3(e)?(e.nodeName||"").toLowerCase():"#document"}function vn(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function to(e){var r;return(r=(I3(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function I3(e){return Fy()?e instanceof Node||e instanceof vn(e).Node:!1}function kr(e){return Fy()?e instanceof Element||e instanceof vn(e).Element:!1}function Zi(e){return Fy()?e instanceof HTMLElement||e instanceof vn(e).HTMLElement:!1}function ZO(e){return!Fy()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vn(e).ShadowRoot}function Uh(e){const{overflow:r,overflowX:t,overflowY:n,display:i}=bi(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+t)&&!["inline","contents"].includes(i)}function nY(e){return["table","td","th"].includes(Jc(e))}function jy(e){return[":popover-open",":modal"].some(r=>{try{return e.matches(r)}catch{return!1}})}function Ix(e){const r=Rx(),t=kr(e)?bi(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!r&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!r&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function iY(e){let r=Ha(e);for(;Zi(r)&&!Oc(r);){if(Ix(r))return r;if(jy(r))return null;r=Ha(r)}return null}function Rx(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Oc(e){return["html","body","#document"].includes(Jc(e))}function bi(e){return vn(e).getComputedStyle(e)}function Ly(e){return kr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ha(e){if(Jc(e)==="html")return e;const r=e.assignedSlot||e.parentNode||ZO(e)&&e.host||to(e);return ZO(r)?r.host:r}function R3(e){const r=Ha(e);return Oc(r)?e.ownerDocument?e.ownerDocument.body:e.body:Zi(r)&&Uh(r)?r:R3(r)}function lh(e,r,t){var n;r===void 0&&(r=[]),t===void 0&&(t=!0);const i=R3(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=vn(i);if(o){const s=DS(a);return r.concat(a,a.visualViewport||[],Uh(i)?i:[],s&&t?lh(s):[])}return r.concat(i,lh(i,[],t))}function DS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const $i=Math.min,fr=Math.max,Ig=Math.round,Cp=Math.floor,qi=e=>({x:e,y:e}),oY={left:"right",right:"left",bottom:"top",top:"bottom"},aY={start:"end",end:"start"};function FS(e,r,t){return fr(e,$i(r,t))}function No(e,r){return typeof e=="function"?e(r):e}function wi(e){return e.split("-")[0]}function Zc(e){return e.split("-")[1]}function Mx(e){return e==="x"?"y":"x"}function Nx(e){return e==="y"?"height":"width"}function Ao(e){return["top","bottom"].includes(wi(e))?"y":"x"}function Ax(e){return Mx(Ao(e))}function sY(e,r,t){t===void 0&&(t=!1);const n=Zc(e),i=Ax(e),o=Nx(i);let a=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[o]>r.floating[o]&&(a=Rg(a)),[a,Rg(a)]}function lY(e){const r=Rg(e);return[jS(e),r,jS(r)]}function jS(e){return e.replace(/start|end/g,r=>aY[r])}function uY(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 cY(e,r,t,n){const i=Zc(e);let o=uY(wi(e),t==="start",n);return i&&(o=o.map(a=>a+"-"+i),r&&(o=o.concat(o.map(jS)))),o}function Rg(e){return e.replace(/left|right|bottom|top/g,r=>oY[r])}function dY(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dx(e){return typeof e!="number"?dY(e):{top:e,right:e,bottom:e,left:e}}function Tc(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 eT(e,r,t){let{reference:n,floating:i}=e;const o=Ao(r),a=Ax(r),s=Nx(a),l=wi(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(Zc(r)){case"start":h[a]-=f*(t&&u?-1:1);break;case"end":h[a]+=f*(t&&u?-1:1);break}return h}const fY=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}=eT(u,n,l),f=n,h={},v=0;for(let p=0;p<s.length;p++){const{name:$,fn:m}=s[p],{x:g,y,data:w,reset:S}=await m({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=y??d,h={...h,[$]:{...h[$],...w}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await a.getElementRects({reference:e,floating:r,strategy:i}):S.rects),{x:c,y:d}=eT(u,f,l)),p=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function Fx(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}=No(r,e),v=Dx(h),$=s[f?d==="floating"?"reference":"floating":d],m=Tc(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement($)))==null||t?$:$.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,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),w=await(o.isElement==null?void 0:o.isElement(y))?await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},S=Tc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(m.top-S.top+v.top)/w.y,bottom:(S.bottom-m.bottom+v.bottom)/w.y,left:(m.left-S.left+v.left)/w.x,right:(S.right-m.right+v.right)/w.x}}const hY=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}=No(e,r)||{};if(u==null)return{};const d=Dx(c),f={x:t,y:n},h=Ax(i),v=Nx(h),p=await a.getDimensions(u),$=h==="y",m=$?"top":"left",g=$?"bottom":"right",y=$?"clientHeight":"clientWidth",w=o.reference[v]+o.reference[h]-f[h]-o.floating[v],S=f[h]-o.reference[h],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let x=E?E[y]:0;(!x||!await(a.isElement==null?void 0:a.isElement(E)))&&(x=s.floating[y]||o.floating[v]);const C=w/2-S/2,k=x/2-p[v]/2-1,P=$i(d[m],k),T=$i(d[g],k),R=P,N=x-p[v]-T,F=x/2-p[v]/2+C,W=FS(R,F,N),M=!l.arrow&&Zc(i)!=null&&F!==W&&o.reference[v]/2-(F<R?P:T)-p[v]/2<0,j=M?F<R?F-R:F-N:0;return{[h]:f[h]+j,data:{[h]:W,centerOffset:F-W-j,...M&&{alignmentOffset:j}},reset:M}}}),vY=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,...$}=No(e,r);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const m=wi(i),g=Ao(s),y=wi(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(y||!p?[Rg(s)]:lY(s)),E=v!=="none";!f&&E&&S.push(...cY(s,p,v,w));const x=[s,...S],C=await Fx(r,$),k=[];let P=((n=o.flip)==null?void 0:n.overflows)||[];if(c&&k.push(C[m]),d){const F=sY(i,a,w);k.push(C[F[0]],C[F[1]])}if(P=[...P,{placement:i,overflows:k}],!k.every(F=>F<=0)){var T,R;const F=(((T=o.flip)==null?void 0:T.index)||0)+1,W=x[F];if(W)return{data:{index:F,overflows:P},reset:{placement:W}};let M=(R=P.filter(j=>j.overflows[0]<=0).sort((j,O)=>j.overflows[1]-O.overflows[1])[0])==null?void 0:R.placement;if(!M)switch(h){case"bestFit":{var N;const j=(N=P.filter(O=>{if(E){const D=Ao(O.placement);return D===g||D==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(D=>D>0).reduce((D,z)=>D+z,0)]).sort((O,D)=>O[1]-D[1])[0])==null?void 0:N[0];j&&(M=j);break}case"initialPlacement":M=s;break}if(i!==M)return{reset:{placement:M}}}return{}}}};function M3(e){const r=$i(...e.map(o=>o.left)),t=$i(...e.map(o=>o.top)),n=fr(...e.map(o=>o.right)),i=fr(...e.map(o=>o.bottom));return{x:r,y:t,width:n-r,height:i-t}}function pY(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=>Tc(M3(i)))}const mY=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}=No(e,r),c=Array.from(await(o.getClientRects==null?void 0:o.getClientRects(n.reference))||[]),d=pY(c),f=Tc(M3(c)),h=Dx(s);function v(){if(d.length===2&&d[0].left>d[1].right&&l!=null&&u!=null)return d.find($=>l>$.left-h.left&&l<$.right+h.right&&u>$.top-h.top&&u<$.bottom+h.bottom)||f;if(d.length>=2){if(Ao(t)==="y"){const P=d[0],T=d[d.length-1],R=wi(t)==="top",N=P.top,F=T.bottom,W=R?P.left:T.left,M=R?P.right:T.right,j=M-W,O=F-N;return{top:N,bottom:F,left:W,right:M,width:j,height:O,x:W,y:N}}const $=wi(t)==="left",m=fr(...d.map(P=>P.right)),g=$i(...d.map(P=>P.left)),y=d.filter(P=>$?P.left===g:P.right===m),w=y[0].top,S=y[y.length-1].bottom,E=g,x=m,C=x-E,k=S-w;return{top:w,bottom:S,left:E,right:x,width:C,height:k,x:E,y:w}}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 gY(e,r){const{placement:t,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=wi(t),s=Zc(t),l=Ao(t)==="y",u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d=No(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 yY=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 gY(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}}}}},bY=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:$=>{let{x:m,y:g}=$;return{x:m,y:g}}},...l}=No(e,r),u={x:t,y:n},c=await Fx(r,l),d=Ao(wi(i)),f=Mx(d);let h=u[f],v=u[d];if(o){const $=f==="y"?"top":"left",m=f==="y"?"bottom":"right",g=h+c[$],y=h-c[m];h=FS(g,h,y)}if(a){const $=d==="y"?"top":"left",m=d==="y"?"bottom":"right",g=v+c[$],y=v-c[m];v=FS(g,v,y)}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}}}}}},$Y=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}=No(e,r),c={x:t,y:n},d=Ao(i),f=Mx(d);let h=c[f],v=c[d];const p=No(s,r),$=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const y=f==="y"?"height":"width",w=o.reference[f]-o.floating[y]+$.mainAxis,S=o.reference[f]+o.reference[y]-$.mainAxis;h<w?h=w:h>S&&(h=S)}if(u){var m,g;const y=f==="y"?"width":"height",w=["top","left"].includes(wi(i)),S=o.reference[d]-o.floating[y]+(w&&((m=a.offset)==null?void 0:m[d])||0)+(w?0:$.crossAxis),E=o.reference[d]+o.reference[y]+(w?0:((g=a.offset)==null?void 0:g[d])||0)-(w?$.crossAxis:0);v<S?v=S:v>E&&(v=E)}return{[f]:h,[d]:v}}}},wY=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}=No(e,r),c=await Fx(r,u),d=wi(i),f=Zc(i),h=Ao(i)==="y",{width:v,height:p}=o.floating;let $,m;d==="top"||d==="bottom"?($=d,m=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(m=d,$=f==="end"?"top":"bottom");const g=p-c.top-c.bottom,y=v-c.left-c.right,w=$i(p-c[$],g),S=$i(v-c[m],y),E=!r.middlewareData.shift;let x=w,C=S;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(C=y),(n=r.middlewareData.shift)!=null&&n.enabled.y&&(x=g),E&&!f){const P=fr(c.left,0),T=fr(c.right,0),R=fr(c.top,0),N=fr(c.bottom,0);h?C=v-2*(P!==0||T!==0?P+T:fr(c.left,c.right)):x=p-2*(R!==0||N!==0?R+N:fr(c.top,c.bottom))}await l({...r,availableWidth:C,availableHeight:x});const k=await a.getDimensions(s.floating);return v!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function N3(e){const r=bi(e);let t=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const i=Zi(e),o=i?e.offsetWidth:t,a=i?e.offsetHeight:n,s=Ig(t)!==o||Ig(n)!==a;return s&&(t=o,n=a),{width:t,height:n,$:s}}function jx(e){return kr(e)?e:e.contextElement}function Ju(e){const r=jx(e);if(!Zi(r))return qi(1);const t=r.getBoundingClientRect(),{width:n,height:i,$:o}=N3(r);let a=(o?Ig(t.width):t.width)/n,s=(o?Ig(t.height):t.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const SY=qi(0);function A3(e){const r=vn(e);return!Rx()||!r.visualViewport?SY:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function _Y(e,r,t){return r===void 0&&(r=!1),!t||r&&t!==vn(e)?!1:r}function al(e,r,t,n){r===void 0&&(r=!1),t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=jx(e);let a=qi(1);r&&(n?kr(n)&&(a=Ju(n)):a=Ju(e));const s=_Y(o,t,n)?A3(o):qi(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=vn(o),h=n&&kr(n)?vn(n):n;let v=f,p=DS(v);for(;p&&n&&h!==v;){const $=Ju(p),m=p.getBoundingClientRect(),g=bi(p),y=m.left+(p.clientLeft+parseFloat(g.paddingLeft))*$.x,w=m.top+(p.clientTop+parseFloat(g.paddingTop))*$.y;l*=$.x,u*=$.y,c*=$.x,d*=$.y,l+=y,u+=w,v=vn(p),p=DS(v)}}return Tc({width:c,height:d,x:l,y:u})}function Lx(e,r){const t=Ly(e).scrollLeft;return r?r.left+t:al(to(e)).left+t}function D3(e,r,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),i=n.left+r.scrollLeft-(t?0:Lx(e,n)),o=n.top+r.scrollTop;return{x:i,y:o}}function EY(e){let{elements:r,rect:t,offsetParent:n,strategy:i}=e;const o=i==="fixed",a=to(n),s=r?jy(r.floating):!1;if(n===a||s&&o)return t;let l={scrollLeft:0,scrollTop:0},u=qi(1);const c=qi(0),d=Zi(n);if((d||!d&&!o)&&((Jc(n)!=="body"||Uh(a))&&(l=Ly(n)),Zi(n))){const h=al(n);u=Ju(n),c.x=h.x+n.clientLeft,c.y=h.y+n.clientTop}const f=a&&!d&&!o?D3(a,l,!0):qi(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:t.y*u.y-l.scrollTop*u.y+c.y+f.y}}function xY(e){return Array.from(e.getClientRects())}function CY(e){const r=to(e),t=Ly(e),n=e.ownerDocument.body,i=fr(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),o=fr(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+Lx(e);const s=-t.scrollTop;return bi(n).direction==="rtl"&&(a+=fr(r.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}function kY(e,r){const t=vn(e),n=to(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=Rx();(!u||u&&r==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function PY(e,r){const t=al(e,!0,r==="fixed"),n=t.top+e.clientTop,i=t.left+e.clientLeft,o=Zi(e)?Ju(e):qi(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 tT(e,r,t){let n;if(r==="viewport")n=kY(e,t);else if(r==="document")n=CY(to(e));else if(kr(r))n=PY(r,t);else{const i=A3(e);n={x:r.x-i.x,y:r.y-i.y,width:r.width,height:r.height}}return Tc(n)}function F3(e,r){const t=Ha(e);return t===r||!kr(t)||Oc(t)?!1:bi(t).position==="fixed"||F3(t,r)}function OY(e,r){const t=r.get(e);if(t)return t;let n=lh(e,[],!1).filter(s=>kr(s)&&Jc(s)!=="body"),i=null;const o=bi(e).position==="fixed";let a=o?Ha(e):e;for(;kr(a)&&!Oc(a);){const s=bi(a),l=Ix(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Uh(a)&&!l&&F3(e,a))?n=n.filter(c=>c!==a):i=s,a=Ha(a)}return r.set(e,n),n}function TY(e){let{element:r,boundary:t,rootBoundary:n,strategy:i}=e;const a=[...t==="clippingAncestors"?jy(r)?[]:OY(r,this._c):[].concat(t),n],s=a[0],l=a.reduce((u,c)=>{const d=tT(r,c,i);return u.top=fr(d.top,u.top),u.right=$i(d.right,u.right),u.bottom=$i(d.bottom,u.bottom),u.left=fr(d.left,u.left),u},tT(r,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function IY(e){const{width:r,height:t}=N3(e);return{width:r,height:t}}function RY(e,r,t){const n=Zi(r),i=to(r),o=t==="fixed",a=al(e,!0,o,r);let s={scrollLeft:0,scrollTop:0};const l=qi(0);if(n||!n&&!o)if((Jc(r)!=="body"||Uh(i))&&(s=Ly(r)),n){const f=al(r,!0,o,r);l.x=f.x+r.clientLeft,l.y=f.y+r.clientTop}else i&&(l.x=Lx(i));const u=i&&!n&&!o?D3(i,s):qi(0),c=a.left+s.scrollLeft-l.x-u.x,d=a.top+s.scrollTop-l.y-u.y;return{x:c,y:d,width:a.width,height:a.height}}function c0(e){return bi(e).position==="static"}function rT(e,r){if(!Zi(e)||bi(e).position==="fixed")return null;if(r)return r(e);let t=e.offsetParent;return to(e)===t&&(t=t.ownerDocument.body),t}function j3(e,r){const t=vn(e);if(jy(e))return t;if(!Zi(e)){let i=Ha(e);for(;i&&!Oc(i);){if(kr(i)&&!c0(i))return i;i=Ha(i)}return t}let n=rT(e,r);for(;n&&nY(n)&&c0(n);)n=rT(n,r);return n&&Oc(n)&&c0(n)&&!Ix(n)?t:n||iY(e)||t}const MY=async function(e){const r=this.getOffsetParent||j3,t=this.getDimensions,n=await t(e.floating);return{reference:RY(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function NY(e){return bi(e).direction==="rtl"}const AY={convertOffsetParentRelativeRectToViewportRelativeRect:EY,getDocumentElement:to,getClippingRect:TY,getOffsetParent:j3,getElementRects:MY,getClientRects:xY,getDimensions:IY,getScale:Ju,isElement:kr,isRTL:NY};function L3(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function DY(e,r){let t=null,n;const i=to(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 u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(s||r(),!f||!h)return;const v=Cp(d),p=Cp(i.clientWidth-(c+f)),$=Cp(i.clientHeight-(d+h)),m=Cp(c),y={rootMargin:-v+"px "+-p+"px "+-$+"px "+-m+"px",threshold:fr(0,$i(1,l))||1};let w=!0;function S(E){const x=E[0].intersectionRatio;if(x!==l){if(!w)return a();x?a(!1,x):n=setTimeout(()=>{a(!1,1e-7)},1e3)}x===1&&!L3(u,e.getBoundingClientRect())&&a(),w=!1}try{t=new IntersectionObserver(S,{...y,root:i.ownerDocument})}catch{t=new IntersectionObserver(S,y)}t.observe(e)}return a(!0),o}function FY(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=jx(e),c=i||o?[...u?lh(u):[],...lh(r)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",t,{passive:!0}),o&&m.addEventListener("resize",t)});const d=u&&s?DY(u,t):null;let f=-1,h=null;a&&(h=new ResizeObserver(m=>{let[g]=m;g&&g.target===u&&h&&(h.unobserve(r),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(r)})),t()}),u&&!l&&h.observe(u),h.observe(r));let v,p=l?al(e):null;l&&$();function $(){const m=al(e);p&&!L3(p,m)&&t(),p=m,v=requestAnimationFrame($)}return t(),()=>{var m;c.forEach(g=>{i&&g.removeEventListener("scroll",t),o&&g.removeEventListener("resize",t)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const jY=yY,LY=bY,BY=vY,zY=wY,nT=hY,HY=mY,WY=$Y,VY=(e,r,t)=>{const n=new Map,i={platform:AY,...t},o={...i.platform,_c:n};return fY(e,r,{...i,platform:o})};var Mm=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Mg(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(!Mg(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)&&!Mg(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}function B3(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iT(e,r){const t=B3(e);return Math.round(r*t)/t}function d0(e){const r=_.useRef(e);return Mm(()=>{r.current=e}),r}function UY(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);Mg(f,n)||h(n);const[v,p]=_.useState(null),[$,m]=_.useState(null),g=_.useCallback(O=>{O!==E.current&&(E.current=O,p(O))},[]),y=_.useCallback(O=>{O!==x.current&&(x.current=O,m(O))},[]),w=o||v,S=a||$,E=_.useRef(null),x=_.useRef(null),C=_.useRef(c),k=l!=null,P=d0(l),T=d0(i),R=d0(u),N=_.useCallback(()=>{if(!E.current||!x.current)return;const O={placement:r,strategy:t,middleware:f};T.current&&(O.platform=T.current),VY(E.current,x.current,O).then(D=>{const z={...D,isPositioned:R.current!==!1};F.current&&!Mg(C.current,z)&&(C.current=z,Fh.flushSync(()=>{d(z)}))})},[f,r,t,T,R]);Mm(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[u]);const F=_.useRef(!1);Mm(()=>(F.current=!0,()=>{F.current=!1}),[]),Mm(()=>{if(w&&(E.current=w),S&&(x.current=S),w&&S){if(P.current)return P.current(w,S,N);N()}},[w,S,N,P,k]);const W=_.useMemo(()=>({reference:E,floating:x,setReference:g,setFloating:y}),[g,y]),M=_.useMemo(()=>({reference:w,floating:S}),[w,S]),j=_.useMemo(()=>{const O={position:t,left:0,top:0};if(!M.floating)return O;const D=iT(M.floating,c.x),z=iT(M.floating,c.y);return s?{...O,transform:"translate("+D+"px, "+z+"px)",...B3(M.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:D,top:z}},[t,s,M.floating,c.x,c.y]);return _.useMemo(()=>({...c,update:N,refs:W,elements:M,floatingStyles:j}),[c,N,W,M,j])}const KY=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?nT({element:n.current,padding:i}).fn(t):{}:n?nT({element:n,padding:i}).fn(t):{}}}},GY=(e,r)=>({...jY(e),options:[e,r]}),qY=(e,r)=>({...LY(e),options:[e,r]}),oT=(e,r)=>({...WY(e),options:[e,r]}),aT=(e,r)=>({...BY(e),options:[e,r]}),YY=(e,r)=>({...zY(e),options:[e,r]}),sT=(e,r)=>({...HY(e),options:[e,r]}),XY=(e,r)=>({...KY(e),options:[e,r]}),z3={...w7},QY=z3.useInsertionEffect,JY=QY||(e=>e());function ZY(e){const r=_.useRef(()=>{});return JY(()=>{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 LS=typeof document<"u"?_.useLayoutEffect:_.useEffect;let lT=!1,eX=0;const uT=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+eX++;function tX(){const[e,r]=_.useState(()=>lT?uT():void 0);return LS(()=>{e==null&&r(uT())},[]),_.useEffect(()=>{lT=!0},[]),e}const rX=z3.useId,nX=rX||tX;function iX(){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 oX=_.createContext(null),aX=_.createContext(null),sX=()=>{var e;return((e=_.useContext(oX))==null?void 0:e.id)||null},lX=()=>_.useContext(aX);function uX(e){const{open:r=!1,onOpenChange:t,elements:n}=e,i=nX(),o=_.useRef({}),[a]=_.useState(()=>iX()),s=sX()!=null,[l,u]=_.useState(n.reference),c=ZY((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 cX(e){e===void 0&&(e={});const{nodeId:r}=e,t=uX({...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.domReference)||o,d=_.useRef(null),f=lX();LS(()=>{c&&(d.current=c)},[c]);const h=UY({...e,elements:{...i,...s&&{reference:s}}}),v=_.useCallback(y=>{const w=kr(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),contextElement:y}:y;l(w),h.refs.setReference(w)},[h.refs]),p=_.useCallback(y=>{(kr(y)||y===null)&&(d.current=y,a(y)),(kr(h.refs.reference.current)||h.refs.reference.current===null||y!==null&&!kr(y))&&h.refs.setReference(y)},[h.refs]),$=_.useMemo(()=>({...h.refs,setReference:p,setPositionReference:v,domReference:d}),[h.refs,p,v]),m=_.useMemo(()=>({...h.elements,domReference:c}),[h.elements,c]),g=_.useMemo(()=>({...h,...n,refs:$,elements:m,nodeId:r}),[h,$,m,r,n]);return LS(()=>{n.dataRef.current.floatingContext=g;const y=f==null?void 0:f.nodesRef.current.find(w=>w.id===r);y&&(y.context=g)}),_.useMemo(()=>({...h,context:g,refs:$,elements:m}),[h,$,m,g])}function dX(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 cT(e,r,t,n){return e==="center"||n==="center"?{top:r}:e==="end"?{bottom:t}:e==="start"?{top:t}:{}}function dT(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 fX={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function hX({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",[fX[l]]:n},d=-r/2;return l==="left"?{...c,...cT(u,a,t,i),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:l==="right"?{...c,...cT(u,a,t,i),left:d,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:l==="top"?{...c,...dT(u,o,t,i,s),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:l==="bottom"?{...c,...dT(u,o,t,i,s),top:d,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const H3=_.forwardRef(({position:e,arrowSize:r,arrowOffset:t,arrowRadius:n,arrowPosition:i,visible:o,arrowX:a,arrowY:s,style:l,...u},c)=>{const{dir:d}=Vh();return o?b.jsx("div",{...u,ref:c,style:{...l,...hX({position:e,arrowSize:r,arrowOffset:t,arrowRadius:n,arrowPosition:i,dir:d,arrowX:a,arrowY:s})}}):null});H3.displayName="@mantine/core/FloatingArrow";var W3={root:"m_9814e45f"};const vX={zIndex:My("modal")},pX=(e,{gradient:r,color:t,backgroundOpacity:n,blur:i,radius:o,zIndex:a})=>({root:{"--overlay-bg":r||(t!==void 0||n!==void 0)&&Mi(t||"#000",n??.6)||void 0,"--overlay-filter":i?`blur(${L(i)})`:void 0,"--overlay-radius":o===void 0?void 0:pr(o),"--overlay-z-index":a==null?void 0:a.toString()}}),Bx=tn((e,r)=>{const t=J("Overlay",vX,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,fixed:u,center:c,children:d,radius:f,zIndex:h,gradient:v,blur:p,color:$,backgroundOpacity:m,mod:g,...y}=t,w=_e({name:"Overlay",props:t,classes:W3,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:pX});return b.jsx(Q,{ref:r,...w("root"),mod:[{center:c,fixed:u},g],...y,children:d})});Bx.classes=W3;Bx.displayName="@mantine/core/Overlay";function mX(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 gX={},V3=_.forwardRef((e,r)=>{const{children:t,target:n,...i}=J("Portal",gX,e),[o,a]=_.useState(!1),s=_.useRef(null);return Bh(()=>(a(!0),s.current=n?typeof n=="string"?document.querySelector(n):n:mX(i),OS(r,s.current),!n&&s.current&&document.body.appendChild(s.current),()=>{!n&&s.current&&document.body.removeChild(s.current)}),[n]),!o||!s.current?null:Fh.createPortal(b.jsx(b.Fragment,{children:t}),s.current)});V3.displayName="@mantine/core/Portal";function Kh({withinPortal:e=!0,children:r,...t}){return e?b.jsx(V3,{...t,children:r}):b.jsx(b.Fragment,{children:r})}Kh.displayName="@mantine/core/OptionalPortal";const Qd=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),kp={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},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(-20px) 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(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) 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:{...Qd("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Qd("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Qd("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Qd("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Qd("top"),common:{transformOrigin:"top right"}}},fT={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function yX({transition:e,state:r,duration:t,timingFunction:n}){const i={transitionDuration:`${t}ms`,transitionTimingFunction:n};return typeof e=="string"?e in kp?{transitionProperty:kp[e].transitionProperty,...i,...kp[e].common,...kp[e][fT[r]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[fT[r]]}}function bX({duration:e,exitDuration:r,timingFunction:t,mounted:n,onEnter:i,onExit:o,onEntered:a,onExited:s,enterDelay:l,exitDelay:u}){const c=Mr(),d=yx(),f=c.respectReducedMotion?d:!1,[h,v]=_.useState(f?0:e),[p,$]=_.useState(n?"entered":"exited"),m=_.useRef(-1),g=_.useRef(-1),y=_.useRef(-1),w=E=>{const x=E?i:o,C=E?a:s;window.clearTimeout(m.current);const k=f?0:E?e:r;v(k),k===0?(typeof x=="function"&&x(),typeof C=="function"&&C(),$(E?"entered":"exited")):y.current=requestAnimationFrame(()=>{cf.flushSync(()=>{$(E?"pre-entering":"pre-exiting")}),y.current=requestAnimationFrame(()=>{typeof x=="function"&&x(),$(E?"entering":"exiting"),m.current=window.setTimeout(()=>{typeof C=="function"&&C(),$(E?"entered":"exited")},k)})})},S=E=>{if(window.clearTimeout(g.current),typeof(E?l:u)!="number"){w(E);return}g.current=window.setTimeout(()=>{w(E)},E?l:u)};return Mo(()=>{S(n)},[n]),_.useEffect(()=>()=>{window.clearTimeout(m.current),cancelAnimationFrame(y.current)},[]),{transitionDuration:h,transitionStatus:p,transitionTimingFunction:t||"ease"}}function ed({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}=bX({mounted:i,exitDuration:n,duration:t,timingFunction:a,onExit:s,onEntered:l,onEnter:u,onExited:c,enterDelay:d,exitDelay:f});return h===0?i?b.jsx(b.Fragment,{children:o({})}):e?o({display:"none"}):null:v==="exited"?e?o({display:"none"}):null:b.jsx(b.Fragment,{children:o(yX({transition:r,duration:h,state:v,timingFunction:p}))})}ed.displayName="@mantine/core/Transition";const[$X,U3]=eo("Popover component was not found in the tree");function zx({children:e,active:r=!0,refProp:t="ref",innerRef:n}){const i=hG(r),o=Tt(i,n);return Qc(e)?_.cloneElement(e,{[t]:o}):e}function K3(e){return b.jsx(Ox,{tabIndex:-1,"data-autofocus":!0,...e})}zx.displayName="@mantine/core/FocusTrap";K3.displayName="@mantine/core/FocusTrapInitialFocus";zx.InitialFocus=K3;var G3={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const wX={},Gh=me((e,r)=>{var $,m,g,y;const t=J("PopoverDropdown",wX,e),{className:n,style:i,vars:o,children:a,onKeyDownCapture:s,variant:l,classNames:u,styles:c,...d}=t,f=U3(),h=sG({opened:f.opened,shouldReturnFocus:f.returnFocus}),v=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},p=Tt(r,f.floating);return f.disabled?null:b.jsx(Kh,{...f.portalProps,withinPortal:f.withinPortal,children:b.jsx(ed,{mounted:f.opened,...f.transitionProps,transition:(($=f.transitionProps)==null?void 0:$.transition)||"fade",duration:((m=f.transitionProps)==null?void 0:m.duration)??150,keepMounted:f.keepMounted,exitDuration:typeof((g=f.transitionProps)==null?void 0:g.exitDuration)=="number"?f.transitionProps.exitDuration:(y=f.transitionProps)==null?void 0:y.duration,children:w=>b.jsx(zx,{active:f.trapFocus&&f.opened,innerRef:p,children:b.jsxs(Q,{...v,...d,variant:l,onKeyDownCapture:eG(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:[{...w,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:L(f.width)},f.resolvedStyles.dropdown,c==null?void 0:c.dropdown,i]}),children:[a,b.jsx(H3,{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})})]})})})})});Gh.classes=G3;Gh.displayName="@mantine/core/PopoverDropdown";const SX={refProp:"ref",popupType:"dialog"},By=me((e,r)=>{const{children:t,refProp:n,popupType:i,...o}=J("PopoverTarget",SX,e);if(!Qc(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=U3(),l=Tt(s.reference,t3(t),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:Ae(s.targetProps.className,a.className,t.props.className),[n]:l,...s.controlled?null:{onClick:s.onToggle}})});By.displayName="@mantine/core/PopoverTarget";function _X({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 FY(r.refs.reference.current,r.refs.floating.current,r.update)},[r.refs.reference.current,r.refs.floating.current,e,i,t]),Mo(()=>{r.update()},n),Mo(()=>{o(a=>a+1)},[e])}function EX(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 xX(e,r){const t=EX(e.middlewares),n=[GY(e.offset)];return t.shift&&n.push(qY(typeof t.shift=="boolean"?{limiter:oT(),padding:5}:{limiter:oT(),padding:5,...t.shift})),t.flip&&n.push(typeof t.flip=="boolean"?aT():aT(t.flip)),t.inline&&n.push(typeof t.inline=="boolean"?sT():sT(t.inline)),n.push(XY({element:e.arrowRef,padding:e.arrowOffset})),(t.size||e.width==="target")&&n.push(YY({...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 CX(e){const[r,t]=zn({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=_.useRef(r),i=()=>{r&&t(!1)},o=()=>t(!r),a=cX({strategy:e.strategy,placement:e.position,middleware:xX(e,()=>a)});return _X({opened:r,position:e.position,positionDependencies:e.positionDependencies||[],floating:a}),Mo(()=>{var s;(s=e.onPositionChange)==null||s.call(e,a.placement)},[a.placement]),Mo(()=>{var s,l;r!==n.current&&(r?(l=e.onOpen)==null||l.call(e):(s=e.onClose)==null||s.call(e)),n.current=r},[r,e.onClose,e.onOpen]),{floating:a,controlled:typeof e.opened=="boolean",opened:r,onClose:i,onToggle:o}}const kX={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,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:My("popover"),__staticSelector:"Popover",width:"max-content"},PX=(e,{radius:r,shadow:t})=>({dropdown:{"--popover-radius":r===void 0?void 0:pr(r),"--popover-shadow":Kj(t)}});function yn(e){var sr,Xn,Xo,Qn,Nt,Ci;const r=J("Popover",kX,e),{children:t,position:n,offset:i,onPositionChange:o,positionDependencies:a,opened:s,transitionProps:l,onExitTransitionEnd:u,onEnterTransitionEnd:c,width:d,middlewares:f,withArrow:h,arrowSize:v,arrowOffset:p,arrowRadius:$,arrowPosition:m,unstyled:g,classNames:y,styles:w,closeOnClickOutside:S,withinPortal:E,portalProps:x,closeOnEscape:C,clickOutsideEvents:k,trapFocus:P,onClose:T,onOpen:R,onChange:N,zIndex:F,radius:W,shadow:M,id:j,defaultOpened:O,__staticSelector:D,withRoles:z,disabled:G,returnFocus:K,variant:ee,keepMounted:le,vars:se,floatingStrategy:de,withOverlay:ge,overlayProps:oe,...V}=r,H=_e({name:D,props:r,classes:G3,classNames:y,styles:w,unstyled:g,rootSelector:"dropdown",vars:se,varsResolver:PX}),{resolvedStyles:U}=Hh({classNames:y,styles:w,props:r}),te=_.useRef(null),[ce,ie]=_.useState(null),[ke,Ee]=_.useState(null),{dir:xe}=Vh(),tt=Sl(j),Te=CX({middlewares:f,width:d,position:dX(xe,n),offset:typeof i=="number"?i+(h?v/2:0):i,arrowRef:te,arrowOffset:p,onPositionChange:o,positionDependencies:a,opened:s,defaultOpened:O,onChange:N,onOpen:R,onClose:T,strategy:de});qj(()=>S&&Te.onClose(),k,[ce,ke]);const jt=_.useCallback(wt=>{ie(wt),Te.floating.refs.setReference(wt)},[Te.floating.refs.setReference]),Xe=_.useCallback(wt=>{Ee(wt),Te.floating.refs.setFloating(wt)},[Te.floating.refs.setFloating]),Lt=_.useCallback(()=>{var wt;(wt=l==null?void 0:l.onExited)==null||wt.call(l),u==null||u()},[l==null?void 0:l.onExited,u]),Md=_.useCallback(()=>{var wt;(wt=l==null?void 0:l.onEntered)==null||wt.call(l),c==null||c()},[l==null?void 0:l.onEntered,c]);return b.jsxs($X,{value:{returnFocus:K,disabled:G,controlled:Te.controlled,reference:jt,floating:Xe,x:Te.floating.x,y:Te.floating.y,arrowX:(Xo=(Xn=(sr=Te.floating)==null?void 0:sr.middlewareData)==null?void 0:Xn.arrow)==null?void 0:Xo.x,arrowY:(Ci=(Nt=(Qn=Te.floating)==null?void 0:Qn.middlewareData)==null?void 0:Nt.arrow)==null?void 0:Ci.y,opened:Te.opened,arrowRef:te,transitionProps:{...l,onExited:Lt,onEntered:Md},width:d,withArrow:h,arrowSize:v,arrowOffset:p,arrowRadius:$,arrowPosition:m,placement:Te.floating.placement,trapFocus:P,withinPortal:E,portalProps:x,zIndex:F,radius:W,shadow:M,closeOnEscape:C,onClose:Te.onClose,onToggle:Te.onToggle,getTargetId:()=>`${tt}-target`,getDropdownId:()=>`${tt}-dropdown`,withRoles:z,targetProps:V,__staticSelector:D,classNames:y,styles:w,unstyled:g,variant:ee,keepMounted:le,getStyles:H,resolvedStyles:U,floatingStrategy:de},children:[t,ge&&b.jsx(ed,{transition:"fade",mounted:Te.opened,duration:(l==null?void 0:l.duration)||250,exitDuration:(l==null?void 0:l.exitDuration)||250,children:wt=>b.jsx(Kh,{withinPortal:E,children:b.jsx(Bx,{...oe,...H("overlay",{className:oe==null?void 0:oe.className,style:[wt,oe==null?void 0:oe.style]})})})})]})}yn.Target=By;yn.Dropdown=Gh;yn.displayName="@mantine/core/Popover";yn.extend=e=>e;var fi={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 q3=_.forwardRef(({className:e,...r},t)=>b.jsxs(Q,{component:"span",className:Ae(fi.barsLoader,e),...r,ref:t,children:[b.jsx("span",{className:fi.bar}),b.jsx("span",{className:fi.bar}),b.jsx("span",{className:fi.bar})]}));q3.displayName="@mantine/core/Bars";const Y3=_.forwardRef(({className:e,...r},t)=>b.jsxs(Q,{component:"span",className:Ae(fi.dotsLoader,e),...r,ref:t,children:[b.jsx("span",{className:fi.dot}),b.jsx("span",{className:fi.dot}),b.jsx("span",{className:fi.dot})]}));Y3.displayName="@mantine/core/Dots";const X3=_.forwardRef(({className:e,...r},t)=>b.jsx(Q,{component:"span",className:Ae(fi.ovalLoader,e),...r,ref:t}));X3.displayName="@mantine/core/Oval";const Q3={bars:q3,oval:X3,dots:Y3},OX={loaders:Q3,type:"oval"},TX=(e,{size:r,color:t})=>({root:{"--loader-size":qe(r,"loader-size"),"--loader-color":t?ir(t,e):void 0}}),xl=me((e,r)=>{const t=J("Loader",OX,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,$=_e({name:"Loader",props:t,classes:fi,className:s,style:l,classNames:u,styles:c,unstyled:d,vars:a,varsResolver:TX});return v?b.jsx(Q,{...$("root"),ref:r,...p,children:v}):b.jsx(Q,{...$("root"),ref:r,component:f[o],variant:h,size:n,...p})});xl.defaultLoaders=Q3;xl.classes=fi;xl.displayName="@mantine/core/Loader";var td={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const hT={orientation:"horizontal"},IX=(e,{borderWidth:r})=>({group:{"--ai-border-width":L(r)}}),Hx=me((e,r)=>{const t=J("ActionIconGroup",hT,e),{className:n,style:i,classNames:o,styles:a,unstyled:s,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...h}=J("ActionIconGroup",hT,e),v=_e({name:"ActionIconGroup",props:t,classes:td,className:n,style:i,classNames:o,styles:a,unstyled:s,vars:u,varsResolver:IX,rootSelector:"group"});return b.jsx(Q,{...v("group"),ref:r,variant:d,mod:[{"data-orientation":l},f],role:"group",...h})});Hx.classes=td;Hx.displayName="@mantine/core/ActionIconGroup";const vT={},RX=(e,{radius:r,color:t,gradient:n,variant:i,autoContrast:o,size:a})=>{const s=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:n,variant:i||"filled",autoContrast:o});return{groupSection:{"--section-height":qe(a,"section-height"),"--section-padding-x":qe(a,"section-padding-x"),"--section-fz":Ut(a),"--section-radius":r===void 0?void 0:pr(r),"--section-bg":t||i?s.background:void 0,"--section-color":s.color,"--section-bd":t||i?s.border:void 0}}},Wx=me((e,r)=>{const t=J("ActionIconGroupSection",vT,e),{className:n,style:i,classNames:o,styles:a,unstyled:s,vars:l,variant:u,gradient:c,radius:d,autoContrast:f,...h}=J("ActionIconGroupSection",vT,e),v=_e({name:"ActionIconGroupSection",props:t,classes:td,className:n,style:i,classNames:o,styles:a,unstyled:s,vars:l,varsResolver:RX,rootSelector:"groupSection"});return b.jsx(Q,{...v("groupSection"),ref:r,variant:u,...h})});Wx.classes=td;Wx.displayName="@mantine/core/ActionIconGroupSection";const MX={},NX=(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":qe(r,"ai-size"),"--ai-radius":t===void 0?void 0:pr(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}}},Wa=tn((e,r)=>{const t=J("ActionIcon",MX,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:$,children:m,disabled:g,"data-disabled":y,autoContrast:w,mod:S,...E}=t,x=_e({name:["ActionIcon",v],props:t,className:n,style:l,classes:td,classNames:a,styles:s,unstyled:i,vars:$,varsResolver:NX});return b.jsxs(Za,{...x("root",{active:!g&&!u&&!y}),...E,unstyled:i,variant:o,size:d,disabled:g||u,ref:r,mod:[{loading:u,disabled:g||y},S],children:[b.jsx(ed,{mounted:!!u,transition:"slide-down",duration:150,children:C=>b.jsx(Q,{component:"span",...x("loader",{style:C}),"aria-hidden":!0,children:b.jsx(xl,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...c})})}),b.jsx(Q,{component:"span",mod:{loading:u},...x("icon"),children:m})]})});Wa.classes=td;Wa.displayName="@mantine/core/ActionIcon";Wa.Group=Hx;Wa.GroupSection=Wx;const J3=_.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:r,...t},n)=>b.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:b.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"})}));J3.displayName="@mantine/core/CloseIcon";var Z3={root:"m_86a44da5","root--subtle":"m_220c80f2"};const AX={variant:"subtle"},DX=(e,{size:r,radius:t,iconSize:n})=>({root:{"--cb-size":qe(r,"cb-size"),"--cb-radius":t===void 0?void 0:pr(t),"--cb-icon-size":L(n)}}),zy=tn((e,r)=>{const t=J("CloseButton",AX,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:$,__staticSelector:m,...g}=t,y=_e({name:m||"CloseButton",props:t,className:s,style:u,classes:Z3,classNames:l,styles:c,unstyled:d,vars:o,varsResolver:DX});return b.jsxs(Za,{ref:r,...g,unstyled:d,variant:v,disabled:h,mod:[{disabled:h||f},$],...y("root",{variant:v,active:!h&&!f}),children:[p||b.jsx(J3,{}),i]})});zy.classes=Z3;zy.displayName="@mantine/core/CloseButton";function FX(e){return _.Children.toArray(e).filter(Boolean)}var eL={root:"m_4081bf90"};const jX={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},LX=(e,{grow:r,preventGrowOverflow:t,gap:n,align:i,justify:o,wrap:a},{childWidth:s})=>({root:{"--group-child-width":r&&t?s:void 0,"--group-gap":kc(n),"--group-align":i,"--group-justify":o,"--group-wrap":a}}),Cl=me((e,r)=>{const t=J("Group",jX,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,children:l,gap:u,align:c,justify:d,wrap:f,grow:h,preventGrowOverflow:v,vars:p,variant:$,__size:m,mod:g,...y}=t,w=FX(l),S=w.length,E=kc(u??"md"),C={childWidth:`calc(${100/S}% - (${E} - ${E} / ${S}))`},k=_e({name:"Group",props:t,stylesCtx:C,className:i,style:o,classes:eL,classNames:n,styles:a,unstyled:s,vars:p,varsResolver:LX});return b.jsx(Q,{...k("root"),ref:r,variant:$,mod:[{grow:h},g],size:m,...y,children:w})});Cl.classes=eL;Cl.displayName="@mantine/core/Group";const[BX,zX]=gx({size:"sm"}),HX={},tL=me((e,r)=>{const t=J("InputClearButton",HX,e),{size:n,variant:i,vars:o,classNames:a,styles:s,...l}=t,u=zX(),{resolvedClassNames:c,resolvedStyles:d}=Hh({classNames:a,styles:s,props:t});return b.jsx(zy,{variant:i||"transparent",ref:r,size:n||(u==null?void 0:u.size)||"sm",classNames:c,styles:d,__staticSelector:"InputClearButton",...l})});tL.displayName="@mantine/core/InputClearButton";const[WX,qh]=gx({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Wn={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 pT={},VX=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${Ut(r)} - ${L(2)})`}}),Hy=me((e,r)=>{const t=J("InputDescription",pT,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,__staticSelector:c,__inheritStyles:d=!0,variant:f,...h}=J("InputDescription",pT,t),v=qh(),p=_e({name:["InputWrapper",c],props:t,classes:Wn,className:i,style:o,classNames:n,styles:a,unstyled:s,rootSelector:"description",vars:l,varsResolver:VX}),$=d&&(v==null?void 0:v.getStyles)||p;return b.jsx(Q,{component:"p",ref:r,variant:f,size:u,...$("description",v!=null&&v.getStyles?{className:i,style:o}:void 0),...h})});Hy.classes=Wn;Hy.displayName="@mantine/core/InputDescription";const UX={},KX=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${Ut(r)} - ${L(2)})`}}),Wy=me((e,r)=>{const t=J("InputError",UX,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=_e({name:["InputWrapper",c],props:t,classes:Wn,className:i,style:o,classNames:n,styles:a,unstyled:s,rootSelector:"error",vars:l,varsResolver:KX}),p=qh(),$=d&&(p==null?void 0:p.getStyles)||v;return b.jsx(Q,{component:"p",ref:r,variant:f,size:u,...$("error",p!=null&&p.getStyles?{className:i,style:o}:void 0),...h})});Wy.classes=Wn;Wy.displayName="@mantine/core/InputError";const mT={labelElement:"label"},GX=(e,{size:r})=>({label:{"--input-label-size":Ut(r),"--input-asterisk-color":void 0}}),Vy=me((e,r)=>{const t=J("InputLabel",mT,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:$,mod:m,...g}=J("InputLabel",mT,t),y=_e({name:["InputWrapper",p],props:t,classes:Wn,className:i,style:o,classNames:n,styles:a,unstyled:s,rootSelector:"label",vars:l,varsResolver:GX}),w=qh(),S=(w==null?void 0:w.getStyles)||y;return b.jsxs(Q,{...S("label",w!=null&&w.getStyles?{className:i,style:o}:void 0),component:u,variant:$,size:c,ref:r,htmlFor:u==="label"?f:void 0,mod:[{required:d},m],onMouseDown:E=>{h==null||h(E),!E.defaultPrevented&&E.detail>1&&E.preventDefault()},...g,children:[v,d&&b.jsx("span",{...S("required"),"aria-hidden":!0,children:" *"})]})});Vy.classes=Wn;Vy.displayName="@mantine/core/InputLabel";const gT={},Vx=me((e,r)=>{const t=J("InputPlaceholder",gT,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,__staticSelector:u,variant:c,error:d,mod:f,...h}=J("InputPlaceholder",gT,t),v=_e({name:["InputPlaceholder",u],props:t,classes:Wn,className:i,style:o,classNames:n,styles:a,unstyled:s,rootSelector:"placeholder"});return b.jsx(Q,{...v("placeholder"),mod:[{error:!!d},f],component:"span",variant:c,ref:r,...h})});Vx.classes=Wn;Vx.displayName="@mantine/core/InputPlaceholder";function qX(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 YX={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},XX=(e,{size:r})=>({label:{"--input-label-size":Ut(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${Ut(r)} - ${L(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${Ut(r)} - ${L(2)})`}}),Uy=me((e,r)=>{const t=J("InputWrapper",YX,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:$,labelProps:m,descriptionProps:g,errorProps:y,labelElement:w,children:S,withAsterisk:E,id:x,required:C,__stylesApiProps:k,mod:P,...T}=t,R=_e({name:["InputWrapper",d],props:k||t,classes:Wn,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:XX}),N={size:u,variant:c,__staticSelector:d},F=Sl(x),W=typeof E=="boolean"?E:C,M=(y==null?void 0:y.id)||`${F}-error`,j=(g==null?void 0:g.id)||`${F}-description`,O=F,D=!!p&&typeof p!="boolean",z=!!$,G=`${D?M:""} ${z?j:""}`,K=G.trim().length>0?G.trim():void 0,ee=(m==null?void 0:m.id)||`${F}-label`,le=v&&b.jsx(Vy,{labelElement:w,id:ee,htmlFor:O,required:W,...N,...m,children:v},"label"),se=z&&b.jsx(Hy,{...g,...N,size:(g==null?void 0:g.size)||N.size,id:(g==null?void 0:g.id)||j,children:$},"description"),de=b.jsx(_.Fragment,{children:f(S)},"input"),ge=D&&_.createElement(Wy,{...y,...N,size:(y==null?void 0:y.size)||N.size,key:"error",id:(y==null?void 0:y.id)||M},p),oe=h.map(V=>{switch(V){case"label":return le;case"input":return de;case"description":return se;case"error":return ge;default:return null}});return b.jsx(WX,{value:{getStyles:R,describedBy:K,inputId:O,labelId:ee,...qX(h,{hasDescription:z,hasError:D})},children:b.jsx(Q,{ref:r,variant:c,size:u,mod:[{error:!!p},P],...R("root"),...T,children:oe})})});Uy.classes=Wn;Uy.displayName="@mantine/core/InputWrapper";const QX={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},JX=(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":qe(r.size,"input-height"),"--input-fz":Ut(r.size),"--input-radius":r.radius===void 0?void 0:pr(r.radius),"--input-left-section-width":r.leftSectionWidth!==void 0?L(r.leftSectionWidth):void 0,"--input-right-section-width":r.rightSectionWidth!==void 0?L(r.rightSectionWidth):void 0,"--input-padding-y":r.multiline?qe(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),It=tn((e,r)=>{const t=J("Input",QX,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:$,leftSectionWidth:m,rightSection:g,rightSectionProps:y,rightSectionWidth:w,rightSectionPointerEvents:S,leftSectionPointerEvents:E,variant:x,vars:C,pointer:k,multiline:P,radius:T,id:R,withAria:N,withErrorStyles:F,mod:W,inputSize:M,__clearSection:j,__clearable:O,__defaultRightSection:D,...z}=t,{styleProps:G,rest:K}=Wh(z),ee=qh(),le={offsetBottom:ee==null?void 0:ee.offsetBottom,offsetTop:ee==null?void 0:ee.offsetTop},se=_e({name:["Input",u],props:c||t,classes:Wn,className:i,style:o,classNames:n,styles:a,unstyled:s,stylesCtx:le,rootSelector:"wrapper",vars:C,varsResolver:JX}),de=N?{required:l,disabled:v,"aria-invalid":!!h,"aria-describedby":ee==null?void 0:ee.describedBy,id:(ee==null?void 0:ee.inputId)||R}:{},ge=g||O&&j||D;return b.jsx(BX,{value:{size:d||"sm"},children:b.jsxs(Q,{...se("wrapper"),...G,...f,mod:[{error:!!h&&F,pointer:k,disabled:v,multiline:P,"data-with-right-section":!!ge,"data-with-left-section":!!p},W],variant:x,size:d,children:[p&&b.jsx("div",{...$,"data-position":"left",...se("section",{className:$==null?void 0:$.className,style:$==null?void 0:$.style}),children:p}),b.jsx(Q,{component:"input",...K,...de,ref:r,required:l,mod:{disabled:v,error:!!h&&F},variant:x,__size:M,...se("input")}),ge&&b.jsx("div",{...y,"data-position":"right",...se("section",{className:y==null?void 0:y.className,style:y==null?void 0:y.style}),children:ge})]})})});It.classes=Wn;It.Wrapper=Uy;It.Label=Vy;It.Error=Wy;It.Description=Hy;It.Placeholder=Vx;It.ClearButton=tL;It.displayName="@mantine/core/Input";function ZX(e,r,t){const n=J(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:$,wrapperProps:m,id:g,size:y,style:w,inputContainer:S,inputWrapperOrder:E,withAsterisk:x,variant:C,vars:k,mod:P,...T}=n,{styleProps:R,rest:N}=Wh(T),F={label:i,description:o,error:a,required:s,classNames:l,className:c,__staticSelector:f,__stylesApiProps:h||n,errorProps:v,labelProps:p,descriptionProps:$,unstyled:d,styles:u,size:y,style:w,inputContainer:S,inputWrapperOrder:E,withAsterisk:x,variant:C,id:g,mod:P,...m};return{...N,classNames:l,styles:u,unstyled:d,wrapperProps:{...F,...R},inputProps:{required:s,classNames:l,styles:u,unstyled:d,size:y,__staticSelector:f,__stylesApiProps:h||n,error:a,variant:C,id:g}}}const eQ={__staticSelector:"InputBase",withAria:!0},ro=tn((e,r)=>{const{inputProps:t,wrapperProps:n,...i}=ZX("InputBase",eQ,e);return b.jsx(It.Wrapper,{...n,children:b.jsx(It,{...t,...i,ref:r})})});ro.classes={...It.classes,...It.Wrapper.classes};ro.displayName="@mantine/core/InputBase";const tQ={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 rL={root:"m_8bffd616"};const rQ={},Dn=tn((e,r)=>{const t=J("Flex",rQ,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,...$}=t,m=_e({name:"Flex",classes:rL,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l}),g=Mr(),y=c3(),w=u3({styleProps:{gap:u,rowGap:c,columnGap:d,align:f,justify:h,wrap:v,direction:p},theme:g,data:tQ});return b.jsxs(b.Fragment,{children:[w.hasResponsiveStyles&&b.jsx(l3,{selector:`.${y}`,styles:w.styles,media:w.media}),b.jsx(Q,{ref:r,...m("root",{className:y,style:Ry(w.inlineStyles)}),...$})]})});Dn.classes=rL;Dn.displayName="@mantine/core/Flex";function nQ(e,r){if(!r||!e)return!1;let t=r.parentNode;for(;t!=null;){if(t===e)return!0;t=t.parentNode}return!1}function iQ({target:e,parent:r,ref:t,displayAfterTransitionEnd:n}){const i=_.useRef(-1),[o,a]=_.useState(!1),[s,l]=_.useState(typeof n=="boolean"?n:!1),u=()=>{if(!e||!r||!t.current)return;const h=e.getBoundingClientRect(),v=r.getBoundingClientRect(),p=window.getComputedStyle(e),$=window.getComputedStyle(r),m=$a(p.borderTopWidth)+$a($.borderTopWidth),g=$a(p.borderLeftWidth)+$a($.borderLeftWidth),y={top:h.top-v.top-m,left:h.left-v.left-g,width:h.width,height:h.height};t.current.style.transform=`translateY(${y.top}px) translateX(${y.left}px)`,t.current.style.width=`${y.width}px`,t.current.style.height=`${y.height}px`},c=()=>{window.clearTimeout(i.current),t.current&&(t.current.style.transitionDuration="0ms"),u(),i.current=window.setTimeout(()=>{t.current&&(t.current.style.transitionDuration="")},30)},d=_.useRef(null),f=_.useRef(null);return _.useEffect(()=>{if(u(),e)return d.current=new ResizeObserver(c),d.current.observe(e),r&&(f.current=new ResizeObserver(c),f.current.observe(r)),()=>{var h,v;(h=d.current)==null||h.disconnect(),(v=f.current)==null||v.disconnect()}},[r,e]),_.useEffect(()=>{if(r){const h=v=>{nQ(v.target,r)&&(c(),l(!1))};return r.addEventListener("transitionend",h),()=>{r.removeEventListener("transitionend",h)}}},[r]),TS(()=>{e3()!=="test"&&a(!0)},20,{autoInvoke:!0}),PG(h=>{h.forEach(v=>{v.type==="attributes"&&v.attributeName==="dir"&&c()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:o,hidden:s}}var nL={root:"m_96b553a6"};const oQ={},aQ=(e,{transitionDuration:r})=>({root:{"--transition-duration":typeof r=="number"?`${r}ms`:r}}),Ux=me((e,r)=>{const t=J("FloatingIndicator",oQ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,target:u,parent:c,transitionDuration:d,mod:f,displayAfterTransitionEnd:h,...v}=t,p=_e({name:"FloatingIndicator",classes:nL,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:aQ}),$=_.useRef(null),{initialized:m,hidden:g}=iQ({target:u,parent:c,ref:$,displayAfterTransitionEnd:h}),y=Tt(r,$);return!u||!c?null:b.jsx(Q,{ref:y,mod:[{initialized:m,hidden:g},f],...p("root"),...v})});Ux.displayName="@mantine/core/FloatingIndicator";Ux.classes=nL;var iL={root:"m_7f854edf"};const sQ={position:{bottom:0,right:0},zIndex:My("modal"),withinPortal:!0},lQ=(e,{zIndex:r,position:t})=>({root:{"--affix-z-index":r==null?void 0:r.toString(),"--affix-top":L(t==null?void 0:t.top),"--affix-left":L(t==null?void 0:t.left),"--affix-bottom":L(t==null?void 0:t.bottom),"--affix-right":L(t==null?void 0:t.right)}}),Ng=me((e,r)=>{const t=J("Affix",sQ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,portalProps:u,zIndex:c,withinPortal:d,position:f,...h}=t,v=_e({name:"Affix",classes:iL,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:lQ});return b.jsx(Kh,{...u,withinPortal:d,children:b.jsx(Q,{ref:r,...v("root"),...h})})});Ng.classes=iL;Ng.displayName="@mantine/core/Affix";var oL={root:"m_b6d8b162"};function uQ(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const cQ={inherit:!1},dQ=(e,{variant:r,lineClamp:t,gradient:n,size:i,color:o})=>({root:{"--text-fz":Ut(i),"--text-lh":tG(i),"--text-gradient":r==="gradient"?IS(n,e):void 0,"--text-line-clamp":typeof t=="number"?t.toString():void 0,"--text-color":o?ir(o,e):void 0}}),Do=tn((e,r)=>{const t=J("Text",cQ,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:$,mod:m,size:g,...y}=t,w=_e({name:["Text",u],props:t,classes:oL,className:d,style:f,classNames:h,styles:v,unstyled:p,vars:c,varsResolver:dQ});return b.jsx(Q,{...w("root",{focusable:!0}),ref:r,component:l?"span":"p",variant:$,mod:[{"data-truncate":uQ(i),"data-line-clamp":typeof n=="number","data-inline":o,"data-inherit":a},m],size:g,...y})});Do.classes=oL;Do.displayName="@mantine/core/Text";function aL(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=>aL(r))}:e}function fQ(e){return e?e.map(r=>aL(r)):[]}function sL(e){return e.reduce((r,t)=>"group"in t?{...r,...sL(t.items)}:(r[t.value]=t,r),{})}var Jr={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 hQ={error:null},vQ=(e,{size:r,color:t})=>({chevron:{"--combobox-chevron-size":qe(r,"combobox-chevron-size"),"--combobox-chevron-color":t?ir(t,e):void 0}}),Kx=me((e,r)=>{const t=J("ComboboxChevron",hQ,e),{size:n,error:i,style:o,className:a,classNames:s,styles:l,unstyled:u,vars:c,mod:d,...f}=t,h=_e({name:"ComboboxChevron",classes:Jr,props:t,style:o,className:a,classNames:s,styles:l,unstyled:u,vars:c,varsResolver:vQ,rootSelector:"chevron"});return b.jsx(Q,{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:b.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"})})});Kx.classes=Jr;Kx.displayName="@mantine/core/ComboboxChevron";const[pQ,Vn]=eo("Combobox component was not found in tree"),lL=_.forwardRef(({size:e,onMouseDown:r,onClick:t,onClear:n,...i},o)=>b.jsx(It.ClearButton,{ref:o,tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:a=>{a.preventDefault(),r==null||r(a)},onClick:a=>{n(),t==null||t(a)}}));lL.displayName="@mantine/core/ComboboxClearButton";const mQ={},Gx=me((e,r)=>{const{classNames:t,styles:n,className:i,style:o,hidden:a,...s}=J("ComboboxDropdown",mQ,e),l=Vn();return b.jsx(yn.Dropdown,{...s,ref:r,role:"presentation","data-hidden":a||void 0,...l.getStyles("dropdown",{className:i,style:o,classNames:t,styles:n})})});Gx.classes=Jr;Gx.displayName="@mantine/core/ComboboxDropdown";const gQ={refProp:"ref"},uL=me((e,r)=>{const{children:t,refProp:n}=J("ComboboxDropdownTarget",gQ,e);if(Vn(),!Qc(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 b.jsx(yn.Target,{ref:r,refProp:n,children:t})});uL.displayName="@mantine/core/ComboboxDropdownTarget";const yQ={},qx=me((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,...s}=J("ComboboxEmpty",yQ,e),l=Vn();return b.jsx(Q,{ref:r,...l.getStyles("empty",{className:n,classNames:t,styles:o,style:i}),...s})});qx.classes=Jr;qx.displayName="@mantine/core/ComboboxEmpty";function Yx({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:t,withExpandedAttribute:n,targetType:i,autoComplete:o}){const a=Vn(),[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()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectPreviousOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),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.key==="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.dropdownOpened?a.store.listId:void 0,"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 bQ={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},cL=me((e,r)=>{const{children:t,refProp:n,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:l,...u}=J("ComboboxEventsTarget",bQ,e);if(!Qc(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=Vn(),d=Yx({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:t.props.onKeyDown,autoComplete:l});return _.cloneElement(t,{...d,...u,[n]:Tt(r,c.store.targetRef,t3(t))})});cL.displayName="@mantine/core/ComboboxEventsTarget";const $Q={},Xx=me((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,...s}=J("ComboboxFooter",$Q,e),l=Vn();return b.jsx(Q,{ref:r,...l.getStyles("footer",{className:n,classNames:t,style:i,styles:o}),...s,onMouseDown:u=>{u.preventDefault()}})});Xx.classes=Jr;Xx.displayName="@mantine/core/ComboboxFooter";const wQ={},Qx=me((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,children:s,label:l,...u}=J("ComboboxGroup",wQ,e),c=Vn();return b.jsxs(Q,{ref:r,...c.getStyles("group",{className:n,classNames:t,style:i,styles:o}),...u,children:[l&&b.jsx("div",{...c.getStyles("groupLabel",{classNames:t,styles:o}),children:l}),s]})});Qx.classes=Jr;Qx.displayName="@mantine/core/ComboboxGroup";const SQ={},Jx=me((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,...s}=J("ComboboxHeader",SQ,e),l=Vn();return b.jsx(Q,{ref:r,...l.getStyles("header",{className:n,classNames:t,style:i,styles:o}),...s,onMouseDown:u=>{u.preventDefault()}})});Jx.classes=Jr;Jx.displayName="@mantine/core/ComboboxHeader";function dL({value:e,valuesDivider:r=",",...t}){return b.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...t})}dL.displayName="@mantine/core/ComboboxHiddenInput";const _Q={},Zx=me((e,r)=>{const t=J("ComboboxOption",_Q,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,...$}=t,m=Vn(),g=_.useId(),y=u||g;return b.jsx(Q,{...m.getStyles("option",{className:i,classNames:n,styles:a,style:o}),...$,ref:r,id:y,mod:["combobox-option",{"combobox-active":c,"combobox-disabled":h,"combobox-selected":v},p],role:"option",onClick:w=>{var S;h?w.preventDefault():((S=m.onOptionSubmit)==null||S.call(m,t.value,t),l==null||l(w))},onMouseDown:w=>{w.preventDefault(),d==null||d(w)},onMouseOver:w=>{m.resetSelectionOnOptionHover&&m.store.resetSelectedOption(),f==null||f(w)}})});Zx.classes=Jr;Zx.displayName="@mantine/core/ComboboxOption";const EQ={},eC=me((e,r)=>{const t=J("ComboboxOptions",EQ,e),{classNames:n,className:i,style:o,styles:a,id:s,onMouseDown:l,labelledBy:u,...c}=t,d=Vn(),f=Sl(s);return _.useEffect(()=>{d.store.setListId(f)},[f]),b.jsx(Q,{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)}})});eC.classes=Jr;eC.displayName="@mantine/core/ComboboxOptions";const xQ={withAriaAttributes:!0,withKeyboardNavigation:!0},tC=me((e,r)=>{const t=J("ComboboxSearch",xQ,e),{classNames:n,styles:i,unstyled:o,vars:a,withAriaAttributes:s,onKeyDown:l,withKeyboardNavigation:u,size:c,...d}=t,f=Vn(),h=f.getStyles("search"),v=Yx({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return b.jsx(It,{ref:Tt(r,f.store.searchRef),classNames:[{input:h.className},n],styles:[{input:h.style},i],size:c||f.size,...v,...d,__staticSelector:"Combobox"})});tC.classes=Jr;tC.displayName="@mantine/core/ComboboxSearch";const CQ={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},fL=me((e,r)=>{const{children:t,refProp:n,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:l,...u}=J("ComboboxTarget",CQ,e);if(!Qc(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=Vn(),d=Yx({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:t.props.onKeyDown,autoComplete:l}),f=_.cloneElement(t,{...d,...u});return b.jsx(yn.Target,{ref:Tt(r,c.store.targetRef),children:f})});fL.displayName="@mantine/core/ComboboxTarget";function kQ(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 PQ(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 OQ(e){for(let r=0;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;return-1}function hL({defaultOpened:e,opened:r,onOpenedChange:t,onDropdownClose:n,onDropdownOpen:i,loop:o=!0,scrollBehavior:a="instant"}={}){const[s,l]=zn({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),$=_.useCallback((M="unknown")=>{s||(l(!0),i==null||i(M))},[l,i,s]),m=_.useCallback((M="unknown")=>{s&&(l(!1),n==null||n(M))},[l,n,s]),g=_.useCallback((M="unknown")=>{s?m(M):$(M)},[m,$,s]),y=_.useCallback(()=>{const M=document.querySelector(`#${u.current} [data-combobox-selected]`);M==null||M.removeAttribute("data-combobox-selected"),M==null||M.removeAttribute("aria-selected")},[]),w=_.useCallback(M=>{const j=document.getElementById(u.current),O=j==null?void 0:j.querySelectorAll("[data-combobox-option]");if(!O)return null;const D=M>=O.length?0:M<0?O.length-1:M;return c.current=D,O!=null&&O[D]&&!O[D].hasAttribute("data-combobox-disabled")?(y(),O[D].setAttribute("data-combobox-selected","true"),O[D].setAttribute("aria-selected","true"),O[D].scrollIntoView({block:"nearest",behavior:a}),O[D].id):null},[a,y]),S=_.useCallback(()=>{const M=document.querySelector(`#${u.current} [data-combobox-active]`);if(M){const j=document.querySelectorAll(`#${u.current} [data-combobox-option]`),O=Array.from(j).findIndex(D=>D===M);return w(O)}return w(0)},[w]),E=_.useCallback(()=>w(PQ(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),o)),[w,o]),x=_.useCallback(()=>w(kQ(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),o)),[w,o]),C=_.useCallback(()=>w(OQ(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[w]),k=_.useCallback((M="selected",j)=>{p.current=window.setTimeout(()=>{var z;const O=document.querySelectorAll(`#${u.current} [data-combobox-option]`),D=Array.from(O).findIndex(G=>G.hasAttribute(`data-combobox-${M}`));c.current=D,j!=null&&j.scrollIntoView&&((z=O[D])==null||z.scrollIntoView({block:"nearest",behavior:a}))},0)},[]),P=_.useCallback(()=>{c.current=-1,y()},[y]),T=_.useCallback(()=>{const M=document.querySelectorAll(`#${u.current} [data-combobox-option]`),j=M==null?void 0:M[c.current];j==null||j.click()},[]),R=_.useCallback(M=>{u.current=M},[]),N=_.useCallback(()=>{h.current=window.setTimeout(()=>d.current.focus(),0)},[]),F=_.useCallback(()=>{v.current=window.setTimeout(()=>f.current.focus(),0)},[]),W=_.useCallback(()=>c.current,[]);return _.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(v.current),window.clearTimeout(p.current)},[]),{dropdownOpened:s,openDropdown:$,closeDropdown:m,toggleDropdown:g,selectedOptionIndex:c.current,getSelectedOptionIndex:W,selectOption:w,selectFirstOption:C,selectActiveOption:S,selectNextOption:E,selectPreviousOption:x,resetSelectedOption:P,updateSelectedOptionIndex:k,listId:u.current,setListId:R,clickSelectedOption:T,searchRef:d,focusSearchInput:N,targetRef:f,focusTarget:F}}const TQ={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},IQ=(e,{size:r,dropdownPadding:t})=>({options:{"--combobox-option-fz":Ut(r),"--combobox-option-padding":qe(r,"combobox-option-padding")},dropdown:{"--combobox-padding":t===void 0?void 0:L(t),"--combobox-option-fz":Ut(r),"--combobox-option-padding":qe(r,"combobox-option-padding")}});function Ke(e){const r=J("Combobox",TQ,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,$=hL(),m=a||$,g=_e({name:h||"Combobox",classes:Jr,props:r,classNames:t,styles:n,unstyled:i,vars:s,varsResolver:IQ}),y=()=>{u==null||u(),m.closeDropdown()};return b.jsx(pQ,{value:{getStyles:g,store:m,onOptionSubmit:l,size:c,resetSelectionOnOptionHover:f,readOnly:v},children:b.jsx(yn,{opened:m.dropdownOpened,...p,onChange:w=>!w&&y(),withRoles:!1,unstyled:i,children:o})})}const RQ=e=>e;Ke.extend=RQ;Ke.classes=Jr;Ke.displayName="@mantine/core/Combobox";Ke.Target=fL;Ke.Dropdown=Gx;Ke.Options=eC;Ke.Option=Zx;Ke.Search=tC;Ke.Empty=qx;Ke.Chevron=Kx;Ke.Footer=Xx;Ke.Header=Jx;Ke.EventsTarget=cL;Ke.DropdownTarget=uL;Ke.Group=Qx;Ke.ClearButton=lL;Ke.HiddenInput=dL;var vL={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const MQ=vL,pL=_.forwardRef(({__staticSelector:e,__stylesApiProps:r,className:t,classNames:n,styles:i,unstyled:o,children:a,label:s,description:l,id:u,disabled:c,error:d,size:f,labelPosition:h="left",bodyElement:v="div",labelElement:p="label",variant:$,style:m,vars:g,mod:y,...w},S)=>{const E=_e({name:e,props:r,className:t,style:m,classes:vL,classNames:n,styles:i,unstyled:o});return b.jsx(Q,{...E("root"),ref:S,__vars:{"--label-fz":Ut(f),"--label-lh":qe(f,"label-lh")},mod:[{"label-position":h},y],variant:$,size:f,...w,children:b.jsxs(Q,{component:v,htmlFor:v==="label"?u:void 0,...E("body"),children:[a,b.jsxs("div",{...E("labelWrapper"),"data-disabled":c||void 0,children:[s&&b.jsx(Q,{component:p,htmlFor:p==="label"?u:void 0,...E("label"),"data-disabled":c||void 0,children:s}),l&&b.jsx(It.Description,{size:f,__inheritStyles:!1,...E("description"),children:l}),d&&typeof d!="boolean"&&b.jsx(It.Error,{size:f,__inheritStyles:!1,...E("error"),children:d})]})]})})});pL.displayName="@mantine/core/InlineInput";const mL=_.createContext(null),NQ=mL.Provider,gL=()=>_.useContext(mL),[AQ,DQ]=gx();var yL={card:"m_26775b0a"};const FQ={withBorder:!0},jQ=(e,{radius:r})=>({card:{"--card-radius":pr(r)}}),rC=me((e,r)=>{const t=J("CheckboxCard",FQ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,checked:u,mod:c,withBorder:d,value:f,onClick:h,defaultChecked:v,onChange:p,...$}=t,m=_e({name:"CheckboxCard",classes:yL,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:jQ,rootSelector:"card"}),g=gL(),y=typeof u=="boolean"?u:g?g.value.includes(f||""):void 0,[w,S]=zn({value:y,defaultValue:v,finalValue:!1,onChange:p});return b.jsx(AQ,{value:{checked:w},children:b.jsx(Za,{ref:r,mod:[{"with-border":d,checked:w},c],...m("card"),...$,role:"checkbox","aria-checked":w,onClick:E=>{h==null||h(E),g==null||g.onChange(f||""),S(!w)}})})});rC.displayName="@mantine/core/CheckboxCard";rC.classes=yL;function LQ({children:e,role:r}){const t=qh();return t?b.jsx("div",{role:r,"aria-labelledby":t.labelId,"aria-describedby":t.describedBy,children:e}):b.jsx(b.Fragment,{children:e})}const BQ={},nC=me((e,r)=>{const{value:t,defaultValue:n,onChange:i,size:o,wrapperProps:a,children:s,readOnly:l,...u}=J("CheckboxGroup",BQ,e),[c,d]=zn({value:t,defaultValue:n,finalValue:[],onChange:i}),f=h=>{const v=typeof h=="string"?h:h.currentTarget.value;!l&&d(c.includes(v)?c.filter(p=>p!==v):[...c,v])};return b.jsx(NQ,{value:{value:c,onChange:f,size:o},children:b.jsx(It.Wrapper,{size:o,ref:r,...a,...u,labelElement:"div",__staticSelector:"CheckboxGroup",children:b.jsx(LQ,{role:"group",children:s})})})});nC.classes=It.Wrapper.classes;nC.displayName="@mantine/core/CheckboxGroup";function bL({size:e,style:r,...t}){const n=e!==void 0?{width:L(e),height:L(e),...r}:r;return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,"aria-hidden":!0,...t,children:b.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 $L({indeterminate:e,...r}){return e?b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...r,children:b.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):b.jsx(bL,{...r})}var wL={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const zQ={icon:$L},HQ=(e,{radius:r,color:t,size:n,iconColor:i,variant:o,autoContrast:a})=>{const s=Wo({color:t||e.primaryColor,theme:e}),l=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--checkbox-size":qe(n,"checkbox-size"),"--checkbox-radius":r===void 0?void 0:pr(r),"--checkbox-color":o==="outline"?l:ir(t,e),"--checkbox-icon-color":i?ir(i,e):_x(a,e)?zh({color:t,theme:e,autoContrast:a}):void 0}}},iC=me((e,r)=>{const t=J("CheckboxIndicator",zQ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,icon:u,indeterminate:c,radius:d,color:f,iconColor:h,autoContrast:v,checked:p,mod:$,variant:m,disabled:g,...y}=t,w=u,S=_e({name:"CheckboxIndicator",classes:wL,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:HQ,rootSelector:"indicator"}),E=DQ(),x=typeof p=="boolean"||typeof c=="boolean"?p||c:(E==null?void 0:E.checked)||!1;return b.jsx(Q,{ref:r,...S("indicator",{variant:m}),variant:m,mod:[{checked:x,disabled:g},$],...y,children:b.jsx(w,{indeterminate:c,...S("icon")})})});iC.displayName="@mantine/core/CheckboxIndicator";iC.classes=wL;var SL={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const WQ={labelPosition:"right",icon:$L},VQ=(e,{radius:r,color:t,size:n,iconColor:i,variant:o,autoContrast:a})=>{const s=Wo({color:t||e.primaryColor,theme:e}),l=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--checkbox-size":qe(n,"checkbox-size"),"--checkbox-radius":r===void 0?void 0:pr(r),"--checkbox-color":o==="outline"?l:ir(t,e),"--checkbox-icon-color":i?ir(i,e):_x(a,e)?zh({color:t,theme:e,autoContrast:a}):void 0}}},es=me((e,r)=>{const t=J("Checkbox",WQ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,color:u,label:c,id:d,size:f,radius:h,wrapperProps:v,checked:p,labelPosition:$,description:m,error:g,disabled:y,variant:w,indeterminate:S,icon:E,rootRef:x,iconColor:C,onChange:k,autoContrast:P,mod:T,...R}=t,N=gL(),F=f||(N==null?void 0:N.size),W=E,M=_e({name:"Checkbox",props:t,classes:SL,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:VQ}),{styleProps:j,rest:O}=Wh(R),D=Sl(d),z=N?{checked:N.value.includes(O.value),onChange:G=>{N.onChange(G),k==null||k(G)}}:{};return b.jsx(pL,{...M("root"),__staticSelector:"Checkbox",__stylesApiProps:t,id:D,size:F,labelPosition:$,label:c,description:m,error:g,disabled:y,classNames:n,styles:a,unstyled:s,"data-checked":z.checked||p||void 0,variant:w,ref:x,mod:T,...j,...v,children:b.jsxs(Q,{...M("inner"),mod:{"data-label-position":$},children:[b.jsx(Q,{component:"input",id:D,ref:r,checked:p,disabled:y,mod:{error:!!g,indeterminate:S},...M("input",{focusable:!0,variant:w}),onChange:k,...O,...z,type:"checkbox"}),b.jsx(W,{indeterminate:S,...M("icon")})]})})});es.classes={...SL,...MQ};es.displayName="@mantine/core/Checkbox";es.Group=nC;es.Indicator=iC;es.Card=rC;function uh(e){return"group"in e}function _L({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;uh(a)&&i.push({group:a.group,items:_L({options:a.items,search:r,limit:t-i.length})}),uh(a)||a.label.toLowerCase().includes(n)&&i.push(a)}return i}function UQ(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 EL(e,r=new Set){if(Array.isArray(e))for(const t of e)if(uh(t))EL(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 KQ(e,r){return Array.isArray(e)?e.includes(r):e===r}function xL({data:e,withCheckIcon:r,value:t,checkIconPosition:n,unstyled:i,renderOption:o}){if(!uh(e)){const s=KQ(t,e.value),l=r&&s&&b.jsx(bL,{className:Jr.optionsDropdownCheckIcon}),u=b.jsxs(b.Fragment,{children:[n==="left"&&l,b.jsx("span",{children:e.label}),n==="right"&&l]});return b.jsx(Ke.Option,{value:e.value,disabled:e.disabled,className:Ae({[Jr.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=>b.jsx(xL,{data:s,value:t,unstyled:i,withCheckIcon:r,checkIconPosition:n,renderOption:o},s.value));return b.jsx(Ke.Group,{label:e.group,children:a})}function GQ({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:$,"aria-label":m}){EL(e);const y=typeof i=="string"?(n||_L)({options:e,search:l?i:"",limit:o??1/0}):e,w=UQ(y),S=y.map(E=>b.jsx(xL,{data:E,withCheckIcon:u,value:c,checkIconPosition:d,unstyled:h,renderOption:p},uh(E)?E.group:E.value));return b.jsx(Ke.Dropdown,{hidden:r||t&&w,"data-composed":!0,children:b.jsxs(Ke.Options,{labelledBy:v,"aria-label":m,children:[s?b.jsx(El.Autosize,{mah:a??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...$,children:S}):S,w&&f&&b.jsx(Ke.Empty,{children:f})]})})}var rd={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const yT={orientation:"horizontal"},qQ=(e,{borderWidth:r})=>({group:{"--button-border-width":L(r)}}),oC=me((e,r)=>{const t=J("ButtonGroup",yT,e),{className:n,style:i,classNames:o,styles:a,unstyled:s,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...h}=J("ButtonGroup",yT,e),v=_e({name:"ButtonGroup",props:t,classes:rd,className:n,style:i,classNames:o,styles:a,unstyled:s,vars:u,varsResolver:qQ,rootSelector:"group"});return b.jsx(Q,{...v("group"),ref:r,variant:d,mod:[{"data-orientation":l},f],role:"group",...h})});oC.classes=rd;oC.displayName="@mantine/core/ButtonGroup";const bT={},YQ=(e,{radius:r,color:t,gradient:n,variant:i,autoContrast:o,size:a})=>{const s=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:n,variant:i||"filled",autoContrast:o});return{groupSection:{"--section-height":qe(a,"section-height"),"--section-padding-x":qe(a,"section-padding-x"),"--section-fz":a!=null&&a.includes("compact")?Ut(a.replace("compact-","")):Ut(a),"--section-radius":r===void 0?void 0:pr(r),"--section-bg":t||i?s.background:void 0,"--section-color":s.color,"--section-bd":t||i?s.border:void 0}}},aC=me((e,r)=>{const t=J("ButtonGroupSection",bT,e),{className:n,style:i,classNames:o,styles:a,unstyled:s,vars:l,variant:u,gradient:c,radius:d,autoContrast:f,...h}=J("ButtonGroupSection",bT,e),v=_e({name:"ButtonGroupSection",props:t,classes:rd,className:n,style:i,classNames:o,styles:a,unstyled:s,vars:l,varsResolver:YQ,rootSelector:"groupSection"});return b.jsx(Q,{...v("groupSection"),ref:r,variant:u,...h})});aC.classes=rd;aC.displayName="@mantine/core/ButtonGroupSection";const XQ={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${L(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},QQ={},JQ=(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":qe(o,"button-height"),"--button-padding-x":qe(o,"button-padding-x"),"--button-fz":o!=null&&o.includes("compact")?Ut(o.replace("compact-","")):Ut(o),"--button-radius":r===void 0?void 0:pr(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}}},Si=tn((e,r)=>{const t=J("Button",QQ,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:$,classNames:m,styles:g,unstyled:y,"data-disabled":w,autoContrast:S,mod:E,...x}=t,C=_e({name:"Button",props:t,classes:rd,className:o,style:n,classNames:m,styles:g,unstyled:y,vars:i,varsResolver:JQ}),k=!!u,P=!!c;return b.jsxs(Za,{ref:r,...C("root",{active:!s&&!v&&!w}),unstyled:y,variant:f,disabled:s||v,mod:[{disabled:s||w,loading:v,block:d,"with-left-section":k,"with-right-section":P},E],...x,children:[b.jsx(ed,{mounted:!!v,transition:XQ,duration:150,children:T=>b.jsx(Q,{component:"span",...C("loader",{style:T}),"aria-hidden":!0,children:b.jsx(xl,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...p})})}),b.jsxs("span",{...C("inner"),children:[u&&b.jsx(Q,{component:"span",...C("section"),mod:{position:"left"},children:u}),b.jsx(Q,{component:"span",mod:{loading:v},...C("label"),children:l}),c&&b.jsx(Q,{component:"span",...C("section"),mod:{position:"right"},children:c})]})]})});Si.classes=rd;Si.displayName="@mantine/core/Button";Si.Group=oC;Si.GroupSection=aC;const[ZQ,eJ]=eo("Card component was not found in tree");var sC={root:"m_e615b15f",section:"m_599a2148"};const tJ={},Ky=tn((e,r)=>{const t=J("CardSection",tJ,e),{classNames:n,className:i,style:o,styles:a,vars:s,withBorder:l,inheritPadding:u,mod:c,...d}=t,f=eJ();return b.jsx(Q,{ref:r,mod:[{"with-border":l,"inherit-padding":u},c],...f.getStyles("section",{className:i,style:o,styles:a,classNames:n}),...d})});Ky.classes=sC;Ky.displayName="@mantine/core/CardSection";const rJ={},nJ=(e,{padding:r})=>({root:{"--card-padding":kc(r)}}),sl=tn((e,r)=>{const t=J("Card",rJ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,children:u,padding:c,...d}=t,f=_e({name:"Card",props:t,classes:sC,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:nJ}),h=_.Children.toArray(u),v=h.map((p,$)=>typeof p=="object"&&p&&"type"in p&&p.type===Ky?_.cloneElement(p,{"data-first-section":$===0||void 0,"data-last-section":$===h.length-1||void 0}):p);return b.jsx(ZQ,{value:{getStyles:f},children:b.jsx(Tx,{ref:r,unstyled:s,...f("root"),...d,children:v})})});sl.classes=sC;sl.displayName="@mantine/core/Card";sl.Section=Ky;var CL={root:"m_4451eb3a"};const iJ={},zi=tn((e,r)=>{const t=J("Center",iJ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,inline:u,mod:c,...d}=t,f=_e({name:"Center",props:t,classes:CL,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l});return b.jsx(Q,{ref:r,mod:[{inline:u},c],...f("root"),...d})});zi.classes=CL;zi.displayName="@mantine/core/Center";var kL={root:"m_3eebeb36",label:"m_9e365f20"};const oJ={orientation:"horizontal"},aJ=(e,{color:r,variant:t,size:n})=>({root:{"--divider-color":r?ir(r,e):void 0,"--divider-border-style":t,"--divider-size":qe(n,"divider-size")}}),lC=me((e,r)=>{const t=J("Divider",oJ,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=_e({name:"Divider",classes:kL,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:aJ});return b.jsx(Q,{ref:r,mod:[{orientation:c,"with-label":!!d},h],...p("root"),...v,role:"separator",children:d&&b.jsx(Q,{component:"span",mod:{position:f},...p("label"),children:d})})});lC.classes=kL;lC.displayName="@mantine/core/Divider";function sJ({open:e,close:r,openDelay:t,closeDelay:n}){const i=_.useRef(-1),o=_.useRef(-1),a=()=>{window.clearTimeout(i.current),window.clearTimeout(o.current)},s=()=>{a(),t===0||t===void 0?e():i.current=window.setTimeout(e,t)},l=()=>{a(),n===0||n===void 0?r():o.current=window.setTimeout(r,n)};return _.useEffect(()=>a,[]),{openDropdown:s,closeDropdown:l}}function Ag(){return Ag=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},Ag.apply(null,arguments)}function uC(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}var lJ=_.useLayoutEffect,uJ=function(r){var t=hr.useRef(r);return lJ(function(){t.current=r}),t},$T=function(r,t){if(typeof r=="function"){r(t);return}r.current=t},cJ=function(r,t){var n=hr.useRef();return hr.useCallback(function(i){r.current=i,n.current&&$T(n.current,null),n.current=t,t&&$T(t,i)},[t])},wT={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},dJ=function(r){Object.keys(wT).forEach(function(t){r.style.setProperty(t,wT[t],"important")})},ST=dJ,br=null,_T=function(r,t){var n=r.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?n+t.borderSize:n-t.paddingSize};function fJ(e,r,t,n){t===void 0&&(t=1),n===void 0&&(n=1/0),br||(br=document.createElement("textarea"),br.setAttribute("tabindex","-1"),br.setAttribute("aria-hidden","true"),ST(br)),br.parentNode===null&&document.body.appendChild(br);var i=e.paddingSize,o=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach(function(f){var h=f;br.style[h]=a[h]}),ST(br),br.value=r;var l=_T(br,e);br.value=r,l=_T(br,e),br.value="x";var u=br.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 ET=function(){},hJ=function(r,t){return r.reduce(function(n,i){return n[i]=t[i],n},{})},vJ=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],pJ=!!document.documentElement.currentStyle,mJ=function(r){var t=window.getComputedStyle(r);if(t===null)return null;var n=hJ(vJ,t),i=n.boxSizing;if(i==="")return null;pJ&&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}},gJ=mJ;function PL(e,r,t){var n=uJ(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 yJ=function(r){PL(window,"resize",r)},bJ=function(r){PL(document.fonts,"loadingdone",r)},$J=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],wJ=function(r,t){var n=r.cacheMeasurements,i=r.maxRows,o=r.minRows,a=r.onChange,s=a===void 0?ET:a,l=r.onHeightChange,u=l===void 0?ET:l,c=uC(r,$J),d=c.value!==void 0,f=_.useRef(null),h=cJ(f,t),v=_.useRef(0),p=_.useRef(),$=function(){var y=f.current,w=n&&p.current?p.current:gJ(y);if(w){p.current=w;var S=fJ(w,y.value||y.placeholder||"x",o,i),E=S[0],x=S[1];v.current!==E&&(v.current=E,y.style.setProperty("height",E+"px","important"),u(E,{rowHeight:x}))}},m=function(y){d||$(),s(y)};return _.useLayoutEffect($),yJ($),bJ($),_.createElement("textarea",Ag({},c,{onChange:m,ref:h}))},SJ=_.forwardRef(wJ);const _J={},cC=me((e,r)=>{const{autosize:t,maxRows:n,minRows:i,__staticSelector:o,resize:a,...s}=J("Textarea",_J,e),l=t&&e3()!=="test",u=l?{maxRows:n,minRows:i}:{};return b.jsx(ro,{component:l?SJ:"textarea",ref:r,...s,__staticSelector:o||"Textarea",multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...u})});cC.classes=ro.classes;cC.displayName="@mantine/core/Textarea";function xT(e,r){if(typeof e=="string"&&e.trim().length===0)return!0;try{return r(e),!0}catch{return!1}}const EJ={serialize:JSON.stringify,deserialize:JSON.parse},dC=me((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}=J("JsonInput",EJ,e),[v,p]=zn({value:t,defaultValue:n,finalValue:"",onChange:i}),[$,m]=_.useState(xT(v,l)),g=w=>{u==null||u(w),m(!0)},y=w=>{typeof c=="function"&&c(w);const S=xT(w.currentTarget.value,l);o&&!d&&S&&w.currentTarget.value.trim()!==""&&p(s(l(w.currentTarget.value),null,2)),m(S)};return b.jsx(cC,{value:v,onChange:w=>p(w.currentTarget.value),onFocus:g,onBlur:y,ref:r,readOnly:d,...h,autoComplete:"off",__staticSelector:"JsonInput",error:$?f:a||!0,"data-monospace":!0})});dC.classes=ro.classes;dC.displayName="@mantine/core/JsonInput";const[xJ,Yh]=eo("Menu component was not found in the tree");var nd={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};const CJ={},fC=me((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,...s}=J("MenuDivider",CJ,e),l=Yh();return b.jsx(Q,{ref:r,...l.getStyles("divider",{className:n,style:i,styles:o,classNames:t}),...s})});fC.classes=nd;fC.displayName="@mantine/core/MenuDivider";const kJ={},Gy=me((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,onMouseEnter:s,onMouseLeave:l,onKeyDown:u,children:c,...d}=J("MenuDropdown",kJ,e),f=_.useRef(null),h=Yh(),v=qr(u,m=>{var g,y;(m.key==="ArrowUp"||m.key==="ArrowDown")&&(m.preventDefault(),(y=(g=f.current)==null?void 0:g.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||y.focus())}),p=qr(s,()=>(h.trigger==="hover"||h.trigger==="click-hover")&&h.openDropdown()),$=qr(l,()=>(h.trigger==="hover"||h.trigger==="click-hover")&&h.closeDropdown());return b.jsxs(yn.Dropdown,{...d,onMouseEnter:p,onMouseLeave:$,role:"menu","aria-orientation":"vertical",ref:Tt(r,f),...h.getStyles("dropdown",{className:n,style:i,styles:o,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:v,children:[h.withInitialFocusPlaceholder&&b.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),c]})});Gy.classes=nd;Gy.displayName="@mantine/core/MenuDropdown";const PJ={},qy=tn((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,color:s,closeMenuOnClick:l,leftSection:u,rightSection:c,children:d,disabled:f,"data-disabled":h,...v}=J("MenuItem",PJ,e),p=Yh(),$=Mr(),{dir:m}=Vh(),g=_.useRef(null),y=p.getItemIndex(g.current),w=v,S=qr(w.onMouseLeave,()=>p.setHovered(-1)),E=qr(w.onMouseEnter,()=>p.setHovered(p.getItemIndex(g.current))),x=qr(w.onClick,()=>{h||(typeof l=="boolean"?l&&p.closeDropdownImmediately():p.closeOnItemClick&&p.closeDropdownImmediately())}),C=qr(w.onFocus,()=>p.setHovered(p.getItemIndex(g.current))),k=s?$.variantColorResolver({color:s,theme:$,variant:"light"}):void 0,P=s?Wo({color:s,theme:$}):null;return b.jsxs(Za,{...v,unstyled:p.unstyled,tabIndex:p.menuItemTabIndex,onFocus:C,...p.getStyles("item",{className:n,style:i,styles:o,classNames:t}),ref:Tt(g,r),role:"menuitem",disabled:f,"data-menu-item":!0,"data-disabled":f||h||void 0,"data-hovered":p.hovered===y?!0:void 0,"data-mantine-stop-propagation":!0,onMouseEnter:E,onMouseLeave:S,onClick:x,onKeyDown:QK({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:p.loop,dir:m,orientation:"vertical",onKeyDown:w.onKeyDown}),__vars:{"--menu-item-color":P!=null&&P.isThemeColor&&(P==null?void 0:P.shade)===void 0?`var(--mantine-color-${P.color}-6)`:k==null?void 0:k.color,"--menu-item-hover":k==null?void 0:k.hover},children:[u&&b.jsx("div",{...p.getStyles("itemSection",{styles:o,classNames:t}),"data-position":"left",children:u}),d&&b.jsx("div",{...p.getStyles("itemLabel",{styles:o,classNames:t}),children:d}),c&&b.jsx("div",{...p.getStyles("itemSection",{styles:o,classNames:t}),"data-position":"right",children:c})]})});qy.classes=nd;qy.displayName="@mantine/core/MenuItem";const OJ={},hC=me((e,r)=>{const{classNames:t,className:n,style:i,styles:o,vars:a,...s}=J("MenuLabel",OJ,e),l=Yh();return b.jsx(Q,{ref:r,...l.getStyles("label",{className:n,style:i,styles:o,classNames:t}),...s})});hC.classes=nd;hC.displayName="@mantine/core/MenuLabel";const TJ={refProp:"ref"},vC=_.forwardRef((e,r)=>{const{children:t,refProp:n,...i}=J("MenuTarget",TJ,e);if(!Qc(t))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const o=Yh(),a=t.props,s=qr(a.onClick,()=>{o.trigger==="click"?o.toggleDropdown():o.trigger==="click-hover"&&(o.setOpenedViaClick(!0),o.opened||o.openDropdown())}),l=qr(a.onMouseEnter,()=>(o.trigger==="hover"||o.trigger==="click-hover")&&o.openDropdown()),u=qr(a.onMouseLeave,()=>{(o.trigger==="hover"||o.trigger==="click-hover"&&!o.openedViaClick)&&o.closeDropdown()});return b.jsx(yn.Target,{refProp:n,popupType:"menu",ref:r,...i,children:_.cloneElement(t,{onClick:s,onMouseEnter:l,onMouseLeave:u,"data-expanded":o.opened?!0:void 0})})});vC.displayName="@mantine/core/MenuTarget";const IJ={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function Vo(e){const r=J("Menu",IJ,e),{children:t,onOpen:n,onClose:i,opened:o,defaultOpened:a,trapFocus:s,onChange:l,closeOnItemClick:u,loop:c,closeOnEscape:d,trigger:f,openDelay:h,closeDelay:v,classNames:p,styles:$,unstyled:m,variant:g,vars:y,menuItemTabIndex:w,keepMounted:S,withInitialFocusPlaceholder:E,...x}=r,C=_e({name:"Menu",classes:nd,props:r,classNames:p,styles:$,unstyled:m}),[k,{setHovered:P,resetHovered:T}]=nG(),[R,N]=zn({value:o,defaultValue:a,finalValue:!1,onChange:l}),[F,W]=_.useState(!1),M=()=>{N(!1),W(!1),R&&(i==null||i())},j=()=>{N(!0),!R&&(n==null||n())},O=()=>{R?M():j()},{openDropdown:D,closeDropdown:z}=sJ({open:j,close:M,closeDelay:v,openDelay:h}),G=le=>rG("[data-menu-item]","[data-menu-dropdown]",le),{resolvedClassNames:K,resolvedStyles:ee}=Hh({classNames:p,styles:$,props:r});return Mo(()=>{T()},[R]),b.jsx(xJ,{value:{getStyles:C,opened:R,toggleDropdown:O,getItemIndex:G,hovered:k,setHovered:P,openedViaClick:F,setOpenedViaClick:W,closeOnItemClick:u,closeDropdown:f==="click"?M:z,openDropdown:f==="click"?j:D,closeDropdownImmediately:M,loop:c,trigger:f,unstyled:m,menuItemTabIndex:w,withInitialFocusPlaceholder:E},children:b.jsx(yn,{...x,opened:R,onChange:O,defaultOpened:a,trapFocus:S?!1:s,closeOnEscape:d,__staticSelector:"Menu",classNames:K,styles:ee,unstyled:m,variant:g,keepMounted:S,children:t})})}Vo.extend=e=>e;Vo.classes=nd;Vo.displayName="@mantine/core/Menu";Vo.Item=qy;Vo.Label=hC;Vo.Dropdown=Gy;Vo.Target=vC;Vo.Divider=fC;var OL={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const RJ={withCloseButton:!0},MJ=(e,{radius:r,color:t})=>({root:{"--notification-radius":r===void 0?void 0:pr(r),"--notification-color":t?ir(t,e):void 0}}),pC=me((e,r)=>{const t=J("Notification",RJ,e),{className:n,color:i,radius:o,loading:a,withCloseButton:s,withBorder:l,title:u,icon:c,children:d,onClose:f,closeButtonProps:h,classNames:v,style:p,styles:$,unstyled:m,variant:g,vars:y,mod:w,...S}=t,E=_e({name:"Notification",classes:OL,props:t,className:n,style:p,classNames:v,styles:$,unstyled:m,vars:y,varsResolver:MJ});return b.jsxs(Q,{...E("root"),mod:[{"data-with-icon":!!c||a,"data-with-border":l},w],ref:r,variant:g,...S,role:"alert",children:[c&&!a&&b.jsx("div",{...E("icon"),children:c}),a&&b.jsx(xl,{size:28,color:i,...E("loader")}),b.jsxs("div",{...E("body"),children:[u&&b.jsx("div",{...E("title"),children:u}),b.jsx(Q,{...E("description"),mod:{"data-with-title":!!u},children:d})]}),s&&b.jsx(zy,{iconSize:16,color:"gray",...h,unstyled:m,onClick:f,...E("closeButton")})]})});pC.classes=OL;pC.displayName="@mantine/core/Notification";const[NJ,Yy]=eo("Pagination.Root component was not found in tree");var Xh={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};const AJ={withPadding:!0},Qh=me((e,r)=>{const t=J("PaginationControl",AJ,e),{classNames:n,className:i,style:o,styles:a,vars:s,active:l,disabled:u,withPadding:c,mod:d,...f}=t,h=Yy(),v=u||h.disabled;return b.jsx(Za,{ref:r,disabled:v,mod:[{active:l,disabled:v,"with-padding":c},d],...h.getStyles("control",{className:i,style:o,classNames:n,styles:a,active:!v}),...f})});Qh.classes=Xh;Qh.displayName="@mantine/core/PaginationControl";function Jh({style:e,children:r,path:t,...n}){return b.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)",...e},...n,children:b.jsx("path",{d:t,fill:"currentColor"})})}const DJ=e=>b.jsx(Jh,{...e,path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"}),FJ=e=>b.jsx(Jh,{...e,path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"}),jJ=e=>b.jsx(Jh,{...e,path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"}),LJ=e=>b.jsx(Jh,{...e,path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"}),BJ=e=>b.jsx(Jh,{...e,path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"}),zJ={icon:BJ},Xy=me((e,r)=>{const t=J("PaginationDots",zJ,e),{classNames:n,className:i,style:o,styles:a,vars:s,icon:l,...u}=t,c=Yy(),d=l;return b.jsx(Q,{ref:r,...c.getStyles("dots",{className:i,style:o,styles:a,classNames:n}),...u,children:b.jsx(d,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});Xy.classes=Xh;Xy.displayName="@mantine/core/PaginationDots";function Qy({icon:e,name:r,action:t,type:n}){const i={icon:e},o=_.forwardRef((a,s)=>{const{icon:l,...u}=J(r,i,a),c=l,d=Yy(),f=n==="next"?d.active===d.total:d.active===1;return b.jsx(Qh,{disabled:d.disabled||f,ref:s,onClick:d[t],withPadding:!1,...u,children:b.jsx(c,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});return o.displayName=`@mantine/core/${r}`,o}const TL=Qy({icon:DJ,name:"PaginationNext",action:"onNext",type:"next"}),IL=Qy({icon:FJ,name:"PaginationPrevious",action:"onPrevious",type:"previous"}),RL=Qy({icon:jJ,name:"PaginationFirst",action:"onFirst",type:"previous"}),ML=Qy({icon:LJ,name:"PaginationLast",action:"onLast",type:"next"});function mC({dotsIcon:e}){const r=Yy(),t=r.range.map((n,i)=>{var o,a,s;return n==="dots"?b.jsx(Xy,{icon:e},i):b.jsx(Qh,{active:n===r.active,"aria-current":n===r.active?"page":void 0,onClick:()=>r.onChange(n),disabled:r.disabled,...(o=r.getItemProps)==null?void 0:o.call(r,n),children:((s=(a=r.getItemProps)==null?void 0:a.call(r,n))==null?void 0:s.children)??n},i)});return b.jsx(b.Fragment,{children:t})}mC.displayName="@mantine/core/PaginationItems";const HJ={siblings:1,boundaries:1},WJ=(e,{size:r,radius:t,color:n,autoContrast:i})=>({root:{"--pagination-control-radius":t===void 0?void 0:pr(t),"--pagination-control-size":qe(r,"pagination-control-size"),"--pagination-control-fz":Ut(r),"--pagination-active-bg":n?ir(n,e):void 0,"--pagination-active-color":_x(i,e)?zh({color:n,theme:e,autoContrast:i}):void 0}}),Jy=me((e,r)=>{const t=J("PaginationRoot",HJ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,total:u,value:c,defaultValue:d,onChange:f,disabled:h,siblings:v,boundaries:p,color:$,radius:m,onNextPage:g,onPreviousPage:y,onFirstPage:w,onLastPage:S,getItemProps:E,autoContrast:x,...C}=t,k=_e({name:"Pagination",classes:Xh,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:WJ}),{range:P,setPage:T,next:R,previous:N,active:F,first:W,last:M}=_G({page:c,initialPage:d,onChange:f,total:u,siblings:v,boundaries:p}),j=qr(g,R),O=qr(y,N),D=qr(w,W),z=qr(S,M);return b.jsx(NJ,{value:{total:u,range:P,active:F,disabled:h,getItemProps:E,onChange:T,onNext:j,onPrevious:O,onFirst:D,onLast:z,getStyles:k},children:b.jsx(Q,{ref:r,...k("root"),...C})})});Jy.classes=Xh;Jy.displayName="@mantine/core/PaginationRoot";const VJ={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},xi=me((e,r)=>{const t=J("Pagination",VJ,e),{withEdges:n,withControls:i,getControlProps:o,nextIcon:a,previousIcon:s,lastIcon:l,firstIcon:u,dotsIcon:c,total:d,gap:f,hideWithOnePage:h,withPages:v,...p}=t;return d<=0||h&&d===1?null:b.jsx(Jy,{ref:r,total:d,...p,children:b.jsxs(Cl,{gap:f,children:[n&&b.jsx(RL,{icon:u,...o==null?void 0:o("first")}),i&&b.jsx(IL,{icon:s,...o==null?void 0:o("previous")}),v&&b.jsx(mC,{dotsIcon:c}),i&&b.jsx(TL,{icon:a,...o==null?void 0:o("next")}),n&&b.jsx(ML,{icon:l,...o==null?void 0:o("last")})]})})});xi.classes=Xh;xi.displayName="@mantine/core/Pagination";xi.Root=Jy;xi.Control=Qh;xi.Dots=Xy;xi.First=RL;xi.Last=ML;xi.Next=TL;xi.Previous=IL;xi.Items=mC;const UJ=({reveal:e})=>b.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:b.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 BS={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const KJ={visibilityToggleIcon:UJ},GJ=(e,{size:r})=>({root:{"--psi-icon-size":qe(r,"psi-icon-size"),"--psi-button-size":qe(r,"psi-button-size")}}),Zy=me((e,r)=>{const t=J("PasswordInput",KJ,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:$,label:m,size:g,errorProps:y,descriptionProps:w,labelProps:S,withAsterisk:E,inputWrapperOrder:x,wrapperProps:C,radius:k,rightSection:P,rightSectionWidth:T,rightSectionPointerEvents:R,leftSectionWidth:N,visible:F,defaultVisible:W,onVisibilityChange:M,visibilityToggleIcon:j,visibilityToggleButtonProps:O,rightSectionProps:D,leftSectionProps:z,leftSectionPointerEvents:G,withErrorStyles:K,mod:ee,...le}=t,se=Sl(h),[de,ge]=zn({value:F,defaultValue:W,finalValue:!1,onChange:M}),oe=()=>ge(!de),V=_e({name:"PasswordInput",classes:BS,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:GJ}),{resolvedClassNames:H,resolvedStyles:U}=Hh({classNames:n,styles:a,props:t}),{styleProps:te,rest:ce}=Wh(le),ie=j,ke=b.jsx(Wa,{...V("visibilityToggle"),disabled:f,radius:k,"aria-hidden":!O,tabIndex:-1,...O,variant:(O==null?void 0:O.variant)??"subtle",color:"gray",unstyled:s,onTouchEnd:Ee=>{var xe;Ee.preventDefault(),(xe=O==null?void 0:O.onTouchEnd)==null||xe.call(O,Ee),oe()},onMouseDown:Ee=>{var xe;Ee.preventDefault(),(xe=O==null?void 0:O.onMouseDown)==null||xe.call(O,Ee),oe()},onKeyDown:Ee=>{var xe;(xe=O==null?void 0:O.onKeyDown)==null||xe.call(O,Ee),Ee.key===" "&&(Ee.preventDefault(),oe())},children:b.jsx(ie,{reveal:de})});return b.jsx(It.Wrapper,{required:u,id:se,label:m,error:c,description:$,size:g,classNames:H,styles:U,__staticSelector:"PasswordInput",errorProps:y,descriptionProps:w,unstyled:s,withAsterisk:E,inputWrapperOrder:x,inputContainer:p,variant:v,labelProps:{...S,htmlFor:se},mod:ee,...V("root"),...te,...C,children:b.jsx(It,{component:"div",error:c,leftSection:d,size:g,classNames:{...H,input:Ae(BS.input,H.input)},styles:U,radius:k,disabled:f,__staticSelector:"PasswordInput",rightSectionWidth:T,rightSection:P??ke,variant:v,unstyled:s,leftSectionWidth:N,rightSectionPointerEvents:R||"all",rightSectionProps:D,leftSectionProps:z,leftSectionPointerEvents:G,withAria:!1,withErrorStyles:K,children:b.jsx("input",{required:u,"data-invalid":!!c||void 0,"data-with-left-section":!!d||void 0,...V("innerInput"),disabled:f,id:se,ref:r,...ce,autoComplete:ce.autoComplete||"off",type:de?"text":"password"})})})});Zy.classes={...ro.classes,...BS};Zy.displayName="@mantine/core/PasswordInput";var NL={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const qJ={withItemsBorders:!0},YJ=(e,{radius:r,color:t,transitionDuration:n,size:i,transitionTimingFunction:o})=>({root:{"--sc-radius":r===void 0?void 0:pr(r),"--sc-color":t?ir(t,e):void 0,"--sc-shadow":t?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":n===void 0?void 0:`${n}ms`,"--sc-transition-timing-function":o,"--sc-padding":qe(i,"sc-padding"),"--sc-font-size":Ut(i)}}),gC=me((e,r)=>{var de,ge;const t=J("SegmentedControl",qJ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,data:u,value:c,defaultValue:d,onChange:f,size:h,name:v,disabled:p,readOnly:$,fullWidth:m,orientation:g,radius:y,color:w,transitionDuration:S,transitionTimingFunction:E,variant:x,autoContrast:C,withItemsBorders:k,mod:P,...T}=t,R=_e({name:"SegmentedControl",props:t,classes:NL,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:YJ}),N=Mr(),F=u.map(oe=>typeof oe=="string"?{label:oe,value:oe}:oe),W=OG(),[M,j]=_.useState(null),[O,D]=_.useState({}),z=(oe,V)=>{O[V]=oe,D(O)},[G,K]=zn({value:c,defaultValue:d,finalValue:Array.isArray(u)?((de=F.find(oe=>!oe.disabled))==null?void 0:de.value)??((ge=u[0])==null?void 0:ge.value)??null:null,onChange:f}),ee=Sl(v),le=F.map(oe=>_.createElement(Q,{...R("control"),mod:{active:G===oe.value,orientation:g},key:oe.value},_.createElement("input",{...R("input"),disabled:p||oe.disabled,type:"radio",name:ee,value:oe.value,id:`${ee}-${oe.value}`,checked:G===oe.value,onChange:()=>!$&&K(oe.value),"data-focus-ring":N.focusRing,key:`${oe.value}-input`}),_.createElement(Q,{component:"label",...R("label"),mod:{active:G===oe.value&&!(p||oe.disabled),disabled:p||oe.disabled,"read-only":$},htmlFor:`${ee}-${oe.value}`,ref:V=>z(V,oe.value),__vars:{"--sc-label-color":w!==void 0?zh({color:w,theme:N,autoContrast:C}):void 0},key:`${oe.value}-label`},b.jsx("span",{...R("innerLabel"),children:oe.label})))),se=Tt(r,oe=>j(oe));return u.length===0?null:b.jsxs(Q,{...R("root"),variant:x,size:h,ref:se,mod:[{"full-width":m,orientation:g,initialized:W,"with-items-borders":k},P],...T,role:"radiogroup","data-disabled":p,children:[typeof G=="string"&&b.jsx(Ux,{target:O[G],parent:M,component:"span",transitionDuration:"var(--sc-transition-duration)",...R("indicator")}),le]})});gC.classes=NL;gC.displayName="@mantine/core/SegmentedControl";const XJ={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},Dg=me((e,r)=>{const t=J("Select",XJ,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:$,defaultValue:m,selectFirstOptionOnChange:g,onOptionSubmit:y,comboboxProps:w,readOnly:S,disabled:E,filter:x,limit:C,withScrollArea:k,maxDropdownHeight:P,size:T,searchable:R,rightSection:N,checkIconPosition:F,withCheckIcon:W,nothingFoundMessage:M,name:j,form:O,searchValue:D,defaultSearchValue:z,onSearchChange:G,allowDeselect:K,error:ee,rightSectionPointerEvents:le,id:se,clearable:de,clearButtonProps:ge,hiddenInputProps:oe,renderOption:V,onClear:H,autoComplete:U,scrollAreaProps:te,__defaultRightSection:ce,__clearSection:ie,__clearable:ke,chevronColor:Ee,...xe}=t,tt=_.useMemo(()=>fQ(p),[p]),Te=_.useMemo(()=>sL(tt),[tt]),jt=Sl(se),[Xe,Lt,Md]=zn({value:$,defaultValue:m,finalValue:null,onChange:v}),sr=typeof Xe=="string"?Te[Xe]:void 0,Xn=kG(sr),[Xo,Qn]=zn({value:D,defaultValue:z,finalValue:sr?sr.label:"",onChange:G}),Nt=hL({opened:s,defaultOpened:l,onDropdownOpen:()=>{c==null||c(),Nt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u==null||u(),Nt.resetSelectedOption()}}),{resolvedClassNames:Ci,resolvedStyles:wt}=Hh({props:t,styles:i,classNames:n});_.useEffect(()=>{g&&Nt.selectFirstOption()},[g,Xe]),_.useEffect(()=>{$===null&&Qn(""),typeof $=="string"&&sr&&((Xn==null?void 0:Xn.value)!==sr.value||(Xn==null?void 0:Xn.label)!==sr.label)&&Qn(sr.label)},[$,sr]);const Vl=b.jsx(Ke.ClearButton,{...ge,onClear:()=>{Lt(null,null),Qn(""),H==null||H()}}),us=de&&!!Xe&&!E&&!S;return b.jsxs(b.Fragment,{children:[b.jsxs(Ke,{store:Nt,__staticSelector:"Select",classNames:Ci,styles:wt,unstyled:o,readOnly:S,onOptionSubmit:Ar=>{y==null||y(Ar);const Jn=K&&Te[Ar].value===Xe?null:Te[Ar],Nd=Jn?Jn.value:null;Nd!==Xe&&Lt(Nd,Jn),!Md&&Qn(typeof Nd=="string"&&(Jn==null?void 0:Jn.label)||""),Nt.closeDropdown()},size:T,...w,children:[b.jsx(Ke.Target,{targetType:R?"input":"button",autoComplete:U,children:b.jsx(ro,{id:jt,ref:r,__defaultRightSection:b.jsx(Ke.Chevron,{size:T,error:ee,unstyled:o,color:Ee}),__clearSection:Vl,__clearable:us,rightSection:N,rightSectionPointerEvents:le||(us?"all":"none"),...xe,size:T,__staticSelector:"Select",disabled:E,readOnly:S||!R,value:Xo,onChange:Ar=>{Qn(Ar.currentTarget.value),Nt.openDropdown(),g&&Nt.selectFirstOption()},onFocus:Ar=>{R&&Nt.openDropdown(),d==null||d(Ar)},onBlur:Ar=>{var Jn;R&&Nt.closeDropdown(),Qn(Xe!=null&&((Jn=Te[Xe])==null?void 0:Jn.label)||""),f==null||f(Ar)},onClick:Ar=>{R?Nt.openDropdown():Nt.toggleDropdown(),h==null||h(Ar)},classNames:Ci,styles:wt,unstyled:o,pointer:!R,error:ee})}),b.jsx(GQ,{data:tt,hidden:S||E,filter:x,search:Xo,limit:C,hiddenWhenEmpty:!M,withScrollArea:k,maxDropdownHeight:P,filterOptions:R&&(sr==null?void 0:sr.label)!==Xo,value:Xe,checkIconPosition:F,withCheckIcon:W,nothingFoundMessage:M,unstyled:o,labelId:xe.label?`${jt}-label`:void 0,"aria-label":xe.label?void 0:xe["aria-label"],renderOption:V,scrollAreaProps:te})]}),b.jsx(Ke.HiddenInput,{value:Xe,name:j,form:O,disabled:E,...oe})]})});Dg.classes={...ro.classes,...Ke.classes};Dg.displayName="@mantine/core/Select";const[QJ,eb]=eo("SliderProvider was not found in tree"),AL=_.forwardRef(({size:e,disabled:r,variant:t,color:n,thumbSize:i,radius:o,...a},s)=>{const{getStyles:l}=eb();return b.jsx(Q,{tabIndex:-1,variant:t,size:e,ref:s,...l("root"),...a})});AL.displayName="@mantine/core/SliderRoot";const DL=_.forwardRef(({max:e,min:r,value:t,position:n,label:i,dragging:o,onMouseDown:a,onKeyDownCapture:s,labelTransitionProps:l,labelAlwaysOn:u,thumbLabel:c,onFocus:d,onBlur:f,showLabelOnHover:h,isHovered:v,children:p=null,disabled:$},m)=>{const{getStyles:g}=eb(),[y,w]=_.useState(!1),S=u||o||y||h&&v;return b.jsxs(Q,{tabIndex:0,role:"slider","aria-label":c,"aria-valuemax":e,"aria-valuemin":r,"aria-valuenow":t,ref:m,__vars:{"--slider-thumb-offset":`${n}%`},...g("thumb",{focusable:!0}),mod:{dragging:o,disabled:$},onFocus:E=>{w(!0),typeof d=="function"&&d(E)},onBlur:E=>{w(!1),typeof f=="function"&&f(E)},onTouchStart:a,onMouseDown:a,onKeyDownCapture:s,onClick:E=>E.stopPropagation(),children:[p,b.jsx(ed,{mounted:i!=null&&!!S,transition:"fade",duration:0,...l,children:E=>b.jsx("div",{...g("label",{style:E}),children:i})})]})});DL.displayName="@mantine/core/SliderThumb";function FL({value:e,min:r,max:t}){const n=(e-r)/(t-r)*100;return Math.min(Math.max(n,0),100)}function JJ({mark:e,offset:r,value:t,inverted:n=!1}){return n?typeof r=="number"&&e.value<=r||e.value>=t:typeof r=="number"?e.value>=r&&e.value<=t:e.value<=t}function jL({marks:e,min:r,max:t,disabled:n,value:i,offset:o,inverted:a}){const{getStyles:s}=eb();if(!e)return null;const l=e.map((u,c)=>_.createElement(Q,{...s("markWrapper"),__vars:{"--mark-offset":`${FL({value:u.value,min:r,max:t})}%`},key:c},b.jsx(Q,{...s("mark"),mod:{filled:JJ({mark:u,value:i,offset:o,inverted:a}),disabled:n}}),u.label&&b.jsx("div",{...s("markLabel"),children:u.label})));return b.jsx("div",{children:l})}jL.displayName="@mantine/core/SliderMarks";function LL({filled:e,children:r,offset:t,disabled:n,marksOffset:i,inverted:o,containerProps:a,...s}){const{getStyles:l}=eb();return b.jsx(Q,{...l("trackContainer"),mod:{disabled:n},...a,children:b.jsxs(Q,{...l("track"),mod:{inverted:o,disabled:n},children:[b.jsx(Q,{mod:{inverted:o,disabled:n},__vars:{"--slider-bar-width":`calc(${e}% + var(--slider-size))`,"--slider-bar-offset":`calc(${t}% - var(--slider-size))`},...l("bar")}),r,b.jsx(jL,{...s,offset:i,disabled:n,inverted:o})]})})}LL.displayName="@mantine/core/SliderTrack";function ZJ({value:e,containerWidth:r,min:t,max:n,step:i,precision:o}){const s=(r?Math.min(Math.max(e,0),r)/r:e)*(n-t),l=(s!==0?Math.round(s/i)*i:0)+t,u=Math.max(l,t);return o!==void 0?Number(u.toFixed(o)):u}function Pp(e,r){return parseFloat(e.toFixed(r))}function eZ(e){if(!e)return 0;const r=e.toString().split(".");return r.length>1?r[1].length:0}function f0(e,r){const n=[...r].sort((i,o)=>i.value-o.value).find(i=>i.value>e);return n?n.value:e}function h0(e,r){const n=[...r].sort((i,o)=>o.value-i.value).find(i=>i.value<e);return n?n.value:e}function CT(e){const r=[...e].sort((t,n)=>t.value-n.value);return r.length>0?r[0].value:0}function kT(e){const r=[...e].sort((t,n)=>t.value-n.value);return r.length>0?r[r.length-1].value:100}var BL={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const tZ={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},labelAlwaysOn:!1,thumbLabel:"",showLabelOnHover:!0,disabled:!1,scale:e=>e},rZ=(e,{size:r,color:t,thumbSize:n,radius:i})=>({root:{"--slider-size":qe(r,"slider-size"),"--slider-color":t?ir(t,e):void 0,"--slider-radius":i===void 0?void 0:pr(i),"--slider-thumb-size":n!==void 0?L(n):"calc(var(--slider-size) * 2)"}}),yC=me((e,r)=>{const t=J("Slider",tZ,e),{classNames:n,styles:i,value:o,onChange:a,onChangeEnd:s,size:l,min:u,max:c,step:d,precision:f,defaultValue:h,name:v,marks:p,label:$,labelTransitionProps:m,labelAlwaysOn:g,thumbLabel:y,showLabelOnHover:w,thumbChildren:S,disabled:E,unstyled:x,scale:C,inverted:k,className:P,style:T,vars:R,hiddenInputProps:N,restrictToMarks:F,thumbProps:W,...M}=t,j=_e({name:"Slider",props:t,classes:BL,classNames:n,className:P,styles:i,style:T,vars:R,varsResolver:rZ,unstyled:x}),{dir:O}=Vh(),[D,z]=_.useState(!1),[G,K]=zn({value:typeof o=="number"?If(o,u,c):o,defaultValue:typeof h=="number"?If(h,u,c):h,finalValue:If(0,u,c),onChange:a}),ee=_.useRef(G),le=_.useRef(null),se=_.useRef(null),de=FL({value:G,min:u,max:c}),ge=C(G),oe=typeof $=="function"?$(ge):$,V=f??eZ(d),H=_.useCallback(({x:ie})=>{if(!E){const ke=ZJ({value:ie,min:u,max:c,step:d,precision:V});K(F&&(p!=null&&p.length)?WO(ke,p.map(Ee=>Ee.value)):ke),ee.current=ke}},[E,u,c,d,V,K,p,F]),{ref:U,active:te}=SG(H,{onScrubEnd:()=>!E&&(s==null?void 0:s(F&&(p!=null&&p.length)?WO(ee.current,p.map(ie=>ie.value)):ee.current))},O),ce=ie=>{var ke,Ee,xe,tt,Te,jt;if(!E)switch(ie.key){case"ArrowUp":{if(ie.preventDefault(),(ke=se.current)==null||ke.focus(),F&&p){const Lt=f0(G,p);K(Lt),s==null||s(Lt);break}const Xe=Pp(Math.min(Math.max(G+d,u),c),V);K(Xe),s==null||s(Xe);break}case"ArrowRight":{if(ie.preventDefault(),(Ee=se.current)==null||Ee.focus(),F&&p){const Lt=O==="rtl"?h0(G,p):f0(G,p);K(Lt),s==null||s(Lt);break}const Xe=Pp(Math.min(Math.max(O==="rtl"?G-d:G+d,u),c),V);K(Xe),s==null||s(Xe);break}case"ArrowDown":{if(ie.preventDefault(),(xe=se.current)==null||xe.focus(),F&&p){const Lt=h0(G,p);K(Lt),s==null||s(Lt);break}const Xe=Pp(Math.min(Math.max(G-d,u),c),V);K(Xe),s==null||s(Xe);break}case"ArrowLeft":{if(ie.preventDefault(),(tt=se.current)==null||tt.focus(),F&&p){const Lt=O==="rtl"?f0(G,p):h0(G,p);K(Lt),s==null||s(Lt);break}const Xe=Pp(Math.min(Math.max(O==="rtl"?G+d:G-d,u),c),V);K(Xe),s==null||s(Xe);break}case"Home":{if(ie.preventDefault(),(Te=se.current)==null||Te.focus(),F&&p){K(CT(p)),s==null||s(CT(p));break}K(u),s==null||s(u);break}case"End":{if(ie.preventDefault(),(jt=se.current)==null||jt.focus(),F&&p){K(kT(p)),s==null||s(kT(p));break}K(c),s==null||s(c);break}}};return b.jsx(QJ,{value:{getStyles:j},children:b.jsxs(AL,{...M,ref:Tt(r,le),onKeyDownCapture:ce,onMouseDownCapture:()=>{var ie;return(ie=le.current)==null?void 0:ie.focus()},size:l,disabled:E,children:[b.jsx(LL,{inverted:k,offset:0,filled:de,marks:p,min:u,max:c,value:ge,disabled:E,containerProps:{ref:U,onMouseEnter:w?()=>z(!0):void 0,onMouseLeave:w?()=>z(!1):void 0},children:b.jsx(DL,{max:c,min:u,value:ge,position:de,dragging:te,label:oe,ref:se,labelTransitionProps:m,labelAlwaysOn:g,thumbLabel:y,showLabelOnHover:w,isHovered:D,disabled:E,...W,children:S})}),b.jsx("input",{type:"hidden",name:v,value:ge,...N})]})})});yC.classes=BL;yC.displayName="@mantine/core/Slider";var zL={root:"m_6d731127"};const nZ={gap:"md",align:"stretch",justify:"flex-start"},iZ=(e,{gap:r,align:t,justify:n})=>({root:{"--stack-gap":kc(r),"--stack-align":t,"--stack-justify":n}}),Yi=me((e,r)=>{const t=J("Stack",nZ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,align:u,justify:c,gap:d,variant:f,...h}=t,v=_e({name:"Stack",props:t,classes:zL,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:iZ});return b.jsx(Q,{ref:r,...v("root"),variant:f,...h})});Yi.classes=zL;Yi.displayName="@mantine/core/Stack";const[oZ,aZ]=eo("Table component was not found in the tree");var Zh={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function sZ(e,r){if(!r)return;const t={};return r.columnBorder&&e.withColumnBorders&&(t["data-with-column-border"]=!0),r.rowBorder&&e.withRowBorders&&(t["data-with-row-border"]=!0),r.striped&&e.striped&&(t["data-striped"]=e.striped),r.highlightOnHover&&e.highlightOnHover&&(t["data-hover"]=!0),r.captionSide&&e.captionSide&&(t["data-side"]=e.captionSide),r.stickyHeader&&e.stickyHeader&&(t["data-sticky"]=!0),t}function kl(e,r){const t=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,n=me((i,o)=>{const a=J(t,{},i),{classNames:s,className:l,style:u,styles:c,...d}=a,f=aZ();return b.jsx(Q,{component:e,ref:o,...sZ(f,r),...f.getStyles(e,{className:l,classNames:s,style:u,styles:c,props:a}),...d})});return n.displayName=`@mantine/core/${t}`,n.classes=Zh,n}const Va=kl("th",{columnBorder:!0}),ev=kl("td",{columnBorder:!0}),gi=kl("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),bC=kl("thead",{stickyHeader:!0}),HL=kl("tbody"),$C=kl("tfoot"),WL=kl("caption",{captionSide:!0});function wC({data:e}){return b.jsxs(b.Fragment,{children:[e.caption&&b.jsx(WL,{children:e.caption}),e.head&&b.jsx(bC,{children:b.jsx(gi,{children:e.head.map((r,t)=>b.jsx(Va,{children:r},t))})}),e.body&&b.jsx(HL,{children:e.body.map((r,t)=>b.jsx(gi,{children:r.map((n,i)=>b.jsx(ev,{children:n},i))},t))}),e.foot&&b.jsx($C,{children:b.jsx(gi,{children:e.foot.map((r,t)=>b.jsx(Va,{children:r},t))})})]})}wC.displayName="@mantine/core/TableDataRenderer";const lZ={type:"scrollarea"},uZ=(e,{minWidth:r,type:t})=>({scrollContainer:{"--table-min-width":L(r),"--table-overflow":t==="native"?"auto":void 0}}),SC=me((e,r)=>{const t=J("TableScrollContainer",lZ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,children:u,minWidth:c,type:d,...f}=t,h=_e({name:"TableScrollContainer",classes:Zh,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:uZ,rootSelector:"scrollContainer"});return b.jsx(Q,{component:d==="scrollarea"?El:"div",...d==="scrollarea"?{offsetScrollbars:"x"}:{},ref:r,...h("scrollContainer"),...f,children:b.jsx("div",{...h("scrollContainerInner"),children:u})})});SC.classes=Zh;SC.displayName="@mantine/core/TableScrollContainer";const cZ={withRowBorders:!0,verticalSpacing:7},dZ=(e,{layout:r,captionSide:t,horizontalSpacing:n,verticalSpacing:i,borderColor:o,stripedColor:a,highlightOnHoverColor:s,striped:l,highlightOnHover:u,stickyHeaderOffset:c,stickyHeader:d})=>({table:{"--table-layout":r,"--table-caption-side":t,"--table-horizontal-spacing":kc(n),"--table-vertical-spacing":kc(i),"--table-border-color":o?ir(o,e):void 0,"--table-striped-color":l&&a?ir(a,e):void 0,"--table-highlight-on-hover-color":u&&s?ir(s,e):void 0,"--table-sticky-header-offset":d?L(c):void 0}}),Un=me((e,r)=>{const t=J("Table",cZ,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,horizontalSpacing:u,verticalSpacing:c,captionSide:d,stripedColor:f,highlightOnHoverColor:h,striped:v,highlightOnHover:p,withColumnBorders:$,withRowBorders:m,withTableBorder:g,borderColor:y,layout:w,variant:S,data:E,children:x,stickyHeader:C,stickyHeaderOffset:k,mod:P,tabularNums:T,...R}=t,N=_e({name:"Table",props:t,className:i,style:o,classes:Zh,classNames:n,styles:a,unstyled:s,rootSelector:"table",vars:l,varsResolver:dZ});return b.jsx(oZ,{value:{getStyles:N,stickyHeader:C,striped:v===!0?"odd":v||void 0,highlightOnHover:p,withColumnBorders:$,withRowBorders:m,captionSide:d||"bottom"},children:b.jsx(Q,{component:"table",variant:S,ref:r,mod:[{"data-with-table-border":g,"data-tabular-nums":T},P],...N("table"),...R,children:x||!!E&&b.jsx(wC,{data:E})})})});Un.classes=Zh;Un.displayName="@mantine/core/Table";Un.Td=ev;Un.Th=Va;Un.Tr=gi;Un.Thead=bC;Un.Tbody=HL;Un.Tfoot=$C;Un.Caption=WL;Un.ScrollContainer=SC;Un.DataRenderer=wC;const fZ={},Ic=me((e,r)=>{const t=J("TextInput",fZ,e);return b.jsx(ro,{component:"input",ref:r,...t,__staticSelector:"TextInput"})});Ic.classes=ro.classes;Ic.displayName="@mantine/core/TextInput";const hZ=["h1","h2","h3","h4","h5","h6"],vZ=["xs","sm","md","lg","xl"];function pZ(e,r){const t=r!==void 0?r:`h${e}`;return hZ.includes(t)?{fontSize:`var(--mantine-${t}-font-size)`,fontWeight:`var(--mantine-${t}-font-weight)`,lineHeight:`var(--mantine-${t}-line-height)`}:vZ.includes(t)?{fontSize:`var(--mantine-font-size-${t})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:L(t),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var VL={root:"m_8a5d1357"};const mZ={order:1},gZ=(e,{order:r,size:t,lineClamp:n,textWrap:i})=>{const o=pZ(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}}},ll=me((e,r)=>{const t=J("Title",mZ,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,$=_e({name:"Title",props:t,classes:VL,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:u,varsResolver:gZ});return[1,2,3,4,5,6].includes(l)?b.jsx(Q,{...$("root"),component:`h${l}`,variant:d,ref:r,mod:[{order:l,"data-line-clamp":typeof f=="number"},v],size:c,...p}):null});ll.classes=VL;ll.displayName="@mantine/core/Title";var id=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(){}},ul=typeof window>"u"||"Deno"in globalThis;function On(){}function yZ(e,r){return typeof e=="function"?e(r):e}function zS(e){return typeof e=="number"&&e>=0&&e!==1/0}function UL(e,r){return Math.max(e+(r||0)-Date.now(),0)}function Zu(e,r){return typeof e=="function"?e(r):e}function ai(e,r){return typeof e=="function"?e(r):e}function PT(e,r){const{type:t="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(r.queryHash!==_C(a,r.options))return!1}else if(!ch(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 OT(e,r){const{exact:t,status:n,predicate:i,mutationKey:o}=e;if(o){if(!r.options.mutationKey)return!1;if(t){if(cl(r.options.mutationKey)!==cl(o))return!1}else if(!ch(r.options.mutationKey,o))return!1}return!(n&&r.state.status!==n||i&&!i(r))}function _C(e,r){return((r==null?void 0:r.queryKeyHashFn)||cl)(e)}function cl(e){return JSON.stringify(e,(r,t)=>HS(t)?Object.keys(t).sort().reduce((n,i)=>(n[i]=t[i],n),{}):t)}function ch(e,r){return e===r?!0:typeof e!=typeof r?!1:e&&r&&typeof e=="object"&&typeof r=="object"?!Object.keys(r).some(t=>!ch(e[t],r[t])):!1}function KL(e,r){if(e===r)return e;const t=TT(e)&&TT(r);if(t||HS(e)&&HS(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]=KL(e[c],r[c]),s[c]===e[c]&&e[c]!==void 0&&l++)}return i===a&&l===i?e:s}return r}function Fg(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 TT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function HS(e){if(!IT(e))return!1;const r=e.constructor;if(r===void 0)return!0;const t=r.prototype;return!(!IT(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function IT(e){return Object.prototype.toString.call(e)==="[object Object]"}function bZ(e){return new Promise(r=>{setTimeout(r,e)})}function WS(e,r,t){return typeof t.structuralSharing=="function"?t.structuralSharing(e,r):t.structuralSharing!==!1?KL(e,r):r}function $Z(e,r,t=0){const n=[...e,r];return t&&n.length>t?n.slice(1):n}function wZ(e,r,t=0){const n=[r,...e];return t&&n.length>t?n.slice(0,-1):n}var EC=Symbol();function GL(e,r){return!e.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!e.queryFn||e.queryFn===EC?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ns,ua,ic,ZA,SZ=(ZA=class extends id{constructor(){super();ye(this,Ns);ye(this,ua);ye(this,ic);ae(this,ic,r=>{if(!ul&&window.addEventListener){const t=()=>r();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){I(this,ua)||this.setEventListener(I(this,ic))}onUnsubscribe(){var r;this.hasListeners()||((r=I(this,ua))==null||r.call(this),ae(this,ua,void 0))}setEventListener(r){var t;ae(this,ic,r),(t=I(this,ua))==null||t.call(this),ae(this,ua,r(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(r){I(this,Ns)!==r&&(ae(this,Ns,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(t=>{t(r)})}isFocused(){var r;return typeof I(this,Ns)=="boolean"?I(this,Ns):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Ns=new WeakMap,ua=new WeakMap,ic=new WeakMap,ZA),xC=new SZ,oc,ca,ac,eD,_Z=(eD=class extends id{constructor(){super();ye(this,oc,!0);ye(this,ca);ye(this,ac);ae(this,ac,r=>{if(!ul&&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(){I(this,ca)||this.setEventListener(I(this,ac))}onUnsubscribe(){var r;this.hasListeners()||((r=I(this,ca))==null||r.call(this),ae(this,ca,void 0))}setEventListener(r){var t;ae(this,ac,r),(t=I(this,ca))==null||t.call(this),ae(this,ca,r(this.setOnline.bind(this)))}setOnline(r){I(this,oc)!==r&&(ae(this,oc,r),this.listeners.forEach(n=>{n(r)}))}isOnline(){return I(this,oc)}},oc=new WeakMap,ca=new WeakMap,ac=new WeakMap,eD),jg=new _Z;function VS(){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 EZ(e){return Math.min(1e3*2**e,3e4)}function qL(e){return(e??"online")==="online"?jg.isOnline():!0}var YL=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function v0(e){return e instanceof YL}function XL(e){let r=!1,t=0,n=!1,i;const o=VS(),a=p=>{var $;n||(f(new YL(p)),($=e.abort)==null||$.call(e))},s=()=>{r=!0},l=()=>{r=!1},u=()=>xC.isFocused()&&(e.networkMode==="always"||jg.isOnline())&&e.canRun(),c=()=>qL(e.networkMode)&&e.canRun(),d=p=>{var $;n||(n=!0,($=e.onSuccess)==null||$.call(e,p),i==null||i(),o.resolve(p))},f=p=>{var $;n||(n=!0,($=e.onError)==null||$.call(e,p),i==null||i(),o.reject(p))},h=()=>new Promise(p=>{var $;i=m=>{(n||u())&&p(m)},($=e.onPause)==null||$.call(e)}).then(()=>{var p;i=void 0,n||(p=e.onContinue)==null||p.call(e)}),v=()=>{if(n)return;let p;const $=t===0?e.initialPromise:void 0;try{p=$??e.fn()}catch(m){p=Promise.reject(m)}Promise.resolve(p).then(d).catch(m=>{var E;if(n)return;const g=e.retry??(ul?0:3),y=e.retryDelay??EZ,w=typeof y=="function"?y(t,m):y,S=g===!0||typeof g=="number"&&t<g||typeof g=="function"&&g(t,m);if(r||!S){f(m);return}t++,(E=e.onFail)==null||E.call(e,t,m),bZ(w).then(()=>u()?void 0:h()).then(()=>{r?f(m):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 xZ(){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 Dt=xZ(),As,tD,QL=(tD=class{constructor(){ye(this,As)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zS(this.gcTime)&&ae(this,As,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ul?1/0:5*60*1e3))}clearGcTimeout(){I(this,As)&&(clearTimeout(I(this,As)),ae(this,As,void 0))}},As=new WeakMap,tD),sc,lc,kn,Ds,cr,Ph,Fs,ri,lo,rD,CZ=(rD=class extends QL{constructor(r){super();ye(this,ri);ye(this,sc);ye(this,lc);ye(this,kn);ye(this,Ds);ye(this,cr);ye(this,Ph);ye(this,Fs);ae(this,Fs,!1),ae(this,Ph,r.defaultOptions),this.setOptions(r.options),this.observers=[],ae(this,Ds,r.client),ae(this,kn,I(this,Ds).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,ae(this,sc,kZ(this.options)),this.state=r.state??I(this,sc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=I(this,cr))==null?void 0:r.promise}setOptions(r){this.options={...I(this,Ph),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&I(this,kn).remove(this)}setData(r,t){const n=WS(this.state.data,r,this.options);return Ce(this,ri,lo).call(this,{data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(r,t){Ce(this,ri,lo).call(this,{type:"setState",state:r,setStateOptions:t})}cancel(r){var n,i;const t=(n=I(this,cr))==null?void 0:n.promise;return(i=I(this,cr))==null||i.cancel(r),t?t.then(On).catch(On):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(I(this,sc))}isActive(){return this.observers.some(r=>ai(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===EC||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||!UL(this.state.dataUpdatedAt,r)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(t=I(this,cr))==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(t=I(this,cr))==null||t.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),I(this,kn).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(t=>t!==r),this.observers.length||(I(this,cr)&&(I(this,Fs)?I(this,cr).cancel({revert:!0}):I(this,cr).cancelRetry()),this.scheduleGc()),I(this,kn).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ce(this,ri,lo).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(I(this,cr))return I(this,cr).continueRetry(),I(this,cr).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:()=>(ae(this,Fs,!0),n.signal)})},o=()=>{const d=GL(this.options,t),f={client:I(this,Ds),queryKey:this.queryKey,meta:this.meta};return i(f),ae(this,Fs,!1),this.options.persister?this.options.persister(d,f,this):d(f)},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:I(this,Ds),state:this.state,fetchFn:o};i(a),(l=this.options.behavior)==null||l.onFetch(a,this),ae(this,lc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Ce(this,ri,lo).call(this,{type:"fetch",meta:(c=a.fetchOptions)==null?void 0:c.meta});const s=d=>{var f,h,v,p;v0(d)&&d.silent||Ce(this,ri,lo).call(this,{type:"error",error:d}),v0(d)||((h=(f=I(this,kn).config).onError)==null||h.call(f,d,this),(p=(v=I(this,kn).config).onSettled)==null||p.call(v,this.state.data,d,this)),this.scheduleGc()};return ae(this,cr,XL({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($){s($);return}(h=(f=I(this,kn).config).onSuccess)==null||h.call(f,d,this),(p=(v=I(this,kn).config).onSettled)==null||p.call(v,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,f)=>{Ce(this,ri,lo).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{Ce(this,ri,lo).call(this,{type:"pause"})},onContinue:()=>{Ce(this,ri,lo).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),I(this,cr).start()}},sc=new WeakMap,lc=new WeakMap,kn=new WeakMap,Ds=new WeakMap,cr=new WeakMap,Ph=new WeakMap,Fs=new WeakMap,ri=new WeakSet,lo=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,...JL(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 v0(i)&&i.revert&&I(this,lc)?{...I(this,lc),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),Dt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),I(this,kn).notify({query:this,type:"updated",action:r})})},rD);function JL(e,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:qL(r.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function kZ(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,nD,PZ=(nD=class extends id{constructor(r={}){super();ye(this,Ni);this.config=r,ae(this,Ni,new Map)}build(r,t,n){const i=t.queryKey,o=t.queryHash??_C(i,t);let a=this.get(o);return a||(a=new CZ({client:r,queryKey:i,queryHash:o,options:r.defaultQueryOptions(t),state:n,defaultOptions:r.getQueryDefaults(i)}),this.add(a)),a}add(r){I(this,Ni).has(r.queryHash)||(I(this,Ni).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const t=I(this,Ni).get(r.queryHash);t&&(r.destroy(),t===r&&I(this,Ni).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Dt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return I(this,Ni).get(r)}getAll(){return[...I(this,Ni).values()]}find(r){const t={exact:!0,...r};return this.getAll().find(n=>PT(t,n))}findAll(r={}){const t=this.getAll();return Object.keys(r).length>0?t.filter(n=>PT(r,n)):t}notify(r){Dt.batch(()=>{this.listeners.forEach(t=>{t(r)})})}onFocus(){Dt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Dt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Ni=new WeakMap,nD),Ai,$r,js,Di,Zo,iD,OZ=(iD=class extends QL{constructor(r){super();ye(this,Di);ye(this,Ai);ye(this,$r);ye(this,js);this.mutationId=r.mutationId,ae(this,$r,r.mutationCache),ae(this,Ai,[]),this.state=r.state||ZL(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){I(this,Ai).includes(r)||(I(this,Ai).push(r),this.clearGcTimeout(),I(this,$r).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){ae(this,Ai,I(this,Ai).filter(t=>t!==r)),this.scheduleGc(),I(this,$r).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){I(this,Ai).length||(this.state.status==="pending"?this.scheduleGc():I(this,$r).remove(this))}continue(){var r;return((r=I(this,js))==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,$,m,g,y,w,S,E,x;ae(this,js,XL({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(C,k)=>{Ce(this,Di,Zo).call(this,{type:"failed",failureCount:C,error:k})},onPause:()=>{Ce(this,Di,Zo).call(this,{type:"pause"})},onContinue:()=>{Ce(this,Di,Zo).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>I(this,$r).canRun(this)}));const t=this.state.status==="pending",n=!I(this,js).canStart();try{if(!t){Ce(this,Di,Zo).call(this,{type:"pending",variables:r,isPaused:n}),await((o=(i=I(this,$r).config).onMutate)==null?void 0:o.call(i,r,this));const k=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,r));k!==this.state.context&&Ce(this,Di,Zo).call(this,{type:"pending",context:k,variables:r,isPaused:n})}const C=await I(this,js).start();return await((u=(l=I(this,$r).config).onSuccess)==null?void 0:u.call(l,C,r,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,C,r,this.state.context)),await((h=(f=I(this,$r).config).onSettled)==null?void 0:h.call(f,C,null,this.state.variables,this.state.context,this)),await((p=(v=this.options).onSettled)==null?void 0:p.call(v,C,null,r,this.state.context)),Ce(this,Di,Zo).call(this,{type:"success",data:C}),C}catch(C){try{throw await((m=($=I(this,$r).config).onError)==null?void 0:m.call($,C,r,this.state.context,this)),await((y=(g=this.options).onError)==null?void 0:y.call(g,C,r,this.state.context)),await((S=(w=I(this,$r).config).onSettled)==null?void 0:S.call(w,void 0,C,this.state.variables,this.state.context,this)),await((x=(E=this.options).onSettled)==null?void 0:x.call(E,void 0,C,r,this.state.context)),C}finally{Ce(this,Di,Zo).call(this,{type:"error",error:C})}}finally{I(this,$r).runNext(this)}}},Ai=new WeakMap,$r=new WeakMap,js=new WeakMap,Di=new WeakSet,Zo=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),Dt.batch(()=>{I(this,Ai).forEach(n=>{n.onMutationUpdate(r)}),I(this,$r).notify({mutation:this,type:"updated",action:r})})},iD);function ZL(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fo,ni,Oh,oD,TZ=(oD=class extends id{constructor(r={}){super();ye(this,fo);ye(this,ni);ye(this,Oh);this.config=r,ae(this,fo,new Set),ae(this,ni,new Map),ae(this,Oh,0)}build(r,t,n){const i=new OZ({mutationCache:this,mutationId:++Jv(this,Oh)._,options:r.defaultMutationOptions(t),state:n});return this.add(i),i}add(r){I(this,fo).add(r);const t=Op(r);if(typeof t=="string"){const n=I(this,ni).get(t);n?n.push(r):I(this,ni).set(t,[r])}this.notify({type:"added",mutation:r})}remove(r){if(I(this,fo).delete(r)){const t=Op(r);if(typeof t=="string"){const n=I(this,ni).get(t);if(n)if(n.length>1){const i=n.indexOf(r);i!==-1&&n.splice(i,1)}else n[0]===r&&I(this,ni).delete(t)}}this.notify({type:"removed",mutation:r})}canRun(r){const t=Op(r);if(typeof t=="string"){const n=I(this,ni).get(t),i=n==null?void 0:n.find(o=>o.state.status==="pending");return!i||i===r}else return!0}runNext(r){var n;const t=Op(r);if(typeof t=="string"){const i=(n=I(this,ni).get(t))==null?void 0:n.find(o=>o!==r&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Dt.batch(()=>{I(this,fo).forEach(r=>{this.notify({type:"removed",mutation:r})}),I(this,fo).clear(),I(this,ni).clear()})}getAll(){return Array.from(I(this,fo))}find(r){const t={exact:!0,...r};return this.getAll().find(n=>OT(t,n))}findAll(r={}){return this.getAll().filter(t=>OT(r,t))}notify(r){Dt.batch(()=>{this.listeners.forEach(t=>{t(r)})})}resumePausedMutations(){const r=this.getAll().filter(t=>t.state.isPaused);return Dt.batch(()=>Promise.all(r.map(t=>t.continue().catch(On))))}},fo=new WeakMap,ni=new WeakMap,Oh=new WeakMap,oD);function Op(e){var r;return(r=e.options.scope)==null?void 0:r.id}function RT(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 $=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(r.signal.aborted?p=!0:r.signal.addEventListener("abort",()=>{p=!0}),r.signal)})},m=GL(r.options,r.fetchOptions),g=async(y,w,S)=>{if(p)return Promise.reject();if(w==null&&y.pages.length)return Promise.resolve(y);const E={client:r.client,queryKey:r.queryKey,pageParam:w,direction:S?"backward":"forward",meta:r.options.meta};$(E);const x=await m(E),{maxPages:C}=r.options,k=S?wZ:$Z;return{pages:k(y.pages,x,C),pageParams:k(y.pageParams,w,C)}};if(i&&o.length){const y=i==="backward",w=y?IZ:MT,S={pages:o,pageParams:a},E=w(n,S);s=await g(S,E,y)}else{const y=e??o.length;do{const w=l===0?a[0]??n.initialPageParam:MT(n,s);if(l>0&&w==null)break;s=await g(s,w),l++}while(l<y)}return s};r.options.persister?r.fetchFn=()=>{var p,$;return($=(p=r.options).persister)==null?void 0:$.call(p,u,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},t)}:r.fetchFn=u}}}function MT(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 IZ(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 ft,da,fa,uc,cc,ha,dc,fc,aD,RZ=(aD=class{constructor(e={}){ye(this,ft);ye(this,da);ye(this,fa);ye(this,uc);ye(this,cc);ye(this,ha);ye(this,dc);ye(this,fc);ae(this,ft,e.queryCache||new PZ),ae(this,da,e.mutationCache||new TZ),ae(this,fa,e.defaultOptions||{}),ae(this,uc,new Map),ae(this,cc,new Map),ae(this,ha,0)}mount(){Jv(this,ha)._++,I(this,ha)===1&&(ae(this,dc,xC.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,ft).onFocus())})),ae(this,fc,jg.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,ft).onOnline())})))}unmount(){var e,r;Jv(this,ha)._--,I(this,ha)===0&&((e=I(this,dc))==null||e.call(this),ae(this,dc,void 0),(r=I(this,fc))==null||r.call(this),ae(this,fc,void 0))}isFetching(e){return I(this,ft).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return I(this,da).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const r=this.defaultQueryOptions({queryKey:e});return(t=I(this,ft).get(r.queryHash))==null?void 0:t.state.data}ensureQueryData(e){const r=this.defaultQueryOptions(e),t=I(this,ft).build(this,r),n=t.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&t.isStaleByTime(Zu(r.staleTime,t))&&this.prefetchQuery(r),Promise.resolve(n))}getQueriesData(e){return I(this,ft).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=I(this,ft).get(n.queryHash),o=i==null?void 0:i.state.data,a=yZ(r,o);if(a!==void 0)return I(this,ft).build(this,n).setData(a,{...t,manual:!0})}setQueriesData(e,r,t){return Dt.batch(()=>I(this,ft).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,r,t)]))}getQueryState(e){var t;const r=this.defaultQueryOptions({queryKey:e});return(t=I(this,ft).get(r.queryHash))==null?void 0:t.state}removeQueries(e){const r=I(this,ft);Dt.batch(()=>{r.findAll(e).forEach(t=>{r.remove(t)})})}resetQueries(e,r){const t=I(this,ft),n={type:"active",...e};return Dt.batch(()=>(t.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,r)))}cancelQueries(e,r={}){const t={revert:!0,...r},n=Dt.batch(()=>I(this,ft).findAll(e).map(i=>i.cancel(t)));return Promise.all(n).then(On).catch(On)}invalidateQueries(e,r={}){return Dt.batch(()=>{if(I(this,ft).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const t={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(t,r)})}refetchQueries(e,r={}){const t={...r,cancelRefetch:r.cancelRefetch??!0},n=Dt.batch(()=>I(this,ft).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,t);return t.throwOnError||(o=o.catch(On)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(On)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const t=I(this,ft).build(this,r);return t.isStaleByTime(Zu(r.staleTime,t))?t.fetch(r):Promise.resolve(t.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(On).catch(On)}fetchInfiniteQuery(e){return e.behavior=RT(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(On).catch(On)}ensureInfiniteQueryData(e){return e.behavior=RT(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return jg.isOnline()?I(this,da).resumePausedMutations():Promise.resolve()}getQueryCache(){return I(this,ft)}getMutationCache(){return I(this,da)}getDefaultOptions(){return I(this,fa)}setDefaultOptions(e){ae(this,fa,e)}setQueryDefaults(e,r){I(this,uc).set(cl(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...I(this,uc).values()],t={};return r.forEach(n=>{ch(e,n.queryKey)&&Object.assign(t,n.defaultOptions)}),t}setMutationDefaults(e,r){I(this,cc).set(cl(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...I(this,cc).values()];let t={};return r.forEach(n=>{ch(e,n.mutationKey)&&(t={...t,...n.defaultOptions})}),t}defaultQueryOptions(e){if(e._defaulted)return e;const r={...I(this,fa).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=_C(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.queryFn===EC&&(r.enabled=!1),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...I(this,fa).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){I(this,ft).clear(),I(this,da).clear()}},ft=new WeakMap,da=new WeakMap,fa=new WeakMap,uc=new WeakMap,cc=new WeakMap,ha=new WeakMap,dc=new WeakMap,fc=new WeakMap,aD),jr,Me,Th,wr,Ls,hc,va,Fi,Ih,vc,pc,Bs,zs,pa,mc,ze,hf,US,KS,GS,qS,YS,XS,QS,e5,sD,MZ=(sD=class extends id{constructor(r,t){super();ye(this,ze);ye(this,jr);ye(this,Me);ye(this,Th);ye(this,wr);ye(this,Ls);ye(this,hc);ye(this,va);ye(this,Fi);ye(this,Ih);ye(this,vc);ye(this,pc);ye(this,Bs);ye(this,zs);ye(this,pa);ye(this,mc,new Set);this.options=t,ae(this,jr,r),ae(this,Fi,null),ae(this,va,VS()),this.options.experimental_prefetchInRender||I(this,va).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&&(I(this,Me).addObserver(this),NT(I(this,Me),this.options)?Ce(this,ze,hf).call(this):this.updateResult(),Ce(this,ze,qS).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return JS(I(this,Me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return JS(I(this,Me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ce(this,ze,YS).call(this),Ce(this,ze,XS).call(this),I(this,Me).removeObserver(this)}setOptions(r,t){const n=this.options,i=I(this,Me);if(this.options=I(this,jr).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ai(this.options.enabled,I(this,Me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ce(this,ze,QS).call(this),I(this,Me).setOptions(this.options),n._defaulted&&!Fg(this.options,n)&&I(this,jr).getQueryCache().notify({type:"observerOptionsUpdated",query:I(this,Me),observer:this});const o=this.hasListeners();o&&AT(I(this,Me),i,this.options,n)&&Ce(this,ze,hf).call(this),this.updateResult(t),o&&(I(this,Me)!==i||ai(this.options.enabled,I(this,Me))!==ai(n.enabled,I(this,Me))||Zu(this.options.staleTime,I(this,Me))!==Zu(n.staleTime,I(this,Me)))&&Ce(this,ze,US).call(this);const a=Ce(this,ze,KS).call(this);o&&(I(this,Me)!==i||ai(this.options.enabled,I(this,Me))!==ai(n.enabled,I(this,Me))||a!==I(this,pa))&&Ce(this,ze,GS).call(this,a)}getOptimisticResult(r){const t=I(this,jr).getQueryCache().build(I(this,jr),r),n=this.createResult(t,r);return AZ(this,n)&&(ae(this,wr,n),ae(this,hc,this.options),ae(this,Ls,I(this,Me).state)),n}getCurrentResult(){return I(this,wr)}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){I(this,mc).add(r)}getCurrentQuery(){return I(this,Me)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const t=I(this,jr).defaultQueryOptions(r),n=I(this,jr).getQueryCache().build(I(this,jr),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(r){return Ce(this,ze,hf).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),I(this,wr)))}createResult(r,t){var C;const n=I(this,Me),i=this.options,o=I(this,wr),a=I(this,Ls),s=I(this,hc),u=r!==n?r.state:I(this,Th),{state:c}=r;let d={...c},f=!1,h;if(t._optimisticResults){const k=this.hasListeners(),P=!k&&NT(r,t),T=k&&AT(r,n,t,i);(P||T)&&(d={...d,...JL(c.data,r.options)}),t._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:v,errorUpdatedAt:p,status:$}=d;if(t.select&&d.data!==void 0)if(o&&d.data===(a==null?void 0:a.data)&&t.select===I(this,Ih))h=I(this,vc);else try{ae(this,Ih,t.select),h=t.select(d.data),h=WS(o==null?void 0:o.data,h,t),ae(this,vc,h),ae(this,Fi,null)}catch(k){ae(this,Fi,k)}else h=d.data;if(t.placeholderData!==void 0&&h===void 0&&$==="pending"){let k;if(o!=null&&o.isPlaceholderData&&t.placeholderData===(s==null?void 0:s.placeholderData))k=o.data;else if(k=typeof t.placeholderData=="function"?t.placeholderData((C=I(this,pc))==null?void 0:C.state.data,I(this,pc)):t.placeholderData,t.select&&k!==void 0)try{k=t.select(k),ae(this,Fi,null)}catch(P){ae(this,Fi,P)}k!==void 0&&($="success",h=WS(o==null?void 0:o.data,k,t),f=!0)}I(this,Fi)&&(v=I(this,Fi),h=I(this,vc),p=Date.now(),$="error");const m=d.fetchStatus==="fetching",g=$==="pending",y=$==="error",w=g&&m,S=h!==void 0,x={status:$,fetchStatus:d.fetchStatus,isPending:g,isSuccess:$==="success",isError:y,isInitialLoading:w,isLoading:w,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:m,isRefetching:m&&!g,isLoadingError:y&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:y&&S,isStale:CC(r,t),refetch:this.refetch,promise:I(this,va)};if(this.options.experimental_prefetchInRender){const k=R=>{x.status==="error"?R.reject(x.error):x.data!==void 0&&R.resolve(x.data)},P=()=>{const R=ae(this,va,x.promise=VS());k(R)},T=I(this,va);switch(T.status){case"pending":r.queryHash===n.queryHash&&k(T);break;case"fulfilled":(x.status==="error"||x.data!==T.value)&&P();break;case"rejected":(x.status!=="error"||x.error!==T.reason)&&P();break}}return x}updateResult(r){const t=I(this,wr),n=this.createResult(I(this,Me),this.options);if(ae(this,Ls,I(this,Me).state),ae(this,hc,this.options),I(this,Ls).data!==void 0&&ae(this,pc,I(this,Me)),Fg(n,t))return;ae(this,wr,n);const i={},o=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!I(this,mc).size)return!0;const l=new Set(s??I(this,mc));return this.options.throwOnError&&l.add("error"),Object.keys(I(this,wr)).some(u=>{const c=u;return I(this,wr)[c]!==t[c]&&l.has(c)})};(r==null?void 0:r.listeners)!==!1&&o()&&(i.listeners=!0),Ce(this,ze,e5).call(this,{...i,...r})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ce(this,ze,qS).call(this)}},jr=new WeakMap,Me=new WeakMap,Th=new WeakMap,wr=new WeakMap,Ls=new WeakMap,hc=new WeakMap,va=new WeakMap,Fi=new WeakMap,Ih=new WeakMap,vc=new WeakMap,pc=new WeakMap,Bs=new WeakMap,zs=new WeakMap,pa=new WeakMap,mc=new WeakMap,ze=new WeakSet,hf=function(r){Ce(this,ze,QS).call(this);let t=I(this,Me).fetch(this.options,r);return r!=null&&r.throwOnError||(t=t.catch(On)),t},US=function(){Ce(this,ze,YS).call(this);const r=Zu(this.options.staleTime,I(this,Me));if(ul||I(this,wr).isStale||!zS(r))return;const n=UL(I(this,wr).dataUpdatedAt,r)+1;ae(this,Bs,setTimeout(()=>{I(this,wr).isStale||this.updateResult()},n))},KS=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(I(this,Me)):this.options.refetchInterval)??!1},GS=function(r){Ce(this,ze,XS).call(this),ae(this,pa,r),!(ul||ai(this.options.enabled,I(this,Me))===!1||!zS(I(this,pa))||I(this,pa)===0)&&ae(this,zs,setInterval(()=>{(this.options.refetchIntervalInBackground||xC.isFocused())&&Ce(this,ze,hf).call(this)},I(this,pa)))},qS=function(){Ce(this,ze,US).call(this),Ce(this,ze,GS).call(this,Ce(this,ze,KS).call(this))},YS=function(){I(this,Bs)&&(clearTimeout(I(this,Bs)),ae(this,Bs,void 0))},XS=function(){I(this,zs)&&(clearInterval(I(this,zs)),ae(this,zs,void 0))},QS=function(){const r=I(this,jr).getQueryCache().build(I(this,jr),this.options);if(r===I(this,Me))return;const t=I(this,Me);ae(this,Me,r),ae(this,Th,r.state),this.hasListeners()&&(t==null||t.removeObserver(this),r.addObserver(this))},e5=function(r){Dt.batch(()=>{r.listeners&&this.listeners.forEach(t=>{t(I(this,wr))}),I(this,jr).getQueryCache().notify({query:I(this,Me),type:"observerResultsUpdated"})})},sD);function NZ(e,r){return ai(r.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&r.retryOnMount===!1)}function NT(e,r){return NZ(e,r)||e.state.data!==void 0&&JS(e,r,r.refetchOnMount)}function JS(e,r,t){if(ai(r.enabled,e)!==!1){const n=typeof t=="function"?t(e):t;return n==="always"||n!==!1&&CC(e,r)}return!1}function AT(e,r,t,n){return(e!==r||ai(n.enabled,e)===!1)&&(!t.suspense||e.state.status!=="error")&&CC(e,t)}function CC(e,r){return ai(r.enabled,e)!==!1&&e.isStaleByTime(Zu(r.staleTime,e))}function AZ(e,r){return!Fg(e.getCurrentResult(),r)}var ma,ga,Lr,ho,Po,Nm,ZS,lD,DZ=(lD=class extends id{constructor(t,n){super();ye(this,Po);ye(this,ma);ye(this,ga);ye(this,Lr);ye(this,ho);ae(this,ma,t),this.setOptions(n),this.bindMethods(),Ce(this,Po,Nm).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const n=this.options;this.options=I(this,ma).defaultMutationOptions(t),Fg(this.options,n)||I(this,ma).getMutationCache().notify({type:"observerOptionsUpdated",mutation:I(this,Lr),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&cl(n.mutationKey)!==cl(this.options.mutationKey)?this.reset():((i=I(this,Lr))==null?void 0:i.state.status)==="pending"&&I(this,Lr).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=I(this,Lr))==null||t.removeObserver(this)}onMutationUpdate(t){Ce(this,Po,Nm).call(this),Ce(this,Po,ZS).call(this,t)}getCurrentResult(){return I(this,ga)}reset(){var t;(t=I(this,Lr))==null||t.removeObserver(this),ae(this,Lr,void 0),Ce(this,Po,Nm).call(this),Ce(this,Po,ZS).call(this)}mutate(t,n){var i;return ae(this,ho,n),(i=I(this,Lr))==null||i.removeObserver(this),ae(this,Lr,I(this,ma).getMutationCache().build(I(this,ma),this.options)),I(this,Lr).addObserver(this),I(this,Lr).execute(t)}},ma=new WeakMap,ga=new WeakMap,Lr=new WeakMap,ho=new WeakMap,Po=new WeakSet,Nm=function(){var n;const t=((n=I(this,Lr))==null?void 0:n.state)??ZL();ae(this,ga,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ZS=function(t){Dt.batch(()=>{var n,i,o,a,s,l,u,c;if(I(this,ho)&&this.hasListeners()){const d=I(this,ga).variables,f=I(this,ga).context;(t==null?void 0:t.type)==="success"?((i=(n=I(this,ho)).onSuccess)==null||i.call(n,t.data,d,f),(a=(o=I(this,ho)).onSettled)==null||a.call(o,t.data,null,d,f)):(t==null?void 0:t.type)==="error"&&((l=(s=I(this,ho)).onError)==null||l.call(s,t.error,d,f),(c=(u=I(this,ho)).onSettled)==null||c.call(u,void 0,t.error,d,f))}this.listeners.forEach(d=>{d(I(this,ga))})})},lD),t5=_.createContext(void 0),tb=e=>{const r=_.useContext(t5);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},FZ=({client:e,children:r})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),b.jsx(t5.Provider,{value:e,children:r})),r5=_.createContext(!1),jZ=()=>_.useContext(r5);r5.Provider;function LZ(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var BZ=_.createContext(LZ()),zZ=()=>_.useContext(BZ);function n5(e,r){return typeof e=="function"?e(...r):!!e}function e_(){}var HZ=(e,r)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(r.isReset()||(e.retryOnMount=!1))},WZ=e=>{_.useEffect(()=>{e.clearReset()},[e])},VZ=({result:e,errorResetBoundary:r,throwOnError:t,query:n,suspense:i})=>e.isError&&!r.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||n5(t,[e.error,n])),UZ=e=>{const r=e.staleTime;e.suspense&&(e.staleTime=typeof r=="function"?(...t)=>Math.max(r(...t),1e3):Math.max(r??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},KZ=(e,r)=>e.isLoading&&e.isFetching&&!r,GZ=(e,r)=>(e==null?void 0:e.suspense)&&r.isPending,DT=(e,r,t)=>r.fetchOptimistic(e).catch(()=>{t.clearReset()});function qZ(e,r,t){var d,f,h,v,p;const n=tb(),i=jZ(),o=zZ(),a=n.defaultQueryOptions(e);(f=(d=n.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||f.call(d,a),a._optimisticResults=i?"isRestoring":"optimistic",UZ(a),HZ(a,o),WZ(o);const s=!n.getQueryCache().get(a.queryHash),[l]=_.useState(()=>new r(n,a)),u=l.getOptimisticResult(a),c=!i&&e.subscribed!==!1;if(_.useSyncExternalStore(_.useCallback($=>{const m=c?l.subscribe(Dt.batchCalls($)):e_;return l.updateResult(),m},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),_.useEffect(()=>{l.setOptions(a,{listeners:!1})},[a,l]),GZ(a,u))throw DT(a,l,o);if(VZ({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:n.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((v=(h=n.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||v.call(h,a,u),a.experimental_prefetchInRender&&!ul&&KZ(u,i)){const $=s?DT(a,l,o):(p=n.getQueryCache().get(a.queryHash))==null?void 0:p.promise;$==null||$.catch(e_).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function t_(e,r){return qZ(e,MZ)}function YZ(e,r){const t=tb(),[n]=_.useState(()=>new DZ(t,e));_.useEffect(()=>{n.setOptions(e)},[n,e]);const i=_.useSyncExternalStore(_.useCallback(a=>n.subscribe(Dt.batchCalls(a)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=_.useCallback((a,s)=>{n.mutate(a,s).catch(e_)},[n]);if(i.error&&n5(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function XZ(e){let r=e,t=!1;const n=new Set;return{getState(){return r},updateState(i){r=typeof i=="function"?i(r):i},setState(i){this.updateState(i),n.forEach(o=>o(r))},initialize(i){t||(r=i,t=!0)},subscribe(i){return n.add(i),()=>n.delete(i)}}}function QZ(e){return _.useSyncExternalStore(e.subscribe,()=>e.getState(),()=>e.getState())}function JZ(e,r,t){const n=[],i=[],o={};for(const a of e){const s=a.position||r;o[s]=o[s]||0,o[s]+=1,o[s]<=t?i.push(a):n.push(a)}return{notifications:i,queue:n}}const ZZ=()=>XZ({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),Pl=ZZ(),eee=(e=Pl)=>QZ(e);function od(e,r){const t=e.getState(),n=r([...t.notifications,...t.queue]),i=JZ(n,t.defaultPosition,t.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:t.limit,defaultPosition:t.defaultPosition})}function tee(e,r=Pl){const t=e.id||Gj();return od(r,n=>e.id&&n.some(i=>i.id===e.id)?n:[...n,{...e,id:t}]),t}function i5(e,r=Pl){return od(r,t=>t.filter(n=>{var i;return n.id===e?((i=n.onClose)==null||i.call(n,n),!1):!0})),e}function ree(e,r=Pl){return od(r,t=>t.map(n=>n.id===e.id?{...n,...e}:n)),e.id}function nee(e=Pl){od(e,()=>[])}function iee(e=Pl){od(e,r=>r.slice(0,e.getState().limit))}const Ua={show:tee,hide:i5,update:ree,clean:nee,cleanQueue:iee,updateState:od};function r_(e,r){return r_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},r_(e,r)}function o5(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,r_(e,r)}const FT={disabled:!1},Lg=hr.createContext(null);var oee=function(r){return r.scrollTop},vf="unmounted",ws="exited",Ss="entering",pu="entered",n_="exiting",Uo=function(e){o5(r,e);function r(n,i){var o;o=e.call(this,n,i)||this;var a=i,s=a&&!a.isMounting?n.enter:n.appear,l;return o.appearStatus=null,n.in?s?(l=ws,o.appearStatus=Ss):l=pu:n.unmountOnExit||n.mountOnEnter?l=vf:l=ws,o.state={status:l},o.nextCallback=null,o}r.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===vf?{status:ws}:null};var t=r.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Ss&&a!==pu&&(o=Ss):(a===Ss||a===pu)&&(o=n_)}this.updateStatus(!1,o)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},t.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Ss){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:cf.findDOMNode(this);a&&oee(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ws&&this.setState({status:vf})},t.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[cf.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!a||FT.disabled){this.safeSetState({status:pu},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Ss},function(){o.props.onEntering(u,c),o.onTransitionEnd(f,function(){o.safeSetState({status:pu},function(){o.props.onEntered(u,c)})})})},t.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:cf.findDOMNode(this);if(!o||FT.disabled){this.safeSetState({status:ws},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:n_},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ws},function(){i.props.onExited(s)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},t.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:cf.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},t.render=function(){var i=this.state.status;if(i===vf)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=uC(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return hr.createElement(Lg.Provider,{value:null},typeof a=="function"?a(i,s):hr.cloneElement(hr.Children.only(a),s))},r}(hr.Component);Uo.contextType=Lg;Uo.propTypes={};function tu(){}Uo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tu,onEntering:tu,onEntered:tu,onExit:tu,onExiting:tu,onExited:tu};Uo.UNMOUNTED=vf;Uo.EXITED=ws;Uo.ENTERING=Ss;Uo.ENTERED=pu;Uo.EXITING=n_;function aee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kC(e,r){var t=function(o){return r&&_.isValidElement(o)?r(o):o},n=Object.create(null);return e&&_.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=t(i)}),n}function see(e,r){e=e||{},r=r||{};function t(c){return c in r?r[c]:e[c]}var n=Object.create(null),i=[];for(var o in e)o in r?i.length&&(n[o]=i,i=[]):i.push(o);var a,s={};for(var l in r){if(n[l])for(a=0;a<n[l].length;a++){var u=n[l][a];s[n[l][a]]=t(u)}s[l]=t(l)}for(a=0;a<i.length;a++)s[i[a]]=t(i[a]);return s}function Ts(e,r,t){return t[r]!=null?t[r]:e.props[r]}function lee(e,r){return kC(e.children,function(t){return _.cloneElement(t,{onExited:r.bind(null,t),in:!0,appear:Ts(t,"appear",e),enter:Ts(t,"enter",e),exit:Ts(t,"exit",e)})})}function uee(e,r,t){var n=kC(e.children),i=see(r,n);return Object.keys(i).forEach(function(o){var a=i[o];if(_.isValidElement(a)){var s=o in r,l=o in n,u=r[o],c=_.isValidElement(u)&&!u.props.in;l&&(!s||c)?i[o]=_.cloneElement(a,{onExited:t.bind(null,a),in:!0,exit:Ts(a,"exit",e),enter:Ts(a,"enter",e)}):!l&&s&&!c?i[o]=_.cloneElement(a,{in:!1}):l&&s&&_.isValidElement(u)&&(i[o]=_.cloneElement(a,{onExited:t.bind(null,a),in:u.props.in,exit:Ts(a,"exit",e),enter:Ts(a,"enter",e)}))}}),i}var cee=Object.values||function(e){return Object.keys(e).map(function(r){return e[r]})},dee={component:"div",childFactory:function(r){return r}},ia=function(e){o5(r,e);function r(n,i){var o;o=e.call(this,n,i)||this;var a=o.handleExited.bind(aee(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}var t=r.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(i,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?lee(i,s):uee(i,a,s),firstRender:!1}},t.handleExited=function(i,o){var a=kC(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=Ag({},s.children);return delete l[i.key],{children:l}}))},t.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=uC(i,["component","childFactory"]),l=this.state.contextValue,u=cee(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?hr.createElement(Lg.Provider,{value:l},u):hr.createElement(Lg.Provider,{value:l},hr.createElement(o,s,u))},r}(hr.Component);ia.propTypes={};ia.defaultProps=dee;const a5=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function fee(e,r){return e.reduce((t,n)=>(t[n.position||r].push(n),t),a5.reduce((t,n)=>(t[n]=[],t),{}))}const jT={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},hee={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function vee({state:e,maxHeight:r,position:t,transitionDuration:n}){const[i,o]=t.split("-"),a=o==="center"?`${i}-center`:o,s={opacity:0,maxHeight:r,transform:jT[a],transitionDuration:`${n}ms, ${n}ms, ${n}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},l={opacity:1,transform:hee[a]},u={opacity:0,maxHeight:0,transform:jT[a]};return{...s,...{entering:l,entered:l,exiting:u,exited:u}[e]}}function pee(e,r){return typeof r=="number"?r:r===!1||e===!1?!1:e}const s5=_.forwardRef(({data:e,onHide:r,autoClose:t,...n},i)=>{const{autoClose:o,message:a,...s}=e,l=pee(t,e.autoClose),u=_.useRef(-1),c=()=>window.clearTimeout(u.current),d=()=>{r(e.id),c()},f=()=>{typeof l=="number"&&(u.current=window.setTimeout(d,l))};return _.useEffect(()=>{var h;(h=e.onOpen)==null||h.call(e,e)},[]),_.useEffect(()=>(f(),c),[l]),b.jsx(pC,{...n,...s,onClose:d,ref:i,onMouseEnter:c,onMouseLeave:f,children:a})});s5.displayName="@mantine/notifications/NotificationContainer";var l5={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const mee=Uo,gee={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:My("overlay"),store:Pl,withinPortal:!0},yee=(e,{zIndex:r,containerWidth:t})=>({root:{"--notifications-z-index":r==null?void 0:r.toString(),"--notifications-container-width":L(t)}}),Ko=me((e,r)=>{const t=J("Notifications",gee,e),{classNames:n,className:i,style:o,styles:a,unstyled:s,vars:l,position:u,autoClose:c,transitionDuration:d,containerWidth:f,notificationMaxHeight:h,limit:v,zIndex:p,store:$,portalProps:m,withinPortal:g,...y}=t,w=Mr(),S=eee($),E=pG(),x=yx(),C=_.useRef({}),k=_.useRef(0),T=(w.respectReducedMotion?x:!1)?1:d,R=_e({name:"Notifications",classes:l5,props:t,className:i,style:o,classNames:n,styles:a,unstyled:s,vars:l,varsResolver:yee});_.useEffect(()=>{$==null||$.updateState(W=>({...W,limit:v||5,defaultPosition:u}))},[v,u]),Mo(()=>{S.notifications.length>k.current&&setTimeout(()=>E(),0),k.current=S.notifications.length},[S.notifications]);const N=fee(S.notifications,u),F=a5.reduce((W,M)=>(W[M]=N[M].map(({style:j,...O})=>b.jsx(mee,{timeout:T,onEnter:()=>C.current[O.id].offsetHeight,nodeRef:{current:C.current[O.id]},children:D=>b.jsx(s5,{ref:z=>{C.current[O.id]=z},data:O,onHide:z=>i5(z,$),autoClose:c,...R("notification",{style:{...vee({state:D,position:M,transitionDuration:T,maxHeight:h}),...j}})})},O.id)),W),{});return b.jsxs(Kh,{withinPortal:g,...m,children:[b.jsx(Q,{...R("root"),"data-position":"top-center",ref:r,...y,children:b.jsx(ia,{children:F["top-center"]})}),b.jsx(Q,{...R("root"),"data-position":"top-left",...y,children:b.jsx(ia,{children:F["top-left"]})}),b.jsx(Q,{...R("root",{className:kS.classNames.fullWidth}),"data-position":"top-right",...y,children:b.jsx(ia,{children:F["top-right"]})}),b.jsx(Q,{...R("root",{className:kS.classNames.fullWidth}),"data-position":"bottom-right",...y,children:b.jsx(ia,{children:F["bottom-right"]})}),b.jsx(Q,{...R("root"),"data-position":"bottom-left",...y,children:b.jsx(ia,{children:F["bottom-left"]})}),b.jsx(Q,{...R("root"),"data-position":"bottom-center",...y,children:b.jsx(ia,{children:F["bottom-center"]})})]})});Ko.classes=l5;Ko.displayName="@mantine/notifications/Notifications";Ko.show=Ua.show;Ko.hide=Ua.hide;Ko.update=Ua.update;Ko.clean=Ua.clean;Ko.cleanQueue=Ua.cleanQueue;Ko.updateState=Ua.updateState;const bee=new RZ,PC=CU({component:()=>b.jsx(_.Fragment,{children:b.jsx(FZ,{client:bee,children:b.jsxs(s3,{theme:{primaryColor:"orange"},children:[b.jsx(Ko,{}),b.jsx(px,{})]})})})}),$ee=vx("/login")({component:()=>b.jsx(zi,{h:"100vh",children:b.jsxs(Yi,{children:[b.jsx(Dn,{justify:"center",mb:"lg",children:b.jsxs(Dn,{gap:"xs",align:"center",children:[b.jsx("img",{src:"/jac_logo.png",alt:"logo",width:"50"}),b.jsx(ll,{order:1,children:"Jaseci Studio"})]})}),b.jsxs(sl,{withBorder:!0,w:"500px",p:"xl",children:[b.jsxs(Yi,{mb:"lg",gap:"xs",children:[b.jsx(ll,{order:2,children:"Login"}),b.jsx(Do,{c:"dimmed",children:"Connect to a server to start"})]}),b.jsxs(Yi,{children:[b.jsx(Ic,{label:"Host"}),b.jsx(Ic,{label:"Email"}),b.jsx(Zy,{label:"Password"}),b.jsxs(Dn,{justify:"space-between",mt:"lg",children:[b.jsx(Si,{color:"gray",children:"Test Connection"}),b.jsx(Si,{color:"teal",children:"Connect"})]})]})]})]})})}),wee=vx("/_ui")({component:()=>{const e=tb(),r=hx({from:"/_ui/",select:o=>o.token}),{isSuccess:t,isLoading:n}=t_({queryKey:["studioToken"],queryFn:async()=>{const o=r||localStorage.getItem("studio-token");if(!o)throw new Error("Token not found");return o},retry:!1}),{mutate:i}=YZ({mutationFn:async({host:o,email:a,password:s})=>{try{const l=await fetch(`${o||"http://localhost:8000"}/user/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a,password:s})});if(!l.ok)throw new Error("Login failed");return await l.json()}catch(l){throw l}},onError:()=>{Ua.show({title:"Invalid Credentials",message:"Please check your email and password."})}});return n?b.jsx("div",{children:"Loading..."}):b.jsx(b.Fragment,{children:t?b.jsx(px,{}):b.jsx(zi,{h:"100vh",children:b.jsxs(Yi,{children:[b.jsx(Dn,{justify:"center",mb:"lg",children:b.jsxs(Dn,{gap:"xs",align:"center",children:[b.jsx("img",{src:"/jac_logo.png",alt:"logo",width:"50"}),b.jsx(ll,{order:1,children:"Jaseci Studio"})]})}),b.jsxs(sl,{withBorder:!0,w:"500px",p:"xl",children:[b.jsxs(Yi,{mb:"lg",gap:"xs",children:[b.jsx(ll,{order:2,children:"Login"}),b.jsx(Do,{c:"dimmed",children:"Connect to a server to start"})]}),b.jsx("form",{onSubmit:o=>{o.preventDefault();const a=new FormData(o.currentTarget);i({host:a.get("host"),email:a.get("email"),password:a.get("password")},{onSuccess:s=>{localStorage.setItem("studio-token",s.token),e.invalidateQueries({queryKey:["studioToken"]})}})},children:b.jsxs(Yi,{children:[b.jsx(Ic,{name:"host",label:"Host",placeholder:"[Default = http://localhost:8000] "}),b.jsx(Ic,{name:"email",label:"Email"}),b.jsx(Zy,{name:"password",label:"Password"}),b.jsxs(Dn,{justify:"space-between",mt:"lg",children:[b.jsx(Si,{color:"gray",type:"button",onClick:()=>{const o=document.querySelector("form");if(o){const a=new FormData(o);i({host:a.get("host"),email:a.get("email"),password:a.get("password")},{onSuccess:()=>{Ua.show({color:"teal",title:"Connection Successful",message:"You have successfully connected to the server."})}})}},children:"Test Connection"}),b.jsx(Si,{color:"teal",type:"submit",children:"Connect"})]})]})})]})]})})})}});/**
|
102
|
+
* vis-data
|
103
|
+
* http://visjs.org/
|
104
|
+
*
|
105
|
+
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
|
106
|
+
*
|
107
|
+
* @version 7.1.9
|
108
|
+
* @date 2023-11-24T17:53:34.179Z
|
109
|
+
*
|
110
|
+
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
111
|
+
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
112
|
+
*
|
113
|
+
* @license
|
114
|
+
* vis.js is dual licensed under both
|
115
|
+
*
|
116
|
+
* 1. The Apache 2.0 License
|
117
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
118
|
+
*
|
119
|
+
* and
|
120
|
+
*
|
121
|
+
* 2. The MIT License
|
122
|
+
* http://opensource.org/licenses/MIT
|
123
|
+
*
|
124
|
+
* vis.js may be distributed under either license.
|
125
|
+
*/function rb(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var p0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Se(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u5={exports:{}},Tp=function(e){return e&&e.Math===Math&&e},at=Tp(typeof globalThis=="object"&&globalThis)||Tp(typeof window=="object"&&window)||Tp(typeof self=="object"&&self)||Tp(typeof p0=="object"&&p0)||function(){return this}()||p0||Function("return this")(),He=function(e){try{return!!e()}catch{return!0}},See=He,tv=!See(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),_ee=tv,c5=Function.prototype,LT=c5.apply,BT=c5.call,ad=typeof Reflect=="object"&&Reflect.apply||(_ee?BT.bind(LT):function(){return BT.apply(LT,arguments)}),d5=tv,f5=Function.prototype,i_=f5.call,Eee=d5&&f5.bind.bind(i_,i_),it=d5?Eee:function(e){return function(){return i_.apply(e,arguments)}},h5=it,xee=h5({}.toString),Cee=h5("".slice),ts=function(e){return Cee(xee(e),8,-1)},kee=ts,Pee=it,v5=function(e){if(kee(e)==="Function")return Pee(e)},o_=typeof document=="object"&&document.all,Oee=typeof o_>"u"&&o_!==void 0,p5={all:o_,IS_HTMLDDA:Oee},m5=p5,Tee=m5.all,mt=m5.IS_HTMLDDA?function(e){return typeof e=="function"||e===Tee}:function(e){return typeof e=="function"},Ol={},Iee=He,Kt=!Iee(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Ree=tv,Ip=Function.prototype.call,Gt=Ree?Ip.bind(Ip):function(){return Ip.apply(Ip,arguments)},nb={},g5={}.propertyIsEnumerable,y5=Object.getOwnPropertyDescriptor,Mee=y5&&!g5.call({1:2},1);nb.f=Mee?function(r){var t=y5(this,r);return!!t&&t.enumerable}:g5;var Tl=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}},Nee=it,Aee=He,Dee=ts,m0=Object,Fee=Nee("".split),ib=Aee(function(){return!m0("z").propertyIsEnumerable(0)})?function(e){return Dee(e)==="String"?Fee(e,""):m0(e)}:m0,sd=function(e){return e==null},jee=sd,Lee=TypeError,OC=function(e){if(jee(e))throw new Lee("Can't call method on "+e);return e},Bee=ib,zee=OC,no=function(e){return Bee(zee(e))},zT=mt,b5=p5,Hee=b5.all,ar=b5.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:zT(e)||e===Hee}:function(e){return typeof e=="object"?e!==null:zT(e)},st={},g0=st,y0=at,Wee=mt,HT=function(e){return Wee(e)?e:void 0},Nr=function(e,r){return arguments.length<2?HT(g0[e])||HT(y0[e]):g0[e]&&g0[e][r]||y0[e]&&y0[e][r]},Vee=it,Rt=Vee({}.isPrototypeOf),rs=typeof navigator<"u"&&String(navigator.userAgent)||"",$5=at,b0=rs,WT=$5.process,VT=$5.Deno,UT=WT&&WT.versions||VT&&VT.version,KT=UT&&UT.v8,si,Bg;KT&&(si=KT.split("."),Bg=si[0]>0&&si[0]<4?1:+(si[0]+si[1]));!Bg&&b0&&(si=b0.match(/Edge\/(\d+)/),(!si||si[1]>=74)&&(si=b0.match(/Chrome\/(\d+)/),si&&(Bg=+si[1])));var ld=Bg,GT=ld,Uee=He,Kee=at,Gee=Kee.String,ud=!!Object.getOwnPropertySymbols&&!Uee(function(){var e=Symbol("symbol detection");return!Gee(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&>&><41}),qee=ud,w5=qee&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Yee=Nr,Xee=mt,Qee=Rt,Jee=w5,Zee=Object,rv=Jee?function(e){return typeof e=="symbol"}:function(e){var r=Yee("Symbol");return Xee(r)&&Qee(r.prototype,Zee(e))},ete=String,cd=function(e){try{return ete(e)}catch{return"Object"}},tte=mt,rte=cd,nte=TypeError,rn=function(e){if(tte(e))return e;throw new nte(rte(e)+" is not a function")},ite=rn,ote=sd,TC=function(e,r){var t=e[r];return ote(t)?void 0:ite(t)},$0=Gt,w0=mt,S0=ar,ate=TypeError,ste=function(e,r){var t,n;if(r==="string"&&w0(t=e.toString)&&!S0(n=$0(t,e))||w0(t=e.valueOf)&&!S0(n=$0(t,e))||r!=="string"&&w0(t=e.toString)&&!S0(n=$0(t,e)))return n;throw new ate("Can't convert object to primitive value")},S5={exports:{}},lte=!0,qT=at,ute=Object.defineProperty,cte=function(e,r){try{ute(qT,e,{value:r,configurable:!0,writable:!0})}catch{qT[e]=r}return r},dte=at,fte=cte,YT="__core-js_shared__",hte=dte[YT]||fte(YT,{}),IC=hte,XT=IC;(S5.exports=function(e,r){return XT[e]||(XT[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 dd=S5.exports,vte=OC,pte=Object,nn=function(e){return pte(vte(e))},mte=it,gte=nn,yte=mte({}.hasOwnProperty),Mt=Object.hasOwn||function(r,t){return yte(gte(r),t)},bte=it,$te=0,wte=Math.random(),Ste=bte(1 .toString),ob=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ste(++$te+wte,36)},_te=at,Ete=dd,QT=Mt,xte=ob,Cte=ud,kte=w5,Tu=_te.Symbol,_0=Ete("wks"),Pte=kte?Tu.for||Tu:Tu&&Tu.withoutSetter||xte,dt=function(e){return QT(_0,e)||(_0[e]=Cte&&QT(Tu,e)?Tu[e]:Pte("Symbol."+e)),_0[e]},Ote=Gt,JT=ar,ZT=rv,Tte=TC,Ite=ste,Rte=dt,Mte=TypeError,Nte=Rte("toPrimitive"),Ate=function(e,r){if(!JT(e)||ZT(e))return e;var t=Tte(e,Nte),n;if(t){if(r===void 0&&(r="default"),n=Ote(t,e,r),!JT(n)||ZT(n))return n;throw new Mte("Can't convert object to primitive value")}return r===void 0&&(r="number"),Ite(e,r)},Dte=Ate,Fte=rv,ab=function(e){var r=Dte(e,"string");return Fte(r)?r:r+""},jte=at,eI=ar,a_=jte.document,Lte=eI(a_)&&eI(a_.createElement),RC=function(e){return Lte?a_.createElement(e):{}},Bte=Kt,zte=He,Hte=RC,_5=!Bte&&!zte(function(){return Object.defineProperty(Hte("div"),"a",{get:function(){return 7}}).a!==7}),Wte=Kt,Vte=Gt,Ute=nb,Kte=Tl,Gte=no,qte=ab,Yte=Mt,Xte=_5,tI=Object.getOwnPropertyDescriptor;Ol.f=Wte?tI:function(r,t){if(r=Gte(r),t=qte(t),Xte)try{return tI(r,t)}catch{}if(Yte(r,t))return Kte(!Vte(Ute.f,r,t),r[t])};var Qte=He,Jte=mt,Zte=/#|\.prototype\./,nv=function(e,r){var t=tre[ere(e)];return t===nre?!0:t===rre?!1:Jte(r)?Qte(r):!!r},ere=nv.normalize=function(e){return String(e).replace(Zte,".").toLowerCase()},tre=nv.data={},rre=nv.NATIVE="N",nre=nv.POLYFILL="P",E5=nv,rI=v5,ire=rn,ore=tv,are=rI(rI.bind),ns=function(e,r){return ire(e),r===void 0?e:ore?are(e,r):function(){return e.apply(r,arguments)}},on={},sre=Kt,lre=He,x5=sre&&lre(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),ure=ar,cre=String,dre=TypeError,bn=function(e){if(ure(e))return e;throw new dre(cre(e)+" is not an object")},fre=Kt,hre=_5,vre=x5,Rp=bn,nI=ab,pre=TypeError,E0=Object.defineProperty,mre=Object.getOwnPropertyDescriptor,x0="enumerable",C0="configurable",k0="writable";on.f=fre?vre?function(r,t,n){if(Rp(r),t=nI(t),Rp(n),typeof r=="function"&&t==="prototype"&&"value"in n&&k0 in n&&!n[k0]){var i=mre(r,t);i&&i[k0]&&(r[t]=n.value,n={configurable:C0 in n?n[C0]:i[C0],enumerable:x0 in n?n[x0]:i[x0],writable:!1})}return E0(r,t,n)}:E0:function(r,t,n){if(Rp(r),t=nI(t),Rp(n),hre)try{return E0(r,t,n)}catch{}if("get"in n||"set"in n)throw new pre("Accessors not supported");return"value"in n&&(r[t]=n.value),r};var gre=Kt,yre=on,bre=Tl,Go=gre?function(e,r,t){return yre.f(e,r,bre(1,t))}:function(e,r,t){return e[r]=t,e},Mp=at,$re=ad,wre=v5,Sre=mt,_re=Ol.f,Ere=E5,ru=st,xre=ns,nu=Go,iI=Mt,Cre=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 $re(e,this,arguments)};return r.prototype=e.prototype,r},be=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Mp:i?Mp[t]:(Mp[t]||{}).prototype,s=n?ru:ru[t]||nu(ru,t,{})[t],l=s.prototype,u,c,d,f,h,v,p,$,m;for(f in r)u=Ere(n?f:t+(i?".":"#")+f,e.forced),c=!u&&a&&iI(a,f),v=s[f],c&&(e.dontCallGetSet?(m=_re(a,f),p=m&&m.value):p=a[f]),h=c&&p?p:r[f],!(c&&typeof v==typeof h)&&(e.bind&&c?$=xre(h,Mp):e.wrap&&c?$=Cre(h):o&&Sre(h)?$=wre(h):$=h,(e.sham||h&&h.sham||v&&v.sham)&&nu($,"sham",!0),nu(s,f,$),o&&(d=t+"Prototype",iI(ru,d)||nu(ru,d,{}),nu(ru[d],f,h),e.real&&l&&(u||!l[f])&&nu(l,f,h)))},kre=be,Pre=Kt,oI=on.f;kre({target:"Object",stat:!0,forced:Object.defineProperty!==oI,sham:!Pre},{defineProperty:oI});var Ore=st,C5=Ore.Object,Tre=u5.exports=function(r,t,n){return C5.defineProperty(r,t,n)};C5.defineProperty.sham&&(Tre.sham=!0);var Ire=u5.exports,Rre=Ire,k5=Rre,Mre=k5,Nre=Mre,Are=Nre,Dre=Are,P5=Dre,sb=Se(P5),Fre=ts,is=Array.isArray||function(r){return Fre(r)==="Array"},jre=Math.ceil,Lre=Math.floor,Bre=Math.trunc||function(r){var t=+r;return(t>0?Lre:jre)(t)},zre=Bre,lb=function(e){var r=+e;return r!==r||r===0?0:zre(r)},Hre=lb,Wre=Math.min,Vre=function(e){return e>0?Wre(Hre(e),9007199254740991):0},Ure=Vre,$n=function(e){return Ure(e.length)},Kre=TypeError,Gre=9007199254740991,ub=function(e){if(e>Gre)throw Kre("Maximum allowed index exceeded");return e},qre=ab,Yre=on,Xre=Tl,fd=function(e,r,t){var n=qre(r);n in e?Yre.f(e,n,Xre(0,t)):e[n]=t},Qre=dt,Jre=Qre("toStringTag"),O5={};O5[Jre]="z";var MC=String(O5)==="[object z]",Zre=MC,ene=mt,Am=ts,tne=dt,rne=tne("toStringTag"),nne=Object,ine=Am(function(){return arguments}())==="Arguments",one=function(e,r){try{return e[r]}catch{}},qo=Zre?Am:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=one(r=nne(e),rne))=="string"?t:ine?Am(r):(n=Am(r))==="Object"&&ene(r.callee)?"Arguments":n},ane=it,sne=mt,s_=IC,lne=ane(Function.toString);sne(s_.inspectSource)||(s_.inspectSource=function(e){return lne(e)});var T5=s_.inspectSource,une=it,cne=He,I5=mt,dne=qo,fne=Nr,hne=T5,R5=function(){},vne=[],M5=fne("Reflect","construct"),NC=/^\s*(?:class|function)\b/,pne=une(NC.exec),mne=!NC.test(R5),Jd=function(r){if(!I5(r))return!1;try{return M5(R5,vne,r),!0}catch{return!1}},N5=function(r){if(!I5(r))return!1;switch(dne(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mne||!!pne(NC,hne(r))}catch{return!0}};N5.sham=!0;var cb=!M5||cne(function(){var e;return Jd(Jd.call)||!Jd(Object)||!Jd(function(){e=!0})||e})?N5:Jd,aI=is,gne=cb,yne=ar,bne=dt,$ne=bne("species"),sI=Array,wne=function(e){var r;return aI(e)&&(r=e.constructor,gne(r)&&(r===sI||aI(r.prototype))?r=void 0:yne(r)&&(r=r[$ne],r===null&&(r=void 0))),r===void 0?sI:r},Sne=wne,db=function(e,r){return new(Sne(e))(r===0?0:r)},_ne=He,Ene=dt,xne=ld,Cne=Ene("species"),iv=function(e){return xne>=51||!_ne(function(){var r=[],t=r.constructor={};return t[Cne]=function(){return{foo:1}},r[e](Boolean).foo!==1})},kne=be,Pne=He,One=is,Tne=ar,Ine=nn,Rne=$n,lI=ub,uI=fd,Mne=db,Nne=iv,Ane=dt,Dne=ld,A5=Ane("isConcatSpreadable"),Fne=Dne>=51||!Pne(function(){var e=[];return e[A5]=!1,e.concat()[0]!==e}),jne=function(e){if(!Tne(e))return!1;var r=e[A5];return r!==void 0?!!r:One(e)},Lne=!Fne||!Nne("concat");kne({target:"Array",proto:!0,forced:Lne},{concat:function(r){var t=Ine(this),n=Mne(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],jne(u))for(l=Rne(u),lI(i+l),a=0;a<l;a++,i++)a in u&&uI(n,i,u[a]);else lI(i+1),uI(n,i++,u);return n.length=i,n}});var Bne=qo,zne=String,Il=function(e){if(Bne(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return zne(e)},fb={},Hne=lb,Wne=Math.max,Vne=Math.min,hb=function(e,r){var t=Hne(e);return t<0?Wne(t+r,0):Vne(t,r)},Une=no,Kne=hb,Gne=$n,qne=function(e){return function(r,t,n){var i=Une(r),o=Gne(i),a=Kne(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}},Yne={indexOf:qne(!1)},ov={},Xne=it,P0=Mt,Qne=no,Jne=Yne.indexOf,Zne=ov,cI=Xne([].push),D5=function(e,r){var t=Qne(e),n=0,i=[],o;for(o in t)!P0(Zne,o)&&P0(t,o)&&cI(i,o);for(;r.length>n;)P0(t,o=r[n++])&&(~Jne(i,o)||cI(i,o));return i},AC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eie=D5,tie=AC,vb=Object.keys||function(r){return eie(r,tie)},rie=Kt,nie=x5,iie=on,oie=bn,aie=no,sie=vb;fb.f=rie&&!nie?Object.defineProperties:function(r,t){oie(r);for(var n=aie(t),i=sie(t),o=i.length,a=0,s;o>a;)iie.f(r,s=i[a++],n[s]);return r};var lie=Nr,F5=lie("document","documentElement"),uie=dd,cie=ob,dI=uie("keys"),pb=function(e){return dI[e]||(dI[e]=cie(e))},die=bn,fie=fb,fI=AC,hie=ov,vie=F5,pie=RC,mie=pb,hI=">",vI="<",l_="prototype",u_="script",j5=mie("IE_PROTO"),O0=function(){},L5=function(e){return vI+u_+hI+e+vI+"/"+u_+hI},pI=function(e){e.write(L5("")),e.close();var r=e.parentWindow.Object;return e=null,r},gie=function(){var e=pie("iframe"),r="java"+u_+":",t;return e.style.display="none",vie.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(L5("document.F=Object")),t.close(),t.F},Np,Dm=function(){try{Np=new ActiveXObject("htmlfile")}catch{}Dm=typeof document<"u"?document.domain&&Np?pI(Np):gie():pI(Np);for(var e=fI.length;e--;)delete Dm[l_][fI[e]];return Dm()};hie[j5]=!0;var Rl=Object.create||function(r,t){var n;return r!==null?(O0[l_]=die(r),n=new O0,O0[l_]=null,n[j5]=r):n=Dm(),t===void 0?n:fie.f(n,t)},av={},yie=D5,bie=AC,$ie=bie.concat("length","prototype");av.f=Object.getOwnPropertyNames||function(r){return yie(r,$ie)};var DC={},mI=hb,wie=$n,Sie=fd,_ie=Array,Eie=Math.max,B5=function(e,r,t){for(var n=wie(e),i=mI(r,n),o=mI(t===void 0?n:t,n),a=_ie(Eie(o-i,0)),s=0;i<o;i++,s++)Sie(a,s,e[i]);return a.length=s,a},xie=ts,Cie=no,z5=av.f,kie=B5,H5=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Pie=function(e){try{return z5(e)}catch{return kie(H5)}};DC.f=function(r){return H5&&xie(r)==="Window"?Pie(r):z5(Cie(r))};var sv={};sv.f=Object.getOwnPropertySymbols;var Oie=Go,hd=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Oie(e,r,t),e},Tie=on,FC=function(e,r,t){return Tie.f(e,r,t)},lv={},Iie=dt;lv.f=Iie;var gI=st,Rie=Mt,Mie=lv,Nie=on.f,gt=function(e){var r=gI.Symbol||(gI.Symbol={});Rie(r,e)||Nie(r,e,{value:Mie.f(e)})},Aie=Gt,Die=Nr,Fie=dt,jie=hd,W5=function(){var e=Die("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,n=Fie("toPrimitive");r&&!r[n]&&jie(r,n,function(i){return Aie(t,this)},{})},Lie=MC,Bie=qo,zie=Lie?{}.toString:function(){return"[object "+Bie(this)+"]"},Hie=MC,Wie=on.f,Vie=Go,Uie=Mt,Kie=zie,Gie=dt,yI=Gie("toStringTag"),Ml=function(e,r,t,n){if(e){var i=t?e:e.prototype;Uie(i,yI)||Wie(i,yI,{configurable:!0,value:r}),n&&!Hie&&Vie(i,"toString",Kie)}},qie=at,Yie=mt,bI=qie.WeakMap,Xie=Yie(bI)&&/native code/.test(String(bI)),Qie=Xie,V5=at,Jie=ar,Zie=Go,T0=Mt,I0=IC,eoe=pb,toe=ov,$I="Object already initialized",c_=V5.TypeError,roe=V5.WeakMap,zg,dh,Hg,noe=function(e){return Hg(e)?dh(e):zg(e,{})},ioe=function(e){return function(r){var t;if(!Jie(r)||(t=dh(r)).type!==e)throw new c_("Incompatible receiver, "+e+" required");return t}};if(Qie||I0.state){var Oi=I0.state||(I0.state=new roe);Oi.get=Oi.get,Oi.has=Oi.has,Oi.set=Oi.set,zg=function(e,r){if(Oi.has(e))throw new c_($I);return r.facade=e,Oi.set(e,r),r},dh=function(e){return Oi.get(e)||{}},Hg=function(e){return Oi.has(e)}}else{var iu=eoe("state");toe[iu]=!0,zg=function(e,r){if(T0(e,iu))throw new c_($I);return r.facade=e,Zie(e,iu,r),r},dh=function(e){return T0(e,iu)?e[iu]:{}},Hg=function(e){return T0(e,iu)}}var vd={set:zg,get:dh,has:Hg,enforce:noe,getterFor:ioe},ooe=ns,aoe=it,soe=ib,loe=nn,uoe=$n,coe=db,wI=aoe([].push),Ap=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=loe(l),h=soe(f),v=ooe(u,c),p=uoe(h),$=0,m=d||coe,g=r?m(l,p):t||a?m(l,0):void 0,y,w;p>$;$++)if((s||$ in h)&&(y=h[$],w=v(y,$,f),e))if(r)g[$]=w;else if(w)switch(e){case 3:return!0;case 5:return y;case 6:return $;case 2:wI(g,y)}else switch(e){case 4:return!1;case 7:wI(g,y)}return o?-1:n||i?i:g}},pd={forEach:Ap(0),map:Ap(1),filter:Ap(2),some:Ap(3)},mb=be,uv=at,jC=Gt,doe=it,Rc=Kt,Mc=ud,foe=He,Ht=Mt,hoe=Rt,d_=bn,gb=no,LC=ab,voe=Il,f_=Tl,fh=Rl,U5=vb,poe=av,K5=DC,moe=sv,G5=Ol,q5=on,goe=fb,Y5=nb,SI=hd,yoe=FC,BC=dd,boe=pb,X5=ov,_I=ob,$oe=dt,woe=lv,Soe=gt,_oe=W5,Eoe=Ml,Q5=vd,yb=pd.forEach,Wr=boe("hidden"),bb="Symbol",hh="prototype",xoe=Q5.set,EI=Q5.getterFor(bb),hi=Object[hh],Us=uv.Symbol,pf=Us&&Us[hh],Coe=uv.RangeError,koe=uv.TypeError,R0=uv.QObject,J5=G5.f,Ks=q5.f,Z5=K5.f,Poe=Y5.f,eB=doe([].push),Fo=BC("symbols"),cv=BC("op-symbols"),Ooe=BC("wks"),h_=!R0||!R0[hh]||!R0[hh].findChild,tB=function(e,r,t){var n=J5(hi,r);n&&delete hi[r],Ks(e,r,t),n&&e!==hi&&Ks(hi,r,n)},v_=Rc&&foe(function(){return fh(Ks({},"a",{get:function(){return Ks(this,"a",{value:7}).a}})).a!==7})?tB:Ks,M0=function(e,r){var t=Fo[e]=fh(pf);return xoe(t,{type:bb,tag:e,description:r}),Rc||(t.description=r),t},$b=function(r,t,n){r===hi&&$b(cv,t,n),d_(r);var i=LC(t);return d_(n),Ht(Fo,i)?(n.enumerable?(Ht(r,Wr)&&r[Wr][i]&&(r[Wr][i]=!1),n=fh(n,{enumerable:f_(0,!1)})):(Ht(r,Wr)||Ks(r,Wr,f_(1,{})),r[Wr][i]=!0),v_(r,i,n)):Ks(r,i,n)},zC=function(r,t){d_(r);var n=gb(t),i=U5(n).concat(oB(n));return yb(i,function(o){(!Rc||jC(rB,n,o))&&$b(r,o,n[o])}),r},Toe=function(r,t){return t===void 0?fh(r):zC(fh(r),t)},rB=function(r){var t=LC(r),n=jC(Poe,this,t);return this===hi&&Ht(Fo,t)&&!Ht(cv,t)?!1:n||!Ht(this,t)||!Ht(Fo,t)||Ht(this,Wr)&&this[Wr][t]?n:!0},nB=function(r,t){var n=gb(r),i=LC(t);if(!(n===hi&&Ht(Fo,i)&&!Ht(cv,i))){var o=J5(n,i);return o&&Ht(Fo,i)&&!(Ht(n,Wr)&&n[Wr][i])&&(o.enumerable=!0),o}},iB=function(r){var t=Z5(gb(r)),n=[];return yb(t,function(i){!Ht(Fo,i)&&!Ht(X5,i)&&eB(n,i)}),n},oB=function(e){var r=e===hi,t=Z5(r?cv:gb(e)),n=[];return yb(t,function(i){Ht(Fo,i)&&(!r||Ht(hi,i))&&eB(n,Fo[i])}),n};Mc||(Us=function(){if(hoe(pf,this))throw new koe("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:voe(arguments[0]),t=_I(r),n=function(i){var o=this===void 0?uv:this;o===hi&&jC(n,cv,i),Ht(o,Wr)&&Ht(o[Wr],t)&&(o[Wr][t]=!1);var a=f_(1,i);try{v_(o,t,a)}catch(s){if(!(s instanceof Coe))throw s;tB(o,t,a)}};return Rc&&h_&&v_(hi,t,{configurable:!0,set:n}),M0(t,r)},pf=Us[hh],SI(pf,"toString",function(){return EI(this).tag}),SI(Us,"withoutSetter",function(e){return M0(_I(e),e)}),Y5.f=rB,q5.f=$b,goe.f=zC,G5.f=nB,poe.f=K5.f=iB,moe.f=oB,woe.f=function(e){return M0($oe(e),e)},Rc&&yoe(pf,"description",{configurable:!0,get:function(){return EI(this).description}}));mb({global:!0,wrap:!0,forced:!Mc,sham:!Mc},{Symbol:Us});yb(U5(Ooe),function(e){Soe(e)});mb({target:bb,stat:!0,forced:!Mc},{useSetter:function(){h_=!0},useSimple:function(){h_=!1}});mb({target:"Object",stat:!0,forced:!Mc,sham:!Rc},{create:Toe,defineProperty:$b,defineProperties:zC,getOwnPropertyDescriptor:nB});mb({target:"Object",stat:!0,forced:!Mc},{getOwnPropertyNames:iB});_oe();Eoe(Us,bb);X5[Wr]=!0;var Ioe=ud,aB=Ioe&&!!Symbol.for&&!!Symbol.keyFor,Roe=be,Moe=Nr,Noe=Mt,Aoe=Il,sB=dd,Doe=aB,N0=sB("string-to-symbol-registry"),Foe=sB("symbol-to-string-registry");Roe({target:"Symbol",stat:!0,forced:!Doe},{for:function(e){var r=Aoe(e);if(Noe(N0,r))return N0[r];var t=Moe("Symbol")(r);return N0[r]=t,Foe[t]=r,t}});var joe=be,Loe=Mt,Boe=rv,zoe=cd,Hoe=dd,Woe=aB,xI=Hoe("symbol-to-string-registry");joe({target:"Symbol",stat:!0,forced:!Woe},{keyFor:function(r){if(!Boe(r))throw new TypeError(zoe(r)+" is not a symbol");if(Loe(xI,r))return xI[r]}});var Voe=it,dv=Voe([].slice),Uoe=it,CI=is,Koe=mt,kI=ts,Goe=Il,PI=Uoe([].push),qoe=function(e){if(Koe(e))return e;if(CI(e)){for(var r=e.length,t=[],n=0;n<r;n++){var i=e[n];typeof i=="string"?PI(t,i):(typeof i=="number"||kI(i)==="Number"||kI(i)==="String")&&PI(t,Goe(i))}var o=t.length,a=!0;return function(s,l){if(a)return a=!1,l;if(CI(this))return l;for(var u=0;u<o;u++)if(t[u]===s)return l}}},Yoe=be,lB=Nr,uB=ad,Xoe=Gt,fv=it,cB=He,OI=mt,TI=rv,dB=dv,Qoe=qoe,Joe=ud,Zoe=String,Ma=lB("JSON","stringify"),Dp=fv(/./.exec),II=fv("".charAt),eae=fv("".charCodeAt),tae=fv("".replace),rae=fv(1 .toString),nae=/[\uD800-\uDFFF]/g,RI=/^[\uD800-\uDBFF]$/,MI=/^[\uDC00-\uDFFF]$/,NI=!Joe||cB(function(){var e=lB("Symbol")("stringify detection");return Ma([e])!=="[null]"||Ma({a:e})!=="{}"||Ma(Object(e))!=="{}"}),AI=cB(function(){return Ma("\uDF06\uD834")!=='"\\udf06\\ud834"'||Ma("\uDEAD")!=='"\\udead"'}),iae=function(e,r){var t=dB(arguments),n=Qoe(r);if(!(!OI(n)&&(e===void 0||TI(e))))return t[1]=function(i,o){if(OI(n)&&(o=Xoe(n,this,Zoe(i),o)),!TI(o))return o},uB(Ma,null,t)},oae=function(e,r,t){var n=II(t,r-1),i=II(t,r+1);return Dp(RI,e)&&!Dp(MI,i)||Dp(MI,e)&&!Dp(RI,n)?"\\u"+rae(eae(e,0),16):e};Ma&&Yoe({target:"JSON",stat:!0,forced:NI||AI},{stringify:function(r,t,n){var i=dB(arguments),o=uB(NI?iae:Ma,null,i);return AI&&typeof o=="string"?tae(o,nae,oae):o}});var aae=be,sae=ud,lae=He,fB=sv,uae=nn,cae=!sae||lae(function(){fB.f(1)});aae({target:"Object",stat:!0,forced:cae},{getOwnPropertySymbols:function(r){var t=fB.f;return t?t(uae(r)):[]}});var dae=gt;dae("asyncIterator");var fae=gt;fae("hasInstance");var hae=gt;hae("isConcatSpreadable");var vae=gt;vae("iterator");var pae=gt;pae("match");var mae=gt;mae("matchAll");var gae=gt;gae("replace");var yae=gt;yae("search");var bae=gt;bae("species");var $ae=gt;$ae("split");var wae=gt,Sae=W5;wae("toPrimitive");Sae();var _ae=Nr,Eae=gt,xae=Ml;Eae("toStringTag");xae(_ae("Symbol"),"Symbol");var Cae=gt;Cae("unscopables");var kae=at,Pae=Ml;Pae(kae.JSON,"JSON",!0);var Oae=st,Tae=Oae.Symbol,md={},p_=Kt,Iae=Mt,hB=Function.prototype,Rae=p_&&Object.getOwnPropertyDescriptor,vB=Iae(hB,"name"),Mae=vB&&(function(){}).name==="something";vB&&(!p_||p_&&Rae(hB,"name").configurable);var Nae={PROPER:Mae},Aae=He,pB=!Aae(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Dae=Mt,Fae=mt,jae=nn,Lae=pb,Bae=pB,DI=Lae("IE_PROTO"),m_=Object,zae=m_.prototype,wb=Bae?m_.getPrototypeOf:function(e){var r=jae(e);if(Dae(r,DI))return r[DI];var t=r.constructor;return Fae(t)&&r instanceof t?t.prototype:r instanceof m_?zae:null},Hae=He,Wae=mt,Vae=ar,Uae=Rl,FI=wb,Kae=hd,Gae=dt,g_=Gae("iterator"),mB=!1,bo,A0,D0;[].keys&&(D0=[].keys(),"next"in D0?(A0=FI(FI(D0)),A0!==Object.prototype&&(bo=A0)):mB=!0);var qae=!Vae(bo)||Hae(function(){var e={};return bo[g_].call(e)!==e});qae?bo={}:bo=Uae(bo);Wae(bo[g_])||Kae(bo,g_,function(){return this});var gB={IteratorPrototype:bo,BUGGY_SAFARI_ITERATORS:mB},Yae=gB.IteratorPrototype,Xae=Rl,Qae=Tl,Jae=Ml,Zae=md,ese=function(){return this},tse=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Xae(Yae,{next:Qae(+!n,t)}),Jae(e,i,!1,!0),Zae[i]=ese,e},rse=it,nse=rn,ise=function(e,r,t){try{return rse(nse(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}},ose=mt,ase=String,sse=TypeError,lse=function(e){if(typeof e=="object"||ose(e))return e;throw new sse("Can't set "+ase(e)+" as a prototype")},use=ise,cse=bn,dse=lse,yB=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=use(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,o){return cse(i),dse(o),e?t(i,o):i.__proto__=o,i}}():void 0),fse=be,hse=Gt,vse=Nae,pse=tse,mse=wb,gse=Ml,jI=hd,yse=dt,LI=md,bse=gB,$se=vse.PROPER,Fp=bse.BUGGY_SAFARI_ITERATORS,F0=yse("iterator"),BI="keys",jp="values",zI="entries",wse=function(){return this},HC=function(e,r,t,n,i,o,a){pse(t,r,n);var s=function(m){if(m===i&&f)return f;if(!Fp&&m&&m in c)return c[m];switch(m){case BI:return function(){return new t(this,m)};case jp:return function(){return new t(this,m)};case zI:return function(){return new t(this,m)}}return function(){return new t(this)}},l=r+" Iterator",u=!1,c=e.prototype,d=c[F0]||c["@@iterator"]||i&&c[i],f=!Fp&&d||s(i),h=r==="Array"&&c.entries||d,v,p,$;if(h&&(v=mse(h.call(new e)),v!==Object.prototype&&v.next&&(gse(v,l,!0,!0),LI[l]=wse)),$se&&i===jp&&d&&d.name!==jp&&(u=!0,f=function(){return hse(d,this)}),i)if(p={values:s(jp),keys:o?f:s(BI),entries:s(zI)},a)for($ in p)(Fp||u||!($ in c))&&jI(c,$,p[$]);else fse({target:r,proto:!0,forced:Fp||u},p);return a&&c[F0]!==f&&jI(c,F0,f,{}),LI[r]=f,p},WC=function(e,r){return{value:e,done:r}},Sse=no,HI=md,bB=vd;on.f;var _se=HC,Lp=WC,$B="Array Iterator",Ese=bB.set,xse=bB.getterFor($B);_se(Array,"Array",function(e,r){Ese(this,{type:$B,target:Sse(e),index:0,kind:r})},function(){var e=xse(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Lp(void 0,!0);switch(e.kind){case"keys":return Lp(t,!1);case"values":return Lp(r[t],!1)}return Lp([t,r[t]],!1)},"values");HI.Arguments=HI.Array;var Cse={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},kse=Cse,Pse=at,Ose=qo,Tse=Go,WI=md,Ise=dt,VI=Ise("toStringTag");for(var j0 in kse){var UI=Pse[j0],L0=UI&&UI.prototype;L0&&Ose(L0)!==VI&&Tse(L0,VI,j0),WI[j0]=WI.Array}var Rse=Tae,wB=Rse,Mse=dt,Nse=on.f,KI=Mse("metadata"),GI=Function.prototype;GI[KI]===void 0&&Nse(GI,KI,{value:null});var Ase=gt;Ase("asyncDispose");var Dse=gt;Dse("dispose");var Fse=gt;Fse("metadata");var jse=wB,Lse=jse,Bse=Nr,zse=it,VC=Bse("Symbol"),Hse=VC.keyFor,Wse=zse(VC.prototype.valueOf),SB=VC.isRegisteredSymbol||function(r){try{return Hse(Wse(r))!==void 0}catch{return!1}},Vse=be,Use=SB;Vse({target:"Symbol",stat:!0},{isRegisteredSymbol:Use});var Kse=dd,_B=Nr,Gse=it,qse=rv,Yse=dt,Wg=_B("Symbol"),qI=Wg.isWellKnownSymbol,EB=_B("Object","getOwnPropertyNames"),Xse=Gse(Wg.prototype.valueOf),YI=Kse("wks");for(var B0=0,XI=EB(Wg),Qse=XI.length;B0<Qse;B0++)try{var QI=XI[B0];qse(Wg[QI])&&Yse(QI)}catch{}var xB=function(r){if(qI&&qI(r))return!0;try{for(var t=Xse(r),n=0,i=EB(YI),o=i.length;n<o;n++)if(YI[i[n]]==t)return!0}catch{}return!1},Jse=be,Zse=xB;Jse({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Zse});var ele=gt;ele("matcher");var tle=gt;tle("observable");var rle=be,nle=SB;rle({target:"Symbol",stat:!0},{isRegistered:nle});var ile=be,ole=xB;ile({target:"Symbol",stat:!0,forced:!0},{isWellKnown:ole});var ale=gt;ale("metadataKey");var sle=gt;sle("patternMatch");var lle=gt;lle("replaceAll");var ule=Lse,cle=ule,UC=cle,Iu=Se(UC),KC=it,dle=lb,fle=Il,hle=OC,vle=KC("".charAt),JI=KC("".charCodeAt),ple=KC("".slice),mle=function(e){return function(r,t){var n=fle(hle(r)),i=dle(t),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=JI(n,i),a<55296||a>56319||i+1===o||(s=JI(n,i+1))<56320||s>57343?e?vle(n,i):a:e?ple(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},gle={charAt:mle(!0)},yle=gle.charAt,ble=Il,CB=vd,$le=HC,ZI=WC,kB="String Iterator",wle=CB.set,Sle=CB.getterFor(kB);$le(String,"String",function(e){wle(this,{type:kB,string:ble(e),index:0})},function(){var r=Sle(this),t=r.string,n=r.index,i;return n>=t.length?ZI(void 0,!0):(i=yle(t,n),r.index+=i.length,ZI(i,!1))});var _le=lv,Ele=_le.f("iterator"),xle=Ele,PB=xle,Cle=PB,kle=Cle,Ple=kle,Ole=Ple,OB=Ole,Tle=Se(OB);function Nc(e){"@babel/helpers - typeof";return Nc=typeof Iu=="function"&&typeof Tle=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Iu=="function"&&r.constructor===Iu&&r!==Iu.prototype?"symbol":typeof r},Nc(e)}var Ile=lv,Rle=Ile.f("toPrimitive"),Mle=Rle,Nle=Mle,Ale=Nle,Dle=Ale,Fle=Dle,jle=Fle,Lle=jle,Ble=Se(Lle);function zle(e,r){if(Nc(e)!=="object"||e===null)return e;var t=e[Ble];if(t!==void 0){var n=t.call(e,r);if(Nc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function TB(e){var r=zle(e,"string");return Nc(r)==="symbol"?r:String(r)}function eR(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),sb(e,TB(n.key),n)}}function Sb(e,r,t){return r&&eR(e.prototype,r),t&&eR(e,t),sb(e,"prototype",{writable:!1}),e}function Na(e,r,t){return r=TB(r),r in e?sb(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var IB=it,Hle=rn,Wle=ar,Vle=Mt,tR=dv,Ule=tv,RB=Function,Kle=IB([].concat),Gle=IB([].join),z0={},qle=function(e,r,t){if(!Vle(z0,r)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";z0[r]=RB("C,a","return new C("+Gle(n,",")+")")}return z0[r](e,t)},MB=Ule?RB.bind:function(r){var t=Hle(this),n=t.prototype,i=tR(arguments,1),o=function(){var s=Kle(i,tR(arguments));return this instanceof o?qle(t,s.length,s):t.apply(r,s)};return Wle(n)&&(o.prototype=n),o},Yle=be,rR=MB;Yle({target:"Function",proto:!0,forced:Function.bind!==rR},{bind:rR});var Xle=at,Qle=st,mr=function(e,r){var t=Qle[e+"Prototype"],n=t&&t[r];if(n)return n;var i=Xle[e],o=i&&i.prototype;return o&&o[r]},Jle=mr,Zle=Jle("Function","bind"),eue=Rt,tue=Zle,H0=Function.prototype,rue=function(e){var r=e.bind;return e===H0||eue(H0,e)&&r===H0.bind?tue:r},nue=rue,NB=nue,iue=NB,AB=Se(iue),oue=rn,aue=nn,sue=ib,lue=$n,uue=TypeError,cue=function(e){return function(r,t,n,i){oue(t);var o=aue(r),a=sue(o),s=lue(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 uue("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}},due={left:cue(!1)},fue=He,_b=function(e,r){var t=[][e];return!!t&&fue(function(){t.call(null,r||function(){return 1},1)})},hue=at,vue=ts,hv=vue(hue.process)==="process",pue=be,mue=due.left,gue=_b,nR=ld,yue=hv,bue=!yue&&nR>79&&nR<83,$ue=bue||!gue("reduce");pue({target:"Array",proto:!0,forced:$ue},{reduce:function(r){var t=arguments.length;return mue(this,r,t,t>1?arguments[1]:void 0)}});var wue=mr,Sue=wue("Array","reduce"),_ue=Rt,Eue=Sue,W0=Array.prototype,xue=function(e){var r=e.reduce;return e===W0||_ue(W0,e)&&r===W0.reduce?Eue:r},Cue=xue,kue=Cue,Pue=kue,Oue=Se(Pue),Tue=be,Iue=pd.filter,Rue=iv,Mue=Rue("filter");Tue({target:"Array",proto:!0,forced:!Mue},{filter:function(r){return Iue(this,r,arguments.length>1?arguments[1]:void 0)}});var Nue=mr,Aue=Nue("Array","filter"),Due=Rt,Fue=Aue,V0=Array.prototype,jue=function(e){var r=e.filter;return e===V0||Due(V0,e)&&r===V0.filter?Fue:r},Lue=jue,Bue=Lue,zue=Bue,Ru=Se(zue),Hue=be,Wue=pd.map,Vue=iv,Uue=Vue("map");Hue({target:"Array",proto:!0,forced:!Uue},{map:function(r){return Wue(this,r,arguments.length>1?arguments[1]:void 0)}});var Kue=mr,Gue=Kue("Array","map"),que=Rt,Yue=Gue,U0=Array.prototype,Xue=function(e){var r=e.map;return e===U0||que(U0,e)&&r===U0.map?Yue:r},Que=Xue,Jue=Que,Zue=Jue,li=Se(Zue),ece=is,tce=$n,rce=ub,nce=ns,DB=function(e,r,t,n,i,o,a,s){for(var l=i,u=0,c=a?nce(a,s):!1,d,f;u<n;)u in t&&(d=c?c(t[u],u,r):t[u],o>0&&ece(d)?(f=tce(d),l=DB(e,r,d,f,l,o-1)-1):(rce(l+1),e[l]=d),l++),u++;return l},ice=DB,oce=be,ace=ice,sce=rn,lce=nn,uce=$n,cce=db;oce({target:"Array",proto:!0},{flatMap:function(r){var t=lce(this),n=uce(t),i;return sce(r),i=cce(t,0),i.length=ace(i,t,t,n,0,1,r,arguments.length>1?arguments[1]:void 0),i}});var dce=mr;dce("Array","flatMap");var fce=Gt,iR=bn,hce=TC,FB=function(e,r,t){var n,i;iR(e);try{if(n=hce(e,"return"),!n){if(r==="throw")throw t;return t}n=fce(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return iR(n),t},vce=bn,pce=FB,mce=function(e,r,t,n){try{return n?r(vce(t)[0],t[1]):r(t)}catch(i){pce(e,"throw",i)}},gce=dt,yce=md,bce=gce("iterator"),$ce=Array.prototype,jB=function(e){return e!==void 0&&(yce.Array===e||$ce[bce]===e)},wce=qo,oR=TC,Sce=sd,_ce=md,Ece=dt,xce=Ece("iterator"),Eb=function(e){if(!Sce(e))return oR(e,xce)||oR(e,"@@iterator")||_ce[wce(e)]},Cce=Gt,kce=rn,Pce=bn,Oce=cd,Tce=Eb,Ice=TypeError,GC=function(e,r){var t=arguments.length<2?Tce(e):r;if(kce(t))return Pce(Cce(t,e));throw new Ice(Oce(e)+" is not iterable")},Rce=ns,Mce=Gt,Nce=nn,Ace=mce,Dce=jB,Fce=cb,jce=$n,aR=fd,Lce=GC,Bce=Eb,sR=Array,zce=function(r){var t=Nce(r),n=Fce(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=Rce(o,i>2?arguments[2]:void 0));var s=Bce(t),l=0,u,c,d,f,h,v;if(s&&!(this===sR&&Dce(s)))for(f=Lce(t,s),h=f.next,c=n?new this:[];!(d=Mce(h,f)).done;l++)v=a?Ace(f,o,[d.value,l],!0):d.value,aR(c,l,v);else for(u=jce(t),c=n?new this(u):sR(u);u>l;l++)v=a?o(t[l],l):t[l],aR(c,l,v);return c.length=l,c},Hce=dt,LB=Hce("iterator"),BB=!1;try{var Wce=0,lR={next:function(){return{done:!!Wce++}},return:function(){BB=!0}};lR[LB]=function(){return this},Array.from(lR,function(){throw 2})}catch{}var zB=function(e,r){try{if(!r&&!BB)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},Vce=be,Uce=zce,Kce=zB,Gce=!Kce(function(e){Array.from(e)});Vce({target:"Array",stat:!0,forced:Gce},{from:Uce});var qce=st,Yce=qce.Array.from,Xce=Yce,HB=Xce,Qce=HB,qC=Se(Qce),Jce=Eb,Zce=Jce,ede=Zce,tde=ede,rde=tde,nde=rde,ide=nde,ode=ide,WB=ode,VB=Se(WB),ade=WB,YC=Se(ade),sde=be,lde=is;sde({target:"Array",stat:!0},{isArray:lde});var ude=st,cde=ude.Array.isArray,dde=cde,UB=dde,fde=UB,hde=fde,vde=hde,pde=vde,mde=pde,KB=Se(mde);function gde(e){if(KB(e))return e}var yde=Kt,bde=is,$de=TypeError,wde=Object.getOwnPropertyDescriptor,Sde=yde&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),GB=Sde?function(e,r){if(bde(e)&&!wde(e,"length").writable)throw new $de("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r},_de=be,Ede=nn,xde=$n,Cde=GB,kde=ub,Pde=He,Ode=Pde(function(){return[].push.call({length:4294967296},1)!==4294967297}),Tde=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},Ide=Ode||!Tde();_de({target:"Array",proto:!0,forced:Ide},{push:function(r){var t=Ede(this),n=xde(t),i=arguments.length;kde(n+i);for(var o=0;o<i;o++)t[n]=arguments[o],n++;return Cde(t,n),n}});var Rde=mr,Mde=Rde("Array","push"),Nde=Rt,Ade=Mde,K0=Array.prototype,Dde=function(e){var r=e.push;return e===K0||Nde(K0,e)&&r===K0.push?Ade:r},Fde=Dde,jde=Fde,Lde=jde,Bde=Lde,zde=Bde,Hde=zde,qB=Hde,Wde=Se(qB);function Vde(e,r){var t=e==null?null:typeof Iu<"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)&&(Wde(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 Ude=be,uR=is,Kde=cb,Gde=ar,cR=hb,qde=$n,Yde=no,Xde=fd,Qde=dt,Jde=iv,Zde=dv,efe=Jde("slice"),tfe=Qde("species"),G0=Array,rfe=Math.max;Ude({target:"Array",proto:!0,forced:!efe},{slice:function(r,t){var n=Yde(this),i=qde(n),o=cR(r,i),a=cR(t===void 0?i:t,i),s,l,u;if(uR(n)&&(s=n.constructor,Kde(s)&&(s===G0||uR(s.prototype))?s=void 0:Gde(s)&&(s=s[tfe],s===null&&(s=void 0)),s===G0||s===void 0))return Zde(n,o,a);for(l=new(s===void 0?G0:s)(rfe(a-o,0)),u=0;o<a;o++,u++)o in n&&Xde(l,u,n[o]);return l.length=u,l}});var nfe=mr,ife=nfe("Array","slice"),ofe=Rt,afe=ife,q0=Array.prototype,sfe=function(e){var r=e.slice;return e===q0||ofe(q0,e)&&r===q0.slice?afe:r},lfe=sfe,YB=lfe,ufe=YB,cfe=ufe,dfe=cfe,ffe=dfe,XB=ffe,hfe=Se(XB),vfe=HB,pfe=vfe,mfe=pfe,gfe=mfe,yfe=gfe,QB=Se(yfe);function y_(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 JB(e,r){var t;if(e){if(typeof e=="string")return y_(e,r);var n=hfe(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return QB(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y_(e,r)}}function bfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
126
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dr(e,r){return gde(e)||Vde(e,r)||JB(e,r)||bfe()}function $fe(e){if(KB(e))return y_(e)}function wfe(e){if(typeof Iu<"u"&&VB(e)!=null||e["@@iterator"]!=null)return QB(e)}function Sfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
127
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vr(e){return $fe(e)||wfe(e)||JB(e)||Sfe()}var _fe=wB,xb=Se(_fe),Efe=mr,xfe=Efe("Array","concat"),Cfe=Rt,kfe=xfe,Y0=Array.prototype,Pfe=function(e){var r=e.concat;return e===Y0||Cfe(Y0,e)&&r===Y0.concat?kfe:r},Ofe=Pfe,Tfe=Ofe,Ife=Tfe,Cb=Se(Ife),Rfe=YB,kb=Se(Rfe),Mfe=Nr,Nfe=it,Afe=av,Dfe=sv,Ffe=bn,jfe=Nfe([].concat),XC=Mfe("Reflect","ownKeys")||function(r){var t=Afe.f(Ffe(r)),n=Dfe.f;return n?jfe(t,n(r)):t},Lfe=be,Bfe=XC;Lfe({target:"Reflect",stat:!0},{ownKeys:Bfe});var zfe=st,Hfe=zfe.Reflect.ownKeys,Wfe=Hfe,Vfe=Wfe,Ufe=Vfe,Kfe=Se(Ufe),Gfe=UB,un=Se(Gfe),qfe=be,Yfe=nn,ZB=vb,Xfe=He,Qfe=Xfe(function(){ZB(1)});qfe({target:"Object",stat:!0,forced:Qfe},{keys:function(r){return ZB(Yfe(r))}});var Jfe=st,Zfe=Jfe.Object.keys,ehe=Zfe,the=ehe,rhe=the,QC=Se(rhe),nhe=pd.forEach,ihe=_b,ohe=ihe("forEach"),ahe=ohe?[].forEach:function(r){return nhe(this,r,arguments.length>1?arguments[1]:void 0)},she=be,dR=ahe;she({target:"Array",proto:!0,forced:[].forEach!==dR},{forEach:dR});var lhe=mr,uhe=lhe("Array","forEach"),che=uhe,dhe=che,fhe=qo,hhe=Mt,vhe=Rt,phe=dhe,X0=Array.prototype,mhe={DOMTokenList:!0,NodeList:!0},e4=function(e){var r=e.forEach;return e===X0||vhe(X0,e)&&r===X0.forEach||hhe(mhe,fhe(e))?phe:r},ghe=e4,dl=Se(ghe),yhe=be,bhe=it,$he=is,whe=bhe([].reverse),fR=[1,2];yhe({target:"Array",proto:!0,forced:String(fR)===String(fR.reverse())},{reverse:function(){return $he(this)&&(this.length=this.length),whe(this)}});var She=mr,_he=She("Array","reverse"),Ehe=Rt,xhe=_he,Q0=Array.prototype,Che=function(e){var r=e.reverse;return e===Q0||Ehe(Q0,e)&&r===Q0.reverse?xhe:r},khe=Che,t4=khe,Phe=t4,Ohe=Se(Phe),hR=cd,The=TypeError,r4=function(e,r){if(!delete e[r])throw new The("Cannot delete property "+hR(r)+" of "+hR(e))},Ihe=be,Rhe=nn,Mhe=hb,Nhe=lb,Ahe=$n,Dhe=GB,Fhe=ub,jhe=db,Lhe=fd,J0=r4,Bhe=iv,zhe=Bhe("splice"),Hhe=Math.max,Whe=Math.min;Ihe({target:"Array",proto:!0,forced:!zhe},{splice:function(r,t){var n=Rhe(this),i=Ahe(n),o=Mhe(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=Whe(Hhe(Nhe(t),0),i-o)),Fhe(i+s-l),u=jhe(n,l),c=0;c<l;c++)d=o+c,d in n&&Lhe(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]:J0(n,f);for(c=i;c>i-l+s;c--)J0(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]:J0(n,f);for(c=0;c<s;c++)n[c+o]=arguments[c+2];return Dhe(n,i-l+s),u}});var Vhe=mr,Uhe=Vhe("Array","splice"),Khe=Rt,Ghe=Uhe,Z0=Array.prototype,qhe=function(e){var r=e.splice;return e===Z0||Khe(Z0,e)&&r===Z0.splice?Ghe:r},Yhe=qhe,Xhe=Yhe,Qhe=Xhe,n4=Se(Qhe),vR=Kt,Jhe=it,Zhe=Gt,eve=He,e$=vb,tve=sv,rve=nb,nve=nn,ive=ib,ou=Object.assign,pR=Object.defineProperty,ove=Jhe([].concat),ave=!ou||eve(function(){if(vR&&ou({b:1},ou(pR({},"a",{enumerable:!0,get:function(){pR(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}),ou({},e)[t]!==7||e$(ou({},r)).join("")!==n})?function(r,t){for(var n=nve(r),i=arguments.length,o=1,a=tve.f,s=rve.f;i>o;)for(var l=ive(arguments[o++]),u=a?ove(e$(l),a(l)):e$(l),c=u.length,d=0,f;c>d;)f=u[d++],(!vR||Zhe(s,l,f))&&(n[f]=l[f]);return n}:ou,sve=be,mR=ave;sve({target:"Object",stat:!0,forced:Object.assign!==mR},{assign:mR});var lve=st,uve=lve.Object.assign,cve=uve,dve=cve,fve=dve,hve=Se(fve),vve=be,pve=He,mve=nn,i4=wb,gve=pB,yve=pve(function(){i4(1)});vve({target:"Object",stat:!0,forced:yve,sham:!gve},{getPrototypeOf:function(r){return i4(mve(r))}});var bve=st,$ve=bve.Object.getPrototypeOf,wve=$ve,Sve=wve,_ve=be,Eve=Kt,xve=Rl;_ve({target:"Object",stat:!0,sham:!Eve},{create:xve});var Cve=st,kve=Cve.Object,Pve=function(r,t){return kve.create(r,t)},Ove=Pve,o4=Ove,Tve=o4,Ive=Se(Tve),b_=st,Rve=ad;b_.JSON||(b_.JSON={stringify:JSON.stringify});var Mve=function(r,t,n){return Rve(b_.JSON.stringify,null,arguments)},Nve=Mve,Ave=Nve,Dve=Ave,Fve=Se(Dve),jve=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",Lve=TypeError,a4=function(e,r){if(e<r)throw new Lve("Not enough arguments");return e},s4=at,Bve=ad,zve=mt,Hve=jve,Wve=rs,Vve=dv,Uve=a4,Kve=s4.Function,Gve=/MSIE .\./.test(Wve)||Hve&&function(){var e=s4.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),l4=function(e,r){var t=r?2:1;return Gve?function(n,i){var o=Uve(arguments.length,1)>t,a=zve(n)?n:Kve(n),s=o?Vve(arguments,t):[],l=o?function(){Bve(a,this,s)}:a;return r?e(l,i):e(l)}:e},qve=be,u4=at,Yve=l4,gR=Yve(u4.setInterval,!0);qve({global:!0,bind:!0,forced:u4.setInterval!==gR},{setInterval:gR});var Xve=be,c4=at,Qve=l4,yR=Qve(c4.setTimeout,!0);Xve({global:!0,bind:!0,forced:c4.setTimeout!==yR},{setTimeout:yR});var Jve=st,Zve=Jve.setTimeout,epe=Zve,tpe=Se(epe),d4={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})(d4);var rpe=d4.exports,npe=Se(rpe);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
128
|
+
* http://naver.github.io/egjs
|
129
|
+
*
|
130
|
+
* Forked By Naver egjs
|
131
|
+
* Copyright (c) hammerjs
|
132
|
+
* Licensed under the MIT license */function _i(){return _i=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},_i.apply(this,arguments)}function Kn(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function Bp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var $_;typeof Object.assign!="function"?$_=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}:$_=Object.assign;var fl=$_,bR=["","webkit","Moz","MS","ms","o"],ipe=typeof document>"u"?{style:{}}:document.createElement("div"),ope="function",Mu=Math.round,hl=Math.abs,JC=Date.now;function Pb(e,r){for(var t,n,i=r[0].toUpperCase()+r.slice(1),o=0;o<bR.length;){if(t=bR[o],n=t?t+i:r,n in e)return n;o++}}var $o;typeof window>"u"?$o={}:$o=window;var f4=Pb(ipe.style,"touchAction"),h4=f4!==void 0;function ape(){if(!h4)return!1;var e={},r=$o.CSS&&$o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return e[t]=r?$o.CSS.supports("touch-action",t):!0}),e}var v4="compute",p4="auto",w_="manipulation",Gs="none",vh="pan-x",ph="pan-y",zp=ape(),spe=/mobile|tablet|ip(ad|hone|od)|android/i,m4="ontouchstart"in $o,lpe=Pb($o,"PointerEvent")!==void 0,upe=m4&&spe.test(navigator.userAgent),vv="touch",cpe="pen",ZC="mouse",dpe="kinect",fpe=25,Or=1,Nl=2,kt=4,Zr=8,Vg=1,pv=2,mv=4,gv=8,Ac=16,Xi=pv|mv,qs=gv|Ac,g4=Xi|qs,y4=["x","y"],Ug=["clientX","clientY"];function wo(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 Ob(e,r){return typeof e===ope?e.apply(r&&r[0]||void 0,r):e}function Is(e,r){return e.indexOf(r)>-1}function hpe(e){if(Is(e,Gs))return Gs;var r=Is(e,vh),t=Is(e,ph);return r&&t?Gs:r||t?r?vh:ph:Is(e,w_)?w_:p4}var b4=function(){function e(t,n){this.manager=t,this.set(n)}var r=e.prototype;return r.set=function(n){n===v4&&(n=this.compute()),h4&&this.manager.element.style&&zp[n]&&(this.manager.element.style[f4]=n),this.actions=n.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var n=[];return wo(this.manager.recognizers,function(i){Ob(i.options.enable,[i])&&(n=n.concat(i.getTouchAction()))}),hpe(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=Is(a,Gs)&&!zp[Gs],l=Is(a,ph)&&!zp[ph],u=Is(a,vh)&&!zp[vh];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&Xi||u&&o&qs))return this.preventSrc(i)},r.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},e}();function ek(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}function $4(e){var r=e.length;if(r===1)return{x:Mu(e[0].clientX),y:Mu(e[0].clientY)};for(var t=0,n=0,i=0;i<r;)t+=e[i].clientX,n+=e[i].clientY,i++;return{x:Mu(t/r),y:Mu(n/r)}}function $R(e){for(var r=[],t=0;t<e.pointers.length;)r[t]={clientX:Mu(e.pointers[t].clientX),clientY:Mu(e.pointers[t].clientY)},t++;return{timeStamp:JC(),pointers:r,center:$4(r),deltaX:e.deltaX,deltaY:e.deltaY}}function Kg(e,r,t){t||(t=y4);var n=r[t[0]]-e[t[0]],i=r[t[1]]-e[t[1]];return Math.sqrt(n*n+i*i)}function S_(e,r,t){t||(t=y4);var n=r[t[0]]-e[t[0]],i=r[t[1]]-e[t[1]];return Math.atan2(i,n)*180/Math.PI}function w4(e,r){return e===r?Vg:hl(e)>=hl(r)?e<0?pv:mv:r<0?gv:Ac}function vpe(e,r){var t=r.center,n=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};(r.eventType===Or||o.eventType===kt)&&(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 S4(e,r,t){return{x:r/e||0,y:t/e||0}}function ppe(e,r){return Kg(r[0],r[1],Ug)/Kg(e[0],e[1],Ug)}function mpe(e,r){return S_(r[1],r[0],Ug)+S_(e[1],e[0],Ug)}function gpe(e,r){var t=e.lastInterval||r,n=r.timeStamp-t.timeStamp,i,o,a,s;if(r.eventType!==Zr&&(n>fpe||t.velocity===void 0)){var l=r.deltaX-t.deltaX,u=r.deltaY-t.deltaY,c=S4(n,l,u);o=c.x,a=c.y,i=hl(c.x)>hl(c.y)?c.x:c.y,s=w4(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 ype(e,r){var t=e.session,n=r.pointers,i=n.length;t.firstInput||(t.firstInput=$R(r)),i>1&&!t.firstMultiple?t.firstMultiple=$R(r):i===1&&(t.firstMultiple=!1);var o=t.firstInput,a=t.firstMultiple,s=a?a.center:o.center,l=r.center=$4(n);r.timeStamp=JC(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=S_(s,l),r.distance=Kg(s,l),vpe(t,r),r.offsetDirection=w4(r.deltaX,r.deltaY);var u=S4(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=u.x,r.overallVelocityY=u.y,r.overallVelocity=hl(u.x)>hl(u.y)?u.x:u.y,r.scale=a?ppe(a.pointers,n):1,r.rotation=a?mpe(a.pointers,n):0,r.maxPointers=t.prevInput?r.pointers.length>t.prevInput.maxPointers?r.pointers.length:t.prevInput.maxPointers:r.pointers.length,gpe(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,ek(f,c)&&(c=f),r.target=c}function bpe(e,r,t){var n=t.pointers.length,i=t.changedPointers.length,o=r&Or&&n-i===0,a=r&(kt|Zr)&&n-i===0;t.isFirst=!!o,t.isFinal=!!a,o&&(e.session={}),t.eventType=r,ype(e,t),e.emit("hammer.input",t),e.recognize(t),e.session.prevInput=t}function mh(e){return e.trim().split(/\s+/g)}function Rf(e,r,t){wo(mh(r),function(n){e.addEventListener(n,t,!1)})}function Mf(e,r,t){wo(mh(r),function(n){e.removeEventListener(n,t,!1)})}function wR(e){var r=e.ownerDocument||e;return r.defaultView||r.parentWindow||window}var gd=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){Ob(t.options.enable,[t])&&i.handler(o)},this.init()}var r=e.prototype;return r.handler=function(){},r.init=function(){this.evEl&&Rf(this.element,this.evEl,this.domHandler),this.evTarget&&Rf(this.target,this.evTarget,this.domHandler),this.evWin&&Rf(wR(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&Mf(this.element,this.evEl,this.domHandler),this.evTarget&&Mf(this.target,this.evTarget,this.domHandler),this.evWin&&Mf(wR(this.element),this.evWin,this.domHandler)},e}();function vl(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 $pe={pointerdown:Or,pointermove:Nl,pointerup:kt,pointercancel:Zr,pointerout:Zr},wpe={2:vv,3:cpe,4:ZC,5:dpe},_4="pointerdown",E4="pointermove pointerup pointercancel";$o.MSPointerEvent&&!$o.PointerEvent&&(_4="MSPointerDown",E4="MSPointerMove MSPointerUp MSPointerCancel");var x4=function(e){Kn(r,e);function r(){var n,i=r.prototype;return i.evEl=_4,i.evWin=E4,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=$pe[s],u=wpe[i.pointerType]||i.pointerType,c=u===vv,d=vl(o,i.pointerId,"pointerId");l&Or&&(i.button===0||c)?d<0&&(o.push(i),d=o.length-1):l&(kt|Zr)&&(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}(gd);function gh(e){return Array.prototype.slice.call(e,0)}function tk(e,r,t){for(var n=[],i=[],o=0;o<e.length;){var a=r?e[o][r]:e[o];vl(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 Spe={touchstart:Or,touchmove:Nl,touchend:kt,touchcancel:Zr},_pe="touchstart touchmove touchend touchcancel",rk=function(e){Kn(r,e);function r(){var n;return r.prototype.evTarget=_pe,n=e.apply(this,arguments)||this,n.targetIds={},n}var t=r.prototype;return t.handler=function(i){var o=Spe[i.type],a=Epe.call(this,i,o);a&&this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:vv,srcEvent:i})},r}(gd);function Epe(e,r){var t=gh(e.touches),n=this.targetIds;if(r&(Or|Nl)&&t.length===1)return n[t[0].identifier]=!0,[t,t];var i,o,a=gh(e.changedTouches),s=[],l=this.target;if(o=t.filter(function(u){return ek(u.target,l)}),r===Or)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&(kt|Zr)&&delete n[a[i].identifier],i++;if(s.length)return[tk(o.concat(s),"identifier",!0),s]}var xpe={mousedown:Or,mousemove:Nl,mouseup:kt},Cpe="mousedown",kpe="mousemove mouseup",nk=function(e){Kn(r,e);function r(){var n,i=r.prototype;return i.evEl=Cpe,i.evWin=kpe,n=e.apply(this,arguments)||this,n.pressed=!1,n}var t=r.prototype;return t.handler=function(i){var o=xpe[i.type];o&Or&&i.button===0&&(this.pressed=!0),o&Nl&&i.which!==1&&(o=kt),this.pressed&&(o&kt&&(this.pressed=!1),this.callback(this.manager,o,{pointers:[i],changedPointers:[i],pointerType:ZC,srcEvent:i}))},r}(gd),Ppe=2500,SR=25;function _R(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,Ppe)}}function Ope(e,r){e&Or?(this.primaryTouch=r.changedPointers[0].identifier,_R.call(this,r)):e&(kt|Zr)&&_R.call(this,r)}function Tpe(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<=SR&&a<=SR)return!0}return!1}var C4=function(){var e=function(r){Kn(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===vv,d=u.pointerType===ZC;if(!(d&&u.sourceCapabilities&&u.sourceCapabilities.firesTouchEvents)){if(c)Ope.call(Bp(Bp(a)),l,u);else if(d&&Tpe.call(Bp(Bp(a)),u))return;a.callback(s,l,u)}},a.touch=new rk(a.manager,a.handler),a.mouse=new nk(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}(gd);return e}();function Ipe(e){var r,t=e.options.inputClass;return t?r=t:lpe?r=x4:upe?r=rk:m4?r=C4:r=nk,new r(e,bpe)}function Nu(e,r,t){return Array.isArray(e)?(wo(e,t[r],t),!0):!1}var Fm=1,Fn=2,Dc=4,Aa=8,So=Aa,yh=16,Hi=32,Rpe=1;function Mpe(){return Rpe++}function Hp(e,r){var t=r.manager;return t?t.get(e):e}function ER(e){return e&yh?"cancel":e&Aa?"end":e&Dc?"move":e&Fn?"start":""}var yv=function(){function e(t){t===void 0&&(t={}),this.options=_i({enable:!0},t),this.id=Mpe(),this.manager=null,this.state=Fm,this.simultaneous={},this.requireFail=[]}var r=e.prototype;return r.set=function(n){return fl(this.options,n),this.manager&&this.manager.touchAction.update(),this},r.recognizeWith=function(n){if(Nu(n,"recognizeWith",this))return this;var i=this.simultaneous;return n=Hp(n,this),i[n.id]||(i[n.id]=n,n.recognizeWith(this)),this},r.dropRecognizeWith=function(n){return Nu(n,"dropRecognizeWith",this)?this:(n=Hp(n,this),delete this.simultaneous[n.id],this)},r.requireFailure=function(n){if(Nu(n,"requireFailure",this))return this;var i=this.requireFail;return n=Hp(n,this),vl(i,n)===-1&&(i.push(n),n.requireFailure(this)),this},r.dropRequireFailure=function(n){if(Nu(n,"dropRequireFailure",this))return this;n=Hp(n,this);var i=vl(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<Aa&&a(i.options.event+ER(o)),a(i.options.event),n.additionalEvent&&a(n.additionalEvent),o>=Aa&&a(i.options.event+ER(o))},r.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=Hi},r.canEmit=function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(Hi|Fm)))return!1;n++}return!0},r.recognize=function(n){var i=fl({},n);if(!Ob(this.options.enable,[this,i])){this.reset(),this.state=Hi;return}this.state&(So|yh|Hi)&&(this.state=Fm),this.state=this.process(i),this.state&(Fn|Dc|Aa|yh)&&this.tryEmit(i)},r.process=function(n){},r.getTouchAction=function(){},r.reset=function(){},e}(),__=function(e){Kn(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,_i({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[w_]},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&Or&&this.count===0)return this.failTimeout();if(l&&u&&s){if(i.eventType!==kt)return this.failTimeout();var c=this.pTime?i.timeStamp-this.pTime<a.interval:!0,d=!this.pCenter||Kg(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=So,o.tryEmit()},a.interval),Fn):So}return Hi},t.failTimeout=function(){var i=this;return this._timer=setTimeout(function(){i.state=Hi},this.options.interval),Hi},t.reset=function(){clearTimeout(this._timer)},t.emit=function(){this.state===So&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},r}(yv),Fc=function(e){Kn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,_i({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&(Fn|Dc),l=this.attrTest(i);return s&&(a&Zr||!l)?o|yh:s||l?a&kt?o|Aa:o&Fn?o|Dc:Fn:Hi},r}(yv);function k4(e){return e===Ac?"down":e===gv?"up":e===pv?"left":e===mv?"right":""}var ik=function(e){Kn(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,_i({event:"pan",threshold:10,pointers:1,direction:g4},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&Xi&&o.push(ph),i&qs&&o.push(vh),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&Xi?(l=u===0?Vg:u<0?pv:mv,a=u!==this.pX,s=Math.abs(i.deltaX)):(l=c===0?Vg:c<0?gv:Ac,a=c!==this.pY,s=Math.abs(i.deltaY))),i.direction=l,a&&s>o.threshold&&l&o.direction},t.attrTest=function(i){return Fc.prototype.attrTest.call(this,i)&&(this.state&Fn||!(this.state&Fn)&&this.directionTest(i))},t.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var o=k4(i.direction);o&&(i.additionalEvent=this.options.event+o),e.prototype.emit.call(this,i)},r}(Fc),P4=function(e){Kn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,_i({event:"swipe",threshold:10,velocity:.3,direction:Xi|qs,pointers:1},n))||this}var t=r.prototype;return t.getTouchAction=function(){return ik.prototype.getTouchAction.call(this)},t.attrTest=function(i){var o=this.options.direction,a;return o&(Xi|qs)?a=i.overallVelocity:o&Xi?a=i.overallVelocityX:o&qs&&(a=i.overallVelocityY),e.prototype.attrTest.call(this,i)&&o&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&hl(a)>this.options.velocity&&i.eventType&kt},t.emit=function(i){var o=k4(i.offsetDirection);o&&this.manager.emit(this.options.event+o,i),this.manager.emit(this.options.event,i)},r}(Fc),O4=function(e){Kn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,_i({event:"pinch",threshold:0,pointers:2},n))||this}var t=r.prototype;return t.getTouchAction=function(){return[Gs]},t.attrTest=function(i){return e.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&Fn)},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}(Fc),T4=function(e){Kn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,_i({event:"rotate",threshold:0,pointers:2},n))||this}var t=r.prototype;return t.getTouchAction=function(){return[Gs]},t.attrTest=function(i){return e.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&Fn)},r}(Fc),I4=function(e){Kn(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,_i({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[p4]},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&(kt|Zr)&&!u)this.reset();else if(i.eventType&Or)this.reset(),this._timer=setTimeout(function(){o.state=So,o.tryEmit()},a.time);else if(i.eventType&kt)return So;return Hi},t.reset=function(){clearTimeout(this._timer)},t.emit=function(i){this.state===So&&(i&&i.eventType&kt?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=JC(),this.manager.emit(this.options.event,this._input)))},r}(yv),R4={domEvents:!1,touchAction:v4,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},xR=[[T4,{enable:!1}],[O4,{enable:!1},["rotate"]],[P4,{direction:Xi}],[ik,{direction:Xi},["swipe"]],[__],[__,{event:"doubletap",taps:2},["tap"]],[I4]],Npe=1,CR=2;function kR(e,r){var t=e.element;if(t.style){var n;wo(e.options.cssProps,function(i,o){n=Pb(t.style,o),r?(e.oldCssProps[n]=t.style[n],t.style[n]=i):t.style[n]=e.oldCssProps[n]||""}),r||(e.oldCssProps={})}}function Ape(e,r){var t=document.createEvent("Event");t.initEvent(e,!0,!0),t.gesture=r,r.target.dispatchEvent(t)}var PR=function(){function e(t,n){var i=this;this.options=fl({},R4,n||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=Ipe(this),this.touchAction=new b4(this,this.options.touchAction),kR(this,!0),wo(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 fl(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?CR:Npe},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&So)&&(i.curRecognizer=null,s=null);for(var l=0;l<a.length;)o=a[l],i.stopped!==CR&&(!s||o===s||o.canRecognizeWith(s))?o.recognize(n):o.reset(),!s&&o.state&(Fn|Dc|Aa)&&(i.curRecognizer=o,s=o),l++}},r.get=function(n){if(n instanceof yv)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(Nu(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(Nu(n,"remove",this))return this;var i=this.get(n);if(n){var o=this.recognizers,a=vl(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 wo(mh(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 wo(mh(n),function(a){i?o[a]&&o[a].splice(vl(o[a],i),1):delete o[a]}),this},r.emit=function(n,i){this.options.domEvents&&Ape(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&&kR(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),Dpe={touchstart:Or,touchmove:Nl,touchend:kt,touchcancel:Zr},Fpe="touchstart",jpe="touchstart touchmove touchend touchcancel",Lpe=function(e){Kn(r,e);function r(){var n,i=r.prototype;return i.evTarget=Fpe,i.evWin=jpe,n=e.apply(this,arguments)||this,n.started=!1,n}var t=r.prototype;return t.handler=function(i){var o=Dpe[i.type];if(o===Or&&(this.started=!0),!!this.started){var a=Bpe.call(this,i,o);o&(kt|Zr)&&a[0].length-a[1].length===0&&(this.started=!1),this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:vv,srcEvent:i})}},r}(gd);function Bpe(e,r){var t=gh(e.touches),n=gh(e.changedTouches);return r&(kt|Zr)&&(t=tk(t.concat(n),"identifier",!0)),[t,n]}function M4(e,r,t){var n="DEPRECATED METHOD: "+r+`
|
133
|
+
`+t+` AT
|
134
|
+
`;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 N4=M4(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`."),zpe=M4(function(e,r){return N4(e,r,!0)},"merge","Use `assign`.");function Hpe(e,r,t){var n=r.prototype,i;i=e.prototype=Object.create(n),i.constructor=e,i._super=n,t&&fl(i,t)}function OR(e,r){return function(){return e.apply(r,arguments)}}var Wpe=function(){var e=function(t,n){return n===void 0&&(n={}),new PR(t,_i({recognizers:xR.concat()},n))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=g4,e.DIRECTION_DOWN=Ac,e.DIRECTION_LEFT=pv,e.DIRECTION_RIGHT=mv,e.DIRECTION_UP=gv,e.DIRECTION_HORIZONTAL=Xi,e.DIRECTION_VERTICAL=qs,e.DIRECTION_NONE=Vg,e.DIRECTION_DOWN=Ac,e.INPUT_START=Or,e.INPUT_MOVE=Nl,e.INPUT_END=kt,e.INPUT_CANCEL=Zr,e.STATE_POSSIBLE=Fm,e.STATE_BEGAN=Fn,e.STATE_CHANGED=Dc,e.STATE_ENDED=Aa,e.STATE_RECOGNIZED=So,e.STATE_CANCELLED=yh,e.STATE_FAILED=Hi,e.Manager=PR,e.Input=gd,e.TouchAction=b4,e.TouchInput=rk,e.MouseInput=nk,e.PointerEventInput=x4,e.TouchMouseInput=C4,e.SingleTouchInput=Lpe,e.Recognizer=yv,e.AttrRecognizer=Fc,e.Tap=__,e.Pan=ik,e.Swipe=P4,e.Pinch=O4,e.Rotate=T4,e.Press=I4,e.on=Rf,e.off=Mf,e.each=wo,e.merge=zpe,e.extend=N4,e.bindFn=OR,e.assign=fl,e.inherit=Hpe,e.bindFn=OR,e.prefixed=Pb,e.toArray=gh,e.inArray=vl,e.uniqueArray=tk,e.splitStr=mh,e.boolOrFn=Ob,e.hasParent=ek,e.addEventListeners=Rf,e.removeEventListeners=Mf,e.defaults=fl({},R4,{preset:xR}),e}(),Vpe=Wpe;function A4(e,r){var t=typeof xb<"u"&&YC(e)||e["@@iterator"];if(!t){if(un(e)||(t=Upe(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.
|
135
|
+
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 Upe(e,r){var t;if(e){if(typeof e=="string")return TR(e,r);var n=kb(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return qC(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TR(e,r)}}function TR(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 D4=xb("DELETE");function Kpe(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 F4.apply(void 0,Cb(r=[{},e]).call(r,n))}function F4(){var e=Gg.apply(void 0,arguments);return L4(e),e}function Gg(){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 Gg.apply(void 0,Cb(n=[F4(r[0],r[1])]).call(n,Vr(kb(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=A4(Kfe(o)),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===D4?delete i[l]:i[l]!==null&&o[l]!==null&&typeof i[l]=="object"&&typeof o[l]=="object"&&!un(i[l])&&!un(o[l])?i[l]=Gg(i[l],o[l]):i[l]=j4(o[l]))}}catch(u){a.e(u)}finally{a.f()}return i}function j4(e){return un(e)?li(e).call(e,function(r){return j4(r)}):typeof e=="object"&&e!==null?e instanceof Date?new Date(e.getTime()):Gg({},e):e}function L4(e){for(var r=0,t=QC(e);r<t.length;r++){var n=t[r];e[n]===D4?delete e[n]:typeof e[n]=="object"&&e[n]!==null&&L4(e[n])}}function Gpe(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get(){return{set:e}}}}var qpe=typeof window<"u"?window.Hammer||Vpe:function(){return Gpe()};function mo(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=qpe(this._dom.overlay);n.on("tap",AB(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push(function(){n.destroy()});var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];dl(i).call(i,function(o){n.on(o,function(a){a.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(o){Ype(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()}}npe(mo.prototype);mo.current=null;mo.prototype.destroy=function(){var e,r;this.deactivate();var t=A4(Ohe(e=n4(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()}};mo.prototype.activate=function(){mo.current&&mo.current.deactivate(),mo.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)};mo.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")};mo.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function Ype(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}var Xpe=cb,Qpe=cd,Jpe=TypeError,B4=function(e){if(Xpe(e))return e;throw new Jpe(Qpe(e)+" is not a constructor")},Zpe=be,eme=Nr,t$=ad,tme=MB,IR=B4,rme=bn,RR=ar,nme=Rl,z4=He,ok=eme("Reflect","construct"),ime=Object.prototype,ome=[].push,H4=z4(function(){function e(){}return!(ok(function(){},[],e)instanceof e)}),W4=!z4(function(){ok(function(){})}),MR=H4||W4;Zpe({target:"Reflect",stat:!0,forced:MR,sham:MR},{construct:function(r,t){IR(r),rme(t);var n=arguments.length<3?r:IR(arguments[2]);if(W4&&!H4)return ok(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 t$(ome,i,t),new(t$(tme,r,i))}var o=n.prototype,a=nme(RR(o)?o:ime),s=t$(r,a,t);return RR(s)?s:a}});var ame=st,sme=ame.Reflect.construct,lme=sme,ume=lme,cme=ume,jm=Se(cme),dme=st,fme=dme.Object.getOwnPropertySymbols,hme=fme,vme=hme,pme=vme,NR=Se(pme),V4={exports:{}},mme=be,gme=He,yme=no,U4=Ol.f,K4=Kt,bme=!K4||gme(function(){U4(1)});mme({target:"Object",stat:!0,forced:bme,sham:!K4},{getOwnPropertyDescriptor:function(r,t){return U4(yme(r),t)}});var $me=st,G4=$me.Object,wme=V4.exports=function(r,t){return G4.getOwnPropertyDescriptor(r,t)};G4.getOwnPropertyDescriptor.sham&&(wme.sham=!0);var Sme=V4.exports,_me=Sme,Eme=_me,xme=Eme,q4=Se(xme),Cme=be,kme=Kt,Pme=XC,Ome=no,Tme=Ol,Ime=fd;Cme({target:"Object",stat:!0,sham:!kme},{getOwnPropertyDescriptors:function(r){for(var t=Ome(r),n=Tme.f,i=Pme(t),o={},a=0,s,l;i.length>a;)l=n(t,s=i[a++]),l!==void 0&&Ime(o,s,l);return o}});var Rme=st,Mme=Rme.Object.getOwnPropertyDescriptors,Nme=Mme,Ame=Nme,Dme=Ame,AR=Se(Dme),Y4={exports:{}},Fme=be,jme=Kt,DR=fb.f;Fme({target:"Object",stat:!0,forced:Object.defineProperties!==DR,sham:!jme},{defineProperties:DR});var Lme=st,X4=Lme.Object,Bme=Y4.exports=function(r,t){return X4.defineProperties(r,t)};X4.defineProperties.sham&&(Bme.sham=!0);var zme=Y4.exports,Hme=zme,Wme=Hme,Vme=Wme,Ume=Se(Vme),Kme=k5,Gme=Se(Kme);function Q4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var qme=o4,Yme=qme,Xme=Yme,Qme=Xme,J4=Qme,Jme=Se(J4),Zme=be,ege=yB;Zme({target:"Object",stat:!0},{setPrototypeOf:ege});var tge=st,rge=tge.Object.setPrototypeOf,nge=rge,ige=nge,oge=ige,age=oge,sge=age,lge=sge,Z4=lge,E_=Se(Z4),uge=NB,cge=uge,dge=cge,fge=dge,hge=fge,ez=Se(hge);function x_(e,r){var t;return x_=E_?ez(t=E_).call(t):function(i,o){return i.__proto__=o,i},x_(e,r)}function vge(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Jme(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),sb(e,"prototype",{writable:!1}),r&&x_(e,r)}function pge(e,r){if(r&&(Nc(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q4(e)}var mge=Sve,gge=mge,yge=gge,bge=yge,tz=bge,FR=Se(tz);function qg(e){var r;return qg=E_?ez(r=FR).call(r):function(n){return n.__proto__||FR(n)},qg(e)}var rz={exports:{}},nz={exports:{}};(function(e){var r=UC,t=OB;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})(nz);var $ge=nz.exports,wge=e4,Sge=wge,_ge=Sge,Ege=_ge,xge=Ege,jR=Mt,Cge=XC,kge=Ol,Pge=on,Oge=function(e,r,t){for(var n=Cge(r),i=Pge.f,o=kge.f,a=0;a<n.length;a++){var s=n[a];!jR(e,s)&&!(t&&jR(t,s))&&i(e,s,o(r,s))}},Tge=ar,Ige=Go,Rge=function(e,r){Tge(r)&&"cause"in r&&Ige(e,"cause",r.cause)},Mge=it,iz=Error,Nge=Mge("".replace),Age=function(e){return String(new iz(e).stack)}("zxcasd"),oz=/\n\s*at [^:]*:[^\n]*/,Dge=oz.test(Age),Fge=function(e,r){if(Dge&&typeof e=="string"&&!iz.prepareStackTrace)for(;r--;)e=Nge(e,oz,"");return e},jge=He,Lge=Tl,Bge=!jge(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",Lge(1,7)),e.stack!==7):!0}),zge=Go,Hge=Fge,Wge=Bge,LR=Error.captureStackTrace,Vge=function(e,r,t,n){Wge&&(LR?LR(e,r):zge(e,"stack",Hge(t,n)))},Uge=ns,Kge=Gt,Gge=bn,qge=cd,Yge=jB,Xge=$n,BR=Rt,Qge=GC,Jge=Eb,zR=FB,Zge=TypeError,Lm=function(e,r){this.stopped=e,this.result=r},HR=Lm.prototype,Al=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=Uge(r,n),u,c,d,f,h,v,p,$=function(g){return u&&zR(u,"normal",g),new Lm(!0,g)},m=function(g){return i?(Gge(g),s?l(g[0],g[1],$):l(g[0],g[1])):s?l(g,$):l(g)};if(o)u=e.iterator;else if(a)u=e;else{if(c=Jge(e),!c)throw new Zge(qge(e)+" is not iterable");if(Yge(c)){for(d=0,f=Xge(e);f>d;d++)if(h=m(e[d]),h&&BR(HR,h))return h;return new Lm(!1)}u=Qge(e,c)}for(v=o?e.next:u.next;!(p=Kge(v,u)).done;){try{h=m(p.value)}catch(g){zR(u,"throw",g)}if(typeof h=="object"&&h&&BR(HR,h))return h}return new Lm(!1)},eye=Il,tye=function(e,r){return e===void 0?arguments.length<2?"":r:eye(e)},rye=be,nye=Rt,iye=wb,Yg=yB,oye=Oge,az=Rl,r$=Go,n$=Tl,aye=Rge,sye=Vge,lye=Al,uye=tye,cye=dt,dye=cye("toStringTag"),Xg=Error,fye=[].push,jc=function(r,t){var n=nye(i$,this),i;Yg?i=Yg(new Xg,n?iye(this):i$):(i=n?this:az(i$),r$(i,dye,"Error")),t!==void 0&&r$(i,"message",uye(t)),sye(i,jc,i.stack,1),arguments.length>2&&aye(i,arguments[2]);var o=[];return lye(r,fye,{that:o}),r$(i,"errors",o),i};Yg?Yg(jc,Xg):oye(jc,Xg,{name:!0});var i$=jc.prototype=az(Xg.prototype,{constructor:n$(1,jc),message:n$(1,""),name:n$(1,"AggregateError")});rye({global:!0},{AggregateError:jc});var hye=Nr,vye=FC,pye=dt,mye=Kt,WR=pye("species"),sz=function(e){var r=hye(e);mye&&r&&!r[WR]&&vye(r,WR,{configurable:!0,get:function(){return this}})},gye=Rt,yye=TypeError,ak=function(e,r){if(gye(r,e))return e;throw new yye("Incorrect invocation")},VR=bn,bye=B4,$ye=sd,wye=dt,Sye=wye("species"),lz=function(e,r){var t=VR(e).constructor,n;return t===void 0||$ye(n=VR(t)[Sye])?r:bye(n)},_ye=rs,uz=/(?:ipad|iphone|ipod).*applewebkit/i.test(_ye),dn=at,Eye=ad,xye=ns,UR=mt,Cye=Mt,cz=He,KR=F5,kye=dv,GR=RC,Pye=a4,Oye=uz,Tye=hv,C_=dn.setImmediate,qR=dn.clearImmediate,Iye=dn.process,o$=dn.Dispatch,Rye=dn.Function,YR=dn.MessageChannel,Mye=dn.String,a$=0,Nf={},XR="onreadystatechange",bh,ps,s$,l$;cz(function(){bh=dn.location});var sk=function(e){if(Cye(Nf,e)){var r=Nf[e];delete Nf[e],r()}},u$=function(e){return function(){sk(e)}},QR=function(e){sk(e.data)},JR=function(e){dn.postMessage(Mye(e),bh.protocol+"//"+bh.host)};(!C_||!qR)&&(C_=function(r){Pye(arguments.length,1);var t=UR(r)?r:Rye(r),n=kye(arguments,1);return Nf[++a$]=function(){Eye(t,void 0,n)},ps(a$),a$},qR=function(r){delete Nf[r]},Tye?ps=function(e){Iye.nextTick(u$(e))}:o$&&o$.now?ps=function(e){o$.now(u$(e))}:YR&&!Oye?(s$=new YR,l$=s$.port2,s$.port1.onmessage=QR,ps=xye(l$.postMessage,l$)):dn.addEventListener&&UR(dn.postMessage)&&!dn.importScripts&&bh&&bh.protocol!=="file:"&&!cz(JR)?(ps=JR,dn.addEventListener("message",QR,!1)):XR in GR("script")?ps=function(e){KR.appendChild(GR("script"))[XR]=function(){KR.removeChild(this),sk(e)}}:ps=function(e){setTimeout(u$(e),0)});var dz={set:C_},fz=function(){this.head=null,this.tail=null};fz.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 hz=fz,Nye=rs,Aye=/ipad|iphone|ipod/i.test(Nye)&&typeof Pebble<"u",Dye=rs,Fye=/web0s(?!.*chrome)/i.test(Dye),pl=at,ZR=ns,jye=Ol.f,c$=dz.set,Lye=hz,Bye=uz,zye=Aye,Hye=Fye,d$=hv,e2=pl.MutationObserver||pl.WebKitMutationObserver,t2=pl.document,r2=pl.process,Wp=pl.Promise,n2=jye(pl,"queueMicrotask"),k_=n2&&n2.value,au,f$,h$,Vp,i2;if(!k_){var Up=new Lye,Kp=function(){var e,r;for(d$&&(e=r2.domain)&&e.exit();r=Up.get();)try{r()}catch(t){throw Up.head&&au(),t}e&&e.enter()};!Bye&&!d$&&!Hye&&e2&&t2?(f$=!0,h$=t2.createTextNode(""),new e2(Kp).observe(h$,{characterData:!0}),au=function(){h$.data=f$=!f$}):!zye&&Wp&&Wp.resolve?(Vp=Wp.resolve(void 0),Vp.constructor=Wp,i2=ZR(Vp.then,Vp),au=function(){i2(Kp)}):d$?au=function(){r2.nextTick(Kp)}:(c$=ZR(c$,pl),au=function(){c$(Kp)}),k_=function(e){Up.head||au(),Up.add(e)}}var Wye=k_,Vye=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch{}},yd=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}},Uye=at,bd=Uye.Promise,vz=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",Kye=vz,Gye=hv,qye=!Kye&&!Gye&&typeof window=="object"&&typeof document=="object",Yye=at,Af=bd,Xye=mt,Qye=E5,Jye=T5,Zye=dt,ebe=qye,tbe=vz,v$=ld,o2=Af&&Af.prototype,rbe=Zye("species"),a2=!1,pz=Xye(Yye.PromiseRejectionEvent),nbe=Qye("Promise",function(){var e=Jye(Af),r=e!==String(Af);if(!r&&v$===66||!(o2.catch&&o2.finally))return!0;if(!v$||v$<51||!/native code/.test(e)){var t=new Af(function(o){o(1)}),n=function(o){o(function(){},function(){})},i=t.constructor={};if(i[rbe]=n,a2=t.then(function(){})instanceof n,!a2)return!0}return!r&&(ebe||tbe)&&!pz}),bv={CONSTRUCTOR:nbe,REJECTION_EVENT:pz},io={},s2=rn,ibe=TypeError,obe=function(e){var r,t;this.promise=new e(function(n,i){if(r!==void 0||t!==void 0)throw new ibe("Bad Promise constructor");r=n,t=i}),this.resolve=s2(r),this.reject=s2(t)};io.f=function(e){return new obe(e)};var abe=be,Qg=hv,Ka=at,$v=Gt,sbe=hd,lbe=Ml,ube=sz,cbe=rn,P_=mt,dbe=ar,fbe=ak,hbe=lz,mz=dz.set,lk=Wye,vbe=Vye,pbe=yd,mbe=hz,gz=vd,O_=bd,yz=bv,bz=io,Tb="Promise",$z=yz.CONSTRUCTOR,gbe=yz.REJECTION_EVENT,p$=gz.getterFor(Tb),ybe=gz.set,bbe=O_&&O_.prototype,Au=O_,m$=bbe,wz=Ka.TypeError,T_=Ka.document,uk=Ka.process,I_=bz.f,$be=I_,wbe=!!(T_&&T_.createEvent&&Ka.dispatchEvent),Sz="unhandledrejection",Sbe="rejectionhandled",l2=0,_z=1,_be=2,ck=1,Ez=2,Gp,u2,Ebe,xz=function(e){var r;return dbe(e)&&P_(r=e.then)?r:!1},Cz=function(e,r){var t=r.value,n=r.state===_z,i=n?e.ok:e.fail,o=e.resolve,a=e.reject,s=e.domain,l,u,c;try{i?(n||(r.rejection===Ez&&Cbe(r),r.rejection=ck),i===!0?l=t:(s&&s.enter(),l=i(t),s&&(s.exit(),c=!0)),l===e.promise?a(new wz("Promise-chain cycle")):(u=xz(l))?$v(u,l,o,a):o(l)):a(t)}catch(d){s&&!c&&s.exit(),a(d)}},kz=function(e,r){e.notified||(e.notified=!0,lk(function(){for(var t=e.reactions,n;n=t.get();)Cz(n,e);e.notified=!1,r&&!e.rejection&&xbe(e)}))},Pz=function(e,r,t){var n,i;wbe?(n=T_.createEvent("Event"),n.promise=r,n.reason=t,n.initEvent(e,!1,!0),Ka.dispatchEvent(n)):n={promise:r,reason:t},!gbe&&(i=Ka["on"+e])?i(n):e===Sz&&vbe("Unhandled promise rejection",t)},xbe=function(e){$v(mz,Ka,function(){var r=e.facade,t=e.value,n=c2(e),i;if(n&&(i=pbe(function(){Qg?uk.emit("unhandledRejection",t,r):Pz(Sz,r,t)}),e.rejection=Qg||c2(e)?Ez:ck,i.error))throw i.value})},c2=function(e){return e.rejection!==ck&&!e.parent},Cbe=function(e){$v(mz,Ka,function(){var r=e.facade;Qg?uk.emit("rejectionHandled",r):Pz(Sbe,r,e.value)})},Du=function(e,r,t){return function(n){e(r,n,t)}},ec=function(e,r,t){e.done||(e.done=!0,t&&(e=t),e.value=r,e.state=_be,kz(e,!0))},R_=function(e,r,t){if(!e.done){e.done=!0,t&&(e=t);try{if(e.facade===r)throw new wz("Promise can't be resolved itself");var n=xz(r);n?lk(function(){var i={done:!1};try{$v(n,r,Du(R_,i,e),Du(ec,i,e))}catch(o){ec(i,o,e)}}):(e.value=r,e.state=_z,kz(e,!1))}catch(i){ec({done:!1},i,e)}}};$z&&(Au=function(r){fbe(this,m$),cbe(r),$v(Gp,this);var t=p$(this);try{r(Du(R_,t),Du(ec,t))}catch(n){ec(t,n)}},m$=Au.prototype,Gp=function(r){ybe(this,{type:Tb,done:!1,notified:!1,parent:!1,reactions:new mbe,rejection:!1,state:l2,value:void 0})},Gp.prototype=sbe(m$,"then",function(r,t){var n=p$(this),i=I_(hbe(this,Au));return n.parent=!0,i.ok=P_(r)?r:!0,i.fail=P_(t)&&t,i.domain=Qg?uk.domain:void 0,n.state===l2?n.reactions.add(i):lk(function(){Cz(i,n)}),i.promise}),u2=function(){var e=new Gp,r=p$(e);this.promise=e,this.resolve=Du(R_,r),this.reject=Du(ec,r)},bz.f=I_=function(e){return e===Au||e===Ebe?new u2(e):$be(e)});abe({global:!0,wrap:!0,forced:$z},{Promise:Au});lbe(Au,Tb,!1,!0);ube(Tb);var kbe=bd,Pbe=zB,Obe=bv.CONSTRUCTOR,Ib=Obe||!Pbe(function(e){kbe.all(e).then(void 0,function(){})}),Tbe=be,Ibe=Gt,Rbe=rn,Mbe=io,Nbe=yd,Abe=Al,Dbe=Ib;Tbe({target:"Promise",stat:!0,forced:Dbe},{all:function(r){var t=this,n=Mbe.f(t),i=n.resolve,o=n.reject,a=Nbe(function(){var s=Rbe(t.resolve),l=[],u=0,c=1;Abe(r,function(d){var f=u++,h=!1;c++,Ibe(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 Fbe=be,jbe=bv.CONSTRUCTOR,d2=bd;d2&&d2.prototype;Fbe({target:"Promise",proto:!0,forced:jbe,real:!0},{catch:function(e){return this.then(void 0,e)}});var Lbe=be,Bbe=Gt,zbe=rn,Hbe=io,Wbe=yd,Vbe=Al,Ube=Ib;Lbe({target:"Promise",stat:!0,forced:Ube},{race:function(r){var t=this,n=Hbe.f(t),i=n.reject,o=Wbe(function(){var a=zbe(t.resolve);Vbe(r,function(s){Bbe(a,t,s).then(n.resolve,i)})});return o.error&&i(o.value),n.promise}});var Kbe=be,Gbe=Gt,qbe=io,Ybe=bv.CONSTRUCTOR;Kbe({target:"Promise",stat:!0,forced:Ybe},{reject:function(r){var t=qbe.f(this);return Gbe(t.reject,void 0,r),t.promise}});var Xbe=bn,Qbe=ar,Jbe=io,Oz=function(e,r){if(Xbe(e),Qbe(r)&&r.constructor===e)return r;var t=Jbe.f(e),n=t.resolve;return n(r),t.promise},Zbe=be,e1e=Nr,t1e=lte,r1e=bd,n1e=bv.CONSTRUCTOR,i1e=Oz,o1e=e1e("Promise"),a1e=!n1e;Zbe({target:"Promise",stat:!0,forced:t1e},{resolve:function(r){return i1e(a1e&&this===o1e?r1e:this,r)}});var s1e=be,l1e=Gt,u1e=rn,c1e=io,d1e=yd,f1e=Al,h1e=Ib;s1e({target:"Promise",stat:!0,forced:h1e},{allSettled:function(r){var t=this,n=c1e.f(t),i=n.resolve,o=n.reject,a=d1e(function(){var s=u1e(t.resolve),l=[],u=0,c=1;f1e(r,function(d){var f=u++,h=!1;c++,l1e(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 v1e=be,p1e=Gt,m1e=rn,g1e=Nr,y1e=io,b1e=yd,$1e=Al,w1e=Ib,f2="No one promise resolved";v1e({target:"Promise",stat:!0,forced:w1e},{any:function(r){var t=this,n=g1e("AggregateError"),i=y1e.f(t),o=i.resolve,a=i.reject,s=b1e(function(){var l=m1e(t.resolve),u=[],c=0,d=1,f=!1;$1e(r,function(h){var v=c++,p=!1;d++,p1e(l,t,h).then(function($){p||f||(f=!0,o($))},function($){p||f||(p=!0,u[v]=$,--d||a(new n(u,f2)))})}),--d||a(new n(u,f2))});return s.error&&a(s.value),i.promise}});var S1e=be,M_=bd,_1e=He,E1e=Nr,x1e=mt,C1e=lz,h2=Oz,k1e=M_&&M_.prototype,P1e=!!M_&&_1e(function(){k1e.finally.call({then:function(){}},function(){})});S1e({target:"Promise",proto:!0,real:!0,forced:P1e},{finally:function(e){var r=C1e(this,E1e("Promise")),t=x1e(e);return this.then(t?function(n){return h2(r,e()).then(function(){return n})}:e,t?function(n){return h2(r,e()).then(function(){throw n})}:e)}});var O1e=st,T1e=O1e.Promise,I1e=T1e,R1e=I1e,M1e=be,N1e=io;M1e({target:"Promise",stat:!0},{withResolvers:function(){var r=N1e.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}});var A1e=R1e,D1e=A1e,F1e=be,j1e=io,L1e=yd;F1e({target:"Promise",stat:!0,forced:!0},{try:function(e){var r=j1e.f(this),t=L1e(e);return(t.error?r.reject:r.resolve)(t.value),r.promise}});var B1e=D1e,z1e=B1e,H1e=z1e,W1e=t4,V1e=W1e,U1e=V1e,K1e=U1e,G1e=K1e;(function(e){var r=$ge.default,t=P5,n=UC,i=J4,o=tz,a=xge,s=qB,l=Z4,u=H1e,c=G1e,d=XB;function f(){e.exports=f=function(){return v},e.exports.__esModule=!0,e.exports.default=e.exports;var h,v={},p=Object.prototype,$=p.hasOwnProperty,m=t||function(V,H,U){V[H]=U.value},g=typeof n=="function"?n:{},y=g.iterator||"@@iterator",w=g.asyncIterator||"@@asyncIterator",S=g.toStringTag||"@@toStringTag";function E(V,H,U){return t(V,H,{value:U,enumerable:!0,configurable:!0,writable:!0}),V[H]}try{E({},"")}catch{E=function(U,te,ce){return U[te]=ce}}function x(V,H,U,te){var ce=H&&H.prototype instanceof F?H:F,ie=i(ce.prototype),ke=new ge(te||[]);return m(ie,"_invoke",{value:ee(V,U,ke)}),ie}function C(V,H,U){try{return{type:"normal",arg:V.call(H,U)}}catch(te){return{type:"throw",arg:te}}}v.wrap=x;var k="suspendedStart",P="suspendedYield",T="executing",R="completed",N={};function F(){}function W(){}function M(){}var j={};E(j,y,function(){return this});var O=o,D=O&&O(O(oe([])));D&&D!==p&&$.call(D,y)&&(j=D);var z=M.prototype=F.prototype=i(j);function G(V){var H;a(H=["next","throw","return"]).call(H,function(U){E(V,U,function(te){return this._invoke(U,te)})})}function K(V,H){function U(ce,ie,ke,Ee){var xe=C(V[ce],V,ie);if(xe.type!=="throw"){var tt=xe.arg,Te=tt.value;return Te&&r(Te)=="object"&&$.call(Te,"__await")?H.resolve(Te.__await).then(function(jt){U("next",jt,ke,Ee)},function(jt){U("throw",jt,ke,Ee)}):H.resolve(Te).then(function(jt){tt.value=jt,ke(tt)},function(jt){return U("throw",jt,ke,Ee)})}Ee(xe.arg)}var te;m(this,"_invoke",{value:function(ie,ke){function Ee(){return new H(function(xe,tt){U(ie,ke,xe,tt)})}return te=te?te.then(Ee,Ee):Ee()}})}function ee(V,H,U){var te=k;return function(ce,ie){if(te===T)throw new Error("Generator is already running");if(te===R){if(ce==="throw")throw ie;return{value:h,done:!0}}for(U.method=ce,U.arg=ie;;){var ke=U.delegate;if(ke){var Ee=le(ke,U);if(Ee){if(Ee===N)continue;return Ee}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(te===k)throw te=R,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);te=T;var xe=C(V,H,U);if(xe.type==="normal"){if(te=U.done?R:P,xe.arg===N)continue;return{value:xe.arg,done:U.done}}xe.type==="throw"&&(te=R,U.method="throw",U.arg=xe.arg)}}}function le(V,H){var U=H.method,te=V.iterator[U];if(te===h)return H.delegate=null,U==="throw"&&V.iterator.return&&(H.method="return",H.arg=h,le(V,H),H.method==="throw")||U!=="return"&&(H.method="throw",H.arg=new TypeError("The iterator does not provide a '"+U+"' method")),N;var ce=C(te,V.iterator,H.arg);if(ce.type==="throw")return H.method="throw",H.arg=ce.arg,H.delegate=null,N;var ie=ce.arg;return ie?ie.done?(H[V.resultName]=ie.value,H.next=V.nextLoc,H.method!=="return"&&(H.method="next",H.arg=h),H.delegate=null,N):ie:(H.method="throw",H.arg=new TypeError("iterator result is not an object"),H.delegate=null,N)}function se(V){var H,U={tryLoc:V[0]};1 in V&&(U.catchLoc=V[1]),2 in V&&(U.finallyLoc=V[2],U.afterLoc=V[3]),s(H=this.tryEntries).call(H,U)}function de(V){var H=V.completion||{};H.type="normal",delete H.arg,V.completion=H}function ge(V){this.tryEntries=[{tryLoc:"root"}],a(V).call(V,se,this),this.reset(!0)}function oe(V){if(V||V===""){var H=V[y];if(H)return H.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var U=-1,te=function ce(){for(;++U<V.length;)if($.call(V,U))return ce.value=V[U],ce.done=!1,ce;return ce.value=h,ce.done=!0,ce};return te.next=te}}throw new TypeError(r(V)+" is not iterable")}return W.prototype=M,m(z,"constructor",{value:M,configurable:!0}),m(M,"constructor",{value:W,configurable:!0}),W.displayName=E(M,S,"GeneratorFunction"),v.isGeneratorFunction=function(V){var H=typeof V=="function"&&V.constructor;return!!H&&(H===W||(H.displayName||H.name)==="GeneratorFunction")},v.mark=function(V){return l?l(V,M):(V.__proto__=M,E(V,S,"GeneratorFunction")),V.prototype=i(z),V},v.awrap=function(V){return{__await:V}},G(K.prototype),E(K.prototype,w,function(){return this}),v.AsyncIterator=K,v.async=function(V,H,U,te,ce){ce===void 0&&(ce=u);var ie=new K(x(V,H,U,te),ce);return v.isGeneratorFunction(H)?ie:ie.next().then(function(ke){return ke.done?ke.value:ie.next()})},G(z),E(z,S,"Generator"),E(z,y,function(){return this}),E(z,"toString",function(){return"[object Generator]"}),v.keys=function(V){var H=Object(V),U=[];for(var te in H)s(U).call(U,te);return c(U).call(U),function ce(){for(;U.length;){var ie=U.pop();if(ie in H)return ce.value=ie,ce.done=!1,ce}return ce.done=!0,ce}},v.values=oe,ge.prototype={constructor:ge,reset:function(H){var U;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(U=this.tryEntries).call(U,de),!H)for(var te in this)te.charAt(0)==="t"&&$.call(this,te)&&!isNaN(+d(te).call(te,1))&&(this[te]=h)},stop:function(){this.done=!0;var H=this.tryEntries[0].completion;if(H.type==="throw")throw H.arg;return this.rval},dispatchException:function(H){if(this.done)throw H;var U=this;function te(tt,Te){return ke.type="throw",ke.arg=H,U.next=tt,Te&&(U.method="next",U.arg=h),!!Te}for(var ce=this.tryEntries.length-1;ce>=0;--ce){var ie=this.tryEntries[ce],ke=ie.completion;if(ie.tryLoc==="root")return te("end");if(ie.tryLoc<=this.prev){var Ee=$.call(ie,"catchLoc"),xe=$.call(ie,"finallyLoc");if(Ee&&xe){if(this.prev<ie.catchLoc)return te(ie.catchLoc,!0);if(this.prev<ie.finallyLoc)return te(ie.finallyLoc)}else if(Ee){if(this.prev<ie.catchLoc)return te(ie.catchLoc,!0)}else{if(!xe)throw new Error("try statement without catch or finally");if(this.prev<ie.finallyLoc)return te(ie.finallyLoc)}}}},abrupt:function(H,U){for(var te=this.tryEntries.length-1;te>=0;--te){var ce=this.tryEntries[te];if(ce.tryLoc<=this.prev&&$.call(ce,"finallyLoc")&&this.prev<ce.finallyLoc){var ie=ce;break}}ie&&(H==="break"||H==="continue")&&ie.tryLoc<=U&&U<=ie.finallyLoc&&(ie=null);var ke=ie?ie.completion:{};return ke.type=H,ke.arg=U,ie?(this.method="next",this.next=ie.finallyLoc,N):this.complete(ke)},complete:function(H,U){if(H.type==="throw")throw H.arg;return H.type==="break"||H.type==="continue"?this.next=H.arg:H.type==="return"?(this.rval=this.arg=H.arg,this.method="return",this.next="end"):H.type==="normal"&&U&&(this.next=U),N},finish:function(H){for(var U=this.tryEntries.length-1;U>=0;--U){var te=this.tryEntries[U];if(te.finallyLoc===H)return this.complete(te.completion,te.afterLoc),de(te),N}},catch:function(H){for(var U=this.tryEntries.length-1;U>=0;--U){var te=this.tryEntries[U];if(te.tryLoc===H){var ce=te.completion;if(ce.type==="throw"){var ie=ce.arg;de(te)}return ie}}throw new Error("illegal catch attempt")},delegateYield:function(H,U,te){return this.delegate={iterator:oe(H),resultName:U,nextLoc:te},this.method==="next"&&(this.arg=h),N}},v}e.exports=f,e.exports.__esModule=!0,e.exports.default=e.exports})(rz);var q1e=rz.exports,Bm=q1e(),Y1e=Bm;try{regeneratorRuntime=Bm}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Bm:Function("r","regeneratorRuntime = r")(Bm)}var Fr=Se(Y1e),Tz={exports:{}},X1e=He,Q1e=X1e(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),J1e=He,Z1e=ar,e0e=ts,v2=Q1e,zm=Object.isExtensible,t0e=J1e(function(){zm(1)}),r0e=t0e||v2?function(r){return!Z1e(r)||v2&&e0e(r)==="ArrayBuffer"?!1:zm?zm(r):!0}:zm,n0e=He,i0e=!n0e(function(){return Object.isExtensible(Object.preventExtensions({}))}),o0e=be,a0e=it,s0e=ov,l0e=ar,dk=Mt,u0e=on.f,p2=av,c0e=DC,fk=r0e,d0e=ob,f0e=i0e,Iz=!1,jo=d0e("meta"),h0e=0,hk=function(e){u0e(e,jo,{value:{objectID:"O"+h0e++,weakData:{}}})},v0e=function(e,r){if(!l0e(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!dk(e,jo)){if(!fk(e))return"F";if(!r)return"E";hk(e)}return e[jo].objectID},p0e=function(e,r){if(!dk(e,jo)){if(!fk(e))return!0;if(!r)return!1;hk(e)}return e[jo].weakData},m0e=function(e){return f0e&&Iz&&fk(e)&&!dk(e,jo)&&hk(e),e},g0e=function(){y0e.enable=function(){},Iz=!0;var e=p2.f,r=a0e([].splice),t={};t[jo]=1,e(t).length&&(p2.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===jo){r(i,o,1);break}return i},o0e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c0e.f}))},y0e=Tz.exports={enable:g0e,fastKey:v0e,getWeakData:p0e,onFreeze:m0e};s0e[jo]=!0;var Rz=Tz.exports,b0e=be,$0e=at,w0e=Rz,S0e=He,_0e=Go,E0e=Al,x0e=ak,C0e=mt,k0e=ar,P0e=sd,O0e=Ml,T0e=on.f,I0e=pd.forEach,R0e=Kt,Mz=vd,M0e=Mz.set,N0e=Mz.getterFor,Nz=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=$0e[e],s=a&&a.prototype,l={},u;if(!R0e||!C0e(a)||!(i||s.forEach&&!S0e(function(){new a().entries().next()})))u=t.getConstructor(r,e,n,o),w0e.enable();else{u=r(function(f,h){M0e(x0e(f,c),{type:e,collection:new a}),P0e(h)||E0e(h,f[o],{that:f,AS_ENTRIES:n})});var c=u.prototype,d=N0e(e);I0e(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(f){var h=f==="add"||f==="set";f in s&&!(i&&f==="clear")&&_0e(c,f,function(v,p){var $=d(this).collection;if(!h&&i&&!k0e(v))return f==="get"?void 0:!1;var m=$[f](v===0?0:v,p);return h?this:m})}),i||T0e(c,"size",{configurable:!0,get:function(){return d(this).collection.size}})}return O0e(u,e,!1,!0),l[e]=u,b0e({global:!0,forced:!0},l),i||t.setStrong(u,e,n),u},A0e=hd,D0e=function(e,r,t){for(var n in r)t&&t.unsafe&&e[n]?e[n]=r[n]:A0e(e,n,r[n],t);return e},F0e=Rl,j0e=FC,m2=D0e,L0e=ns,B0e=ak,z0e=sd,H0e=Al,W0e=HC,qp=WC,V0e=sz,Zd=Kt,g2=Rz.fastKey,Az=vd,y2=Az.set,g$=Az.getterFor,Dz={getConstructor:function(e,r,t,n){var i=e(function(u,c){B0e(u,o),y2(u,{type:r,index:F0e(null),first:void 0,last:void 0,size:0}),Zd||(u.size=0),z0e(c)||H0e(c,u[n],{that:u,AS_ENTRIES:t})}),o=i.prototype,a=g$(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=g2(c,!0),key:c,value:d,previous:v=f.last,next:void 0,removed:!1},f.first||(f.first=h),v&&(v.next=h),Zd?f.size++:u.size++,p!=="F"&&(f.index[p]=h)),u},l=function(u,c){var d=a(u),f=g2(c),h;if(f!=="F")return d.index[f];for(h=d.first;h;h=h.next)if(h.key===c)return h};return m2(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,Zd?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),Zd?d.size--:c.size--}return!!f},forEach:function(c){for(var d=a(this),f=L0e(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)}}),m2(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)}}),Zd&&j0e(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=g$(r),o=g$(n);W0e(e,r,function(a,s){y2(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,qp(void 0,!0)):qp(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},t?"entries":"values",!t,!0),V0e(r)}},U0e=Nz,K0e=Dz;U0e("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},K0e);var G0e=st,q0e=G0e.Map,Y0e=q0e,X0e=Y0e,Q0e=X0e,Fz=Se(Q0e),J0e=be,Z0e=pd.some,e$e=_b,t$e=e$e("some");J0e({target:"Array",proto:!0,forced:!t$e},{some:function(r){return Z0e(this,r,arguments.length>1?arguments[1]:void 0)}});var r$e=mr,n$e=r$e("Array","some"),i$e=Rt,o$e=n$e,y$=Array.prototype,a$e=function(e){var r=e.some;return e===y$||i$e(y$,e)&&r===y$.some?o$e:r},s$e=a$e,l$e=s$e,u$e=l$e,c$e=Se(u$e),d$e=mr,f$e=d$e("Array","keys"),h$e=f$e,v$e=h$e,p$e=qo,m$e=Mt,g$e=Rt,y$e=v$e,b$=Array.prototype,b$e={DOMTokenList:!0,NodeList:!0},$$e=function(e){var r=e.keys;return e===b$||g$e(b$,e)&&r===b$.keys||m$e(b$e,p$e(e))?y$e:r},w$e=$$e,su=Se(w$e),b2=B5,S$e=Math.floor,N_=function(e,r){var t=e.length,n=S$e(t/2);return t<8?_$e(e,r):E$e(e,N_(b2(e,0,n),r),N_(b2(e,n),r),r)},_$e=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},E$e=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},x$e=N_,C$e=rs,$2=C$e.match(/firefox\/(\d+)/i),k$e=!!$2&&+$2[1],P$e=rs,O$e=/MSIE|Trident/.test(P$e),T$e=rs,w2=T$e.match(/AppleWebKit\/(\d+)\./),I$e=!!w2&&+w2[1],R$e=be,jz=it,M$e=rn,N$e=nn,S2=$n,A$e=r4,_2=Il,vk=He,D$e=x$e,F$e=_b,E2=k$e,j$e=O$e,x2=ld,C2=I$e,wa=[],k2=jz(wa.sort),L$e=jz(wa.push),B$e=vk(function(){wa.sort(void 0)}),z$e=vk(function(){wa.sort(null)}),H$e=F$e("sort"),Lz=!vk(function(){if(x2)return x2<70;if(!(E2&&E2>3)){if(j$e)return!0;if(C2)return C2<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++)wa.push({k:t+i,v:n})}for(wa.sort(function(o,a){return a.v-o.v}),i=0;i<wa.length;i++)t=wa[i].k.charAt(0),e.charAt(e.length-1)!==t&&(e+=t);return e!=="DGBEFHACIJK"}}),W$e=B$e||!z$e||!H$e||!Lz,V$e=function(e){return function(r,t){return t===void 0?-1:r===void 0?1:e!==void 0?+e(r,t)||0:_2(r)>_2(t)?1:-1}};R$e({target:"Array",proto:!0,forced:W$e},{sort:function(r){r!==void 0&&M$e(r);var t=N$e(this);if(Lz)return r===void 0?k2(t):k2(t,r);var n=[],i=S2(t),o,a;for(a=0;a<i;a++)a in t&&L$e(n,t[a]);for(D$e(n,V$e(r)),o=S2(n),a=0;a<o;)t[a]=n[a++];for(;a<i;)A$e(t,a++);return t}});var U$e=mr,K$e=U$e("Array","sort"),G$e=Rt,q$e=K$e,$$=Array.prototype,Y$e=function(e){var r=e.sort;return e===$$||G$e($$,e)&&r===$$.sort?q$e:r},X$e=Y$e,Q$e=X$e,J$e=Q$e,A_=Se(J$e),Z$e=mr,ewe=Z$e("Array","values"),twe=ewe,rwe=twe,nwe=qo,iwe=Mt,owe=Rt,awe=rwe,w$=Array.prototype,swe={DOMTokenList:!0,NodeList:!0},lwe=function(e){var r=e.values;return e===w$||owe(w$,e)&&r===w$.values||iwe(swe,nwe(e))?awe:r},uwe=lwe,P2=Se(uwe),cwe=PB,Fu=Se(cwe),dwe=mr,fwe=dwe("Array","entries"),hwe=fwe,vwe=hwe,pwe=qo,mwe=Mt,gwe=Rt,ywe=vwe,S$=Array.prototype,bwe={DOMTokenList:!0,NodeList:!0},$we=function(e){var r=e.entries;return e===S$||gwe(S$,e)&&r===S$.entries||mwe(bwe,pwe(e))?ywe:r},wwe=$we,Swe=Se(wwe);let Yp;const _we=new Uint8Array(16);function Ewe(){if(!Yp&&(Yp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Yp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yp(_we)}const Zt=[];for(let e=0;e<256;++e)Zt.push((e+256).toString(16).slice(1));function xwe(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 Cwe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var O2={randomUUID:Cwe};function kwe(e,r,t){if(O2.randomUUID&&!e)return O2.randomUUID();e=e||{};const n=e.random||(e.rng||Ewe)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,xwe(n)}function T2(e){return typeof e=="string"||typeof e=="number"}var Pwe=function(){function e(r){rb(this,e),Na(this,"_queue",[]),Na(this,"_timeout",null),Na(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(r)}return Sb(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=tpe(function(){t.flush()},this.delay))}},{key:"flush",value:function(){var t,n;dl(t=n4(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}(),Owe=function(){function e(){rb(this,e),Na(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Na(this,"subscribe",e.prototype.on),Na(this,"unsubscribe",e.prototype.off)}return Sb(e,[{key:"_trigger",value:function(t,n,i){var o,a;if(t==="*")throw new Error("Cannot trigger event *");dl(o=Cb(a=[]).call(a,Vr(this._subscribers[t]),Vr(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]=Ru(i=this._subscribers[t]).call(i,function(o){return o!==n})}}]),e}(),Twe=Nz,Iwe=Dz;Twe("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Iwe);var Rwe=st,Mwe=Rwe.Set,Nwe=Mwe,Awe=Nwe,Dwe=Awe,_$=Se(Dwe),Fwe=GC,jwe=Fwe,Lwe=jwe,Bwe=Lwe,zwe=Bwe,Hwe=zwe,Wwe=Hwe,Vwe=Wwe,Uwe=Vwe,Kwe=Uwe,E$=Se(Kwe);function Ti(e,r){var t=typeof xb<"u"&&YC(e)||e["@@iterator"];if(!t){if(un(e)||(t=Gwe(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.
|
136
|
+
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 Gwe(e,r){var t;if(e){if(typeof e=="string")return I2(e,r);var n=kb(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return qC(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I2(e,r)}}function I2(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 R2=function(e){function r(t){rb(this,r),this._pairs=t}return Sb(r,[{key:e,value:Fr.mark(function t(){var n,i,o,a,s;return Fr.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n=Ti(this._pairs),u.prev=1,n.s();case 3:if((i=n.n()).done){u.next=9;break}return o=Dr(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:Fr.mark(function t(){var n,i,o,a,s;return Fr.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n=Ti(this._pairs),u.prev=1,n.s();case 3:if((i=n.n()).done){u.next=9;break}return o=Dr(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:Fr.mark(function t(){var n,i,o,a;return Fr.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:n=Ti(this._pairs),l.prev=1,n.s();case 3:if((i=n.n()).done){l.next=9;break}return o=Dr(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:Fr.mark(function t(){var n,i,o,a;return Fr.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:n=Ti(this._pairs),l.prev=1,n.s();case 3:if((i=n.n()).done){l.next=9;break}return o=Dr(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 li(n=Vr(this._pairs)).call(n,function(i){return i[0]})}},{key:"toItemArray",value:function(){var n;return li(n=Vr(this._pairs)).call(n,function(i){return i[1]})}},{key:"toEntryArray",value:function(){return Vr(this._pairs)}},{key:"toObjectMap",value:function(){var n=Ive(null),i=Ti(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var a=Dr(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 Fz(this._pairs)}},{key:"toIdSet",value:function(){return new _$(this.toIdArray())}},{key:"toItemSet",value:function(){return new _$(this.toItemArray())}},{key:"cache",value:function(){return new r(Vr(this._pairs))}},{key:"distinct",value:function(n){var i=new _$,o=Ti(this._pairs),a;try{for(o.s();!(a=o.n()).done;){var s=Dr(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({[Fu](){return Fr.mark(function o(){var a,s,l,u,c;return Fr.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:a=Ti(i),f.prev=1,a.s();case 3:if((s=a.n()).done){f.next=10;break}if(l=Dr(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=Ti(this._pairs),o;try{for(i.s();!(o=i.n()).done;){var a=Dr(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({[Fu](){return Fr.mark(function o(){var a,s,l,u,c;return Fr.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:a=Ti(i),f.prev=1,a.s();case 3:if((s=a.n()).done){f.next=9;break}return l=Dr(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=E$(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=Dr(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=E$(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=Dr(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=Ti(this._pairs),a;try{for(o.s();!(a=o.n()).done;){var s=Dr(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({[Fu]:function(){var o;return E$(A_(o=Vr(i._pairs)).call(o,function(a,s){var l=Dr(a,2),u=l[0],c=l[1],d=Dr(s,2),f=d[0],h=d[1];return n(c,h,u,f)}))}})}}]),r}(Fu);function M2(e,r){var t=QC(e);if(NR){var n=NR(e);r&&(n=Ru(n).call(n,function(i){return q4(e,i).enumerable})),t.push.apply(t,n)}return t}function N2(e){for(var r=1;r<arguments.length;r++){var t,n,i=arguments[r]!=null?arguments[r]:{};r%2?dl(t=M2(Object(i),!0)).call(t,function(o){Na(e,o,i[o])}):AR?Ume(e,AR(i)):dl(n=M2(Object(i))).call(n,function(o){Gme(e,o,q4(i,o))})}return e}function x$(e,r){var t=typeof xb<"u"&&YC(e)||e["@@iterator"];if(!t){if(un(e)||(t=qwe(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.
|
137
|
+
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 qwe(e,r){var t;if(e){if(typeof e=="string")return A2(e,r);var n=kb(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return qC(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A2(e,r)}}function A2(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 Ywe(e){var r=Xwe();return function(){var n=qg(e),i;if(r){var o=qg(this).constructor;i=jm(n,arguments,o)}else i=n.apply(this,arguments);return pge(this,i)}}function Xwe(){if(typeof Reflect>"u"||!jm||jm.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(jm(Boolean,[],function(){})),!0}catch{return!1}}function Qwe(e,r){return e[r]==null&&(e[r]=kwe()),e}var Lc=function(e){vge(t,e);var r=Ywe(t);function t(n,i){var o;return rb(this,t),o=r.call(this),Na(Q4(o),"_queue",null),n&&!un(n)&&(i=n,n=[]),o._options=i||{},o._data=new Fz,o.length=0,o._idProp=o._options.fieldId||"id",n&&n.length&&o.add(n),o.setOptions(i),o}return Sb(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=Pwe.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(un(i)){var u=li(i).call(i,function(f){return f[a._idProp]});if(c$e(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(m){var g=m[d];if(g!=null&&a._data.has(g)){var y=m,w=hve({},a._data.get(g)),S=a._updateItem(y);l.push(S),c.push(y),u.push(w)}else{var E=a._addItem(m);s.push(E)}};if(un(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 Cb(s).call(s,l)}},{key:"updateOnly",value:function(i,o){var a,s=this;un(i)||(i=[i]);var l=li(a=li(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=Kpe(d,f);return s._data.set(h,v),{id:h,oldData:d,updatedData:v}});if(l.length){var u={items:li(l).call(l,function(c){return c.id}),oldData:li(l).call(l,function(c){return c.oldData}),data:li(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;T2(i)?(a=i,l=o):un(i)?(s=i,l=o):l=i;var u=l&&l.returnType==="Object"?"Object":"Array",c=l&&Ru(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,$=s.length;p<$;p++)f=this._data.get(s[p]),f!=null&&(!c||c(f))&&d.push(f);else{var m;h=Vr(su(m=this._data).call(m));for(var g=0,y=h.length;g<y;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 w=l.fields;if(a!=null&&f!=null)f=this._filterFields(f,w);else for(var S=0,E=d.length;S<E;S++)d[S]=this._filterFields(d[S],w)}if(u=="Object"){for(var x={},C=0,k=d.length;C<k;C++){var P=d[C],T=P[this._idProp];x[T]=P}return x}else if(a!=null){var R;return(R=f)!==null&&R!==void 0?R:null}else return d}},{key:"getIds",value:function(i){var o=this._data,a=i&&Ru(i),s=i&&i.order,l=Vr(su(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,$=c.length;p<$;p++)u.push(c[p][this._idProp])}else for(var m=0,g=l.length;m<g;m++){var y=l[m],w=this._data.get(y);w!=null&&a(w)&&u.push(w[this._idProp])}else if(s){for(var S=[],E=0,x=l.length;E<x;E++){var C=l[E];S.push(o.get(C))}this._sort(S,s);for(var k=0,P=S.length;k<P;k++)u.push(S[k][this._idProp])}else for(var T=0,R=l.length;T<R;T++){var N=l[T],F=o.get(N);F!=null&&u.push(F[this._idProp])}return u}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(i,o){var a=o&&Ru(o),s=this._data,l=Vr(su(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 $=l[v],m=this._data.get($);m!=null&&(!a||a(m))&&i(m,$)}}},{key:"map",value:function(i,o){for(var a=o&&Ru(o),s=[],l=this._data,u=Vr(su(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&&Oue(a=un(o)?o:QC(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;A_(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")A_(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=un(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(T2(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=Vr(su(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=x$(P2(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=x$(P2(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=Vr(su(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=Qwe(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: "+Fve(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,N2(N2({},a),i)),o}},{key:"stream",value:function(i){if(i){var o=this._data;return new R2({[Fu](){return Fr.mark(function s(){var l,u,c,d;return Fr.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:l=x$(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 R2({[Fu]:AB(a=Swe(this._data)).call(a,this._data)})}}}]),t}(Owe);function Jwe(e,r){return typeof r=="object"&&r!==null&&e===r.idProp&&typeof r.add=="function"&&typeof r.clear=="function"&&typeof r.distinct=="function"&&typeof dl(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof li(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 Bz(e,r){return typeof r=="object"&&r!==null&&e===r.idProp&&typeof dl(r)=="function"&&typeof r.get=="function"&&typeof r.getDataSet=="function"&&typeof r.getIds=="function"&&typeof r.length=="number"&&typeof li(r)=="function"&&typeof r.off=="function"&&typeof r.on=="function"&&typeof r.stream=="function"&&Jwe(e,r.getDataSet())}/**
|
138
|
+
* vis-network
|
139
|
+
* https://visjs.github.io/vis-network/
|
140
|
+
*
|
141
|
+
* A dynamic, browser-based visualization library.
|
142
|
+
*
|
143
|
+
* @version 9.1.9
|
144
|
+
* @date 2023-11-03T01:42:27.418Z
|
145
|
+
*
|
146
|
+
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
147
|
+
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
148
|
+
*
|
149
|
+
* @license
|
150
|
+
* vis.js is dual licensed under both
|
151
|
+
*
|
152
|
+
* 1. The Apache 2.0 License
|
153
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
154
|
+
*
|
155
|
+
* and
|
156
|
+
*
|
157
|
+
* 2. The MIT License
|
158
|
+
* http://opensource.org/licenses/MIT
|
159
|
+
*
|
160
|
+
* vis.js may be distributed under either license.
|
161
|
+
*/var C$=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xp=function(e){return e&&e.Math===Math&&e},yt=Xp(typeof globalThis=="object"&&globalThis)||Xp(typeof window=="object"&&window)||Xp(typeof self=="object"&&self)||Xp(typeof C$=="object"&&C$)||function(){return this}()||C$||Function("return this")(),Fe=function(e){try{return!!e()}catch{return!0}},Zwe=Fe,wv=!Zwe(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),eSe=wv,zz=Function.prototype,D2=zz.apply,F2=zz.call,Sv=typeof Reflect=="object"&&Reflect.apply||(eSe?F2.bind(D2):function(){return F2.apply(D2,arguments)}),Hz=wv,Wz=Function.prototype,D_=Wz.call,tSe=Hz&&Wz.bind.bind(D_,D_),Le=Hz?tSe:function(e){return function(){return D_.apply(e,arguments)}},Vz=Le,rSe=Vz({}.toString),nSe=Vz("".slice),Yo=function(e){return nSe(rSe(e),8,-1)},iSe=Yo,oSe=Le,pk=function(e){if(iSe(e)==="Function")return oSe(e)},F_=typeof document=="object"&&document.all,aSe=typeof F_>"u"&&F_!==void 0,Uz={all:F_,IS_HTMLDDA:aSe},Kz=Uz,sSe=Kz.all,qt=Kz.IS_HTMLDDA?function(e){return typeof e=="function"||e===sSe}:function(e){return typeof e=="function"},$d={},lSe=Fe,Yt=!lSe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),uSe=wv,Qp=Function.prototype.call,wn=uSe?Qp.bind(Qp):function(){return Qp.apply(Qp,arguments)},Rb={},Gz={}.propertyIsEnumerable,qz=Object.getOwnPropertyDescriptor,cSe=qz&&!Gz.call({1:2},1);Rb.f=cSe?function(r){var t=qz(this,r);return!!t&&t.enumerable}:Gz;var _v=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}},dSe=Le,fSe=Fe,hSe=Yo,k$=Object,vSe=dSe("".split),Mb=fSe(function(){return!k$("z").propertyIsEnumerable(0)})?function(e){return hSe(e)==="String"?vSe(e,""):k$(e)}:k$,wd=function(e){return e==null},pSe=wd,mSe=TypeError,Ev=function(e){if(pSe(e))throw new mSe("Can't call method on "+e);return e},gSe=Mb,ySe=Ev,oo=function(e){return gSe(ySe(e))},j2=qt,Yz=Uz,bSe=Yz.all,Xt=Yz.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:j2(e)||e===bSe}:function(e){return typeof e=="object"?e!==null:j2(e)},je={},P$=je,O$=yt,$Se=qt,L2=function(e){return $Se(e)?e:void 0},Gn=function(e,r){return arguments.length<2?L2(P$[e])||L2(O$[e]):P$[e]&&P$[e][r]||O$[e]&&O$[e][r]},wSe=Le,Et=wSe({}.isPrototypeOf),xv=typeof navigator<"u"&&String(navigator.userAgent)||"",Xz=yt,T$=xv,B2=Xz.process,z2=Xz.Deno,H2=B2&&B2.versions||z2&&z2.version,W2=H2&&H2.v8,ui,Jg;W2&&(ui=W2.split("."),Jg=ui[0]>0&&ui[0]<4?1:+(ui[0]+ui[1]));!Jg&&T$&&(ui=T$.match(/Edge\/(\d+)/),(!ui||ui[1]>=74)&&(ui=T$.match(/Chrome\/(\d+)/),ui&&(Jg=+ui[1])));var Cv=Jg,V2=Cv,SSe=Fe,_Se=yt,ESe=_Se.String,Sd=!!Object.getOwnPropertySymbols&&!SSe(function(){var e=Symbol("symbol detection");return!ESe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V2&&V2<41}),xSe=Sd,Qz=xSe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",CSe=Gn,kSe=qt,PSe=Et,OSe=Qz,TSe=Object,kv=OSe?function(e){return typeof e=="symbol"}:function(e){var r=CSe("Symbol");return kSe(r)&&PSe(r.prototype,TSe(e))},ISe=String,_d=function(e){try{return ISe(e)}catch{return"Object"}},RSe=qt,MSe=_d,NSe=TypeError,Dl=function(e){if(RSe(e))return e;throw new NSe(MSe(e)+" is not a function")},ASe=Dl,DSe=wd,mk=function(e,r){var t=e[r];return DSe(t)?void 0:ASe(t)},I$=wn,R$=qt,M$=Xt,FSe=TypeError,jSe=function(e,r){var t,n;if(r==="string"&&R$(t=e.toString)&&!M$(n=I$(t,e))||R$(t=e.valueOf)&&!M$(n=I$(t,e))||r!=="string"&&R$(t=e.toString)&&!M$(n=I$(t,e)))return n;throw new FSe("Can't convert object to primitive value")},Jz={exports:{}},U2=yt,LSe=Object.defineProperty,BSe=function(e,r){try{LSe(U2,e,{value:r,configurable:!0,writable:!0})}catch{U2[e]=r}return r},zSe=yt,HSe=BSe,K2="__core-js_shared__",WSe=zSe[K2]||HSe(K2,{}),gk=WSe,G2=gk;(Jz.exports=function(e,r){return G2[e]||(G2[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 Ed=Jz.exports,VSe=Ev,USe=Object,an=function(e){return USe(VSe(e))},KSe=Le,GSe=an,qSe=KSe({}.hasOwnProperty),Qt=Object.hasOwn||function(r,t){return qSe(GSe(r),t)},YSe=Le,XSe=0,QSe=Math.random(),JSe=YSe(1 .toString),Nb=function(e){return"Symbol("+(e===void 0?"":e)+")_"+JSe(++XSe+QSe,36)},ZSe=yt,e_e=Ed,q2=Qt,t_e=Nb,r_e=Sd,n_e=Qz,ju=ZSe.Symbol,N$=e_e("wks"),i_e=n_e?ju.for||ju:ju&&ju.withoutSetter||t_e,bt=function(e){return q2(N$,e)||(N$[e]=r_e&&q2(ju,e)?ju[e]:i_e("Symbol."+e)),N$[e]},o_e=wn,Y2=Xt,X2=kv,a_e=mk,s_e=jSe,l_e=bt,u_e=TypeError,c_e=l_e("toPrimitive"),d_e=function(e,r){if(!Y2(e)||X2(e))return e;var t=a_e(e,c_e),n;if(t){if(r===void 0&&(r="default"),n=o_e(t,e,r),!Y2(n)||X2(n))return n;throw new u_e("Can't convert object to primitive value")}return r===void 0&&(r="number"),s_e(e,r)},f_e=d_e,h_e=kv,Ab=function(e){var r=f_e(e,"string");return h_e(r)?r:r+""},v_e=yt,Q2=Xt,j_=v_e.document,p_e=Q2(j_)&&Q2(j_.createElement),Zz=function(e){return p_e?j_.createElement(e):{}},m_e=Yt,g_e=Fe,y_e=Zz,e8=!m_e&&!g_e(function(){return Object.defineProperty(y_e("div"),"a",{get:function(){return 7}}).a!==7}),b_e=Yt,$_e=wn,w_e=Rb,S_e=_v,__e=oo,E_e=Ab,x_e=Qt,C_e=e8,J2=Object.getOwnPropertyDescriptor;$d.f=b_e?J2:function(r,t){if(r=__e(r),t=E_e(t),C_e)try{return J2(r,t)}catch{}if(x_e(r,t))return S_e(!$_e(w_e.f,r,t),r[t])};var k_e=Fe,P_e=qt,O_e=/#|\.prototype\./,Pv=function(e,r){var t=I_e[T_e(e)];return t===M_e?!0:t===R_e?!1:P_e(r)?k_e(r):!!r},T_e=Pv.normalize=function(e){return String(e).replace(O_e,".").toLowerCase()},I_e=Pv.data={},R_e=Pv.NATIVE="N",M_e=Pv.POLYFILL="P",N_e=Pv,Z2=pk,A_e=Dl,D_e=wv,F_e=Z2(Z2.bind),Ov=function(e,r){return A_e(e),r===void 0?e:D_e?F_e(e,r):function(){return e.apply(r,arguments)}},Sn={},j_e=Yt,L_e=Fe,t8=j_e&&L_e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),B_e=Xt,z_e=String,H_e=TypeError,_n=function(e){if(B_e(e))return e;throw new H_e(z_e(e)+" is not an object")},W_e=Yt,V_e=e8,U_e=t8,Jp=_n,eM=Ab,K_e=TypeError,A$=Object.defineProperty,G_e=Object.getOwnPropertyDescriptor,D$="enumerable",F$="configurable",j$="writable";Sn.f=W_e?U_e?function(r,t,n){if(Jp(r),t=eM(t),Jp(n),typeof r=="function"&&t==="prototype"&&"value"in n&&j$ in n&&!n[j$]){var i=G_e(r,t);i&&i[j$]&&(r[t]=n.value,n={configurable:F$ in n?n[F$]:i[F$],enumerable:D$ in n?n[D$]:i[D$],writable:!1})}return A$(r,t,n)}:A$:function(r,t,n){if(Jp(r),t=eM(t),Jp(n),V_e)try{return A$(r,t,n)}catch{}if("get"in n||"set"in n)throw new K_e("Accessors not supported");return"value"in n&&(r[t]=n.value),r};var q_e=Yt,Y_e=Sn,X_e=_v,xd=q_e?function(e,r,t){return Y_e.f(e,r,X_e(1,t))}:function(e,r,t){return e[r]=t,e},Zp=yt,Q_e=Sv,J_e=pk,Z_e=qt,eEe=$d.f,tEe=N_e,lu=je,rEe=Ov,uu=xd,tM=Qt,nEe=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 Q_e(e,this,arguments)};return r.prototype=e.prototype,r},we=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Zp:i?Zp[t]:(Zp[t]||{}).prototype,s=n?lu:lu[t]||uu(lu,t,{})[t],l=s.prototype,u,c,d,f,h,v,p,$,m;for(f in r)u=tEe(n?f:t+(i?".":"#")+f,e.forced),c=!u&&a&&tM(a,f),v=s[f],c&&(e.dontCallGetSet?(m=eEe(a,f),p=m&&m.value):p=a[f]),h=c&&p?p:r[f],!(c&&typeof v==typeof h)&&(e.bind&&c?$=rEe(h,Zp):e.wrap&&c?$=nEe(h):o&&Z_e(h)?$=J_e(h):$=h,(e.sham||h&&h.sham||v&&v.sham)&&uu($,"sham",!0),uu(s,f,$),o&&(d=t+"Prototype",tM(lu,d)||uu(lu,d,{}),uu(lu[d],f,h),e.real&&l&&(u||!l[f])&&uu(l,f,h)))},iEe=Math.ceil,oEe=Math.floor,aEe=Math.trunc||function(r){var t=+r;return(t>0?oEe:iEe)(t)},sEe=aEe,Db=function(e){var r=+e;return r!==r||r===0?0:sEe(r)},lEe=Db,uEe=Math.max,cEe=Math.min,Tv=function(e,r){var t=lEe(e);return t<0?uEe(t+r,0):cEe(t,r)},dEe=Db,fEe=Math.min,hEe=function(e){return e>0?fEe(dEe(e),9007199254740991):0},vEe=hEe,qn=function(e){return vEe(e.length)},pEe=oo,mEe=Tv,gEe=qn,rM=function(e){return function(r,t,n){var i=pEe(r),o=gEe(i),a=mEe(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}},yk={includes:rM(!0),indexOf:rM(!1)},Iv={},yEe=Le,L$=Qt,bEe=oo,$Ee=yk.indexOf,wEe=Iv,nM=yEe([].push),r8=function(e,r){var t=bEe(e),n=0,i=[],o;for(o in t)!L$(wEe,o)&&L$(t,o)&&nM(i,o);for(;r.length>n;)L$(t,o=r[n++])&&(~$Ee(i,o)||nM(i,o));return i},bk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],SEe=r8,_Ee=bk,Fb=Object.keys||function(r){return SEe(r,_Ee)},Rv={};Rv.f=Object.getOwnPropertySymbols;var iM=Yt,EEe=Le,xEe=wn,CEe=Fe,B$=Fb,kEe=Rv,PEe=Rb,OEe=an,TEe=Mb,cu=Object.assign,oM=Object.defineProperty,IEe=EEe([].concat),REe=!cu||CEe(function(){if(iM&&cu({b:1},cu(oM({},"a",{enumerable:!0,get:function(){oM(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}),cu({},e)[t]!==7||B$(cu({},r)).join("")!==n})?function(r,t){for(var n=OEe(r),i=arguments.length,o=1,a=kEe.f,s=PEe.f;i>o;)for(var l=TEe(arguments[o++]),u=a?IEe(B$(l),a(l)):B$(l),c=u.length,d=0,f;c>d;)f=u[d++],(!iM||xEe(s,l,f))&&(n[f]=l[f]);return n}:cu,MEe=we,aM=REe;MEe({target:"Object",stat:!0,forced:Object.assign!==aM},{assign:aM});var NEe=je,AEe=NEe.Object.assign,DEe=AEe,FEe=DEe,jEe=FEe,Pt=pe(jEe),LEe=Le,jb=LEe([].slice),n8=Le,BEe=Dl,zEe=Xt,HEe=Qt,sM=jb,WEe=wv,i8=Function,VEe=n8([].concat),UEe=n8([].join),z$={},KEe=function(e,r,t){if(!HEe(z$,r)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";z$[r]=i8("C,a","return new C("+UEe(n,",")+")")}return z$[r](e,t)},o8=WEe?i8.bind:function(r){var t=BEe(this),n=t.prototype,i=sM(arguments,1),o=function(){var s=VEe(i,sM(arguments));return this instanceof o?KEe(t,s.length,s):t.apply(r,s)};return zEe(n)&&(o.prototype=n),o},GEe=we,lM=o8;GEe({target:"Function",proto:!0,forced:Function.bind!==lM},{bind:lM});var qEe=je,Jt=function(e){return qEe[e+"Prototype"]},YEe=Jt,XEe=YEe("Function").bind,QEe=Et,JEe=XEe,H$=Function.prototype,ZEe=function(e){var r=e.bind;return e===H$||QEe(H$,e)&&r===H$.bind?JEe:r},exe=ZEe,a8=exe,txe=a8,X=pe(txe);function $k(e,r,t,n){e.beginPath(),e.arc(r,t,n,0,2*Math.PI,!1),e.closePath()}function rxe(e,r,t,n){e.beginPath(),e.rect(r-n,t-n,n*2,n*2),e.closePath()}function nxe(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 ixe(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 oxe(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 axe(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 s8(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 L_(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 l8(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),$=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,$,h,$),e.bezierCurveTo(h-u,$,r,p+c,r,p),e.lineTo(r,v)}function u8(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 sxe(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 uM={circle:$k,dashedLine:u8,database:l8,diamond:axe,ellipse:L_,ellipse_vis:L_,hexagon:sxe,roundRect:s8,square:rxe,star:oxe,triangle:nxe,triangleDown:ixe};function lxe(e){return Object.prototype.hasOwnProperty.call(uM,e)?uM[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 c8={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}})(c8);var uxe=c8.exports,d8=pe(uxe),cxe=bt,dxe=cxe("toStringTag"),f8={};f8[dxe]="z";var wk=String(f8)==="[object z]",fxe=wk,hxe=qt,Hm=Yo,vxe=bt,pxe=vxe("toStringTag"),mxe=Object,gxe=Hm(function(){return arguments}())==="Arguments",yxe=function(e,r){try{return e[r]}catch{}},Fl=fxe?Hm:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=yxe(r=mxe(e),pxe))=="string"?t:gxe?Hm(r):(n=Hm(r))==="Object"&&hxe(r.callee)?"Arguments":n},bxe=Fl,$xe=String,ao=function(e){if(bxe(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return $xe(e)},Sk=Le,wxe=Db,Sxe=ao,_xe=Ev,Exe=Sk("".charAt),cM=Sk("".charCodeAt),xxe=Sk("".slice),Cxe=function(e){return function(r,t){var n=Sxe(_xe(r)),i=wxe(t),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=cM(n,i),a<55296||a>56319||i+1===o||(s=cM(n,i+1))<56320||s>57343?e?Exe(n,i):a:e?xxe(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},kxe={charAt:Cxe(!0)},Pxe=yt,Oxe=qt,dM=Pxe.WeakMap,h8=Oxe(dM)&&/native code/.test(String(dM)),Txe=Ed,Ixe=Nb,fM=Txe("keys"),Lb=function(e){return fM[e]||(fM[e]=Ixe(e))},Rxe=h8,v8=yt,Mxe=Xt,Nxe=xd,W$=Qt,V$=gk,Axe=Lb,Dxe=Iv,hM="Object already initialized",B_=v8.TypeError,Fxe=v8.WeakMap,Zg,$h,ey,jxe=function(e){return ey(e)?$h(e):Zg(e,{})},Lxe=function(e){return function(r){var t;if(!Mxe(r)||(t=$h(r)).type!==e)throw new B_("Incompatible receiver, "+e+" required");return t}};if(Rxe||V$.state){var Ii=V$.state||(V$.state=new Fxe);Ii.get=Ii.get,Ii.has=Ii.has,Ii.set=Ii.set,Zg=function(e,r){if(Ii.has(e))throw new B_(hM);return r.facade=e,Ii.set(e,r),r},$h=function(e){return Ii.get(e)||{}},ey=function(e){return Ii.has(e)}}else{var du=Axe("state");Dxe[du]=!0,Zg=function(e,r){if(W$(e,du))throw new B_(hM);return r.facade=e,Nxe(e,du,r),r},$h=function(e){return W$(e,du)?e[du]:{}},ey=function(e){return W$(e,du)}}var jl={set:Zg,get:$h,has:ey,enforce:jxe,getterFor:Lxe},z_=Yt,Bxe=Qt,p8=Function.prototype,zxe=z_&&Object.getOwnPropertyDescriptor,m8=Bxe(p8,"name"),Hxe=m8&&(function(){}).name==="something";m8&&(!z_||z_&&zxe(p8,"name").configurable);var Wxe={PROPER:Hxe},Bb={},Vxe=Yt,Uxe=t8,Kxe=Sn,Gxe=_n,qxe=oo,Yxe=Fb;Bb.f=Vxe&&!Uxe?Object.defineProperties:function(r,t){Gxe(r);for(var n=qxe(t),i=Yxe(t),o=i.length,a=0,s;o>a;)Kxe.f(r,s=i[a++],n[s]);return r};var Xxe=Gn,Qxe=Xxe("document","documentElement"),Jxe=_n,Zxe=Bb,vM=bk,eCe=Iv,tCe=Qxe,rCe=Zz,nCe=Lb,pM=">",mM="<",H_="prototype",W_="script",g8=nCe("IE_PROTO"),U$=function(){},y8=function(e){return mM+W_+pM+e+mM+"/"+W_+pM},gM=function(e){e.write(y8("")),e.close();var r=e.parentWindow.Object;return e=null,r},iCe=function(){var e=rCe("iframe"),r="java"+W_+":",t;return e.style.display="none",tCe.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(y8("document.F=Object")),t.close(),t.F},em,Wm=function(){try{em=new ActiveXObject("htmlfile")}catch{}Wm=typeof document<"u"?document.domain&&em?gM(em):iCe():gM(em);for(var e=vM.length;e--;)delete Wm[H_][vM[e]];return Wm()};eCe[g8]=!0;var Cd=Object.create||function(r,t){var n;return r!==null?(U$[H_]=Jxe(r),n=new U$,U$[H_]=null,n[g8]=r):n=Wm(),t===void 0?n:Zxe.f(n,t)},oCe=Fe,b8=!oCe(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),aCe=Qt,sCe=qt,lCe=an,uCe=Lb,cCe=b8,yM=uCe("IE_PROTO"),V_=Object,dCe=V_.prototype,zb=cCe?V_.getPrototypeOf:function(e){var r=lCe(e);if(aCe(r,yM))return r[yM];var t=r.constructor;return sCe(t)&&r instanceof t?t.prototype:r instanceof V_?dCe:null},fCe=xd,Mv=function(e,r,t,n){return n&&n.enumerable?e[r]=t:fCe(e,r,t),e},hCe=Fe,vCe=qt,pCe=Xt,mCe=Cd,bM=zb,gCe=Mv,yCe=bt,U_=yCe("iterator"),$8=!1,_o,K$,G$;[].keys&&(G$=[].keys(),"next"in G$?(K$=bM(bM(G$)),K$!==Object.prototype&&(_o=K$)):$8=!0);var bCe=!pCe(_o)||hCe(function(){var e={};return _o[U_].call(e)!==e});bCe?_o={}:_o=mCe(_o);vCe(_o[U_])||gCe(_o,U_,function(){return this});var w8={IteratorPrototype:_o,BUGGY_SAFARI_ITERATORS:$8},$Ce=wk,wCe=Fl,SCe=$Ce?{}.toString:function(){return"[object "+wCe(this)+"]"},_Ce=wk,ECe=Sn.f,xCe=xd,CCe=Qt,kCe=SCe,PCe=bt,$M=PCe("toStringTag"),kd=function(e,r,t,n){if(e){var i=t?e:e.prototype;CCe(i,$M)||ECe(i,$M,{configurable:!0,value:r}),n&&!_Ce&&xCe(i,"toString",kCe)}},Pd={},OCe=w8.IteratorPrototype,TCe=Cd,ICe=_v,RCe=kd,MCe=Pd,NCe=function(){return this},ACe=function(e,r,t,n){var i=r+" Iterator";return e.prototype=TCe(OCe,{next:ICe(+!n,t)}),RCe(e,i,!1,!0),MCe[i]=NCe,e},DCe=Le,FCe=Dl,jCe=function(e,r,t){try{return DCe(FCe(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}},LCe=qt,BCe=String,zCe=TypeError,HCe=function(e){if(typeof e=="object"||LCe(e))return e;throw new zCe("Can't set "+BCe(e)+" as a prototype")},WCe=jCe,VCe=_n,UCe=HCe,KCe=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=WCe(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,o){return VCe(i),UCe(o),e?t(i,o):i.__proto__=o,i}}():void 0),GCe=we,qCe=wn,YCe=Wxe,XCe=ACe,QCe=zb,JCe=kd,wM=Mv,ZCe=bt,SM=Pd,eke=w8,tke=YCe.PROPER,tm=eke.BUGGY_SAFARI_ITERATORS,q$=ZCe("iterator"),_M="keys",rm="values",EM="entries",rke=function(){return this},_k=function(e,r,t,n,i,o,a){XCe(t,r,n);var s=function(m){if(m===i&&f)return f;if(!tm&&m&&m in c)return c[m];switch(m){case _M:return function(){return new t(this,m)};case rm:return function(){return new t(this,m)};case EM:return function(){return new t(this,m)}}return function(){return new t(this)}},l=r+" Iterator",u=!1,c=e.prototype,d=c[q$]||c["@@iterator"]||i&&c[i],f=!tm&&d||s(i),h=r==="Array"&&c.entries||d,v,p,$;if(h&&(v=QCe(h.call(new e)),v!==Object.prototype&&v.next&&(JCe(v,l,!0,!0),SM[l]=rke)),tke&&i===rm&&d&&d.name!==rm&&(u=!0,f=function(){return qCe(d,this)}),i)if(p={values:s(rm),keys:o?f:s(_M),entries:s(EM)},a)for($ in p)(tm||u||!($ in c))&&wM(c,$,p[$]);else GCe({target:r,proto:!0,forced:tm||u},p);return a&&c[q$]!==f&&wM(c,q$,f,{}),SM[r]=f,p},Ek=function(e,r){return{value:e,done:r}},nke=kxe.charAt,ike=ao,S8=jl,oke=_k,xM=Ek,_8="String Iterator",ake=S8.set,ske=S8.getterFor(_8);oke(String,"String",function(e){ake(this,{type:_8,string:ike(e),index:0})},function(){var r=ske(this),t=r.string,n=r.index,i;return n>=t.length?xM(void 0,!0):(i=nke(t,n),r.index+=i.length,xM(i,!1))});var lke=wn,CM=_n,uke=mk,E8=function(e,r,t){var n,i;CM(e);try{if(n=uke(e,"return"),!n){if(r==="throw")throw t;return t}n=lke(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return CM(n),t},cke=_n,dke=E8,fke=function(e,r,t,n){try{return n?r(cke(t)[0],t[1]):r(t)}catch(i){dke(e,"throw",i)}},hke=bt,vke=Pd,pke=hke("iterator"),mke=Array.prototype,x8=function(e){return e!==void 0&&(vke.Array===e||mke[pke]===e)},gke=Le,yke=qt,K_=gk,bke=gke(Function.toString);yke(K_.inspectSource)||(K_.inspectSource=function(e){return bke(e)});var $ke=K_.inspectSource,wke=Le,Ske=Fe,C8=qt,_ke=Fl,Eke=Gn,xke=$ke,k8=function(){},Cke=[],P8=Eke("Reflect","construct"),xk=/^\s*(?:class|function)\b/,kke=wke(xk.exec),Pke=!xk.test(k8),ef=function(r){if(!C8(r))return!1;try{return P8(k8,Cke,r),!0}catch{return!1}},O8=function(r){if(!C8(r))return!1;switch(_ke(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Pke||!!kke(xk,xke(r))}catch{return!0}};O8.sham=!0;var Hb=!P8||Ske(function(){var e;return ef(ef.call)||!ef(Object)||!ef(function(){e=!0})||e})?O8:ef,Oke=Ab,Tke=Sn,Ike=_v,Od=function(e,r,t){var n=Oke(r);n in e?Tke.f(e,n,Ike(0,t)):e[n]=t},Rke=Fl,kM=mk,Mke=wd,Nke=Pd,Ake=bt,Dke=Ake("iterator"),Wb=function(e){if(!Mke(e))return kM(e,Dke)||kM(e,"@@iterator")||Nke[Rke(e)]},Fke=wn,jke=Dl,Lke=_n,Bke=_d,zke=Wb,Hke=TypeError,T8=function(e,r){var t=arguments.length<2?zke(e):r;if(jke(t))return Lke(Fke(t,e));throw new Hke(Bke(e)+" is not iterable")},Wke=Ov,Vke=wn,Uke=an,Kke=fke,Gke=x8,qke=Hb,Yke=qn,PM=Od,Xke=T8,Qke=Wb,OM=Array,Jke=function(r){var t=Uke(r),n=qke(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=Wke(o,i>2?arguments[2]:void 0));var s=Qke(t),l=0,u,c,d,f,h,v;if(s&&!(this===OM&&Gke(s)))for(f=Xke(t,s),h=f.next,c=n?new this:[];!(d=Vke(h,f)).done;l++)v=a?Kke(f,o,[d.value,l],!0):d.value,PM(c,l,v);else for(u=Yke(t),c=n?new this(u):OM(u);u>l;l++)v=a?o(t[l],l):t[l],PM(c,l,v);return c.length=l,c},Zke=bt,I8=Zke("iterator"),R8=!1;try{var ePe=0,TM={next:function(){return{done:!!ePe++}},return:function(){R8=!0}};TM[I8]=function(){return this},Array.from(TM,function(){throw 2})}catch{}var tPe=function(e,r){try{if(!r&&!R8)return!1}catch{return!1}var t=!1;try{var n={};n[I8]=function(){return{next:function(){return{done:t=!0}}}},e(n)}catch{}return t},rPe=we,nPe=Jke,iPe=tPe,oPe=!iPe(function(e){Array.from(e)});rPe({target:"Array",stat:!0,forced:oPe},{from:nPe});var aPe=je,sPe=aPe.Array.from,lPe=sPe,M8=lPe,uPe=M8,Ll=pe(uPe),cPe=oo,IM=Pd,N8=jl;Sn.f;var dPe=_k,nm=Ek,A8="Array Iterator",fPe=N8.set,hPe=N8.getterFor(A8);dPe(Array,"Array",function(e,r){fPe(this,{type:A8,target:cPe(e),index:0,kind:r})},function(){var e=hPe(this),r=e.target,t=e.kind,n=e.index++;if(!r||n>=r.length)return e.target=void 0,nm(void 0,!0);switch(t){case"keys":return nm(n,!1);case"values":return nm(r[n],!1)}return nm([n,r[n]],!1)},"values");IM.Arguments=IM.Array;var vPe=Wb,pPe=vPe,mPe={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},gPe=mPe,yPe=yt,bPe=Fl,$Pe=xd,RM=Pd,wPe=bt,MM=wPe("toStringTag");for(var Y$ in gPe){var NM=yPe[Y$],X$=NM&&NM.prototype;X$&&bPe(X$)!==MM&&$Pe(X$,MM,Y$),RM[Y$]=RM.Array}var SPe=pPe,_Pe=SPe,EPe=_Pe,xPe=EPe,CPe=xPe,kPe=CPe,D8=kPe,F8=pe(D8),PPe=D8,Bl=pe(PPe);function re(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var j8={exports:{}},OPe=we,TPe=Yt,AM=Sn.f;OPe({target:"Object",stat:!0,forced:Object.defineProperty!==AM,sham:!TPe},{defineProperty:AM});var IPe=je,L8=IPe.Object,RPe=j8.exports=function(r,t,n){return L8.defineProperty(r,t,n)};L8.defineProperty.sham&&(RPe.sham=!0);var MPe=j8.exports,NPe=MPe,B8=NPe,APe=B8,DPe=APe,FPe=DPe,jPe=FPe,LPe=jPe,Vb=pe(LPe),BPe=Yo,zl=Array.isArray||function(r){return BPe(r)==="Array"},zPe=TypeError,HPe=9007199254740991,Ck=function(e){if(e>HPe)throw zPe("Maximum allowed index exceeded");return e},DM=zl,WPe=Hb,VPe=Xt,UPe=bt,KPe=UPe("species"),FM=Array,GPe=function(e){var r;return DM(e)&&(r=e.constructor,WPe(r)&&(r===FM||DM(r.prototype))?r=void 0:VPe(r)&&(r=r[KPe],r===null&&(r=void 0))),r===void 0?FM:r},qPe=GPe,kk=function(e,r){return new(qPe(e))(r===0?0:r)},YPe=Fe,XPe=bt,QPe=Cv,JPe=XPe("species"),Nv=function(e){return QPe>=51||!YPe(function(){var r=[],t=r.constructor={};return t[JPe]=function(){return{foo:1}},r[e](Boolean).foo!==1})},ZPe=we,eOe=Fe,tOe=zl,rOe=Xt,nOe=an,iOe=qn,jM=Ck,LM=Od,oOe=kk,aOe=Nv,sOe=bt,lOe=Cv,z8=sOe("isConcatSpreadable"),uOe=lOe>=51||!eOe(function(){var e=[];return e[z8]=!1,e.concat()[0]!==e}),cOe=function(e){if(!rOe(e))return!1;var r=e[z8];return r!==void 0?!!r:tOe(e)},dOe=!uOe||!aOe("concat");ZPe({target:"Array",proto:!0,forced:dOe},{concat:function(r){var t=nOe(this),n=oOe(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],cOe(u))for(l=iOe(u),jM(i+l),a=0;a<l;a++,i++)a in u&&LM(n,i,u[a]);else jM(i+1),LM(n,i++,u);return n.length=i,n}});var Av={},fOe=r8,hOe=bk,vOe=hOe.concat("length","prototype");Av.f=Object.getOwnPropertyNames||function(r){return fOe(r,vOe)};var Ub={},BM=Tv,pOe=qn,mOe=Od,gOe=Array,yOe=Math.max,H8=function(e,r,t){for(var n=pOe(e),i=BM(r,n),o=BM(t===void 0?n:t,n),a=gOe(yOe(o-i,0)),s=0;i<o;i++,s++)mOe(a,s,e[i]);return a.length=s,a},bOe=Yo,$Oe=oo,W8=Av.f,wOe=H8,V8=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],SOe=function(e){try{return W8(e)}catch{return wOe(V8)}};Ub.f=function(r){return V8&&bOe(r)==="Window"?SOe(r):W8($Oe(r))};var _Oe=Sn,Pk=function(e,r,t){return _Oe.f(e,r,t)},Dv={},EOe=bt;Dv.f=EOe;var zM=je,xOe=Qt,COe=Dv,kOe=Sn.f,$t=function(e){var r=zM.Symbol||(zM.Symbol={});xOe(r,e)||kOe(r,e,{value:COe.f(e)})},POe=wn,OOe=Gn,TOe=bt,IOe=Mv,U8=function(){var e=OOe("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,n=TOe("toPrimitive");r&&!r[n]&&IOe(r,n,function(i){return POe(t,this)},{})},ROe=Ov,MOe=Le,NOe=Mb,AOe=an,DOe=qn,FOe=kk,HM=MOe([].push),ms=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=AOe(l),h=NOe(f),v=ROe(u,c),p=DOe(h),$=0,m=d||FOe,g=r?m(l,p):t||a?m(l,0):void 0,y,w;p>$;$++)if((s||$ in h)&&(y=h[$],w=v(y,$,f),e))if(r)g[$]=w;else if(w)switch(e){case 3:return!0;case 5:return y;case 6:return $;case 2:HM(g,y)}else switch(e){case 4:return!1;case 7:HM(g,y)}return o?-1:n||i?i:g}},os={forEach:ms(0),map:ms(1),filter:ms(2),some:ms(3),every:ms(4),find:ms(5),findIndex:ms(6)},Kb=we,Gb=yt,Ok=wn,jOe=Le,Bc=Yt,zc=Sd,LOe=Fe,Wt=Qt,BOe=Et,G_=_n,qb=oo,Tk=Ab,zOe=ao,q_=_v,wh=Cd,K8=Fb,HOe=Av,G8=Ub,WOe=Rv,q8=$d,Y8=Sn,VOe=Bb,X8=Rb,WM=Mv,UOe=Pk,Ik=Ed,KOe=Lb,Q8=Iv,VM=Nb,GOe=bt,qOe=Dv,YOe=$t,XOe=U8,QOe=kd,J8=jl,Yb=os.forEach,Ur=KOe("hidden"),Xb="Symbol",Sh="prototype",JOe=J8.set,UM=J8.getterFor(Xb),vi=Object[Sh],Ys=Gb.Symbol,mf=Ys&&Ys[Sh],ZOe=Gb.RangeError,eTe=Gb.TypeError,Q$=Gb.QObject,Z8=q8.f,Xs=Y8.f,e6=G8.f,tTe=X8.f,t6=jOe([].push),Lo=Ik("symbols"),Fv=Ik("op-symbols"),rTe=Ik("wks"),Y_=!Q$||!Q$[Sh]||!Q$[Sh].findChild,r6=function(e,r,t){var n=Z8(vi,r);n&&delete vi[r],Xs(e,r,t),n&&e!==vi&&Xs(vi,r,n)},X_=Bc&&LOe(function(){return wh(Xs({},"a",{get:function(){return Xs(this,"a",{value:7}).a}})).a!==7})?r6:Xs,J$=function(e,r){var t=Lo[e]=wh(mf);return JOe(t,{type:Xb,tag:e,description:r}),Bc||(t.description=r),t},Qb=function(r,t,n){r===vi&&Qb(Fv,t,n),G_(r);var i=Tk(t);return G_(n),Wt(Lo,i)?(n.enumerable?(Wt(r,Ur)&&r[Ur][i]&&(r[Ur][i]=!1),n=wh(n,{enumerable:q_(0,!1)})):(Wt(r,Ur)||Xs(r,Ur,q_(1,{})),r[Ur][i]=!0),X_(r,i,n)):Xs(r,i,n)},Rk=function(r,t){G_(r);var n=qb(t),i=K8(n).concat(a6(n));return Yb(i,function(o){(!Bc||Ok(n6,n,o))&&Qb(r,o,n[o])}),r},nTe=function(r,t){return t===void 0?wh(r):Rk(wh(r),t)},n6=function(r){var t=Tk(r),n=Ok(tTe,this,t);return this===vi&&Wt(Lo,t)&&!Wt(Fv,t)?!1:n||!Wt(this,t)||!Wt(Lo,t)||Wt(this,Ur)&&this[Ur][t]?n:!0},i6=function(r,t){var n=qb(r),i=Tk(t);if(!(n===vi&&Wt(Lo,i)&&!Wt(Fv,i))){var o=Z8(n,i);return o&&Wt(Lo,i)&&!(Wt(n,Ur)&&n[Ur][i])&&(o.enumerable=!0),o}},o6=function(r){var t=e6(qb(r)),n=[];return Yb(t,function(i){!Wt(Lo,i)&&!Wt(Q8,i)&&t6(n,i)}),n},a6=function(e){var r=e===vi,t=e6(r?Fv:qb(e)),n=[];return Yb(t,function(i){Wt(Lo,i)&&(!r||Wt(vi,i))&&t6(n,Lo[i])}),n};zc||(Ys=function(){if(BOe(mf,this))throw new eTe("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:zOe(arguments[0]),t=VM(r),n=function(i){this===vi&&Ok(n,Fv,i),Wt(this,Ur)&&Wt(this[Ur],t)&&(this[Ur][t]=!1);var o=q_(1,i);try{X_(this,t,o)}catch(a){if(!(a instanceof ZOe))throw a;r6(this,t,o)}};return Bc&&Y_&&X_(vi,t,{configurable:!0,set:n}),J$(t,r)},mf=Ys[Sh],WM(mf,"toString",function(){return UM(this).tag}),WM(Ys,"withoutSetter",function(e){return J$(VM(e),e)}),X8.f=n6,Y8.f=Qb,VOe.f=Rk,q8.f=i6,HOe.f=G8.f=o6,WOe.f=a6,qOe.f=function(e){return J$(GOe(e),e)},Bc&&UOe(mf,"description",{configurable:!0,get:function(){return UM(this).description}}));Kb({global:!0,wrap:!0,forced:!zc,sham:!zc},{Symbol:Ys});Yb(K8(rTe),function(e){YOe(e)});Kb({target:Xb,stat:!0,forced:!zc},{useSetter:function(){Y_=!0},useSimple:function(){Y_=!1}});Kb({target:"Object",stat:!0,forced:!zc,sham:!Bc},{create:nTe,defineProperty:Qb,defineProperties:Rk,getOwnPropertyDescriptor:i6});Kb({target:"Object",stat:!0,forced:!zc},{getOwnPropertyNames:o6});XOe();QOe(Ys,Xb);Q8[Ur]=!0;var iTe=Sd,s6=iTe&&!!Symbol.for&&!!Symbol.keyFor,oTe=we,aTe=Gn,sTe=Qt,lTe=ao,l6=Ed,uTe=s6,Z$=l6("string-to-symbol-registry"),cTe=l6("symbol-to-string-registry");oTe({target:"Symbol",stat:!0,forced:!uTe},{for:function(e){var r=lTe(e);if(sTe(Z$,r))return Z$[r];var t=aTe("Symbol")(r);return Z$[r]=t,cTe[t]=r,t}});var dTe=we,fTe=Qt,hTe=kv,vTe=_d,pTe=Ed,mTe=s6,KM=pTe("symbol-to-string-registry");dTe({target:"Symbol",stat:!0,forced:!mTe},{keyFor:function(r){if(!hTe(r))throw new TypeError(vTe(r)+" is not a symbol");if(fTe(KM,r))return KM[r]}});var gTe=Le,GM=zl,yTe=qt,qM=Yo,bTe=ao,YM=gTe([].push),$Te=function(e){if(yTe(e))return e;if(GM(e)){for(var r=e.length,t=[],n=0;n<r;n++){var i=e[n];typeof i=="string"?YM(t,i):(typeof i=="number"||qM(i)==="Number"||qM(i)==="String")&&YM(t,bTe(i))}var o=t.length,a=!0;return function(s,l){if(a)return a=!1,l;if(GM(this))return l;for(var u=0;u<o;u++)if(t[u]===s)return l}}},wTe=we,u6=Gn,c6=Sv,STe=wn,jv=Le,d6=Fe,XM=qt,QM=kv,f6=jb,_Te=$Te,ETe=Sd,xTe=String,Da=u6("JSON","stringify"),im=jv(/./.exec),JM=jv("".charAt),CTe=jv("".charCodeAt),kTe=jv("".replace),PTe=jv(1 .toString),OTe=/[\uD800-\uDFFF]/g,ZM=/^[\uD800-\uDBFF]$/,eN=/^[\uDC00-\uDFFF]$/,tN=!ETe||d6(function(){var e=u6("Symbol")("stringify detection");return Da([e])!=="[null]"||Da({a:e})!=="{}"||Da(Object(e))!=="{}"}),rN=d6(function(){return Da("\uDF06\uD834")!=='"\\udf06\\ud834"'||Da("\uDEAD")!=='"\\udead"'}),TTe=function(e,r){var t=f6(arguments),n=_Te(r);if(!(!XM(n)&&(e===void 0||QM(e))))return t[1]=function(i,o){if(XM(n)&&(o=STe(n,this,xTe(i),o)),!QM(o))return o},c6(Da,null,t)},ITe=function(e,r,t){var n=JM(t,r-1),i=JM(t,r+1);return im(ZM,e)&&!im(eN,i)||im(eN,e)&&!im(ZM,n)?"\\u"+PTe(CTe(e,0),16):e};Da&&wTe({target:"JSON",stat:!0,forced:tN||rN},{stringify:function(r,t,n){var i=f6(arguments),o=c6(tN?TTe:Da,null,i);return rN&&typeof o=="string"?kTe(o,OTe,ITe):o}});var RTe=we,MTe=Sd,NTe=Fe,h6=Rv,ATe=an,DTe=!MTe||NTe(function(){h6.f(1)});RTe({target:"Object",stat:!0,forced:DTe},{getOwnPropertySymbols:function(r){var t=h6.f;return t?t(ATe(r)):[]}});var FTe=$t;FTe("asyncIterator");var jTe=$t;jTe("hasInstance");var LTe=$t;LTe("isConcatSpreadable");var BTe=$t;BTe("iterator");var zTe=$t;zTe("match");var HTe=$t;HTe("matchAll");var WTe=$t;WTe("replace");var VTe=$t;VTe("search");var UTe=$t;UTe("species");var KTe=$t;KTe("split");var GTe=$t,qTe=U8;GTe("toPrimitive");qTe();var YTe=Gn,XTe=$t,QTe=kd;XTe("toStringTag");QTe(YTe("Symbol"),"Symbol");var JTe=$t;JTe("unscopables");var ZTe=yt,eIe=kd;eIe(ZTe.JSON,"JSON",!0);var tIe=je,rIe=tIe.Symbol,nIe=rIe,v6=nIe,iIe=bt,oIe=Sn.f,nN=iIe("metadata"),iN=Function.prototype;iN[nN]===void 0&&oIe(iN,nN,{value:null});var aIe=$t;aIe("asyncDispose");var sIe=$t;sIe("dispose");var lIe=$t;lIe("metadata");var uIe=v6,cIe=uIe,dIe=Gn,fIe=Le,Mk=dIe("Symbol"),hIe=Mk.keyFor,vIe=fIe(Mk.prototype.valueOf),p6=Mk.isRegisteredSymbol||function(r){try{return hIe(vIe(r))!==void 0}catch{return!1}},pIe=we,mIe=p6;pIe({target:"Symbol",stat:!0},{isRegisteredSymbol:mIe});var gIe=Ed,m6=Gn,yIe=Le,bIe=kv,$Ie=bt,ty=m6("Symbol"),oN=ty.isWellKnownSymbol,g6=m6("Object","getOwnPropertyNames"),wIe=yIe(ty.prototype.valueOf),aN=gIe("wks");for(var ew=0,sN=g6(ty),SIe=sN.length;ew<SIe;ew++)try{var lN=sN[ew];bIe(ty[lN])&&$Ie(lN)}catch{}var y6=function(r){if(oN&&oN(r))return!0;try{for(var t=wIe(r),n=0,i=g6(aN),o=i.length;n<o;n++)if(aN[i[n]]==t)return!0}catch{}return!1},_Ie=we,EIe=y6;_Ie({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:EIe});var xIe=$t;xIe("matcher");var CIe=$t;CIe("observable");var kIe=we,PIe=p6;kIe({target:"Symbol",stat:!0},{isRegistered:PIe});var OIe=we,TIe=y6;OIe({target:"Symbol",stat:!0,forced:!0},{isWellKnown:TIe});var IIe=$t;IIe("metadataKey");var RIe=$t;RIe("patternMatch");var MIe=$t;MIe("replaceAll");var NIe=cIe,AIe=NIe,DIe=AIe,Lu=pe(DIe),FIe=Dv,jIe=FIe.f("iterator"),LIe=jIe,BIe=LIe,zIe=BIe,HIe=zIe,WIe=HIe,VIe=WIe,UIe=VIe,KIe=pe(UIe);function Ge(e){"@babel/helpers - typeof";return Ge=typeof Lu=="function"&&typeof KIe=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Lu=="function"&&r.constructor===Lu&&r!==Lu.prototype?"symbol":typeof r},Ge(e)}var GIe=Dv,qIe=GIe.f("toPrimitive"),YIe=qIe,XIe=YIe,QIe=XIe,JIe=QIe,ZIe=JIe,eRe=ZIe,tRe=eRe,rRe=pe(tRe);function nRe(e,r){if(Ge(e)!=="object"||e===null)return e;var t=e[rRe];if(t!==void 0){var n=t.call(e,r);if(Ge(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function b6(e){var r=nRe(e,"string");return Ge(r)==="symbol"?r:String(r)}function uN(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),Vb(e,b6(n.key),n)}}function ne(e,r,t){return r&&uN(e.prototype,r),t&&uN(e,t),Vb(e,"prototype",{writable:!1}),e}var iRe=we,oRe=zl;iRe({target:"Array",stat:!0},{isArray:oRe});var aRe=je,sRe=aRe.Array.isArray,lRe=sRe,$6=lRe,uRe=$6,cRe=uRe,dRe=cRe,fRe=dRe,hRe=fRe,w6=pe(hRe);function vRe(e){if(w6(e))return e}var pRe=Yt,mRe=zl,gRe=TypeError,yRe=Object.getOwnPropertyDescriptor,bRe=pRe&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),S6=bRe?function(e,r){if(mRe(e)&&!yRe(e,"length").writable)throw new gRe("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r},$Re=we,wRe=an,SRe=qn,_Re=S6,ERe=Ck,xRe=Fe,CRe=xRe(function(){return[].push.call({length:4294967296},1)!==4294967297}),kRe=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},PRe=CRe||!kRe();$Re({target:"Array",proto:!0,forced:PRe},{push:function(r){var t=wRe(this),n=SRe(t),i=arguments.length;ERe(n+i);for(var o=0;o<i;o++)t[n]=arguments[o],n++;return _Re(t,n),n}});var ORe=Jt,TRe=ORe("Array").push,IRe=Et,RRe=TRe,tw=Array.prototype,MRe=function(e){var r=e.push;return e===tw||IRe(tw,e)&&r===tw.push?RRe:r},NRe=MRe,ARe=NRe,DRe=ARe,FRe=DRe,jRe=FRe,LRe=jRe,BRe=LRe,zRe=pe(BRe);function HRe(e,r){var t=e==null?null:typeof Lu<"u"&&F8(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)&&(zRe(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 WRe=we,cN=zl,VRe=Hb,URe=Xt,dN=Tv,KRe=qn,GRe=oo,qRe=Od,YRe=bt,XRe=Nv,QRe=jb,JRe=XRe("slice"),ZRe=YRe("species"),rw=Array,e2e=Math.max;WRe({target:"Array",proto:!0,forced:!JRe},{slice:function(r,t){var n=GRe(this),i=KRe(n),o=dN(r,i),a=dN(t===void 0?i:t,i),s,l,u;if(cN(n)&&(s=n.constructor,VRe(s)&&(s===rw||cN(s.prototype))?s=void 0:URe(s)&&(s=s[ZRe],s===null&&(s=void 0)),s===rw||s===void 0))return QRe(n,o,a);for(l=new(s===void 0?rw:s)(e2e(a-o,0)),u=0;o<a;o++,u++)o in n&&qRe(l,u,n[o]);return l.length=u,l}});var t2e=Jt,r2e=t2e("Array").slice,n2e=Et,i2e=r2e,nw=Array.prototype,o2e=function(e){var r=e.slice;return e===nw||n2e(nw,e)&&r===nw.slice?i2e:r},a2e=o2e,_6=a2e,s2e=_6,l2e=s2e,u2e=l2e,c2e=u2e,d2e=c2e,f2e=pe(d2e),h2e=M8,v2e=h2e,p2e=v2e,m2e=p2e,g2e=m2e,E6=pe(g2e);function Q_(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 x6(e,r){var t;if(e){if(typeof e=="string")return Q_(e,r);var n=f2e(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return E6(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q_(e,r)}}function y2e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
162
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pt(e,r){return vRe(e)||HRe(e,r)||x6(e,r)||y2e()}function b2e(e){if(w6(e))return Q_(e)}function $2e(e){if(typeof Lu<"u"&&F8(e)!=null||e["@@iterator"]!=null)return E6(e)}function w2e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
163
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bi(e){return b2e(e)||$2e(e)||x6(e)||w2e()}var S2e=v6,as=pe(S2e),_2e=Jt,E2e=_2e("Array").concat,x2e=Et,C2e=E2e,iw=Array.prototype,k2e=function(e){var r=e.concat;return e===iw||x2e(iw,e)&&r===iw.concat?C2e:r},P2e=k2e,O2e=P2e,T2e=O2e,Nk=pe(T2e),I2e=_6,rr=pe(I2e),R2e=Gn,M2e=Le,N2e=Av,A2e=Rv,D2e=_n,F2e=M2e([].concat),j2e=R2e("Reflect","ownKeys")||function(r){var t=N2e.f(D2e(r)),n=A2e.f;return n?F2e(t,n(r)):t},L2e=$6,Ve=pe(L2e),B2e=we,z2e=os.map,H2e=Nv,W2e=H2e("map");B2e({target:"Array",proto:!0,forced:!W2e},{map:function(r){return z2e(this,r,arguments.length>1?arguments[1]:void 0)}});var V2e=Jt,U2e=V2e("Array").map,K2e=Et,G2e=U2e,ow=Array.prototype,q2e=function(e){var r=e.map;return e===ow||K2e(ow,e)&&r===ow.map?G2e:r},Y2e=q2e,X2e=Y2e,Q2e=X2e,Hc=pe(Q2e),J2e=we,Z2e=an,C6=Fb,eMe=Fe,tMe=eMe(function(){C6(1)});J2e({target:"Object",stat:!0,forced:tMe},{keys:function(r){return C6(Z2e(r))}});var rMe=je,nMe=rMe.Object.keys,iMe=nMe,oMe=iMe,aMe=oMe,vt=pe(aMe),sMe=we,lMe=Le,k6=Date,uMe=lMe(k6.prototype.getTime);sMe({target:"Date",stat:!0},{now:function(){return uMe(new k6)}});var cMe=je,dMe=cMe.Date.now,fMe=dMe,hMe=fMe,vMe=hMe,ry=pe(vMe),pMe=Fe,Td=function(e,r){var t=[][e];return!!t&&pMe(function(){t.call(null,r||function(){return 1},1)})},mMe=os.forEach,gMe=Td,yMe=gMe("forEach"),bMe=yMe?[].forEach:function(r){return mMe(this,r,arguments.length>1?arguments[1]:void 0)},$Me=we,fN=bMe;$Me({target:"Array",proto:!0,forced:[].forEach!==fN},{forEach:fN});var wMe=Jt,SMe=wMe("Array").forEach,_Me=SMe,EMe=_Me,xMe=Fl,CMe=Qt,kMe=Et,PMe=EMe,aw=Array.prototype,OMe={DOMTokenList:!0,NodeList:!0},TMe=function(e){var r=e.forEach;return e===aw||kMe(aw,e)&&r===aw.forEach||CMe(OMe,xMe(e))?PMe:r},IMe=TMe,Ye=pe(IMe),RMe=we,MMe=Le,NMe=zl,AMe=MMe([].reverse),hN=[1,2];RMe({target:"Array",proto:!0,forced:String(hN)===String(hN.reverse())},{reverse:function(){return NMe(this)&&(this.length=this.length),AMe(this)}});var DMe=Jt,FMe=DMe("Array").reverse,jMe=Et,LMe=FMe,sw=Array.prototype,BMe=function(e){var r=e.reverse;return e===sw||jMe(sw,e)&&r===sw.reverse?LMe:r},zMe=BMe,HMe=zMe,WMe=HMe,Qs=pe(WMe),vN=_d,VMe=TypeError,P6=function(e,r){if(!delete e[r])throw new VMe("Cannot delete property "+vN(r)+" of "+vN(e))},UMe=we,KMe=an,GMe=Tv,qMe=Db,YMe=qn,XMe=S6,QMe=Ck,JMe=kk,ZMe=Od,lw=P6,eNe=Nv,tNe=eNe("splice"),rNe=Math.max,nNe=Math.min;UMe({target:"Array",proto:!0,forced:!tNe},{splice:function(r,t){var n=KMe(this),i=YMe(n),o=GMe(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=nNe(rNe(qMe(t),0),i-o)),QMe(i+s-l),u=JMe(n,l),c=0;c<l;c++)d=o+c,d in n&&ZMe(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]:lw(n,f);for(c=i;c>i-l+s;c--)lw(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]:lw(n,f);for(c=0;c<s;c++)n[c+o]=arguments[c+2];return XMe(n,i-l+s),u}});var iNe=Jt,oNe=iNe("Array").splice,aNe=Et,sNe=oNe,uw=Array.prototype,lNe=function(e){var r=e.splice;return e===uw||aNe(uw,e)&&r===uw.splice?sNe:r},uNe=lNe,cNe=uNe,dNe=cNe,Eo=pe(dNe),fNe=we,hNe=yk.includes,vNe=Fe,pNe=vNe(function(){return!Array(1).includes()});fNe({target:"Array",proto:!0,forced:pNe},{includes:function(r){return hNe(this,r,arguments.length>1?arguments[1]:void 0)}});var mNe=Jt,gNe=mNe("Array").includes,yNe=Xt,bNe=Yo,$Ne=bt,wNe=$Ne("match"),SNe=function(e){var r;return yNe(e)&&((r=e[wNe])!==void 0?!!r:bNe(e)==="RegExp")},_Ne=SNe,ENe=TypeError,xNe=function(e){if(_Ne(e))throw new ENe("The method doesn't accept regular expressions");return e},CNe=bt,kNe=CNe("match"),PNe=function(e){var r=/./;try{"/./"[e](r)}catch{try{return r[kNe]=!1,"/./"[e](r)}catch{}}return!1},ONe=we,TNe=Le,INe=xNe,RNe=Ev,pN=ao,MNe=PNe,NNe=TNe("".indexOf);ONe({target:"String",proto:!0,forced:!MNe("includes")},{includes:function(r){return!!~NNe(pN(RNe(this)),pN(INe(r)),arguments.length>1?arguments[1]:void 0)}});var ANe=Jt,DNe=ANe("String").includes,mN=Et,FNe=gNe,jNe=DNe,cw=Array.prototype,dw=String.prototype,LNe=function(e){var r=e.includes;return e===cw||mN(cw,e)&&r===cw.includes?FNe:typeof e=="string"||e===dw||mN(dw,e)&&r===dw.includes?jNe:r},BNe=LNe,zNe=BNe,HNe=zNe,Fa=pe(HNe),WNe=we,VNe=Fe,UNe=an,O6=zb,KNe=b8,GNe=VNe(function(){O6(1)});WNe({target:"Object",stat:!0,forced:GNe,sham:!KNe},{getPrototypeOf:function(r){return O6(UNe(r))}});var qNe=je,YNe=qNe.Object.getPrototypeOf,XNe=YNe,T6=XNe,QNe=T6,gN=pe(QNe),JNe=we,ZNe=os.filter,eAe=Nv,tAe=eAe("filter");JNe({target:"Array",proto:!0,forced:!tAe},{filter:function(r){return ZNe(this,r,arguments.length>1?arguments[1]:void 0)}});var rAe=Jt,nAe=rAe("Array").filter,iAe=Et,oAe=nAe,fw=Array.prototype,aAe=function(e){var r=e.filter;return e===fw||iAe(fw,e)&&r===fw.filter?oAe:r},sAe=aAe,lAe=sAe,uAe=lAe,Kr=pe(uAe),Ak=`
|
164
|
+
\v\f\r \u2028\u2029\uFEFF`,cAe=Le,dAe=Ev,fAe=ao,J_=Ak,yN=cAe("".replace),hAe=RegExp("^["+J_+"]+"),vAe=RegExp("(^|[^"+J_+"])["+J_+"]+$"),pAe=function(e){return function(r){var t=fAe(dAe(r));return e&1&&(t=yN(t,hAe,"")),e&2&&(t=yN(t,vAe,"$1")),t}},I6={trim:pAe(3)},R6=yt,mAe=Fe,gAe=Le,yAe=ao,bAe=I6.trim,bN=Ak,Df=R6.parseInt,$N=R6.Symbol,wN=$N&&$N.iterator,M6=/^[+-]?0x/i,$Ae=gAe(M6.exec),wAe=Df(bN+"08")!==8||Df(bN+"0x16")!==22||wN&&!mAe(function(){Df(Object(wN))}),SAe=wAe?function(r,t){var n=bAe(yAe(r));return Df(n,t>>>0||($Ae(M6,n)?16:10))}:Df,_Ae=we,SN=SAe;_Ae({global:!0,forced:parseInt!==SN},{parseInt:SN});var EAe=je,xAe=EAe.parseInt,CAe=xAe,kAe=CAe,PAe=kAe,ci=pe(PAe),OAe=we,TAe=pk,IAe=yk.indexOf,RAe=Td,Z_=TAe([].indexOf),N6=!!Z_&&1/Z_([1],1,-0)<0,MAe=N6||!RAe("indexOf");OAe({target:"Array",proto:!0,forced:MAe},{indexOf:function(r){var t=arguments.length>1?arguments[1]:void 0;return N6?Z_(this,r,t)||0:IAe(this,r,t)}});var NAe=Jt,AAe=NAe("Array").indexOf,DAe=Et,FAe=AAe,hw=Array.prototype,jAe=function(e){var r=e.indexOf;return e===hw||DAe(hw,e)&&r===hw.indexOf?FAe:r},LAe=jAe,BAe=LAe,zAe=BAe,De=pe(zAe),HAe=we,WAe=Yt,VAe=Cd;HAe({target:"Object",stat:!0,sham:!WAe},{create:VAe});var UAe=je,KAe=UAe.Object,GAe=function(r,t){return KAe.create(r,t)},qAe=GAe,A6=qAe,YAe=A6,Js=pe(YAe),eE=je,XAe=Sv;eE.JSON||(eE.JSON={stringify:JSON.stringify});var QAe=function(r,t,n){return XAe(eE.JSON.stringify,null,arguments)},JAe=QAe,ZAe=JAe,eDe=ZAe,Lv=pe(eDe),tDe=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",rDe=TypeError,nDe=function(e,r){if(e<r)throw new rDe("Not enough arguments");return e},D6=yt,iDe=Sv,oDe=qt,aDe=tDe,sDe=xv,lDe=jb,uDe=nDe,cDe=D6.Function,dDe=/MSIE .\./.test(sDe)||aDe&&function(){var e=D6.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),F6=function(e,r){var t=r?2:1;return dDe?function(n,i){var o=uDe(arguments.length,1)>t,a=oDe(n)?n:cDe(n),s=o?lDe(arguments,t):[],l=o?function(){iDe(a,this,s)}:a;return r?e(l,i):e(l)}:e},fDe=we,j6=yt,hDe=F6,_N=hDe(j6.setInterval,!0);fDe({global:!0,bind:!0,forced:j6.setInterval!==_N},{setInterval:_N});var vDe=we,L6=yt,pDe=F6,EN=pDe(L6.setTimeout,!0);vDe({global:!0,bind:!0,forced:L6.setTimeout!==EN},{setTimeout:EN});var mDe=je,gDe=mDe.setTimeout,yDe=gDe,Qi=pe(yDe),bDe=an,xN=Tv,$De=qn,wDe=function(r){for(var t=bDe(this),n=$De(t),i=arguments.length,o=xN(i>1?arguments[1]:void 0,n),a=i>2?arguments[2]:void 0,s=a===void 0?n:xN(a,n);s>o;)t[o++]=r;return t},SDe=we,_De=wDe;SDe({target:"Array",proto:!0},{fill:_De});var EDe=Jt,xDe=EDe("Array").fill,CDe=Et,kDe=xDe,vw=Array.prototype,PDe=function(e){var r=e.fill;return e===vw||CDe(vw,e)&&r===vw.fill?kDe:r},ODe=PDe,TDe=ODe,IDe=TDe,Bv=pe(IDe);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
165
|
+
* http://naver.github.io/egjs
|
166
|
+
*
|
167
|
+
* Forked By Naver egjs
|
168
|
+
* Copyright (c) hammerjs
|
169
|
+
* Licensed under the MIT license */function Ei(){return Ei=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},Ei.apply(this,arguments)}function Yn(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function om(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var tE;typeof Object.assign!="function"?tE=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}:tE=Object.assign;var ml=tE,CN=["","webkit","Moz","MS","ms","o"],RDe=typeof document>"u"?{style:{}}:document.createElement("div"),MDe="function",Bu=Math.round,gl=Math.abs,Dk=Date.now;function Jb(e,r){for(var t,n,i=r[0].toUpperCase()+r.slice(1),o=0;o<CN.length;){if(t=CN[o],n=t?t+i:r,n in e)return n;o++}}var xo;typeof window>"u"?xo={}:xo=window;var B6=Jb(RDe.style,"touchAction"),z6=B6!==void 0;function NDe(){if(!z6)return!1;var e={},r=xo.CSS&&xo.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return e[t]=r?xo.CSS.supports("touch-action",t):!0}),e}var H6="compute",W6="auto",rE="manipulation",Zs="none",_h="pan-x",Eh="pan-y",am=NDe(),ADe=/mobile|tablet|ip(ad|hone|od)|android/i,V6="ontouchstart"in xo,DDe=Jb(xo,"PointerEvent")!==void 0,FDe=V6&&ADe.test(navigator.userAgent),zv="touch",jDe="pen",Fk="mouse",LDe="kinect",BDe=25,Tr=1,Hl=2,Ot=4,en=8,ny=1,Hv=2,Wv=4,Vv=8,Wc=16,Ji=Hv|Wv,el=Vv|Wc,U6=Ji|el,K6=["x","y"],iy=["clientX","clientY"];function Co(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 Zb(e,r){return typeof e===MDe?e.apply(r&&r[0]||void 0,r):e}function Rs(e,r){return e.indexOf(r)>-1}function zDe(e){if(Rs(e,Zs))return Zs;var r=Rs(e,_h),t=Rs(e,Eh);return r&&t?Zs:r||t?r?_h:Eh:Rs(e,rE)?rE:W6}var G6=function(){function e(t,n){this.manager=t,this.set(n)}var r=e.prototype;return r.set=function(n){n===H6&&(n=this.compute()),z6&&this.manager.element.style&&am[n]&&(this.manager.element.style[B6]=n),this.actions=n.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var n=[];return Co(this.manager.recognizers,function(i){Zb(i.options.enable,[i])&&(n=n.concat(i.getTouchAction()))}),zDe(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=Rs(a,Zs)&&!am[Zs],l=Rs(a,Eh)&&!am[Eh],u=Rs(a,_h)&&!am[_h];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&Ji||u&&o&el))return this.preventSrc(i)},r.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},e}();function jk(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}function q6(e){var r=e.length;if(r===1)return{x:Bu(e[0].clientX),y:Bu(e[0].clientY)};for(var t=0,n=0,i=0;i<r;)t+=e[i].clientX,n+=e[i].clientY,i++;return{x:Bu(t/r),y:Bu(n/r)}}function kN(e){for(var r=[],t=0;t<e.pointers.length;)r[t]={clientX:Bu(e.pointers[t].clientX),clientY:Bu(e.pointers[t].clientY)},t++;return{timeStamp:Dk(),pointers:r,center:q6(r),deltaX:e.deltaX,deltaY:e.deltaY}}function oy(e,r,t){t||(t=K6);var n=r[t[0]]-e[t[0]],i=r[t[1]]-e[t[1]];return Math.sqrt(n*n+i*i)}function nE(e,r,t){t||(t=K6);var n=r[t[0]]-e[t[0]],i=r[t[1]]-e[t[1]];return Math.atan2(i,n)*180/Math.PI}function Y6(e,r){return e===r?ny:gl(e)>=gl(r)?e<0?Hv:Wv:r<0?Vv:Wc}function HDe(e,r){var t=r.center,n=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};(r.eventType===Tr||o.eventType===Ot)&&(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 X6(e,r,t){return{x:r/e||0,y:t/e||0}}function WDe(e,r){return oy(r[0],r[1],iy)/oy(e[0],e[1],iy)}function VDe(e,r){return nE(r[1],r[0],iy)+nE(e[1],e[0],iy)}function UDe(e,r){var t=e.lastInterval||r,n=r.timeStamp-t.timeStamp,i,o,a,s;if(r.eventType!==en&&(n>BDe||t.velocity===void 0)){var l=r.deltaX-t.deltaX,u=r.deltaY-t.deltaY,c=X6(n,l,u);o=c.x,a=c.y,i=gl(c.x)>gl(c.y)?c.x:c.y,s=Y6(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 KDe(e,r){var t=e.session,n=r.pointers,i=n.length;t.firstInput||(t.firstInput=kN(r)),i>1&&!t.firstMultiple?t.firstMultiple=kN(r):i===1&&(t.firstMultiple=!1);var o=t.firstInput,a=t.firstMultiple,s=a?a.center:o.center,l=r.center=q6(n);r.timeStamp=Dk(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=nE(s,l),r.distance=oy(s,l),HDe(t,r),r.offsetDirection=Y6(r.deltaX,r.deltaY);var u=X6(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=u.x,r.overallVelocityY=u.y,r.overallVelocity=gl(u.x)>gl(u.y)?u.x:u.y,r.scale=a?WDe(a.pointers,n):1,r.rotation=a?VDe(a.pointers,n):0,r.maxPointers=t.prevInput?r.pointers.length>t.prevInput.maxPointers?r.pointers.length:t.prevInput.maxPointers:r.pointers.length,UDe(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,jk(f,c)&&(c=f),r.target=c}function GDe(e,r,t){var n=t.pointers.length,i=t.changedPointers.length,o=r&Tr&&n-i===0,a=r&(Ot|en)&&n-i===0;t.isFirst=!!o,t.isFinal=!!a,o&&(e.session={}),t.eventType=r,KDe(e,t),e.emit("hammer.input",t),e.recognize(t),e.session.prevInput=t}function xh(e){return e.trim().split(/\s+/g)}function Ff(e,r,t){Co(xh(r),function(n){e.addEventListener(n,t,!1)})}function jf(e,r,t){Co(xh(r),function(n){e.removeEventListener(n,t,!1)})}function PN(e){var r=e.ownerDocument||e;return r.defaultView||r.parentWindow||window}var Id=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){Zb(t.options.enable,[t])&&i.handler(o)},this.init()}var r=e.prototype;return r.handler=function(){},r.init=function(){this.evEl&&Ff(this.element,this.evEl,this.domHandler),this.evTarget&&Ff(this.target,this.evTarget,this.domHandler),this.evWin&&Ff(PN(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&jf(this.element,this.evEl,this.domHandler),this.evTarget&&jf(this.target,this.evTarget,this.domHandler),this.evWin&&jf(PN(this.element),this.evWin,this.domHandler)},e}();function yl(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 qDe={pointerdown:Tr,pointermove:Hl,pointerup:Ot,pointercancel:en,pointerout:en},YDe={2:zv,3:jDe,4:Fk,5:LDe},Q6="pointerdown",J6="pointermove pointerup pointercancel";xo.MSPointerEvent&&!xo.PointerEvent&&(Q6="MSPointerDown",J6="MSPointerMove MSPointerUp MSPointerCancel");var Z6=function(e){Yn(r,e);function r(){var n,i=r.prototype;return i.evEl=Q6,i.evWin=J6,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=qDe[s],u=YDe[i.pointerType]||i.pointerType,c=u===zv,d=yl(o,i.pointerId,"pointerId");l&Tr&&(i.button===0||c)?d<0&&(o.push(i),d=o.length-1):l&(Ot|en)&&(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}(Id);function Ch(e){return Array.prototype.slice.call(e,0)}function Lk(e,r,t){for(var n=[],i=[],o=0;o<e.length;){var a=r?e[o][r]:e[o];yl(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 XDe={touchstart:Tr,touchmove:Hl,touchend:Ot,touchcancel:en},QDe="touchstart touchmove touchend touchcancel",Bk=function(e){Yn(r,e);function r(){var n;return r.prototype.evTarget=QDe,n=e.apply(this,arguments)||this,n.targetIds={},n}var t=r.prototype;return t.handler=function(i){var o=XDe[i.type],a=JDe.call(this,i,o);a&&this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:zv,srcEvent:i})},r}(Id);function JDe(e,r){var t=Ch(e.touches),n=this.targetIds;if(r&(Tr|Hl)&&t.length===1)return n[t[0].identifier]=!0,[t,t];var i,o,a=Ch(e.changedTouches),s=[],l=this.target;if(o=t.filter(function(u){return jk(u.target,l)}),r===Tr)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&(Ot|en)&&delete n[a[i].identifier],i++;if(s.length)return[Lk(o.concat(s),"identifier",!0),s]}var ZDe={mousedown:Tr,mousemove:Hl,mouseup:Ot},eFe="mousedown",tFe="mousemove mouseup",zk=function(e){Yn(r,e);function r(){var n,i=r.prototype;return i.evEl=eFe,i.evWin=tFe,n=e.apply(this,arguments)||this,n.pressed=!1,n}var t=r.prototype;return t.handler=function(i){var o=ZDe[i.type];o&Tr&&i.button===0&&(this.pressed=!0),o&Hl&&i.which!==1&&(o=Ot),this.pressed&&(o&Ot&&(this.pressed=!1),this.callback(this.manager,o,{pointers:[i],changedPointers:[i],pointerType:Fk,srcEvent:i}))},r}(Id),rFe=2500,ON=25;function TN(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,rFe)}}function nFe(e,r){e&Tr?(this.primaryTouch=r.changedPointers[0].identifier,TN.call(this,r)):e&(Ot|en)&&TN.call(this,r)}function iFe(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<=ON&&a<=ON)return!0}return!1}var e9=function(){var e=function(r){Yn(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===zv,d=u.pointerType===Fk;if(!(d&&u.sourceCapabilities&&u.sourceCapabilities.firesTouchEvents)){if(c)nFe.call(om(om(a)),l,u);else if(d&&iFe.call(om(om(a)),u))return;a.callback(s,l,u)}},a.touch=new Bk(a.manager,a.handler),a.mouse=new zk(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}(Id);return e}();function oFe(e){var r,t=e.options.inputClass;return t?r=t:DDe?r=Z6:FDe?r=Bk:V6?r=e9:r=zk,new r(e,GDe)}function zu(e,r,t){return Array.isArray(e)?(Co(e,t[r],t),!0):!1}var Vm=1,jn=2,Vc=4,ja=8,ko=ja,kh=16,Wi=32,aFe=1;function sFe(){return aFe++}function sm(e,r){var t=r.manager;return t?t.get(e):e}function IN(e){return e&kh?"cancel":e&ja?"end":e&Vc?"move":e&jn?"start":""}var Uv=function(){function e(t){t===void 0&&(t={}),this.options=Ei({enable:!0},t),this.id=sFe(),this.manager=null,this.state=Vm,this.simultaneous={},this.requireFail=[]}var r=e.prototype;return r.set=function(n){return ml(this.options,n),this.manager&&this.manager.touchAction.update(),this},r.recognizeWith=function(n){if(zu(n,"recognizeWith",this))return this;var i=this.simultaneous;return n=sm(n,this),i[n.id]||(i[n.id]=n,n.recognizeWith(this)),this},r.dropRecognizeWith=function(n){return zu(n,"dropRecognizeWith",this)?this:(n=sm(n,this),delete this.simultaneous[n.id],this)},r.requireFailure=function(n){if(zu(n,"requireFailure",this))return this;var i=this.requireFail;return n=sm(n,this),yl(i,n)===-1&&(i.push(n),n.requireFailure(this)),this},r.dropRequireFailure=function(n){if(zu(n,"dropRequireFailure",this))return this;n=sm(n,this);var i=yl(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<ja&&a(i.options.event+IN(o)),a(i.options.event),n.additionalEvent&&a(n.additionalEvent),o>=ja&&a(i.options.event+IN(o))},r.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=Wi},r.canEmit=function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(Wi|Vm)))return!1;n++}return!0},r.recognize=function(n){var i=ml({},n);if(!Zb(this.options.enable,[this,i])){this.reset(),this.state=Wi;return}this.state&(ko|kh|Wi)&&(this.state=Vm),this.state=this.process(i),this.state&(jn|Vc|ja|kh)&&this.tryEmit(i)},r.process=function(n){},r.getTouchAction=function(){},r.reset=function(){},e}(),iE=function(e){Yn(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,Ei({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[rE]},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&Tr&&this.count===0)return this.failTimeout();if(l&&u&&s){if(i.eventType!==Ot)return this.failTimeout();var c=this.pTime?i.timeStamp-this.pTime<a.interval:!0,d=!this.pCenter||oy(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=ko,o.tryEmit()},a.interval),jn):ko}return Wi},t.failTimeout=function(){var i=this;return this._timer=setTimeout(function(){i.state=Wi},this.options.interval),Wi},t.reset=function(){clearTimeout(this._timer)},t.emit=function(){this.state===ko&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},r}(Uv),Uc=function(e){Yn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Ei({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&(jn|Vc),l=this.attrTest(i);return s&&(a&en||!l)?o|kh:s||l?a&Ot?o|ja:o&jn?o|Vc:jn:Wi},r}(Uv);function t9(e){return e===Wc?"down":e===Vv?"up":e===Hv?"left":e===Wv?"right":""}var Hk=function(e){Yn(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,Ei({event:"pan",threshold:10,pointers:1,direction:U6},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&Ji&&o.push(Eh),i&el&&o.push(_h),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&Ji?(l=u===0?ny:u<0?Hv:Wv,a=u!==this.pX,s=Math.abs(i.deltaX)):(l=c===0?ny:c<0?Vv:Wc,a=c!==this.pY,s=Math.abs(i.deltaY))),i.direction=l,a&&s>o.threshold&&l&o.direction},t.attrTest=function(i){return Uc.prototype.attrTest.call(this,i)&&(this.state&jn||!(this.state&jn)&&this.directionTest(i))},t.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var o=t9(i.direction);o&&(i.additionalEvent=this.options.event+o),e.prototype.emit.call(this,i)},r}(Uc),r9=function(e){Yn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Ei({event:"swipe",threshold:10,velocity:.3,direction:Ji|el,pointers:1},n))||this}var t=r.prototype;return t.getTouchAction=function(){return Hk.prototype.getTouchAction.call(this)},t.attrTest=function(i){var o=this.options.direction,a;return o&(Ji|el)?a=i.overallVelocity:o&Ji?a=i.overallVelocityX:o&el&&(a=i.overallVelocityY),e.prototype.attrTest.call(this,i)&&o&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&gl(a)>this.options.velocity&&i.eventType&Ot},t.emit=function(i){var o=t9(i.offsetDirection);o&&this.manager.emit(this.options.event+o,i),this.manager.emit(this.options.event,i)},r}(Uc),n9=function(e){Yn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Ei({event:"pinch",threshold:0,pointers:2},n))||this}var t=r.prototype;return t.getTouchAction=function(){return[Zs]},t.attrTest=function(i){return e.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&jn)},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}(Uc),i9=function(e){Yn(r,e);function r(n){return n===void 0&&(n={}),e.call(this,Ei({event:"rotate",threshold:0,pointers:2},n))||this}var t=r.prototype;return t.getTouchAction=function(){return[Zs]},t.attrTest=function(i){return e.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&jn)},r}(Uc),o9=function(e){Yn(r,e);function r(n){var i;return n===void 0&&(n={}),i=e.call(this,Ei({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[W6]},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&(Ot|en)&&!u)this.reset();else if(i.eventType&Tr)this.reset(),this._timer=setTimeout(function(){o.state=ko,o.tryEmit()},a.time);else if(i.eventType&Ot)return ko;return Wi},t.reset=function(){clearTimeout(this._timer)},t.emit=function(i){this.state===ko&&(i&&i.eventType&Ot?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=Dk(),this.manager.emit(this.options.event,this._input)))},r}(Uv),a9={domEvents:!1,touchAction:H6,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},RN=[[i9,{enable:!1}],[n9,{enable:!1},["rotate"]],[r9,{direction:Ji}],[Hk,{direction:Ji},["swipe"]],[iE],[iE,{event:"doubletap",taps:2},["tap"]],[o9]],lFe=1,MN=2;function NN(e,r){var t=e.element;if(t.style){var n;Co(e.options.cssProps,function(i,o){n=Jb(t.style,o),r?(e.oldCssProps[n]=t.style[n],t.style[n]=i):t.style[n]=e.oldCssProps[n]||""}),r||(e.oldCssProps={})}}function uFe(e,r){var t=document.createEvent("Event");t.initEvent(e,!0,!0),t.gesture=r,r.target.dispatchEvent(t)}var AN=function(){function e(t,n){var i=this;this.options=ml({},a9,n||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=oFe(this),this.touchAction=new G6(this,this.options.touchAction),NN(this,!0),Co(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 ml(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?MN:lFe},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&ko)&&(i.curRecognizer=null,s=null);for(var l=0;l<a.length;)o=a[l],i.stopped!==MN&&(!s||o===s||o.canRecognizeWith(s))?o.recognize(n):o.reset(),!s&&o.state&(jn|Vc|ja)&&(i.curRecognizer=o,s=o),l++}},r.get=function(n){if(n instanceof Uv)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(zu(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(zu(n,"remove",this))return this;var i=this.get(n);if(n){var o=this.recognizers,a=yl(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 Co(xh(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 Co(xh(n),function(a){i?o[a]&&o[a].splice(yl(o[a],i),1):delete o[a]}),this},r.emit=function(n,i){this.options.domEvents&&uFe(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&&NN(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),cFe={touchstart:Tr,touchmove:Hl,touchend:Ot,touchcancel:en},dFe="touchstart",fFe="touchstart touchmove touchend touchcancel",hFe=function(e){Yn(r,e);function r(){var n,i=r.prototype;return i.evTarget=dFe,i.evWin=fFe,n=e.apply(this,arguments)||this,n.started=!1,n}var t=r.prototype;return t.handler=function(i){var o=cFe[i.type];if(o===Tr&&(this.started=!0),!!this.started){var a=vFe.call(this,i,o);o&(Ot|en)&&a[0].length-a[1].length===0&&(this.started=!1),this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:zv,srcEvent:i})}},r}(Id);function vFe(e,r){var t=Ch(e.touches),n=Ch(e.changedTouches);return r&(Ot|en)&&(t=Lk(t.concat(n),"identifier",!0)),[t,n]}function s9(e,r,t){var n="DEPRECATED METHOD: "+r+`
|
170
|
+
`+t+` AT
|
171
|
+
`;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 l9=s9(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`."),pFe=s9(function(e,r){return l9(e,r,!0)},"merge","Use `assign`.");function mFe(e,r,t){var n=r.prototype,i;i=e.prototype=Object.create(n),i.constructor=e,i._super=n,t&&ml(i,t)}function DN(e,r){return function(){return e.apply(r,arguments)}}var u9=function(){var e=function(t,n){return n===void 0&&(n={}),new AN(t,Ei({recognizers:RN.concat()},n))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=U6,e.DIRECTION_DOWN=Wc,e.DIRECTION_LEFT=Hv,e.DIRECTION_RIGHT=Wv,e.DIRECTION_UP=Vv,e.DIRECTION_HORIZONTAL=Ji,e.DIRECTION_VERTICAL=el,e.DIRECTION_NONE=ny,e.DIRECTION_DOWN=Wc,e.INPUT_START=Tr,e.INPUT_MOVE=Hl,e.INPUT_END=Ot,e.INPUT_CANCEL=en,e.STATE_POSSIBLE=Vm,e.STATE_BEGAN=jn,e.STATE_CHANGED=Vc,e.STATE_ENDED=ja,e.STATE_RECOGNIZED=ko,e.STATE_CANCELLED=kh,e.STATE_FAILED=Wi,e.Manager=AN,e.Input=Id,e.TouchAction=G6,e.TouchInput=Bk,e.MouseInput=zk,e.PointerEventInput=Z6,e.TouchMouseInput=e9,e.SingleTouchInput=hFe,e.Recognizer=Uv,e.AttrRecognizer=Uc,e.Tap=iE,e.Pan=Hk,e.Swipe=r9,e.Pinch=n9,e.Rotate=i9,e.Press=o9,e.on=Ff,e.off=jf,e.each=Co,e.merge=pFe,e.extend=l9,e.bindFn=DN,e.assign=ml,e.inherit=mFe,e.bindFn=DN,e.prefixed=Jb,e.toArray=Ch,e.inArray=yl,e.uniqueArray=Lk,e.splitStr=xh,e.boolOrFn=Zb,e.hasParent=jk,e.addEventListeners=Ff,e.removeEventListeners=jf,e.defaults=ml({},a9,{preset:RN}),e}();u9.defaults;var gFe=u9;function c9(e,r){var t=typeof as<"u"&&Bl(e)||e["@@iterator"];if(!t){if(Ve(e)||(t=yFe(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.
|
172
|
+
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 yFe(e,r){var t;if(e){if(typeof e=="string")return FN(e,r);var n=rr(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Ll(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FN(e,r)}}function FN(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}as("DELETE");function e1(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return bFe(r.length?r:[ry()])}function bFe(e){var r=$Fe(e),t=pt(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 $Fe(){for(var e=wFe(),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 wFe(){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 SFe(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}var Wk=typeof window<"u"?window.Hammer||gFe:function(){return SFe()};function Vi(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=Wk(this._dom.overlay);n.on("tap",X(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push(function(){n.destroy()});var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Ye(i).call(i,function(o){n.on(o,function(a){a.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(o){_Fe(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()}}d8(Vi.prototype);Vi.current=null;Vi.prototype.destroy=function(){var e,r;this.deactivate();var t=c9(Qs(e=Eo(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()}};Vi.prototype.activate=function(){Vi.current&&Vi.current.deactivate(),Vi.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)};Vi.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")};Vi.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function _Fe(e,r){for(;e;){if(e===r)return!0;e=e.parentNode}return!1}var EFe=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,xFe=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,CFe=/^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,kFe=/^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 oa(e){if(e)for(;e.hasChildNodes()===!0;){var r=e.firstChild;r&&(oa(r),e.removeChild(r))}}function tc(e){return e instanceof String||typeof e=="string"}function jN(e){return Ge(e)==="object"&&e!==null}function bl(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 d9(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||Ge(r[n])!=="object")bl(e,r,n,t);else{var i=e[n],o=r[n];jN(i)&&jN(o)&&d9(i,o,t)}}function Rd(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ve(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?Je(r[o],t[o],!1,n):bl(r,t,o,n);else{if(Ve(t[o]))throw new TypeError("Arrays are not supported by deepExtend");bl(r,t,o,n)}}return r}function ay(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ve(t))throw new TypeError("Arrays are not supported by deepExtend");for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&!Fa(e).call(e,i))if(t[i]&&t[i].constructor===Object)r[i]===void 0&&(r[i]={}),r[i].constructor===Object?Je(r[i],t[i]):bl(r,t,i,n);else if(Ve(t[i])){r[i]=[];for(var o=0;o<t[i].length;o++)r[i].push(t[i][o])}else bl(r,t,i,n);return r}function Je(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(Ge(r[i])==="object"&&r[i]!==null&&gN(r[i])===Object.prototype)e[i]===void 0?e[i]=Je({},r[i],t):Ge(e[i])==="object"&&e[i]!==null&&gN(e[i])===Object.prototype?Je(e[i],r[i],t):bl(e,r,i,n);else if(Ve(r[i])){var o;e[i]=rr(o=r[i]).call(o)}else bl(e,r,i,n);return e}function sy(e,r){var t;return Nk(t=[]).call(t,Bi(e),[r])}function PFe(e){return rr(e).call(e)}function OFe(e){return e.getBoundingClientRect().left}function TFe(e){return e.getBoundingClientRect().top}function Oe(e,r){if(Ve(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 Vk(e){var r;switch(e.length){case 3:case 4:return r=xFe.exec(e),r?{r:ci(r[1]+r[1],16),g:ci(r[2]+r[2],16),b:ci(r[3]+r[3],16)}:null;case 6:case 7:return r=EFe.exec(e),r?{r:ci(r[1],16),g:ci(r[2],16),b:ci(r[3],16)}:null;default:return null}}function Mn(e,r){if(Fa(e).call(e,"rgba"))return e;if(Fa(e).call(e,"rgb")){var t=e.substr(De(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+t[0]+","+t[1]+","+t[2]+","+r+")"}else{var n=Vk(e);return n==null?e:"rgba("+n.r+","+n.g+","+n.b+","+r+")"}}function f9(e,r,t){var n;return"#"+rr(n=((1<<24)+(e<<16)+(r<<8)+t).toString(16)).call(n,1)}function oE(e,r){if(tc(e)){var t=e;if(v9(t)){var n,i=Hc(n=t.substr(4).substr(0,t.length-5).split(",")).call(n,function(d){return ci(d)});t=f9(i[0],i[1],i[2])}if(h9(t)===!0){var o=IFe(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=aE(s.h,s.s,s.v),u=aE(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:tc(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:tc(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 gf(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 Um(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 aE(e,r,t){var n=Um(e,r,t);return f9(n.r,n.g,n.b)}function IFe(e){var r=Vk(e);if(!r)throw new TypeError("'".concat(e,"' is not a valid color."));return gf(r.r,r.g,r.b)}function h9(e){var r=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return r}function v9(e){return CFe.test(e)}function RFe(e){return kFe.test(e)}function La(e){if(e===null||Ge(e)!=="object")return null;if(e instanceof Element)return e;var r=Js(e);for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&Ge(e[t])=="object"&&(r[t]=La(e[t]));return r}function Tn(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&&Ge(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,$){o(v[$])||(v[$]={});var m=p[$],g=v[$];for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(g[y]=m[y])},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]=Js(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 MFe={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 aa(e,r){var t;Ve(r)||(r=[r]);var n=c9(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 NFe={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"},AFe=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;re(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 ne(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 NFe[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),tc(t)===!0){if(v9(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(RFe(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(h9(t)===!0){var l=Vk(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: "+Lv(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=Pt({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Qi(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=Pt({},t)),this.color=t;var i=gf(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=gf(this.color.r,this.color.g,this.color.b);n.v=t/100;var i=Um(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=gf(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),Bv(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=X(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=X(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=X(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=X(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 Wk(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=Um(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,$=gf(this.color.r,this.color.g,this.color.b);$.h=v,$.s=p;var m=Um($.h,$.s,$.v);m.a=this.color.a,this.color=m,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 sE(){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(sE.apply(void 0,Bi(rr(r).call(r,1)))),n}var DFe=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};re(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},Pt(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new AFe(i),this.wrapper=void 0}return ne(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(Ve(t))this.options.filter=t.join();else if(Ge(t)==="object"){if(t==null)throw new TypeError("options cannot be null");t.container!==void 0&&(this.options.container=t.container),Kr(t)!==void 0&&(this.options.filter=Kr(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);Kr(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=Kr(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||De(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 Ye(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(sE("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&&De(t).call(t,n)!==-1&&(a=De(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),$=this._makeItem(i,p,u,h);c!==""&&this.popupHistory[$]!==d&&(this.popupHistory[$]=d,this._setupPopup(c,$))}},{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=Qi(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Qi(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&&(Ge(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=Kr(this.options),s=!1;for(var l in t)if(Object.prototype.hasOwnProperty.call(t,l)){o=!0;var u=t[l],c=sy(n,l);if(typeof a=="function"&&(o=a(l,n),o===!1&&!Ve(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(Ve(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=sy(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(sE("pre","const options = "+Lv(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}(),FFe=function(){function e(r,t){re(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 ne(e,[{key:"setPosition",value:function(t,n){this.x=ci(t),this.y=ci(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}(),tf=!1,LN,lE="background: #FFeeee; color: #dd0000",jFe=function(){function e(){re(this,e)}return ne(e,null,[{key:"validate",value:function(t,n,i){tf=!1,LN=n;var o=n;return i!==void 0&&(o=n[i]),e.parse(t,o,[]),tf}},{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),lE)},u=e.getType(n[t]),c=a[u];c!==void 0?e.getType(c)==="array"&&De(c).call(c,n[t])===-1?(l('Invalid option detected in "'+t+'". Allowed values are:'+e.print(c)+' not "'+n[t]+'". '),tf=!0):u==="object"&&o!=="__any__"&&(s=sy(s,t),e.parse(n[t],i[o],s)):a.any===void 0&&(l('Invalid type received for "'+t+'". Expected: '+e.print(vt(a))+". Received ["+u+'] "'+n[t]+'"'),tf=!0)}},{key:"getType",value:function(t){var n=Ge(t);return n==="object"?t===null?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Ve(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,LN,[],!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+`"?
|
173
|
+
|
174
|
+
`: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(vt(n))+e.printLocation(i,t),console.error('%cUnknown option detected: "'+t+'"'+u,lE),tf=!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],sy(i,d));a>h.distance&&(s=h.closestMatch,l=h.path,a=h.distance,c=h.indexMatch)}else{var v;De(v=d.toLowerCase()).call(v,u)!==-1&&(c=d),f=e.levenshteinDistance(t,d),a>f&&(s=d,l=PFe(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:
|
175
|
+
`,o=`
|
176
|
+
|
177
|
+
`+i+`options = {
|
178
|
+
`,a=0;a<t.length;a++){for(var s=0;s<a+1;s++)o+=" ";o+=t[a]+`: {
|
179
|
+
`}for(var l=0;l<t.length+1;l++)o+=" ";o+=n+`
|
180
|
+
`;for(var u=0;u<t.length+1;u++){for(var c=0;c<t.length-u;c++)o+=" ";o+=`}
|
181
|
+
`}return o+`
|
182
|
+
|
183
|
+
`}},{key:"print",value:function(t){return Lv(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}(),LFe=Vi,BFe=DFe,rc=Wk,zFe=FFe,p9=lE,HFe=jFe;function WFe(e){return Sa=e,GFe()}var m9={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},Uk=Js(m9);Uk.color="color.color";Uk.style="dashes";var Er={NULL:0,DELIMITER:1,IDENTIFIER:2,UNKNOWN:3},BN={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},Sa="",Kc=0,Pe="",$e="",zr=Er.NULL;function VFe(){Kc=0,Pe=Sa.charAt(0)}function Bt(){Kc++,Pe=Sa.charAt(Kc)}function fu(){return Sa.charAt(Kc+1)}function zN(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 Ga(e,r){if(e||(e={}),r)for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t]);return e}function UFe(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 g9(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=Ga(i.attr,e.node))),t=o.length-1;t>=0;t--){var s,l=o[t];l.nodes||(l.nodes=[]),De(s=l.nodes).call(s,i)===-1&&l.nodes.push(i)}r.attr&&(i.attr=Ga(i.attr,r.attr))}function KFe(e,r){if(e.edges||(e.edges=[]),e.edges.push(r),e.edge){var t=Ga({},e.edge);r.attr=Ga(t,r.attr)}}function y9(e,r,t,n,i){var o={from:r,to:t,type:n};return e.edge&&(o.attr=Ga({},e.edge)),o.attr=Ga(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 Ze(){for(zr=Er.NULL,$e="";Pe===" "||Pe===" "||Pe===`
|
184
|
+
`||Pe==="\r";)Bt();do{var e=!1;if(Pe==="#"){for(var r=Kc-1;Sa.charAt(r)===" "||Sa.charAt(r)===" ";)r--;if(Sa.charAt(r)===`
|
185
|
+
`||Sa.charAt(r)===""){for(;Pe!=""&&Pe!=`
|
186
|
+
`;)Bt();e=!0}}if(Pe==="/"&&fu()==="/"){for(;Pe!=""&&Pe!=`
|
187
|
+
`;)Bt();e=!0}if(Pe==="/"&&fu()==="*"){for(;Pe!="";)if(Pe==="*"&&fu()==="/"){Bt(),Bt();break}else Bt();e=!0}for(;Pe===" "||Pe===" "||Pe===`
|
188
|
+
`||Pe==="\r";)Bt()}while(e);if(Pe===""){zr=Er.DELIMITER;return}var t=Pe+fu();if(BN[t]){zr=Er.DELIMITER,$e=t,Bt(),Bt();return}if(BN[Pe]){zr=Er.DELIMITER,$e=Pe,Bt();return}if(zN(Pe)||Pe==="-"){for($e+=Pe,Bt();zN(Pe);)$e+=Pe,Bt();$e==="false"?$e=!1:$e==="true"?$e=!0:isNaN(Number($e))||($e=Number($e)),zr=Er.IDENTIFIER;return}if(Pe==='"'){for(Bt();Pe!=""&&(Pe!='"'||Pe==='"'&&fu()==='"');)Pe==='"'?($e+=Pe,Bt()):Pe==="\\"&&fu()==="n"?($e+=`
|
189
|
+
`,Bt()):$e+=Pe,Bt();if(Pe!='"')throw xr('End of string " expected');Bt(),zr=Er.IDENTIFIER;return}for(zr=Er.UNKNOWN;Pe!="";)$e+=Pe,Bt();throw new SyntaxError('Syntax error in part "'+S9($e,30)+'"')}function GFe(){var e={};if(VFe(),Ze(),$e==="strict"&&(e.strict=!0,Ze()),($e==="graph"||$e==="digraph")&&(e.type=$e,Ze()),zr===Er.IDENTIFIER&&(e.id=$e,Ze()),$e!="{")throw xr("Angle bracket { expected");if(Ze(),b9(e),$e!="}")throw xr("Angle bracket } expected");if(Ze(),$e!=="")throw xr("End of file expected");return Ze(),delete e.node,delete e.edge,delete e.graph,e}function b9(e){for(;$e!==""&&$e!="}";)qFe(e),$e===";"&&Ze()}function qFe(e){var r=$9(e);if(r){w9(e,r);return}var t=YFe(e);if(!t){if(zr!=Er.IDENTIFIER)throw xr("Identifier expected");var n=$e;if(Ze(),$e==="="){if(Ze(),zr!=Er.IDENTIFIER)throw xr("Identifier expected");e[n]=$e,Ze()}else XFe(e,n)}}function $9(e){var r=null;if($e==="subgraph"&&(r={},r.type="subgraph",Ze(),zr===Er.IDENTIFIER&&(r.id=$e,Ze())),$e==="{"){if(Ze(),r||(r={}),r.parent=e,r.node=e.node,r.edge=e.edge,r.graph=e.graph,b9(r),$e!="}")throw xr("Angle bracket } expected");Ze(),delete r.node,delete r.edge,delete r.graph,delete r.parent,e.subgraphs||(e.subgraphs=[]),e.subgraphs.push(r)}return r}function YFe(e){return $e==="node"?(Ze(),e.node=Lf(),"node"):$e==="edge"?(Ze(),e.edge=Lf(),"edge"):$e==="graph"?(Ze(),e.graph=Lf(),"graph"):null}function XFe(e,r){var t={id:r},n=Lf();n&&(t.attr=n),g9(e,t),w9(e,r)}function w9(e,r){for(;$e==="->"||$e==="--";){var t,n=$e;Ze();var i=$9(e);if(i)t=i;else{if(zr!=Er.IDENTIFIER)throw xr("Identifier or subgraph expected");t=$e,g9(e,{id:t}),Ze()}var o=Lf(),a=y9(e,r,t,n,o);KFe(e,a),r=t}}function Lf(){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;$e==="[";){for(Ze(),r={};$e!==""&&$e!="]";){if(zr!=Er.IDENTIFIER)throw xr("Attribute name expected");var a=$e;if(Ze(),$e!="=")throw xr("Equal sign = expected");if(Ze(),zr!=Er.IDENTIFIER)throw xr("Attribute value expected");var s=$e;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),Ze(),$e==","&&Ze()}if($e!="]")throw xr("Bracket ] expected");Ze()}if(Fa(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 xr("Invalid value of arrows");else i[e].name==="dir"&&(u.dir=e);var c=i[u.dir].value;if(!Fa(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 xr('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}}},Eo(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 xr('Invalid dir type "'+c+'"');Eo(i).call(i,u.dir,1)}var v;if(Fa(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++)UFe(i[e].attr,i[e].name,i[e].value);return r}function xr(e){return new SyntaxError(e+', got "'+S9($e,30)+'" (char '+Kc+")")}function S9(e,r){return e.length<=r?e:e.substr(0,27)+"..."}function QFe(e,r,t){Ve(e)?Ye(e).call(e,function(n){Ve(r)?Ye(r).call(r,function(i){t(n,i)}):t(n,r)}):Ve(r)?Ye(r).call(r,function(n){t(e,n)}):t(e,r)}function pw(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 HN(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=r[n];Ve(i)?Ye(i).call(i,function(o){pw(t,o,e[n])}):typeof i=="string"?pw(t,i,e[n]):pw(t,n,e[n])}return t}function JFe(e){var r=WFe(e),t={nodes:[],edges:[],options:{}};if(r.nodes){var n;Ye(n=r.nodes).call(n,function(a){var s={id:a.id,label:String(a.label||a.id)};Ga(s,HN(a.attr,m9)),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 Ga(l,HN(s.attr,Uk)),l.arrows==null&&s.type==="->"&&(l.arrows="to"),l};Ye(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;Ye(u=a.from.edges).call(u,function(d){var f=o(d);t.edges.push(f)})}if(QFe(s,l,function(d,f){var h=y9(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;Ye(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 ZFe(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=Hc(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=Hc(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 eje={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"},tje={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"},rje={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"},nje={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"},ije={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"},oje={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ó"},aje={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},sje={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},lje={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},uje={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"},cje={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"},dje=Object.freeze({__proto__:null,cn:sje,cs:cje,de:tje,en:eje,es:rje,fr:uje,it:nje,nl:ije,pt:oje,ru:aje,uk:lje});function fje(e,r){try{var t=r.split(/[-_ /]/,2),n=pt(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(Nk(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 hje=function(){function e(){re(this,e),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return ne(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}(),vje=function(){function e(r){re(this,e),this.images={},this.imageBroken={},this.callback=r}return ne(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 hje;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}(),_9={exports:{}},pje=Fe,mje=pje(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),gje=Fe,yje=Xt,bje=Yo,WN=mje,Km=Object.isExtensible,$je=gje(function(){Km(1)}),wje=$je||WN?function(r){return!yje(r)||WN&&bje(r)==="ArrayBuffer"?!1:Km?Km(r):!0}:Km,Sje=Fe,E9=!Sje(function(){return Object.isExtensible(Object.preventExtensions({}))}),_je=we,Eje=Le,xje=Iv,Cje=Xt,Kk=Qt,kje=Sn.f,VN=Av,Pje=Ub,Gk=wje,Oje=Nb,Tje=E9,x9=!1,Bo=Oje("meta"),Ije=0,qk=function(e){kje(e,Bo,{value:{objectID:"O"+Ije++,weakData:{}}})},Rje=function(e,r){if(!Cje(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Kk(e,Bo)){if(!Gk(e))return"F";if(!r)return"E";qk(e)}return e[Bo].objectID},Mje=function(e,r){if(!Kk(e,Bo)){if(!Gk(e))return!0;if(!r)return!1;qk(e)}return e[Bo].weakData},Nje=function(e){return Tje&&x9&&Gk(e)&&!Kk(e,Bo)&&qk(e),e},Aje=function(){Dje.enable=function(){},x9=!0;var e=VN.f,r=Eje([].splice),t={};t[Bo]=1,e(t).length&&(VN.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Bo){r(i,o,1);break}return i},_je({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Pje.f}))},Dje=_9.exports={enable:Aje,fastKey:Rje,getWeakData:Mje,onFreeze:Nje};xje[Bo]=!0;var t1=_9.exports,Fje=Ov,jje=wn,Lje=_n,Bje=_d,zje=x8,Hje=qn,UN=Et,Wje=T8,Vje=Wb,KN=E8,Uje=TypeError,Gm=function(e,r){this.stopped=e,this.result=r},GN=Gm.prototype,Yk=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=Fje(r,n),u,c,d,f,h,v,p,$=function(g){return u&&KN(u,"normal",g),new Gm(!0,g)},m=function(g){return i?(Lje(g),s?l(g[0],g[1],$):l(g[0],g[1])):s?l(g,$):l(g)};if(o)u=e.iterator;else if(a)u=e;else{if(c=Vje(e),!c)throw new Uje(Bje(e)+" is not iterable");if(zje(c)){for(d=0,f=Hje(e);f>d;d++)if(h=m(e[d]),h&&UN(GN,h))return h;return new Gm(!1)}u=Wje(e,c)}for(v=o?e.next:u.next;!(p=jje(v,u)).done;){try{h=m(p.value)}catch(g){KN(u,"throw",g)}if(typeof h=="object"&&h&&UN(GN,h))return h}return new Gm(!1)},Kje=Et,Gje=TypeError,Xk=function(e,r){if(Kje(r,e))return e;throw new Gje("Incorrect invocation")},qje=we,Yje=yt,Xje=t1,Qje=Fe,Jje=xd,Zje=Yk,e3e=Xk,t3e=qt,r3e=Xt,n3e=wd,i3e=kd,o3e=Sn.f,a3e=os.forEach,s3e=Yt,C9=jl,l3e=C9.set,u3e=C9.getterFor,Qk=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=Yje[e],s=a&&a.prototype,l={},u;if(!s3e||!t3e(a)||!(i||s.forEach&&!Qje(function(){new a().entries().next()})))u=t.getConstructor(r,e,n,o),Xje.enable();else{u=r(function(f,h){l3e(e3e(f,c),{type:e,collection:new a}),n3e(h)||Zje(h,f[o],{that:f,AS_ENTRIES:n})});var c=u.prototype,d=u3e(e);a3e(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(f){var h=f==="add"||f==="set";f in s&&!(i&&f==="clear")&&Jje(c,f,function(v,p){var $=d(this).collection;if(!h&&i&&!r3e(v))return f==="get"?void 0:!1;var m=$[f](v===0?0:v,p);return h?this:m})}),i||o3e(c,"size",{configurable:!0,get:function(){return d(this).collection.size}})}return i3e(u,e,!1,!0),l[e]=u,qje({global:!0,forced:!0},l),i||t.setStrong(u,e,n),u},c3e=Mv,Jk=function(e,r,t){for(var n in r)t&&t.unsafe&&e[n]?e[n]=r[n]:c3e(e,n,r[n],t);return e},d3e=Gn,f3e=Pk,h3e=bt,v3e=Yt,qN=h3e("species"),p3e=function(e){var r=d3e(e);v3e&&r&&!r[qN]&&f3e(r,qN,{configurable:!0,get:function(){return this}})},m3e=Cd,g3e=Pk,YN=Jk,y3e=Ov,b3e=Xk,$3e=wd,w3e=Yk,S3e=_k,lm=Ek,_3e=p3e,rf=Yt,XN=t1.fastKey,k9=jl,QN=k9.set,mw=k9.getterFor,P9={getConstructor:function(e,r,t,n){var i=e(function(u,c){b3e(u,o),QN(u,{type:r,index:m3e(null),first:void 0,last:void 0,size:0}),rf||(u.size=0),$3e(c)||w3e(c,u[n],{that:u,AS_ENTRIES:t})}),o=i.prototype,a=mw(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=XN(c,!0),key:c,value:d,previous:v=f.last,next:void 0,removed:!1},f.first||(f.first=h),v&&(v.next=h),rf?f.size++:u.size++,p!=="F"&&(f.index[p]=h)),u},l=function(u,c){var d=a(u),f=XN(c),h;if(f!=="F")return d.index[f];for(h=d.first;h;h=h.next)if(h.key===c)return h};return YN(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,rf?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),rf?d.size--:c.size--}return!!f},forEach:function(c){for(var d=a(this),f=y3e(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)}}),YN(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)}}),rf&&g3e(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=mw(r),o=mw(n);S3e(e,r,function(a,s){QN(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,lm(void 0,!0)):lm(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},t?"entries":"values",!t,!0),_3e(r)}},E3e=Qk,x3e=P9;E3e("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},x3e);var C3e=je,k3e=C3e.Map,P3e=k3e,O3e=P3e,T3e=O3e,O9=pe(T3e),I3e=function(){function e(){re(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},Pt(this.options,this.defaultOptions)}return ne(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)&&De(n).call(n,i)===-1){var o=t[i];this.add(i,o)}}}},{key:"clear",value:function(){this._groups=new O9,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}(),R3e=we;R3e({target:"Number",stat:!0},{isNaN:function(r){return r!==r}});var M3e=je,N3e=M3e.Number.isNaN,A3e=N3e,D3e=A3e,F3e=D3e,uE=pe(F3e),j3e=yt,L3e=j3e.isFinite,B3e=Number.isFinite||function(r){return typeof r=="number"&&L3e(r)},z3e=we,H3e=B3e;z3e({target:"Number",stat:!0},{isFinite:H3e});var W3e=je,V3e=W3e.Number.isFinite,U3e=V3e,K3e=U3e,G3e=K3e,Ms=pe(G3e),q3e=we,Y3e=os.some,X3e=Td,Q3e=X3e("some");q3e({target:"Array",proto:!0,forced:!Q3e},{some:function(r){return Y3e(this,r,arguments.length>1?arguments[1]:void 0)}});var J3e=Jt,Z3e=J3e("Array").some,eLe=Et,tLe=Z3e,gw=Array.prototype,rLe=function(e){var r=e.some;return e===gw||eLe(gw,e)&&r===gw.some?tLe:r},nLe=rLe,iLe=nLe,oLe=iLe,aLe=pe(oLe),sLe=je,lLe=sLe.Object.getOwnPropertySymbols,uLe=lLe,cLe=uLe,dLe=cLe,qa=pe(dLe),T9={exports:{}},fLe=we,hLe=Fe,vLe=oo,I9=$d.f,R9=Yt,pLe=!R9||hLe(function(){I9(1)});fLe({target:"Object",stat:!0,forced:pLe,sham:!R9},{getOwnPropertyDescriptor:function(r,t){return I9(vLe(r),t)}});var mLe=je,M9=mLe.Object,gLe=T9.exports=function(r,t){return M9.getOwnPropertyDescriptor(r,t)};M9.getOwnPropertyDescriptor.sham&&(gLe.sham=!0);var yLe=T9.exports,bLe=yLe,N9=bLe,$Le=N9,ss=pe($Le),wLe=we,SLe=Yt,_Le=j2e,ELe=oo,xLe=$d,CLe=Od;wLe({target:"Object",stat:!0,sham:!SLe},{getOwnPropertyDescriptors:function(r){for(var t=ELe(r),n=xLe.f,i=_Le(t),o={},a=0,s,l;i.length>a;)l=n(t,s=i[a++]),l!==void 0&&CLe(o,s,l);return o}});var kLe=je,PLe=kLe.Object.getOwnPropertyDescriptors,OLe=PLe,TLe=OLe,ILe=TLe,Ya=pe(ILe),A9={exports:{}},RLe=we,MLe=Yt,JN=Bb.f;RLe({target:"Object",stat:!0,forced:Object.defineProperties!==JN,sham:!MLe},{defineProperties:JN});var NLe=je,D9=NLe.Object,ALe=A9.exports=function(r,t){return D9.defineProperties(r,t)};D9.defineProperties.sham&&(ALe.sham=!0);var DLe=A9.exports,FLe=DLe,jLe=FLe,LLe=jLe,r1=pe(LLe),BLe=B8,n1=pe(BLe);function i1(e,r,t){return r=b6(r),r in e?Vb(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var F9=yt,zLe=Fe,HLe=Le,WLe=ao,VLe=I6.trim,ULe=Ak,KLe=HLe("".charAt),ly=F9.parseFloat,ZN=F9.Symbol,eA=ZN&&ZN.iterator,GLe=1/ly(ULe+"-0")!==-1/0||eA&&!zLe(function(){ly(Object(eA))}),qLe=GLe?function(r){var t=VLe(WLe(r)),n=ly(t);return n===0&&KLe(t,0)==="-"?-0:n}:ly,YLe=we,tA=qLe;YLe({global:!0,forced:parseFloat!==tA},{parseFloat:tA});var XLe=je,QLe=XLe.parseFloat,JLe=QLe,ZLe=JLe,e5e=ZLe,j9=pe(e5e),t5e=we,r5e=Fe,n5e=Ub.f,i5e=r5e(function(){return!Object.getOwnPropertyNames(1)});t5e({target:"Object",stat:!0,forced:i5e},{getOwnPropertyNames:n5e});var o5e=je,a5e=o5e.Object,s5e=function(r){return a5e.getOwnPropertyNames(r)},l5e=s5e,u5e=l5e,c5e=u5e,d5e=pe(c5e);function Zk(e,r){var t=["node","edge","label"],n=!0,i=aa(r,"chosen");if(typeof i=="boolean")n=i;else if(Ge(i)==="object"){if(De(t).call(t,e)===-1)throw new Error("choosify: subOption '"+e+"' should be one of '"+t.join("', '")+"'");var o=aa(r,["chosen",e]);(typeof o=="boolean"||typeof o=="function")&&(n=o)}return n}function cE(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 uy(e){return typeof e=="string"&&e!==""}function L9(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 f5e=Jt,h5e=f5e("Array").values,v5e=h5e,p5e=v5e,m5e=Fl,g5e=Qt,y5e=Et,b5e=p5e,yw=Array.prototype,$5e={DOMTokenList:!0,NodeList:!0},w5e=function(e){var r=e.values;return e===yw||y5e(yw,e)&&r===yw.values||g5e($5e,m5e(e))?b5e:r},S5e=w5e,B9=pe(S5e),_5e=function(){function e(r){re(this,e),this.measureText=r,this.current=0,this.width=0,this.height=0,this.lines=[]}return ne(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=Pt({},B9(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={};Pt(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}(),E5e={"<b>":/<b>/,"<i>":/<i>/,"<code>":/<code>/,"</b>":/<\/b>/,"</i>":/<\/i>/,"</code>":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},rA=function(){function e(r){re(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 ne(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=pt(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=E5e[t];o!==void 0?i=o:i=new RegExp(t),n=t.length}return[i,n]}}]),e}(),x5e=function(){function e(r,t,n,i){var o=this;re(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 _5e(a)}return ne(e,[{key:"process",value:function(t){if(!uy(t))return this.lines.finalize();var n=this.parent.fontOptions;t=t.replace(/\r\n/g,`
|
190
|
+
`),t=t.replace(/\r/g,`
|
191
|
+
`);var i=String(t).split(`
|
192
|
+
`),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 rA(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 rA(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(rr(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(rr(s).call(s,0,l),n),o[0]=rr(s).call(s,l)}else{var u=a;o[a-1]===" "?a--:o[u]===" "&&u++;var c=rr(o).call(o,0,a).join("");a==o.length&&i?this.lines.append(c,n):this.lines.newLine(c,n),o=rr(o).call(o,u)}}}}]),e}(),nf=["bold","ital","boldital","mono"],z9=function(){function e(r,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;re(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 ne(e,[{key:"setOptions",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),uy(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(Ge(t.font)==="object"){var n=t.font.size;n!==void 0&&(this.baseSize=n)}}}},{key:"initFontOptions",value:function(t){var n=this;if(Oe(nf,function(i){n.fontOptions[i]={}}),e.parseFontString(this.fontOptions,t)){this.fontOptions.vadjust=0;return}Oe(t,function(i,o){i!=null&&Ge(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=aa(t,"widthConstraint");if(typeof i=="number")n.maxWdt=Number(i),n.minWdt=Number(i);else if(Ge(i)==="object"){var o=aa(t,["widthConstraint","maximum"]);typeof o=="number"&&(n.maxWdt=Number(o));var a=aa(t,["widthConstraint","minimum"]);typeof a=="number"&&(n.minWdt=Number(a))}var s=aa(t,"heightConstraint");if(typeof s=="number")n.minHgt=Number(s);else if(Ge(s)==="object"){var l=aa(t,["heightConstraint","minimum"]);typeof l=="number"&&(n.minHgt=Number(l));var u=aa(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),Je(this.fontOptions,this.constrain(n)),this.fontOptions.chooser=Zk("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),Oe(o,function(s,l){s!==void 0&&(Object.prototype.hasOwnProperty.call(n,l)||(De(nf).call(nf,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=nf[a],u=n.fontOptions[l],c=n.getFontOptions(i,l);Oe(c,function(d,f){u[f]=d}),u.size=Number(u.size),u.vadjust=Number(u.vadjust)},a=0;a<nf.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=pt(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=pt(v,2),$=p[0],m=p[1];h.strokeWidth>0&&(t.lineWidth=h.strokeWidth,t.strokeStyle=m,t.lineJoin="round"),t.fillStyle=$,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=Mn(o,s),a=Mn(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 x5e(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}(),C5e=Hb,k5e=_d,P5e=TypeError,O5e=function(e){if(C5e(e))return e;throw new P5e(k5e(e)+" is not a constructor")},T5e=we,I5e=Gn,bw=Sv,R5e=o8,nA=O5e,M5e=_n,iA=Xt,N5e=Cd,H9=Fe,eP=I5e("Reflect","construct"),A5e=Object.prototype,D5e=[].push,W9=H9(function(){function e(){}return!(eP(function(){},[],e)instanceof e)}),V9=!H9(function(){eP(function(){})}),oA=W9||V9;T5e({target:"Reflect",stat:!0,forced:oA,sham:oA},{construct:function(r,t){nA(r),M5e(t);var n=arguments.length<3?r:nA(arguments[2]);if(V9&&!W9)return eP(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 bw(D5e,i,t),new(bw(R5e,r,i))}var o=n.prototype,a=N5e(iA(o)?o:A5e),s=bw(r,a,t);return iA(s)?s:a}});var F5e=je,j5e=F5e.Reflect.construct,L5e=j5e,B5e=L5e,z5e=B5e,B=pe(z5e),H5e=A6,W5e=H5e,V5e=W5e,U5e=V5e,K5e=U5e,G5e=pe(K5e),q5e=we,Y5e=KCe;q5e({target:"Object",stat:!0},{setPrototypeOf:Y5e});var X5e=je,Q5e=X5e.Object.setPrototypeOf,J5e=Q5e,Z5e=J5e,eBe=Z5e,tBe=eBe,rBe=tBe,nBe=rBe,iBe=nBe,dE=pe(iBe),oBe=a8,aBe=oBe,sBe=aBe,lBe=sBe,uBe=lBe,tP=pe(uBe);function fE(e,r){var t;return fE=dE?tP(t=dE).call(t):function(i,o){return i.__proto__=o,i},fE(e,r)}function Be(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=G5e(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Vb(e,"prototype",{writable:!1}),r&&fE(e,r)}function cBe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ue(e,r){if(r&&(Ge(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cBe(e)}var dBe=T6,fBe=dBe,hBe=fBe,vBe=hBe,pBe=vBe,aA=pe(pBe);function fe(e){var r;return fe=dE?tP(r=aA).call(r):function(n){return n.__proto__||aA(n)},fe(e)}var Wl=function(){function e(r,t,n){re(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 ne(e,[{key:"setOptions",value:function(t){this.options=t}},{key:"_setMargins",value:function(t){this.margin={},this.options.margin&&(Ge(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),Bv(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 mBe(e){var r=gBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function gBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var yBe=function(e){Be(t,e);var r=mBe(t);function t(n,i,o){var a;return re(this,t),a=r.call(this,n,i,o),a._setMargins(o),a}return ne(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),s8(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}(Wl);function bBe(e){var r=$Be();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function $Be(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var rP=function(e){Be(t,e);var r=bBe(t);function t(n,i,o){var a;return re(this,t),a=r.call(this,n,i,o),a.labelOffset=0,a.selected=!1,a}return ne(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;Ge(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),$k(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}(Wl);function wBe(e){var r=SBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function SBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var _Be=function(e){Be(t,e);var r=wBe(t);function t(n,i,o){var a;return re(this,t),a=r.call(this,n,i,o),a._setMargins(o),a}return ne(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}(rP);function EBe(e){var r=xBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function xBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var CBe=function(e){Be(t,e);var r=EBe(t);function t(n,i,o,a,s){var l;return re(this,t),l=r.call(this,n,i,o),l.setImages(a,s),l}return ne(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}(rP);function kBe(e){var r=PBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function PBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var ls=function(e){Be(t,e);var r=kBe(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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),lxe(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}(Wl);function sA(e,r){var t=vt(e);if(qa){var n=qa(e);r&&(n=Kr(n).call(n,function(i){return ss(e,i).enumerable})),t.push.apply(t,n)}return t}function OBe(e){for(var r=1;r<arguments.length;r++){var t,n,i=arguments[r]!=null?arguments[r]:{};r%2?Ye(t=sA(Object(i),!0)).call(t,function(o){i1(e,o,i[o])}):Ya?r1(e,Ya(i)):Ye(n=sA(Object(i))).call(n,function(o){n1(e,o,ss(i,o))})}return e}function TBe(e){var r=IBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function IBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var RBe=function(e){Be(t,e);var r=TBe(t);function t(n,i,o,a){var s;return re(this,t),s=r.call(this,n,i,o,a),s.ctxRenderer=a,s}return ne(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:OBe({},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}(ls);function MBe(e){var r=NBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function NBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var ABe=function(e){Be(t,e);var r=MBe(t);function t(n,i,o){var a;return re(this,t),a=r.call(this,n,i,o),a._setMargins(o),a}return ne(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),l8(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}(Wl);function DBe(e){var r=FBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function FBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var jBe=function(e){Be(t,e);var r=DBe(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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}(ls);function LBe(e){var r=BBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function BBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var zBe=function(e){Be(t,e);var r=LBe(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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}(ls);function HBe(e){var r=WBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function WBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var lA=function(e){Be(t,e);var r=HBe(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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),L_(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}(Wl);function VBe(e){var r=UBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function UBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var KBe=function(e){Be(t,e);var r=VBe(t);function t(n,i,o){var a;return re(this,t),a=r.call(this,n,i,o),a._setMargins(o),a}return ne(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}(Wl);function GBe(e){var r=qBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function qBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var YBe=function(e){Be(t,e);var r=GBe(t);function t(n,i,o,a,s){var l;return re(this,t),l=r.call(this,n,i,o),l.setImages(a,s),l}return ne(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,$=s?this.options.color.highlight.background:l?this.options.color.hover.background:this.options.color.background;u.opacity!==void 0&&(p=Mn(p,u.opacity),$=Mn($,u.opacity)),i.strokeStyle=p,i.fillStyle=$,i.rect(this.left-.5*i.lineWidth,this.top-.5*i.lineWidth,this.width+i.lineWidth,this.height+i.lineWidth),Bv(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}(rP);function XBe(e){var r=QBe();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function QBe(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var JBe=function(e){Be(t,e);var r=XBe(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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}(ls);function ZBe(e){var r=e4e();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function e4e(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var t4e=function(e){Be(t,e);var r=ZBe(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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}(ls);function r4e(e){var r=n4e();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function n4e(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var i4e=function(e){Be(t,e);var r=r4e(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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}(ls);function o4e(e){var r=a4e();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function a4e(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var s4e=function(e){Be(t,e);var r=o4e(t);function t(n,i,o){var a;return re(this,t),a=r.call(this,n,i,o),a._setMargins(o),a}return ne(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}(Wl);function l4e(e){var r=u4e();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function u4e(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var c4e=function(e){Be(t,e);var r=l4e(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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}(ls);function d4e(e){var r=f4e();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function f4e(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var h4e=function(e){Be(t,e);var r=d4e(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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}(ls);function uA(e,r){var t=vt(e);if(qa){var n=qa(e);r&&(n=Kr(n).call(n,function(i){return ss(e,i).enumerable})),t.push.apply(t,n)}return t}function cA(e){for(var r=1;r<arguments.length;r++){var t,n,i=arguments[r]!=null?arguments[r]:{};r%2?Ye(t=uA(Object(i),!0)).call(t,function(o){i1(e,o,i[o])}):Ya?r1(e,Ya(i)):Ye(n=uA(Object(i))).call(n,function(o){n1(e,o,ss(i,o))})}return e}var sn=function(){function e(r,t,n,i,o,a){re(this,e),this.options=La(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 z9(this.body,this.options,!1),this.setOptions(r)}return ne(e,[{key:"attachEdge",value:function(t){var n;De(n=this.edges).call(n,t)===-1&&this.edges.push(t)}},{key:"detachEdge",value:function(t){var n,i=De(n=this.edges).call(n,t);if(i!=-1){var o;Eo(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=ci(t.x),this.predefinedPosition=!0)),t.y!==void 0&&(t.y===null?(this.y=void 0,this.predefinedPosition=!1):(this.y=ci(t.y),this.predefinedPosition=!0)),t.size!==void 0&&(this.baseSize=t.size),t.value!==void 0&&(t.value=j9(t.value)),e.parseOptions(this.options,t,!0,this.globalOptions,this.grouplist);var i=[t,this.options,this.defaultOptions];return this.chooser=Zk("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=Mn(t.borderColor,n),t.color=Mn(t.color,n),t.shadowColor=Mn(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,cA(cA({},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 yBe(this.options,this.body,this.labelModule);break;case"circle":this.shape=new _Be(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new CBe(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"custom":this.shape=new RBe(this.options,this.body,this.labelModule,this.options.ctxRenderer);break;case"database":this.shape=new ABe(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new jBe(this.options,this.body,this.labelModule);break;case"dot":this.shape=new zBe(this.options,this.body,this.labelModule);break;case"ellipse":this.shape=new lA(this.options,this.body,this.labelModule);break;case"icon":this.shape=new KBe(this.options,this.body,this.labelModule);break;case"image":this.shape=new YBe(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new JBe(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new t4e(this.options,this.body,this.labelModule);break;case"star":this.shape=new i4e(this.options,this.body,this.labelModule);break;case"text":this.shape=new s4e(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new c4e(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new h4e(this.options,this.body,this.labelModule);break;default:this.shape=new lA(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()&&cE(this.labelModule.getSize(),t)&&n.push({nodeId:this.id,labelId:0}),cE(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=Kr(o=d5e(n)).call(o,function(c){return n[c]!=null});u.push("font"),ay(u,t,l),t.color=oE(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(ay(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),Tn(t,n,"shadow",o),n.color!==void 0&&n.color!==null){var l=oE(n.color);d9(t.color,l)}else i===!0&&n.color===null&&(t.color=La(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=La(o.font)),e.updateGroupOptions(t,n,a),n.scaling!==void 0&&Tn(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.",p9),t.mass=1}}}]),e}();function v4e(e,r){var t=typeof as<"u"&&Bl(e)||e["@@iterator"];if(!t){if(Ve(e)||(t=p4e(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.
|
193
|
+
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 p4e(e,r){var t;if(e){if(typeof e=="string")return dA(e,r);var n=rr(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Ll(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dA(e,r)}}function dA(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 m4e=function(){function e(r,t,n,i){var o,a=this;if(re(this,e),this.body=r,this.images=t,this.groups=n,this.layoutEngine=i,this.body.functions.createNode=X(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=La(this.defaultOptions),this.bindEventListeners()}return ne(e,[{key:"bindEventListeners",value:function(){var t,n,i=this;this.body.emitter.on("refreshNodes",X(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",X(n=this.refresh).call(n,this)),this.body.emitter.on("destroy",function(){Oe(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(sn.parseOptions(this.options,t),t.opacity!==void 0&&(uE(t.opacity)||!Ms(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=vt(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(Bz("id",t))this.body.data.nodes=t;else if(Ve(t))this.body.data.nodes=new Lc,this.body.data.nodes.add(t);else if(!t)this.body.data.nodes=new Lc;else throw new TypeError("Array or DataSet expected");if(i&&Oe(this.nodesListeners,function(s,l){i.off(l,s)}),this.body.nodes={},this.body.data.nodes){var o=this;Oe(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=aLe(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]:sn;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;Oe(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(Ve(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=v4e(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),Qi(function(){o.body.emitter.emit("startSimulation")},0)):console.error("Node id supplied to moveNode does not exist. Provided: ",t)}}]),e}(),fA=Qt,g4e=function(e){return e!==void 0&&(fA(e,"value")||fA(e,"writable"))},y4e=we,b4e=wn,$4e=Xt,w4e=_n,S4e=g4e,_4e=$d,E4e=zb;function U9(e,r){var t=arguments.length<3?e:arguments[2],n,i;if(w4e(e)===t)return e[r];if(n=_4e.f(e,r),n)return S4e(n)?n.value:n.get===void 0?void 0:b4e(n.get,t);if($4e(i=E4e(e)))return U9(i,r,t)}y4e({target:"Reflect",stat:!0},{get:U9});var x4e=je,C4e=x4e.Reflect.get,k4e=C4e,P4e=k4e,O4e=P4e,T4e=O4e,I4e=T4e,R4e=I4e,M4e=R4e,hA=pe(M4e),N4e=N9,A4e=N4e,D4e=A4e,F4e=D4e,j4e=F4e,L4e=pe(j4e);function B4e(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=fe(e),e!==null););return e}function qm(){if(typeof Reflect<"u"&&hA){var e;qm=tP(e=hA).call(e)}else qm=function(t,n,i){var o=B4e(t,n);if(o){var a=L4e(o,n);return a.get?a.get.call(arguments.length<3?t:i):a.value}};return qm.apply(this,arguments)}var z4e=we,vA=Math.hypot,H4e=Math.abs,W4e=Math.sqrt,V4e=!!vA&&vA(1/0,NaN)!==1/0;z4e({target:"Math",stat:!0,forced:V4e},{hypot:function(r,t){for(var n=0,i=0,o=arguments.length,a=0,s,l;i<o;)s=H4e(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*W4e(n)}});var U4e=je,K4e=U4e.Math.hypot,G4e=K4e,q4e=G4e,Y4e=q4e,X4e=pe(Y4e);function K9(e){var r=Q4e();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function Q4e(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var _t=function(){function e(){re(this,e)}return ne(e,null,[{key:"transform",value:function(t,n){Ve(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}(),J4e=function(e){Be(t,e);var r=K9(t);function t(){return re(this,t),r.apply(this,arguments)}return ne(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}(_t),Z4e=function(e){Be(t,e);var r=K9(t);function t(){return re(this,t),r.apply(this,arguments)}return ne(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 _t.transform(a,o),_t.drawPath(i,a),!0}}]),t}(_t),eze=function(){function e(){re(this,e)}return ne(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 _t.transform(i,n),_t.drawPath(t,i),!0}}]),e}(),tze=function(){function e(){re(this,e)}return ne(e,null,[{key:"draw",value:function(t,n){var i={x:-.4,y:0};_t.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}(),rze=function(){function e(){re(this,e)}return ne(e,null,[{key:"draw",value:function(t,n){var i={x:-.3,y:0};_t.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}(),nze=function(){function e(){re(this,e)}return ne(e,null,[{key:"draw",value:function(t,n){var i=[{x:.02,y:0},{x:-1,y:.3},{x:-1,y:-.3}];return _t.transform(i,n),_t.drawPath(t,i),!0}}]),e}(),ize=function(){function e(){re(this,e)}return ne(e,null,[{key:"draw",value:function(t,n){var i=[{x:0,y:.3},{x:0,y:-.3},{x:-1,y:0}];return _t.transform(i,n),_t.drawPath(t,i),!0}}]),e}(),oze=function(){function e(){re(this,e)}return ne(e,null,[{key:"draw",value:function(t,n){var i={x:-.4,y:0};return _t.transform(i,n),$k(t,i.x,i.y,n.length*.4),!0}}]),e}(),aze=function(){function e(){re(this,e)}return ne(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 _t.transform(i,n),_t.drawPath(t,i),!0}}]),e}(),sze=function(){function e(){re(this,e)}return ne(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 _t.transform(i,n),_t.drawPath(t,i),!0}}]),e}(),lze=function(){function e(){re(this,e)}return ne(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 _t.transform(i,n),_t.drawPath(t,i),!0}}]),e}(),uze=function(){function e(){re(this,e)}return ne(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 _t.transform(i,n),_t.drawPath(t,i),!0}}]),e}(),G9=function(){function e(){re(this,e)}return ne(e,null,[{key:"draw",value:function(t,n){var i;switch(n.type&&(i=n.type.toLowerCase()),i){case"image":return J4e.draw(t,n);case"circle":return oze.draw(t,n);case"box":return sze.draw(t,n);case"crow":return eze.draw(t,n);case"curve":return tze.draw(t,n);case"diamond":return lze.draw(t,n);case"inv_curve":return rze.draw(t,n);case"triangle":return nze.draw(t,n);case"inv_triangle":return ize.draw(t,n);case"bar":return aze.draw(t,n);case"vee":return uze.draw(t,n);case"arrow":default:return Z4e.draw(t,n)}}}]),e}();function pA(e,r){var t=vt(e);if(qa){var n=qa(e);r&&(n=Kr(n).call(n,function(i){return ss(e,i).enumerable})),t.push.apply(t,n)}return t}function mA(e){for(var r=1;r<arguments.length;r++){var t,n,i=arguments[r]!=null?arguments[r]:{};r%2?Ye(t=pA(Object(i),!0)).call(t,function(o){i1(e,o,i[o])}):Ya?r1(e,Ya(i)):Ye(n=pA(Object(i))).call(n,function(o){n1(e,o,ss(i,o))})}return e}var q9=function(){function e(r,t,n){re(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 ne(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=pt(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=Ve(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=pt(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)u8(t,this.from.x,this.from.y,this.to.x,this.to.y,s);else{var h=this._getCircleData(t),v=pt(h,3),p=v[0],$=v[1],m=v[2];this._circle(t,n,p,$,m)}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=rr(n=this._getCircleData(t)).call(n,0,2),o=pt(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=L9(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 $=0;do{v=(s+l)*.5,h=this._pointOnCircle(o,a,d,v);var m=Math.atan2(t.y-h.y,t.x-h.x),g=t.distanceToBorder(n,m)+p,y=Math.sqrt(Math.pow(h.x-t.x,2)+Math.pow(h.y-t.y,2)),w=g-y;if(Math.abs(w)<f)break;w>0?u>0?s=v:l=v:u>0?l=v:s=v,++$}while(s<=l&&$<c);return mA(mA({},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=Mn(this.from.options.color.border,n.opacity),a=Mn(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"?Mn(this.to.options.color.border,n.opacity):Mn(this.from.options.color.border,n.opacity)}else return Mn(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=pt(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 $=15*h+3*p;if(c!=d){var m=X4e(c.x-d.x,c.y-d.y),g=$/m;if(n!=="middle")if(this.options.smooth.enabled===!0){var y=this._findBorderPosition(c,t,{via:i}),w=this.getPoint(y.t+g*(n==="from"?1:-1),i);l=Math.atan2(y.y-w.y,y.x-w.x),u=y}else l=Math.atan2(c.y-d.y,c.x-d.x),u=this._findBorderPosition(c,t);else{var S=(f?-g:g)/2,E=this.getPoint(.5+S,i),x=this.getPoint(.5-S,i);l=Math.atan2(E.y-x.y,E.x-x.x),u=this.getPoint(.5,i)}}else{var C=this._getCircleData(t),k=pt(C,3),P=k[0],T=k[1],R=k[2];if(n==="from"){var N=this.options.selfReference.angle,F=this.options.selfReference.angle+Math.PI,W=this._findBorderPositionCircle(this.from,t,{x:P,y:T,low:N,high:F,direction:-1});l=W.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,u=W}else if(n==="to"){var M=this.options.selfReference.angle,j=this.options.selfReference.angle+Math.PI,O=this._findBorderPositionCircle(this.from,t,{x:P,y:T,low:M,high:j,direction:1});l=O.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,u=O}else{var D=this.options.selfReference.angle/(2*Math.PI);u=this._pointOnCircle(P,T,R,D),l=D*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var z=u.x-$*.9*Math.cos(l),G=u.y-$*.9*Math.sin(l),K={x:z,y:G};return{point:u,core:K,angle:l,length:$,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=G9.draw(t,a);s&&(this.enableShadow(t,n),Bv(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=Ve(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 gA(e,r){var t=vt(e);if(qa){var n=qa(e);r&&(n=Kr(n).call(n,function(i){return ss(e,i).enumerable})),t.push.apply(t,n)}return t}function yA(e){for(var r=1;r<arguments.length;r++){var t,n,i=arguments[r]!=null?arguments[r]:{};r%2?Ye(t=gA(Object(i),!0)).call(t,function(o){i1(e,o,i[o])}):Ya?r1(e,Ya(i)):Ye(n=gA(Object(i))).call(n,function(o){n1(e,o,ss(i,o))})}return e}function cze(e){var r=dze();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function dze(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var nP=function(e){Be(t,e);var r=cze(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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 $=0;do{v=(d+c)*.5,h=this.getPoint(v,a);var m=Math.atan2(f.y-h.y,f.x-h.x),g=f.distanceToBorder(o,m)+p,y=Math.sqrt(Math.pow(h.x-f.x,2)+Math.pow(h.y-f.y,2)),w=g-y;if(Math.abs(w)<l)break;w<0?u===!1?d=v:c=v:u===!1?c=v:d=v,++$}while(d<=c&&$<s);return yA(yA({},h),{},{t:v})}},{key:"_getDistanceToBezierEdge",value:function(i,o,a,s,l,u,c){var d=1e9,f,h,v,p,$,m=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,$=Math.pow(1-v,2)*o+2*v*(1-v)*c.y+Math.pow(v,2)*s,h>0&&(f=this._getDistanceToLine(m,g,p,$,l,u),d=f<d?f:d),m=p,g=$;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}(q9);function fze(e){var r=hze();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function hze(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var bA=function(e){Be(t,e);var r=fze(t);function t(n,i,o){var a;return re(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 ne(t,[{key:"setOptions",value:function(i){qm(fe(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=pt(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}(nP);function vze(e){var r=pze();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function pze(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var $A=function(e){Be(t,e);var r=vze(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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 $=Math.sqrt(a*a+s*s),m=Math.PI,g=Math.atan2(s,a),y=(g+(i*.5+.5)*m)%(2*m);return{x:this.from.x+(i*.5+.5)*$*Math.sin(y),y:this.from.y+(i*.5+.5)*$*Math.cos(y)}}else if(o==="curvedCCW"){a=this.to.x-this.from.x,s=this.from.y-this.to.y;var w=Math.sqrt(a*a+s*s),S=Math.PI,E=Math.atan2(s,a),x=(E+(-i*.5+.5)*S)%(2*S);return{x:this.from.x+(i*.5+.5)*w*Math.sin(x),y:this.from.y+(i*.5+.5)*w*Math.cos(x)}}else{var C,k;a<=s?C=k=i*s:C=k=i*a,this.from.x>this.to.x&&(C=-C),this.from.y>=this.to.y&&(k=-k);var P=this.from.x+C,T=this.from.y+k;return a<=s?this.from.x<=this.to.x?P=this.to.x<P?this.to.x:P:P=this.to.x>P?this.to.x:P:this.from.y>=this.to.y?T=this.to.y>T?this.to.y:T:T=this.to.y<T?this.to.y:T,{x:P,y:T}}}},{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}(nP);function mze(e){var r=gze();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function gze(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var yze=function(e){Be(t,e);var r=mze(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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],$=1;$<10;$++){var m=.1*$;p[0]=Math.pow(1-m,3),p[1]=3*m*Math.pow(1-m,2),p[2]=3*Math.pow(m,2)*(1-m),p[3]=Math.pow(m,3);var g=p[0]*i+p[1]*c.x+p[2]*d.x+p[3]*a,y=p[0]*o+p[1]*c.y+p[2]*d.y+p[3]*s;if($>0){var w=this._getDistanceToLine(h,v,g,y,l,u);f=w<f?w:f}h=g,v=y}return f}}]),t}(nP);function bze(e){var r=$ze();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function $ze(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var wA=function(e){Be(t,e);var r=bze(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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=pt(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=pt(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}(yze);function wze(e){var r=Sze();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function Sze(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var SA=function(e){Be(t,e);var r=wze(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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}(q9),nc=function(){function e(r,t,n,i,o){if(re(this,e),t===void 0)throw new Error("No body provided");this.options=La(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 z9(this.body,this.options,!0),this.setOptions(r)}return ne(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=j9(t.value));var i=[t,this.options,this.defaultOptions];return this.chooser=Zk("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 bA&&t.enabled===!0&&t.type==="dynamic"||this.edgeType instanceof wA&&t.enabled===!0&&t.type==="cubicBezier"||this.edgeType instanceof $A&&t.enabled===!0&&t.type!=="dynamic"&&t.type!=="cubicBezier"||this.edgeType instanceof SA&&t.type.enabled===!1)&&(i=!1),i===!0&&(n=this.cleanup())),i===!0?t.enabled===!0?t.type==="dynamic"?(n=!0,this.edgeType=new bA(this.options,this.body,this.labelModule)):t.type==="cubicBezier"?this.edgeType=new wA(this.options,this.body,this.labelModule):this.edgeType=new $A(this.options,this.body,this.labelModule):this.edgeType=new SA(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=L9(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();cE(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(Rd(s,t,n,i),n.endPointOffset!==void 0&&n.endPointOffset.from!==void 0&&(Ms(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&&(Ms(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"))),uy(n.label)?t.label=n.label:uy(t.label)||(t.label=void 0),Tn(t,n,"smooth",o),Tn(t,n,"shadow",o),Tn(t,n,"background",o),n.dashes!==void 0&&n.dashes!==null?t.dashes=n.dashes:i===!0&&n.dashes===null&&(t.dashes=Js(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),Tn(t.scaling,n.scaling,"label",o.scaling)):i===!0&&n.scaling===null&&(t.scaling=Js(o.scaling)),n.arrows!==void 0&&n.arrows!==null)if(typeof n.arrows=="string"){var l=n.arrows.toLowerCase();t.arrows.to.enabled=De(l).call(l,"to")!=-1,t.arrows.middle.enabled=De(l).call(l,"middle")!=-1,t.arrows.from.enabled=De(l).call(l,"from")!=-1}else if(Ge(n.arrows)==="object")Tn(t.arrows,n.arrows,"to",o.arrows),Tn(t.arrows,n.arrows,"middle",o.arrows),Tn(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:"+Lv(n.arrows));else i===!0&&n.arrows===null&&(t.arrows=Js(o.arrows));if(n.color!==void 0&&n.color!==null){var u=tc(n.color)?{color:n.color,highlight:n.color,hover:n.color,inherit:!1,opacity:1}:n.color,c=t.color;if(a)Je(c,o.color,!1,i);else for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&delete c[d];if(tc(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=La(o.color));i===!0&&n.font===null&&(t.font=La(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}(),_ze=function(){function e(r,t,n){var i,o=this;re(this,e),this.body=r,this.images=t,this.groups=n,this.body.functions.createEdge=X(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},Je(this.options,this.defaultOptions),this.bindEventListeners()}return ne(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",X(n=this.refresh).call(n,this)),this.body.emitter.on("refresh",X(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",function(){Oe(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){nc.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(Bz("id",t))this.body.data.edges=t;else if(Ve(t))this.body.data.edges=new Lc,this.body.data.edges.add(t);else if(!t)this.body.data.edges=new Lc;else throw new TypeError("Array or DataSet expected");if(o&&Oe(this.edgesListeners,function(s,l){o.off(l,s)}),this.body.edges={},this.body.data.edges){Oe(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;Oe(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;Oe(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 nc(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=[];Oe(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=[];Ye(t).call(t,function(o,a){var s=n[a];s===void 0&&i.push(a)}),this.add(i,!0)}}}]),e}(),Y9=function(){function e(r,t,n){re(this,e),this.body=r,this.physicsBody=t,this.barnesHutTree,this.setOptions(n),this._rng=e1("BARNES HUT SOLVER")}return ne(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,$=Math.max(p,Math.abs(l-a)),m=.5*$,g=.5*(a+l),y=.5*(s+u),w={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:g-m,maxX:g+m,minY:y-m,maxY:y+m},size:$,calcSize:1/$,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(w.root);for(var S=0;S<o;S++)i=t[n[S]],i.options.mass>0&&this._placeInTree(w.root,i);return w}},{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}(),Eze=function(){function e(r,t,n){re(this,e),this._rng=e1("REPULSION SOLVER"),this.body=r,this.physicsBody=t,this.setOptions(n)}return ne(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,$=0;$<d.length-1;$++){l=c[d[$]];for(var m=$+1;m<d.length;m++)u=c[d[m]],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}(),xze=function(){function e(r,t,n){re(this,e),this.body=r,this.physicsBody=t,this.setOptions(n)}return ne(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 $=d*p,m=f*p;i[s.id].x-=$,i[s.id].y-=m,i[u.id].x+=$,i[u.id].y+=m}}}}]),e}(),$w=function(){function e(r,t,n){re(this,e),this.body=r,this.physicsBody=t,this.setOptions(n)}return ne(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}(),Cze=function(){function e(r,t,n){re(this,e),this.body=r,this.physicsBody=t,this.setOptions(n)}return ne(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 $=h[p];v[$].springFx=0,v[$].springFy=0}for(var m=0;m<f.length;m++)n=c[f[m]],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,y,w=0;w<h.length;w++){var S=h[w];g=Math.min(l,Math.max(-l,v[S].springFx)),y=Math.min(l,Math.max(-l,v[S].springFy)),v[S].x+=g,v[S].y+=y}for(var E=0,x=0,C=0;C<h.length;C++){var k=h[C];E+=v[k].x,x+=v[k].y}for(var P=E/h.length,T=x/h.length,R=0;R<h.length;R++){var N=h[R];v[N].x-=P,v[N].y-=T}}}]),e}(),Ym=function(){function e(r,t,n){re(this,e),this.body=r,this.physicsBody=t,this.setOptions(n)}return ne(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 kze(e){var r=Pze();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function Pze(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var Oze=function(e){Be(t,e);var r=kze(t);function t(n,i,o){var a;return re(this,t),a=r.call(this,n,i,o),a._rng=e1("FORCE ATLAS 2 BASED REPULSION SOLVER"),a}return ne(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}(Y9);function Tze(e){var r=Ize();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function Ize(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var Rze=function(e){Be(t,e);var r=Tze(t);function t(n,i,o){return re(this,t),r.call(this,n,i,o)}return ne(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}(Ym),Mze=function(){function e(r){re(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}},Pt(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return ne(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,ay(["stabilization"],this.options,t),Tn(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"||uE(n.x))&&(n.x=0),(typeof n.y!="number"||uE(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 Oze(this.body,this.physicsBody,t),this.edgesSolver=new $w(this.body,this.physicsBody,t),this.gravitySolver=new Rze(this.body,this.physicsBody,t)):this.options.solver==="repulsion"?(t=this.options.repulsion,this.nodesSolver=new Eze(this.body,this.physicsBody,t),this.edgesSolver=new $w(this.body,this.physicsBody,t),this.gravitySolver=new Ym(this.body,this.physicsBody,t)):this.options.solver==="hierarchicalRepulsion"?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new xze(this.body,this.physicsBody,t),this.edgesSolver=new Cze(this.body,this.physicsBody,t),this.gravitySolver=new Ym(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new Y9(this.body,this.physicsBody,t),this.edgesSolver=new $w(this.body,this.physicsBody,t),this.gravitySolver=new Ym(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=X(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=ry();this.physicsTick();var n=ry()-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)&&Qi(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=vt(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,Qi(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;Qi(X(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=aE((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,G9.draw(t,{type:"arrow",point:h,angle:v,length:d}),Bv(t).call(t)}}}]),e}();let um;const Nze=new Uint8Array(16);function Aze(){if(!um&&(um=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!um))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return um(Nze)}const er=[];for(let e=0;e<256;++e)er.push((e+256).toString(16).slice(1));function Dze(e,r=0){return er[e[r+0]]+er[e[r+1]]+er[e[r+2]]+er[e[r+3]]+"-"+er[e[r+4]]+er[e[r+5]]+"-"+er[e[r+6]]+er[e[r+7]]+"-"+er[e[r+8]]+er[e[r+9]]+"-"+er[e[r+10]]+er[e[r+11]]+er[e[r+12]]+er[e[r+13]]+er[e[r+14]]+er[e[r+15]]}const Fze=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var _A={randomUUID:Fze};function Bf(e,r,t){if(_A.randomUUID&&!e)return _A.randomUUID();e=e||{};const n=e.random||(e.rng||Aze)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Dze(n)}var Cr=function(){function e(){re(this,e)}return ne(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"?(Je(i,t.options,!0),i.x=t.x,i.y=t.y,i.amountOfConnections=t.edges.length):Je(i,t.options,!0),i}}]),e}();function jze(e){var r=Lze();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function Lze(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var Bze=function(e){Be(t,e);var r=jze(t);function t(n,i,o,a,s,l){var u;return re(this,t),u=r.call(this,n,i,o,a,s,l),u.isCluster=!0,u.containedNodes={},u.containedEdges={},u}return ne(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],Oe(a.edges,function(s){delete o.containedEdges[s.id]}),Oe(a.containedNodes,function(s,l){o.containedNodes[l]=s}),a.containedNodes={},Oe(a.containedEdges,function(s,l){o.containedEdges[l]=s}),a.containedEdges={},Oe(a.edges,function(s){Oe(o.edges,function(l){var u,c,d=De(u=l.clusteringEdgeReplacingIds).call(u,s.id);d!==-1&&(Oe(s.clusteringEdgeReplacingIds,function(f){l.clusteringEdgeReplacingIds.push(f),o.body.edges[f].edgeReplacedById=l.id}),Eo(c=l.clusteringEdgeReplacingIds).call(c,d,1))})}),a.edges=[]}}]),t}(sn),zze=function(){function e(r){var t=this;re(this,e),this.body=r,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Pt(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){t.clusteredNodes={},t.clusteredEdges={}})}return ne(e,[{key:"clusterByHubsize",value:function(t,n){t===void 0?t=this._getHubSize():Ge(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={};Oe(this.body.nodes,function(s,l){s.options&&n.joinCondition(s.options)===!0&&(o[l]=s,Oe(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={},$={},m=i.body.nodeIndices[f],g=i.body.nodes[m];if(s[m]===void 0){c=0,u=[];for(var y=0;y<g.edges.length;y++)l=g.edges[y],i.clusteredEdges[l.id]===void 0&&(l.toId!==l.fromId&&c++,u.push(l));if(c===t){for(var w=function(N){if(n.joinCondition===void 0||n.joinCondition===null)return!0;var F=Cr.cloneOptions(N);return n.joinCondition(F)},S=!0,E=0;E<u.length;E++){l=u[E];var x=i._getConnectedId(l,m);if(w(g))$[l.id]=l,p[m]=g,p[x]=i.body.nodes[x],s[m]=!0;else{S=!1;break}}if(vt(p).length>0&&vt($).length>0&&S===!0){var C=function(){for(var N=0;N<a.length;++N)for(var F in p)if(a[N].nodes[F]!==void 0)return a[N]},k=C();if(k!==void 0){for(var P in p)k.nodes[P]===void 0&&(k.nodes[P]=p[P]);for(var T in $)k.edges[T]===void 0&&(k.edges[T]=$[T])}else a.push({nodes:p,edges:$})}}}},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=Cr.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=Cr.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=Hc(i=vt(s)).call(i,function(w){return s[w].id});for(var $ in s)if(Object.prototype.hasOwnProperty.call(s,$))for(var m=s[$],g=0;g<m.edges.length;g++){var y=m.edges[g];De(p).call(p,this._getConnectedId(y,m.id))>-1&&(l[y.id]=y)}this._cluster(s,l,n,o)}},{key:"_createClusterEdges",value:function(t,n,i,o){for(var a,s,l,u,c,d,f=vt(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 $=[],m=function(x){for(var C=0;C<$.length;C++){var k=$[C],P=x.fromId===k.fromId&&x.toId===k.toId,T=x.fromId===k.toId&&x.toId===k.fromId;if(P||T)return k}return null},g=0;g<h.length;g++){var y=h[g],w=y.edge,S=m(y);S===null?(S=this._createClusteredEdge(y.fromId,y.toId,w,o),$.push(S)):S.clusteringEdgeReplacingIds.push(w.id),this.body.edges[w.id].edgeReplacedById=S.id,this._backupEdgeOptions(w),w.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(vt(t).length!=0&&!(vt(t).length==1&&i.clusterNodeProperties.allowSingleNodeCluster!=!0)){var u=Je({},i.clusterNodeProperties);if(i.processProperties!==void 0){var c=[];for(var d in t)if(Object.prototype.hasOwnProperty.call(t,d)){var f=Cr.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=Cr.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:"+Bf());var $=u.id;u.label===void 0&&(u.label="cluster");var m=void 0;u.x===void 0&&(m=this._getClusterPosition(t),u.x=m.x),u.y===void 0&&(m===void 0&&(m=this._getClusterPosition(t)),u.y=m.y),u.id=$;var g=this.body.functions.createNode(u,Bze);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=vt(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=De(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 $=n.releaseFunction(h,f);for(var m in c)if(Object.prototype.hasOwnProperty.call(c,m)){var g=this.body.nodes[m];$[m]!==void 0&&(g.x=$[m].x===void 0?o.x:$[m].x,g.y=$[m].y===void 0?o.y:$[m].y)}}else Oe(c,function(O){O.options.fixed.x===!1&&(O.x=o.x),O.options.fixed.y===!1&&(O.y=o.y)});for(var y in c)if(Object.prototype.hasOwnProperty.call(c,y)){var w=this.body.nodes[y];w.vx=o.vx,w.vy=o.vy,w.setOptions({physics:!0}),delete this.clusteredNodes[y]}for(var S=[],E=0;E<o.edges.length;E++)S.push(o.edges[E]);for(var x=0;x<S.length;x++){for(var C=S[x],k=this._getConnectedId(C,t),P=this.clusteredNodes[k],T=0;T<C.clusteringEdgeReplacingIds.length;T++){var R=C.clusteringEdgeReplacingIds[T],N=this.body.edges[R];if(N!==void 0)if(P!==void 0){var F=this.body.nodes[P.clusterId];F.containedEdges[N.id]=N,delete d[N.id];var W=N.fromId,M=N.toId;N.toId==k?M=P.clusterId:W=P.clusterId,this._createClusteredEdge(W,M,N,F.clusterEdgeProperties,{hidden:!1,physics:!0})}else this._restoreEdge(N)}C.remove()}for(var j in d)Object.prototype.hasOwnProperty.call(d,j)&&this._restoreEdge(d[j]);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),Qs(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 Qs(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];De(n).call(n,c)!==-1||De(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=Cr.cloneOptions(i,"edge");Je(s,o),s.from=t,s.to=n,s.id="clusterEdge:"+Bf(),a!==void 0&&Je(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 nc){var a=n,s={};s[a.id]=a,n=s}if(t instanceof sn){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 Oe(t,function(o){n(o)&&i.push(o)}),i}},{key:"_updateState",value:function(){var t=this,n,i=[],o={},a=function(v){Oe(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]];Oe(this.clusteredEdges,function(h){var v=t.body.edges[h];(v===void 0||!v.endPointsValid())&&(o[h]=h)}),a(function(h){Oe(h.containedEdges,function(v,p){!v.endPointsValid()&&!o[p]&&(o[p]=p)})}),Oe(this.body.edges,function(h,v){var p=!0,$=h.clusteringEdgeReplacingIds;if($!==void 0){var m=0;Oe($,function(g){var y=t.body.edges[g];y!==void 0&&y.endPointsValid()&&(m+=1)}),p=m>0}(!h.endPointsValid()||!p)&&(o[v]=v)}),a(function(h){Oe(o,function(v){delete h.containedEdges[v],Oe(h.edges,function(p,$){if(p.id===v){h.edges[$]=null;return}p.clusteringEdgeReplacingIds=t._filter(p.clusteringEdgeReplacingIds,function(m){return!o[m]})}),h.edges=t._filter(h.edges,function(p){return p!==null})})}),Oe(o,function(h){delete t.clusteredEdges[h]}),Oe(o,function(h){delete t.body.edges[h]});var u=vt(this.body.edges);Oe(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 $=t._getClusterNodeForNode(v.fromId);$!==void 0&&t._clusterEdges(t.body.nodes[v.fromId],v,$);var m=t._getClusterNodeForNode(v.toId);m!==void 0&&t._clusterEdges(t.body.nodes[v.toId],v,m)}else delete t._clusterEdges[h],t._restoreEdge(v)});for(var c=!1,d=!0,f=function(){var v=[];a(function($){var m=vt($.containedNodes).length,g=$.options.allowSingleNodeCluster===!0;(g&&m<1||!g&&m<2)&&v.push($.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 Hze(){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 Wze=function(){function e(r,t){re(this,e),Hze(),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},Pt(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return ne(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=Qi(function(){var i;t.zooming=!1,X(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",X(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"];Rd(n,this.options,t)}}},{key:"_requestNextFrame",value:function(t,n){if(!(typeof window>"u")){var i,o=window;return this.requiresTimeout===!0?i=Qi(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(X(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:-20,y:-20}),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 $=a.draw(t);$.drawExternalLabel!=null&&h.push($.drawExternalLabel)}else a.updateBoundingBox(t,a.selected);var m,g=s.length,y=l.length;for(m=0;m<g;m++){a=i[s[m]];var w=a.draw(t);w.drawExternalLabel!=null&&h.push(w.drawExternalLabel)}for(m=0;m<y;m++){a=i[l[m]];var S=a.draw(t);S.drawExternalLabel!=null&&h.push(S.drawExternalLabel)}return{drawExternalLabels:function(){for(var x=0,C=h;x<C.length;x++){var k=C[x];k()}}}}},{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,De(t).call(t,"msie 9.0")!=-1?this.requiresTimeout=!0:De(t).call(t,"safari")!=-1&&De(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}(),Vze=je,Uze=Vze.setInterval,Kze=Uze,Gze=pe(Kze);function cy(e,r){r.inputHandler=function(t){t.isFirst&&r(t)},e.on("hammer.input",r.inputHandler)}function X9(e,r){return r.inputHandler=function(t){t.isFinal&&r(t)},e.on("hammer.input",r.inputHandler)}var qze=function(){function e(r){re(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%"},Pt(this.options,this.defaultOptions),this.bindEventListeners()}return ne(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",X(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"];Rd(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=Gze(function(){var c=n.setSize();c===!0&&n.body.emitter.emit("_requestRedraw")},1e3);this._cleanupCallbacks.push(function(){clearInterval(l)})}var u=X(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;Ye(t=Qs(n=Eo(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(De(t).call(t,"%")!==-1||De(t).call(t,"px")!==-1)return t;if(De(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 rc(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:rc.DIRECTION_ALL}),cy(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 rc(this.frame),X9(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 Yze(e,r){var t=Pt({nodes:r,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},e??{});if(!Ve(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 Xze=function(){function e(r,t){var n,i=this,o;re(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",X(n=this.fit).call(n,this)),this.body.emitter.on("animationFinished",function(){i.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",X(o=this.releaseNode).call(o,this))}return ne(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=Yze(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=Cr.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=Cr.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=Cr.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,$=o/v;s=p<=$?p:$}s>t.maxZoomLevel?s=t.maxZoomLevel:s<t.minZoomLevel&&(s=t.minZoomLevel);var m=Cr.findCenter(a),g={position:m,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,!Ms(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,!Ms(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,!Ms(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,!Ms(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=X(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=X(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=MFe[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=X(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 EA(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 Qze=function(){function e(r,t){var n=this;re(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 ne(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 rc(this.navigationDOM[n[o]]);if(i[o]==="_fit"){var s;cy(a,X(s=this._fit).call(s,this))}else{var l;cy(a,X(l=this.bindToRedraw).call(l,this,i[o]))}this.navigationHammers.push(a)}var u=new rc(this.canvas.frame);X9(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]=X(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=EA({container:window,preventDefault:!0}):this.keycharm=EA({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,$,m,g,y,w,S,E,x,C,k,P;X(n=this.keycharm).call(n,"up",function(){t.bindToRedraw("_moveUp")},"keydown"),X(i=this.keycharm).call(i,"down",function(){t.bindToRedraw("_moveDown")},"keydown"),X(o=this.keycharm).call(o,"left",function(){t.bindToRedraw("_moveLeft")},"keydown"),X(a=this.keycharm).call(a,"right",function(){t.bindToRedraw("_moveRight")},"keydown"),X(s=this.keycharm).call(s,"=",function(){t.bindToRedraw("_zoomIn")},"keydown"),X(l=this.keycharm).call(l,"num+",function(){t.bindToRedraw("_zoomIn")},"keydown"),X(u=this.keycharm).call(u,"num-",function(){t.bindToRedraw("_zoomOut")},"keydown"),X(c=this.keycharm).call(c,"-",function(){t.bindToRedraw("_zoomOut")},"keydown"),X(d=this.keycharm).call(d,"[",function(){t.bindToRedraw("_zoomOut")},"keydown"),X(f=this.keycharm).call(f,"]",function(){t.bindToRedraw("_zoomIn")},"keydown"),X(h=this.keycharm).call(h,"pageup",function(){t.bindToRedraw("_zoomIn")},"keydown"),X(v=this.keycharm).call(v,"pagedown",function(){t.bindToRedraw("_zoomOut")},"keydown"),X(p=this.keycharm).call(p,"up",function(){t.unbindFromRedraw("_moveUp")},"keyup"),X($=this.keycharm).call($,"down",function(){t.unbindFromRedraw("_moveDown")},"keyup"),X(m=this.keycharm).call(m,"left",function(){t.unbindFromRedraw("_moveLeft")},"keyup"),X(g=this.keycharm).call(g,"right",function(){t.unbindFromRedraw("_moveRight")},"keyup"),X(y=this.keycharm).call(y,"=",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),X(w=this.keycharm).call(w,"num+",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),X(S=this.keycharm).call(S,"num-",function(){t.unbindFromRedraw("_zoomOut")},"keyup"),X(E=this.keycharm).call(E,"-",function(){t.unbindFromRedraw("_zoomOut")},"keyup"),X(x=this.keycharm).call(x,"[",function(){t.unbindFromRedraw("_zoomOut")},"keyup"),X(C=this.keycharm).call(C,"]",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),X(k=this.keycharm).call(k,"pageup",function(){t.unbindFromRedraw("_zoomIn")},"keyup"),X(P=this.keycharm).call(P,"pagedown",function(){t.unbindFromRedraw("_zoomOut")},"keyup")}}}]),e}();function Jze(e,r){var t=typeof as<"u"&&Bl(e)||e["@@iterator"];if(!t){if(Ve(e)||(t=Zze(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.
|
194
|
+
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 Zze(e,r){var t;if(e){if(typeof e=="string")return xA(e,r);var n=rr(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Ll(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xA(e,r)}}function xA(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 e8e=function(){function e(r,t,n){var i,o,a,s,l,u,c,d,f,h,v,p,$;re(this,e),this.body=r,this.canvas=t,this.selectionHandler=n,this.navigationHandler=new Qze(r,t),this.body.eventListeners.onTap=X(i=this.onTap).call(i,this),this.body.eventListeners.onTouch=X(o=this.onTouch).call(o,this),this.body.eventListeners.onDoubleTap=X(a=this.onDoubleTap).call(a,this),this.body.eventListeners.onHold=X(s=this.onHold).call(s,this),this.body.eventListeners.onDragStart=X(l=this.onDragStart).call(l,this),this.body.eventListeners.onDrag=X(u=this.onDrag).call(u,this),this.body.eventListeners.onDragEnd=X(c=this.onDragEnd).call(c,this),this.body.eventListeners.onMouseWheel=X(d=this.onMouseWheel).call(d,this),this.body.eventListeners.onPinch=X(f=this.onPinch).call(f,this),this.body.eventListeners.onMouseMove=X(h=this.onMouseMove).call(h,this),this.body.eventListeners.onRelease=X(v=this.onRelease).call(v,this),this.body.eventListeners.onContext=X(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=X($=this.getPointer).call($,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},Pt(this.options,this.defaultOptions),this.bindEventListeners()}return ne(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"];ay(n,this.options,t),Tn(this.options,t,"keyboard"),t.tooltip&&(Pt(this.options.tooltip,t.tooltip),t.tooltip.color&&(this.options.tooltip.color=oE(t.tooltip.color)))}this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(t){return{x:t.x-OFe(this.canvas.frame.canvas),y:t.y-TFe(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];De(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=Pt({},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=Jze(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;Ye(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=Kr(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});Ye(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?(Ye(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=Qi(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,$,m=[],g=0;g<v.length;g++)$=p[v[g]],$.isOverlappingWith(o)===!0&&$.connected===!0&&$.getTitle()!==void 0&&m.push(v[g]);m.length>0&&(this.popupObj=p[m[m.length-1]],l="edge")}this.popupObj!==void 0?this.popupObj.id!==a&&(this.popup===void 0&&(this.popup=new zFe(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}(),t8e=Qk,r8e=P9;t8e("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r8e);var n8e=je,i8e=n8e.Set,o8e=i8e,a8e=o8e,s8e=a8e,xs=pe(s8e),l8e=Le,CA=Jk,cm=t1.getWeakData,u8e=Xk,c8e=_n,d8e=wd,ww=Xt,f8e=Yk,Q9=os,kA=Qt,J9=jl,h8e=J9.set,v8e=J9.getterFor,p8e=Q9.find,m8e=Q9.findIndex,g8e=l8e([].splice),y8e=0,dm=function(e){return e.frozen||(e.frozen=new Z9)},Z9=function(){this.entries=[]},Sw=function(e,r){return p8e(e.entries,function(t){return t[0]===r})};Z9.prototype={get:function(e){var r=Sw(this,e);if(r)return r[1]},has:function(e){return!!Sw(this,e)},set:function(e,r){var t=Sw(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=m8e(this.entries,function(t){return t[0]===e});return~r&&g8e(this.entries,r,1),!!~r}};var b8e={getConstructor:function(e,r,t,n){var i=e(function(l,u){u8e(l,o),h8e(l,{type:r,id:y8e++,frozen:void 0}),d8e(u)||f8e(u,l[n],{that:l,AS_ENTRIES:t})}),o=i.prototype,a=v8e(r),s=function(l,u,c){var d=a(l),f=cm(c8e(u),!0);return f===!0?dm(d).set(u,c):f[d.id]=c,l};return CA(o,{delete:function(l){var u=a(this);if(!ww(l))return!1;var c=cm(l);return c===!0?dm(u).delete(l):c&&kA(c,u.id)&&delete c[u.id]},has:function(u){var c=a(this);if(!ww(u))return!1;var d=cm(u);return d===!0?dm(c).has(u):d&&kA(d,c.id)}}),CA(o,t?{get:function(u){var c=a(this);if(ww(u)){var d=cm(u);return d===!0?dm(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}},$8e=E9,PA=yt,Xm=Le,OA=Jk,w8e=t1,S8e=Qk,eH=b8e,fm=Xt,hm=jl.enforce,_8e=Fe,E8e=h8,Kv=Object,x8e=Array.isArray,vm=Kv.isExtensible,tH=Kv.isFrozen,C8e=Kv.isSealed,rH=Kv.freeze,k8e=Kv.seal,TA={},IA={},P8e=!PA.ActiveXObject&&"ActiveXObject"in PA,of,nH=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},iH=S8e("WeakMap",nH,eH),mu=iH.prototype,Qm=Xm(mu.set),O8e=function(){return $8e&&_8e(function(){var e=rH([]);return Qm(new iH,e,1),!tH(e)})};if(E8e)if(P8e){of=eH.getConstructor(nH,"WeakMap",!0),w8e.enable();var RA=Xm(mu.delete),pm=Xm(mu.has),MA=Xm(mu.get);OA(mu,{delete:function(e){if(fm(e)&&!vm(e)){var r=hm(this);return r.frozen||(r.frozen=new of),RA(this,e)||r.frozen.delete(e)}return RA(this,e)},has:function(r){if(fm(r)&&!vm(r)){var t=hm(this);return t.frozen||(t.frozen=new of),pm(this,r)||t.frozen.has(r)}return pm(this,r)},get:function(r){if(fm(r)&&!vm(r)){var t=hm(this);return t.frozen||(t.frozen=new of),pm(this,r)?MA(this,r):t.frozen.get(r)}return MA(this,r)},set:function(r,t){if(fm(r)&&!vm(r)){var n=hm(this);n.frozen||(n.frozen=new of),pm(this,r)?Qm(this,r,t):n.frozen.set(r,t)}else Qm(this,r,t);return this}})}else O8e()&&OA(mu,{set:function(r,t){var n;return x8e(r)&&(tH(r)?n=TA:C8e(r)&&(n=IA)),Qm(this,r,t),n===TA&&rH(r),n===IA&&k8e(r),this}});var T8e=je,I8e=T8e.WeakMap,R8e=I8e,M8e=R8e,N8e=M8e,zf=pe(N8e);function Qe(e,r,t,n){if(typeof r=="function"?e!==r||!0:!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 hE(e,r,t,n,i){if(typeof r=="function"?e!==r||!0:!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 vE(e,r){var t=typeof as<"u"&&Bl(e)||e["@@iterator"];if(!t){if(Ve(e)||(t=A8e(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.
|
195
|
+
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 A8e(e,r){var t;if(e){if(typeof e=="string")return NA(e,r);var n=rr(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Ll(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NA(e,r)}}function NA(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 _s,xn,ea,ta,Jm;function AA(e,r){var t=new xs,n=vE(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 DA=function(){function e(){re(this,e),_s.set(this,new xs),xn.set(this,new xs)}return ne(e,[{key:"size",get:function(){return Qe(this,xn,"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];Qe(this,xn,"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];Qe(this,xn,"f").delete(s)}}},{key:"clear",value:function(){Qe(this,xn,"f").clear()}},{key:"getSelection",value:function(){return Bi(Qe(this,xn,"f"))}},{key:"getChanges",value:function(){return{added:Bi(AA(Qe(this,_s,"f"),Qe(this,xn,"f"))),deleted:Bi(AA(Qe(this,xn,"f"),Qe(this,_s,"f"))),previous:Bi(new xs(Qe(this,_s,"f"))),current:Bi(new xs(Qe(this,xn,"f")))}}},{key:"commit",value:function(){var t=this.getChanges();hE(this,_s,Qe(this,xn,"f")),hE(this,xn,new xs(Qe(this,_s,"f")));var n=vE(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=vE(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}();_s=new zf,xn=new zf;var D8e=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};re(this,e),ea.set(this,new DA),ta.set(this,new DA),Jm.set(this,void 0),hE(this,Jm,r)}return ne(e,[{key:"sizeNodes",get:function(){return Qe(this,ea,"f").size}},{key:"sizeEdges",get:function(){return Qe(this,ta,"f").size}},{key:"getNodes",value:function(){return Qe(this,ea,"f").getSelection()}},{key:"getEdges",value:function(){return Qe(this,ta,"f").getSelection()}},{key:"addNodes",value:function(){var t;(t=Qe(this,ea,"f")).add.apply(t,arguments)}},{key:"addEdges",value:function(){var t;(t=Qe(this,ta,"f")).add.apply(t,arguments)}},{key:"deleteNodes",value:function(t){Qe(this,ea,"f").delete(t)}},{key:"deleteEdges",value:function(t){Qe(this,ta,"f").delete(t)}},{key:"clear",value:function(){Qe(this,ea,"f").clear(),Qe(this,ta,"f").clear()}},{key:"commit",value:function(){for(var t,n,i={nodes:Qe(this,ea,"f").commit(),edges:Qe(this,ta,"f").commit()},o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(t=Qe(this,Jm,"f")).call.apply(t,Nk(n=[this,i]).call(n,a)),i}}]),e}();ea=new zf,ta=new zf,Jm=new zf;function FA(e,r){var t=typeof as<"u"&&Bl(e)||e["@@iterator"];if(!t){if(Ve(e)||(t=F8e(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.
|
196
|
+
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 F8e(e,r){var t;if(e){if(typeof e=="string")return jA(e,r);var n=rr(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Ll(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jA(e,r)}}function jA(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 j8e=function(){function e(r,t){var n=this;re(this,e),this.body=r,this.canvas=t,this._selectionAccumulator=new D8e,this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},Pt(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",function(){n.updateSelection()})}return ne(e,[{key:"setOptions",value:function(t){if(t!==void 0){var n=["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"];Rd(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 sn){if(n===!0){var i;(i=this._selectionAccumulator).addEdges.apply(i,Bi(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 sn?this.hoverObj.nodes[t.id]=t:this.hoverObj.edges[t.id]=t}},{key:"_removeFromSelection",value:function(t){if(t instanceof sn){var n;this._selectionAccumulator.deleteNodes(t),(n=this._selectionAccumulator).deleteEdges.apply(n,Bi(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 sn?(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 sn?(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 sn&&i.id!=a||i instanceof nc)&&(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 nc&&i.id!=s||i instanceof sn&&!i.hover)&&(this.emitBlurEvent(t,n,this.hoverObj.edges[s]),delete this.hoverObj.edges[s],o=!0));if(i!==void 0){var l=vt(this.hoverObj.edges).length,u=vt(this.hoverObj.nodes).length,c=i instanceof nc&&l===0&&u===0,d=i instanceof sn&&l===0&&u===0;(o||c||d)&&(o=this.emitHoverEvent(t,n,i)),i instanceof sn&&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 Hc(t=this._selectionAccumulator.getNodes()).call(t,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var t;return Hc(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=FA(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=FA(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}(),LA=H8,L8e=Math.floor,pE=function(e,r){var t=e.length,n=L8e(t/2);return t<8?B8e(e,r):z8e(e,pE(LA(e,0,n),r),pE(LA(e,n),r),r)},B8e=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},z8e=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},H8e=pE,W8e=xv,BA=W8e.match(/firefox\/(\d+)/i),V8e=!!BA&&+BA[1],U8e=xv,K8e=/MSIE|Trident/.test(U8e),G8e=xv,zA=G8e.match(/AppleWebKit\/(\d+)\./),q8e=!!zA&&+zA[1],Y8e=we,oH=Le,X8e=Dl,Q8e=an,HA=qn,J8e=P6,WA=ao,iP=Fe,Z8e=H8e,e6e=Td,VA=V8e,t6e=K8e,UA=Cv,KA=q8e,_a=[],GA=oH(_a.sort),r6e=oH(_a.push),n6e=iP(function(){_a.sort(void 0)}),i6e=iP(function(){_a.sort(null)}),o6e=e6e("sort"),aH=!iP(function(){if(UA)return UA<70;if(!(VA&&VA>3)){if(t6e)return!0;if(KA)return KA<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++)_a.push({k:t+i,v:n})}for(_a.sort(function(o,a){return a.v-o.v}),i=0;i<_a.length;i++)t=_a[i].k.charAt(0),e.charAt(e.length-1)!==t&&(e+=t);return e!=="DGBEFHACIJK"}}),a6e=n6e||!i6e||!o6e||!aH,s6e=function(e){return function(r,t){return t===void 0?-1:r===void 0?1:e!==void 0?+e(r,t)||0:WA(r)>WA(t)?1:-1}};Y8e({target:"Array",proto:!0,forced:a6e},{sort:function(r){r!==void 0&&X8e(r);var t=Q8e(this);if(aH)return r===void 0?GA(t):GA(t,r);var n=[],i=HA(t),o,a;for(a=0;a<i;a++)a in t&&r6e(n,t[a]);for(Z8e(n,s6e(r)),o=HA(n),a=0;a<o;)t[a]=n[a++];for(;a<i;)J8e(t,a++);return t}});var l6e=Jt,u6e=l6e("Array").sort,c6e=Et,d6e=u6e,_w=Array.prototype,f6e=function(e){var r=e.sort;return e===_w||c6e(_w,e)&&r===_w.sort?d6e:r},h6e=f6e,v6e=h6e,p6e=v6e,Hf=pe(p6e),m6e=Dl,g6e=an,y6e=Mb,b6e=qn,$6e=TypeError,w6e=function(e){return function(r,t,n,i){m6e(t);var o=g6e(r),a=y6e(o),s=b6e(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 $6e("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}},S6e={left:w6e(!1)},_6e=yt,E6e=Yo,x6e=E6e(_6e.process)==="process",C6e=we,k6e=S6e.left,P6e=Td,qA=Cv,O6e=x6e,T6e=!O6e&&qA>79&&qA<83,I6e=T6e||!P6e("reduce");C6e({target:"Array",proto:!0,forced:I6e},{reduce:function(r){var t=arguments.length;return k6e(this,r,t,t>1?arguments[1]:void 0)}});var R6e=Jt,M6e=R6e("Array").reduce,N6e=Et,A6e=M6e,Ew=Array.prototype,D6e=function(e){var r=e.reduce;return e===Ew||N6e(Ew,e)&&r===Ew.reduce?A6e:r},F6e=D6e,j6e=F6e,L6e=j6e,sH=pe(L6e);function lH(e){var r=B6e();return function(){var n=fe(e),i;if(r){var o=fe(this).constructor;i=B(n,arguments,o)}else i=n.apply(this,arguments);return Ue(this,i)}}function B6e(){if(typeof Reflect>"u"||!B||B.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(B(Boolean,[],function(){})),!0}catch{return!1}}var uH=function(){function e(){re(this,e)}return ne(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}(),z6e=function(e){Be(t,e);var r=lH(t);function t(n){var i;return re(this,t),i=r.call(this),i.layout=n,i}return ne(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){Hf(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}(uH),H6e=function(e){Be(t,e);var r=lH(t);function t(n){var i;return re(this,t),i=r.call(this),i.layout=n,i}return ne(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){Hf(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}(uH),W6e=we,V6e=os.every,U6e=Td,K6e=U6e("every");W6e({target:"Array",proto:!0,forced:!K6e},{every:function(r){return V6e(this,r,arguments.length>1?arguments[1]:void 0)}});var G6e=Jt,q6e=G6e("Array").every,Y6e=Et,X6e=q6e,xw=Array.prototype,Q6e=function(e){var r=e.every;return e===xw||Y6e(xw,e)&&r===xw.every?X6e:r},J6e=Q6e,Z6e=J6e,e9e=Z6e,cH=pe(e9e);function t9e(e,r){var t=typeof as<"u"&&Bl(e)||e["@@iterator"];if(!t){if(Ve(e)||(t=r9e(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.
|
197
|
+
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 r9e(e,r){var t;if(e){if(typeof e=="string")return YA(e,r);var n=rr(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Ll(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YA(e,r)}}function YA(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 n9e(e,r){var t=new xs;return Ye(e).call(e,function(n){var i;Ye(i=n.edges).call(i,function(o){o.connected&&t.add(o)})}),Ye(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 i9e(e){return dH(function(r){var t,n;return cH(t=Kr(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 o9e(e){return dH(function(r){var t,n;return cH(t=Kr(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 dH(e,r,t,n){var i,o=Js(null),a=sH(i=Bi(B9(n).call(n))).call(i,function(h,v){return h+1+v.edges.length},0),s=t+"Id",l=t==="to"?1:-1,u=t9e(n),c;try{var d=function(){var v=pt(c.value,2),p=v[0],$=v[1];if(!n.has(p)||!e($))return 0;o[p]=0;for(var m=[$],g=0,y,w=function(){var x,C;if(!n.has(p))return 0;var k=o[y.id]+l;if(Ye(x=Kr(C=y.edges).call(C,function(P){return P.connected&&P.to!==P.from&&P[t]!==y&&n.has(P.toId)&&n.has(P.fromId)})).call(x,function(P){var T=P[s],R=o[T];(R==null||r(k,R))&&(o[T]=k,m.push(P[t]))}),g>a)return{v:{v:n9e(n,o)}};++g},S;y=m.pop();)if(S=w(),S!==0&&S)return S.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 a9e=function(){function e(){re(this,e),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return ne(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 vt(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}(),s9e=function(){function e(r){re(this,e),this.body=r,this._resetRNG(Math.random()+":"+ry()),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"}},Pt(this.options,this.defaultOptions),this.bindEventListeners()}return ne(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(Rd(["randomSeed","improvedLayout","clusterThreshold"],this.options,t),Tn(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"),Je(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(t){this.initialRandomSeed=t,this._rng=e1(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"):Ge(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=Cr.getRangeCore(this.body.nodes,this.body.nodeIndices),n=Cr.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 a9e;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 y=s(),w=0,S=0;S<y.length-1;S++){var E=y[S].max-y[S+1].min;w+=E+t.options.hierarchical.treeSpacing,a(S+1,w)}},a=function(y,w){var S=t.hierarchical.trees;for(var E in S)Object.prototype.hasOwnProperty.call(S,E)&&S[E]===y&&t.direction.shift(E,w)},s=function(){for(var y=[],w=0;w<t.hierarchical.numTrees();w++)y.push(t.direction.getTreeSize(w));return y},l=function g(y,w){if(!w[y.id]&&(w[y.id]=!0,t.hierarchical.childrenReference[y.id])){var S=t.hierarchical.childrenReference[y.id];if(S.length>0)for(var E=0;E<S.length;E++)g(t.body.nodes[S[E]],w)}},u=function(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e9,S=1e9,E=1e9,x=1e9,C=-1e9;for(var k in y)if(Object.prototype.hasOwnProperty.call(y,k)){var P=t.body.nodes[k],T=t.hierarchical.levels[P.id],R=t.direction.getPosition(P),N=t._getSpaceAroundNode(P,y),F=pt(N,2),W=F[0],M=F[1];S=Math.min(W,S),E=Math.min(M,E),T<=w&&(x=Math.min(R,x),C=Math.max(R,C))}return[x,C,S,E]},c=function(y,w){var S=t.hierarchical.getMaxLevel(y.id),E=t.hierarchical.getMaxLevel(w.id);return Math.min(S,E)},d=function(y,w,S){for(var E=t.hierarchical,x=0;x<w.length;x++){var C=w[x],k=E.distributionOrdering[C];if(k.length>1)for(var P=0;P<k.length-1;P++){var T=k[P],R=k[P+1];E.hasSameParent(T,R)&&E.inSameSubNetwork(T,R)&&y(T,R,S)}}},f=function(y,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,E=t.direction.getPosition(y),x=t.direction.getPosition(w),C=Math.abs(x-E),k=t.options.hierarchical.nodeSpacing;if(C>k){var P={},T={};l(y,P),l(w,T);var R=c(y,w),N=u(P,R),F=u(T,R),W=N[1],M=F[0],j=F[2],O=Math.abs(W-M);if(O>k){var D=W-M+k;D<-j+k&&(D=-j+k),D<0&&(t._shiftBlock(w.id,D),n=!0,S===!0&&t._centerParent(w))}}},h=function(y,w){for(var S=w.id,E=w.edges,x=t.hierarchical.levels[w.id],C=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,k={},P=[],T=0;T<E.length;T++){var R=E[T];if(R.toId!=R.fromId){var N=R.toId==S?R.from:R.to;k[E[T].id]=N,t.hierarchical.levels[N.id]<x&&P.push(R)}}var F=function(G,K){for(var ee=0,le=0;le<K.length;le++)if(k[K[le].id]!==void 0){var se=t.direction.getPosition(k[K[le].id])-G;ee+=se/Math.sqrt(se*se+C)}return ee},W=function(G,K){for(var ee=0,le=0;le<K.length;le++)if(k[K[le].id]!==void 0){var se=t.direction.getPosition(k[K[le].id])-G;ee-=C*Math.pow(se*se+C,-1.5)}return ee},M=function(G,K){for(var ee=t.direction.getPosition(w),le={},se=0;se<G;se++){var de=F(ee,K),ge=W(ee,K),oe=40,V=Math.max(-oe,Math.min(oe,Math.round(de/ge)));if(ee=ee-V,le[ee]!==void 0)break;le[ee]=se}return ee},j=function(G){var K=t.direction.getPosition(w);if(i[w.id]===void 0){var ee={};l(w,ee),i[w.id]=ee}var le=u(i[w.id]),se=le[2],de=le[3],ge=G-K,oe=0;ge>0?oe=Math.min(ge,de-t.options.hierarchical.nodeSpacing):ge<0&&(oe=-Math.min(-ge,se-t.options.hierarchical.nodeSpacing)),oe!=0&&(t._shiftBlock(w.id,oe),n=!0)},O=function(G){var K=t.direction.getPosition(w),ee=t._getSpaceAroundNode(w),le=pt(ee,2),se=le[0],de=le[1],ge=G-K,oe=K;ge>0?oe=Math.min(K+(de-t.options.hierarchical.nodeSpacing),G):ge<0&&(oe=Math.max(K-(se-t.options.hierarchical.nodeSpacing),G)),oe!==K&&(t.direction.setPosition(w,oe),n=!0)},D=M(y,P);j(D),D=M(y,E),O(D)},v=function(y){var w=t.hierarchical.getLevels();w=Qs(w).call(w);for(var S=0;S<y;S++){n=!1;for(var E=0;E<w.length;E++)for(var x=w[E],C=t.hierarchical.distributionOrdering[x],k=0;k<C.length;k++)h(1e3,C[k]);if(n!==!0)break}},p=function(y){var w=t.hierarchical.getLevels();w=Qs(w).call(w);for(var S=0;S<y&&(n=!1,d(f,w,!0),n===!0);S++);},$=function(){for(var y in t.body.nodes)Object.prototype.hasOwnProperty.call(t.body.nodes,y)&&t._centerParent(t.body.nodes[y])},m=function(){var y=t.hierarchical.getLevels();y=Qs(y).call(y);for(var w=0;w<y.length;w++)for(var S=y[w],E=t.hierarchical.distributionOrdering[S],x=0;x<E.length;x++)t._centerParent(E[x])};this.options.hierarchical.blockShifting===!0&&(p(5),$()),this.options.hierarchical.edgeMinimization===!0&&v(20),this.options.hierarchical.parentCentralization===!0&&m(),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=pt(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=vt(t[n]);o=this._indexArrayToNodes(o),Hf(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]]);Hf(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 Oe(t.edges,function(o){var a;De(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;Oe(i,function(a){var s=t.body.nodes[a],l=t._getActiveEdges(s).length;n[l]=!0});var o=[];return Oe(n,function(a){o.push(Number(a))}),Hf(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;Oe(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(Cr.cloneOptions(s,"node"),Cr.cloneOptions(l,"node"),Cr.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=sH(t=this.body.nodeIndices).call(t,function(o,a){return o.set(a,n.body.nodes[a]),o},new O9);this.options.hierarchical.shakeTowards==="roots"?this.hierarchical.levels=o9e(i):this.hierarchical.levels=i9e(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,$=t._getActiveEdges(h),m=0;m<$.length;m++){var g=$[m];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 z6e(this):this.direction=new H6e(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 l9e(e,r){var t=typeof as<"u"&&Bl(e)||e["@@iterator"];if(!t){if(Ve(e)||(t=u9e(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.
|
198
|
+
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 u9e(e,r){var t;if(e){if(typeof e=="string")return XA(e,r);var n=rr(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Ll(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XA(e,r)}}function XA(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 c9e=function(){function e(r,t,n,i){var o=this,a,s;re(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}},Pt(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){o._clean()}),this.body.emitter.on("_dataChanged",X(a=this._restore).call(a,this)),this.body.emitter.on("_resetData",X(s=this._restore).call(s,this))}return ne(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,Je(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,X(t=this.toggleEditMode).call(t,this)),this._temporaryBindEvent("select",X(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,X(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",X(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=Je({},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,X(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",X(t=this._handleConnect).call(t,this)),this._temporaryBindUI("onDragEnd",X(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",X(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",X(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",X(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",Ge(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,X(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",X(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",X(a=this._controlNodeDragStart).call(a,this)),this._temporaryBindUI("onDrag",X(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",X(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=Je({},this.options.controlNodeStyle);i.id="targetNode"+Bf(),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={},oa(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,X(t=this.toggleEditMode).call(t,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(oa(this.editModeDiv),oa(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var t,n=l9e(Eo(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(),oa(this.manipulationDiv),oa(this.editModeDiv),oa(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,X(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,X(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,X(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,X(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,X(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,X(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: "+Lv(vt(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 rc(t,{});cy(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=De(n=this.body.edgeIndices).call(n,this.temporaryIds.edges[t]);if(i!==-1){var o;Eo(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=De(s=this.body.nodeIndices).call(s,this.temporaryIds.nodes[a]);if(l!==-1){var u;Eo(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=Pt({},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=Pt({},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"+Bf(),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(De(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(De(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:Bf(),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(Ge(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}(),Z="string",Y="boolean",A="number",yf="array",ve="object",fH="dom",d9e="any",Cw=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],kw={borderWidth:{number:A},borderWidthSelected:{number:A,undefined:"undefined"},brokenImage:{string:Z,undefined:"undefined"},chosen:{label:{boolean:Y,function:"function"},node:{boolean:Y,function:"function"},__type__:{object:ve,boolean:Y}},color:{border:{string:Z},background:{string:Z},highlight:{border:{string:Z},background:{string:Z},__type__:{object:ve,string:Z}},hover:{border:{string:Z},background:{string:Z},__type__:{object:ve,string:Z}},__type__:{object:ve,string:Z}},opacity:{number:A,undefined:"undefined"},fixed:{x:{boolean:Y},y:{boolean:Y},__type__:{object:ve,boolean:Y}},font:{align:{string:Z},color:{string:Z},size:{number:A},face:{string:Z},background:{string:Z},strokeWidth:{number:A},strokeColor:{string:Z},vadjust:{number:A},multi:{boolean:Y,string:Z},bold:{color:{string:Z},size:{number:A},face:{string:Z},mod:{string:Z},vadjust:{number:A},__type__:{object:ve,string:Z}},boldital:{color:{string:Z},size:{number:A},face:{string:Z},mod:{string:Z},vadjust:{number:A},__type__:{object:ve,string:Z}},ital:{color:{string:Z},size:{number:A},face:{string:Z},mod:{string:Z},vadjust:{number:A},__type__:{object:ve,string:Z}},mono:{color:{string:Z},size:{number:A},face:{string:Z},mod:{string:Z},vadjust:{number:A},__type__:{object:ve,string:Z}},__type__:{object:ve,string:Z}},group:{string:Z,number:A,undefined:"undefined"},heightConstraint:{minimum:{number:A},valign:{string:Z},__type__:{object:ve,boolean:Y,number:A}},hidden:{boolean:Y},icon:{face:{string:Z},code:{string:Z},size:{number:A},color:{string:Z},weight:{string:Z,number:A},__type__:{object:ve}},id:{string:Z,number:A},image:{selected:{string:Z,undefined:"undefined"},unselected:{string:Z,undefined:"undefined"},__type__:{object:ve,string:Z}},imagePadding:{top:{number:A},right:{number:A},bottom:{number:A},left:{number:A},__type__:{object:ve,number:A}},label:{string:Z,undefined:"undefined"},labelHighlightBold:{boolean:Y},level:{number:A,undefined:"undefined"},margin:{top:{number:A},right:{number:A},bottom:{number:A},left:{number:A},__type__:{object:ve,number:A}},mass:{number:A},physics:{boolean:Y},scaling:{min:{number:A},max:{number:A},label:{enabled:{boolean:Y},min:{number:A},max:{number:A},maxVisible:{number:A},drawThreshold:{number:A},__type__:{object:ve,boolean:Y}},customScalingFunction:{function:"function"},__type__:{object:ve}},shadow:{enabled:{boolean:Y},color:{string:Z},size:{number:A},x:{number:A},y:{number:A},__type__:{object:ve,boolean:Y}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:Y,array:yf},borderRadius:{number:A},interpolation:{boolean:Y},useImageSize:{boolean:Y},useBorderWithImage:{boolean:Y},coordinateOrigin:{string:["center","top-left"]},__type__:{object:ve}},size:{number:A},title:{string:Z,dom:fH,undefined:"undefined"},value:{number:A,undefined:"undefined"},widthConstraint:{minimum:{number:A},maximum:{number:A},__type__:{object:ve,boolean:Y,number:A}},x:{number:A},y:{number:A},__type__:{object:ve}},f9e={configure:{enabled:{boolean:Y},filter:{boolean:Y,string:Z,array:yf,function:"function"},container:{dom:fH},showButton:{boolean:Y},__type__:{object:ve,boolean:Y,string:Z,array:yf,function:"function"}},edges:{arrows:{to:{enabled:{boolean:Y},scaleFactor:{number:A},type:{string:Cw},imageHeight:{number:A},imageWidth:{number:A},src:{string:Z},__type__:{object:ve,boolean:Y}},middle:{enabled:{boolean:Y},scaleFactor:{number:A},type:{string:Cw},imageWidth:{number:A},imageHeight:{number:A},src:{string:Z},__type__:{object:ve,boolean:Y}},from:{enabled:{boolean:Y},scaleFactor:{number:A},type:{string:Cw},imageWidth:{number:A},imageHeight:{number:A},src:{string:Z},__type__:{object:ve,boolean:Y}},__type__:{string:["from","to","middle"],object:ve}},endPointOffset:{from:{number:A},to:{number:A},__type__:{object:ve,number:A}},arrowStrikethrough:{boolean:Y},background:{enabled:{boolean:Y},color:{string:Z},size:{number:A},dashes:{boolean:Y,array:yf},__type__:{object:ve,boolean:Y}},chosen:{label:{boolean:Y,function:"function"},edge:{boolean:Y,function:"function"},__type__:{object:ve,boolean:Y}},color:{color:{string:Z},highlight:{string:Z},hover:{string:Z},inherit:{string:["from","to","both"],boolean:Y},opacity:{number:A},__type__:{object:ve,string:Z}},dashes:{boolean:Y,array:yf},font:{color:{string:Z},size:{number:A},face:{string:Z},background:{string:Z},strokeWidth:{number:A},strokeColor:{string:Z},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:A},multi:{boolean:Y,string:Z},bold:{color:{string:Z},size:{number:A},face:{string:Z},mod:{string:Z},vadjust:{number:A},__type__:{object:ve,string:Z}},boldital:{color:{string:Z},size:{number:A},face:{string:Z},mod:{string:Z},vadjust:{number:A},__type__:{object:ve,string:Z}},ital:{color:{string:Z},size:{number:A},face:{string:Z},mod:{string:Z},vadjust:{number:A},__type__:{object:ve,string:Z}},mono:{color:{string:Z},size:{number:A},face:{string:Z},mod:{string:Z},vadjust:{number:A},__type__:{object:ve,string:Z}},__type__:{object:ve,string:Z}},hidden:{boolean:Y},hoverWidth:{function:"function",number:A},label:{string:Z,undefined:"undefined"},labelHighlightBold:{boolean:Y},length:{number:A,undefined:"undefined"},physics:{boolean:Y},scaling:{min:{number:A},max:{number:A},label:{enabled:{boolean:Y},min:{number:A},max:{number:A},maxVisible:{number:A},drawThreshold:{number:A},__type__:{object:ve,boolean:Y}},customScalingFunction:{function:"function"},__type__:{object:ve}},selectionWidth:{function:"function",number:A},selfReferenceSize:{number:A},selfReference:{size:{number:A},angle:{number:A},renderBehindTheNode:{boolean:Y},__type__:{object:ve}},shadow:{enabled:{boolean:Y},color:{string:Z},size:{number:A},x:{number:A},y:{number:A},__type__:{object:ve,boolean:Y}},smooth:{enabled:{boolean:Y},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:A},forceDirection:{string:["horizontal","vertical","none"],boolean:Y},__type__:{object:ve,boolean:Y}},title:{string:Z,undefined:"undefined"},width:{number:A},widthConstraint:{maximum:{number:A},__type__:{object:ve,boolean:Y,number:A}},value:{number:A,undefined:"undefined"},__type__:{object:ve}},groups:{useDefaultGroups:{boolean:Y},__any__:kw,__type__:{object:ve}},interaction:{dragNodes:{boolean:Y},dragView:{boolean:Y},hideEdgesOnDrag:{boolean:Y},hideEdgesOnZoom:{boolean:Y},hideNodesOnDrag:{boolean:Y},hover:{boolean:Y},keyboard:{enabled:{boolean:Y},speed:{x:{number:A},y:{number:A},zoom:{number:A},__type__:{object:ve}},bindToWindow:{boolean:Y},autoFocus:{boolean:Y},__type__:{object:ve,boolean:Y}},multiselect:{boolean:Y},navigationButtons:{boolean:Y},selectable:{boolean:Y},selectConnectedEdges:{boolean:Y},hoverConnectedEdges:{boolean:Y},tooltipDelay:{number:A},zoomView:{boolean:Y},zoomSpeed:{number:A},__type__:{object:ve}},layout:{randomSeed:{undefined:"undefined",number:A,string:Z},improvedLayout:{boolean:Y},clusterThreshold:{number:A},hierarchical:{enabled:{boolean:Y},levelSeparation:{number:A},nodeSpacing:{number:A},treeSpacing:{number:A},blockShifting:{boolean:Y},edgeMinimization:{boolean:Y},parentCentralization:{boolean:Y},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:ve,boolean:Y}},__type__:{object:ve}},manipulation:{enabled:{boolean:Y},initiallyActive:{boolean:Y},addNode:{boolean:Y,function:"function"},addEdge:{boolean:Y,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:ve,boolean:Y,function:"function"}},deleteNode:{boolean:Y,function:"function"},deleteEdge:{boolean:Y,function:"function"},controlNodeStyle:kw,__type__:{object:ve,boolean:Y}},nodes:kw,physics:{enabled:{boolean:Y},barnesHut:{theta:{number:A},gravitationalConstant:{number:A},centralGravity:{number:A},springLength:{number:A},springConstant:{number:A},damping:{number:A},avoidOverlap:{number:A},__type__:{object:ve}},forceAtlas2Based:{theta:{number:A},gravitationalConstant:{number:A},centralGravity:{number:A},springLength:{number:A},springConstant:{number:A},damping:{number:A},avoidOverlap:{number:A},__type__:{object:ve}},repulsion:{centralGravity:{number:A},springLength:{number:A},springConstant:{number:A},nodeDistance:{number:A},damping:{number:A},__type__:{object:ve}},hierarchicalRepulsion:{centralGravity:{number:A},springLength:{number:A},springConstant:{number:A},nodeDistance:{number:A},damping:{number:A},avoidOverlap:{number:A},__type__:{object:ve}},maxVelocity:{number:A},minVelocity:{number:A},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:Y},iterations:{number:A},updateInterval:{number:A},onlyDynamicEdges:{boolean:Y},fit:{boolean:Y},__type__:{object:ve,boolean:Y}},timestep:{number:A},adaptiveTimestep:{boolean:Y},wind:{x:{number:A},y:{number:A},__type__:{object:ve}},__type__:{object:ve,boolean:Y}},autoResize:{boolean:Y},clickToUse:{boolean:Y},locale:{string:Z},locales:{__any__:{any:d9e},__type__:{object:ve}},height:{string:Z},width:{string:Z},__type__:{object:ve}},hH={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]}}},h9e=function(r,t,n){var i;return!!(Fa(r).call(r,"physics")&&Fa(i=hH.physics.solver).call(i,t)&&n.physics.solver!==t&&t!=="wind")},v9e=function(){function e(){re(this,e)}return ne(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],$=o[p],m=0;m<h-1;m++)for(var g=n[m],y=o[g],w=m+1;w<h;w++){var S=n[w],E=o[S],x=Math.min(y[S],y[p]+$[S]);y[S]=x,E[g]=x}return o}}]),e}(),p9e=function(){function e(r,t,n){re(this,e),this.body=r,this.springLength=t,this.springConstant=n,this.distanceSolver=new v9e}return ne(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,$=0;d>a&&l<u;){l+=1;var m=this._getHighestEnergyNode(i),g=pt(m,4);for(f=g[0],d=g[1],h=g[2],v=g[3],p=d,$=0;p>s&&$<c;){$+=1,this._moveNode(f,h,v);var y=this._getEnergy(f),w=pt(y,3);p=w[0],h=w[1],v=w[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=pt(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=pt(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 $=a[p].x,m=a[p].y,g=f[p],y=h[p],w=1/Math.pow(Math.pow(c-$,2)+Math.pow(d-m,2),1.5);s+=g*(1-y*Math.pow(d-m,2)*w),l+=g*(y*(c-$)*(d-m)*w),u+=g*(1-y*Math.pow(c-$,2)*w)}}var S=s,E=l,x=n,C=u,k=i,P=(x/S+k/E)/(E/S-C/E),T=-(E*P+x)/S;a[t].x+=T,a[t].y+=P,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],$=v[1],m=i[h].x,g=i[h].y,y=1/Math.sqrt(Math.pow(l-m,2)+Math.pow(u-g,2)),w=a[h]*(l-m-s[h]*(l-m)*y),S=a[h]*(u-g-s[h]*(u-g)*y);o[f]=[w,S],c+=w,d+=S;var E=this.E_sums[h];E[0]+=w-p,E[1]+=S-$}}this.E_sums[t]=[c,d]}}]),e}();function he(e,r,t){var n,i,o,a,s=this;if(!(this instanceof he))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:dje,clickToUse:!1},Pt(this.options,this.defaultOptions),this.body={container:e,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:X(n=this.on).call(n,this),off:X(i=this.off).call(i,this),emit:X(o=this.emit).call(o,this),once:X(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 vje(function(){return s.body.emitter.emit("_requestRedraw")}),this.groups=new I3e,this.canvas=new qze(this.body),this.selectionHandler=new j8e(this.body,this.canvas),this.interactionHandler=new e8e(this.body,this.canvas,this.selectionHandler),this.view=new Xze(this.body,this.canvas),this.renderer=new Wze(this.body,this.canvas),this.physics=new Mze(this.body),this.layoutEngine=new s9e(this.body),this.clustering=new zze(this.body),this.manipulation=new c9e(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new m4e(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new _ze(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new p9e(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(t),this.setData(r)}d8(he.prototype);he.prototype.setOptions=function(e){var r=this;if(e===null&&(e=void 0),e!==void 0){var t=HFe.validate(e,f9e);t===!0&&console.error("%cErrors have been found in the supplied options object.",p9);var n=["locale","locales","clickToUse"];if(Rd(n,this.options,e),e.locale!==void 0&&(e.locale=fje(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 BFe(this,this.body.container,hH,this.canvas.pixelRatio,h9e)),this.configurator.setOptions(e.configure)),this.configurator&&this.configurator.options.enabled===!0){var i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Je(i.nodes,this.nodesHandler.options),Je(i.edges,this.edgesHandler.options),Je(i.layout,this.layoutEngine.options),Je(i.interaction,this.selectionHandler.options),Je(i.interaction,this.renderer.options),Je(i.interaction,this.interactionHandler.options),Je(i.manipulation,this.manipulation.options),Je(i.physics,this.physics.options),Je(i.global,this.canvas.options),Je(i.global,this.options),this.configurator.setModuleOptions(i)}e.clickToUse!==void 0?e.clickToUse===!0?this.activator===void 0&&(this.activator=new LFe(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")}};he.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)}};he.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")})};he.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=JFe(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=ZFe(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")};he.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];oa(this.body.container)};he.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)};he.prototype.isActive=function(){return!this.activator||this.activator.active};he.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};he.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};he.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};he.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};he.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};he.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};he.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};he.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};he.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};he.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};he.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};he.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};he.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};he.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};he.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};he.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};he.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};he.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};he.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};he.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};he.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};he.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};he.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};he.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};he.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};he.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};he.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};he.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};he.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};he.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};he.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)};he.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};he.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};he.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};he.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};he.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};he.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};he.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};he.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};he.prototype.getNodeAt=function(){var e=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return e!==void 0&&e.id!==void 0?e.id:e};he.prototype.getEdgeAt=function(){var e=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return e!==void 0&&e.id!==void 0?e.id:e};he.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};he.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};he.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};he.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};he.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};he.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};he.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};he.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};he.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};he.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};he.prototype.getOptionsFromConfigurator=function(){var e={};return this.configurator&&(e=this.configurator.getOptions.apply(this.configurator)),e};var[m9e,oP]=eo("useDataTableColumnsContext must be used within DataTableColumnProvider"),QA=e=>{let{children:r,columnsOrder:t,setColumnsOrder:n,columnsToggle:i,setColumnsToggle:o,resetColumnsOrder:a,resetColumnsToggle:s,setColumnWidth:l,resetColumnsWidth:u}=e,[c,d]=_.useState(""),[f,h]=_.useState("");return b.jsx(m9e,{value:{sourceColumn:c,setSourceColumn:d,targetColumn:f,setTargetColumn:h,columnsToggle:i,setColumnsToggle:o,swapColumns:()=>{if(!t||!n||!c||!f)return;let v=t.indexOf(c),p=t.indexOf(f);if(v!==-1&&p!==-1){let $=t.splice(v,1)[0];t.splice(p,0,$),n([...t])}},resetColumnsOrder:a,resetColumnsToggle:s,setColumnWidth:l,resetColumnsWidth:u},children:r})};function g9e(){return b.jsx("tr",{className:"mantine-datatable-empty-row",children:b.jsx("td",{})})}function y9e(){return b.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),b.jsx("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),b.jsx("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),b.jsx("path",{d:"M3 3l18 18"})]})}function b9e({icon:e,text:r,pt:t,pb:n,active:i,children:o}){return b.jsx(zi,{pt:t,pb:n,className:"mantine-datatable-empty-state","data-active":i||void 0,children:o||b.jsxs(b.Fragment,{children:[e||b.jsx("div",{className:"mantine-datatable-empty-state-icon",children:b.jsx(y9e,{})}),b.jsx(Do,{component:"div",size:"sm",c:"dimmed",children:r})]})})}var $9e=({key:e,columns:r=[],getInitialValueInEffect:t=!0})=>{function n(S,E){let x=[];return S.forEach(C=>{E.find(k=>k.accessor===C)&&x.push(C)}),E.forEach(C=>{x.includes(C.accessor)||x.push(C.accessor)}),x}function i(S,E){let x=[];return S.forEach(C=>{E.find(k=>k.accessor===C.accessor)&&x.push(C)}),E.forEach(C=>{x.find(k=>k.accessor===C.accessor)||x.push({accessor:C.accessor,defaultToggle:C.defaultToggle||!0,toggleable:C.toggleable,toggled:C.defaultToggle===void 0?!0:C.defaultToggle})}),x}function o(S,E){let x=[];return S.forEach(C=>{let k=Object.keys(C)[0];E.find(P=>P.accessor===k)&&x.push(C)}),E.forEach(C=>{let k=C.accessor;if(!x.find(P=>Object.keys(P)[0]===k)){let P={};P[k]="",x.push(P)}}),x}function a(){let[S,E]=r0({key:e?`${e}-columns-order`:"",defaultValue:e?u:void 0,getInitialValueInEffect:t});function x(P){e&&E(P)}if(!e)return[S,x];let C=n(S,r),k=JSON.stringify(S);return JSON.stringify(C)!==k&&x(C),[C,x]}function s(){let[S,E]=r0({key:e?`${e}-columns-toggle`:"",defaultValue:e?d:void 0,getInitialValueInEffect:t});function x(P){e&&E(P)}if(!e)return[S,x];let C=i(S,r),k=JSON.stringify(S);return JSON.stringify(C)!==k&&x(C),[i(S,r),x]}function l(){let[S,E]=r0({key:e?`${e}-columns-width`:"",defaultValue:e?c:void 0,getInitialValueInEffect:t});function x(P){e&&E(P)}if(!e)return[S,x];let C=o(S,r),k=JSON.stringify(S);return JSON.stringify(C)!==k&&x(C),[o(S,r),x]}let u=r&&r.map(S=>S.accessor)||[],c=r&&r.map(S=>({[S.accessor]:S.width??"initial"}))||[],d=r&&r.map(S=>({accessor:S.accessor,defaultToggle:S.defaultToggle||!0,toggleable:S.toggleable,toggled:S.defaultToggle===void 0?!0:S.defaultToggle})),[f,h]=a(),[v,p]=s(),[$,m]=l(),g=()=>h(u),y=()=>{p(d)},w=()=>m(c);return{effectiveColumns:_.useMemo(()=>f?f.map(S=>r.find(E=>E.accessor===S)).map(S=>{var E;return{...S,hidden:(S==null?void 0:S.hidden)||!((E=v.find(x=>x.accessor===(S==null?void 0:S.accessor)))!=null&&E.toggled)}}).map(S=>{var E;return{...S,width:(E=$.find(x=>x[S==null?void 0:S.accessor]))==null?void 0:E[S==null?void 0:S.accessor]}}):r,[r,f,v,$]),setColumnsOrder:h,columnsOrder:f,resetColumnsOrder:g,columnsToggle:v,setColumnsToggle:p,resetColumnsToggle:y,columnsWidth:$,setColumnsWidth:m,setColumnWidth:(S,E)=>{let x=$.map(C=>C[S]?{[S]:E}:C);m(x)},resetColumnsWidth:w}};function hu(){var n;let[e]=xG(),{width:r,height:t}=((n=e.current)==null?void 0:n.getBoundingClientRect())||{width:0,height:0};return{ref:e,width:r,height:t}}var w9e=typeof window<"u"?_.useLayoutEffect:_.useEffect;function S9e(e){let[r,t]=_.useState(null),n=(e==null?void 0:e.join(":"))||"";return _.useEffect(()=>{t(null)},[n]),{lastSelectionChangeIndex:r,setLastSelectionChangeIndex:t}}function _9e(e,r){let t=()=>{r(e.map(i=>i.matches))},n=e.map(i=>{try{return i.addEventListener("change",t),()=>i.removeEventListener("change",t)}catch{return i.addListener(t),()=>i.removeListener(t)}});return()=>{n.forEach(i=>i())}}function E9e(e,r){return r||(typeof window<"u"&&"matchMedia"in window?e.map(t=>window.matchMedia(t).matches):e.map(()=>!1))}function x9e(e,r,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){let[n,i]=_.useState(t?r:E9e(e,r)),o=_.useRef(null);return _.useEffect(()=>{if("matchMedia"in window)return o.current=e.map(a=>window.matchMedia(a)),i(o.current.map(a=>a.matches)),_9e(o.current,a=>{i(a)})},[e]),n}function C9e(e){let r=Mr(),t=_.useMemo(()=>e.map(i=>(typeof i=="function"?i(r):i)??""),[e,r]),n=_.useMemo(()=>e.map(()=>!0),[e]);return x9e(t,n)}function o1(e){let r=Mr(),t=typeof e=="function"?e(r):e;return Yj(t||"",!0)}function aP(e){let r=e.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${r.charAt(0).toUpperCase()}${r.slice(1)}`}function k9e(e,r,t){return e.filter(n=>!r.map(t).includes(t(n)))}function Pw(e,r){return e.filter((t,n,i)=>n===i.findIndex(o=>r(t)===r(o)))}function vH(e,r){return r?r.match(/([^[.\]])+/g).reduce((t,n)=>t&&t[n],e):void 0}function Sr(e,r){return typeof r=="string"?vH(e,r):r(e)}function P9e({rowExpansion:e,records:r,idAccessor:t}){let n=[];if(e&&r){let{trigger:s,allowMultiple:l,initiallyExpanded:u}=e;r&&s==="always"?n=r.map(c=>Sr(c,t)):u&&(n=r.filter((c,d)=>u({record:c,index:d})).map(c=>Sr(c,t)),l||(n=[n[0]]))}let i,o,a=_.useState(n);if(e){let{expandable:s,trigger:l,allowMultiple:u,collapseProps:c,content:d}=e;e.expanded?{recordIds:i,onRecordIdsChange:o}=e.expanded:[i,o]=a;let f=h=>o==null?void 0:o(i.filter(v=>v!==Sr(h,t)));return{expandOnClick:l!=="always"&&l!=="never",isRowExpanded:h=>l==="always"?!0:i.includes(Sr(h,t)),isExpandable:({record:h,index:v})=>s?s({record:h,index:v}):!0,expandRow:h=>{let v=Sr(h,t);o==null||o(u?[...i,v]:[v])},collapseRow:f,collapseProps:c,content:({record:h,index:v})=>()=>d({record:h,index:v,collapse:()=>f(h)})}}}function O9e(e,r){let[t,n]=_.useState(e),[i,o]=_.useState(e),a=TS(()=>n(!0),0),s=TS(()=>o(!1),r||200);return _.useEffect(()=>{e?(s.clear(),o(!0),a.start()):(a.clear(),n(!1),s.start())},[a,s,e]),{expanded:t,visible:i}}var sP="mantine-datatable-nowrap",lP="mantine-datatable-ellipsis",Gc="mantine-datatable-pointer-cursor",pH="mantine-datatable-context-menu-cursor",T9e="mantine-datatable-text-selection-disabled",a1="mantine-datatable-text-align-left",s1="mantine-datatable-text-align-center",l1="mantine-datatable-text-align-right";function I9e({className:e,style:r,visibleMediaQuery:t,title:n,noWrap:i,ellipsis:o,textAlign:a,width:s}){return o1(t)?b.jsx(Va,{className:Ae({[sP]:i||o,[lP]:o,[a1]:a==="left",[s1]:a==="center",[l1]:a==="right"},e),style:[{width:s,minWidth:s,maxWidth:s},r],children:n}):null}function R9e({shadowVisible:e}){return b.jsx(Va,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":e||void 0})}var M9e=_.forwardRef(function({className:e,style:r,columns:t,defaultColumnProps:n,selectionVisible:i,selectorCellShadowVisible:o,scrollDiff:a},s){let l=a<0;return b.jsx($C,{ref:s,className:Ae("mantine-datatable-footer",e),style:[{position:l?"relative":"sticky",bottom:L(l?a:0)},r],children:b.jsxs(gi,{children:[i&&b.jsx(R9e,{shadowVisible:o}),t.map(({hidden:u,...c})=>{if(u)return null;let{accessor:d,visibleMediaQuery:f,textAlign:h,width:v,footer:p,footerClassName:$,footerStyle:m,noWrap:g,ellipsis:y}={...n,...c};return b.jsx(I9e,{className:$,style:m,visibleMediaQuery:f,textAlign:h,width:v,title:p,noWrap:g,ellipsis:y},d)})]})})});function N9e({group:{id:e,columns:r,title:t,textAlign:n,className:i,style:o}}){let a=_.useMemo(()=>r.map(({visibleMediaQuery:u})=>u),[r]),s=C9e(a),l=_.useMemo(()=>r.filter(({hidden:u},c)=>!u&&(s==null?void 0:s[c])).length,[r,s]);return l>0?b.jsx(Va,{colSpan:l,className:Ae("mantine-datatable-column-group-header-cell",{[a1]:n==="left",[s1]:n==="center",[l1]:n==="right"},i),style:o,children:t??aP(e)}):null}function A9e(){return b.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})]})}function D9e(){return b.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z",strokeWidth:"0",fill:"currentColor"})]})}function F9e({children:e,isActive:r,filterPopoverProps:t}){let[n,{close:i,toggle:o}]=CG(!1),a=r?D9e:A9e,s=qj(i);return b.jsxs(yn,{withArrow:!0,shadow:"md",opened:n,onClose:i,trapFocus:!0,...t,children:[b.jsx(By,{children:b.jsx(Wa,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":r||void 0,size:"sm",variant:"default",onClick:l=>{l.preventDefault(),o()},onKeyDown:l=>l.stopPropagation(),children:b.jsx(a,{})})}),b.jsx(Gh,{ref:s,onClick:l=>l.stopPropagation(),onKeyDown:l=>l.stopPropagation(),children:typeof e=="function"?e({close:i}):e})]})}var j9e=e=>{let{accessor:r,columnRef:t}=e,n=_.useRef(null),[i,o]=_.useState(0),{setColumnWidth:a}=oP(),s=c=>{c.preventDefault(),c.stopPropagation(),document.addEventListener("mousemove",l),document.addEventListener("mouseup",u),document.body.style.cursor="col-resize"},l=c=>{if(!t.current)return;let d=c.clientX-t.current.getBoundingClientRect().right,f=`${t.current.getBoundingClientRect().width+d}px`;t.current.style.width=f,a(r,t.current.style.width),o(-d)},u=()=>{t.current&&(document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",u),document.body.style.cursor="initial",a(r,t.current.style.width),o(0))};return b.jsx("div",{ref:n,onClick:c=>c.stopPropagation(),onMouseDown:s,onDoubleClick:()=>{t.current&&(t.current.style.maxWidth="initial",t.current.style.minWidth="initial",t.current.style.width="initial",a(r,"initial"))},className:"mantine-datatable-header-resizable-handle",style:{right:L(i)}})};function L9e(){return b.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M12 5l0 14"}),b.jsx("path",{d:"M16 9l-4 -4"}),b.jsx("path",{d:"M8 9l4 -4"})]})}function B9e(){return b.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M8 7l4 -4l4 4"}),b.jsx("path",{d:"M8 17l4 4l4 -4"}),b.jsx("path",{d:"M12 3l0 18"})]})}function z9e(){return b.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),b.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),b.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),b.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),b.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),b.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function H9e(){return b.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M18 6l-12 12"}),b.jsx("path",{d:"M6 6l12 12"})]})}function W9e({className:e,style:r,accessor:t,visibleMediaQuery:n,title:i,sortable:o,draggable:a,toggleable:s,resizable:l,sortIcons:u,textAlign:c,width:d,sortStatus:f,onSortStatusChange:h,filter:v,filterPopoverProps:p,filtering:$,sortKey:m}){let{setSourceColumn:g,setTargetColumn:y,swapColumns:w,setColumnsToggle:S}=oP(),[E,x]=_.useState(!1),C=_.useRef(null);if(!o1(n))return null;let k=i??aP(t),P=typeof k=="string"?k:void 0,T=o&&h?O=>{O!=null&&O.defaultPrevented||h({sortKey:m,columnAccessor:t,direction:(f==null?void 0:f.columnAccessor)===t?f.direction==="asc"?"desc":"asc":(f==null?void 0:f.direction)??"asc"})}:void 0,R=O=>{O.stopPropagation(),g(t),x(!1)},N=O=>{O.preventDefault(),y(t),x(!0)},F=()=>{y(t),x(!1),w()},W=()=>{x(!0)},M=()=>{x(!1)},j=O=>{O.stopPropagation(),S(D=>D.map(z=>z.accessor===t?{...z,toggled:!1}:z))};return b.jsxs(Va,{className:Ae({"mantine-datatable-header-cell-sortable":o,"mantine-datatable-header-cell-toggleable":s,"mantine-datatable-header-cell-resizable":l},e),style:[{width:d,...l?{minWidth:"1px"}:{minWidth:d,maxWidth:d}},r],role:o?"button":void 0,tabIndex:o?0:void 0,onClick:T,onKeyDown:O=>O.key==="Enter"&&(T==null?void 0:T()),ref:C,children:[b.jsxs(Cl,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[b.jsxs(Dn,{align:"center",w:"100%",className:Ae({"mantine-datatable-header-cell-draggable":a,"mantine-datatable-header-cell-drag-over":E}),draggable:a,onDragStart:a?R:void 0,onDragEnter:a?W:void 0,onDragOver:a?N:void 0,onDrop:a?F:void 0,onDragLeave:a?M:void 0,children:[a?b.jsx(zi,{role:"img","aria-label":"Drag column",children:b.jsx(Wa,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:O=>{O.stopPropagation()},children:b.jsx(z9e,{})})}):null,b.jsx(Q,{className:Ae("mantine-datatable-header-cell-sortable-text",{[a1]:c==="left",[s1]:c==="center",[l1]:c==="right"},sP,lP),title:P,children:k})]}),s?b.jsx(zi,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:b.jsx(Wa,{size:"xs",variant:"light",onClick:j,children:b.jsx(H9e,{})})}):null,o||(f==null?void 0:f.columnAccessor)===t?b.jsx(b.Fragment,{children:(f==null?void 0:f.columnAccessor)===t?b.jsx(zi,{className:Ae("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":f.direction==="desc"}),role:"img","aria-label":`Sorted ${f.direction==="desc"?"descending":"ascending"}`,children:(u==null?void 0:u.sorted)||b.jsx(L9e,{})}):b.jsx(zi,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:(u==null?void 0:u.unsorted)||b.jsx(B9e,{})})}):null,v?b.jsx(F9e,{filterPopoverProps:p,isActive:!!$,children:v}):null]}),l?b.jsx(j9e,{accessor:t,columnRef:C}):null]})}var V9e=_.forwardRef(function({className:e,style:r,trigger:t,shadowVisible:n,checked:i,indeterminate:o,checkboxProps:a,onChange:s,rowSpan:l},u){let c=!a.disabled;return b.jsx(Va,{ref:u,className:Ae("mantine-datatable-header-selector-cell",{[Gc]:t==="cell"&&c},e),style:r,rowSpan:l,"data-shadow-visible":n||void 0,onClick:t==="cell"&&c?s:void 0,children:b.jsx(es,{classNames:c?{input:Gc}:void 0,checked:i,indeterminate:o,onChange:s,...a,disabled:!(s||a.onChange)||a.disabled})})}),U9e=_.forwardRef(function({selectionColumnHeaderRef:e,className:r,style:t,sortStatus:n,sortIcons:i,onSortStatusChange:o,columns:a,defaultColumnProps:s,groups:l,selectionTrigger:u,selectionVisible:c,selectionChecked:d,selectionIndeterminate:f,onSelectionChange:h,selectionCheckboxProps:v,selectorCellShadowVisible:p,selectionColumnClassName:$,selectionColumnStyle:m},g){let y=c?b.jsx(V9e,{ref:e,className:$,style:m,trigger:u,shadowVisible:p,checked:d,indeterminate:f,checkboxProps:v,onChange:h,rowSpan:l?2:void 0}):null,{columnsToggle:w,setColumnsToggle:S}=oP(),[E,x]=_.useState(!1),C=a.some(T=>T.toggleable),k=C?Object.fromEntries(a.map(({accessor:T,title:R})=>[T,R??aP(String(T))])):void 0,P=b.jsxs(bC,{className:Ae("mantine-datatable-header",r),style:t,ref:g,onContextMenu:C?T=>{T.preventDefault(),x(R=>!R)}:void 0,children:[l&&b.jsxs(gi,{children:[y,l.map(T=>b.jsx(N9e,{group:T},T.id))]}),b.jsxs(gi,{children:[!l&&y,a.map(({hidden:T,...R},N)=>{if(T)return null;let{accessor:F,visibleMediaQuery:W,textAlign:M,width:j,title:O,sortable:D,draggable:z,toggleable:G,resizable:K,titleClassName:ee,titleStyle:le,filter:se,filterPopoverProps:de,filtering:ge,sortKey:oe}={...s,...R};return b.jsx(W9e,{accessor:F,className:ee,style:le,visibleMediaQuery:W,textAlign:M,width:j,title:O,sortable:D,draggable:z,toggleable:G,resizable:K&&N<a.length-1,sortStatus:n,sortIcons:i,sortKey:oe,onSortStatusChange:o,filter:se,filterPopoverProps:de,filtering:ge},F)})]})]});return C?b.jsxs(yn,{position:"bottom",withArrow:!0,shadow:"md",opened:E,onChange:x,children:[b.jsx(By,{children:P}),b.jsx(Gh,{children:b.jsx(Yi,{children:w.filter(T=>T.toggleable).map(T=>b.jsx(Cl,{children:b.jsx(es,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:k[T.accessor],checked:T.toggled,onChange:R=>{S(w.map(N=>N.accessor===T.accessor?{...N,toggled:R.currentTarget.checked}:N))}})},T.accessor))})})]}):P});function K9e({pt:e,pb:r,fetching:t,customContent:n,backgroundBlur:i,size:o,type:a,color:s}){return b.jsx(zi,{pt:e,pb:r,className:Ae("mantine-datatable-loader",{"mantine-datatable-loader-fetching":t}),style:[{backdropFilter:i?`blur(${i}px)`:void 0}],children:t&&(n||b.jsx(xl,{size:o,type:a,color:s}))})}function xt(e,r,t){return e?Wo({color:typeof e=="object"?e[t]:e,theme:r}).value:void 0}function G9e({theme:e,c:r,backgroundColor:t,borderColor:n,rowBorderColor:i,stripedColor:o,highlightOnHoverColor:a}){return{"--mantine-datatable-color-light":xt(r,e,"light"),"--mantine-datatable-color-dark":xt(r,e,"dark"),"--mantine-datatable-background-color-light":xt(t,e,"light"),"--mantine-datatable-background-color-dark":xt(t,e,"dark"),"--mantine-datatable-border-color-light":xt(n,e,"light"),"--mantine-datatable-border-color-dark":xt(n,e,"dark"),"--mantine-datatable-row-border-color-light":xt(i,e,"light"),"--mantine-datatable-row-border-color-dark":xt(i,e,"dark"),"--mantine-datatable-striped-color-light":xt(o,e,"light"),"--mantine-datatable-striped-color-dark":xt(o,e,"dark"),"--mantine-datatable-highlight-on-hover-color-light":xt(a,e,"light"),"--mantine-datatable-highlight-on-hover-color-dark":xt(a,e,"dark")}}function mH({theme:e,paginationActiveTextColor:r,paginationActiveBackgroundColor:t}){return{"--mantine-datatable-pagination-active-text-color-light":xt(r,e,"light"),"--mantine-datatable-pagination-active-text-color-dark":xt(r,e,"dark"),"--mantine-datatable-pagination-active-background-color-light":xt(t,e,"light"),"--mantine-datatable-pagination-active-background-color-dark":xt(t,e,"dark")}}function q9e({theme:e,color:r,backgroundColor:t}){return{"--mantine-datatable-row-color-light":xt(r,e,"light"),"--mantine-datatable-row-color-dark":xt(r,e,"dark"),"--mantine-datatable-row-background-color-light":xt(t,e,"light"),"--mantine-datatable-row-background-color-dark":xt(t,e,"dark")}}function Y9e(){return b.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M8 9l4 -4l4 4"}),b.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var JA={xs:L(22),sm:L(26),md:L(32),lg:L(38),xl:L(44)};function X9e({size:e,label:r,values:t,value:n,activeTextColor:i,activeBackgroundColor:o,onChange:a}){return b.jsxs(Cl,{gap:"xs",children:[b.jsx(Do,{component:"div",size:e,children:r}),b.jsxs(Vo,{withinPortal:!0,withArrow:!0,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[b.jsx(vC,{children:b.jsx(Si,{size:e,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:b.jsx(Y9e,{}),style:[{fontWeight:"normal"},s=>({height:JA[e],paddingLeft:s.spacing[e],paddingRight:s.spacing[e]})],children:n})}),b.jsx(Gy,{children:t.map(s=>{let l=s===n;return b.jsx(qy,{className:Ae({"mantine-datatable-page-size-selector-active":l}),style:[{height:JA[e]},l&&(i||o)?u=>mH({theme:u,paginationActiveTextColor:i,paginationActiveBackgroundColor:o}):void 0],disabled:l,onClick:()=>a(s),children:b.jsx(Do,{component:"div",size:e,children:s})},s)})})]})]})}var Q9e=_.forwardRef(function({className:e,style:r,fetching:t,page:n,onPageChange:i,paginationWithEdges:o,paginationWithControls:a,paginationActiveTextColor:s,paginationActiveBackgroundColor:l,paginationSize:u,loadingText:c,noRecordsText:d,paginationText:f,totalRecords:h,recordsPerPage:v,onRecordsPerPageChange:p,recordsPerPageLabel:$,recordsPerPageOptions:m,recordsLength:g,horizontalSpacing:y,paginationWrapBreakpoint:w,getPaginationControlProps:S},E){let x;if(h){let k=(n-1)*v+1,P=k+(g||0)-1;x=f({from:k,to:P,totalRecords:h})}else x=t?c:d;let C=o1(({breakpoints:k})=>`(min-width: ${typeof w=="number"?`${L(w)}rem`:k[w]||w})`);return b.jsxs(Q,{ref:E,px:y??"xs",py:"xs",className:Ae("mantine-datatable-pagination",e),style:[{flexDirection:C?"row":"column"},r],children:[b.jsx(Do,{component:"div",className:"mantine-datatable-pagination-text",size:u,children:x}),m&&b.jsx(X9e,{activeTextColor:s,activeBackgroundColor:l,size:u,label:$,values:m,value:v,onChange:p}),b.jsx(xi,{classNames:{root:Ae("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":t||!g}),control:"mantine-datatable-pagination-pages-control"},style:s||l?k=>mH({theme:k,paginationActiveTextColor:s,paginationActiveBackgroundColor:l}):void 0,withEdges:o,withControls:a,value:n,onChange:i,size:u,total:Math.ceil(h/v),getControlProps:S})]})});function J9e({className:e,style:r,visibleMediaQuery:t,record:n,index:i,onClick:o,onDoubleClick:a,onContextMenu:s,noWrap:l,ellipsis:u,textAlign:c,width:d,accessor:f,render:h,defaultRender:v,customCellAttributes:p}){return o1(t)?b.jsx(ev,{className:Ae({[sP]:l||u,[lP]:u,[Gc]:o||a,[pH]:s,[a1]:c==="left",[s1]:c==="center",[l1]:c==="right"},e),style:[{width:d,minWidth:d,maxWidth:d},r],onClick:o,onDoubleClick:a,onContextMenu:s,...p==null?void 0:p(n,i),children:h?h(n,i):v?v(n,i,f):vH(n,f)}):null}function Z9e({open:e,colSpan:r,content:t,collapseProps:n}){let{expanded:i,visible:o}=O9e(e,n==null?void 0:n.transitionDuration);return o?b.jsxs(b.Fragment,{children:[b.jsx(gi,{}),b.jsx(gi,{children:b.jsx(ev,{className:"mantine-datatable-row-expansion-cell",colSpan:r,children:b.jsx(xx,{in:i,...n,children:b.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:t()})})})})]}):null}function eHe({className:e,style:r,record:t,index:n,trigger:i,onChange:o,withRightShadow:a,checkboxProps:s,getCheckboxProps:l,...u}){let c={...s,...l(t,n)},d=!u.disabled&&!c.disabled,f=h=>{h.stopPropagation(),i==="cell"&&d&&(o==null||o(h))};return b.jsx(ev,{className:Ae("mantine-datatable-row-selector-cell",{[Gc]:i==="cell"&&d},e),style:r,"data-shadow-visible":a||void 0,onClick:f,children:b.jsx(es,{classNames:d?{input:Gc}:void 0,onChange:o,...u,...c})})}function tHe({record:e,index:r,columns:t,defaultColumnProps:n,defaultColumnRender:i,selectionTrigger:o,selectionVisible:a,selectionChecked:s,onSelectionChange:l,isRecordSelectable:u,selectionCheckboxProps:c,getSelectionCheckboxProps:d,onClick:f,onDoubleClick:h,onContextMenu:v,onCellClick:p,onCellDoubleClick:$,onCellContextMenu:m,expansion:g,customAttributes:y,color:w,backgroundColor:S,className:E,style:x,selectorCellShadowVisible:C,selectionColumnClassName:k,selectionColumnStyle:P,rowFactory:T}){let R=b.jsxs(b.Fragment,{children:[a&&b.jsx(eHe,{className:k,style:P,record:e,index:r,trigger:o,withRightShadow:C,checked:s,disabled:!l||(u?!u(e,r):!1),onChange:l,checkboxProps:c,getCheckboxProps:d}),t.map(({hidden:W,hiddenContent:M,...j},O)=>{if(W||M)return null;let{accessor:D,visibleMediaQuery:z,textAlign:G,noWrap:K,ellipsis:ee,width:le,render:se,cellsClassName:de,cellsStyle:ge,customCellAttributes:oe}={...n,...j};return b.jsx(J9e,{className:typeof de=="function"?de(e,r):de,style:ge==null?void 0:ge(e,r),visibleMediaQuery:z,record:e,index:r,onClick:p?V=>p({event:V,record:e,index:r,column:j,columnIndex:O}):void 0,onDoubleClick:$?V=>$({event:V,record:e,index:r,column:j,columnIndex:O}):void 0,onContextMenu:m?V=>m({event:V,record:e,index:r,column:j,columnIndex:O}):void 0,accessor:D,textAlign:G,noWrap:K,ellipsis:ee,width:le,render:se,defaultRender:i,customCellAttributes:oe},D)})]}),N=g&&b.jsx(Z9e,{colSpan:t.filter(({hidden:W})=>!W).length+(a?1:0),open:g.isRowExpanded(e),content:g.content({record:e,index:r}),collapseProps:g.collapseProps}),F=rHe({record:e,index:r,selectionChecked:s,onClick:f,onDoubleClick:h,onContextMenu:v,expansion:g,customAttributes:y,color:w,backgroundColor:S,className:E,style:x});return T?T({record:e,index:r,rowProps:F,children:R,expandedElement:N}):b.jsxs(b.Fragment,{children:[b.jsx(gi,{...F,children:R}),N]})}function rHe({record:e,index:r,selectionChecked:t,onClick:n,onDoubleClick:i,onContextMenu:o,expansion:a,customAttributes:s,color:l,backgroundColor:u,className:c,style:d}){return{className:Ae("mantine-datatable-row",{[Gc]:n||i||(a==null?void 0:a.isExpandable({record:e,index:r}))&&(a==null?void 0:a.expandOnClick)},{[pH]:o},typeof c=="function"?c(e,r):c),"data-selected":t||void 0,onClick:f=>{if(a){let{isExpandable:h,isRowExpanded:v,expandOnClick:p,expandRow:$,collapseRow:m}=a;h({record:e,index:r})&&p&&(v(e)?m(e):$(e))}n==null||n({event:f,record:e,index:r})},onDoubleClick:i?f=>i({event:f,record:e,index:r}):void 0,onContextMenu:o?f=>o({event:f,record:e,index:r}):void 0,style:[l||u?f=>{let h=l==null?void 0:l(e,r),v=u==null?void 0:u(e,r);return q9e({theme:f,color:h,backgroundColor:v})}:void 0,d==null?void 0:d(e,r)],...(s==null?void 0:s(e,r))??{}}}function nHe({topShadowVisible:e,leftShadowVisible:r,leftShadowBehind:t,rightShadowVisible:n,rightShadowBehind:i,bottomShadowVisible:o,headerHeight:a,footerHeight:s,onScrollPositionChange:l,children:u,viewportRef:c,scrollAreaProps:d}){return b.jsxs(El,{...d,viewportRef:c,classNames:{root:"mantine-datatable-scroll-area",scrollbar:"mantine-datatable-scroll-area-scrollbar",thumb:"mantine-datatable-scroll-area-thumb",corner:"mantine-datatable-scroll-area-corner"},onScrollPositionChange:l,children:[u,b.jsx(Q,{className:Ae("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow",{"mantine-datatable-scroll-area-shadow-visible":e}),style:{top:a?L(a):0}}),b.jsx("div",{className:Ae("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-visible":r,"mantine-datatable-scroll-area-shadow-behind":t})}),b.jsx("div",{className:Ae("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-visible":n,"mantine-datatable-scroll-area-shadow-behind":i})}),b.jsx(Q,{className:Ae("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow",{"mantine-datatable-scroll-area-shadow-visible":o}),style:{bottom:s?L(s+1):0}})]})}function iHe({withTableBorder:e,borderRadius:r,textSelectionDisabled:t,height:n="100%",minHeight:i,maxHeight:o,shadow:a,verticalAlign:s="center",fetching:l,columns:u,storeColumnsKey:c,groups:d,pinFirstColumn:f,pinLastColumn:h,defaultColumnProps:v,defaultColumnRender:p,idAccessor:$="id",records:m,selectionTrigger:g="checkbox",selectedRecords:y,onSelectedRecordsChange:w,selectionColumnClassName:S,selectionColumnStyle:E,isRecordSelectable:x,selectionCheckboxProps:C,allRecordsSelectionCheckboxProps:k={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:P=(En,cs)=>({"aria-label":`Select record ${cs+1}`}),sortStatus:T,sortIcons:R,onSortStatusChange:N,horizontalSpacing:F,page:W,onPageChange:M,totalRecords:j,recordsPerPage:O,onRecordsPerPageChange:D,recordsPerPageOptions:z,recordsPerPageLabel:G="Records per page",paginationWithEdges:K,paginationWithControls:ee,paginationActiveTextColor:le,paginationActiveBackgroundColor:se,paginationSize:de="sm",paginationText:ge=({from:En,to:cs,totalRecords:ds})=>`${En} - ${cs} / ${ds}`,paginationWrapBreakpoint:oe="sm",getPaginationControlProps:V=En=>En==="previous"?{"aria-label":"Previous page"}:En==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:H,customLoader:U,loaderSize:te,loaderType:ce,loaderColor:ie,loadingText:ke="...",emptyState:Ee,noRecordsText:xe="No records",noRecordsIcon:tt,highlightOnHover:Te,striped:jt,noHeader:Xe,onRowClick:Lt,onRowDoubleClick:Md,onRowContextMenu:sr,onCellClick:Xn,onCellDoubleClick:Xo,onCellContextMenu:Qn,onScroll:Nt,onScrollToTop:Ci,onScrollToBottom:wt,onScrollToLeft:Vl,onScrollToRight:us,c:Ar,backgroundColor:Jn,borderColor:Nd,rowBorderColor:bH,stripedColor:$H,highlightOnHoverColor:wH,rowColor:SH,rowBackgroundColor:_H,rowExpansion:EH,rowClassName:xH,rowStyle:CH,customRowAttributes:kH,scrollViewportRef:PH,scrollAreaProps:OH,tableRef:TH,bodyRef:IH,m:RH,my:MH,mx:NH,mt:AH,mb:DH,ml:FH,mr:jH,className:LH,classNames:gr,style:BH,styles:yr,rowFactory:zH,tableWrapper:u1,...uP}){let{ref:En,width:cs,height:ds}=hu(),Ad=_.useMemo(()=>(d==null?void 0:d.flatMap(Re=>Re.columns))??u,[u,d]),cP=$9e({key:c,columns:Ad}),{ref:HH,height:c1}=hu(),{ref:WH,width:d1,height:Dd}=hu(),{ref:VH,height:UH}=hu(),{ref:KH,height:dP}=hu(),{ref:GH,width:qH}=hu(),YH=Tt(WH,TH),XH=Tt(En,PH),[f1,fP]=_.useState(!0),[h1,hP]=_.useState(!0),[Fd,vP]=_.useState(!0),[Gv,pP]=_.useState(!0),QH=P9e({rowExpansion:EH,records:m,idAccessor:$}),v1=_.useCallback(()=>{var Kl,Gl;let Re=((Kl=En.current)==null?void 0:Kl.scrollTop)??0,Zn=((Gl=En.current)==null?void 0:Gl.scrollLeft)??0;if(l||Dd<=ds)fP(!0),hP(!0);else{let ki=Re===0,so=Dd-Re-ds<1;fP(ki),hP(so),ki&&ki!==f1&&(Ci==null||Ci()),so&&so!==h1&&(wt==null||wt())}if(l||d1===cs)vP(!0),pP(!0);else{let ki=Zn===0,so=d1-Zn-cs<1;vP(ki),pP(so),ki&&ki!==Fd&&(Vl==null||Vl()),so&&so!==Gv&&(us==null||us())}},[l,wt,Vl,us,Ci,ds,En,cs,h1,Fd,Gv,f1,Dd,d1]);w9e(v1,[v1]);let mP=Lh(v1,50),JH=_.useCallback(Re=>{Nt==null||Nt(Re),mP()},[mP,Nt]),ZH=_.useCallback(Re=>{var Zn;(Zn=En.current)==null||Zn.scrollTo({top:0,left:0}),M(Re)},[M,En]),qv=m==null?void 0:m.length,gP=m==null?void 0:m.map(Re=>Sr(Re,$)),Ul=!!y,fs=y==null?void 0:y.map(Re=>Sr(Re,$)),yP=gP!==void 0&&fs!==void 0&&fs.length>0,jd=x?m==null?void 0:m.filter(x):m,Yv=jd==null?void 0:jd.map(Re=>Sr(Re,$)),Xv=yP&&Yv.every(Re=>fs.includes(Re)),e7=yP&&Yv.some(Re=>fs.includes(Re)),t7=_.useCallback(()=>{y&&w&&w(Xv?y.filter(Re=>!Yv.includes(Sr(Re,$))):Pw([...y,...jd],Re=>Sr(Re,$)))},[Xv,$,w,Yv,jd,y]),{lastSelectionChangeIndex:Qv,setLastSelectionChangeIndex:r7}=S9e(gP),p1=Ul&&!Fd&&!f,n7={m:RH,my:MH,mx:NH,mt:AH,mb:DH,ml:FH,mr:jH},i7=_.useCallback(({children:Re})=>u1?u1({children:Re}):Re,[u1]);return b.jsx(QA,{...cP,children:b.jsxs(Q,{...n7,className:Ae("mantine-datatable",{"mantine-datatable-with-border":e},LH,gr==null?void 0:gr.root),style:[Re=>({...G9e({theme:Re,c:Ar,backgroundColor:Jn,borderColor:Nd,rowBorderColor:bH,stripedColor:$H,highlightOnHoverColor:wH}),borderRadius:Re.radius[r]||r,boxShadow:Re.shadows[a]||a,height:n,minHeight:i,maxHeight:o}),BH,yr==null?void 0:yr.root,{position:"relative"}],children:[b.jsx(nHe,{viewportRef:XH,topShadowVisible:!f1,leftShadowVisible:!Fd,leftShadowBehind:Ul||!!f,rightShadowVisible:!Gv,rightShadowBehind:h,bottomShadowVisible:!h1,headerHeight:c1,footerHeight:UH,onScrollPositionChange:JH,scrollAreaProps:OH,children:b.jsx(i7,{children:b.jsxs(Un,{ref:YH,horizontalSpacing:F,className:Ae("mantine-datatable-table",{[T9e]:t,"mantine-datatable-vertical-align-top":s==="top","mantine-datatable-vertical-align-bottom":s==="bottom","mantine-datatable-last-row-border-bottom-visible":uP.withRowBorders&&Dd<ds,"mantine-datatable-pin-last-column":h,"mantine-datatable-pin-last-column-scrolled":!Gv&&h,"mantine-datatable-selection-column-visible":Ul,"mantine-datatable-pin-first-column":f,"mantine-datatable-pin-first-column-scrolled":!Fd&&f},gr==null?void 0:gr.table),style:{...yr==null?void 0:yr.table,"--mantine-datatable-selection-column-width":`${qH}px`},"data-striped":qv&&jt||void 0,"data-highlight-on-hover":Te||void 0,...uP,children:[Xe?null:b.jsx(QA,{...cP,children:b.jsx(U9e,{ref:HH,selectionColumnHeaderRef:GH,className:gr==null?void 0:gr.header,style:yr==null?void 0:yr.header,columns:Ad,defaultColumnProps:v,groups:d,sortStatus:T,sortIcons:R,onSortStatusChange:N,selectionTrigger:g,selectionVisible:Ul,selectionChecked:Xv,selectionIndeterminate:e7&&!Xv,onSelectionChange:t7,selectionCheckboxProps:{...C,...k},selectorCellShadowVisible:p1,selectionColumnClassName:S,selectionColumnStyle:E})}),b.jsx("tbody",{ref:IH,children:qv?m.map((Re,Zn)=>{let Kl=Sr(Re,$),Gl=(fs==null?void 0:fs.includes(Kl))||!1,ki;return w&&y&&(ki=so=>{if(so.nativeEvent.shiftKey&&Qv!==null){let ql=m.filter(Zn>Qv?(hs,vs)=>vs>=Qv&&vs<=Zn&&(x?x(hs,vs):!0):(hs,vs)=>vs>=Zn&&vs<=Qv&&(x?x(hs,vs):!0));w(Gl?k9e(y,ql,hs=>Sr(hs,$)):Pw([...y,...ql],hs=>Sr(hs,$)))}else w(Gl?y.filter(ql=>Sr(ql,$)!==Kl):Pw([...y,Re],ql=>Sr(ql,$)));r7(Zn)}),b.jsx(tHe,{record:Re,index:Zn,columns:Ad,defaultColumnProps:v,defaultColumnRender:p,selectionTrigger:g,selectionVisible:Ul,selectionChecked:Gl,onSelectionChange:ki,isRecordSelectable:x,selectionCheckboxProps:C,getSelectionCheckboxProps:P,onClick:Lt,onDoubleClick:Md,onCellClick:Xn,onCellDoubleClick:Xo,onContextMenu:sr,onCellContextMenu:Qn,expansion:QH,color:SH,backgroundColor:_H,className:xH,style:CH,customAttributes:kH,selectorCellShadowVisible:p1,selectionColumnClassName:S,selectionColumnStyle:E,idAccessor:$,rowFactory:zH},Kl)}):b.jsx(g9e,{})}),Ad.some(({footer:Re})=>Re)&&b.jsx(M9e,{ref:VH,className:gr==null?void 0:gr.footer,style:yr==null?void 0:yr.footer,columns:Ad,defaultColumnProps:v,selectionVisible:Ul,selectorCellShadowVisible:p1,scrollDiff:Dd-ds})]})})}),W&&b.jsx(Q9e,{ref:KH,className:gr==null?void 0:gr.pagination,style:yr==null?void 0:yr.pagination,horizontalSpacing:F,fetching:l,page:W,onPageChange:ZH,totalRecords:j,recordsPerPage:O,onRecordsPerPageChange:D,recordsPerPageOptions:z,recordsPerPageLabel:G,paginationWithEdges:K,paginationWithControls:ee,paginationActiveTextColor:le,paginationActiveBackgroundColor:se,paginationSize:de,paginationText:ge,paginationWrapBreakpoint:oe,getPaginationControlProps:V,noRecordsText:xe,loadingText:ke,recordsLength:qv}),b.jsx(K9e,{pt:c1,pb:dP,fetching:l,backgroundBlur:H,customContent:U,size:te,type:ce,color:ie}),b.jsx(b9e,{pt:c1,pb:dP,icon:tt,text:xe,active:!l&&!qv,children:Ee})]})})}var oHe=_.forwardRef(function({children:e,isDragging:r,...t},n){let i=_.useRef(null),o=Tt(i,n);return _.useEffect(()=>{if(!i.current||!r)return;let a=i.current.parentElement.parentElement.children[0].children[0];for(let s=0;s<a.children.length;s++){let l=a.children[s].getBoundingClientRect(),u=i.current.children[s];u.style.height=l.height+"px",u.style.width=l.width+"px",u.style.minWidth=l.width+"px",u.style.maxWidth=l.width+"px"}},[r,e]),b.jsx(gi,{"data-is-dragging":r,ref:o,...t,children:e})});oHe.displayName="DataTableDraggableRow";/**
|
199
|
+
* @license @tabler/icons-react v3.30.0 - MIT
|
200
|
+
*
|
201
|
+
* This source code is licensed under the MIT license.
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
203
|
+
*/var aHe={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
|
204
|
+
* @license @tabler/icons-react v3.30.0 - MIT
|
205
|
+
*
|
206
|
+
* This source code is licensed under the MIT license.
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
208
|
+
*/const gH=(e,r,t,n)=>{const i=_.forwardRef(({color:o="currentColor",size:a=24,stroke:s=2,title:l,className:u,children:c,...d},f)=>_.createElement("svg",{ref:f,...aHe[e],width:a,height:a,className:["tabler-icon",`tabler-icon-${r}`,u].join(" "),strokeWidth:s,stroke:o,...d},[l&&_.createElement("title",{key:"svg-title"},l),...n.map(([h,v])=>_.createElement(h,v)),...Array.isArray(c)?c:[c]]));return i.displayName=`${t}`,i};/**
|
209
|
+
* @license @tabler/icons-react v3.30.0 - MIT
|
210
|
+
*
|
211
|
+
* This source code is licensed under the MIT license.
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
213
|
+
*/var sHe=gH("outline","logout-2","IconLogout2",[["path",{d:"M10 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2",key:"svg-0"}],["path",{d:"M15 12h-12l3 -3",key:"svg-1"}],["path",{d:"M6 15l-3 -3",key:"svg-2"}]]);/**
|
214
|
+
* @license @tabler/icons-react v3.30.0 - MIT
|
215
|
+
*
|
216
|
+
* This source code is licensed under the MIT license.
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
218
|
+
*/var lHe=gH("outline","refresh-dot","IconRefreshDot",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]]);const uHe=vx("/_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 Lc([])),[h,v]=_.useState(new Lc([])),[p,$]=_.useState(""),[m,g]=_.useState(""),[y,w]=_.useState("Step"),[S,E]=_.useState(1),[x,C]=_.useState("table"),k=tb(),P=hx({from:"/_ui/",select:M=>M.token}),{isSuccess:T,data:R}=t_({queryKey:["userData"],queryFn:async()=>{const M=P||localStorage.getItem("studio-token"),j=M?{Authorization:`Bearer ${M}`}:void 0;return fetch("/users",{headers:j}).then(O=>O.json()).then(O=>(g(p||O[0].root_id),$(p||O[0].root_id),O))}}),{isSuccess:N,data:F}=t_({queryKey:[`graph-${y}-${p}-${m}`],queryFn:async()=>{const M=P||localStorage.getItem("studio-token"),j=M?{Authorization:`Bearer ${M}`}:void 0;return y==="Full"?fetch(`/graph?root=${p}`,{headers:j}).then(O=>O.json()):fetch(`/graph/node?node_id=${m}&depth=${S}`,{headers:j}).then(O=>O.json())},enabled:!!p});_.useEffect(()=>{if(N){for(const M of F.nodes||[])try{d.add({id:M.id,label:M.name,info:M.data,group:M.name})}catch(j){console.log(j)}for(const M of F.edges||[])try{h.add({id:M.id,from:M.source.split(":").pop()||"",info:M.data,to:M.target.split(":").pop()||"",label:M.name})}catch(j){console.log(j)}}},[F,N]),_.useEffect(()=>{t.current&&(u||(u!==null?(u==null||u.destroy(),c(null)):c(new he(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(M,j,O,D){return D||0/(O||0*2)},min:8,max:50}},manipulation:{enabled:!0,addNode:!0},layout:{improvedLayout:!1},physics:{forceAtlas2Based:{springLength:40},solver:"forceAtlas2Based"}}))))},[t.current]),_.useEffect(()=>{u&&(u.on("click",M=>{if(i(M.nodes),M.nodes.length===1){const j=d.get(M.nodes[0]);l(null),a(j),r(!1)}else if(M.nodes.length===0&&M.edges.length===1){const j=h.get(M.edges[0]);a(null),l(j),r(!1)}else l(null),a(null),r(!0)}),u.on("doubleClick",M=>{const j=M.nodes[0];y==="Focus"&&j&&d.remove(d.map(O=>O.id).filter(O=>O!==j)),g(j)}))},[u,y]);const W=()=>{localStorage.removeItem("studio-token"),k.invalidateQueries({queryKey:["studioToken"]})};return b.jsxs(Q,{pos:"relative",children:[b.jsx(Ng,{position:{top:20,left:20},children:b.jsxs(sl,{withBorder:!0,w:"300px",p:"xs",children:[b.jsx(Dn,{justify:"center",mb:"lg",children:b.jsxs(Dn,{gap:"xs",align:"center",children:[b.jsx("img",{src:"/jac_logo.png",alt:"logo",width:"24"}),b.jsx(ll,{order:6,children:"Jaseci Studio"})]})}),b.jsx(lC,{py:"xs"}),b.jsxs(Yi,{gap:"xs",mb:"lg",children:[T&&b.jsx(Dg,{size:"xs",label:"Graph",value:p,searchable:!0,data:R==null?void 0:R.map(M=>({value:M.root_id,label:M.email}))}),b.jsx(Dg,{size:"xs",label:"Traversal Mode",searchable:!0,value:y,data:["Full","Step","Focus"],onChange:M=>{g(p),$(p),h.clear(),d.clear(),w(M)}}),b.jsx(Uy,{label:"Depth",size:"xs",children:b.jsx(yC,{size:"xs",min:1,max:10,showLabelOnHover:!0,value:S,onChange:M=>E(M),marks:[{value:1,label:"1"},{value:5,label:"5"},{value:10,label:"10"}]})}),(y==="Step"||y==="Focus")&&b.jsx(Cl,{justify:"end",children:b.jsx(Si,{onClick:()=>{d.length!==1&&(h.clear(),d.clear(),g(p),$(p),setTimeout(()=>{k.refetchQueries(),E(1)},200))},leftSection:b.jsx(lHe,{style:{width:L(18),height:L(18)}}),mt:"xl",size:"compact-xs",children:"Reset Graph"})})]}),P?null:b.jsx(Si,{color:"red",leftSection:b.jsx(sHe,{}),onClick:W,children:"Logout"})]})}),b.jsx(Ng,{position:{bottom:20,right:80,left:160},children:b.jsx(xx,{in:!e,children:b.jsxs(sl,{withBorder:!0,w:"100%",h:"260px",children:[b.jsxs(Dn,{justify:"space-between",mb:"xs",children:[b.jsx(Do,{mb:"sm",c:"gray.9",fw:500,fz:"xs",tt:"uppercase",children:"Object Information"}),b.jsx(gC,{data:[{label:"JSON",value:"json"},{label:"Table",value:"table"}],defaultValue:x,size:"xs",onChange:M=>{C(M.toLowerCase())}})]}),x==="table"&&b.jsx(iHe,{noRecordsText:"Object has no properties",withTableBorder:!0,borderRadius:"sm",withColumnBorders:!0,striped:!0,highlightOnHover:!0,idAccessor:M=>M.label,records:Object.entries((o==null?void 0:o.info)||{}).map(([M,j])=>({label:M,value:typeof j=="string"||typeof j=="number"?j:JSON.stringify(j,null," ")})),columns:[{accessor:"label",title:"Property"},{accessor:"value",title:"Value"}]}),x==="json"&&b.jsx(dC,{rows:7,minRows:7,value:JSON.stringify((o==null?void 0:o.info)||(s==null?void 0:s.info),null," "),variant:"filled"})]})})}),b.jsx("div",{id:"graph",style:{width:"100%",height:"100vh",backgroundImage:"radial-gradient(#e1e1e1 1px, #635c5c00 1px)",backgroundSize:"16px 16px"},ref:t})]})}}),cHe=$ee.update({id:"/login",path:"/login",getParentRoute:()=>PC}),yH=wee.update({id:"/_ui",getParentRoute:()=>PC}),dHe=uHe.update({id:"/",path:"/",getParentRoute:()=>yH}),fHe={UiIndexRoute:dHe},hHe=yH._addFileChildren(fHe),vHe={UiRoute:hHe,LoginRoute:cHe},pHe=PC._addFileChildren(vHe)._addFileTypes(),mHe=nK({routeTree:pHe}),mm=document.getElementById("root");mm!=null&&mm.innerHTML||Ow.createRoot(mm).render(b.jsx(_.StrictMode,{children:b.jsx(lK,{router:mHe})}));
|