@elizaos/plugin-knowledge 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +216 -2
- package/dist/.vite/manifest.json +2 -2
- package/dist/assets/index-BRhhNXdt.js +140 -0
- package/dist/assets/index-Clk6Xgn1.css +1 -0
- package/dist/{chunk-HUTF5APY.js → chunk-BB6B27BS.js} +11 -1
- package/dist/{chunk-HUTF5APY.js.map → chunk-BB6B27BS.js.map} +1 -1
- package/dist/{docs-loader-2S6H7F4L.js → docs-loader-NAE6ASGY.js} +2 -2
- package/dist/index.d.ts +21 -1
- package/dist/index.html +2 -2
- package/dist/index.js +46 -87
- package/dist/index.js.map +1 -1
- package/package.json +130 -2
- package/dist/assets/index-BdT7VEOH.css +0 -1
- package/dist/assets/index-lAKoVTZd.js +0 -142
- /package/dist/{docs-loader-2S6H7F4L.js.map → docs-loader-NAE6ASGY.js.map} +0 -0
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
var Kp=e=>{throw TypeError(e)};var Rc=(e,n,r)=>n.has(e)||Kp("Cannot "+r);var O=(e,n,r)=>(Rc(e,n,"read from private field"),r?r.call(e):n.get(e)),ve=(e,n,r)=>n.has(e)?Kp("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,r),se=(e,n,r,a)=>(Rc(e,n,"write to private field"),a?a.call(e,r):n.set(e,r),r),Ee=(e,n,r)=>(Rc(e,n,"access private method"),r);var Kl=(e,n,r,a)=>({set _(l){se(e,n,l,r)},get _(){return O(e,n,a)}});(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(l){if(l.ep)return;l.ep=!0;const u=r(l);fetch(l.href,u)}})();function Qm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tc={exports:{}},Zo={},Mc={exports:{}},Pe={};/**
|
|
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 Gp;function z1(){if(Gp)return Pe;Gp=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.iterator;function _(N){return N===null||typeof N!="object"?null:(N=m&&N[m]||N["@@iterator"],typeof N=="function"?N:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,C={};function b(N,V,ce){this.props=N,this.context=V,this.refs=C,this.updater=ce||x}b.prototype.isReactComponent={},b.prototype.setState=function(N,V){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,V,"setState")},b.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function w(){}w.prototype=b.prototype;function E(N,V,ce){this.props=N,this.context=V,this.refs=C,this.updater=ce||x}var M=E.prototype=new w;M.constructor=E,k(M,b.prototype),M.isPureReactComponent=!0;var P=Array.isArray,T=Object.prototype.hasOwnProperty,z={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function I(N,V,ce){var pe,ke={},Se=null,be=null;if(V!=null)for(pe in V.ref!==void 0&&(be=V.ref),V.key!==void 0&&(Se=""+V.key),V)T.call(V,pe)&&!D.hasOwnProperty(pe)&&(ke[pe]=V[pe]);var Ce=arguments.length-2;if(Ce===1)ke.children=ce;else if(1<Ce){for(var Ae=Array(Ce),gt=0;gt<Ce;gt++)Ae[gt]=arguments[gt+2];ke.children=Ae}if(N&&N.defaultProps)for(pe in Ce=N.defaultProps,Ce)ke[pe]===void 0&&(ke[pe]=Ce[pe]);return{$$typeof:e,type:N,key:Se,ref:be,props:ke,_owner:z.current}}function q(N,V){return{$$typeof:e,type:N.type,key:V,ref:N.ref,props:N.props,_owner:N._owner}}function K(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function J(N){var V={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ce){return V[ce]})}var ae=/\/+/g;function he(N,V){return typeof N=="object"&&N!==null&&N.key!=null?J(""+N.key):V.toString(36)}function F(N,V,ce,pe,ke){var Se=typeof N;(Se==="undefined"||Se==="boolean")&&(N=null);var be=!1;if(N===null)be=!0;else switch(Se){case"string":case"number":be=!0;break;case"object":switch(N.$$typeof){case e:case n:be=!0}}if(be)return be=N,ke=ke(be),N=pe===""?"."+he(be,0):pe,P(ke)?(ce="",N!=null&&(ce=N.replace(ae,"$&/")+"/"),F(ke,V,ce,"",function(gt){return gt})):ke!=null&&(K(ke)&&(ke=q(ke,ce+(!ke.key||be&&be.key===ke.key?"":(""+ke.key).replace(ae,"$&/")+"/")+N)),V.push(ke)),1;if(be=0,pe=pe===""?".":pe+":",P(N))for(var Ce=0;Ce<N.length;Ce++){Se=N[Ce];var Ae=pe+he(Se,Ce);be+=F(Se,V,ce,Ae,ke)}else if(Ae=_(N),typeof Ae=="function")for(N=Ae.call(N),Ce=0;!(Se=N.next()).done;)Se=Se.value,Ae=pe+he(Se,Ce++),be+=F(Se,V,ce,Ae,ke);else if(Se==="object")throw V=String(N),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return be}function ne(N,V,ce){if(N==null)return N;var pe=[],ke=0;return F(N,pe,"","",function(Se){return V.call(ce,Se,ke++)}),pe}function G(N){if(N._status===-1){var V=N._result;V=V(),V.then(function(ce){(N._status===0||N._status===-1)&&(N._status=1,N._result=ce)},function(ce){(N._status===0||N._status===-1)&&(N._status=2,N._result=ce)}),N._status===-1&&(N._status=0,N._result=V)}if(N._status===1)return N._result.default;throw N._result}var oe={current:null},Q={transition:null},ee={ReactCurrentDispatcher:oe,ReactCurrentBatchConfig:Q,ReactCurrentOwner:z};function X(){throw Error("act(...) is not supported in production builds of React.")}return Pe.Children={map:ne,forEach:function(N,V,ce){ne(N,function(){V.apply(this,arguments)},ce)},count:function(N){var V=0;return ne(N,function(){V++}),V},toArray:function(N){return ne(N,function(V){return V})||[]},only:function(N){if(!K(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Pe.Component=b,Pe.Fragment=r,Pe.Profiler=l,Pe.PureComponent=E,Pe.StrictMode=a,Pe.Suspense=d,Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,Pe.act=X,Pe.cloneElement=function(N,V,ce){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var pe=k({},N.props),ke=N.key,Se=N.ref,be=N._owner;if(V!=null){if(V.ref!==void 0&&(Se=V.ref,be=z.current),V.key!==void 0&&(ke=""+V.key),N.type&&N.type.defaultProps)var Ce=N.type.defaultProps;for(Ae in V)T.call(V,Ae)&&!D.hasOwnProperty(Ae)&&(pe[Ae]=V[Ae]===void 0&&Ce!==void 0?Ce[Ae]:V[Ae])}var Ae=arguments.length-2;if(Ae===1)pe.children=ce;else if(1<Ae){Ce=Array(Ae);for(var gt=0;gt<Ae;gt++)Ce[gt]=arguments[gt+2];pe.children=Ce}return{$$typeof:e,type:N.type,key:ke,ref:Se,props:pe,_owner:be}},Pe.createContext=function(N){return N={$$typeof:c,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},N.Provider={$$typeof:u,_context:N},N.Consumer=N},Pe.createElement=I,Pe.createFactory=function(N){var V=I.bind(null,N);return V.type=N,V},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(N){return{$$typeof:h,render:N}},Pe.isValidElement=K,Pe.lazy=function(N){return{$$typeof:y,_payload:{_status:-1,_result:N},_init:G}},Pe.memo=function(N,V){return{$$typeof:g,type:N,compare:V===void 0?null:V}},Pe.startTransition=function(N){var V=Q.transition;Q.transition={};try{N()}finally{Q.transition=V}},Pe.unstable_act=X,Pe.useCallback=function(N,V){return oe.current.useCallback(N,V)},Pe.useContext=function(N){return oe.current.useContext(N)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(N){return oe.current.useDeferredValue(N)},Pe.useEffect=function(N,V){return oe.current.useEffect(N,V)},Pe.useId=function(){return oe.current.useId()},Pe.useImperativeHandle=function(N,V,ce){return oe.current.useImperativeHandle(N,V,ce)},Pe.useInsertionEffect=function(N,V){return oe.current.useInsertionEffect(N,V)},Pe.useLayoutEffect=function(N,V){return oe.current.useLayoutEffect(N,V)},Pe.useMemo=function(N,V){return oe.current.useMemo(N,V)},Pe.useReducer=function(N,V,ce){return oe.current.useReducer(N,V,ce)},Pe.useRef=function(N){return oe.current.useRef(N)},Pe.useState=function(N){return oe.current.useState(N)},Pe.useSyncExternalStore=function(N,V,ce){return oe.current.useSyncExternalStore(N,V,ce)},Pe.useTransition=function(){return oe.current.useTransition()},Pe.version="18.3.1",Pe}var Xp;function zf(){return Xp||(Xp=1,Mc.exports=z1()),Mc.exports}/**
|
|
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 Yp;function j1(){if(Yp)return Zo;Yp=1;var e=zf(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(h,d,g){var y,m={},_=null,x=null;g!==void 0&&(_=""+g),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(x=d.ref);for(y in d)a.call(d,y)&&!u.hasOwnProperty(y)&&(m[y]=d[y]);if(h&&h.defaultProps)for(y in d=h.defaultProps,d)m[y]===void 0&&(m[y]=d[y]);return{$$typeof:n,type:h,key:_,ref:x,props:m,_owner:l.current}}return Zo.Fragment=r,Zo.jsx=c,Zo.jsxs=c,Zo}var Zp;function D1(){return Zp||(Zp=1,Tc.exports=j1()),Tc.exports}var W=D1(),so=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(){}},ui=typeof window>"u"||"Deno"in globalThis;function xt(){}function I1(e,n){return typeof e=="function"?e(n):e}function Zc(e){return typeof e=="number"&&e>=0&&e!==1/0}function Km(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Dr(e,n){return typeof e=="function"?e(n):e}function fn(e,n){return typeof e=="function"?e(n):e}function Jp(e,n){const{type:r="all",exact:a,fetchStatus:l,predicate:u,queryKey:c,stale:h}=e;if(c){if(a){if(n.queryHash!==jf(c,n.options))return!1}else if(!ya(n.queryKey,c))return!1}if(r!=="all"){const d=n.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||l&&l!==n.state.fetchStatus||u&&!u(n))}function eg(e,n){const{exact:r,status:a,predicate:l,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(r){if(ci(n.options.mutationKey)!==ci(u))return!1}else if(!ya(n.options.mutationKey,u))return!1}return!(a&&n.state.status!==a||l&&!l(n))}function jf(e,n){return((n==null?void 0:n.queryKeyHashFn)||ci)(e)}function ci(e){return JSON.stringify(e,(n,r)=>Jc(r)?Object.keys(r).sort().reduce((a,l)=>(a[l]=r[l],a),{}):r)}function ya(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>ya(e[r],n[r])):!1}function Gm(e,n){if(e===n)return e;const r=tg(e)&&tg(n);if(r||Jc(e)&&Jc(n)){const a=r?e:Object.keys(e),l=a.length,u=r?n:Object.keys(n),c=u.length,h=r?[]:{};let d=0;for(let g=0;g<c;g++){const y=r?g:u[g];(!r&&a.includes(y)||r)&&e[y]===void 0&&n[y]===void 0?(h[y]=void 0,d++):(h[y]=Gm(e[y],n[y]),h[y]===e[y]&&e[y]!==void 0&&d++)}return l===c&&d===l?e:h}return n}function ps(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}function tg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Jc(e){if(!ng(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!ng(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ng(e){return Object.prototype.toString.call(e)==="[object Object]"}function L1(e){return new Promise(n=>{setTimeout(n,e)})}function ef(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?Gm(e,n):n}function F1(e,n,r=0){const a=[...e,n];return r&&a.length>r?a.slice(1):a}function $1(e,n,r=0){const a=[n,...e];return r&&a.length>r?a.slice(0,-1):a}var Df=Symbol();function Xm(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===Df?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ym(e,n){return typeof e=="function"?e(...n):!!e}var Jr,Er,qi,Im,U1=(Im=class extends so{constructor(){super();ve(this,Jr);ve(this,Er);ve(this,qi);se(this,qi,n=>{if(!ui&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){O(this,Er)||this.setEventListener(O(this,qi))}onUnsubscribe(){var n;this.hasListeners()||((n=O(this,Er))==null||n.call(this),se(this,Er,void 0))}setEventListener(n){var r;se(this,qi,n),(r=O(this,Er))==null||r.call(this),se(this,Er,n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(n){O(this,Jr)!==n&&(se(this,Jr,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof O(this,Jr)=="boolean"?O(this,Jr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Jr=new WeakMap,Er=new WeakMap,qi=new WeakMap,Im),If=new U1,Qi,Pr,Ki,Lm,H1=(Lm=class extends so{constructor(){super();ve(this,Qi,!0);ve(this,Pr);ve(this,Ki);se(this,Ki,n=>{if(!ui&&window.addEventListener){const r=()=>n(!0),a=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",a)}}})}onSubscribe(){O(this,Pr)||this.setEventListener(O(this,Ki))}onUnsubscribe(){var n;this.hasListeners()||((n=O(this,Pr))==null||n.call(this),se(this,Pr,void 0))}setEventListener(n){var r;se(this,Ki,n),(r=O(this,Pr))==null||r.call(this),se(this,Pr,n(this.setOnline.bind(this)))}setOnline(n){O(this,Qi)!==n&&(se(this,Qi,n),this.listeners.forEach(a=>{a(n)}))}isOnline(){return O(this,Qi)}},Qi=new WeakMap,Pr=new WeakMap,Ki=new WeakMap,Lm),gs=new H1;function tf(){let e,n;const r=new Promise((l,u)=>{e=l,n=u});r.status="pending",r.catch(()=>{});function a(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{a({status:"fulfilled",value:l}),e(l)},r.reject=l=>{a({status:"rejected",reason:l}),n(l)},r}function B1(e){return Math.min(1e3*2**e,3e4)}function Zm(e){return(e??"online")==="online"?gs.isOnline():!0}var Jm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Nc(e){return e instanceof Jm}function e0(e){let n=!1,r=0,a=!1,l;const u=tf(),c=C=>{var b;a||(_(new Jm(C)),(b=e.abort)==null||b.call(e))},h=()=>{n=!0},d=()=>{n=!1},g=()=>If.isFocused()&&(e.networkMode==="always"||gs.isOnline())&&e.canRun(),y=()=>Zm(e.networkMode)&&e.canRun(),m=C=>{var b;a||(a=!0,(b=e.onSuccess)==null||b.call(e,C),l==null||l(),u.resolve(C))},_=C=>{var b;a||(a=!0,(b=e.onError)==null||b.call(e,C),l==null||l(),u.reject(C))},x=()=>new Promise(C=>{var b;l=w=>{(a||g())&&C(w)},(b=e.onPause)==null||b.call(e)}).then(()=>{var C;l=void 0,a||(C=e.onContinue)==null||C.call(e)}),k=()=>{if(a)return;let C;const b=r===0?e.initialPromise:void 0;try{C=b??e.fn()}catch(w){C=Promise.reject(w)}Promise.resolve(C).then(m).catch(w=>{var z;if(a)return;const E=e.retry??(ui?0:3),M=e.retryDelay??B1,P=typeof M=="function"?M(r,w):M,T=E===!0||typeof E=="number"&&r<E||typeof E=="function"&&E(r,w);if(n||!T){_(w);return}r++,(z=e.onFail)==null||z.call(e,r,w),L1(P).then(()=>g()?void 0:x()).then(()=>{n?_(w):k()})})};return{promise:u,cancel:c,continue:()=>(l==null||l(),u),cancelRetry:h,continueRetry:d,canStart:y,start:()=>(y()?k():x().then(k),u)}}var V1=e=>setTimeout(e,0);function W1(){let e=[],n=0,r=h=>{h()},a=h=>{h()},l=V1;const u=h=>{n?e.push(h):l(()=>{r(h)})},c=()=>{const h=e;e=[],h.length&&l(()=>{a(()=>{h.forEach(d=>{r(d)})})})};return{batch:h=>{let d;n++;try{d=h()}finally{n--,n||c()}return d},batchCalls:h=>(...d)=>{u(()=>{h(...d)})},schedule:u,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{a=h},setScheduler:h=>{l=h}}}var nt=W1(),ei,Fm,t0=(Fm=class{constructor(){ve(this,ei)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zc(this.gcTime)&&se(this,ei,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ui?1/0:5*60*1e3))}clearGcTimeout(){O(this,ei)&&(clearTimeout(O(this,ei)),se(this,ei,void 0))}},ei=new WeakMap,Fm),Gi,Xi,Gt,ti,pt,Ea,ni,un,Bn,$m,q1=($m=class extends t0{constructor(n){super();ve(this,un);ve(this,Gi);ve(this,Xi);ve(this,Gt);ve(this,ti);ve(this,pt);ve(this,Ea);ve(this,ni);se(this,ni,!1),se(this,Ea,n.defaultOptions),this.setOptions(n.options),this.observers=[],se(this,ti,n.client),se(this,Gt,O(this,ti).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,se(this,Gi,Q1(this.options)),this.state=n.state??O(this,Gi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=O(this,pt))==null?void 0:n.promise}setOptions(n){this.options={...O(this,Ea),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,Gt).remove(this)}setData(n,r){const a=ef(this.state.data,n,this.options);return Ee(this,un,Bn).call(this,{data:a,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),a}setState(n,r){Ee(this,un,Bn).call(this,{type:"setState",state:n,setStateOptions:r})}cancel(n){var a,l;const r=(a=O(this,pt))==null?void 0:a.promise;return(l=O(this,pt))==null||l.cancel(n),r?r.then(xt).catch(xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,Gi))}isActive(){return this.observers.some(n=>fn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Df||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Dr(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Km(this.state.dataUpdatedAt,n)}onFocus(){var r;const n=this.observers.find(a=>a.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(r=O(this,pt))==null||r.continue()}onOnline(){var r;const n=this.observers.find(a=>a.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(r=O(this,pt))==null||r.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),O(this,Gt).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(O(this,pt)&&(O(this,ni)?O(this,pt).cancel({revert:!0}):O(this,pt).cancelRetry()),this.scheduleGc()),O(this,Gt).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,un,Bn).call(this,{type:"invalidate"})}fetch(n,r){var d,g,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(O(this,pt))return O(this,pt).continueRetry(),O(this,pt).promise}if(n&&this.setOptions(n),!this.options.queryFn){const m=this.observers.find(_=>_.options.queryFn);m&&this.setOptions(m.options)}const a=new AbortController,l=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(se(this,ni,!0),a.signal)})},u=()=>{const m=Xm(this.options,r),_={client:O(this,ti),queryKey:this.queryKey,meta:this.meta};return l(_),se(this,ni,!1),this.options.persister?this.options.persister(m,_,this):m(_)},c={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:O(this,ti),state:this.state,fetchFn:u};l(c),(d=this.options.behavior)==null||d.onFetch(c,this),se(this,Xi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=c.fetchOptions)==null?void 0:g.meta))&&Ee(this,un,Bn).call(this,{type:"fetch",meta:(y=c.fetchOptions)==null?void 0:y.meta});const h=m=>{var _,x,k,C;Nc(m)&&m.silent||Ee(this,un,Bn).call(this,{type:"error",error:m}),Nc(m)||((x=(_=O(this,Gt).config).onError)==null||x.call(_,m,this),(C=(k=O(this,Gt).config).onSettled)==null||C.call(k,this.state.data,m,this)),this.scheduleGc()};return se(this,pt,e0({initialPromise:r==null?void 0:r.initialPromise,fn:c.fetchFn,abort:a.abort.bind(a),onSuccess:m=>{var _,x,k,C;if(m===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(b){h(b);return}(x=(_=O(this,Gt).config).onSuccess)==null||x.call(_,m,this),(C=(k=O(this,Gt).config).onSettled)==null||C.call(k,m,this.state.error,this),this.scheduleGc()},onError:h,onFail:(m,_)=>{Ee(this,un,Bn).call(this,{type:"failed",failureCount:m,error:_})},onPause:()=>{Ee(this,un,Bn).call(this,{type:"pause"})},onContinue:()=>{Ee(this,un,Bn).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0})),O(this,pt).start()}},Gi=new WeakMap,Xi=new WeakMap,Gt=new WeakMap,ti=new WeakMap,pt=new WeakMap,Ea=new WeakMap,ni=new WeakMap,un=new WeakSet,Bn=function(n){const r=a=>{switch(n.type){case"failed":return{...a,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...n0(a.data,this.options),fetchMeta:n.meta??null};case"success":return{...a,data:n.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=n.error;return Nc(l)&&l.revert&&O(this,Xi)?{...O(this,Xi),fetchStatus:"idle"}:{...a,error:l,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...n.state}}};this.state=r(this.state),nt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),O(this,Gt).notify({query:this,type:"updated",action:n})})},$m);function n0(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zm(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Q1(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,a=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var kn,Um,K1=(Um=class extends so{constructor(n={}){super();ve(this,kn);this.config=n,se(this,kn,new Map)}build(n,r,a){const l=r.queryKey,u=r.queryHash??jf(l,r);let c=this.get(u);return c||(c=new q1({client:n,queryKey:l,queryHash:u,options:n.defaultQueryOptions(r),state:a,defaultOptions:n.getQueryDefaults(l)}),this.add(c)),c}add(n){O(this,kn).has(n.queryHash)||(O(this,kn).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=O(this,kn).get(n.queryHash);r&&(n.destroy(),r===n&&O(this,kn).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){nt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return O(this,kn).get(n)}getAll(){return[...O(this,kn).values()]}find(n){const r={exact:!0,...n};return this.getAll().find(a=>Jp(r,a))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(a=>Jp(n,a)):r}notify(n){nt.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){nt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){nt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},kn=new WeakMap,Um),Sn,vt,ri,Cn,Cr,Hm,G1=(Hm=class extends t0{constructor(n){super();ve(this,Cn);ve(this,Sn);ve(this,vt);ve(this,ri);this.mutationId=n.mutationId,se(this,vt,n.mutationCache),se(this,Sn,[]),this.state=n.state||r0(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){O(this,Sn).includes(n)||(O(this,Sn).push(n),this.clearGcTimeout(),O(this,vt).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){se(this,Sn,O(this,Sn).filter(r=>r!==n)),this.scheduleGc(),O(this,vt).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){O(this,Sn).length||(this.state.status==="pending"?this.scheduleGc():O(this,vt).remove(this))}continue(){var n;return((n=O(this,ri))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var u,c,h,d,g,y,m,_,x,k,C,b,w,E,M,P,T,z,D,I;const r=()=>{Ee(this,Cn,Cr).call(this,{type:"continue"})};se(this,ri,e0({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(q,K)=>{Ee(this,Cn,Cr).call(this,{type:"failed",failureCount:q,error:K})},onPause:()=>{Ee(this,Cn,Cr).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,vt).canRun(this)}));const a=this.state.status==="pending",l=!O(this,ri).canStart();try{if(a)r();else{Ee(this,Cn,Cr).call(this,{type:"pending",variables:n,isPaused:l}),await((c=(u=O(this,vt).config).onMutate)==null?void 0:c.call(u,n,this));const K=await((d=(h=this.options).onMutate)==null?void 0:d.call(h,n));K!==this.state.context&&Ee(this,Cn,Cr).call(this,{type:"pending",context:K,variables:n,isPaused:l})}const q=await O(this,ri).start();return await((y=(g=O(this,vt).config).onSuccess)==null?void 0:y.call(g,q,n,this.state.context,this)),await((_=(m=this.options).onSuccess)==null?void 0:_.call(m,q,n,this.state.context)),await((k=(x=O(this,vt).config).onSettled)==null?void 0:k.call(x,q,null,this.state.variables,this.state.context,this)),await((b=(C=this.options).onSettled)==null?void 0:b.call(C,q,null,n,this.state.context)),Ee(this,Cn,Cr).call(this,{type:"success",data:q}),q}catch(q){try{throw await((E=(w=O(this,vt).config).onError)==null?void 0:E.call(w,q,n,this.state.context,this)),await((P=(M=this.options).onError)==null?void 0:P.call(M,q,n,this.state.context)),await((z=(T=O(this,vt).config).onSettled)==null?void 0:z.call(T,void 0,q,this.state.variables,this.state.context,this)),await((I=(D=this.options).onSettled)==null?void 0:I.call(D,void 0,q,n,this.state.context)),q}finally{Ee(this,Cn,Cr).call(this,{type:"error",error:q})}}finally{O(this,vt).runNext(this)}}},Sn=new WeakMap,vt=new WeakMap,ri=new WeakMap,Cn=new WeakSet,Cr=function(n){const r=a=>{switch(n.type){case"failed":return{...a,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...a,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:n.error,failureCount:a.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),nt.batch(()=>{O(this,Sn).forEach(a=>{a.onMutationUpdate(n)}),O(this,vt).notify({mutation:this,type:"updated",action:n})})},Hm);function r0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wn,cn,Pa,Bm,X1=(Bm=class extends so{constructor(n={}){super();ve(this,Wn);ve(this,cn);ve(this,Pa);this.config=n,se(this,Wn,new Set),se(this,cn,new Map),se(this,Pa,0)}build(n,r,a){const l=new G1({mutationCache:this,mutationId:++Kl(this,Pa)._,options:n.defaultMutationOptions(r),state:a});return this.add(l),l}add(n){O(this,Wn).add(n);const r=Gl(n);if(typeof r=="string"){const a=O(this,cn).get(r);a?a.push(n):O(this,cn).set(r,[n])}this.notify({type:"added",mutation:n})}remove(n){if(O(this,Wn).delete(n)){const r=Gl(n);if(typeof r=="string"){const a=O(this,cn).get(r);if(a)if(a.length>1){const l=a.indexOf(n);l!==-1&&a.splice(l,1)}else a[0]===n&&O(this,cn).delete(r)}}this.notify({type:"removed",mutation:n})}canRun(n){const r=Gl(n);if(typeof r=="string"){const a=O(this,cn).get(r),l=a==null?void 0:a.find(u=>u.state.status==="pending");return!l||l===n}else return!0}runNext(n){var a;const r=Gl(n);if(typeof r=="string"){const l=(a=O(this,cn).get(r))==null?void 0:a.find(u=>u!==n&&u.state.isPaused);return(l==null?void 0:l.continue())??Promise.resolve()}else return Promise.resolve()}clear(){nt.batch(()=>{O(this,Wn).forEach(n=>{this.notify({type:"removed",mutation:n})}),O(this,Wn).clear(),O(this,cn).clear()})}getAll(){return Array.from(O(this,Wn))}find(n){const r={exact:!0,...n};return this.getAll().find(a=>eg(r,a))}findAll(n={}){return this.getAll().filter(r=>eg(n,r))}notify(n){nt.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return nt.batch(()=>Promise.all(n.map(r=>r.continue().catch(xt))))}},Wn=new WeakMap,cn=new WeakMap,Pa=new WeakMap,Bm);function Gl(e){var n;return(n=e.options.scope)==null?void 0:n.id}function rg(e){return{onFetch:(n,r)=>{var y,m,_,x,k;const a=n.options,l=(_=(m=(y=n.fetchOptions)==null?void 0:y.meta)==null?void 0:m.fetchMore)==null?void 0:_.direction,u=((x=n.state.data)==null?void 0:x.pages)||[],c=((k=n.state.data)==null?void 0:k.pageParams)||[];let h={pages:[],pageParams:[]},d=0;const g=async()=>{let C=!1;const b=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>(n.signal.aborted?C=!0:n.signal.addEventListener("abort",()=>{C=!0}),n.signal)})},w=Xm(n.options,n.fetchOptions),E=async(M,P,T)=>{if(C)return Promise.reject();if(P==null&&M.pages.length)return Promise.resolve(M);const z={client:n.client,queryKey:n.queryKey,pageParam:P,direction:T?"backward":"forward",meta:n.options.meta};b(z);const D=await w(z),{maxPages:I}=n.options,q=T?$1:F1;return{pages:q(M.pages,D,I),pageParams:q(M.pageParams,P,I)}};if(l&&u.length){const M=l==="backward",P=M?Y1:ig,T={pages:u,pageParams:c},z=P(a,T);h=await E(T,z,M)}else{const M=e??u.length;do{const P=d===0?c[0]??a.initialPageParam:ig(a,h);if(d>0&&P==null)break;h=await E(h,P),d++}while(d<M)}return h};n.options.persister?n.fetchFn=()=>{var C,b;return(b=(C=n.options).persister)==null?void 0:b.call(C,g,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r)}:n.fetchFn=g}}}function ig(e,{pages:n,pageParams:r}){const a=n.length-1;return n.length>0?e.getNextPageParam(n[a],n,r[a],r):void 0}function Y1(e,{pages:n,pageParams:r}){var a;return n.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,n[0],n,r[0],r):void 0}var Ge,Rr,Tr,Yi,Zi,Mr,Ji,eo,Vm,Z1=(Vm=class{constructor(e={}){ve(this,Ge);ve(this,Rr);ve(this,Tr);ve(this,Yi);ve(this,Zi);ve(this,Mr);ve(this,Ji);ve(this,eo);se(this,Ge,e.queryCache||new K1),se(this,Rr,e.mutationCache||new X1),se(this,Tr,e.defaultOptions||{}),se(this,Yi,new Map),se(this,Zi,new Map),se(this,Mr,0)}mount(){Kl(this,Mr)._++,O(this,Mr)===1&&(se(this,Ji,If.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,Ge).onFocus())})),se(this,eo,gs.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,Ge).onOnline())})))}unmount(){var e,n;Kl(this,Mr)._--,O(this,Mr)===0&&((e=O(this,Ji))==null||e.call(this),se(this,Ji,void 0),(n=O(this,eo))==null||n.call(this),se(this,eo,void 0))}isFetching(e){return O(this,Ge).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return O(this,Rr).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=O(this,Ge).get(n.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=O(this,Ge).build(this,n),a=r.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Dr(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(a))}getQueriesData(e){return O(this,Ge).findAll(e).map(({queryKey:n,state:r})=>{const a=r.data;return[n,a]})}setQueryData(e,n,r){const a=this.defaultQueryOptions({queryKey:e}),l=O(this,Ge).get(a.queryHash),u=l==null?void 0:l.state.data,c=I1(n,u);if(c!==void 0)return O(this,Ge).build(this,a).setData(c,{...r,manual:!0})}setQueriesData(e,n,r){return nt.batch(()=>O(this,Ge).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,n,r)]))}getQueryState(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=O(this,Ge).get(n.queryHash))==null?void 0:r.state}removeQueries(e){const n=O(this,Ge);nt.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=O(this,Ge);return nt.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},a=nt.batch(()=>O(this,Ge).findAll(e).map(l=>l.cancel(r)));return Promise.all(a).then(xt).catch(xt)}invalidateQueries(e,n={}){return nt.batch(()=>(O(this,Ge).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},a=nt.batch(()=>O(this,Ge).findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let u=l.fetch(void 0,r);return r.throwOnError||(u=u.catch(xt)),l.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(a).then(xt)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=O(this,Ge).build(this,n);return r.isStaleByTime(Dr(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xt).catch(xt)}fetchInfiniteQuery(e){return e.behavior=rg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xt).catch(xt)}ensureInfiniteQueryData(e){return e.behavior=rg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gs.isOnline()?O(this,Rr).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,Ge)}getMutationCache(){return O(this,Rr)}getDefaultOptions(){return O(this,Tr)}setDefaultOptions(e){se(this,Tr,e)}setQueryDefaults(e,n){O(this,Yi).set(ci(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...O(this,Yi).values()],r={};return n.forEach(a=>{ya(e,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(e,n){O(this,Zi).set(ci(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...O(this,Zi).values()],r={};return n.forEach(a=>{ya(e,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...O(this,Tr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=jf(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Df&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...O(this,Tr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){O(this,Ge).clear(),O(this,Rr).clear()}},Ge=new WeakMap,Rr=new WeakMap,Tr=new WeakMap,Yi=new WeakMap,Zi=new WeakMap,Mr=new WeakMap,Ji=new WeakMap,eo=new WeakMap,Vm),Mt,Re,Ra,_t,ii,to,Nr,Or,Ta,no,ro,oi,ai,Ar,io,ze,ua,nf,rf,of,af,lf,sf,uf,i0,Wm,J1=(Wm=class extends so{constructor(n,r){super();ve(this,ze);ve(this,Mt);ve(this,Re);ve(this,Ra);ve(this,_t);ve(this,ii);ve(this,to);ve(this,Nr);ve(this,Or);ve(this,Ta);ve(this,no);ve(this,ro);ve(this,oi);ve(this,ai);ve(this,Ar);ve(this,io,new Set);this.options=r,se(this,Mt,n),se(this,Or,null),se(this,Nr,tf()),this.options.experimental_prefetchInRender||O(this,Nr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,Re).addObserver(this),og(O(this,Re),this.options)?Ee(this,ze,ua).call(this):this.updateResult(),Ee(this,ze,af).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cf(O(this,Re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cf(O(this,Re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ee(this,ze,lf).call(this),Ee(this,ze,sf).call(this),O(this,Re).removeObserver(this)}setOptions(n){const r=this.options,a=O(this,Re);if(this.options=O(this,Mt).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof fn(this.options.enabled,O(this,Re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ee(this,ze,uf).call(this),O(this,Re).setOptions(this.options),r._defaulted&&!ps(this.options,r)&&O(this,Mt).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,Re),observer:this});const l=this.hasListeners();l&&ag(O(this,Re),a,this.options,r)&&Ee(this,ze,ua).call(this),this.updateResult(),l&&(O(this,Re)!==a||fn(this.options.enabled,O(this,Re))!==fn(r.enabled,O(this,Re))||Dr(this.options.staleTime,O(this,Re))!==Dr(r.staleTime,O(this,Re)))&&Ee(this,ze,nf).call(this);const u=Ee(this,ze,rf).call(this);l&&(O(this,Re)!==a||fn(this.options.enabled,O(this,Re))!==fn(r.enabled,O(this,Re))||u!==O(this,Ar))&&Ee(this,ze,of).call(this,u)}getOptimisticResult(n){const r=O(this,Mt).getQueryCache().build(O(this,Mt),n),a=this.createResult(r,n);return t_(this,a)&&(se(this,_t,a),se(this,to,this.options),se(this,ii,O(this,Re).state)),a}getCurrentResult(){return O(this,_t)}trackResult(n,r){return new Proxy(n,{get:(a,l)=>(this.trackProp(l),r==null||r(l),Reflect.get(a,l))})}trackProp(n){O(this,io).add(n)}getCurrentQuery(){return O(this,Re)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=O(this,Mt).defaultQueryOptions(n),a=O(this,Mt).getQueryCache().build(O(this,Mt),r);return a.fetch().then(()=>this.createResult(a,r))}fetch(n){return Ee(this,ze,ua).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,_t)))}createResult(n,r){var q;const a=O(this,Re),l=this.options,u=O(this,_t),c=O(this,ii),h=O(this,to),g=n!==a?n.state:O(this,Ra),{state:y}=n;let m={...y},_=!1,x;if(r._optimisticResults){const K=this.hasListeners(),J=!K&&og(n,r),ae=K&&ag(n,a,r,l);(J||ae)&&(m={...m,...n0(y.data,n.options)}),r._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:k,errorUpdatedAt:C,status:b}=m;x=m.data;let w=!1;if(r.placeholderData!==void 0&&x===void 0&&b==="pending"){let K;u!=null&&u.isPlaceholderData&&r.placeholderData===(h==null?void 0:h.placeholderData)?(K=u.data,w=!0):K=typeof r.placeholderData=="function"?r.placeholderData((q=O(this,ro))==null?void 0:q.state.data,O(this,ro)):r.placeholderData,K!==void 0&&(b="success",x=ef(u==null?void 0:u.data,K,r),_=!0)}if(r.select&&x!==void 0&&!w)if(u&&x===(c==null?void 0:c.data)&&r.select===O(this,Ta))x=O(this,no);else try{se(this,Ta,r.select),x=r.select(x),x=ef(u==null?void 0:u.data,x,r),se(this,no,x),se(this,Or,null)}catch(K){se(this,Or,K)}O(this,Or)&&(k=O(this,Or),x=O(this,no),C=Date.now(),b="error");const E=m.fetchStatus==="fetching",M=b==="pending",P=b==="error",T=M&&E,z=x!==void 0,I={status:b,fetchStatus:m.fetchStatus,isPending:M,isSuccess:b==="success",isError:P,isInitialLoading:T,isLoading:T,data:x,dataUpdatedAt:m.dataUpdatedAt,error:k,errorUpdatedAt:C,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>g.dataUpdateCount||m.errorUpdateCount>g.errorUpdateCount,isFetching:E,isRefetching:E&&!M,isLoadingError:P&&!z,isPaused:m.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:P&&z,isStale:Lf(n,r),refetch:this.refetch,promise:O(this,Nr)};if(this.options.experimental_prefetchInRender){const K=he=>{I.status==="error"?he.reject(I.error):I.data!==void 0&&he.resolve(I.data)},J=()=>{const he=se(this,Nr,I.promise=tf());K(he)},ae=O(this,Nr);switch(ae.status){case"pending":n.queryHash===a.queryHash&&K(ae);break;case"fulfilled":(I.status==="error"||I.data!==ae.value)&&J();break;case"rejected":(I.status!=="error"||I.error!==ae.reason)&&J();break}}return I}updateResult(){const n=O(this,_t),r=this.createResult(O(this,Re),this.options);if(se(this,ii,O(this,Re).state),se(this,to,this.options),O(this,ii).data!==void 0&&se(this,ro,O(this,Re)),ps(r,n))return;se(this,_t,r);const a=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,u=typeof l=="function"?l():l;if(u==="all"||!u&&!O(this,io).size)return!0;const c=new Set(u??O(this,io));return this.options.throwOnError&&c.add("error"),Object.keys(O(this,_t)).some(h=>{const d=h;return O(this,_t)[d]!==n[d]&&c.has(d)})};Ee(this,ze,i0).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ee(this,ze,af).call(this)}},Mt=new WeakMap,Re=new WeakMap,Ra=new WeakMap,_t=new WeakMap,ii=new WeakMap,to=new WeakMap,Nr=new WeakMap,Or=new WeakMap,Ta=new WeakMap,no=new WeakMap,ro=new WeakMap,oi=new WeakMap,ai=new WeakMap,Ar=new WeakMap,io=new WeakMap,ze=new WeakSet,ua=function(n){Ee(this,ze,uf).call(this);let r=O(this,Re).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(xt)),r},nf=function(){Ee(this,ze,lf).call(this);const n=Dr(this.options.staleTime,O(this,Re));if(ui||O(this,_t).isStale||!Zc(n))return;const a=Km(O(this,_t).dataUpdatedAt,n)+1;se(this,oi,setTimeout(()=>{O(this,_t).isStale||this.updateResult()},a))},rf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,Re)):this.options.refetchInterval)??!1},of=function(n){Ee(this,ze,sf).call(this),se(this,Ar,n),!(ui||fn(this.options.enabled,O(this,Re))===!1||!Zc(O(this,Ar))||O(this,Ar)===0)&&se(this,ai,setInterval(()=>{(this.options.refetchIntervalInBackground||If.isFocused())&&Ee(this,ze,ua).call(this)},O(this,Ar)))},af=function(){Ee(this,ze,nf).call(this),Ee(this,ze,of).call(this,Ee(this,ze,rf).call(this))},lf=function(){O(this,oi)&&(clearTimeout(O(this,oi)),se(this,oi,void 0))},sf=function(){O(this,ai)&&(clearInterval(O(this,ai)),se(this,ai,void 0))},uf=function(){const n=O(this,Mt).getQueryCache().build(O(this,Mt),this.options);if(n===O(this,Re))return;const r=O(this,Re);se(this,Re,n),se(this,Ra,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},i0=function(n){nt.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(O(this,_t))}),O(this,Mt).getQueryCache().notify({query:O(this,Re),type:"observerResultsUpdated"})})},Wm);function e_(e,n){return fn(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function og(e,n){return e_(e,n)||e.state.data!==void 0&&cf(e,n,n.refetchOnMount)}function cf(e,n,r){if(fn(n.enabled,e)!==!1&&Dr(n.staleTime,e)!=="static"){const a=typeof r=="function"?r(e):r;return a==="always"||a!==!1&&Lf(e,n)}return!1}function ag(e,n,r,a){return(e!==n||fn(a.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Lf(e,r)}function Lf(e,n){return fn(n.enabled,e)!==!1&&e.isStaleByTime(Dr(n.staleTime,e))}function t_(e,n){return!ps(e.getCurrentResult(),n)}var zr,jr,Nt,qn,Yn,as,ff,qm,n_=(qm=class extends so{constructor(r,a){super();ve(this,Yn);ve(this,zr);ve(this,jr);ve(this,Nt);ve(this,qn);se(this,zr,r),this.setOptions(a),this.bindMethods(),Ee(this,Yn,as).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var l;const a=this.options;this.options=O(this,zr).defaultMutationOptions(r),ps(this.options,a)||O(this,zr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,Nt),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&ci(a.mutationKey)!==ci(this.options.mutationKey)?this.reset():((l=O(this,Nt))==null?void 0:l.state.status)==="pending"&&O(this,Nt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=O(this,Nt))==null||r.removeObserver(this)}onMutationUpdate(r){Ee(this,Yn,as).call(this),Ee(this,Yn,ff).call(this,r)}getCurrentResult(){return O(this,jr)}reset(){var r;(r=O(this,Nt))==null||r.removeObserver(this),se(this,Nt,void 0),Ee(this,Yn,as).call(this),Ee(this,Yn,ff).call(this)}mutate(r,a){var l;return se(this,qn,a),(l=O(this,Nt))==null||l.removeObserver(this),se(this,Nt,O(this,zr).getMutationCache().build(O(this,zr),this.options)),O(this,Nt).addObserver(this),O(this,Nt).execute(r)}},zr=new WeakMap,jr=new WeakMap,Nt=new WeakMap,qn=new WeakMap,Yn=new WeakSet,as=function(){var a;const r=((a=O(this,Nt))==null?void 0:a.state)??r0();se(this,jr,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},ff=function(r){nt.batch(()=>{var a,l,u,c,h,d,g,y;if(O(this,qn)&&this.hasListeners()){const m=O(this,jr).variables,_=O(this,jr).context;(r==null?void 0:r.type)==="success"?((l=(a=O(this,qn)).onSuccess)==null||l.call(a,r.data,m,_),(c=(u=O(this,qn)).onSettled)==null||c.call(u,r.data,null,m,_)):(r==null?void 0:r.type)==="error"&&((d=(h=O(this,qn)).onError)==null||d.call(h,r.error,m,_),(y=(g=O(this,qn)).onSettled)==null||y.call(g,void 0,r.error,m,_))}this.listeners.forEach(m=>{m(O(this,jr))})})},qm),$=zf();const r_=Qm($);var o0=$.createContext(void 0),Ts=e=>{const n=$.useContext(o0);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},i_=({client:e,children:n})=>($.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),W.jsx(o0.Provider,{value:e,children:n})),a0=$.createContext(!1),o_=()=>$.useContext(a0);a0.Provider;function a_(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var l_=$.createContext(a_()),s_=()=>$.useContext(l_),u_=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},c_=e=>{$.useEffect(()=>{e.clearReset()},[e])},f_=({result:e,errorResetBoundary:n,throwOnError:r,query:a,suspense:l})=>e.isError&&!n.isReset()&&!e.isFetching&&a&&(l&&e.data===void 0||Ym(r,[e.error,a])),h_=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},d_=(e,n)=>e.isLoading&&e.isFetching&&!n,p_=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,lg=(e,n,r)=>n.fetchOptimistic(e).catch(()=>{r.clearReset()});function g_(e,n,r){var m,_,x,k,C;const a=Ts(),l=o_(),u=s_(),c=a.defaultQueryOptions(e);(_=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||_.call(m,c),c._optimisticResults=l?"isRestoring":"optimistic",h_(c),u_(c,u),c_(u);const h=!a.getQueryCache().get(c.queryHash),[d]=$.useState(()=>new n(a,c)),g=d.getOptimisticResult(c),y=!l&&e.subscribed!==!1;if($.useSyncExternalStore($.useCallback(b=>{const w=y?d.subscribe(nt.batchCalls(b)):xt;return d.updateResult(),w},[d,y]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),$.useEffect(()=>{d.setOptions(c)},[c,d]),p_(c,g))throw lg(c,d,u);if(f_({result:g,errorResetBoundary:u,throwOnError:c.throwOnError,query:a.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw g.error;if((k=(x=a.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||k.call(x,c,g),c.experimental_prefetchInRender&&!ui&&d_(g,l)){const b=h?lg(c,d,u):(C=a.getQueryCache().get(c.queryHash))==null?void 0:C.promise;b==null||b.catch(xt).finally(()=>{d.updateResult()})}return c.notifyOnChangeProps?g:d.trackResult(g)}function l0(e,n){return g_(e,J1)}function m_(e,n){const r=Ts(),[a]=$.useState(()=>new n_(r,e));$.useEffect(()=>{a.setOptions(e)},[a,e]);const l=$.useSyncExternalStore($.useCallback(c=>a.subscribe(nt.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),u=$.useCallback((c,h)=>{a.mutate(c,h).catch(xt)},[a]);if(l.error&&Ym(a.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:u,mutateAsync:l.mutate}}var Xl={},Oc={exports:{}},Rt={},Ac={exports:{}},zc={};/**
|
|
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
|
-
*/var sg;function y_(){return sg||(sg=1,function(e){function n(Q,ee){var X=Q.length;Q.push(ee);e:for(;0<X;){var N=X-1>>>1,V=Q[N];if(0<l(V,ee))Q[N]=ee,Q[X]=V,X=N;else break e}}function r(Q){return Q.length===0?null:Q[0]}function a(Q){if(Q.length===0)return null;var ee=Q[0],X=Q.pop();if(X!==ee){Q[0]=X;e:for(var N=0,V=Q.length,ce=V>>>1;N<ce;){var pe=2*(N+1)-1,ke=Q[pe],Se=pe+1,be=Q[Se];if(0>l(ke,X))Se<V&&0>l(be,ke)?(Q[N]=be,Q[Se]=X,N=Se):(Q[N]=ke,Q[pe]=X,N=pe);else if(Se<V&&0>l(be,X))Q[N]=be,Q[Se]=X,N=Se;else break e}}return ee}function l(Q,ee){var X=Q.sortIndex-ee.sortIndex;return X!==0?X:Q.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,h=c.now();e.unstable_now=function(){return c.now()-h}}var d=[],g=[],y=1,m=null,_=3,x=!1,k=!1,C=!1,b=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(Q){for(var ee=r(g);ee!==null;){if(ee.callback===null)a(g);else if(ee.startTime<=Q)a(g),ee.sortIndex=ee.expirationTime,n(d,ee);else break;ee=r(g)}}function P(Q){if(C=!1,M(Q),!k)if(r(d)!==null)k=!0,G(T);else{var ee=r(g);ee!==null&&oe(P,ee.startTime-Q)}}function T(Q,ee){k=!1,C&&(C=!1,w(I),I=-1),x=!0;var X=_;try{for(M(ee),m=r(d);m!==null&&(!(m.expirationTime>ee)||Q&&!J());){var N=m.callback;if(typeof N=="function"){m.callback=null,_=m.priorityLevel;var V=N(m.expirationTime<=ee);ee=e.unstable_now(),typeof V=="function"?m.callback=V:m===r(d)&&a(d),M(ee)}else a(d);m=r(d)}if(m!==null)var ce=!0;else{var pe=r(g);pe!==null&&oe(P,pe.startTime-ee),ce=!1}return ce}finally{m=null,_=X,x=!1}}var z=!1,D=null,I=-1,q=5,K=-1;function J(){return!(e.unstable_now()-K<q)}function ae(){if(D!==null){var Q=e.unstable_now();K=Q;var ee=!0;try{ee=D(!0,Q)}finally{ee?he():(z=!1,D=null)}}else z=!1}var he;if(typeof E=="function")he=function(){E(ae)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,ne=F.port2;F.port1.onmessage=ae,he=function(){ne.postMessage(null)}}else he=function(){b(ae,0)};function G(Q){D=Q,z||(z=!0,he())}function oe(Q,ee){I=b(function(){Q(e.unstable_now())},ee)}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(Q){Q.callback=null},e.unstable_continueExecution=function(){k||x||(k=!0,G(T))},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_getFirstCallbackNode=function(){return r(d)},e.unstable_next=function(Q){switch(_){case 1:case 2:case 3:var ee=3;break;default:ee=_}var X=_;_=ee;try{return Q()}finally{_=X}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Q,ee){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var X=_;_=Q;try{return ee()}finally{_=X}},e.unstable_scheduleCallback=function(Q,ee,X){var N=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?N+X:N):X=N,Q){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=X+V,Q={id:y++,callback:ee,priorityLevel:Q,startTime:X,expirationTime:V,sortIndex:-1},X>N?(Q.sortIndex=X,n(g,Q),r(d)===null&&Q===r(g)&&(C?(w(I),I=-1):C=!0,oe(P,X-N))):(Q.sortIndex=V,n(d,Q),k||x||(k=!0,G(T))),Q},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(Q){var ee=_;return function(){var X=_;_=ee;try{return Q.apply(this,arguments)}finally{_=X}}}}(zc)),zc}var ug;function v_(){return ug||(ug=1,Ac.exports=y_()),Ac.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 cg;function __(){if(cg)return Rt;cg=1;var e=zf(),n=v_();function r(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,s=1;s<arguments.length;s++)o+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function u(i,o){c(i,o),c(i+"Capture",o)}function c(i,o){for(l[i]=o,i=0;i<o.length;i++)a.add(o[i])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,g=/^[: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]*$/,y={},m={};function _(i){return d.call(m,i)?!0:d.call(y,i)?!1:g.test(i)?m[i]=!0:(y[i]=!0,!1)}function x(i,o,s,f){if(s!==null&&s.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return f?!1:s!==null?!s.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function k(i,o,s,f){if(o===null||typeof o>"u"||x(i,o,s,f))return!0;if(f)return!1;if(s!==null)switch(s.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function C(i,o,s,f,p,v,S){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=f,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=i,this.type=o,this.sanitizeURL=v,this.removeEmptyString=S}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){b[i]=new C(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var o=i[0];b[o]=new C(o,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){b[i]=new C(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){b[i]=new C(i,2,!1,i,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(i){b[i]=new C(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){b[i]=new C(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){b[i]=new C(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){b[i]=new C(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){b[i]=new C(i,5,!1,i.toLowerCase(),null,!1,!1)});var w=/[\-:]([a-z])/g;function E(i){return i[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(i){var o=i.replace(w,E);b[o]=new C(o,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var o=i.replace(w,E);b[o]=new C(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var o=i.replace(w,E);b[o]=new C(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){b[i]=new C(i,1,!1,i.toLowerCase(),null,!1,!1)}),b.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){b[i]=new C(i,1,!1,i.toLowerCase(),null,!0,!0)});function M(i,o,s,f){var p=b.hasOwnProperty(o)?b[o]:null;(p!==null?p.type!==0:f||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(k(o,s,p,f)&&(s=null),f||p===null?_(o)&&(s===null?i.removeAttribute(o):i.setAttribute(o,""+s)):p.mustUseProperty?i[p.propertyName]=s===null?p.type===3?!1:"":s:(o=p.attributeName,f=p.attributeNamespace,s===null?i.removeAttribute(o):(p=p.type,s=p===3||p===4&&s===!0?"":""+s,f?i.setAttributeNS(f,o,s):i.setAttribute(o,s))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),z=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),J=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),Q=Symbol.iterator;function ee(i){return i===null||typeof i!="object"?null:(i=Q&&i[Q]||i["@@iterator"],typeof i=="function"?i:null)}var X=Object.assign,N;function V(i){if(N===void 0)try{throw Error()}catch(s){var o=s.stack.trim().match(/\n( *(at )?)/);N=o&&o[1]||""}return`
|
|
34
|
-
`+N+i}var ce=!1;function pe(i,o){if(!i||ce)return"";ce=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(B){var f=B}Reflect.construct(i,[],o)}else{try{o.call()}catch(B){f=B}i.call(o.prototype)}else{try{throw Error()}catch(B){f=B}i()}}catch(B){if(B&&f&&typeof B.stack=="string"){for(var p=B.stack.split(`
|
|
35
|
-
`),v=f.stack.split(`
|
|
36
|
-
`),S=p.length-1,R=v.length-1;1<=S&&0<=R&&p[S]!==v[R];)R--;for(;1<=S&&0<=R;S--,R--)if(p[S]!==v[R]){if(S!==1||R!==1)do if(S--,R--,0>R||p[S]!==v[R]){var A=`
|
|
37
|
-
`+p[S].replace(" at new "," at ");return i.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",i.displayName)),A}while(1<=S&&0<=R);break}}}finally{ce=!1,Error.prepareStackTrace=s}return(i=i?i.displayName||i.name:"")?V(i):""}function ke(i){switch(i.tag){case 5:return V(i.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return i=pe(i.type,!1),i;case 11:return i=pe(i.type.render,!1),i;case 1:return i=pe(i.type,!0),i;default:return""}}function Se(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case D:return"Fragment";case z:return"Portal";case q:return"Profiler";case I:return"StrictMode";case he:return"Suspense";case F:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case J:return(i.displayName||"Context")+".Consumer";case K:return(i._context.displayName||"Context")+".Provider";case ae:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case ne:return o=i.displayName||null,o!==null?o:Se(i.type)||"Memo";case G:o=i._payload,i=i._init;try{return Se(i(o))}catch{}}return null}function be(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Se(o);case 8:return o===I?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ce(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ae(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function gt(i){var o=Ae(i)?"checked":"value",s=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),f=""+i[o];if(!i.hasOwnProperty(o)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var p=s.get,v=s.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return p.call(this)},set:function(S){f=""+S,v.call(this,S)}}),Object.defineProperty(i,o,{enumerable:s.enumerable}),{getValue:function(){return f},setValue:function(S){f=""+S},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function pi(i){i._valueTracker||(i._valueTracker=gt(i))}function La(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var s=o.getValue(),f="";return i&&(f=Ae(i)?i.checked?"true":"false":i.value),i=f,i!==s?(o.setValue(i),!0):!1}function gi(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function fo(i,o){var s=o.checked;return X({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??i._wrapperState.initialChecked})}function Fa(i,o){var s=o.defaultValue==null?"":o.defaultValue,f=o.checked!=null?o.checked:o.defaultChecked;s=Ce(o.value!=null?o.value:s),i._wrapperState={initialChecked:f,initialValue:s,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function $a(i,o){o=o.checked,o!=null&&M(i,"checked",o,!1)}function mi(i,o){$a(i,o);var s=Ce(o.value),f=o.type;if(s!=null)f==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+s):i.value!==""+s&&(i.value=""+s);else if(f==="submit"||f==="reset"){i.removeAttribute("value");return}o.hasOwnProperty("value")?me(i,o.type,s):o.hasOwnProperty("defaultValue")&&me(i,o.type,Ce(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(i.defaultChecked=!!o.defaultChecked)}function ho(i,o,s){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var f=o.type;if(!(f!=="submit"&&f!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+i._wrapperState.initialValue,s||o===i.value||(i.value=o),i.defaultValue=o}s=i.name,s!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,s!==""&&(i.name=s)}function me(i,o,s){(o!=="number"||gi(i.ownerDocument)!==i)&&(s==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+s&&(i.defaultValue=""+s))}var Te=Array.isArray;function Me(i,o,s,f){if(i=i.options,o){o={};for(var p=0;p<s.length;p++)o["$"+s[p]]=!0;for(s=0;s<i.length;s++)p=o.hasOwnProperty("$"+i[s].value),i[s].selected!==p&&(i[s].selected=p),p&&f&&(i[s].defaultSelected=!0)}else{for(s=""+Ce(s),o=null,p=0;p<i.length;p++){if(i[p].value===s){i[p].selected=!0,f&&(i[p].defaultSelected=!0);return}o!==null||i[p].disabled||(o=i[p])}o!==null&&(o.selected=!0)}}function Zt(i,o){if(o.dangerouslySetInnerHTML!=null)throw Error(r(91));return X({},o,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Je(i,o){var s=o.value;if(s==null){if(s=o.children,o=o.defaultValue,s!=null){if(o!=null)throw Error(r(92));if(Te(s)){if(1<s.length)throw Error(r(93));s=s[0]}o=s}o==null&&(o=""),s=o}i._wrapperState={initialValue:Ce(s)}}function $t(i,o){var s=Ce(o.value),f=Ce(o.defaultValue);s!=null&&(s=""+s,s!==i.value&&(i.value=s),o.defaultValue==null&&i.defaultValue!==s&&(i.defaultValue=s)),f!=null&&(i.defaultValue=""+f)}function Jt(i){var o=i.textContent;o===i._wrapperState.initialValue&&o!==""&&o!==null&&(i.value=o)}function tr(i){switch(i){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 yi(i,o){return i==null||i==="http://www.w3.org/1999/xhtml"?tr(o):i==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var nr,sh=function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,s,f,p){MSApp.execUnsafeLocalFunction(function(){return i(o,s,f,p)})}:i}(function(i,o){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=o;else{for(nr=nr||document.createElement("div"),nr.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=nr.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}});function po(i,o){if(o){var s=i.firstChild;if(s&&s===i.lastChild&&s.nodeType===3){s.nodeValue=o;return}}i.textContent=o}var go={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},Ly=["Webkit","ms","Moz","O"];Object.keys(go).forEach(function(i){Ly.forEach(function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),go[o]=go[i]})});function uh(i,o,s){return o==null||typeof o=="boolean"||o===""?"":s||typeof o!="number"||o===0||go.hasOwnProperty(i)&&go[i]?(""+o).trim():o+"px"}function ch(i,o){i=i.style;for(var s in o)if(o.hasOwnProperty(s)){var f=s.indexOf("--")===0,p=uh(s,o[s],f);s==="float"&&(s="cssFloat"),f?i.setProperty(s,p):i[s]=p}}var Fy=X({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 $s(i,o){if(o){if(Fy[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function Us(i,o){if(i.indexOf("-")===-1)return typeof o.is=="string";switch(i){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 Hs=null;function Bs(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Vs=null,vi=null,_i=null;function fh(i){if(i=Io(i)){if(typeof Vs!="function")throw Error(r(280));var o=i.stateNode;o&&(o=ul(o),Vs(i.stateNode,i.type,o))}}function hh(i){vi?_i?_i.push(i):_i=[i]:vi=i}function dh(){if(vi){var i=vi,o=_i;if(_i=vi=null,fh(i),o)for(i=0;i<o.length;i++)fh(o[i])}}function ph(i,o){return i(o)}function gh(){}var Ws=!1;function mh(i,o,s){if(Ws)return i(o,s);Ws=!0;try{return ph(i,o,s)}finally{Ws=!1,(vi!==null||_i!==null)&&(gh(),dh())}}function mo(i,o){var s=i.stateNode;if(s===null)return null;var f=ul(s);if(f===null)return null;s=f[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(i=i.type,f=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!f;break e;default:i=!1}if(i)return null;if(s&&typeof s!="function")throw Error(r(231,o,typeof s));return s}var qs=!1;if(h)try{var yo={};Object.defineProperty(yo,"passive",{get:function(){qs=!0}}),window.addEventListener("test",yo,yo),window.removeEventListener("test",yo,yo)}catch{qs=!1}function $y(i,o,s,f,p,v,S,R,A){var B=Array.prototype.slice.call(arguments,3);try{o.apply(s,B)}catch(Z){this.onError(Z)}}var vo=!1,Ua=null,Ha=!1,Qs=null,Uy={onError:function(i){vo=!0,Ua=i}};function Hy(i,o,s,f,p,v,S,R,A){vo=!1,Ua=null,$y.apply(Uy,arguments)}function By(i,o,s,f,p,v,S,R,A){if(Hy.apply(this,arguments),vo){if(vo){var B=Ua;vo=!1,Ua=null}else throw Error(r(198));Ha||(Ha=!0,Qs=B)}}function Ir(i){var o=i,s=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(s=o.return),i=o.return;while(i)}return o.tag===3?s:null}function yh(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function vh(i){if(Ir(i)!==i)throw Error(r(188))}function Vy(i){var o=i.alternate;if(!o){if(o=Ir(i),o===null)throw Error(r(188));return o!==i?null:i}for(var s=i,f=o;;){var p=s.return;if(p===null)break;var v=p.alternate;if(v===null){if(f=p.return,f!==null){s=f;continue}break}if(p.child===v.child){for(v=p.child;v;){if(v===s)return vh(p),i;if(v===f)return vh(p),o;v=v.sibling}throw Error(r(188))}if(s.return!==f.return)s=p,f=v;else{for(var S=!1,R=p.child;R;){if(R===s){S=!0,s=p,f=v;break}if(R===f){S=!0,f=p,s=v;break}R=R.sibling}if(!S){for(R=v.child;R;){if(R===s){S=!0,s=v,f=p;break}if(R===f){S=!0,f=v,s=p;break}R=R.sibling}if(!S)throw Error(r(189))}}if(s.alternate!==f)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?i:o}function _h(i){return i=Vy(i),i!==null?xh(i):null}function xh(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var o=xh(i);if(o!==null)return o;i=i.sibling}return null}var wh=n.unstable_scheduleCallback,kh=n.unstable_cancelCallback,Wy=n.unstable_shouldYield,qy=n.unstable_requestPaint,Xe=n.unstable_now,Qy=n.unstable_getCurrentPriorityLevel,Ks=n.unstable_ImmediatePriority,Sh=n.unstable_UserBlockingPriority,Ba=n.unstable_NormalPriority,Ky=n.unstable_LowPriority,Ch=n.unstable_IdlePriority,Va=null,gn=null;function Gy(i){if(gn&&typeof gn.onCommitFiberRoot=="function")try{gn.onCommitFiberRoot(Va,i,void 0,(i.current.flags&128)===128)}catch{}}var en=Math.clz32?Math.clz32:Zy,Xy=Math.log,Yy=Math.LN2;function Zy(i){return i>>>=0,i===0?32:31-(Xy(i)/Yy|0)|0}var Wa=64,qa=4194304;function _o(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Qa(i,o){var s=i.pendingLanes;if(s===0)return 0;var f=0,p=i.suspendedLanes,v=i.pingedLanes,S=s&268435455;if(S!==0){var R=S&~p;R!==0?f=_o(R):(v&=S,v!==0&&(f=_o(v)))}else S=s&~p,S!==0?f=_o(S):v!==0&&(f=_o(v));if(f===0)return 0;if(o!==0&&o!==f&&(o&p)===0&&(p=f&-f,v=o&-o,p>=v||p===16&&(v&4194240)!==0))return o;if((f&4)!==0&&(f|=s&16),o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=f;0<o;)s=31-en(o),p=1<<s,f|=i[s],o&=~p;return f}function Jy(i,o){switch(i){case 1:case 2:case 4:return o+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 o+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 ev(i,o){for(var s=i.suspendedLanes,f=i.pingedLanes,p=i.expirationTimes,v=i.pendingLanes;0<v;){var S=31-en(v),R=1<<S,A=p[S];A===-1?((R&s)===0||(R&f)!==0)&&(p[S]=Jy(R,o)):A<=o&&(i.expiredLanes|=R),v&=~R}}function Gs(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function bh(){var i=Wa;return Wa<<=1,(Wa&4194240)===0&&(Wa=64),i}function Xs(i){for(var o=[],s=0;31>s;s++)o.push(i);return o}function xo(i,o,s){i.pendingLanes|=o,o!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,o=31-en(o),i[o]=s}function tv(i,o){var s=i.pendingLanes&~o;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=o,i.mutableReadLanes&=o,i.entangledLanes&=o,o=i.entanglements;var f=i.eventTimes;for(i=i.expirationTimes;0<s;){var p=31-en(s),v=1<<p;o[p]=0,f[p]=-1,i[p]=-1,s&=~v}}function Ys(i,o){var s=i.entangledLanes|=o;for(i=i.entanglements;s;){var f=31-en(s),p=1<<f;p&o|i[f]&o&&(i[f]|=o),s&=~p}}var je=0;function Eh(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var Ph,Zs,Rh,Th,Mh,Js=!1,Ka=[],rr=null,ir=null,or=null,wo=new Map,ko=new Map,ar=[],nv="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 Nh(i,o){switch(i){case"focusin":case"focusout":rr=null;break;case"dragenter":case"dragleave":ir=null;break;case"mouseover":case"mouseout":or=null;break;case"pointerover":case"pointerout":wo.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ko.delete(o.pointerId)}}function So(i,o,s,f,p,v){return i===null||i.nativeEvent!==v?(i={blockedOn:o,domEventName:s,eventSystemFlags:f,nativeEvent:v,targetContainers:[p]},o!==null&&(o=Io(o),o!==null&&Zs(o)),i):(i.eventSystemFlags|=f,o=i.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),i)}function rv(i,o,s,f,p){switch(o){case"focusin":return rr=So(rr,i,o,s,f,p),!0;case"dragenter":return ir=So(ir,i,o,s,f,p),!0;case"mouseover":return or=So(or,i,o,s,f,p),!0;case"pointerover":var v=p.pointerId;return wo.set(v,So(wo.get(v)||null,i,o,s,f,p)),!0;case"gotpointercapture":return v=p.pointerId,ko.set(v,So(ko.get(v)||null,i,o,s,f,p)),!0}return!1}function Oh(i){var o=Lr(i.target);if(o!==null){var s=Ir(o);if(s!==null){if(o=s.tag,o===13){if(o=yh(s),o!==null){i.blockedOn=o,Mh(i.priority,function(){Rh(s)});return}}else if(o===3&&s.stateNode.current.memoizedState.isDehydrated){i.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Ga(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var s=tu(i.domEventName,i.eventSystemFlags,o[0],i.nativeEvent);if(s===null){s=i.nativeEvent;var f=new s.constructor(s.type,s);Hs=f,s.target.dispatchEvent(f),Hs=null}else return o=Io(s),o!==null&&Zs(o),i.blockedOn=s,!1;o.shift()}return!0}function Ah(i,o,s){Ga(i)&&s.delete(o)}function iv(){Js=!1,rr!==null&&Ga(rr)&&(rr=null),ir!==null&&Ga(ir)&&(ir=null),or!==null&&Ga(or)&&(or=null),wo.forEach(Ah),ko.forEach(Ah)}function Co(i,o){i.blockedOn===o&&(i.blockedOn=null,Js||(Js=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,iv)))}function bo(i){function o(p){return Co(p,i)}if(0<Ka.length){Co(Ka[0],i);for(var s=1;s<Ka.length;s++){var f=Ka[s];f.blockedOn===i&&(f.blockedOn=null)}}for(rr!==null&&Co(rr,i),ir!==null&&Co(ir,i),or!==null&&Co(or,i),wo.forEach(o),ko.forEach(o),s=0;s<ar.length;s++)f=ar[s],f.blockedOn===i&&(f.blockedOn=null);for(;0<ar.length&&(s=ar[0],s.blockedOn===null);)Oh(s),s.blockedOn===null&&ar.shift()}var xi=P.ReactCurrentBatchConfig,Xa=!0;function ov(i,o,s,f){var p=je,v=xi.transition;xi.transition=null;try{je=1,eu(i,o,s,f)}finally{je=p,xi.transition=v}}function av(i,o,s,f){var p=je,v=xi.transition;xi.transition=null;try{je=4,eu(i,o,s,f)}finally{je=p,xi.transition=v}}function eu(i,o,s,f){if(Xa){var p=tu(i,o,s,f);if(p===null)vu(i,o,f,Ya,s),Nh(i,f);else if(rv(p,i,o,s,f))f.stopPropagation();else if(Nh(i,f),o&4&&-1<nv.indexOf(i)){for(;p!==null;){var v=Io(p);if(v!==null&&Ph(v),v=tu(i,o,s,f),v===null&&vu(i,o,f,Ya,s),v===p)break;p=v}p!==null&&f.stopPropagation()}else vu(i,o,f,null,s)}}var Ya=null;function tu(i,o,s,f){if(Ya=null,i=Bs(f),i=Lr(i),i!==null)if(o=Ir(i),o===null)i=null;else if(s=o.tag,s===13){if(i=yh(o),i!==null)return i;i=null}else if(s===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null);return Ya=i,null}function zh(i){switch(i){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(Qy()){case Ks:return 1;case Sh:return 4;case Ba:case Ky:return 16;case Ch:return 536870912;default:return 16}default:return 16}}var lr=null,nu=null,Za=null;function jh(){if(Za)return Za;var i,o=nu,s=o.length,f,p="value"in lr?lr.value:lr.textContent,v=p.length;for(i=0;i<s&&o[i]===p[i];i++);var S=s-i;for(f=1;f<=S&&o[s-f]===p[v-f];f++);return Za=p.slice(i,1<f?1-f:void 0)}function Ja(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function el(){return!0}function Dh(){return!1}function zt(i){function o(s,f,p,v,S){this._reactName=s,this._targetInst=p,this.type=f,this.nativeEvent=v,this.target=S,this.currentTarget=null;for(var R in i)i.hasOwnProperty(R)&&(s=i[R],this[R]=s?s(v):v[R]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?el:Dh,this.isPropagationStopped=Dh,this}return X(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=el)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=el)},persist:function(){},isPersistent:el}),o}var wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ru=zt(wi),Eo=X({},wi,{view:0,detail:0}),lv=zt(Eo),iu,ou,Po,tl=X({},Eo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lu,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Po&&(Po&&i.type==="mousemove"?(iu=i.screenX-Po.screenX,ou=i.screenY-Po.screenY):ou=iu=0,Po=i),iu)},movementY:function(i){return"movementY"in i?i.movementY:ou}}),Ih=zt(tl),sv=X({},tl,{dataTransfer:0}),uv=zt(sv),cv=X({},Eo,{relatedTarget:0}),au=zt(cv),fv=X({},wi,{animationName:0,elapsedTime:0,pseudoElement:0}),hv=zt(fv),dv=X({},wi,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),pv=zt(dv),gv=X({},wi,{data:0}),Lh=zt(gv),mv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yv={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"},vv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _v(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=vv[i])?!!o[i]:!1}function lu(){return _v}var xv=X({},Eo,{key:function(i){if(i.key){var o=mv[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Ja(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?yv[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lu,charCode:function(i){return i.type==="keypress"?Ja(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Ja(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),wv=zt(xv),kv=X({},tl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fh=zt(kv),Sv=X({},Eo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lu}),Cv=zt(Sv),bv=X({},wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ev=zt(bv),Pv=X({},tl,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Rv=zt(Pv),Tv=[9,13,27,32],su=h&&"CompositionEvent"in window,Ro=null;h&&"documentMode"in document&&(Ro=document.documentMode);var Mv=h&&"TextEvent"in window&&!Ro,$h=h&&(!su||Ro&&8<Ro&&11>=Ro),Uh=" ",Hh=!1;function Bh(i,o){switch(i){case"keyup":return Tv.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vh(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ki=!1;function Nv(i,o){switch(i){case"compositionend":return Vh(o);case"keypress":return o.which!==32?null:(Hh=!0,Uh);case"textInput":return i=o.data,i===Uh&&Hh?null:i;default:return null}}function Ov(i,o){if(ki)return i==="compositionend"||!su&&Bh(i,o)?(i=jh(),Za=nu=lr=null,ki=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return $h&&o.locale!=="ko"?null:o.data;default:return null}}var Av={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 Wh(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!Av[i.type]:o==="textarea"}function qh(i,o,s,f){hh(f),o=al(o,"onChange"),0<o.length&&(s=new ru("onChange","change",null,s,f),i.push({event:s,listeners:o}))}var To=null,Mo=null;function zv(i){cd(i,0)}function nl(i){var o=Pi(i);if(La(o))return i}function jv(i,o){if(i==="change")return o}var Qh=!1;if(h){var uu;if(h){var cu="oninput"in document;if(!cu){var Kh=document.createElement("div");Kh.setAttribute("oninput","return;"),cu=typeof Kh.oninput=="function"}uu=cu}else uu=!1;Qh=uu&&(!document.documentMode||9<document.documentMode)}function Gh(){To&&(To.detachEvent("onpropertychange",Xh),Mo=To=null)}function Xh(i){if(i.propertyName==="value"&&nl(Mo)){var o=[];qh(o,Mo,i,Bs(i)),mh(zv,o)}}function Dv(i,o,s){i==="focusin"?(Gh(),To=o,Mo=s,To.attachEvent("onpropertychange",Xh)):i==="focusout"&&Gh()}function Iv(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return nl(Mo)}function Lv(i,o){if(i==="click")return nl(o)}function Fv(i,o){if(i==="input"||i==="change")return nl(o)}function $v(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var tn=typeof Object.is=="function"?Object.is:$v;function No(i,o){if(tn(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var s=Object.keys(i),f=Object.keys(o);if(s.length!==f.length)return!1;for(f=0;f<s.length;f++){var p=s[f];if(!d.call(o,p)||!tn(i[p],o[p]))return!1}return!0}function Yh(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Zh(i,o){var s=Yh(i);i=0;for(var f;s;){if(s.nodeType===3){if(f=i+s.textContent.length,i<=o&&f>=o)return{node:s,offset:o-i};i=f}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Yh(s)}}function Jh(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?Jh(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function ed(){for(var i=window,o=gi();o instanceof i.HTMLIFrameElement;){try{var s=typeof o.contentWindow.location.href=="string"}catch{s=!1}if(s)i=o.contentWindow;else break;o=gi(i.document)}return o}function fu(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function Uv(i){var o=ed(),s=i.focusedElem,f=i.selectionRange;if(o!==s&&s&&s.ownerDocument&&Jh(s.ownerDocument.documentElement,s)){if(f!==null&&fu(s)){if(o=f.start,i=f.end,i===void 0&&(i=o),"selectionStart"in s)s.selectionStart=o,s.selectionEnd=Math.min(i,s.value.length);else if(i=(o=s.ownerDocument||document)&&o.defaultView||window,i.getSelection){i=i.getSelection();var p=s.textContent.length,v=Math.min(f.start,p);f=f.end===void 0?v:Math.min(f.end,p),!i.extend&&v>f&&(p=f,f=v,v=p),p=Zh(s,v);var S=Zh(s,f);p&&S&&(i.rangeCount!==1||i.anchorNode!==p.node||i.anchorOffset!==p.offset||i.focusNode!==S.node||i.focusOffset!==S.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),i.removeAllRanges(),v>f?(i.addRange(o),i.extend(S.node,S.offset)):(o.setEnd(S.node,S.offset),i.addRange(o)))}}for(o=[],i=s;i=i.parentNode;)i.nodeType===1&&o.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<o.length;s++)i=o[s],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var Hv=h&&"documentMode"in document&&11>=document.documentMode,Si=null,hu=null,Oo=null,du=!1;function td(i,o,s){var f=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;du||Si==null||Si!==gi(f)||(f=Si,"selectionStart"in f&&fu(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Oo&&No(Oo,f)||(Oo=f,f=al(hu,"onSelect"),0<f.length&&(o=new ru("onSelect","select",null,o,s),i.push({event:o,listeners:f}),o.target=Si)))}function rl(i,o){var s={};return s[i.toLowerCase()]=o.toLowerCase(),s["Webkit"+i]="webkit"+o,s["Moz"+i]="moz"+o,s}var Ci={animationend:rl("Animation","AnimationEnd"),animationiteration:rl("Animation","AnimationIteration"),animationstart:rl("Animation","AnimationStart"),transitionend:rl("Transition","TransitionEnd")},pu={},nd={};h&&(nd=document.createElement("div").style,"AnimationEvent"in window||(delete Ci.animationend.animation,delete Ci.animationiteration.animation,delete Ci.animationstart.animation),"TransitionEvent"in window||delete Ci.transitionend.transition);function il(i){if(pu[i])return pu[i];if(!Ci[i])return i;var o=Ci[i],s;for(s in o)if(o.hasOwnProperty(s)&&s in nd)return pu[i]=o[s];return i}var rd=il("animationend"),id=il("animationiteration"),od=il("animationstart"),ad=il("transitionend"),ld=new Map,sd="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 sr(i,o){ld.set(i,o),u(o,[i])}for(var gu=0;gu<sd.length;gu++){var mu=sd[gu],Bv=mu.toLowerCase(),Vv=mu[0].toUpperCase()+mu.slice(1);sr(Bv,"on"+Vv)}sr(rd,"onAnimationEnd"),sr(id,"onAnimationIteration"),sr(od,"onAnimationStart"),sr("dblclick","onDoubleClick"),sr("focusin","onFocus"),sr("focusout","onBlur"),sr(ad,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ao="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(" "),Wv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ao));function ud(i,o,s){var f=i.type||"unknown-event";i.currentTarget=s,By(f,o,void 0,i),i.currentTarget=null}function cd(i,o){o=(o&4)!==0;for(var s=0;s<i.length;s++){var f=i[s],p=f.event;f=f.listeners;e:{var v=void 0;if(o)for(var S=f.length-1;0<=S;S--){var R=f[S],A=R.instance,B=R.currentTarget;if(R=R.listener,A!==v&&p.isPropagationStopped())break e;ud(p,R,B),v=A}else for(S=0;S<f.length;S++){if(R=f[S],A=R.instance,B=R.currentTarget,R=R.listener,A!==v&&p.isPropagationStopped())break e;ud(p,R,B),v=A}}}if(Ha)throw i=Qs,Ha=!1,Qs=null,i}function Fe(i,o){var s=o[Cu];s===void 0&&(s=o[Cu]=new Set);var f=i+"__bubble";s.has(f)||(fd(o,i,2,!1),s.add(f))}function yu(i,o,s){var f=0;o&&(f|=4),fd(s,i,f,o)}var ol="_reactListening"+Math.random().toString(36).slice(2);function zo(i){if(!i[ol]){i[ol]=!0,a.forEach(function(s){s!=="selectionchange"&&(Wv.has(s)||yu(s,!1,i),yu(s,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[ol]||(o[ol]=!0,yu("selectionchange",!1,o))}}function fd(i,o,s,f){switch(zh(o)){case 1:var p=ov;break;case 4:p=av;break;default:p=eu}s=p.bind(null,o,s,i),p=void 0,!qs||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),f?p!==void 0?i.addEventListener(o,s,{capture:!0,passive:p}):i.addEventListener(o,s,!0):p!==void 0?i.addEventListener(o,s,{passive:p}):i.addEventListener(o,s,!1)}function vu(i,o,s,f,p){var v=f;if((o&1)===0&&(o&2)===0&&f!==null)e:for(;;){if(f===null)return;var S=f.tag;if(S===3||S===4){var R=f.stateNode.containerInfo;if(R===p||R.nodeType===8&&R.parentNode===p)break;if(S===4)for(S=f.return;S!==null;){var A=S.tag;if((A===3||A===4)&&(A=S.stateNode.containerInfo,A===p||A.nodeType===8&&A.parentNode===p))return;S=S.return}for(;R!==null;){if(S=Lr(R),S===null)return;if(A=S.tag,A===5||A===6){f=v=S;continue e}R=R.parentNode}}f=f.return}mh(function(){var B=v,Z=Bs(s),te=[];e:{var Y=ld.get(i);if(Y!==void 0){var le=ru,fe=i;switch(i){case"keypress":if(Ja(s)===0)break e;case"keydown":case"keyup":le=wv;break;case"focusin":fe="focus",le=au;break;case"focusout":fe="blur",le=au;break;case"beforeblur":case"afterblur":le=au;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=Ih;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=uv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=Cv;break;case rd:case id:case od:le=hv;break;case ad:le=Ev;break;case"scroll":le=lv;break;case"wheel":le=Rv;break;case"copy":case"cut":case"paste":le=pv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Fh}var de=(o&4)!==0,Ye=!de&&i==="scroll",U=de?Y!==null?Y+"Capture":null:Y;de=[];for(var j=B,H;j!==null;){H=j;var re=H.stateNode;if(H.tag===5&&re!==null&&(H=re,U!==null&&(re=mo(j,U),re!=null&&de.push(jo(j,re,H)))),Ye)break;j=j.return}0<de.length&&(Y=new le(Y,fe,null,s,Z),te.push({event:Y,listeners:de}))}}if((o&7)===0){e:{if(Y=i==="mouseover"||i==="pointerover",le=i==="mouseout"||i==="pointerout",Y&&s!==Hs&&(fe=s.relatedTarget||s.fromElement)&&(Lr(fe)||fe[Nn]))break e;if((le||Y)&&(Y=Z.window===Z?Z:(Y=Z.ownerDocument)?Y.defaultView||Y.parentWindow:window,le?(fe=s.relatedTarget||s.toElement,le=B,fe=fe?Lr(fe):null,fe!==null&&(Ye=Ir(fe),fe!==Ye||fe.tag!==5&&fe.tag!==6)&&(fe=null)):(le=null,fe=B),le!==fe)){if(de=Ih,re="onMouseLeave",U="onMouseEnter",j="mouse",(i==="pointerout"||i==="pointerover")&&(de=Fh,re="onPointerLeave",U="onPointerEnter",j="pointer"),Ye=le==null?Y:Pi(le),H=fe==null?Y:Pi(fe),Y=new de(re,j+"leave",le,s,Z),Y.target=Ye,Y.relatedTarget=H,re=null,Lr(Z)===B&&(de=new de(U,j+"enter",fe,s,Z),de.target=H,de.relatedTarget=Ye,re=de),Ye=re,le&&fe)t:{for(de=le,U=fe,j=0,H=de;H;H=bi(H))j++;for(H=0,re=U;re;re=bi(re))H++;for(;0<j-H;)de=bi(de),j--;for(;0<H-j;)U=bi(U),H--;for(;j--;){if(de===U||U!==null&&de===U.alternate)break t;de=bi(de),U=bi(U)}de=null}else de=null;le!==null&&hd(te,Y,le,de,!1),fe!==null&&Ye!==null&&hd(te,Ye,fe,de,!0)}}e:{if(Y=B?Pi(B):window,le=Y.nodeName&&Y.nodeName.toLowerCase(),le==="select"||le==="input"&&Y.type==="file")var ge=jv;else if(Wh(Y))if(Qh)ge=Fv;else{ge=Iv;var _e=Dv}else(le=Y.nodeName)&&le.toLowerCase()==="input"&&(Y.type==="checkbox"||Y.type==="radio")&&(ge=Lv);if(ge&&(ge=ge(i,B))){qh(te,ge,s,Z);break e}_e&&_e(i,Y,B),i==="focusout"&&(_e=Y._wrapperState)&&_e.controlled&&Y.type==="number"&&me(Y,"number",Y.value)}switch(_e=B?Pi(B):window,i){case"focusin":(Wh(_e)||_e.contentEditable==="true")&&(Si=_e,hu=B,Oo=null);break;case"focusout":Oo=hu=Si=null;break;case"mousedown":du=!0;break;case"contextmenu":case"mouseup":case"dragend":du=!1,td(te,s,Z);break;case"selectionchange":if(Hv)break;case"keydown":case"keyup":td(te,s,Z)}var xe;if(su)e:{switch(i){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else ki?Bh(i,s)&&(we="onCompositionEnd"):i==="keydown"&&s.keyCode===229&&(we="onCompositionStart");we&&($h&&s.locale!=="ko"&&(ki||we!=="onCompositionStart"?we==="onCompositionEnd"&&ki&&(xe=jh()):(lr=Z,nu="value"in lr?lr.value:lr.textContent,ki=!0)),_e=al(B,we),0<_e.length&&(we=new Lh(we,i,null,s,Z),te.push({event:we,listeners:_e}),xe?we.data=xe:(xe=Vh(s),xe!==null&&(we.data=xe)))),(xe=Mv?Nv(i,s):Ov(i,s))&&(B=al(B,"onBeforeInput"),0<B.length&&(Z=new Lh("onBeforeInput","beforeinput",null,s,Z),te.push({event:Z,listeners:B}),Z.data=xe))}cd(te,o)})}function jo(i,o,s){return{instance:i,listener:o,currentTarget:s}}function al(i,o){for(var s=o+"Capture",f=[];i!==null;){var p=i,v=p.stateNode;p.tag===5&&v!==null&&(p=v,v=mo(i,s),v!=null&&f.unshift(jo(i,v,p)),v=mo(i,o),v!=null&&f.push(jo(i,v,p))),i=i.return}return f}function bi(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function hd(i,o,s,f,p){for(var v=o._reactName,S=[];s!==null&&s!==f;){var R=s,A=R.alternate,B=R.stateNode;if(A!==null&&A===f)break;R.tag===5&&B!==null&&(R=B,p?(A=mo(s,v),A!=null&&S.unshift(jo(s,A,R))):p||(A=mo(s,v),A!=null&&S.push(jo(s,A,R)))),s=s.return}S.length!==0&&i.push({event:o,listeners:S})}var qv=/\r\n?/g,Qv=/\u0000|\uFFFD/g;function dd(i){return(typeof i=="string"?i:""+i).replace(qv,`
|
|
38
|
-
`).replace(Qv,"")}function ll(i,o,s){if(o=dd(o),dd(i)!==o&&s)throw Error(r(425))}function sl(){}var _u=null,xu=null;function wu(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var ku=typeof setTimeout=="function"?setTimeout:void 0,Kv=typeof clearTimeout=="function"?clearTimeout:void 0,pd=typeof Promise=="function"?Promise:void 0,Gv=typeof queueMicrotask=="function"?queueMicrotask:typeof pd<"u"?function(i){return pd.resolve(null).then(i).catch(Xv)}:ku;function Xv(i){setTimeout(function(){throw i})}function Su(i,o){var s=o,f=0;do{var p=s.nextSibling;if(i.removeChild(s),p&&p.nodeType===8)if(s=p.data,s==="/$"){if(f===0){i.removeChild(p),bo(o);return}f--}else s!=="$"&&s!=="$?"&&s!=="$!"||f++;s=p}while(s);bo(o)}function ur(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return i}function gd(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var s=i.data;if(s==="$"||s==="$!"||s==="$?"){if(o===0)return i;o--}else s==="/$"&&o++}i=i.previousSibling}return null}var Ei=Math.random().toString(36).slice(2),mn="__reactFiber$"+Ei,Do="__reactProps$"+Ei,Nn="__reactContainer$"+Ei,Cu="__reactEvents$"+Ei,Yv="__reactListeners$"+Ei,Zv="__reactHandles$"+Ei;function Lr(i){var o=i[mn];if(o)return o;for(var s=i.parentNode;s;){if(o=s[Nn]||s[mn]){if(s=o.alternate,o.child!==null||s!==null&&s.child!==null)for(i=gd(i);i!==null;){if(s=i[mn])return s;i=gd(i)}return o}i=s,s=i.parentNode}return null}function Io(i){return i=i[mn]||i[Nn],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Pi(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(r(33))}function ul(i){return i[Do]||null}var bu=[],Ri=-1;function cr(i){return{current:i}}function $e(i){0>Ri||(i.current=bu[Ri],bu[Ri]=null,Ri--)}function Le(i,o){Ri++,bu[Ri]=i.current,i.current=o}var fr={},ut=cr(fr),St=cr(!1),Fr=fr;function Ti(i,o){var s=i.type.contextTypes;if(!s)return fr;var f=i.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===o)return f.__reactInternalMemoizedMaskedChildContext;var p={},v;for(v in s)p[v]=o[v];return f&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=p),p}function Ct(i){return i=i.childContextTypes,i!=null}function cl(){$e(St),$e(ut)}function md(i,o,s){if(ut.current!==fr)throw Error(r(168));Le(ut,o),Le(St,s)}function yd(i,o,s){var f=i.stateNode;if(o=o.childContextTypes,typeof f.getChildContext!="function")return s;f=f.getChildContext();for(var p in f)if(!(p in o))throw Error(r(108,be(i)||"Unknown",p));return X({},s,f)}function fl(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||fr,Fr=ut.current,Le(ut,i),Le(St,St.current),!0}function vd(i,o,s){var f=i.stateNode;if(!f)throw Error(r(169));s?(i=yd(i,o,Fr),f.__reactInternalMemoizedMergedChildContext=i,$e(St),$e(ut),Le(ut,i)):$e(St),Le(St,s)}var On=null,hl=!1,Eu=!1;function _d(i){On===null?On=[i]:On.push(i)}function Jv(i){hl=!0,_d(i)}function hr(){if(!Eu&&On!==null){Eu=!0;var i=0,o=je;try{var s=On;for(je=1;i<s.length;i++){var f=s[i];do f=f(!0);while(f!==null)}On=null,hl=!1}catch(p){throw On!==null&&(On=On.slice(i+1)),wh(Ks,hr),p}finally{je=o,Eu=!1}}return null}var Mi=[],Ni=0,dl=null,pl=0,Ut=[],Ht=0,$r=null,An=1,zn="";function Ur(i,o){Mi[Ni++]=pl,Mi[Ni++]=dl,dl=i,pl=o}function xd(i,o,s){Ut[Ht++]=An,Ut[Ht++]=zn,Ut[Ht++]=$r,$r=i;var f=An;i=zn;var p=32-en(f)-1;f&=~(1<<p),s+=1;var v=32-en(o)+p;if(30<v){var S=p-p%5;v=(f&(1<<S)-1).toString(32),f>>=S,p-=S,An=1<<32-en(o)+p|s<<p|f,zn=v+i}else An=1<<v|s<<p|f,zn=i}function Pu(i){i.return!==null&&(Ur(i,1),xd(i,1,0))}function Ru(i){for(;i===dl;)dl=Mi[--Ni],Mi[Ni]=null,pl=Mi[--Ni],Mi[Ni]=null;for(;i===$r;)$r=Ut[--Ht],Ut[Ht]=null,zn=Ut[--Ht],Ut[Ht]=null,An=Ut[--Ht],Ut[Ht]=null}var jt=null,Dt=null,He=!1,nn=null;function wd(i,o){var s=qt(5,null,null,0);s.elementType="DELETED",s.stateNode=o,s.return=i,o=i.deletions,o===null?(i.deletions=[s],i.flags|=16):o.push(s)}function kd(i,o){switch(i.tag){case 5:var s=i.type;return o=o.nodeType!==1||s.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(i.stateNode=o,jt=i,Dt=ur(o.firstChild),!0):!1;case 6:return o=i.pendingProps===""||o.nodeType!==3?null:o,o!==null?(i.stateNode=o,jt=i,Dt=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(s=$r!==null?{id:An,overflow:zn}:null,i.memoizedState={dehydrated:o,treeContext:s,retryLane:1073741824},s=qt(18,null,null,0),s.stateNode=o,s.return=i,i.child=s,jt=i,Dt=null,!0):!1;default:return!1}}function Tu(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Mu(i){if(He){var o=Dt;if(o){var s=o;if(!kd(i,o)){if(Tu(i))throw Error(r(418));o=ur(s.nextSibling);var f=jt;o&&kd(i,o)?wd(f,s):(i.flags=i.flags&-4097|2,He=!1,jt=i)}}else{if(Tu(i))throw Error(r(418));i.flags=i.flags&-4097|2,He=!1,jt=i}}}function Sd(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;jt=i}function gl(i){if(i!==jt)return!1;if(!He)return Sd(i),He=!0,!1;var o;if((o=i.tag!==3)&&!(o=i.tag!==5)&&(o=i.type,o=o!=="head"&&o!=="body"&&!wu(i.type,i.memoizedProps)),o&&(o=Dt)){if(Tu(i))throw Cd(),Error(r(418));for(;o;)wd(i,o),o=ur(o.nextSibling)}if(Sd(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8){var s=i.data;if(s==="/$"){if(o===0){Dt=ur(i.nextSibling);break e}o--}else s!=="$"&&s!=="$!"&&s!=="$?"||o++}i=i.nextSibling}Dt=null}}else Dt=jt?ur(i.stateNode.nextSibling):null;return!0}function Cd(){for(var i=Dt;i;)i=ur(i.nextSibling)}function Oi(){Dt=jt=null,He=!1}function Nu(i){nn===null?nn=[i]:nn.push(i)}var e1=P.ReactCurrentBatchConfig;function Lo(i,o,s){if(i=s.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var f=s.stateNode}if(!f)throw Error(r(147,i));var p=f,v=""+i;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===v?o.ref:(o=function(S){var R=p.refs;S===null?delete R[v]:R[v]=S},o._stringRef=v,o)}if(typeof i!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,i))}return i}function ml(i,o){throw i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i))}function bd(i){var o=i._init;return o(i._payload)}function Ed(i){function o(U,j){if(i){var H=U.deletions;H===null?(U.deletions=[j],U.flags|=16):H.push(j)}}function s(U,j){if(!i)return null;for(;j!==null;)o(U,j),j=j.sibling;return null}function f(U,j){for(U=new Map;j!==null;)j.key!==null?U.set(j.key,j):U.set(j.index,j),j=j.sibling;return U}function p(U,j){return U=xr(U,j),U.index=0,U.sibling=null,U}function v(U,j,H){return U.index=H,i?(H=U.alternate,H!==null?(H=H.index,H<j?(U.flags|=2,j):H):(U.flags|=2,j)):(U.flags|=1048576,j)}function S(U){return i&&U.alternate===null&&(U.flags|=2),U}function R(U,j,H,re){return j===null||j.tag!==6?(j=kc(H,U.mode,re),j.return=U,j):(j=p(j,H),j.return=U,j)}function A(U,j,H,re){var ge=H.type;return ge===D?Z(U,j,H.props.children,re,H.key):j!==null&&(j.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===G&&bd(ge)===j.type)?(re=p(j,H.props),re.ref=Lo(U,j,H),re.return=U,re):(re=$l(H.type,H.key,H.props,null,U.mode,re),re.ref=Lo(U,j,H),re.return=U,re)}function B(U,j,H,re){return j===null||j.tag!==4||j.stateNode.containerInfo!==H.containerInfo||j.stateNode.implementation!==H.implementation?(j=Sc(H,U.mode,re),j.return=U,j):(j=p(j,H.children||[]),j.return=U,j)}function Z(U,j,H,re,ge){return j===null||j.tag!==7?(j=Gr(H,U.mode,re,ge),j.return=U,j):(j=p(j,H),j.return=U,j)}function te(U,j,H){if(typeof j=="string"&&j!==""||typeof j=="number")return j=kc(""+j,U.mode,H),j.return=U,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case T:return H=$l(j.type,j.key,j.props,null,U.mode,H),H.ref=Lo(U,null,j),H.return=U,H;case z:return j=Sc(j,U.mode,H),j.return=U,j;case G:var re=j._init;return te(U,re(j._payload),H)}if(Te(j)||ee(j))return j=Gr(j,U.mode,H,null),j.return=U,j;ml(U,j)}return null}function Y(U,j,H,re){var ge=j!==null?j.key:null;if(typeof H=="string"&&H!==""||typeof H=="number")return ge!==null?null:R(U,j,""+H,re);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case T:return H.key===ge?A(U,j,H,re):null;case z:return H.key===ge?B(U,j,H,re):null;case G:return ge=H._init,Y(U,j,ge(H._payload),re)}if(Te(H)||ee(H))return ge!==null?null:Z(U,j,H,re,null);ml(U,H)}return null}function le(U,j,H,re,ge){if(typeof re=="string"&&re!==""||typeof re=="number")return U=U.get(H)||null,R(j,U,""+re,ge);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case T:return U=U.get(re.key===null?H:re.key)||null,A(j,U,re,ge);case z:return U=U.get(re.key===null?H:re.key)||null,B(j,U,re,ge);case G:var _e=re._init;return le(U,j,H,_e(re._payload),ge)}if(Te(re)||ee(re))return U=U.get(H)||null,Z(j,U,re,ge,null);ml(j,re)}return null}function fe(U,j,H,re){for(var ge=null,_e=null,xe=j,we=j=0,ot=null;xe!==null&&we<H.length;we++){xe.index>we?(ot=xe,xe=null):ot=xe.sibling;var Oe=Y(U,xe,H[we],re);if(Oe===null){xe===null&&(xe=ot);break}i&&xe&&Oe.alternate===null&&o(U,xe),j=v(Oe,j,we),_e===null?ge=Oe:_e.sibling=Oe,_e=Oe,xe=ot}if(we===H.length)return s(U,xe),He&&Ur(U,we),ge;if(xe===null){for(;we<H.length;we++)xe=te(U,H[we],re),xe!==null&&(j=v(xe,j,we),_e===null?ge=xe:_e.sibling=xe,_e=xe);return He&&Ur(U,we),ge}for(xe=f(U,xe);we<H.length;we++)ot=le(xe,U,we,H[we],re),ot!==null&&(i&&ot.alternate!==null&&xe.delete(ot.key===null?we:ot.key),j=v(ot,j,we),_e===null?ge=ot:_e.sibling=ot,_e=ot);return i&&xe.forEach(function(wr){return o(U,wr)}),He&&Ur(U,we),ge}function de(U,j,H,re){var ge=ee(H);if(typeof ge!="function")throw Error(r(150));if(H=ge.call(H),H==null)throw Error(r(151));for(var _e=ge=null,xe=j,we=j=0,ot=null,Oe=H.next();xe!==null&&!Oe.done;we++,Oe=H.next()){xe.index>we?(ot=xe,xe=null):ot=xe.sibling;var wr=Y(U,xe,Oe.value,re);if(wr===null){xe===null&&(xe=ot);break}i&&xe&&wr.alternate===null&&o(U,xe),j=v(wr,j,we),_e===null?ge=wr:_e.sibling=wr,_e=wr,xe=ot}if(Oe.done)return s(U,xe),He&&Ur(U,we),ge;if(xe===null){for(;!Oe.done;we++,Oe=H.next())Oe=te(U,Oe.value,re),Oe!==null&&(j=v(Oe,j,we),_e===null?ge=Oe:_e.sibling=Oe,_e=Oe);return He&&Ur(U,we),ge}for(xe=f(U,xe);!Oe.done;we++,Oe=H.next())Oe=le(xe,U,we,Oe.value,re),Oe!==null&&(i&&Oe.alternate!==null&&xe.delete(Oe.key===null?we:Oe.key),j=v(Oe,j,we),_e===null?ge=Oe:_e.sibling=Oe,_e=Oe);return i&&xe.forEach(function(A1){return o(U,A1)}),He&&Ur(U,we),ge}function Ye(U,j,H,re){if(typeof H=="object"&&H!==null&&H.type===D&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case T:e:{for(var ge=H.key,_e=j;_e!==null;){if(_e.key===ge){if(ge=H.type,ge===D){if(_e.tag===7){s(U,_e.sibling),j=p(_e,H.props.children),j.return=U,U=j;break e}}else if(_e.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===G&&bd(ge)===_e.type){s(U,_e.sibling),j=p(_e,H.props),j.ref=Lo(U,_e,H),j.return=U,U=j;break e}s(U,_e);break}else o(U,_e);_e=_e.sibling}H.type===D?(j=Gr(H.props.children,U.mode,re,H.key),j.return=U,U=j):(re=$l(H.type,H.key,H.props,null,U.mode,re),re.ref=Lo(U,j,H),re.return=U,U=re)}return S(U);case z:e:{for(_e=H.key;j!==null;){if(j.key===_e)if(j.tag===4&&j.stateNode.containerInfo===H.containerInfo&&j.stateNode.implementation===H.implementation){s(U,j.sibling),j=p(j,H.children||[]),j.return=U,U=j;break e}else{s(U,j);break}else o(U,j);j=j.sibling}j=Sc(H,U.mode,re),j.return=U,U=j}return S(U);case G:return _e=H._init,Ye(U,j,_e(H._payload),re)}if(Te(H))return fe(U,j,H,re);if(ee(H))return de(U,j,H,re);ml(U,H)}return typeof H=="string"&&H!==""||typeof H=="number"?(H=""+H,j!==null&&j.tag===6?(s(U,j.sibling),j=p(j,H),j.return=U,U=j):(s(U,j),j=kc(H,U.mode,re),j.return=U,U=j),S(U)):s(U,j)}return Ye}var Ai=Ed(!0),Pd=Ed(!1),yl=cr(null),vl=null,zi=null,Ou=null;function Au(){Ou=zi=vl=null}function zu(i){var o=yl.current;$e(yl),i._currentValue=o}function ju(i,o,s){for(;i!==null;){var f=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,f!==null&&(f.childLanes|=o)):f!==null&&(f.childLanes&o)!==o&&(f.childLanes|=o),i===s)break;i=i.return}}function ji(i,o){vl=i,Ou=zi=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&o)!==0&&(bt=!0),i.firstContext=null)}function Bt(i){var o=i._currentValue;if(Ou!==i)if(i={context:i,memoizedValue:o,next:null},zi===null){if(vl===null)throw Error(r(308));zi=i,vl.dependencies={lanes:0,firstContext:i}}else zi=zi.next=i;return o}var Hr=null;function Du(i){Hr===null?Hr=[i]:Hr.push(i)}function Rd(i,o,s,f){var p=o.interleaved;return p===null?(s.next=s,Du(o)):(s.next=p.next,p.next=s),o.interleaved=s,jn(i,f)}function jn(i,o){i.lanes|=o;var s=i.alternate;for(s!==null&&(s.lanes|=o),s=i,i=i.return;i!==null;)i.childLanes|=o,s=i.alternate,s!==null&&(s.childLanes|=o),s=i,i=i.return;return s.tag===3?s.stateNode:null}var dr=!1;function Iu(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Td(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Dn(i,o){return{eventTime:i,lane:o,tag:0,payload:null,callback:null,next:null}}function pr(i,o,s){var f=i.updateQueue;if(f===null)return null;if(f=f.shared,(Ne&2)!==0){var p=f.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),f.pending=o,jn(i,s)}return p=f.interleaved,p===null?(o.next=o,Du(f)):(o.next=p.next,p.next=o),f.interleaved=o,jn(i,s)}function _l(i,o,s){if(o=o.updateQueue,o!==null&&(o=o.shared,(s&4194240)!==0)){var f=o.lanes;f&=i.pendingLanes,s|=f,o.lanes=s,Ys(i,s)}}function Md(i,o){var s=i.updateQueue,f=i.alternate;if(f!==null&&(f=f.updateQueue,s===f)){var p=null,v=null;if(s=s.firstBaseUpdate,s!==null){do{var S={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};v===null?p=v=S:v=v.next=S,s=s.next}while(s!==null);v===null?p=v=o:v=v.next=o}else p=v=o;s={baseState:f.baseState,firstBaseUpdate:p,lastBaseUpdate:v,shared:f.shared,effects:f.effects},i.updateQueue=s;return}i=s.lastBaseUpdate,i===null?s.firstBaseUpdate=o:i.next=o,s.lastBaseUpdate=o}function xl(i,o,s,f){var p=i.updateQueue;dr=!1;var v=p.firstBaseUpdate,S=p.lastBaseUpdate,R=p.shared.pending;if(R!==null){p.shared.pending=null;var A=R,B=A.next;A.next=null,S===null?v=B:S.next=B,S=A;var Z=i.alternate;Z!==null&&(Z=Z.updateQueue,R=Z.lastBaseUpdate,R!==S&&(R===null?Z.firstBaseUpdate=B:R.next=B,Z.lastBaseUpdate=A))}if(v!==null){var te=p.baseState;S=0,Z=B=A=null,R=v;do{var Y=R.lane,le=R.eventTime;if((f&Y)===Y){Z!==null&&(Z=Z.next={eventTime:le,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var fe=i,de=R;switch(Y=o,le=s,de.tag){case 1:if(fe=de.payload,typeof fe=="function"){te=fe.call(le,te,Y);break e}te=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=de.payload,Y=typeof fe=="function"?fe.call(le,te,Y):fe,Y==null)break e;te=X({},te,Y);break e;case 2:dr=!0}}R.callback!==null&&R.lane!==0&&(i.flags|=64,Y=p.effects,Y===null?p.effects=[R]:Y.push(R))}else le={eventTime:le,lane:Y,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Z===null?(B=Z=le,A=te):Z=Z.next=le,S|=Y;if(R=R.next,R===null){if(R=p.shared.pending,R===null)break;Y=R,R=Y.next,Y.next=null,p.lastBaseUpdate=Y,p.shared.pending=null}}while(!0);if(Z===null&&(A=te),p.baseState=A,p.firstBaseUpdate=B,p.lastBaseUpdate=Z,o=p.shared.interleaved,o!==null){p=o;do S|=p.lane,p=p.next;while(p!==o)}else v===null&&(p.shared.lanes=0);Wr|=S,i.lanes=S,i.memoizedState=te}}function Nd(i,o,s){if(i=o.effects,o.effects=null,i!==null)for(o=0;o<i.length;o++){var f=i[o],p=f.callback;if(p!==null){if(f.callback=null,f=s,typeof p!="function")throw Error(r(191,p));p.call(f)}}}var Fo={},yn=cr(Fo),$o=cr(Fo),Uo=cr(Fo);function Br(i){if(i===Fo)throw Error(r(174));return i}function Lu(i,o){switch(Le(Uo,o),Le($o,i),Le(yn,Fo),i=o.nodeType,i){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:yi(null,"");break;default:i=i===8?o.parentNode:o,o=i.namespaceURI||null,i=i.tagName,o=yi(o,i)}$e(yn),Le(yn,o)}function Di(){$e(yn),$e($o),$e(Uo)}function Od(i){Br(Uo.current);var o=Br(yn.current),s=yi(o,i.type);o!==s&&(Le($o,i),Le(yn,s))}function Fu(i){$o.current===i&&($e(yn),$e($o))}var We=cr(0);function wl(i){for(var o=i;o!==null;){if(o.tag===13){var s=o.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var $u=[];function Uu(){for(var i=0;i<$u.length;i++)$u[i]._workInProgressVersionPrimary=null;$u.length=0}var kl=P.ReactCurrentDispatcher,Hu=P.ReactCurrentBatchConfig,Vr=0,qe=null,et=null,rt=null,Sl=!1,Ho=!1,Bo=0,t1=0;function ct(){throw Error(r(321))}function Bu(i,o){if(o===null)return!1;for(var s=0;s<o.length&&s<i.length;s++)if(!tn(i[s],o[s]))return!1;return!0}function Vu(i,o,s,f,p,v){if(Vr=v,qe=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,kl.current=i===null||i.memoizedState===null?o1:a1,i=s(f,p),Ho){v=0;do{if(Ho=!1,Bo=0,25<=v)throw Error(r(301));v+=1,rt=et=null,o.updateQueue=null,kl.current=l1,i=s(f,p)}while(Ho)}if(kl.current=El,o=et!==null&&et.next!==null,Vr=0,rt=et=qe=null,Sl=!1,o)throw Error(r(300));return i}function Wu(){var i=Bo!==0;return Bo=0,i}function vn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?qe.memoizedState=rt=i:rt=rt.next=i,rt}function Vt(){if(et===null){var i=qe.alternate;i=i!==null?i.memoizedState:null}else i=et.next;var o=rt===null?qe.memoizedState:rt.next;if(o!==null)rt=o,et=i;else{if(i===null)throw Error(r(310));et=i,i={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},rt===null?qe.memoizedState=rt=i:rt=rt.next=i}return rt}function Vo(i,o){return typeof o=="function"?o(i):o}function qu(i){var o=Vt(),s=o.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=i;var f=et,p=f.baseQueue,v=s.pending;if(v!==null){if(p!==null){var S=p.next;p.next=v.next,v.next=S}f.baseQueue=p=v,s.pending=null}if(p!==null){v=p.next,f=f.baseState;var R=S=null,A=null,B=v;do{var Z=B.lane;if((Vr&Z)===Z)A!==null&&(A=A.next={lane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),f=B.hasEagerState?B.eagerState:i(f,B.action);else{var te={lane:Z,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null};A===null?(R=A=te,S=f):A=A.next=te,qe.lanes|=Z,Wr|=Z}B=B.next}while(B!==null&&B!==v);A===null?S=f:A.next=R,tn(f,o.memoizedState)||(bt=!0),o.memoizedState=f,o.baseState=S,o.baseQueue=A,s.lastRenderedState=f}if(i=s.interleaved,i!==null){p=i;do v=p.lane,qe.lanes|=v,Wr|=v,p=p.next;while(p!==i)}else p===null&&(s.lanes=0);return[o.memoizedState,s.dispatch]}function Qu(i){var o=Vt(),s=o.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=i;var f=s.dispatch,p=s.pending,v=o.memoizedState;if(p!==null){s.pending=null;var S=p=p.next;do v=i(v,S.action),S=S.next;while(S!==p);tn(v,o.memoizedState)||(bt=!0),o.memoizedState=v,o.baseQueue===null&&(o.baseState=v),s.lastRenderedState=v}return[v,f]}function Ad(){}function zd(i,o){var s=qe,f=Vt(),p=o(),v=!tn(f.memoizedState,p);if(v&&(f.memoizedState=p,bt=!0),f=f.queue,Ku(Id.bind(null,s,f,i),[i]),f.getSnapshot!==o||v||rt!==null&&rt.memoizedState.tag&1){if(s.flags|=2048,Wo(9,Dd.bind(null,s,f,p,o),void 0,null),it===null)throw Error(r(349));(Vr&30)!==0||jd(s,o,p)}return p}function jd(i,o,s){i.flags|=16384,i={getSnapshot:o,value:s},o=qe.updateQueue,o===null?(o={lastEffect:null,stores:null},qe.updateQueue=o,o.stores=[i]):(s=o.stores,s===null?o.stores=[i]:s.push(i))}function Dd(i,o,s,f){o.value=s,o.getSnapshot=f,Ld(o)&&Fd(i)}function Id(i,o,s){return s(function(){Ld(o)&&Fd(i)})}function Ld(i){var o=i.getSnapshot;i=i.value;try{var s=o();return!tn(i,s)}catch{return!0}}function Fd(i){var o=jn(i,1);o!==null&&ln(o,i,1,-1)}function $d(i){var o=vn();return typeof i=="function"&&(i=i()),o.memoizedState=o.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:i},o.queue=i,i=i.dispatch=i1.bind(null,qe,i),[o.memoizedState,i]}function Wo(i,o,s,f){return i={tag:i,create:o,destroy:s,deps:f,next:null},o=qe.updateQueue,o===null?(o={lastEffect:null,stores:null},qe.updateQueue=o,o.lastEffect=i.next=i):(s=o.lastEffect,s===null?o.lastEffect=i.next=i:(f=s.next,s.next=i,i.next=f,o.lastEffect=i)),i}function Ud(){return Vt().memoizedState}function Cl(i,o,s,f){var p=vn();qe.flags|=i,p.memoizedState=Wo(1|o,s,void 0,f===void 0?null:f)}function bl(i,o,s,f){var p=Vt();f=f===void 0?null:f;var v=void 0;if(et!==null){var S=et.memoizedState;if(v=S.destroy,f!==null&&Bu(f,S.deps)){p.memoizedState=Wo(o,s,v,f);return}}qe.flags|=i,p.memoizedState=Wo(1|o,s,v,f)}function Hd(i,o){return Cl(8390656,8,i,o)}function Ku(i,o){return bl(2048,8,i,o)}function Bd(i,o){return bl(4,2,i,o)}function Vd(i,o){return bl(4,4,i,o)}function Wd(i,o){if(typeof o=="function")return i=i(),o(i),function(){o(null)};if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function qd(i,o,s){return s=s!=null?s.concat([i]):null,bl(4,4,Wd.bind(null,o,i),s)}function Gu(){}function Qd(i,o){var s=Vt();o=o===void 0?null:o;var f=s.memoizedState;return f!==null&&o!==null&&Bu(o,f[1])?f[0]:(s.memoizedState=[i,o],i)}function Kd(i,o){var s=Vt();o=o===void 0?null:o;var f=s.memoizedState;return f!==null&&o!==null&&Bu(o,f[1])?f[0]:(i=i(),s.memoizedState=[i,o],i)}function Gd(i,o,s){return(Vr&21)===0?(i.baseState&&(i.baseState=!1,bt=!0),i.memoizedState=s):(tn(s,o)||(s=bh(),qe.lanes|=s,Wr|=s,i.baseState=!0),o)}function n1(i,o){var s=je;je=s!==0&&4>s?s:4,i(!0);var f=Hu.transition;Hu.transition={};try{i(!1),o()}finally{je=s,Hu.transition=f}}function Xd(){return Vt().memoizedState}function r1(i,o,s){var f=vr(i);if(s={lane:f,action:s,hasEagerState:!1,eagerState:null,next:null},Yd(i))Zd(o,s);else if(s=Rd(i,o,s,f),s!==null){var p=yt();ln(s,i,f,p),Jd(s,o,f)}}function i1(i,o,s){var f=vr(i),p={lane:f,action:s,hasEagerState:!1,eagerState:null,next:null};if(Yd(i))Zd(o,p);else{var v=i.alternate;if(i.lanes===0&&(v===null||v.lanes===0)&&(v=o.lastRenderedReducer,v!==null))try{var S=o.lastRenderedState,R=v(S,s);if(p.hasEagerState=!0,p.eagerState=R,tn(R,S)){var A=o.interleaved;A===null?(p.next=p,Du(o)):(p.next=A.next,A.next=p),o.interleaved=p;return}}catch{}finally{}s=Rd(i,o,p,f),s!==null&&(p=yt(),ln(s,i,f,p),Jd(s,o,f))}}function Yd(i){var o=i.alternate;return i===qe||o!==null&&o===qe}function Zd(i,o){Ho=Sl=!0;var s=i.pending;s===null?o.next=o:(o.next=s.next,s.next=o),i.pending=o}function Jd(i,o,s){if((s&4194240)!==0){var f=o.lanes;f&=i.pendingLanes,s|=f,o.lanes=s,Ys(i,s)}}var El={readContext:Bt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},o1={readContext:Bt,useCallback:function(i,o){return vn().memoizedState=[i,o===void 0?null:o],i},useContext:Bt,useEffect:Hd,useImperativeHandle:function(i,o,s){return s=s!=null?s.concat([i]):null,Cl(4194308,4,Wd.bind(null,o,i),s)},useLayoutEffect:function(i,o){return Cl(4194308,4,i,o)},useInsertionEffect:function(i,o){return Cl(4,2,i,o)},useMemo:function(i,o){var s=vn();return o=o===void 0?null:o,i=i(),s.memoizedState=[i,o],i},useReducer:function(i,o,s){var f=vn();return o=s!==void 0?s(o):o,f.memoizedState=f.baseState=o,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:o},f.queue=i,i=i.dispatch=r1.bind(null,qe,i),[f.memoizedState,i]},useRef:function(i){var o=vn();return i={current:i},o.memoizedState=i},useState:$d,useDebugValue:Gu,useDeferredValue:function(i){return vn().memoizedState=i},useTransition:function(){var i=$d(!1),o=i[0];return i=n1.bind(null,i[1]),vn().memoizedState=i,[o,i]},useMutableSource:function(){},useSyncExternalStore:function(i,o,s){var f=qe,p=vn();if(He){if(s===void 0)throw Error(r(407));s=s()}else{if(s=o(),it===null)throw Error(r(349));(Vr&30)!==0||jd(f,o,s)}p.memoizedState=s;var v={value:s,getSnapshot:o};return p.queue=v,Hd(Id.bind(null,f,v,i),[i]),f.flags|=2048,Wo(9,Dd.bind(null,f,v,s,o),void 0,null),s},useId:function(){var i=vn(),o=it.identifierPrefix;if(He){var s=zn,f=An;s=(f&~(1<<32-en(f)-1)).toString(32)+s,o=":"+o+"R"+s,s=Bo++,0<s&&(o+="H"+s.toString(32)),o+=":"}else s=t1++,o=":"+o+"r"+s.toString(32)+":";return i.memoizedState=o},unstable_isNewReconciler:!1},a1={readContext:Bt,useCallback:Qd,useContext:Bt,useEffect:Ku,useImperativeHandle:qd,useInsertionEffect:Bd,useLayoutEffect:Vd,useMemo:Kd,useReducer:qu,useRef:Ud,useState:function(){return qu(Vo)},useDebugValue:Gu,useDeferredValue:function(i){var o=Vt();return Gd(o,et.memoizedState,i)},useTransition:function(){var i=qu(Vo)[0],o=Vt().memoizedState;return[i,o]},useMutableSource:Ad,useSyncExternalStore:zd,useId:Xd,unstable_isNewReconciler:!1},l1={readContext:Bt,useCallback:Qd,useContext:Bt,useEffect:Ku,useImperativeHandle:qd,useInsertionEffect:Bd,useLayoutEffect:Vd,useMemo:Kd,useReducer:Qu,useRef:Ud,useState:function(){return Qu(Vo)},useDebugValue:Gu,useDeferredValue:function(i){var o=Vt();return et===null?o.memoizedState=i:Gd(o,et.memoizedState,i)},useTransition:function(){var i=Qu(Vo)[0],o=Vt().memoizedState;return[i,o]},useMutableSource:Ad,useSyncExternalStore:zd,useId:Xd,unstable_isNewReconciler:!1};function rn(i,o){if(i&&i.defaultProps){o=X({},o),i=i.defaultProps;for(var s in i)o[s]===void 0&&(o[s]=i[s]);return o}return o}function Xu(i,o,s,f){o=i.memoizedState,s=s(f,o),s=s==null?o:X({},o,s),i.memoizedState=s,i.lanes===0&&(i.updateQueue.baseState=s)}var Pl={isMounted:function(i){return(i=i._reactInternals)?Ir(i)===i:!1},enqueueSetState:function(i,o,s){i=i._reactInternals;var f=yt(),p=vr(i),v=Dn(f,p);v.payload=o,s!=null&&(v.callback=s),o=pr(i,v,p),o!==null&&(ln(o,i,p,f),_l(o,i,p))},enqueueReplaceState:function(i,o,s){i=i._reactInternals;var f=yt(),p=vr(i),v=Dn(f,p);v.tag=1,v.payload=o,s!=null&&(v.callback=s),o=pr(i,v,p),o!==null&&(ln(o,i,p,f),_l(o,i,p))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var s=yt(),f=vr(i),p=Dn(s,f);p.tag=2,o!=null&&(p.callback=o),o=pr(i,p,f),o!==null&&(ln(o,i,f,s),_l(o,i,f))}};function ep(i,o,s,f,p,v,S){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(f,v,S):o.prototype&&o.prototype.isPureReactComponent?!No(s,f)||!No(p,v):!0}function tp(i,o,s){var f=!1,p=fr,v=o.contextType;return typeof v=="object"&&v!==null?v=Bt(v):(p=Ct(o)?Fr:ut.current,f=o.contextTypes,v=(f=f!=null)?Ti(i,p):fr),o=new o(s,v),i.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Pl,i.stateNode=o,o._reactInternals=i,f&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=p,i.__reactInternalMemoizedMaskedChildContext=v),o}function np(i,o,s,f){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(s,f),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(s,f),o.state!==i&&Pl.enqueueReplaceState(o,o.state,null)}function Yu(i,o,s,f){var p=i.stateNode;p.props=s,p.state=i.memoizedState,p.refs={},Iu(i);var v=o.contextType;typeof v=="object"&&v!==null?p.context=Bt(v):(v=Ct(o)?Fr:ut.current,p.context=Ti(i,v)),p.state=i.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(Xu(i,o,v,s),p.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(o=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),o!==p.state&&Pl.enqueueReplaceState(p,p.state,null),xl(i,s,p,f),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308)}function Ii(i,o){try{var s="",f=o;do s+=ke(f),f=f.return;while(f);var p=s}catch(v){p=`
|
|
39
|
-
Error generating stack: `+v.message+`
|
|
40
|
-
`+v.stack}return{value:i,source:o,stack:p,digest:null}}function Zu(i,o,s){return{value:i,source:null,stack:s??null,digest:o??null}}function Ju(i,o){try{console.error(o.value)}catch(s){setTimeout(function(){throw s})}}var s1=typeof WeakMap=="function"?WeakMap:Map;function rp(i,o,s){s=Dn(-1,s),s.tag=3,s.payload={element:null};var f=o.value;return s.callback=function(){zl||(zl=!0,pc=f),Ju(i,o)},s}function ip(i,o,s){s=Dn(-1,s),s.tag=3;var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var p=o.value;s.payload=function(){return f(p)},s.callback=function(){Ju(i,o)}}var v=i.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(s.callback=function(){Ju(i,o),typeof f!="function"&&(mr===null?mr=new Set([this]):mr.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})}),s}function op(i,o,s){var f=i.pingCache;if(f===null){f=i.pingCache=new s1;var p=new Set;f.set(o,p)}else p=f.get(o),p===void 0&&(p=new Set,f.set(o,p));p.has(s)||(p.add(s),i=k1.bind(null,i,o,s),o.then(i,i))}function ap(i){do{var o;if((o=i.tag===13)&&(o=i.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return i;i=i.return}while(i!==null);return null}function lp(i,o,s,f,p){return(i.mode&1)===0?(i===o?i.flags|=65536:(i.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(o=Dn(-1,1),o.tag=2,pr(s,o,1))),s.lanes|=1),i):(i.flags|=65536,i.lanes=p,i)}var u1=P.ReactCurrentOwner,bt=!1;function mt(i,o,s,f){o.child=i===null?Pd(o,null,s,f):Ai(o,i.child,s,f)}function sp(i,o,s,f,p){s=s.render;var v=o.ref;return ji(o,p),f=Vu(i,o,s,f,v,p),s=Wu(),i!==null&&!bt?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~p,In(i,o,p)):(He&&s&&Pu(o),o.flags|=1,mt(i,o,f,p),o.child)}function up(i,o,s,f,p){if(i===null){var v=s.type;return typeof v=="function"&&!wc(v)&&v.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(o.tag=15,o.type=v,cp(i,o,v,f,p)):(i=$l(s.type,null,f,o,o.mode,p),i.ref=o.ref,i.return=o,o.child=i)}if(v=i.child,(i.lanes&p)===0){var S=v.memoizedProps;if(s=s.compare,s=s!==null?s:No,s(S,f)&&i.ref===o.ref)return In(i,o,p)}return o.flags|=1,i=xr(v,f),i.ref=o.ref,i.return=o,o.child=i}function cp(i,o,s,f,p){if(i!==null){var v=i.memoizedProps;if(No(v,f)&&i.ref===o.ref)if(bt=!1,o.pendingProps=f=v,(i.lanes&p)!==0)(i.flags&131072)!==0&&(bt=!0);else return o.lanes=i.lanes,In(i,o,p)}return ec(i,o,s,f,p)}function fp(i,o,s){var f=o.pendingProps,p=f.children,v=i!==null?i.memoizedState:null;if(f.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(Fi,It),It|=s;else{if((s&1073741824)===0)return i=v!==null?v.baseLanes|s:s,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:i,cachePool:null,transitions:null},o.updateQueue=null,Le(Fi,It),It|=i,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},f=v!==null?v.baseLanes:s,Le(Fi,It),It|=f}else v!==null?(f=v.baseLanes|s,o.memoizedState=null):f=s,Le(Fi,It),It|=f;return mt(i,o,p,s),o.child}function hp(i,o){var s=o.ref;(i===null&&s!==null||i!==null&&i.ref!==s)&&(o.flags|=512,o.flags|=2097152)}function ec(i,o,s,f,p){var v=Ct(s)?Fr:ut.current;return v=Ti(o,v),ji(o,p),s=Vu(i,o,s,f,v,p),f=Wu(),i!==null&&!bt?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~p,In(i,o,p)):(He&&f&&Pu(o),o.flags|=1,mt(i,o,s,p),o.child)}function dp(i,o,s,f,p){if(Ct(s)){var v=!0;fl(o)}else v=!1;if(ji(o,p),o.stateNode===null)Tl(i,o),tp(o,s,f),Yu(o,s,f,p),f=!0;else if(i===null){var S=o.stateNode,R=o.memoizedProps;S.props=R;var A=S.context,B=s.contextType;typeof B=="object"&&B!==null?B=Bt(B):(B=Ct(s)?Fr:ut.current,B=Ti(o,B));var Z=s.getDerivedStateFromProps,te=typeof Z=="function"||typeof S.getSnapshotBeforeUpdate=="function";te||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(R!==f||A!==B)&&np(o,S,f,B),dr=!1;var Y=o.memoizedState;S.state=Y,xl(o,f,S,p),A=o.memoizedState,R!==f||Y!==A||St.current||dr?(typeof Z=="function"&&(Xu(o,s,Z,f),A=o.memoizedState),(R=dr||ep(o,s,R,f,Y,A,B))?(te||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(o.flags|=4194308)):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=f,o.memoizedState=A),S.props=f,S.state=A,S.context=B,f=R):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),f=!1)}else{S=o.stateNode,Td(i,o),R=o.memoizedProps,B=o.type===o.elementType?R:rn(o.type,R),S.props=B,te=o.pendingProps,Y=S.context,A=s.contextType,typeof A=="object"&&A!==null?A=Bt(A):(A=Ct(s)?Fr:ut.current,A=Ti(o,A));var le=s.getDerivedStateFromProps;(Z=typeof le=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(R!==te||Y!==A)&&np(o,S,f,A),dr=!1,Y=o.memoizedState,S.state=Y,xl(o,f,S,p);var fe=o.memoizedState;R!==te||Y!==fe||St.current||dr?(typeof le=="function"&&(Xu(o,s,le,f),fe=o.memoizedState),(B=dr||ep(o,s,B,f,Y,fe,A)||!1)?(Z||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(f,fe,A),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(f,fe,A)),typeof S.componentDidUpdate=="function"&&(o.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof S.componentDidUpdate!="function"||R===i.memoizedProps&&Y===i.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&Y===i.memoizedState||(o.flags|=1024),o.memoizedProps=f,o.memoizedState=fe),S.props=f,S.state=fe,S.context=A,f=B):(typeof S.componentDidUpdate!="function"||R===i.memoizedProps&&Y===i.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&Y===i.memoizedState||(o.flags|=1024),f=!1)}return tc(i,o,s,f,v,p)}function tc(i,o,s,f,p,v){hp(i,o);var S=(o.flags&128)!==0;if(!f&&!S)return p&&vd(o,s,!1),In(i,o,v);f=o.stateNode,u1.current=o;var R=S&&typeof s.getDerivedStateFromError!="function"?null:f.render();return o.flags|=1,i!==null&&S?(o.child=Ai(o,i.child,null,v),o.child=Ai(o,null,R,v)):mt(i,o,R,v),o.memoizedState=f.state,p&&vd(o,s,!0),o.child}function pp(i){var o=i.stateNode;o.pendingContext?md(i,o.pendingContext,o.pendingContext!==o.context):o.context&&md(i,o.context,!1),Lu(i,o.containerInfo)}function gp(i,o,s,f,p){return Oi(),Nu(p),o.flags|=256,mt(i,o,s,f),o.child}var nc={dehydrated:null,treeContext:null,retryLane:0};function rc(i){return{baseLanes:i,cachePool:null,transitions:null}}function mp(i,o,s){var f=o.pendingProps,p=We.current,v=!1,S=(o.flags&128)!==0,R;if((R=S)||(R=i!==null&&i.memoizedState===null?!1:(p&2)!==0),R?(v=!0,o.flags&=-129):(i===null||i.memoizedState!==null)&&(p|=1),Le(We,p&1),i===null)return Mu(o),i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((o.mode&1)===0?o.lanes=1:i.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(S=f.children,i=f.fallback,v?(f=o.mode,v=o.child,S={mode:"hidden",children:S},(f&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=S):v=Ul(S,f,0,null),i=Gr(i,f,s,null),v.return=o,i.return=o,v.sibling=i,o.child=v,o.child.memoizedState=rc(s),o.memoizedState=nc,i):ic(o,S));if(p=i.memoizedState,p!==null&&(R=p.dehydrated,R!==null))return c1(i,o,S,f,R,p,s);if(v){v=f.fallback,S=o.mode,p=i.child,R=p.sibling;var A={mode:"hidden",children:f.children};return(S&1)===0&&o.child!==p?(f=o.child,f.childLanes=0,f.pendingProps=A,o.deletions=null):(f=xr(p,A),f.subtreeFlags=p.subtreeFlags&14680064),R!==null?v=xr(R,v):(v=Gr(v,S,s,null),v.flags|=2),v.return=o,f.return=o,f.sibling=v,o.child=f,f=v,v=o.child,S=i.child.memoizedState,S=S===null?rc(s):{baseLanes:S.baseLanes|s,cachePool:null,transitions:S.transitions},v.memoizedState=S,v.childLanes=i.childLanes&~s,o.memoizedState=nc,f}return v=i.child,i=v.sibling,f=xr(v,{mode:"visible",children:f.children}),(o.mode&1)===0&&(f.lanes=s),f.return=o,f.sibling=null,i!==null&&(s=o.deletions,s===null?(o.deletions=[i],o.flags|=16):s.push(i)),o.child=f,o.memoizedState=null,f}function ic(i,o){return o=Ul({mode:"visible",children:o},i.mode,0,null),o.return=i,i.child=o}function Rl(i,o,s,f){return f!==null&&Nu(f),Ai(o,i.child,null,s),i=ic(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function c1(i,o,s,f,p,v,S){if(s)return o.flags&256?(o.flags&=-257,f=Zu(Error(r(422))),Rl(i,o,S,f)):o.memoizedState!==null?(o.child=i.child,o.flags|=128,null):(v=f.fallback,p=o.mode,f=Ul({mode:"visible",children:f.children},p,0,null),v=Gr(v,p,S,null),v.flags|=2,f.return=o,v.return=o,f.sibling=v,o.child=f,(o.mode&1)!==0&&Ai(o,i.child,null,S),o.child.memoizedState=rc(S),o.memoizedState=nc,v);if((o.mode&1)===0)return Rl(i,o,S,null);if(p.data==="$!"){if(f=p.nextSibling&&p.nextSibling.dataset,f)var R=f.dgst;return f=R,v=Error(r(419)),f=Zu(v,f,void 0),Rl(i,o,S,f)}if(R=(S&i.childLanes)!==0,bt||R){if(f=it,f!==null){switch(S&-S){case 4:p=2;break;case 16:p=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:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(f.suspendedLanes|S))!==0?0:p,p!==0&&p!==v.retryLane&&(v.retryLane=p,jn(i,p),ln(f,i,p,-1))}return xc(),f=Zu(Error(r(421))),Rl(i,o,S,f)}return p.data==="$?"?(o.flags|=128,o.child=i.child,o=S1.bind(null,i),p._reactRetry=o,null):(i=v.treeContext,Dt=ur(p.nextSibling),jt=o,He=!0,nn=null,i!==null&&(Ut[Ht++]=An,Ut[Ht++]=zn,Ut[Ht++]=$r,An=i.id,zn=i.overflow,$r=o),o=ic(o,f.children),o.flags|=4096,o)}function yp(i,o,s){i.lanes|=o;var f=i.alternate;f!==null&&(f.lanes|=o),ju(i.return,o,s)}function oc(i,o,s,f,p){var v=i.memoizedState;v===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:f,tail:s,tailMode:p}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=f,v.tail=s,v.tailMode=p)}function vp(i,o,s){var f=o.pendingProps,p=f.revealOrder,v=f.tail;if(mt(i,o,f.children,s),f=We.current,(f&2)!==0)f=f&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&yp(i,s,o);else if(i.tag===19)yp(i,s,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}f&=1}if(Le(We,f),(o.mode&1)===0)o.memoizedState=null;else switch(p){case"forwards":for(s=o.child,p=null;s!==null;)i=s.alternate,i!==null&&wl(i)===null&&(p=s),s=s.sibling;s=p,s===null?(p=o.child,o.child=null):(p=s.sibling,s.sibling=null),oc(o,!1,p,s,v);break;case"backwards":for(s=null,p=o.child,o.child=null;p!==null;){if(i=p.alternate,i!==null&&wl(i)===null){o.child=p;break}i=p.sibling,p.sibling=s,s=p,p=i}oc(o,!0,s,null,v);break;case"together":oc(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Tl(i,o){(o.mode&1)===0&&i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2)}function In(i,o,s){if(i!==null&&(o.dependencies=i.dependencies),Wr|=o.lanes,(s&o.childLanes)===0)return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,s=xr(i,i.pendingProps),o.child=s,s.return=o;i.sibling!==null;)i=i.sibling,s=s.sibling=xr(i,i.pendingProps),s.return=o;s.sibling=null}return o.child}function f1(i,o,s){switch(o.tag){case 3:pp(o),Oi();break;case 5:Od(o);break;case 1:Ct(o.type)&&fl(o);break;case 4:Lu(o,o.stateNode.containerInfo);break;case 10:var f=o.type._context,p=o.memoizedProps.value;Le(yl,f._currentValue),f._currentValue=p;break;case 13:if(f=o.memoizedState,f!==null)return f.dehydrated!==null?(Le(We,We.current&1),o.flags|=128,null):(s&o.child.childLanes)!==0?mp(i,o,s):(Le(We,We.current&1),i=In(i,o,s),i!==null?i.sibling:null);Le(We,We.current&1);break;case 19:if(f=(s&o.childLanes)!==0,(i.flags&128)!==0){if(f)return vp(i,o,s);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Le(We,We.current),f)break;return null;case 22:case 23:return o.lanes=0,fp(i,o,s)}return In(i,o,s)}var _p,ac,xp,wp;_p=function(i,o){for(var s=o.child;s!==null;){if(s.tag===5||s.tag===6)i.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},ac=function(){},xp=function(i,o,s,f){var p=i.memoizedProps;if(p!==f){i=o.stateNode,Br(yn.current);var v=null;switch(s){case"input":p=fo(i,p),f=fo(i,f),v=[];break;case"select":p=X({},p,{value:void 0}),f=X({},f,{value:void 0}),v=[];break;case"textarea":p=Zt(i,p),f=Zt(i,f),v=[];break;default:typeof p.onClick!="function"&&typeof f.onClick=="function"&&(i.onclick=sl)}$s(s,f);var S;s=null;for(B in p)if(!f.hasOwnProperty(B)&&p.hasOwnProperty(B)&&p[B]!=null)if(B==="style"){var R=p[B];for(S in R)R.hasOwnProperty(S)&&(s||(s={}),s[S]="")}else B!=="dangerouslySetInnerHTML"&&B!=="children"&&B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&B!=="autoFocus"&&(l.hasOwnProperty(B)?v||(v=[]):(v=v||[]).push(B,null));for(B in f){var A=f[B];if(R=p!=null?p[B]:void 0,f.hasOwnProperty(B)&&A!==R&&(A!=null||R!=null))if(B==="style")if(R){for(S in R)!R.hasOwnProperty(S)||A&&A.hasOwnProperty(S)||(s||(s={}),s[S]="");for(S in A)A.hasOwnProperty(S)&&R[S]!==A[S]&&(s||(s={}),s[S]=A[S])}else s||(v||(v=[]),v.push(B,s)),s=A;else B==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,R=R?R.__html:void 0,A!=null&&R!==A&&(v=v||[]).push(B,A)):B==="children"?typeof A!="string"&&typeof A!="number"||(v=v||[]).push(B,""+A):B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&(l.hasOwnProperty(B)?(A!=null&&B==="onScroll"&&Fe("scroll",i),v||R===A||(v=[])):(v=v||[]).push(B,A))}s&&(v=v||[]).push("style",s);var B=v;(o.updateQueue=B)&&(o.flags|=4)}},wp=function(i,o,s,f){s!==f&&(o.flags|=4)};function qo(i,o){if(!He)switch(i.tailMode){case"hidden":o=i.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?i.tail=null:s.sibling=null;break;case"collapsed":s=i.tail;for(var f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:f.sibling=null}}function ft(i){var o=i.alternate!==null&&i.alternate.child===i.child,s=0,f=0;if(o)for(var p=i.child;p!==null;)s|=p.lanes|p.childLanes,f|=p.subtreeFlags&14680064,f|=p.flags&14680064,p.return=i,p=p.sibling;else for(p=i.child;p!==null;)s|=p.lanes|p.childLanes,f|=p.subtreeFlags,f|=p.flags,p.return=i,p=p.sibling;return i.subtreeFlags|=f,i.childLanes=s,o}function h1(i,o,s){var f=o.pendingProps;switch(Ru(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(o),null;case 1:return Ct(o.type)&&cl(),ft(o),null;case 3:return f=o.stateNode,Di(),$e(St),$e(ut),Uu(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(i===null||i.child===null)&&(gl(o)?o.flags|=4:i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,nn!==null&&(yc(nn),nn=null))),ac(i,o),ft(o),null;case 5:Fu(o);var p=Br(Uo.current);if(s=o.type,i!==null&&o.stateNode!=null)xp(i,o,s,f,p),i.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!f){if(o.stateNode===null)throw Error(r(166));return ft(o),null}if(i=Br(yn.current),gl(o)){f=o.stateNode,s=o.type;var v=o.memoizedProps;switch(f[mn]=o,f[Do]=v,i=(o.mode&1)!==0,s){case"dialog":Fe("cancel",f),Fe("close",f);break;case"iframe":case"object":case"embed":Fe("load",f);break;case"video":case"audio":for(p=0;p<Ao.length;p++)Fe(Ao[p],f);break;case"source":Fe("error",f);break;case"img":case"image":case"link":Fe("error",f),Fe("load",f);break;case"details":Fe("toggle",f);break;case"input":Fa(f,v),Fe("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!v.multiple},Fe("invalid",f);break;case"textarea":Je(f,v),Fe("invalid",f)}$s(s,v),p=null;for(var S in v)if(v.hasOwnProperty(S)){var R=v[S];S==="children"?typeof R=="string"?f.textContent!==R&&(v.suppressHydrationWarning!==!0&&ll(f.textContent,R,i),p=["children",R]):typeof R=="number"&&f.textContent!==""+R&&(v.suppressHydrationWarning!==!0&&ll(f.textContent,R,i),p=["children",""+R]):l.hasOwnProperty(S)&&R!=null&&S==="onScroll"&&Fe("scroll",f)}switch(s){case"input":pi(f),ho(f,v,!0);break;case"textarea":pi(f),Jt(f);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(f.onclick=sl)}f=p,o.updateQueue=f,f!==null&&(o.flags|=4)}else{S=p.nodeType===9?p:p.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=tr(s)),i==="http://www.w3.org/1999/xhtml"?s==="script"?(i=S.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof f.is=="string"?i=S.createElement(s,{is:f.is}):(i=S.createElement(s),s==="select"&&(S=i,f.multiple?S.multiple=!0:f.size&&(S.size=f.size))):i=S.createElementNS(i,s),i[mn]=o,i[Do]=f,_p(i,o,!1,!1),o.stateNode=i;e:{switch(S=Us(s,f),s){case"dialog":Fe("cancel",i),Fe("close",i),p=f;break;case"iframe":case"object":case"embed":Fe("load",i),p=f;break;case"video":case"audio":for(p=0;p<Ao.length;p++)Fe(Ao[p],i);p=f;break;case"source":Fe("error",i),p=f;break;case"img":case"image":case"link":Fe("error",i),Fe("load",i),p=f;break;case"details":Fe("toggle",i),p=f;break;case"input":Fa(i,f),p=fo(i,f),Fe("invalid",i);break;case"option":p=f;break;case"select":i._wrapperState={wasMultiple:!!f.multiple},p=X({},f,{value:void 0}),Fe("invalid",i);break;case"textarea":Je(i,f),p=Zt(i,f),Fe("invalid",i);break;default:p=f}$s(s,p),R=p;for(v in R)if(R.hasOwnProperty(v)){var A=R[v];v==="style"?ch(i,A):v==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&sh(i,A)):v==="children"?typeof A=="string"?(s!=="textarea"||A!=="")&&po(i,A):typeof A=="number"&&po(i,""+A):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(l.hasOwnProperty(v)?A!=null&&v==="onScroll"&&Fe("scroll",i):A!=null&&M(i,v,A,S))}switch(s){case"input":pi(i),ho(i,f,!1);break;case"textarea":pi(i),Jt(i);break;case"option":f.value!=null&&i.setAttribute("value",""+Ce(f.value));break;case"select":i.multiple=!!f.multiple,v=f.value,v!=null?Me(i,!!f.multiple,v,!1):f.defaultValue!=null&&Me(i,!!f.multiple,f.defaultValue,!0);break;default:typeof p.onClick=="function"&&(i.onclick=sl)}switch(s){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return ft(o),null;case 6:if(i&&o.stateNode!=null)wp(i,o,i.memoizedProps,f);else{if(typeof f!="string"&&o.stateNode===null)throw Error(r(166));if(s=Br(Uo.current),Br(yn.current),gl(o)){if(f=o.stateNode,s=o.memoizedProps,f[mn]=o,(v=f.nodeValue!==s)&&(i=jt,i!==null))switch(i.tag){case 3:ll(f.nodeValue,s,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&ll(f.nodeValue,s,(i.mode&1)!==0)}v&&(o.flags|=4)}else f=(s.nodeType===9?s:s.ownerDocument).createTextNode(f),f[mn]=o,o.stateNode=f}return ft(o),null;case 13:if($e(We),f=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(He&&Dt!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Cd(),Oi(),o.flags|=98560,v=!1;else if(v=gl(o),f!==null&&f.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[mn]=o}else Oi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ft(o),v=!1}else nn!==null&&(yc(nn),nn=null),v=!0;if(!v)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=s,o):(f=f!==null,f!==(i!==null&&i.memoizedState!==null)&&f&&(o.child.flags|=8192,(o.mode&1)!==0&&(i===null||(We.current&1)!==0?tt===0&&(tt=3):xc())),o.updateQueue!==null&&(o.flags|=4),ft(o),null);case 4:return Di(),ac(i,o),i===null&&zo(o.stateNode.containerInfo),ft(o),null;case 10:return zu(o.type._context),ft(o),null;case 17:return Ct(o.type)&&cl(),ft(o),null;case 19:if($e(We),v=o.memoizedState,v===null)return ft(o),null;if(f=(o.flags&128)!==0,S=v.rendering,S===null)if(f)qo(v,!1);else{if(tt!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(S=wl(i),S!==null){for(o.flags|=128,qo(v,!1),f=S.updateQueue,f!==null&&(o.updateQueue=f,o.flags|=4),o.subtreeFlags=0,f=s,s=o.child;s!==null;)v=s,i=f,v.flags&=14680066,S=v.alternate,S===null?(v.childLanes=0,v.lanes=i,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=S.childLanes,v.lanes=S.lanes,v.child=S.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=S.memoizedProps,v.memoizedState=S.memoizedState,v.updateQueue=S.updateQueue,v.type=S.type,i=S.dependencies,v.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),s=s.sibling;return Le(We,We.current&1|2),o.child}i=i.sibling}v.tail!==null&&Xe()>$i&&(o.flags|=128,f=!0,qo(v,!1),o.lanes=4194304)}else{if(!f)if(i=wl(S),i!==null){if(o.flags|=128,f=!0,s=i.updateQueue,s!==null&&(o.updateQueue=s,o.flags|=4),qo(v,!0),v.tail===null&&v.tailMode==="hidden"&&!S.alternate&&!He)return ft(o),null}else 2*Xe()-v.renderingStartTime>$i&&s!==1073741824&&(o.flags|=128,f=!0,qo(v,!1),o.lanes=4194304);v.isBackwards?(S.sibling=o.child,o.child=S):(s=v.last,s!==null?s.sibling=S:o.child=S,v.last=S)}return v.tail!==null?(o=v.tail,v.rendering=o,v.tail=o.sibling,v.renderingStartTime=Xe(),o.sibling=null,s=We.current,Le(We,f?s&1|2:s&1),o):(ft(o),null);case 22:case 23:return _c(),f=o.memoizedState!==null,i!==null&&i.memoizedState!==null!==f&&(o.flags|=8192),f&&(o.mode&1)!==0?(It&1073741824)!==0&&(ft(o),o.subtreeFlags&6&&(o.flags|=8192)):ft(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function d1(i,o){switch(Ru(o),o.tag){case 1:return Ct(o.type)&&cl(),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return Di(),$e(St),$e(ut),Uu(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 5:return Fu(o),null;case 13:if($e(We),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Oi()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return $e(We),null;case 4:return Di(),null;case 10:return zu(o.type._context),null;case 22:case 23:return _c(),null;case 24:return null;default:return null}}var Ml=!1,ht=!1,p1=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Li(i,o){var s=i.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(f){Ke(i,o,f)}else s.current=null}function lc(i,o,s){try{s()}catch(f){Ke(i,o,f)}}var kp=!1;function g1(i,o){if(_u=Xa,i=ed(),fu(i)){if("selectionStart"in i)var s={start:i.selectionStart,end:i.selectionEnd};else e:{s=(s=i.ownerDocument)&&s.defaultView||window;var f=s.getSelection&&s.getSelection();if(f&&f.rangeCount!==0){s=f.anchorNode;var p=f.anchorOffset,v=f.focusNode;f=f.focusOffset;try{s.nodeType,v.nodeType}catch{s=null;break e}var S=0,R=-1,A=-1,B=0,Z=0,te=i,Y=null;t:for(;;){for(var le;te!==s||p!==0&&te.nodeType!==3||(R=S+p),te!==v||f!==0&&te.nodeType!==3||(A=S+f),te.nodeType===3&&(S+=te.nodeValue.length),(le=te.firstChild)!==null;)Y=te,te=le;for(;;){if(te===i)break t;if(Y===s&&++B===p&&(R=S),Y===v&&++Z===f&&(A=S),(le=te.nextSibling)!==null)break;te=Y,Y=te.parentNode}te=le}s=R===-1||A===-1?null:{start:R,end:A}}else s=null}s=s||{start:0,end:0}}else s=null;for(xu={focusedElem:i,selectionRange:s},Xa=!1,ue=o;ue!==null;)if(o=ue,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,ue=i;else for(;ue!==null;){o=ue;try{var fe=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(fe!==null){var de=fe.memoizedProps,Ye=fe.memoizedState,U=o.stateNode,j=U.getSnapshotBeforeUpdate(o.elementType===o.type?de:rn(o.type,de),Ye);U.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var H=o.stateNode.containerInfo;H.nodeType===1?H.textContent="":H.nodeType===9&&H.documentElement&&H.removeChild(H.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(re){Ke(o,o.return,re)}if(i=o.sibling,i!==null){i.return=o.return,ue=i;break}ue=o.return}return fe=kp,kp=!1,fe}function Qo(i,o,s){var f=o.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var p=f=f.next;do{if((p.tag&i)===i){var v=p.destroy;p.destroy=void 0,v!==void 0&&lc(o,s,v)}p=p.next}while(p!==f)}}function Nl(i,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&i)===i){var f=s.create;s.destroy=f()}s=s.next}while(s!==o)}}function sc(i){var o=i.ref;if(o!==null){var s=i.stateNode;switch(i.tag){case 5:i=s;break;default:i=s}typeof o=="function"?o(i):o.current=i}}function Sp(i){var o=i.alternate;o!==null&&(i.alternate=null,Sp(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&(delete o[mn],delete o[Do],delete o[Cu],delete o[Yv],delete o[Zv])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Cp(i){return i.tag===5||i.tag===3||i.tag===4}function bp(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Cp(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function uc(i,o,s){var f=i.tag;if(f===5||f===6)i=i.stateNode,o?s.nodeType===8?s.parentNode.insertBefore(i,o):s.insertBefore(i,o):(s.nodeType===8?(o=s.parentNode,o.insertBefore(i,s)):(o=s,o.appendChild(i)),s=s._reactRootContainer,s!=null||o.onclick!==null||(o.onclick=sl));else if(f!==4&&(i=i.child,i!==null))for(uc(i,o,s),i=i.sibling;i!==null;)uc(i,o,s),i=i.sibling}function cc(i,o,s){var f=i.tag;if(f===5||f===6)i=i.stateNode,o?s.insertBefore(i,o):s.appendChild(i);else if(f!==4&&(i=i.child,i!==null))for(cc(i,o,s),i=i.sibling;i!==null;)cc(i,o,s),i=i.sibling}var at=null,on=!1;function gr(i,o,s){for(s=s.child;s!==null;)Ep(i,o,s),s=s.sibling}function Ep(i,o,s){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(Va,s)}catch{}switch(s.tag){case 5:ht||Li(s,o);case 6:var f=at,p=on;at=null,gr(i,o,s),at=f,on=p,at!==null&&(on?(i=at,s=s.stateNode,i.nodeType===8?i.parentNode.removeChild(s):i.removeChild(s)):at.removeChild(s.stateNode));break;case 18:at!==null&&(on?(i=at,s=s.stateNode,i.nodeType===8?Su(i.parentNode,s):i.nodeType===1&&Su(i,s),bo(i)):Su(at,s.stateNode));break;case 4:f=at,p=on,at=s.stateNode.containerInfo,on=!0,gr(i,o,s),at=f,on=p;break;case 0:case 11:case 14:case 15:if(!ht&&(f=s.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){p=f=f.next;do{var v=p,S=v.destroy;v=v.tag,S!==void 0&&((v&2)!==0||(v&4)!==0)&&lc(s,o,S),p=p.next}while(p!==f)}gr(i,o,s);break;case 1:if(!ht&&(Li(s,o),f=s.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=s.memoizedProps,f.state=s.memoizedState,f.componentWillUnmount()}catch(R){Ke(s,o,R)}gr(i,o,s);break;case 21:gr(i,o,s);break;case 22:s.mode&1?(ht=(f=ht)||s.memoizedState!==null,gr(i,o,s),ht=f):gr(i,o,s);break;default:gr(i,o,s)}}function Pp(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var s=i.stateNode;s===null&&(s=i.stateNode=new p1),o.forEach(function(f){var p=C1.bind(null,i,f);s.has(f)||(s.add(f),f.then(p,p))})}}function an(i,o){var s=o.deletions;if(s!==null)for(var f=0;f<s.length;f++){var p=s[f];try{var v=i,S=o,R=S;e:for(;R!==null;){switch(R.tag){case 5:at=R.stateNode,on=!1;break e;case 3:at=R.stateNode.containerInfo,on=!0;break e;case 4:at=R.stateNode.containerInfo,on=!0;break e}R=R.return}if(at===null)throw Error(r(160));Ep(v,S,p),at=null,on=!1;var A=p.alternate;A!==null&&(A.return=null),p.return=null}catch(B){Ke(p,o,B)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Rp(o,i),o=o.sibling}function Rp(i,o){var s=i.alternate,f=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(an(o,i),_n(i),f&4){try{Qo(3,i,i.return),Nl(3,i)}catch(de){Ke(i,i.return,de)}try{Qo(5,i,i.return)}catch(de){Ke(i,i.return,de)}}break;case 1:an(o,i),_n(i),f&512&&s!==null&&Li(s,s.return);break;case 5:if(an(o,i),_n(i),f&512&&s!==null&&Li(s,s.return),i.flags&32){var p=i.stateNode;try{po(p,"")}catch(de){Ke(i,i.return,de)}}if(f&4&&(p=i.stateNode,p!=null)){var v=i.memoizedProps,S=s!==null?s.memoizedProps:v,R=i.type,A=i.updateQueue;if(i.updateQueue=null,A!==null)try{R==="input"&&v.type==="radio"&&v.name!=null&&$a(p,v),Us(R,S);var B=Us(R,v);for(S=0;S<A.length;S+=2){var Z=A[S],te=A[S+1];Z==="style"?ch(p,te):Z==="dangerouslySetInnerHTML"?sh(p,te):Z==="children"?po(p,te):M(p,Z,te,B)}switch(R){case"input":mi(p,v);break;case"textarea":$t(p,v);break;case"select":var Y=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!v.multiple;var le=v.value;le!=null?Me(p,!!v.multiple,le,!1):Y!==!!v.multiple&&(v.defaultValue!=null?Me(p,!!v.multiple,v.defaultValue,!0):Me(p,!!v.multiple,v.multiple?[]:"",!1))}p[Do]=v}catch(de){Ke(i,i.return,de)}}break;case 6:if(an(o,i),_n(i),f&4){if(i.stateNode===null)throw Error(r(162));p=i.stateNode,v=i.memoizedProps;try{p.nodeValue=v}catch(de){Ke(i,i.return,de)}}break;case 3:if(an(o,i),_n(i),f&4&&s!==null&&s.memoizedState.isDehydrated)try{bo(o.containerInfo)}catch(de){Ke(i,i.return,de)}break;case 4:an(o,i),_n(i);break;case 13:an(o,i),_n(i),p=i.child,p.flags&8192&&(v=p.memoizedState!==null,p.stateNode.isHidden=v,!v||p.alternate!==null&&p.alternate.memoizedState!==null||(dc=Xe())),f&4&&Pp(i);break;case 22:if(Z=s!==null&&s.memoizedState!==null,i.mode&1?(ht=(B=ht)||Z,an(o,i),ht=B):an(o,i),_n(i),f&8192){if(B=i.memoizedState!==null,(i.stateNode.isHidden=B)&&!Z&&(i.mode&1)!==0)for(ue=i,Z=i.child;Z!==null;){for(te=ue=Z;ue!==null;){switch(Y=ue,le=Y.child,Y.tag){case 0:case 11:case 14:case 15:Qo(4,Y,Y.return);break;case 1:Li(Y,Y.return);var fe=Y.stateNode;if(typeof fe.componentWillUnmount=="function"){f=Y,s=Y.return;try{o=f,fe.props=o.memoizedProps,fe.state=o.memoizedState,fe.componentWillUnmount()}catch(de){Ke(f,s,de)}}break;case 5:Li(Y,Y.return);break;case 22:if(Y.memoizedState!==null){Np(te);continue}}le!==null?(le.return=Y,ue=le):Np(te)}Z=Z.sibling}e:for(Z=null,te=i;;){if(te.tag===5){if(Z===null){Z=te;try{p=te.stateNode,B?(v=p.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(R=te.stateNode,A=te.memoizedProps.style,S=A!=null&&A.hasOwnProperty("display")?A.display:null,R.style.display=uh("display",S))}catch(de){Ke(i,i.return,de)}}}else if(te.tag===6){if(Z===null)try{te.stateNode.nodeValue=B?"":te.memoizedProps}catch(de){Ke(i,i.return,de)}}else if((te.tag!==22&&te.tag!==23||te.memoizedState===null||te===i)&&te.child!==null){te.child.return=te,te=te.child;continue}if(te===i)break e;for(;te.sibling===null;){if(te.return===null||te.return===i)break e;Z===te&&(Z=null),te=te.return}Z===te&&(Z=null),te.sibling.return=te.return,te=te.sibling}}break;case 19:an(o,i),_n(i),f&4&&Pp(i);break;case 21:break;default:an(o,i),_n(i)}}function _n(i){var o=i.flags;if(o&2){try{e:{for(var s=i.return;s!==null;){if(Cp(s)){var f=s;break e}s=s.return}throw Error(r(160))}switch(f.tag){case 5:var p=f.stateNode;f.flags&32&&(po(p,""),f.flags&=-33);var v=bp(i);cc(i,v,p);break;case 3:case 4:var S=f.stateNode.containerInfo,R=bp(i);uc(i,R,S);break;default:throw Error(r(161))}}catch(A){Ke(i,i.return,A)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function m1(i,o,s){ue=i,Tp(i)}function Tp(i,o,s){for(var f=(i.mode&1)!==0;ue!==null;){var p=ue,v=p.child;if(p.tag===22&&f){var S=p.memoizedState!==null||Ml;if(!S){var R=p.alternate,A=R!==null&&R.memoizedState!==null||ht;R=Ml;var B=ht;if(Ml=S,(ht=A)&&!B)for(ue=p;ue!==null;)S=ue,A=S.child,S.tag===22&&S.memoizedState!==null?Op(p):A!==null?(A.return=S,ue=A):Op(p);for(;v!==null;)ue=v,Tp(v),v=v.sibling;ue=p,Ml=R,ht=B}Mp(i)}else(p.subtreeFlags&8772)!==0&&v!==null?(v.return=p,ue=v):Mp(i)}}function Mp(i){for(;ue!==null;){var o=ue;if((o.flags&8772)!==0){var s=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:ht||Nl(5,o);break;case 1:var f=o.stateNode;if(o.flags&4&&!ht)if(s===null)f.componentDidMount();else{var p=o.elementType===o.type?s.memoizedProps:rn(o.type,s.memoizedProps);f.componentDidUpdate(p,s.memoizedState,f.__reactInternalSnapshotBeforeUpdate)}var v=o.updateQueue;v!==null&&Nd(o,v,f);break;case 3:var S=o.updateQueue;if(S!==null){if(s=null,o.child!==null)switch(o.child.tag){case 5:s=o.child.stateNode;break;case 1:s=o.child.stateNode}Nd(o,S,s)}break;case 5:var R=o.stateNode;if(s===null&&o.flags&4){s=R;var A=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&s.focus();break;case"img":A.src&&(s.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var B=o.alternate;if(B!==null){var Z=B.memoizedState;if(Z!==null){var te=Z.dehydrated;te!==null&&bo(te)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}ht||o.flags&512&&sc(o)}catch(Y){Ke(o,o.return,Y)}}if(o===i){ue=null;break}if(s=o.sibling,s!==null){s.return=o.return,ue=s;break}ue=o.return}}function Np(i){for(;ue!==null;){var o=ue;if(o===i){ue=null;break}var s=o.sibling;if(s!==null){s.return=o.return,ue=s;break}ue=o.return}}function Op(i){for(;ue!==null;){var o=ue;try{switch(o.tag){case 0:case 11:case 15:var s=o.return;try{Nl(4,o)}catch(A){Ke(o,s,A)}break;case 1:var f=o.stateNode;if(typeof f.componentDidMount=="function"){var p=o.return;try{f.componentDidMount()}catch(A){Ke(o,p,A)}}var v=o.return;try{sc(o)}catch(A){Ke(o,v,A)}break;case 5:var S=o.return;try{sc(o)}catch(A){Ke(o,S,A)}}}catch(A){Ke(o,o.return,A)}if(o===i){ue=null;break}var R=o.sibling;if(R!==null){R.return=o.return,ue=R;break}ue=o.return}}var y1=Math.ceil,Ol=P.ReactCurrentDispatcher,fc=P.ReactCurrentOwner,Wt=P.ReactCurrentBatchConfig,Ne=0,it=null,Ze=null,lt=0,It=0,Fi=cr(0),tt=0,Ko=null,Wr=0,Al=0,hc=0,Go=null,Et=null,dc=0,$i=1/0,Ln=null,zl=!1,pc=null,mr=null,jl=!1,yr=null,Dl=0,Xo=0,gc=null,Il=-1,Ll=0;function yt(){return(Ne&6)!==0?Xe():Il!==-1?Il:Il=Xe()}function vr(i){return(i.mode&1)===0?1:(Ne&2)!==0&<!==0?lt&-lt:e1.transition!==null?(Ll===0&&(Ll=bh()),Ll):(i=je,i!==0||(i=window.event,i=i===void 0?16:zh(i.type)),i)}function ln(i,o,s,f){if(50<Xo)throw Xo=0,gc=null,Error(r(185));xo(i,s,f),((Ne&2)===0||i!==it)&&(i===it&&((Ne&2)===0&&(Al|=s),tt===4&&_r(i,lt)),Pt(i,f),s===1&&Ne===0&&(o.mode&1)===0&&($i=Xe()+500,hl&&hr()))}function Pt(i,o){var s=i.callbackNode;ev(i,o);var f=Qa(i,i===it?lt:0);if(f===0)s!==null&&kh(s),i.callbackNode=null,i.callbackPriority=0;else if(o=f&-f,i.callbackPriority!==o){if(s!=null&&kh(s),o===1)i.tag===0?Jv(zp.bind(null,i)):_d(zp.bind(null,i)),Gv(function(){(Ne&6)===0&&hr()}),s=null;else{switch(Eh(f)){case 1:s=Ks;break;case 4:s=Sh;break;case 16:s=Ba;break;case 536870912:s=Ch;break;default:s=Ba}s=Hp(s,Ap.bind(null,i))}i.callbackPriority=o,i.callbackNode=s}}function Ap(i,o){if(Il=-1,Ll=0,(Ne&6)!==0)throw Error(r(327));var s=i.callbackNode;if(Ui()&&i.callbackNode!==s)return null;var f=Qa(i,i===it?lt:0);if(f===0)return null;if((f&30)!==0||(f&i.expiredLanes)!==0||o)o=Fl(i,f);else{o=f;var p=Ne;Ne|=2;var v=Dp();(it!==i||lt!==o)&&(Ln=null,$i=Xe()+500,Qr(i,o));do try{x1();break}catch(R){jp(i,R)}while(!0);Au(),Ol.current=v,Ne=p,Ze!==null?o=0:(it=null,lt=0,o=tt)}if(o!==0){if(o===2&&(p=Gs(i),p!==0&&(f=p,o=mc(i,p))),o===1)throw s=Ko,Qr(i,0),_r(i,f),Pt(i,Xe()),s;if(o===6)_r(i,f);else{if(p=i.current.alternate,(f&30)===0&&!v1(p)&&(o=Fl(i,f),o===2&&(v=Gs(i),v!==0&&(f=v,o=mc(i,v))),o===1))throw s=Ko,Qr(i,0),_r(i,f),Pt(i,Xe()),s;switch(i.finishedWork=p,i.finishedLanes=f,o){case 0:case 1:throw Error(r(345));case 2:Kr(i,Et,Ln);break;case 3:if(_r(i,f),(f&130023424)===f&&(o=dc+500-Xe(),10<o)){if(Qa(i,0)!==0)break;if(p=i.suspendedLanes,(p&f)!==f){yt(),i.pingedLanes|=i.suspendedLanes&p;break}i.timeoutHandle=ku(Kr.bind(null,i,Et,Ln),o);break}Kr(i,Et,Ln);break;case 4:if(_r(i,f),(f&4194240)===f)break;for(o=i.eventTimes,p=-1;0<f;){var S=31-en(f);v=1<<S,S=o[S],S>p&&(p=S),f&=~v}if(f=p,f=Xe()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*y1(f/1960))-f,10<f){i.timeoutHandle=ku(Kr.bind(null,i,Et,Ln),f);break}Kr(i,Et,Ln);break;case 5:Kr(i,Et,Ln);break;default:throw Error(r(329))}}}return Pt(i,Xe()),i.callbackNode===s?Ap.bind(null,i):null}function mc(i,o){var s=Go;return i.current.memoizedState.isDehydrated&&(Qr(i,o).flags|=256),i=Fl(i,o),i!==2&&(o=Et,Et=s,o!==null&&yc(o)),i}function yc(i){Et===null?Et=i:Et.push.apply(Et,i)}function v1(i){for(var o=i;;){if(o.flags&16384){var s=o.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var f=0;f<s.length;f++){var p=s[f],v=p.getSnapshot;p=p.value;try{if(!tn(v(),p))return!1}catch{return!1}}}if(s=o.child,o.subtreeFlags&16384&&s!==null)s.return=o,o=s;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function _r(i,o){for(o&=~hc,o&=~Al,i.suspendedLanes|=o,i.pingedLanes&=~o,i=i.expirationTimes;0<o;){var s=31-en(o),f=1<<s;i[s]=-1,o&=~f}}function zp(i){if((Ne&6)!==0)throw Error(r(327));Ui();var o=Qa(i,0);if((o&1)===0)return Pt(i,Xe()),null;var s=Fl(i,o);if(i.tag!==0&&s===2){var f=Gs(i);f!==0&&(o=f,s=mc(i,f))}if(s===1)throw s=Ko,Qr(i,0),_r(i,o),Pt(i,Xe()),s;if(s===6)throw Error(r(345));return i.finishedWork=i.current.alternate,i.finishedLanes=o,Kr(i,Et,Ln),Pt(i,Xe()),null}function vc(i,o){var s=Ne;Ne|=1;try{return i(o)}finally{Ne=s,Ne===0&&($i=Xe()+500,hl&&hr())}}function qr(i){yr!==null&&yr.tag===0&&(Ne&6)===0&&Ui();var o=Ne;Ne|=1;var s=Wt.transition,f=je;try{if(Wt.transition=null,je=1,i)return i()}finally{je=f,Wt.transition=s,Ne=o,(Ne&6)===0&&hr()}}function _c(){It=Fi.current,$e(Fi)}function Qr(i,o){i.finishedWork=null,i.finishedLanes=0;var s=i.timeoutHandle;if(s!==-1&&(i.timeoutHandle=-1,Kv(s)),Ze!==null)for(s=Ze.return;s!==null;){var f=s;switch(Ru(f),f.tag){case 1:f=f.type.childContextTypes,f!=null&&cl();break;case 3:Di(),$e(St),$e(ut),Uu();break;case 5:Fu(f);break;case 4:Di();break;case 13:$e(We);break;case 19:$e(We);break;case 10:zu(f.type._context);break;case 22:case 23:_c()}s=s.return}if(it=i,Ze=i=xr(i.current,null),lt=It=o,tt=0,Ko=null,hc=Al=Wr=0,Et=Go=null,Hr!==null){for(o=0;o<Hr.length;o++)if(s=Hr[o],f=s.interleaved,f!==null){s.interleaved=null;var p=f.next,v=s.pending;if(v!==null){var S=v.next;v.next=p,f.next=S}s.pending=f}Hr=null}return i}function jp(i,o){do{var s=Ze;try{if(Au(),kl.current=El,Sl){for(var f=qe.memoizedState;f!==null;){var p=f.queue;p!==null&&(p.pending=null),f=f.next}Sl=!1}if(Vr=0,rt=et=qe=null,Ho=!1,Bo=0,fc.current=null,s===null||s.return===null){tt=1,Ko=o,Ze=null;break}e:{var v=i,S=s.return,R=s,A=o;if(o=lt,R.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var B=A,Z=R,te=Z.tag;if((Z.mode&1)===0&&(te===0||te===11||te===15)){var Y=Z.alternate;Y?(Z.updateQueue=Y.updateQueue,Z.memoizedState=Y.memoizedState,Z.lanes=Y.lanes):(Z.updateQueue=null,Z.memoizedState=null)}var le=ap(S);if(le!==null){le.flags&=-257,lp(le,S,R,v,o),le.mode&1&&op(v,B,o),o=le,A=B;var fe=o.updateQueue;if(fe===null){var de=new Set;de.add(A),o.updateQueue=de}else fe.add(A);break e}else{if((o&1)===0){op(v,B,o),xc();break e}A=Error(r(426))}}else if(He&&R.mode&1){var Ye=ap(S);if(Ye!==null){(Ye.flags&65536)===0&&(Ye.flags|=256),lp(Ye,S,R,v,o),Nu(Ii(A,R));break e}}v=A=Ii(A,R),tt!==4&&(tt=2),Go===null?Go=[v]:Go.push(v),v=S;do{switch(v.tag){case 3:v.flags|=65536,o&=-o,v.lanes|=o;var U=rp(v,A,o);Md(v,U);break e;case 1:R=A;var j=v.type,H=v.stateNode;if((v.flags&128)===0&&(typeof j.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(mr===null||!mr.has(H)))){v.flags|=65536,o&=-o,v.lanes|=o;var re=ip(v,R,o);Md(v,re);break e}}v=v.return}while(v!==null)}Lp(s)}catch(ge){o=ge,Ze===s&&s!==null&&(Ze=s=s.return);continue}break}while(!0)}function Dp(){var i=Ol.current;return Ol.current=El,i===null?El:i}function xc(){(tt===0||tt===3||tt===2)&&(tt=4),it===null||(Wr&268435455)===0&&(Al&268435455)===0||_r(it,lt)}function Fl(i,o){var s=Ne;Ne|=2;var f=Dp();(it!==i||lt!==o)&&(Ln=null,Qr(i,o));do try{_1();break}catch(p){jp(i,p)}while(!0);if(Au(),Ne=s,Ol.current=f,Ze!==null)throw Error(r(261));return it=null,lt=0,tt}function _1(){for(;Ze!==null;)Ip(Ze)}function x1(){for(;Ze!==null&&!Wy();)Ip(Ze)}function Ip(i){var o=Up(i.alternate,i,It);i.memoizedProps=i.pendingProps,o===null?Lp(i):Ze=o,fc.current=null}function Lp(i){var o=i;do{var s=o.alternate;if(i=o.return,(o.flags&32768)===0){if(s=h1(s,o,It),s!==null){Ze=s;return}}else{if(s=d1(s,o),s!==null){s.flags&=32767,Ze=s;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{tt=6,Ze=null;return}}if(o=o.sibling,o!==null){Ze=o;return}Ze=o=i}while(o!==null);tt===0&&(tt=5)}function Kr(i,o,s){var f=je,p=Wt.transition;try{Wt.transition=null,je=1,w1(i,o,s,f)}finally{Wt.transition=p,je=f}return null}function w1(i,o,s,f){do Ui();while(yr!==null);if((Ne&6)!==0)throw Error(r(327));s=i.finishedWork;var p=i.finishedLanes;if(s===null)return null;if(i.finishedWork=null,i.finishedLanes=0,s===i.current)throw Error(r(177));i.callbackNode=null,i.callbackPriority=0;var v=s.lanes|s.childLanes;if(tv(i,v),i===it&&(Ze=it=null,lt=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||jl||(jl=!0,Hp(Ba,function(){return Ui(),null})),v=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||v){v=Wt.transition,Wt.transition=null;var S=je;je=1;var R=Ne;Ne|=4,fc.current=null,g1(i,s),Rp(s,i),Uv(xu),Xa=!!_u,xu=_u=null,i.current=s,m1(s),qy(),Ne=R,je=S,Wt.transition=v}else i.current=s;if(jl&&(jl=!1,yr=i,Dl=p),v=i.pendingLanes,v===0&&(mr=null),Gy(s.stateNode),Pt(i,Xe()),o!==null)for(f=i.onRecoverableError,s=0;s<o.length;s++)p=o[s],f(p.value,{componentStack:p.stack,digest:p.digest});if(zl)throw zl=!1,i=pc,pc=null,i;return(Dl&1)!==0&&i.tag!==0&&Ui(),v=i.pendingLanes,(v&1)!==0?i===gc?Xo++:(Xo=0,gc=i):Xo=0,hr(),null}function Ui(){if(yr!==null){var i=Eh(Dl),o=Wt.transition,s=je;try{if(Wt.transition=null,je=16>i?16:i,yr===null)var f=!1;else{if(i=yr,yr=null,Dl=0,(Ne&6)!==0)throw Error(r(331));var p=Ne;for(Ne|=4,ue=i.current;ue!==null;){var v=ue,S=v.child;if((ue.flags&16)!==0){var R=v.deletions;if(R!==null){for(var A=0;A<R.length;A++){var B=R[A];for(ue=B;ue!==null;){var Z=ue;switch(Z.tag){case 0:case 11:case 15:Qo(8,Z,v)}var te=Z.child;if(te!==null)te.return=Z,ue=te;else for(;ue!==null;){Z=ue;var Y=Z.sibling,le=Z.return;if(Sp(Z),Z===B){ue=null;break}if(Y!==null){Y.return=le,ue=Y;break}ue=le}}}var fe=v.alternate;if(fe!==null){var de=fe.child;if(de!==null){fe.child=null;do{var Ye=de.sibling;de.sibling=null,de=Ye}while(de!==null)}}ue=v}}if((v.subtreeFlags&2064)!==0&&S!==null)S.return=v,ue=S;else e:for(;ue!==null;){if(v=ue,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:Qo(9,v,v.return)}var U=v.sibling;if(U!==null){U.return=v.return,ue=U;break e}ue=v.return}}var j=i.current;for(ue=j;ue!==null;){S=ue;var H=S.child;if((S.subtreeFlags&2064)!==0&&H!==null)H.return=S,ue=H;else e:for(S=j;ue!==null;){if(R=ue,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:Nl(9,R)}}catch(ge){Ke(R,R.return,ge)}if(R===S){ue=null;break e}var re=R.sibling;if(re!==null){re.return=R.return,ue=re;break e}ue=R.return}}if(Ne=p,hr(),gn&&typeof gn.onPostCommitFiberRoot=="function")try{gn.onPostCommitFiberRoot(Va,i)}catch{}f=!0}return f}finally{je=s,Wt.transition=o}}return!1}function Fp(i,o,s){o=Ii(s,o),o=rp(i,o,1),i=pr(i,o,1),o=yt(),i!==null&&(xo(i,1,o),Pt(i,o))}function Ke(i,o,s){if(i.tag===3)Fp(i,i,s);else for(;o!==null;){if(o.tag===3){Fp(o,i,s);break}else if(o.tag===1){var f=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(mr===null||!mr.has(f))){i=Ii(s,i),i=ip(o,i,1),o=pr(o,i,1),i=yt(),o!==null&&(xo(o,1,i),Pt(o,i));break}}o=o.return}}function k1(i,o,s){var f=i.pingCache;f!==null&&f.delete(o),o=yt(),i.pingedLanes|=i.suspendedLanes&s,it===i&&(lt&s)===s&&(tt===4||tt===3&&(lt&130023424)===lt&&500>Xe()-dc?Qr(i,0):hc|=s),Pt(i,o)}function $p(i,o){o===0&&((i.mode&1)===0?o=1:(o=qa,qa<<=1,(qa&130023424)===0&&(qa=4194304)));var s=yt();i=jn(i,o),i!==null&&(xo(i,o,s),Pt(i,s))}function S1(i){var o=i.memoizedState,s=0;o!==null&&(s=o.retryLane),$p(i,s)}function C1(i,o){var s=0;switch(i.tag){case 13:var f=i.stateNode,p=i.memoizedState;p!==null&&(s=p.retryLane);break;case 19:f=i.stateNode;break;default:throw Error(r(314))}f!==null&&f.delete(o),$p(i,s)}var Up;Up=function(i,o,s){if(i!==null)if(i.memoizedProps!==o.pendingProps||St.current)bt=!0;else{if((i.lanes&s)===0&&(o.flags&128)===0)return bt=!1,f1(i,o,s);bt=(i.flags&131072)!==0}else bt=!1,He&&(o.flags&1048576)!==0&&xd(o,pl,o.index);switch(o.lanes=0,o.tag){case 2:var f=o.type;Tl(i,o),i=o.pendingProps;var p=Ti(o,ut.current);ji(o,s),p=Vu(null,o,f,i,p,s);var v=Wu();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Ct(f)?(v=!0,fl(o)):v=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Iu(o),p.updater=Pl,o.stateNode=p,p._reactInternals=o,Yu(o,f,i,s),o=tc(null,o,f,!0,v,s)):(o.tag=0,He&&v&&Pu(o),mt(null,o,p,s),o=o.child),o;case 16:f=o.elementType;e:{switch(Tl(i,o),i=o.pendingProps,p=f._init,f=p(f._payload),o.type=f,p=o.tag=E1(f),i=rn(f,i),p){case 0:o=ec(null,o,f,i,s);break e;case 1:o=dp(null,o,f,i,s);break e;case 11:o=sp(null,o,f,i,s);break e;case 14:o=up(null,o,f,rn(f.type,i),s);break e}throw Error(r(306,f,""))}return o;case 0:return f=o.type,p=o.pendingProps,p=o.elementType===f?p:rn(f,p),ec(i,o,f,p,s);case 1:return f=o.type,p=o.pendingProps,p=o.elementType===f?p:rn(f,p),dp(i,o,f,p,s);case 3:e:{if(pp(o),i===null)throw Error(r(387));f=o.pendingProps,v=o.memoizedState,p=v.element,Td(i,o),xl(o,f,null,s);var S=o.memoizedState;if(f=S.element,v.isDehydrated)if(v={element:f,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},o.updateQueue.baseState=v,o.memoizedState=v,o.flags&256){p=Ii(Error(r(423)),o),o=gp(i,o,f,s,p);break e}else if(f!==p){p=Ii(Error(r(424)),o),o=gp(i,o,f,s,p);break e}else for(Dt=ur(o.stateNode.containerInfo.firstChild),jt=o,He=!0,nn=null,s=Pd(o,null,f,s),o.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Oi(),f===p){o=In(i,o,s);break e}mt(i,o,f,s)}o=o.child}return o;case 5:return Od(o),i===null&&Mu(o),f=o.type,p=o.pendingProps,v=i!==null?i.memoizedProps:null,S=p.children,wu(f,p)?S=null:v!==null&&wu(f,v)&&(o.flags|=32),hp(i,o),mt(i,o,S,s),o.child;case 6:return i===null&&Mu(o),null;case 13:return mp(i,o,s);case 4:return Lu(o,o.stateNode.containerInfo),f=o.pendingProps,i===null?o.child=Ai(o,null,f,s):mt(i,o,f,s),o.child;case 11:return f=o.type,p=o.pendingProps,p=o.elementType===f?p:rn(f,p),sp(i,o,f,p,s);case 7:return mt(i,o,o.pendingProps,s),o.child;case 8:return mt(i,o,o.pendingProps.children,s),o.child;case 12:return mt(i,o,o.pendingProps.children,s),o.child;case 10:e:{if(f=o.type._context,p=o.pendingProps,v=o.memoizedProps,S=p.value,Le(yl,f._currentValue),f._currentValue=S,v!==null)if(tn(v.value,S)){if(v.children===p.children&&!St.current){o=In(i,o,s);break e}}else for(v=o.child,v!==null&&(v.return=o);v!==null;){var R=v.dependencies;if(R!==null){S=v.child;for(var A=R.firstContext;A!==null;){if(A.context===f){if(v.tag===1){A=Dn(-1,s&-s),A.tag=2;var B=v.updateQueue;if(B!==null){B=B.shared;var Z=B.pending;Z===null?A.next=A:(A.next=Z.next,Z.next=A),B.pending=A}}v.lanes|=s,A=v.alternate,A!==null&&(A.lanes|=s),ju(v.return,s,o),R.lanes|=s;break}A=A.next}}else if(v.tag===10)S=v.type===o.type?null:v.child;else if(v.tag===18){if(S=v.return,S===null)throw Error(r(341));S.lanes|=s,R=S.alternate,R!==null&&(R.lanes|=s),ju(S,s,o),S=v.sibling}else S=v.child;if(S!==null)S.return=v;else for(S=v;S!==null;){if(S===o){S=null;break}if(v=S.sibling,v!==null){v.return=S.return,S=v;break}S=S.return}v=S}mt(i,o,p.children,s),o=o.child}return o;case 9:return p=o.type,f=o.pendingProps.children,ji(o,s),p=Bt(p),f=f(p),o.flags|=1,mt(i,o,f,s),o.child;case 14:return f=o.type,p=rn(f,o.pendingProps),p=rn(f.type,p),up(i,o,f,p,s);case 15:return cp(i,o,o.type,o.pendingProps,s);case 17:return f=o.type,p=o.pendingProps,p=o.elementType===f?p:rn(f,p),Tl(i,o),o.tag=1,Ct(f)?(i=!0,fl(o)):i=!1,ji(o,s),tp(o,f,p),Yu(o,f,p,s),tc(null,o,f,!0,i,s);case 19:return vp(i,o,s);case 22:return fp(i,o,s)}throw Error(r(156,o.tag))};function Hp(i,o){return wh(i,o)}function b1(i,o,s,f){this.tag=i,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qt(i,o,s,f){return new b1(i,o,s,f)}function wc(i){return i=i.prototype,!(!i||!i.isReactComponent)}function E1(i){if(typeof i=="function")return wc(i)?1:0;if(i!=null){if(i=i.$$typeof,i===ae)return 11;if(i===ne)return 14}return 2}function xr(i,o){var s=i.alternate;return s===null?(s=qt(i.tag,o,i.key,i.mode),s.elementType=i.elementType,s.type=i.type,s.stateNode=i.stateNode,s.alternate=i,i.alternate=s):(s.pendingProps=o,s.type=i.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=i.flags&14680064,s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,o=i.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},s.sibling=i.sibling,s.index=i.index,s.ref=i.ref,s}function $l(i,o,s,f,p,v){var S=2;if(f=i,typeof i=="function")wc(i)&&(S=1);else if(typeof i=="string")S=5;else e:switch(i){case D:return Gr(s.children,p,v,o);case I:S=8,p|=8;break;case q:return i=qt(12,s,o,p|2),i.elementType=q,i.lanes=v,i;case he:return i=qt(13,s,o,p),i.elementType=he,i.lanes=v,i;case F:return i=qt(19,s,o,p),i.elementType=F,i.lanes=v,i;case oe:return Ul(s,p,v,o);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case K:S=10;break e;case J:S=9;break e;case ae:S=11;break e;case ne:S=14;break e;case G:S=16,f=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return o=qt(S,s,o,p),o.elementType=i,o.type=f,o.lanes=v,o}function Gr(i,o,s,f){return i=qt(7,i,f,o),i.lanes=s,i}function Ul(i,o,s,f){return i=qt(22,i,f,o),i.elementType=oe,i.lanes=s,i.stateNode={isHidden:!1},i}function kc(i,o,s){return i=qt(6,i,null,o),i.lanes=s,i}function Sc(i,o,s){return o=qt(4,i.children!==null?i.children:[],i.key,o),o.lanes=s,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function P1(i,o,s,f,p){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xs(0),this.expirationTimes=Xs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xs(0),this.identifierPrefix=f,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Cc(i,o,s,f,p,v,S,R,A){return i=new P1(i,o,s,R,A),o===1?(o=1,v===!0&&(o|=8)):o=0,v=qt(3,null,null,o),i.current=v,v.stateNode=i,v.memoizedState={element:f,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},Iu(v),i}function R1(i,o,s){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:f==null?null:""+f,children:i,containerInfo:o,implementation:s}}function Bp(i){if(!i)return fr;i=i._reactInternals;e:{if(Ir(i)!==i||i.tag!==1)throw Error(r(170));var o=i;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Ct(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(r(171))}if(i.tag===1){var s=i.type;if(Ct(s))return yd(i,s,o)}return o}function Vp(i,o,s,f,p,v,S,R,A){return i=Cc(s,f,!0,i,p,v,S,R,A),i.context=Bp(null),s=i.current,f=yt(),p=vr(s),v=Dn(f,p),v.callback=o??null,pr(s,v,p),i.current.lanes=p,xo(i,p,f),Pt(i,f),i}function Hl(i,o,s,f){var p=o.current,v=yt(),S=vr(p);return s=Bp(s),o.context===null?o.context=s:o.pendingContext=s,o=Dn(v,S),o.payload={element:i},f=f===void 0?null:f,f!==null&&(o.callback=f),i=pr(p,o,S),i!==null&&(ln(i,p,S,v),_l(i,p,S)),S}function Bl(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function Wp(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var s=i.retryLane;i.retryLane=s!==0&&s<o?s:o}}function bc(i,o){Wp(i,o),(i=i.alternate)&&Wp(i,o)}function T1(){return null}var qp=typeof reportError=="function"?reportError:function(i){console.error(i)};function Ec(i){this._internalRoot=i}Vl.prototype.render=Ec.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));Hl(i,o,null,null)},Vl.prototype.unmount=Ec.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;qr(function(){Hl(null,i,null,null)}),o[Nn]=null}};function Vl(i){this._internalRoot=i}Vl.prototype.unstable_scheduleHydration=function(i){if(i){var o=Th();i={blockedOn:null,target:i,priority:o};for(var s=0;s<ar.length&&o!==0&&o<ar[s].priority;s++);ar.splice(s,0,i),s===0&&Oh(i)}};function Pc(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Wl(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Qp(){}function M1(i,o,s,f,p){if(p){if(typeof f=="function"){var v=f;f=function(){var B=Bl(S);v.call(B)}}var S=Vp(o,f,i,0,null,!1,!1,"",Qp);return i._reactRootContainer=S,i[Nn]=S.current,zo(i.nodeType===8?i.parentNode:i),qr(),S}for(;p=i.lastChild;)i.removeChild(p);if(typeof f=="function"){var R=f;f=function(){var B=Bl(A);R.call(B)}}var A=Cc(i,0,!1,null,null,!1,!1,"",Qp);return i._reactRootContainer=A,i[Nn]=A.current,zo(i.nodeType===8?i.parentNode:i),qr(function(){Hl(o,A,s,f)}),A}function ql(i,o,s,f,p){var v=s._reactRootContainer;if(v){var S=v;if(typeof p=="function"){var R=p;p=function(){var A=Bl(S);R.call(A)}}Hl(o,S,i,p)}else S=M1(s,o,i,p,f);return Bl(S)}Ph=function(i){switch(i.tag){case 3:var o=i.stateNode;if(o.current.memoizedState.isDehydrated){var s=_o(o.pendingLanes);s!==0&&(Ys(o,s|1),Pt(o,Xe()),(Ne&6)===0&&($i=Xe()+500,hr()))}break;case 13:qr(function(){var f=jn(i,1);if(f!==null){var p=yt();ln(f,i,1,p)}}),bc(i,1)}},Zs=function(i){if(i.tag===13){var o=jn(i,134217728);if(o!==null){var s=yt();ln(o,i,134217728,s)}bc(i,134217728)}},Rh=function(i){if(i.tag===13){var o=vr(i),s=jn(i,o);if(s!==null){var f=yt();ln(s,i,o,f)}bc(i,o)}},Th=function(){return je},Mh=function(i,o){var s=je;try{return je=i,o()}finally{je=s}},Vs=function(i,o,s){switch(o){case"input":if(mi(i,s),o=s.name,s.type==="radio"&&o!=null){for(s=i;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<s.length;o++){var f=s[o];if(f!==i&&f.form===i.form){var p=ul(f);if(!p)throw Error(r(90));La(f),mi(f,p)}}}break;case"textarea":$t(i,s);break;case"select":o=s.value,o!=null&&Me(i,!!s.multiple,o,!1)}},ph=vc,gh=qr;var N1={usingClientEntryPoint:!1,Events:[Io,Pi,ul,hh,dh,vc]},Yo={findFiberByHostInstance:Lr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},O1={bundleType:Yo.bundleType,version:Yo.version,rendererPackageName:Yo.rendererPackageName,rendererConfig:Yo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=_h(i),i===null?null:i.stateNode},findFiberByHostInstance:Yo.findFiberByHostInstance||T1,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 Ql=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ql.isDisabled&&Ql.supportsFiber)try{Va=Ql.inject(O1),gn=Ql}catch{}}return Rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N1,Rt.createPortal=function(i,o){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pc(o))throw Error(r(200));return R1(i,o,null,s)},Rt.createRoot=function(i,o){if(!Pc(i))throw Error(r(299));var s=!1,f="",p=qp;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=Cc(i,1,!1,null,null,s,!1,f,p),i[Nn]=o.current,zo(i.nodeType===8?i.parentNode:i),new Ec(o)},Rt.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=_h(o),i=i===null?null:i.stateNode,i},Rt.flushSync=function(i){return qr(i)},Rt.hydrate=function(i,o,s){if(!Wl(o))throw Error(r(200));return ql(null,i,o,!0,s)},Rt.hydrateRoot=function(i,o,s){if(!Pc(i))throw Error(r(405));var f=s!=null&&s.hydratedSources||null,p=!1,v="",S=qp;if(s!=null&&(s.unstable_strictMode===!0&&(p=!0),s.identifierPrefix!==void 0&&(v=s.identifierPrefix),s.onRecoverableError!==void 0&&(S=s.onRecoverableError)),o=Vp(o,null,i,1,s??null,p,!1,v,S),i[Nn]=o.current,zo(i),f)for(i=0;i<f.length;i++)s=f[i],p=s._getVersion,p=p(s._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[s,p]:o.mutableSourceEagerHydrationData.push(s,p);return new Vl(o)},Rt.render=function(i,o,s){if(!Wl(o))throw Error(r(200));return ql(null,i,o,!1,s)},Rt.unmountComponentAtNode=function(i){if(!Wl(i))throw Error(r(40));return i._reactRootContainer?(qr(function(){ql(null,null,i,!1,function(){i._reactRootContainer=null,i[Nn]=null})}),!0):!1},Rt.unstable_batchedUpdates=vc,Rt.unstable_renderSubtreeIntoContainer=function(i,o,s,f){if(!Wl(s))throw Error(r(200));if(i==null||i._reactInternals===void 0)throw Error(r(38));return ql(i,o,s,!1,f)},Rt.version="18.3.1-next-f1338f8080-20240426",Rt}var fg;function x_(){if(fg)return Oc.exports;fg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Oc.exports=__(),Oc.exports}var hg;function w_(){if(hg)return Xl;hg=1;var e=x_();return Xl.createRoot=e.createRoot,Xl.hydrateRoot=e.hydrateRoot,Xl}var k_=w_(),Jo={},dg;function S_(){if(dg)return Jo;dg=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.parse=c,Jo.serialize=g;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,l=Object.prototype.toString,u=(()=>{const _=function(){};return _.prototype=Object.create(null),_})();function c(_,x){const k=new u,C=_.length;if(C<2)return k;const b=(x==null?void 0:x.decode)||y;let w=0;do{const E=_.indexOf("=",w);if(E===-1)break;const M=_.indexOf(";",w),P=M===-1?C:M;if(E>P){w=_.lastIndexOf(";",E-1)+1;continue}const T=h(_,w,E),z=d(_,E,T),D=_.slice(T,z);if(k[D]===void 0){let I=h(_,E+1,P),q=d(_,P,I);const K=b(_.slice(I,q));k[D]=K}w=P+1}while(w<C);return k}function h(_,x,k){do{const C=_.charCodeAt(x);if(C!==32&&C!==9)return x}while(++x<k);return k}function d(_,x,k){for(;x>k;){const C=_.charCodeAt(--x);if(C!==32&&C!==9)return x+1}return k}function g(_,x,k){const C=(k==null?void 0:k.encode)||encodeURIComponent;if(!e.test(_))throw new TypeError(`argument name is invalid: ${_}`);const b=C(x);if(!n.test(b))throw new TypeError(`argument val is invalid: ${x}`);let w=_+"="+b;if(!k)return w;if(k.maxAge!==void 0){if(!Number.isInteger(k.maxAge))throw new TypeError(`option maxAge is invalid: ${k.maxAge}`);w+="; Max-Age="+k.maxAge}if(k.domain){if(!r.test(k.domain))throw new TypeError(`option domain is invalid: ${k.domain}`);w+="; Domain="+k.domain}if(k.path){if(!a.test(k.path))throw new TypeError(`option path is invalid: ${k.path}`);w+="; Path="+k.path}if(k.expires){if(!m(k.expires)||!Number.isFinite(k.expires.valueOf()))throw new TypeError(`option expires is invalid: ${k.expires}`);w+="; Expires="+k.expires.toUTCString()}if(k.httpOnly&&(w+="; HttpOnly"),k.secure&&(w+="; Secure"),k.partitioned&&(w+="; Partitioned"),k.priority)switch(typeof k.priority=="string"?k.priority.toLowerCase():void 0){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${k.priority}`)}if(k.sameSite)switch(typeof k.sameSite=="string"?k.sameSite.toLowerCase():k.sameSite){case!0:case"strict":w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"none":w+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${k.sameSite}`)}return w}function y(_){if(_.indexOf("%")===-1)return _;try{return decodeURIComponent(_)}catch{return _}}function m(_){return l.call(_)==="[object Date]"}return Jo}S_();var pg="popstate";function C_(e={}){function n(a,l){let{pathname:u,search:c,hash:h}=a.location;return hf("",{pathname:u,search:c,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(a,l){return typeof l=="string"?l:va(l)}return E_(n,r,null,e)}function Qe(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Pn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function b_(){return Math.random().toString(36).substring(2,10)}function gg(e,n){return{usr:e.state,key:e.key,idx:n}}function hf(e,n,r=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?uo(n):n,state:r,key:n&&n.key||a||b_()}}function va({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function uo(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(n.search=e.substring(a),e=e.substring(0,a)),e&&(n.pathname=e)}return n}function E_(e,n,r,a={}){let{window:l=document.defaultView,v5Compat:u=!1}=a,c=l.history,h="POP",d=null,g=y();g==null&&(g=0,c.replaceState({...c.state,idx:g},""));function y(){return(c.state||{idx:null}).idx}function m(){h="POP";let b=y(),w=b==null?null:b-g;g=b,d&&d({action:h,location:C.location,delta:w})}function _(b,w){h="PUSH";let E=hf(C.location,b,w);g=y()+1;let M=gg(E,g),P=C.createHref(E);try{c.pushState(M,"",P)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;l.location.assign(P)}u&&d&&d({action:h,location:C.location,delta:1})}function x(b,w){h="REPLACE";let E=hf(C.location,b,w);g=y();let M=gg(E,g),P=C.createHref(E);c.replaceState(M,"",P),u&&d&&d({action:h,location:C.location,delta:0})}function k(b){return P_(b)}let C={get action(){return h},get location(){return e(l,c)},listen(b){if(d)throw new Error("A history only accepts one active listener");return l.addEventListener(pg,m),d=b,()=>{l.removeEventListener(pg,m),d=null}},createHref(b){return n(l,b)},createURL:k,encodeLocation(b){let w=k(b);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:_,replace:x,go(b){return c.go(b)}};return C}function P_(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Qe(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:va(e);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function s0(e,n,r="/"){return R_(e,n,r,!1)}function R_(e,n,r,a){let l=typeof n=="string"?uo(n):n,u=Zn(l.pathname||"/",r);if(u==null)return null;let c=u0(e);T_(c);let h=null;for(let d=0;h==null&&d<c.length;++d){let g=$_(u);h=L_(c[d],g,a)}return h}function u0(e,n=[],r=[],a=""){let l=(u,c,h)=>{let d={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:c,route:u};d.relativePath.startsWith("/")&&(Qe(d.relativePath.startsWith(a),`Absolute route path "${d.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(a.length));let g=Gn([a,d.relativePath]),y=r.concat(d);u.children&&u.children.length>0&&(Qe(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),u0(u.children,n,y,g)),!(u.path==null&&!u.index)&&n.push({path:g,score:D_(g,u.index),routesMeta:y})};return e.forEach((u,c)=>{var h;if(u.path===""||!((h=u.path)!=null&&h.includes("?")))l(u,c);else for(let d of c0(u.path))l(u,c,d)}),n}function c0(e){let n=e.split("/");if(n.length===0)return[];let[r,...a]=n,l=r.endsWith("?"),u=r.replace(/\?$/,"");if(a.length===0)return l?[u,""]:[u];let c=c0(a.join("/")),h=[];return h.push(...c.map(d=>d===""?u:[u,d].join("/"))),l&&h.push(...c),h.map(d=>e.startsWith("/")&&d===""?"/":d)}function T_(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:I_(n.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var M_=/^:[\w-]+$/,N_=3,O_=2,A_=1,z_=10,j_=-2,mg=e=>e==="*";function D_(e,n){let r=e.split("/"),a=r.length;return r.some(mg)&&(a+=j_),n&&(a+=O_),r.filter(l=>!mg(l)).reduce((l,u)=>l+(M_.test(u)?N_:u===""?A_:z_),a)}function I_(e,n){return e.length===n.length&&e.slice(0,-1).every((a,l)=>a===n[l])?e[e.length-1]-n[n.length-1]:0}function L_(e,n,r=!1){let{routesMeta:a}=e,l={},u="/",c=[];for(let h=0;h<a.length;++h){let d=a[h],g=h===a.length-1,y=u==="/"?n:n.slice(u.length)||"/",m=ms({path:d.relativePath,caseSensitive:d.caseSensitive,end:g},y),_=d.route;if(!m&&g&&r&&!a[a.length-1].route.index&&(m=ms({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},y)),!m)return null;Object.assign(l,m.params),c.push({params:l,pathname:Gn([u,m.pathname]),pathnameBase:V_(Gn([u,m.pathnameBase])),route:_}),m.pathnameBase!=="/"&&(u=Gn([u,m.pathnameBase]))}return c}function ms(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=F_(e.path,e.caseSensitive,e.end),l=n.match(r);if(!l)return null;let u=l[0],c=u.replace(/(.)\/+$/,"$1"),h=l.slice(1);return{params:a.reduce((g,{paramName:y,isOptional:m},_)=>{if(y==="*"){let k=h[_]||"";c=u.slice(0,u.length-k.length).replace(/(.)\/+$/,"$1")}const x=h[_];return m&&!x?g[y]=void 0:g[y]=(x||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:c,pattern:e}}function F_(e,n=!1,r=!0){Pn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,h,d)=>(a.push({paramName:h,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),a]}function $_(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Pn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Zn(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function U_(e,n="/"){let{pathname:r,search:a="",hash:l=""}=typeof e=="string"?uo(e):e;return{pathname:r?r.startsWith("/")?r:H_(r,n):n,search:W_(a),hash:q_(l)}}function H_(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function jc(e,n,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function B_(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function f0(e){let n=B_(e);return n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase)}function h0(e,n,r,a=!1){let l;typeof e=="string"?l=uo(e):(l={...e},Qe(!l.pathname||!l.pathname.includes("?"),jc("?","pathname","search",l)),Qe(!l.pathname||!l.pathname.includes("#"),jc("#","pathname","hash",l)),Qe(!l.search||!l.search.includes("#"),jc("#","search","hash",l)));let u=e===""||l.pathname==="",c=u?"/":l.pathname,h;if(c==null)h=r;else{let m=n.length-1;if(!a&&c.startsWith("..")){let _=c.split("/");for(;_[0]==="..";)_.shift(),m-=1;l.pathname=_.join("/")}h=m>=0?n[m]:"/"}let d=U_(l,h),g=c&&c!=="/"&&c.endsWith("/"),y=(u||c===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(g||y)&&(d.pathname+="/"),d}var Gn=e=>e.join("/").replace(/\/\/+/g,"/"),V_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,q_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Q_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var d0=["POST","PUT","PATCH","DELETE"];new Set(d0);var K_=["GET",...d0];new Set(K_);var co=$.createContext(null);co.displayName="DataRouter";var Ms=$.createContext(null);Ms.displayName="DataRouterState";var p0=$.createContext({isTransitioning:!1});p0.displayName="ViewTransition";var G_=$.createContext(new Map);G_.displayName="Fetchers";var X_=$.createContext(null);X_.displayName="Await";var Tn=$.createContext(null);Tn.displayName="Navigation";var Ma=$.createContext(null);Ma.displayName="Location";var er=$.createContext({outlet:null,matches:[],isDataRoute:!1});er.displayName="Route";var Ff=$.createContext(null);Ff.displayName="RouteError";function Y_(e,{relative:n}={}){Qe(Na(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=$.useContext(Tn),{hash:l,pathname:u,search:c}=Oa(e,{relative:n}),h=u;return r!=="/"&&(h=u==="/"?r:Gn([r,u])),a.createHref({pathname:h,search:c,hash:l})}function Na(){return $.useContext(Ma)!=null}function hi(){return Qe(Na(),"useLocation() may be used only in the context of a <Router> component."),$.useContext(Ma).location}var g0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function m0(e){$.useContext(Tn).static||$.useLayoutEffect(e)}function Z_(){let{isDataRoute:e}=$.useContext(er);return e?fx():J_()}function J_(){Qe(Na(),"useNavigate() may be used only in the context of a <Router> component.");let e=$.useContext(co),{basename:n,navigator:r}=$.useContext(Tn),{matches:a}=$.useContext(er),{pathname:l}=hi(),u=JSON.stringify(f0(a)),c=$.useRef(!1);return m0(()=>{c.current=!0}),$.useCallback((d,g={})=>{if(Pn(c.current,g0),!c.current)return;if(typeof d=="number"){r.go(d);return}let y=h0(d,JSON.parse(u),l,g.relative==="path");e==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Gn([n,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[n,r,u,l,e])}$.createContext(null);function Oa(e,{relative:n}={}){let{matches:r}=$.useContext(er),{pathname:a}=hi(),l=JSON.stringify(f0(r));return $.useMemo(()=>h0(e,JSON.parse(l),a,n==="path"),[e,l,a,n])}function ex(e,n){return y0(e,n)}function y0(e,n,r,a){var w;Qe(Na(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=$.useContext(Tn),{matches:u}=$.useContext(er),c=u[u.length-1],h=c?c.params:{},d=c?c.pathname:"/",g=c?c.pathnameBase:"/",y=c&&c.route;{let E=y&&y.path||"";v0(d,!y||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
41
|
-
|
|
42
|
-
Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let m=hi(),_;if(n){let E=typeof n=="string"?uo(n):n;Qe(g==="/"||((w=E.pathname)==null?void 0:w.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${E.pathname}" was given in the \`location\` prop.`),_=E}else _=m;let x=_.pathname||"/",k=x;if(g!=="/"){let E=g.replace(/^\//,"").split("/");k="/"+x.replace(/^\//,"").split("/").slice(E.length).join("/")}let C=s0(e,{pathname:k});Pn(y||C!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Pn(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=ox(C&&C.map(E=>Object.assign({},E,{params:Object.assign({},h,E.params),pathname:Gn([g,l.encodeLocation?l.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?g:Gn([g,l.encodeLocation?l.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),u,r,a);return n&&b?$.createElement(Ma.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},b):b}function tx(){let e=cx(),n=Q_(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:a},u={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=$.createElement($.Fragment,null,$.createElement("p",null,"💿 Hey developer 👋"),$.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",$.createElement("code",{style:u},"ErrorBoundary")," or"," ",$.createElement("code",{style:u},"errorElement")," prop on your route.")),$.createElement($.Fragment,null,$.createElement("h2",null,"Unexpected Application Error!"),$.createElement("h3",{style:{fontStyle:"italic"}},n),r?$.createElement("pre",{style:l},r):null,c)}var nx=$.createElement(tx,null),rx=class extends $.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?$.createElement(er.Provider,{value:this.props.routeContext},$.createElement(Ff.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ix({routeContext:e,match:n,children:r}){let a=$.useContext(co);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),$.createElement(er.Provider,{value:e},r)}function ox(e,n=[],r=null,a=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let l=e,u=r==null?void 0:r.errors;if(u!=null){let d=l.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);Qe(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),l=l.slice(0,Math.min(l.length,d+1))}let c=!1,h=-1;if(r)for(let d=0;d<l.length;d++){let g=l[d];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=d),g.route.id){let{loaderData:y,errors:m}=r,_=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!m||m[g.route.id]===void 0);if(g.route.lazy||_){c=!0,h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}return l.reduceRight((d,g,y)=>{let m,_=!1,x=null,k=null;r&&(m=u&&g.route.id?u[g.route.id]:void 0,x=g.route.errorElement||nx,c&&(h<0&&y===0?(v0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,k=null):h===y&&(_=!0,k=g.route.hydrateFallbackElement||null)));let C=n.concat(l.slice(0,y+1)),b=()=>{let w;return m?w=x:_?w=k:g.route.Component?w=$.createElement(g.route.Component,null):g.route.element?w=g.route.element:w=d,$.createElement(ix,{match:g,routeContext:{outlet:d,matches:C,isDataRoute:r!=null},children:w})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?$.createElement(rx,{location:r.location,revalidation:r.revalidation,component:x,error:m,children:b(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):b()},null)}function $f(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ax(e){let n=$.useContext(co);return Qe(n,$f(e)),n}function lx(e){let n=$.useContext(Ms);return Qe(n,$f(e)),n}function sx(e){let n=$.useContext(er);return Qe(n,$f(e)),n}function Uf(e){let n=sx(e),r=n.matches[n.matches.length-1];return Qe(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function ux(){return Uf("useRouteId")}function cx(){var a;let e=$.useContext(Ff),n=lx("useRouteError"),r=Uf("useRouteError");return e!==void 0?e:(a=n.errors)==null?void 0:a[r]}function fx(){let{router:e}=ax("useNavigate"),n=Uf("useNavigate"),r=$.useRef(!1);return m0(()=>{r.current=!0}),$.useCallback(async(l,u={})=>{Pn(r.current,g0),r.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:n,...u}))},[e,n])}var yg={};function v0(e,n,r){!n&&!yg[e]&&(yg[e]=!0,Pn(!1,r))}$.memo(hx);function hx({routes:e,future:n,state:r}){return y0(e,void 0,r,n)}function _0(e){Qe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function dx({basename:e="/",children:n=null,location:r,navigationType:a="POP",navigator:l,static:u=!1}){Qe(!Na(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),h=$.useMemo(()=>({basename:c,navigator:l,static:u,future:{}}),[c,l,u]);typeof r=="string"&&(r=uo(r));let{pathname:d="/",search:g="",hash:y="",state:m=null,key:_="default"}=r,x=$.useMemo(()=>{let k=Zn(d,c);return k==null?null:{location:{pathname:k,search:g,hash:y,state:m,key:_},navigationType:a}},[c,d,g,y,m,_,a]);return Pn(x!=null,`<Router basename="${c}"> is not able to match the URL "${d}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:$.createElement(Tn.Provider,{value:h},$.createElement(Ma.Provider,{children:n,value:x}))}function px({children:e,location:n}){return ex(df(e),n)}function df(e,n=[]){let r=[];return $.Children.forEach(e,(a,l)=>{if(!$.isValidElement(a))return;let u=[...n,l];if(a.type===$.Fragment){r.push.apply(r,df(a.props.children,u));return}Qe(a.type===_0,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Qe(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||u.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=df(a.props.children,u)),r.push(c)}),r}var ls="get",ss="application/x-www-form-urlencoded";function Ns(e){return e!=null&&typeof e.tagName=="string"}function gx(e){return Ns(e)&&e.tagName.toLowerCase()==="button"}function mx(e){return Ns(e)&&e.tagName.toLowerCase()==="form"}function yx(e){return Ns(e)&&e.tagName.toLowerCase()==="input"}function vx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _x(e,n){return e.button===0&&(!n||n==="_self")&&!vx(e)}var Yl=null;function xx(){if(Yl===null)try{new FormData(document.createElement("form"),0),Yl=!1}catch{Yl=!0}return Yl}var wx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dc(e){return e!=null&&!wx.has(e)?(Pn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ss}"`),null):e}function kx(e,n){let r,a,l,u,c;if(mx(e)){let h=e.getAttribute("action");a=h?Zn(h,n):null,r=e.getAttribute("method")||ls,l=Dc(e.getAttribute("enctype"))||ss,u=new FormData(e)}else if(gx(e)||yx(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||h.getAttribute("action");if(a=d?Zn(d,n):null,r=e.getAttribute("formmethod")||h.getAttribute("method")||ls,l=Dc(e.getAttribute("formenctype"))||Dc(h.getAttribute("enctype"))||ss,u=new FormData(h,e),!xx()){let{name:g,type:y,value:m}=e;if(y==="image"){let _=g?`${g}.`:"";u.append(`${_}x`,"0"),u.append(`${_}y`,"0")}else g&&u.append(g,m)}}else{if(Ns(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ls,a=null,l=ss,c=e}return u&&l==="text/plain"&&(c=u,u=void 0),{action:a,method:r.toLowerCase(),encType:l,formData:u,body:c}}function Hf(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}async function Sx(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Cx(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function bx(e,n,r){let a=await Promise.all(e.map(async l=>{let u=n.routes[l.route.id];if(u){let c=await Sx(u,r);return c.links?c.links():[]}return[]}));return Tx(a.flat(1).filter(Cx).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function vg(e,n,r,a,l,u){let c=(d,g)=>r[g]?d.route.id!==r[g].route.id:!0,h=(d,g)=>{var y;return r[g].pathname!==d.pathname||((y=r[g].route.path)==null?void 0:y.endsWith("*"))&&r[g].params["*"]!==d.params["*"]};return u==="assets"?n.filter((d,g)=>c(d,g)||h(d,g)):u==="data"?n.filter((d,g)=>{var m;let y=a.routes[d.route.id];if(!y||!y.hasLoader)return!1;if(c(d,g)||h(d,g))return!0;if(d.route.shouldRevalidate){let _=d.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((m=r[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof _=="boolean")return _}return!0}):[]}function Ex(e,n,{includeHydrateFallback:r}={}){return Px(e.map(a=>{let l=n.routes[a.route.id];if(!l)return[];let u=[l.module];return l.clientActionModule&&(u=u.concat(l.clientActionModule)),l.clientLoaderModule&&(u=u.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(u=u.concat(l.hydrateFallbackModule)),l.imports&&(u=u.concat(l.imports)),u}).flat(1))}function Px(e){return[...new Set(e)]}function Rx(e){let n={},r=Object.keys(e).sort();for(let a of r)n[a]=e[a];return n}function Tx(e,n){let r=new Set;return new Set(n),e.reduce((a,l)=>{let u=JSON.stringify(Rx(l));return r.has(u)||(r.add(u),a.push({key:u,link:l})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Mx=new Set([100,101,204,205]);function Nx(e,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname="_root.data":n&&Zn(r.pathname,n)==="/"?r.pathname=`${n.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function x0(){let e=$.useContext(co);return Hf(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ox(){let e=$.useContext(Ms);return Hf(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Bf=$.createContext(void 0);Bf.displayName="FrameworkContext";function w0(){let e=$.useContext(Bf);return Hf(e,"You must render this element inside a <HydratedRouter> element"),e}function Ax(e,n){let r=$.useContext(Bf),[a,l]=$.useState(!1),[u,c]=$.useState(!1),{onFocus:h,onBlur:d,onMouseEnter:g,onMouseLeave:y,onTouchStart:m}=n,_=$.useRef(null);$.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let C=w=>{w.forEach(E=>{c(E.isIntersecting)})},b=new IntersectionObserver(C,{threshold:.5});return _.current&&b.observe(_.current),()=>{b.disconnect()}}},[e]),$.useEffect(()=>{if(a){let C=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(C)}}},[a]);let x=()=>{l(!0)},k=()=>{l(!1),c(!1)};return r?e!=="intent"?[u,_,{}]:[u,_,{onFocus:ea(h,x),onBlur:ea(d,k),onMouseEnter:ea(g,x),onMouseLeave:ea(y,k),onTouchStart:ea(m,x)}]:[!1,_,{}]}function ea(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function zx({page:e,...n}){let{router:r}=x0(),a=$.useMemo(()=>s0(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?$.createElement(Dx,{page:e,matches:a,...n}):null}function jx(e){let{manifest:n,routeModules:r}=w0(),[a,l]=$.useState([]);return $.useEffect(()=>{let u=!1;return bx(e,n,r).then(c=>{u||l(c)}),()=>{u=!0}},[e,n,r]),a}function Dx({page:e,matches:n,...r}){let a=hi(),{manifest:l,routeModules:u}=w0(),{basename:c}=x0(),{loaderData:h,matches:d}=Ox(),g=$.useMemo(()=>vg(e,n,d,l,a,"data"),[e,n,d,l,a]),y=$.useMemo(()=>vg(e,n,d,l,a,"assets"),[e,n,d,l,a]),m=$.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let k=new Set,C=!1;if(n.forEach(w=>{var M;let E=l.routes[w.route.id];!E||!E.hasLoader||(!g.some(P=>P.route.id===w.route.id)&&w.route.id in h&&((M=u[w.route.id])!=null&&M.shouldRevalidate)||E.hasClientLoader?C=!0:k.add(w.route.id))}),k.size===0)return[];let b=Nx(e,c);return C&&k.size>0&&b.searchParams.set("_routes",n.filter(w=>k.has(w.route.id)).map(w=>w.route.id).join(",")),[b.pathname+b.search]},[c,h,a,l,g,n,e,u]),_=$.useMemo(()=>Ex(y,l),[y,l]),x=jx(y);return $.createElement($.Fragment,null,m.map(k=>$.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...r})),_.map(k=>$.createElement("link",{key:k,rel:"modulepreload",href:k,...r})),x.map(({key:k,link:C})=>$.createElement("link",{key:k,...C})))}function Ix(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var k0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{k0&&(window.__reactRouterVersion="7.6.1")}catch{}function Lx({basename:e,children:n,window:r}){let a=$.useRef();a.current==null&&(a.current=C_({window:r,v5Compat:!0}));let l=a.current,[u,c]=$.useState({action:l.action,location:l.location}),h=$.useCallback(d=>{$.startTransition(()=>c(d))},[c]);return $.useLayoutEffect(()=>l.listen(h),[l,h]),$.createElement(dx,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:l})}var S0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C0=$.forwardRef(function({onClick:n,discover:r="render",prefetch:a="none",relative:l,reloadDocument:u,replace:c,state:h,target:d,to:g,preventScrollReset:y,viewTransition:m,..._},x){let{basename:k}=$.useContext(Tn),C=typeof g=="string"&&S0.test(g),b,w=!1;if(typeof g=="string"&&C&&(b=g,k0))try{let q=new URL(window.location.href),K=g.startsWith("//")?new URL(q.protocol+g):new URL(g),J=Zn(K.pathname,k);K.origin===q.origin&&J!=null?g=J+K.search+K.hash:w=!0}catch{Pn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let E=Y_(g,{relative:l}),[M,P,T]=Ax(a,_),z=Hx(g,{replace:c,state:h,target:d,preventScrollReset:y,relative:l,viewTransition:m});function D(q){n&&n(q),q.defaultPrevented||z(q)}let I=$.createElement("a",{..._,...T,href:b||E,onClick:w||u?n:D,ref:Ix(x,P),target:d,"data-discover":!C&&r==="render"?"true":void 0});return M&&!C?$.createElement($.Fragment,null,I,$.createElement(zx,{page:E})):I});C0.displayName="Link";var Fx=$.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:a="",end:l=!1,style:u,to:c,viewTransition:h,children:d,...g},y){let m=Oa(c,{relative:g.relative}),_=hi(),x=$.useContext(Ms),{navigator:k,basename:C}=$.useContext(Tn),b=x!=null&&Qx(m)&&h===!0,w=k.encodeLocation?k.encodeLocation(m).pathname:m.pathname,E=_.pathname,M=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(E=E.toLowerCase(),M=M?M.toLowerCase():null,w=w.toLowerCase()),M&&C&&(M=Zn(M,C)||M);const P=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let T=E===w||!l&&E.startsWith(w)&&E.charAt(P)==="/",z=M!=null&&(M===w||!l&&M.startsWith(w)&&M.charAt(w.length)==="/"),D={isActive:T,isPending:z,isTransitioning:b},I=T?n:void 0,q;typeof a=="function"?q=a(D):q=[a,T?"active":null,z?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let K=typeof u=="function"?u(D):u;return $.createElement(C0,{...g,"aria-current":I,className:q,ref:y,style:K,to:c,viewTransition:h},typeof d=="function"?d(D):d)});Fx.displayName="NavLink";var $x=$.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:a,replace:l,state:u,method:c=ls,action:h,onSubmit:d,relative:g,preventScrollReset:y,viewTransition:m,..._},x)=>{let k=Wx(),C=qx(h,{relative:g}),b=c.toLowerCase()==="get"?"get":"post",w=typeof h=="string"&&S0.test(h),E=M=>{if(d&&d(M),M.defaultPrevented)return;M.preventDefault();let P=M.nativeEvent.submitter,T=(P==null?void 0:P.getAttribute("formmethod"))||c;k(P||M.currentTarget,{fetcherKey:n,method:T,navigate:r,replace:l,state:u,relative:g,preventScrollReset:y,viewTransition:m})};return $.createElement("form",{ref:x,method:b,action:C,onSubmit:a?d:E,..._,"data-discover":!w&&e==="render"?"true":void 0})});$x.displayName="Form";function Ux(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function b0(e){let n=$.useContext(co);return Qe(n,Ux(e)),n}function Hx(e,{target:n,replace:r,state:a,preventScrollReset:l,relative:u,viewTransition:c}={}){let h=Z_(),d=hi(),g=Oa(e,{relative:u});return $.useCallback(y=>{if(_x(y,n)){y.preventDefault();let m=r!==void 0?r:va(d)===va(g);h(e,{replace:m,state:a,preventScrollReset:l,relative:u,viewTransition:c})}},[d,h,g,r,a,n,e,l,u,c])}var Bx=0,Vx=()=>`__${String(++Bx)}__`;function Wx(){let{router:e}=b0("useSubmit"),{basename:n}=$.useContext(Tn),r=ux();return $.useCallback(async(a,l={})=>{let{action:u,method:c,encType:h,formData:d,body:g}=kx(a,n);if(l.navigate===!1){let y=l.fetcherKey||Vx();await e.fetch(y,r,l.action||u,{preventScrollReset:l.preventScrollReset,formData:d,body:g,formMethod:l.method||c,formEncType:l.encType||h,flushSync:l.flushSync})}else await e.navigate(l.action||u,{preventScrollReset:l.preventScrollReset,formData:d,body:g,formMethod:l.method||c,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,n,r])}function qx(e,{relative:n}={}){let{basename:r}=$.useContext(Tn),a=$.useContext(er);Qe(a,"useFormAction must be used inside a RouteContext");let[l]=a.matches.slice(-1),u={...Oa(e||".",{relative:n})},c=hi();if(e==null){u.search=c.search;let h=new URLSearchParams(u.search),d=h.getAll("index");if(d.some(y=>y==="")){h.delete("index"),d.filter(m=>m).forEach(m=>h.append("index",m));let y=h.toString();u.search=y?`?${y}`:""}}return(!e||e===".")&&l.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:Gn([r,u.pathname])),va(u)}function Qx(e,n={}){let r=$.useContext(p0);Qe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=b0("useViewTransitionState"),l=Oa(e,{relative:n.relative});if(!r.isTransitioning)return!1;let u=Zn(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=Zn(r.nextLocation.pathname,a)||r.nextLocation.pathname;return ms(l.pathname,c)!=null||ms(l.pathname,u)!=null}[...Mx];/**
|
|
43
|
-
* @license lucide-react v0.408.0 - ISC
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the ISC license.
|
|
46
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/const Kx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E0=(...e)=>e.filter((n,r,a)=>!!n&&a.indexOf(n)===r).join(" ");/**
|
|
48
|
-
* @license lucide-react v0.408.0 - ISC
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the ISC license.
|
|
51
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/var Gx={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"};/**
|
|
53
|
-
* @license lucide-react v0.408.0 - ISC
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the ISC license.
|
|
56
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/const Xx=$.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:l="",children:u,iconNode:c,...h},d)=>$.createElement("svg",{ref:d,...Gx,width:n,height:n,stroke:e,strokeWidth:a?Number(r)*24/Number(n):r,className:E0("lucide",l),...h},[...c.map(([g,y])=>$.createElement(g,y)),...Array.isArray(u)?u:[u]]));/**
|
|
58
|
-
* @license lucide-react v0.408.0 - ISC
|
|
59
|
-
*
|
|
60
|
-
* This source code is licensed under the ISC license.
|
|
61
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/const di=(e,n)=>{const r=$.forwardRef(({className:a,...l},u)=>$.createElement(Xx,{ref:u,iconNode:n,className:E0(`lucide-${Kx(e)}`,a),...l}));return r.displayName=`${e}`,r};/**
|
|
63
|
-
* @license lucide-react v0.408.0 - ISC
|
|
64
|
-
*
|
|
65
|
-
* This source code is licensed under the ISC license.
|
|
66
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const Yx=di("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/**
|
|
68
|
-
* @license lucide-react v0.408.0 - ISC
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the ISC license.
|
|
71
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/const Zx=di("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
73
|
-
* @license lucide-react v0.408.0 - ISC
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the ISC license.
|
|
76
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const _g=di("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
78
|
-
* @license lucide-react v0.408.0 - ISC
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the ISC license.
|
|
81
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/const Ic=di("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
|
|
83
|
-
* @license lucide-react v0.408.0 - ISC
|
|
84
|
-
*
|
|
85
|
-
* This source code is licensed under the ISC license.
|
|
86
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/const Lc=di("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
|
|
88
|
-
* @license lucide-react v0.408.0 - ISC
|
|
89
|
-
*
|
|
90
|
-
* This source code is licensed under the ISC license.
|
|
91
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/const Jx=di("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
93
|
-
* @license lucide-react v0.408.0 - ISC
|
|
94
|
-
*
|
|
95
|
-
* This source code is licensed under the ISC license.
|
|
96
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const xg=di("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);function ew({children:e,variant:n="default",className:r=""}){const a="inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",l={default:"bg-primary text-primary-foreground",outline:"border border-input bg-background text-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-destructive-foreground"};return W.jsx("span",{className:`${a} ${l[n]} ${r}`,children:e})}function Tt({children:e,variant:n="default",size:r="default",className:a="",onClick:l,disabled:u=!1,title:c,type:h="button"}){const d="inline-flex items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none",g={default:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"},y={default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"};return W.jsx("button",{type:h,className:`${d} ${g[n]} ${y[r]} ${a}`,onClick:l,disabled:u,title:c,children:e})}function tw({children:e,className:n=""}){return W.jsx("div",{className:`rounded-lg border bg-card text-card-foreground shadow-sm ${n}`,children:e})}function nw({children:e,className:n=""}){return W.jsx("div",{className:`flex flex-col space-y-1.5 p-6 ${n}`,children:e})}function rw({children:e,className:n=""}){return W.jsx("div",{className:`flex items-center p-6 pt-0 ${n}`,children:e})}function iw({type:e="text",placeholder:n,value:r,onChange:a,className:l="",disabled:u=!1,ref:c,multiple:h,accept:d,...g}){return W.jsx("input",{type:e,placeholder:n,value:r,onChange:a,disabled:u,multiple:h,accept:d,ref:c,className:`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${l}`,...g})}function ow(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,l,u,c,h=[],d=!0,g=!1;try{if(u=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;d=!1}else for(;!(d=(a=u.call(r)).done)&&(h.push(a.value),h.length!==n);d=!0);}catch(y){g=!0,l=y}finally{try{if(!d&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(g)throw l}}return h}}function aw(e,n,r){return n=pw(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function wg(e,n){return uw(e)||ow(e,n)||P0(e,n)||hw()}function lw(e){return sw(e)||cw(e)||P0(e)||fw()}function sw(e){if(Array.isArray(e))return pf(e)}function uw(e){if(Array.isArray(e))return e}function cw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function P0(e,n){if(e){if(typeof e=="string")return pf(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pf(e,n)}}function pf(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=new Array(n);r<n;r++)a[r]=e[r];return a}function fw(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
98
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
99
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dw(e,n){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,n);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function pw(e){var n=dw(e,"string");return typeof n=="symbol"?n:String(n)}var gw=function(n,r){var a=new Set(r);return Object.assign.apply(Object,[{}].concat(lw(Object.entries(n).filter(function(l){var u=wg(l,1),c=u[0];return!a.has(c)}).map(function(l){var u=wg(l,2),c=u[0],h=u[1];return aw({},c,h)}))))};function gf(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=Array(n);r<n;r++)a[r]=e[r];return a}function mw(e){if(Array.isArray(e))return e}function yw(e){if(Array.isArray(e))return gf(e)}function vw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _w(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,l,u,c,h=[],d=!0,g=!1;try{if(u=(r=r.call(e)).next,n!==0)for(;!(d=(a=u.call(r)).done)&&(h.push(a.value),h.length!==n);d=!0);}catch(y){g=!0,l=y}finally{try{if(!d&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(g)throw l}}return h}}function xw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
100
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ww(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
101
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kw(e,n){return mw(e)||_w(e,n)||R0(e,n)||xw()}function kg(e){return yw(e)||vw(e)||R0(e)||ww()}function R0(e,n){if(e){if(typeof e=="string")return gf(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gf(e,n):void 0}}function Sw(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.wrapperElementType,a=r===void 0?"div":r,l=n.nodeMapper,u=l===void 0?function(y){return y}:l,c=n.methodNames,h=c===void 0?[]:c,d=n.initPropNames,g=d===void 0?[]:d;return $.forwardRef(function(y,m){var _=$.useRef(),x=$.useMemo(function(){var b=Object.fromEntries(g.filter(function(w){return y.hasOwnProperty(w)}).map(function(w){return[w,y[w]]}));return e(b)},[]);Sg(function(){x(u(_.current))},$.useLayoutEffect),Sg(function(){return x._destructor instanceof Function?x._destructor:void 0});var k=$.useCallback(function(b){for(var w=arguments.length,E=new Array(w>1?w-1:0),M=1;M<w;M++)E[M-1]=arguments[M];return x[b]instanceof Function?x[b].apply(x,E):void 0},[x]),C=$.useRef({});return Object.keys(gw(y,[].concat(kg(h),kg(g)))).filter(function(b){return C.current[b]!==y[b]}).forEach(function(b){return k(b,y[b])}),C.current=y,$.useImperativeHandle(m,function(){return Object.fromEntries(h.map(function(b){return[b,function(){for(var w=arguments.length,E=new Array(w),M=0;M<w;M++)E[M]=arguments[M];return k.apply(void 0,[b].concat(E))}]}))},[k]),r_.createElement(a,{ref:_})})}function Sg(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$.useEffect,r=$.useRef(),a=$.useRef(!1),l=$.useRef(!1),u=$.useState(0),c=kw(u,2);c[0];var h=c[1];a.current&&(l.current=!0),n(function(){return a.current||(r.current=e(),a.current=!0),h(function(d){return d+1}),function(){l.current&&r.current&&r.current()}},[])}var mf="http://www.w3.org/1999/xhtml";const Cg={svg:"http://www.w3.org/2000/svg",xhtml:mf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Os(e){var n=e+="",r=n.indexOf(":");return r>=0&&(n=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Cg.hasOwnProperty(n)?{space:Cg[n],local:e}:e}function Cw(e){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===mf&&n.documentElement.namespaceURI===mf?n.createElement(e):n.createElementNS(r,e)}}function bw(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function T0(e){var n=Os(e);return(n.local?bw:Cw)(n)}function Ew(){}function Vf(e){return e==null?Ew:function(){return this.querySelector(e)}}function Pw(e){typeof e!="function"&&(e=Vf(e));for(var n=this._groups,r=n.length,a=new Array(r),l=0;l<r;++l)for(var u=n[l],c=u.length,h=a[l]=new Array(c),d,g,y=0;y<c;++y)(d=u[y])&&(g=e.call(d,d.__data__,y,u))&&("__data__"in d&&(g.__data__=d.__data__),h[y]=g);return new Ft(a,this._parents)}function Rw(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Tw(){return[]}function M0(e){return e==null?Tw:function(){return this.querySelectorAll(e)}}function Mw(e){return function(){return Rw(e.apply(this,arguments))}}function Nw(e){typeof e=="function"?e=Mw(e):e=M0(e);for(var n=this._groups,r=n.length,a=[],l=[],u=0;u<r;++u)for(var c=n[u],h=c.length,d,g=0;g<h;++g)(d=c[g])&&(a.push(e.call(d,d.__data__,g,c)),l.push(d));return new Ft(a,l)}function N0(e){return function(){return this.matches(e)}}function O0(e){return function(n){return n.matches(e)}}var Ow=Array.prototype.find;function Aw(e){return function(){return Ow.call(this.children,e)}}function zw(){return this.firstElementChild}function jw(e){return this.select(e==null?zw:Aw(typeof e=="function"?e:O0(e)))}var Dw=Array.prototype.filter;function Iw(){return Array.from(this.children)}function Lw(e){return function(){return Dw.call(this.children,e)}}function Fw(e){return this.selectAll(e==null?Iw:Lw(typeof e=="function"?e:O0(e)))}function $w(e){typeof e!="function"&&(e=N0(e));for(var n=this._groups,r=n.length,a=new Array(r),l=0;l<r;++l)for(var u=n[l],c=u.length,h=a[l]=[],d,g=0;g<c;++g)(d=u[g])&&e.call(d,d.__data__,g,u)&&h.push(d);return new Ft(a,this._parents)}function A0(e){return new Array(e.length)}function Uw(){return new Ft(this._enter||this._groups.map(A0),this._parents)}function ys(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}ys.prototype={constructor:ys,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Hw(e){return function(){return e}}function Bw(e,n,r,a,l,u){for(var c=0,h,d=n.length,g=u.length;c<g;++c)(h=n[c])?(h.__data__=u[c],a[c]=h):r[c]=new ys(e,u[c]);for(;c<d;++c)(h=n[c])&&(l[c]=h)}function Vw(e,n,r,a,l,u,c){var h,d,g=new Map,y=n.length,m=u.length,_=new Array(y),x;for(h=0;h<y;++h)(d=n[h])&&(_[h]=x=c.call(d,d.__data__,h,n)+"",g.has(x)?l[h]=d:g.set(x,d));for(h=0;h<m;++h)x=c.call(e,u[h],h,u)+"",(d=g.get(x))?(a[h]=d,d.__data__=u[h],g.delete(x)):r[h]=new ys(e,u[h]);for(h=0;h<y;++h)(d=n[h])&&g.get(_[h])===d&&(l[h]=d)}function Ww(e){return e.__data__}function qw(e,n){if(!arguments.length)return Array.from(this,Ww);var r=n?Vw:Bw,a=this._parents,l=this._groups;typeof e!="function"&&(e=Hw(e));for(var u=l.length,c=new Array(u),h=new Array(u),d=new Array(u),g=0;g<u;++g){var y=a[g],m=l[g],_=m.length,x=Qw(e.call(y,y&&y.__data__,g,a)),k=x.length,C=h[g]=new Array(k),b=c[g]=new Array(k),w=d[g]=new Array(_);r(y,m,C,b,w,x,n);for(var E=0,M=0,P,T;E<k;++E)if(P=C[E]){for(E>=M&&(M=E+1);!(T=b[M])&&++M<k;);P._next=T||null}}return c=new Ft(c,a),c._enter=h,c._exit=d,c}function Qw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Kw(){return new Ft(this._exit||this._groups.map(A0),this._parents)}function Gw(e,n,r){var a=this.enter(),l=this,u=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),n!=null&&(l=n(l),l&&(l=l.selection())),r==null?u.remove():r(u),a&&l?a.merge(l).order():l}function Xw(e){for(var n=e.selection?e.selection():e,r=this._groups,a=n._groups,l=r.length,u=a.length,c=Math.min(l,u),h=new Array(l),d=0;d<c;++d)for(var g=r[d],y=a[d],m=g.length,_=h[d]=new Array(m),x,k=0;k<m;++k)(x=g[k]||y[k])&&(_[k]=x);for(;d<l;++d)h[d]=r[d];return new Ft(h,this._parents)}function Yw(){for(var e=this._groups,n=-1,r=e.length;++n<r;)for(var a=e[n],l=a.length-1,u=a[l],c;--l>=0;)(c=a[l])&&(u&&c.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(c,u),u=c);return this}function Zw(e){e||(e=Jw);function n(m,_){return m&&_?e(m.__data__,_.__data__):!m-!_}for(var r=this._groups,a=r.length,l=new Array(a),u=0;u<a;++u){for(var c=r[u],h=c.length,d=l[u]=new Array(h),g,y=0;y<h;++y)(g=c[y])&&(d[y]=g);d.sort(n)}return new Ft(l,this._parents).order()}function Jw(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function e2(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function t2(){return Array.from(this)}function n2(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var a=e[n],l=0,u=a.length;l<u;++l){var c=a[l];if(c)return c}return null}function r2(){let e=0;for(const n of this)++e;return e}function i2(){return!this.node()}function o2(e){for(var n=this._groups,r=0,a=n.length;r<a;++r)for(var l=n[r],u=0,c=l.length,h;u<c;++u)(h=l[u])&&e.call(h,h.__data__,u,l);return this}function a2(e){return function(){this.removeAttribute(e)}}function l2(e){return function(){this.removeAttributeNS(e.space,e.local)}}function s2(e,n){return function(){this.setAttribute(e,n)}}function u2(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function c2(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function f2(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function h2(e,n){var r=Os(e);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((n==null?r.local?l2:a2:typeof n=="function"?r.local?f2:c2:r.local?u2:s2)(r,n))}function z0(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function d2(e){return function(){this.style.removeProperty(e)}}function p2(e,n,r){return function(){this.style.setProperty(e,n,r)}}function g2(e,n,r){return function(){var a=n.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,r)}}function m2(e,n,r){return arguments.length>1?this.each((n==null?d2:typeof n=="function"?g2:p2)(e,n,r??"")):oo(this.node(),e)}function oo(e,n){return e.style.getPropertyValue(n)||z0(e).getComputedStyle(e,null).getPropertyValue(n)}function y2(e){return function(){delete this[e]}}function v2(e,n){return function(){this[e]=n}}function _2(e,n){return function(){var r=n.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function x2(e,n){return arguments.length>1?this.each((n==null?y2:typeof n=="function"?_2:v2)(e,n)):this.node()[e]}function j0(e){return e.trim().split(/^|\s+/)}function Wf(e){return e.classList||new D0(e)}function D0(e){this._node=e,this._names=j0(e.getAttribute("class")||"")}D0.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function I0(e,n){for(var r=Wf(e),a=-1,l=n.length;++a<l;)r.add(n[a])}function L0(e,n){for(var r=Wf(e),a=-1,l=n.length;++a<l;)r.remove(n[a])}function w2(e){return function(){I0(this,e)}}function k2(e){return function(){L0(this,e)}}function S2(e,n){return function(){(n.apply(this,arguments)?I0:L0)(this,e)}}function C2(e,n){var r=j0(e+"");if(arguments.length<2){for(var a=Wf(this.node()),l=-1,u=r.length;++l<u;)if(!a.contains(r[l]))return!1;return!0}return this.each((typeof n=="function"?S2:n?w2:k2)(r,n))}function b2(){this.textContent=""}function E2(e){return function(){this.textContent=e}}function P2(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function R2(e){return arguments.length?this.each(e==null?b2:(typeof e=="function"?P2:E2)(e)):this.node().textContent}function T2(){this.innerHTML=""}function M2(e){return function(){this.innerHTML=e}}function N2(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function O2(e){return arguments.length?this.each(e==null?T2:(typeof e=="function"?N2:M2)(e)):this.node().innerHTML}function A2(){this.nextSibling&&this.parentNode.appendChild(this)}function z2(){return this.each(A2)}function j2(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function D2(){return this.each(j2)}function I2(e){var n=typeof e=="function"?e:T0(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function L2(){return null}function F2(e,n){var r=typeof e=="function"?e:T0(e),a=n==null?L2:typeof n=="function"?n:Vf(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})}function $2(){var e=this.parentNode;e&&e.removeChild(this)}function U2(){return this.each($2)}function H2(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function B2(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function V2(e){return this.select(e?B2:H2)}function W2(e){return arguments.length?this.property("__data__",e):this.node().__data__}function q2(e){return function(n){e.call(this,n,this.__data__)}}function Q2(e){return e.trim().split(/^|\s+/).map(function(n){var r="",a=n.indexOf(".");return a>=0&&(r=n.slice(a+1),n=n.slice(0,a)),{type:n,name:r}})}function K2(e){return function(){var n=this.__on;if(n){for(var r=0,a=-1,l=n.length,u;r<l;++r)u=n[r],(!e.type||u.type===e.type)&&u.name===e.name?this.removeEventListener(u.type,u.listener,u.options):n[++a]=u;++a?n.length=a:delete this.__on}}}function G2(e,n,r){return function(){var a=this.__on,l,u=q2(n);if(a){for(var c=0,h=a.length;c<h;++c)if((l=a[c]).type===e.type&&l.name===e.name){this.removeEventListener(l.type,l.listener,l.options),this.addEventListener(l.type,l.listener=u,l.options=r),l.value=n;return}}this.addEventListener(e.type,u,r),l={type:e.type,name:e.name,value:n,listener:u,options:r},a?a.push(l):this.__on=[l]}}function X2(e,n,r){var a=Q2(e+""),l,u=a.length,c;if(arguments.length<2){var h=this.node().__on;if(h){for(var d=0,g=h.length,y;d<g;++d)for(l=0,y=h[d];l<u;++l)if((c=a[l]).type===y.type&&c.name===y.name)return y.value}return}for(h=n?G2:K2,l=0;l<u;++l)this.each(h(a[l],n,r));return this}function F0(e,n,r){var a=z0(e),l=a.CustomEvent;typeof l=="function"?l=new l(n,r):(l=a.document.createEvent("Event"),r?(l.initEvent(n,r.bubbles,r.cancelable),l.detail=r.detail):l.initEvent(n,!1,!1)),e.dispatchEvent(l)}function Y2(e,n){return function(){return F0(this,e,n)}}function Z2(e,n){return function(){return F0(this,e,n.apply(this,arguments))}}function J2(e,n){return this.each((typeof n=="function"?Z2:Y2)(e,n))}function*ek(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var a=e[n],l=0,u=a.length,c;l<u;++l)(c=a[l])&&(yield c)}var $0=[null];function Ft(e,n){this._groups=e,this._parents=n}function Aa(){return new Ft([[document.documentElement]],$0)}function tk(){return this}Ft.prototype=Aa.prototype={constructor:Ft,select:Pw,selectAll:Nw,selectChild:jw,selectChildren:Fw,filter:$w,data:qw,enter:Uw,exit:Kw,join:Gw,merge:Xw,selection:tk,order:Yw,sort:Zw,call:e2,nodes:t2,node:n2,size:r2,empty:i2,each:o2,attr:h2,style:m2,property:x2,classed:C2,text:R2,html:O2,raise:z2,lower:D2,append:I2,insert:F2,remove:U2,clone:V2,datum:W2,on:X2,dispatch:J2,[Symbol.iterator]:ek};function Xt(e){return typeof e=="string"?new Ft([[document.querySelector(e)]],[document.documentElement]):new Ft([[e]],$0)}function nk(e){let n;for(;n=e.sourceEvent;)e=n;return e}function wn(e,n){if(e=nk(e),n===void 0&&(n=e.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var a=r.createSVGPoint();return a.x=e.clientX,a.y=e.clientY,a=a.matrixTransform(n.getScreenCTM().inverse()),[a.x,a.y]}if(n.getBoundingClientRect){var l=n.getBoundingClientRect();return[e.clientX-l.left-n.clientLeft,e.clientY-l.top-n.clientTop]}}return[e.pageX,e.pageY]}var rk={value:()=>{}};function za(){for(var e=0,n=arguments.length,r={},a;e<n;++e){if(!(a=arguments[e]+"")||a in r||/[\s.]/.test(a))throw new Error("illegal type: "+a);r[a]=[]}return new us(r)}function us(e){this._=e}function ik(e,n){return e.trim().split(/^|\s+/).map(function(r){var a="",l=r.indexOf(".");if(l>=0&&(a=r.slice(l+1),r=r.slice(0,l)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}us.prototype=za.prototype={constructor:us,on:function(e,n){var r=this._,a=ik(e+"",r),l,u=-1,c=a.length;if(arguments.length<2){for(;++u<c;)if((l=(e=a[u]).type)&&(l=ok(r[l],e.name)))return l;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++u<c;)if(l=(e=a[u]).type)r[l]=bg(r[l],e.name,n);else if(n==null)for(l in r)r[l]=bg(r[l],e.name,null);return this},copy:function(){var e={},n=this._;for(var r in n)e[r]=n[r].slice();return new us(e)},call:function(e,n){if((l=arguments.length-2)>0)for(var r=new Array(l),a=0,l,u;a<l;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(u=this._[e],a=0,l=u.length;a<l;++a)u[a].value.apply(n,r)},apply:function(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var a=this._[e],l=0,u=a.length;l<u;++l)a[l].value.apply(n,r)}};function ok(e,n){for(var r=0,a=e.length,l;r<a;++r)if((l=e[r]).name===n)return l.value}function bg(e,n,r){for(var a=0,l=e.length;a<l;++a)if(e[a].name===n){e[a]=rk,e=e.slice(0,a).concat(e.slice(a+1));break}return r!=null&&e.push({name:n,value:r}),e}const ak={passive:!1},_a={capture:!0,passive:!1};function Fc(e){e.stopImmediatePropagation()}function Vi(e){e.preventDefault(),e.stopImmediatePropagation()}function U0(e){var n=e.document.documentElement,r=Xt(e).on("dragstart.drag",Vi,_a);"onselectstart"in n?r.on("selectstart.drag",Vi,_a):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function H0(e,n){var r=e.document.documentElement,a=Xt(e).on("dragstart.drag",null);n&&(a.on("click.drag",Vi,_a),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Zl=e=>()=>e;function yf(e,{sourceEvent:n,subject:r,target:a,identifier:l,active:u,x:c,y:h,dx:d,dy:g,dispatch:y}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:l,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:c,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:y}})}yf.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function lk(e){return!e.ctrlKey&&!e.button}function sk(){return this.parentNode}function uk(e,n){return n??{x:e.x,y:e.y}}function ck(){return navigator.maxTouchPoints||"ontouchstart"in this}function fk(){var e=lk,n=sk,r=uk,a=ck,l={},u=za("start","drag","end"),c=0,h,d,g,y,m=0;function _(P){P.on("mousedown.drag",x).filter(a).on("touchstart.drag",b).on("touchmove.drag",w,ak).on("touchend.drag touchcancel.drag",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(P,T){if(!(y||!e.call(this,P,T))){var z=M(this,n.call(this,P,T),P,T,"mouse");z&&(Xt(P.view).on("mousemove.drag",k,_a).on("mouseup.drag",C,_a),U0(P.view),Fc(P),g=!1,h=P.clientX,d=P.clientY,z("start",P))}}function k(P){if(Vi(P),!g){var T=P.clientX-h,z=P.clientY-d;g=T*T+z*z>m}l.mouse("drag",P)}function C(P){Xt(P.view).on("mousemove.drag mouseup.drag",null),H0(P.view,g),Vi(P),l.mouse("end",P)}function b(P,T){if(e.call(this,P,T)){var z=P.changedTouches,D=n.call(this,P,T),I=z.length,q,K;for(q=0;q<I;++q)(K=M(this,D,P,T,z[q].identifier,z[q]))&&(Fc(P),K("start",P,z[q]))}}function w(P){var T=P.changedTouches,z=T.length,D,I;for(D=0;D<z;++D)(I=l[T[D].identifier])&&(Vi(P),I("drag",P,T[D]))}function E(P){var T=P.changedTouches,z=T.length,D,I;for(y&&clearTimeout(y),y=setTimeout(function(){y=null},500),D=0;D<z;++D)(I=l[T[D].identifier])&&(Fc(P),I("end",P,T[D]))}function M(P,T,z,D,I,q){var K=u.copy(),J=wn(q||z,T),ae,he,F;if((F=r.call(P,new yf("beforestart",{sourceEvent:z,target:_,identifier:I,active:c,x:J[0],y:J[1],dx:0,dy:0,dispatch:K}),D))!=null)return ae=F.x-J[0]||0,he=F.y-J[1]||0,function ne(G,oe,Q){var ee=J,X;switch(G){case"start":l[I]=ne,X=c++;break;case"end":delete l[I],--c;case"drag":J=wn(Q||oe,T),X=c;break}K.call(G,P,new yf(G,{sourceEvent:oe,subject:F,target:_,identifier:I,active:X,x:J[0]+ae,y:J[1]+he,dx:J[0]-ee[0],dy:J[1]-ee[1],dispatch:K}),D)}}return _.filter=function(P){return arguments.length?(e=typeof P=="function"?P:Zl(!!P),_):e},_.container=function(P){return arguments.length?(n=typeof P=="function"?P:Zl(P),_):n},_.subject=function(P){return arguments.length?(r=typeof P=="function"?P:Zl(P),_):r},_.touchable=function(P){return arguments.length?(a=typeof P=="function"?P:Zl(!!P),_):a},_.on=function(){var P=u.on.apply(u,arguments);return P===u?_:P},_.clickDistance=function(P){return arguments.length?(m=(P=+P)*P,_):Math.sqrt(m)},_}function qf(e,n,r){e.prototype=n.prototype=r,r.constructor=e}function B0(e,n){var r=Object.create(e.prototype);for(var a in n)r[a]=n[a];return r}function ja(){}var xa=.7,vs=1/xa,Wi="\\s*([+-]?\\d+)\\s*",wa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",En="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hk=/^#([0-9a-f]{3,8})$/,dk=new RegExp(`^rgb\\(${Wi},${Wi},${Wi}\\)$`),pk=new RegExp(`^rgb\\(${En},${En},${En}\\)$`),gk=new RegExp(`^rgba\\(${Wi},${Wi},${Wi},${wa}\\)$`),mk=new RegExp(`^rgba\\(${En},${En},${En},${wa}\\)$`),yk=new RegExp(`^hsl\\(${wa},${En},${En}\\)$`),vk=new RegExp(`^hsla\\(${wa},${En},${En},${wa}\\)$`),Eg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};qf(ja,ka,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pg,formatHex:Pg,formatHex8:_k,formatHsl:xk,formatRgb:Rg,toString:Rg});function Pg(){return this.rgb().formatHex()}function _k(){return this.rgb().formatHex8()}function xk(){return V0(this).formatHsl()}function Rg(){return this.rgb().formatRgb()}function ka(e){var n,r;return e=(e+"").trim().toLowerCase(),(n=hk.exec(e))?(r=n[1].length,n=parseInt(n[1],16),r===6?Tg(n):r===3?new Ot(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?Jl(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?Jl(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=dk.exec(e))?new Ot(n[1],n[2],n[3],1):(n=pk.exec(e))?new Ot(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=gk.exec(e))?Jl(n[1],n[2],n[3],n[4]):(n=mk.exec(e))?Jl(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=yk.exec(e))?Og(n[1],n[2]/100,n[3]/100,1):(n=vk.exec(e))?Og(n[1],n[2]/100,n[3]/100,n[4]):Eg.hasOwnProperty(e)?Tg(Eg[e]):e==="transparent"?new Ot(NaN,NaN,NaN,0):null}function Tg(e){return new Ot(e>>16&255,e>>8&255,e&255,1)}function Jl(e,n,r,a){return a<=0&&(e=n=r=NaN),new Ot(e,n,r,a)}function wk(e){return e instanceof ja||(e=ka(e)),e?(e=e.rgb(),new Ot(e.r,e.g,e.b,e.opacity)):new Ot}function vf(e,n,r,a){return arguments.length===1?wk(e):new Ot(e,n,r,a??1)}function Ot(e,n,r,a){this.r=+e,this.g=+n,this.b=+r,this.opacity=+a}qf(Ot,vf,B0(ja,{brighter(e){return e=e==null?vs:Math.pow(vs,e),new Ot(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new Ot(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ot(li(this.r),li(this.g),li(this.b),_s(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mg,formatHex:Mg,formatHex8:kk,formatRgb:Ng,toString:Ng}));function Mg(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}`}function kk(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}${Zr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ng(){const e=_s(this.opacity);return`${e===1?"rgb(":"rgba("}${li(this.r)}, ${li(this.g)}, ${li(this.b)}${e===1?")":`, ${e})`}`}function _s(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function li(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zr(e){return e=li(e),(e<16?"0":"")+e.toString(16)}function Og(e,n,r,a){return a<=0?e=n=r=NaN:r<=0||r>=1?e=n=NaN:n<=0&&(e=NaN),new hn(e,n,r,a)}function V0(e){if(e instanceof hn)return new hn(e.h,e.s,e.l,e.opacity);if(e instanceof ja||(e=ka(e)),!e)return new hn;if(e instanceof hn)return e;e=e.rgb();var n=e.r/255,r=e.g/255,a=e.b/255,l=Math.min(n,r,a),u=Math.max(n,r,a),c=NaN,h=u-l,d=(u+l)/2;return h?(n===u?c=(r-a)/h+(r<a)*6:r===u?c=(a-n)/h+2:c=(n-r)/h+4,h/=d<.5?u+l:2-u-l,c*=60):h=d>0&&d<1?0:c,new hn(c,h,d,e.opacity)}function Sk(e,n,r,a){return arguments.length===1?V0(e):new hn(e,n,r,a??1)}function hn(e,n,r,a){this.h=+e,this.s=+n,this.l=+r,this.opacity=+a}qf(hn,Sk,B0(ja,{brighter(e){return e=e==null?vs:Math.pow(vs,e),new hn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new hn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*n,l=2*r-a;return new Ot($c(e>=240?e-240:e+120,l,a),$c(e,l,a),$c(e<120?e+240:e-120,l,a),this.opacity)},clamp(){return new hn(Ag(this.h),es(this.s),es(this.l),_s(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=_s(this.opacity);return`${e===1?"hsl(":"hsla("}${Ag(this.h)}, ${es(this.s)*100}%, ${es(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ag(e){return e=(e||0)%360,e<0?e+360:e}function es(e){return Math.max(0,Math.min(1,e||0))}function $c(e,n,r){return(e<60?n+(r-n)*e/60:e<180?r:e<240?n+(r-n)*(240-e)/60:n)*255}const W0=e=>()=>e;function Ck(e,n){return function(r){return e+r*n}}function bk(e,n,r){return e=Math.pow(e,r),n=Math.pow(n,r)-e,r=1/r,function(a){return Math.pow(e+a*n,r)}}function Ek(e){return(e=+e)==1?q0:function(n,r){return r-n?bk(n,r,e):W0(isNaN(n)?r:n)}}function q0(e,n){var r=n-e;return r?Ck(e,r):W0(isNaN(e)?n:e)}const zg=function e(n){var r=Ek(n);function a(l,u){var c=r((l=vf(l)).r,(u=vf(u)).r),h=r(l.g,u.g),d=r(l.b,u.b),g=q0(l.opacity,u.opacity);return function(y){return l.r=c(y),l.g=h(y),l.b=d(y),l.opacity=g(y),l+""}}return a.gamma=e,a}(1);function br(e,n){return e=+e,n=+n,function(r){return e*(1-r)+n*r}}var _f=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Uc=new RegExp(_f.source,"g");function Pk(e){return function(){return e}}function Rk(e){return function(n){return e(n)+""}}function Tk(e,n){var r=_f.lastIndex=Uc.lastIndex=0,a,l,u,c=-1,h=[],d=[];for(e=e+"",n=n+"";(a=_f.exec(e))&&(l=Uc.exec(n));)(u=l.index)>r&&(u=n.slice(r,u),h[c]?h[c]+=u:h[++c]=u),(a=a[0])===(l=l[0])?h[c]?h[c]+=l:h[++c]=l:(h[++c]=null,d.push({i:c,x:br(a,l)})),r=Uc.lastIndex;return r<n.length&&(u=n.slice(r),h[c]?h[c]+=u:h[++c]=u),h.length<2?d[0]?Rk(d[0].x):Pk(n):(n=d.length,function(g){for(var y=0,m;y<n;++y)h[(m=d[y]).i]=m.x(g);return h.join("")})}var jg=180/Math.PI,xf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Q0(e,n,r,a,l,u){var c,h,d;return(c=Math.sqrt(e*e+n*n))&&(e/=c,n/=c),(d=e*r+n*a)&&(r-=e*d,a-=n*d),(h=Math.sqrt(r*r+a*a))&&(r/=h,a/=h,d/=h),e*a<n*r&&(e=-e,n=-n,d=-d,c=-c),{translateX:l,translateY:u,rotate:Math.atan2(n,e)*jg,skewX:Math.atan(d)*jg,scaleX:c,scaleY:h}}var ts;function Mk(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?xf:Q0(n.a,n.b,n.c,n.d,n.e,n.f)}function Nk(e){return e==null||(ts||(ts=document.createElementNS("http://www.w3.org/2000/svg","g")),ts.setAttribute("transform",e),!(e=ts.transform.baseVal.consolidate()))?xf:(e=e.matrix,Q0(e.a,e.b,e.c,e.d,e.e,e.f))}function K0(e,n,r,a){function l(g){return g.length?g.pop()+" ":""}function u(g,y,m,_,x,k){if(g!==m||y!==_){var C=x.push("translate(",null,n,null,r);k.push({i:C-4,x:br(g,m)},{i:C-2,x:br(y,_)})}else(m||_)&&x.push("translate("+m+n+_+r)}function c(g,y,m,_){g!==y?(g-y>180?y+=360:y-g>180&&(g+=360),_.push({i:m.push(l(m)+"rotate(",null,a)-2,x:br(g,y)})):y&&m.push(l(m)+"rotate("+y+a)}function h(g,y,m,_){g!==y?_.push({i:m.push(l(m)+"skewX(",null,a)-2,x:br(g,y)}):y&&m.push(l(m)+"skewX("+y+a)}function d(g,y,m,_,x,k){if(g!==m||y!==_){var C=x.push(l(x)+"scale(",null,",",null,")");k.push({i:C-4,x:br(g,m)},{i:C-2,x:br(y,_)})}else(m!==1||_!==1)&&x.push(l(x)+"scale("+m+","+_+")")}return function(g,y){var m=[],_=[];return g=e(g),y=e(y),u(g.translateX,g.translateY,y.translateX,y.translateY,m,_),c(g.rotate,y.rotate,m,_),h(g.skewX,y.skewX,m,_),d(g.scaleX,g.scaleY,y.scaleX,y.scaleY,m,_),g=y=null,function(x){for(var k=-1,C=_.length,b;++k<C;)m[(b=_[k]).i]=b.x(x);return m.join("")}}}var Ok=K0(Mk,"px, ","px)","deg)"),Ak=K0(Nk,", ",")",")"),zk=1e-12;function Dg(e){return((e=Math.exp(e))+1/e)/2}function jk(e){return((e=Math.exp(e))-1/e)/2}function Dk(e){return((e=Math.exp(2*e))-1)/(e+1)}const Ik=function e(n,r,a){function l(u,c){var h=u[0],d=u[1],g=u[2],y=c[0],m=c[1],_=c[2],x=y-h,k=m-d,C=x*x+k*k,b,w;if(C<zk)w=Math.log(_/g)/n,b=function(D){return[h+D*x,d+D*k,g*Math.exp(n*D*w)]};else{var E=Math.sqrt(C),M=(_*_-g*g+a*C)/(2*g*r*E),P=(_*_-g*g-a*C)/(2*_*r*E),T=Math.log(Math.sqrt(M*M+1)-M),z=Math.log(Math.sqrt(P*P+1)-P);w=(z-T)/n,b=function(D){var I=D*w,q=Dg(T),K=g/(r*E)*(q*Dk(n*I+T)-jk(T));return[h+K*x,d+K*k,g*q/Dg(n*I+T)]}}return b.duration=w*1e3*n/Math.SQRT2,b}return l.rho=function(u){var c=Math.max(.001,+u),h=c*c,d=h*h;return e(c,h,d)},l}(Math.SQRT2,2,4);var ao=0,ca=0,ta=0,G0=1e3,xs,fa,ws=0,fi=0,As=0,Sa=typeof performance=="object"&&performance.now?performance:Date,X0=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Qf(){return fi||(X0(Lk),fi=Sa.now()+As)}function Lk(){fi=0}function ks(){this._call=this._time=this._next=null}ks.prototype=Kf.prototype={constructor:ks,restart:function(e,n,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Qf():+r)+(n==null?0:+n),!this._next&&fa!==this&&(fa?fa._next=this:xs=this,fa=this),this._call=e,this._time=r,wf()},stop:function(){this._call&&(this._call=null,this._time=1/0,wf())}};function Kf(e,n,r){var a=new ks;return a.restart(e,n,r),a}function Fk(){Qf(),++ao;for(var e=xs,n;e;)(n=fi-e._time)>=0&&e._call.call(void 0,n),e=e._next;--ao}function Ig(){fi=(ws=Sa.now())+As,ao=ca=0;try{Fk()}finally{ao=0,Uk(),fi=0}}function $k(){var e=Sa.now(),n=e-ws;n>G0&&(As-=n,ws=e)}function Uk(){for(var e,n=xs,r,a=1/0;n;)n._call?(a>n._time&&(a=n._time),e=n,n=n._next):(r=n._next,n._next=null,n=e?e._next=r:xs=r);fa=e,wf(a)}function wf(e){if(!ao){ca&&(ca=clearTimeout(ca));var n=e-fi;n>24?(e<1/0&&(ca=setTimeout(Ig,e-Sa.now()-As)),ta&&(ta=clearInterval(ta))):(ta||(ws=Sa.now(),ta=setInterval($k,G0)),ao=1,X0(Ig))}}function Lg(e,n,r){var a=new ks;return n=n==null?0:+n,a.restart(l=>{a.stop(),e(l+n)},n,r),a}var Hk=za("start","end","cancel","interrupt"),Bk=[],Y0=0,Fg=1,kf=2,cs=3,$g=4,Sf=5,fs=6;function zs(e,n,r,a,l,u){var c=e.__transition;if(!c)e.__transition={};else if(r in c)return;Vk(e,r,{name:n,index:a,group:l,on:Hk,tween:Bk,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Y0})}function Gf(e,n){var r=pn(e,n);if(r.state>Y0)throw new Error("too late; already scheduled");return r}function Mn(e,n){var r=pn(e,n);if(r.state>cs)throw new Error("too late; already running");return r}function pn(e,n){var r=e.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function Vk(e,n,r){var a=e.__transition,l;a[n]=r,r.timer=Kf(u,0,r.time);function u(g){r.state=Fg,r.timer.restart(c,r.delay,r.time),r.delay<=g&&c(g-r.delay)}function c(g){var y,m,_,x;if(r.state!==Fg)return d();for(y in a)if(x=a[y],x.name===r.name){if(x.state===cs)return Lg(c);x.state===$g?(x.state=fs,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete a[y]):+y<n&&(x.state=fs,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete a[y])}if(Lg(function(){r.state===cs&&(r.state=$g,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=kf,r.on.call("start",e,e.__data__,r.index,r.group),r.state===kf){for(r.state=cs,l=new Array(_=r.tween.length),y=0,m=-1;y<_;++y)(x=r.tween[y].value.call(e,e.__data__,r.index,r.group))&&(l[++m]=x);l.length=m+1}}function h(g){for(var y=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(d),r.state=Sf,1),m=-1,_=l.length;++m<_;)l[m].call(e,y);r.state===Sf&&(r.on.call("end",e,e.__data__,r.index,r.group),d())}function d(){r.state=fs,r.timer.stop(),delete a[n];for(var g in a)return;delete e.__transition}}function hs(e,n){var r=e.__transition,a,l,u=!0,c;if(r){n=n==null?null:n+"";for(c in r){if((a=r[c]).name!==n){u=!1;continue}l=a.state>kf&&a.state<Sf,a.state=fs,a.timer.stop(),a.on.call(l?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete r[c]}u&&delete e.__transition}}function Wk(e){return this.each(function(){hs(this,e)})}function qk(e,n){var r,a;return function(){var l=Mn(this,e),u=l.tween;if(u!==r){a=r=u;for(var c=0,h=a.length;c<h;++c)if(a[c].name===n){a=a.slice(),a.splice(c,1);break}}l.tween=a}}function Qk(e,n,r){var a,l;if(typeof r!="function")throw new Error;return function(){var u=Mn(this,e),c=u.tween;if(c!==a){l=(a=c).slice();for(var h={name:n,value:r},d=0,g=l.length;d<g;++d)if(l[d].name===n){l[d]=h;break}d===g&&l.push(h)}u.tween=l}}function Kk(e,n){var r=this._id;if(e+="",arguments.length<2){for(var a=pn(this.node(),r).tween,l=0,u=a.length,c;l<u;++l)if((c=a[l]).name===e)return c.value;return null}return this.each((n==null?qk:Qk)(r,e,n))}function Xf(e,n,r){var a=e._id;return e.each(function(){var l=Mn(this,a);(l.value||(l.value={}))[n]=r.apply(this,arguments)}),function(l){return pn(l,a).value[n]}}function Z0(e,n){var r;return(typeof n=="number"?br:n instanceof ka?zg:(r=ka(n))?(n=r,zg):Tk)(e,n)}function Gk(e){return function(){this.removeAttribute(e)}}function Xk(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Yk(e,n,r){var a,l=r+"",u;return function(){var c=this.getAttribute(e);return c===l?null:c===a?u:u=n(a=c,r)}}function Zk(e,n,r){var a,l=r+"",u;return function(){var c=this.getAttributeNS(e.space,e.local);return c===l?null:c===a?u:u=n(a=c,r)}}function Jk(e,n,r){var a,l,u;return function(){var c,h=r(this),d;return h==null?void this.removeAttribute(e):(c=this.getAttribute(e),d=h+"",c===d?null:c===a&&d===l?u:(l=d,u=n(a=c,h)))}}function eS(e,n,r){var a,l,u;return function(){var c,h=r(this),d;return h==null?void this.removeAttributeNS(e.space,e.local):(c=this.getAttributeNS(e.space,e.local),d=h+"",c===d?null:c===a&&d===l?u:(l=d,u=n(a=c,h)))}}function tS(e,n){var r=Os(e),a=r==="transform"?Ak:Z0;return this.attrTween(e,typeof n=="function"?(r.local?eS:Jk)(r,a,Xf(this,"attr."+e,n)):n==null?(r.local?Xk:Gk)(r):(r.local?Zk:Yk)(r,a,n))}function nS(e,n){return function(r){this.setAttribute(e,n.call(this,r))}}function rS(e,n){return function(r){this.setAttributeNS(e.space,e.local,n.call(this,r))}}function iS(e,n){var r,a;function l(){var u=n.apply(this,arguments);return u!==a&&(r=(a=u)&&rS(e,u)),r}return l._value=n,l}function oS(e,n){var r,a;function l(){var u=n.apply(this,arguments);return u!==a&&(r=(a=u)&&nS(e,u)),r}return l._value=n,l}function aS(e,n){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var a=Os(e);return this.tween(r,(a.local?iS:oS)(a,n))}function lS(e,n){return function(){Gf(this,e).delay=+n.apply(this,arguments)}}function sS(e,n){return n=+n,function(){Gf(this,e).delay=n}}function uS(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?lS:sS)(n,e)):pn(this.node(),n).delay}function cS(e,n){return function(){Mn(this,e).duration=+n.apply(this,arguments)}}function fS(e,n){return n=+n,function(){Mn(this,e).duration=n}}function hS(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?cS:fS)(n,e)):pn(this.node(),n).duration}function dS(e,n){if(typeof n!="function")throw new Error;return function(){Mn(this,e).ease=n}}function pS(e){var n=this._id;return arguments.length?this.each(dS(n,e)):pn(this.node(),n).ease}function gS(e,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;Mn(this,e).ease=r}}function mS(e){if(typeof e!="function")throw new Error;return this.each(gS(this._id,e))}function yS(e){typeof e!="function"&&(e=N0(e));for(var n=this._groups,r=n.length,a=new Array(r),l=0;l<r;++l)for(var u=n[l],c=u.length,h=a[l]=[],d,g=0;g<c;++g)(d=u[g])&&e.call(d,d.__data__,g,u)&&h.push(d);return new Jn(a,this._parents,this._name,this._id)}function vS(e){if(e._id!==this._id)throw new Error;for(var n=this._groups,r=e._groups,a=n.length,l=r.length,u=Math.min(a,l),c=new Array(a),h=0;h<u;++h)for(var d=n[h],g=r[h],y=d.length,m=c[h]=new Array(y),_,x=0;x<y;++x)(_=d[x]||g[x])&&(m[x]=_);for(;h<a;++h)c[h]=n[h];return new Jn(c,this._parents,this._name,this._id)}function _S(e){return(e+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||n==="start"})}function xS(e,n,r){var a,l,u=_S(n)?Gf:Mn;return function(){var c=u(this,e),h=c.on;h!==a&&(l=(a=h).copy()).on(n,r),c.on=l}}function wS(e,n){var r=this._id;return arguments.length<2?pn(this.node(),r).on.on(e):this.each(xS(r,e,n))}function kS(e){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==e)return;n&&n.removeChild(this)}}function SS(){return this.on("end.remove",kS(this._id))}function CS(e){var n=this._name,r=this._id;typeof e!="function"&&(e=Vf(e));for(var a=this._groups,l=a.length,u=new Array(l),c=0;c<l;++c)for(var h=a[c],d=h.length,g=u[c]=new Array(d),y,m,_=0;_<d;++_)(y=h[_])&&(m=e.call(y,y.__data__,_,h))&&("__data__"in y&&(m.__data__=y.__data__),g[_]=m,zs(g[_],n,r,_,g,pn(y,r)));return new Jn(u,this._parents,n,r)}function bS(e){var n=this._name,r=this._id;typeof e!="function"&&(e=M0(e));for(var a=this._groups,l=a.length,u=[],c=[],h=0;h<l;++h)for(var d=a[h],g=d.length,y,m=0;m<g;++m)if(y=d[m]){for(var _=e.call(y,y.__data__,m,d),x,k=pn(y,r),C=0,b=_.length;C<b;++C)(x=_[C])&&zs(x,n,r,C,_,k);u.push(_),c.push(y)}return new Jn(u,c,n,r)}var ES=Aa.prototype.constructor;function PS(){return new ES(this._groups,this._parents)}function RS(e,n){var r,a,l;return function(){var u=oo(this,e),c=(this.style.removeProperty(e),oo(this,e));return u===c?null:u===r&&c===a?l:l=n(r=u,a=c)}}function J0(e){return function(){this.style.removeProperty(e)}}function TS(e,n,r){var a,l=r+"",u;return function(){var c=oo(this,e);return c===l?null:c===a?u:u=n(a=c,r)}}function MS(e,n,r){var a,l,u;return function(){var c=oo(this,e),h=r(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(e),oo(this,e))),c===d?null:c===a&&d===l?u:(l=d,u=n(a=c,h))}}function NS(e,n){var r,a,l,u="style."+n,c="end."+u,h;return function(){var d=Mn(this,e),g=d.on,y=d.value[u]==null?h||(h=J0(n)):void 0;(g!==r||l!==y)&&(a=(r=g).copy()).on(c,l=y),d.on=a}}function OS(e,n,r){var a=(e+="")=="transform"?Ok:Z0;return n==null?this.styleTween(e,RS(e,a)).on("end.style."+e,J0(e)):typeof n=="function"?this.styleTween(e,MS(e,a,Xf(this,"style."+e,n))).each(NS(this._id,e)):this.styleTween(e,TS(e,a,n),r).on("end.style."+e,null)}function AS(e,n,r){return function(a){this.style.setProperty(e,n.call(this,a),r)}}function zS(e,n,r){var a,l;function u(){var c=n.apply(this,arguments);return c!==l&&(a=(l=c)&&AS(e,c,r)),a}return u._value=n,u}function jS(e,n,r){var a="style."+(e+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(n==null)return this.tween(a,null);if(typeof n!="function")throw new Error;return this.tween(a,zS(e,n,r??""))}function DS(e){return function(){this.textContent=e}}function IS(e){return function(){var n=e(this);this.textContent=n??""}}function LS(e){return this.tween("text",typeof e=="function"?IS(Xf(this,"text",e)):DS(e==null?"":e+""))}function FS(e){return function(n){this.textContent=e.call(this,n)}}function $S(e){var n,r;function a(){var l=e.apply(this,arguments);return l!==r&&(n=(r=l)&&FS(l)),n}return a._value=e,a}function US(e){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,$S(e))}function HS(){for(var e=this._name,n=this._id,r=ey(),a=this._groups,l=a.length,u=0;u<l;++u)for(var c=a[u],h=c.length,d,g=0;g<h;++g)if(d=c[g]){var y=pn(d,n);zs(d,e,r,g,c,{time:y.time+y.delay+y.duration,delay:0,duration:y.duration,ease:y.ease})}return new Jn(a,this._parents,e,r)}function BS(){var e,n,r=this,a=r._id,l=r.size();return new Promise(function(u,c){var h={value:c},d={value:function(){--l===0&&u()}};r.each(function(){var g=Mn(this,a),y=g.on;y!==e&&(n=(e=y).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(d)),g.on=n}),l===0&&u()})}var VS=0;function Jn(e,n,r,a){this._groups=e,this._parents=n,this._name=r,this._id=a}function ey(){return++VS}var Fn=Aa.prototype;Jn.prototype={constructor:Jn,select:CS,selectAll:bS,selectChild:Fn.selectChild,selectChildren:Fn.selectChildren,filter:yS,merge:vS,selection:PS,transition:HS,call:Fn.call,nodes:Fn.nodes,node:Fn.node,size:Fn.size,empty:Fn.empty,each:Fn.each,on:wS,attr:tS,attrTween:aS,style:OS,styleTween:jS,text:LS,textTween:US,remove:SS,tween:Kk,delay:uS,duration:hS,ease:pS,easeVarying:mS,end:BS,[Symbol.iterator]:Fn[Symbol.iterator]};function WS(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var qS={time:null,delay:0,duration:250,ease:WS};function QS(e,n){for(var r;!(r=e.__transition)||!(r=r[n]);)if(!(e=e.parentNode))throw new Error(`transition ${n} not found`);return r}function KS(e){var n,r;e instanceof Jn?(n=e._id,e=e._name):(n=ey(),(r=qS).time=Qf(),e=e==null?null:e+"");for(var a=this._groups,l=a.length,u=0;u<l;++u)for(var c=a[u],h=c.length,d,g=0;g<h;++g)(d=c[g])&&zs(d,e,n,g,c,r||QS(d,n));return new Jn(a,this._parents,e,n)}Aa.prototype.interrupt=Wk;Aa.prototype.transition=KS;const ns=e=>()=>e;function GS(e,{sourceEvent:n,target:r,transform:a,dispatch:l}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:l}})}function Qn(e,n,r){this.k=e,this.x=n,this.y=r}Qn.prototype={constructor:Qn,scale:function(e){return e===1?this:new Qn(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new Qn(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Yf=new Qn(1,0,0);xn.prototype=Qn.prototype;function xn(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Yf;return e.__zoom}function Hc(e){e.stopImmediatePropagation()}function na(e){e.preventDefault(),e.stopImmediatePropagation()}function XS(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function YS(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Ug(){return this.__zoom||Yf}function ZS(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function JS(){return navigator.maxTouchPoints||"ontouchstart"in this}function eC(e,n,r){var a=e.invertX(n[0][0])-r[0][0],l=e.invertX(n[1][0])-r[1][0],u=e.invertY(n[0][1])-r[0][1],c=e.invertY(n[1][1])-r[1][1];return e.translate(l>a?(a+l)/2:Math.min(0,a)||Math.max(0,l),c>u?(u+c)/2:Math.min(0,u)||Math.max(0,c))}function tC(){var e=XS,n=YS,r=eC,a=ZS,l=JS,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],h=250,d=Ik,g=za("start","zoom","end"),y,m,_,x=500,k=150,C=0,b=10;function w(F){F.property("__zoom",Ug).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",q).on("dblclick.zoom",K).filter(l).on("touchstart.zoom",J).on("touchmove.zoom",ae).on("touchend.zoom touchcancel.zoom",he).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(F,ne,G,oe){var Q=F.selection?F.selection():F;Q.property("__zoom",Ug),F!==Q?T(F,ne,G,oe):Q.interrupt().each(function(){z(this,arguments).event(oe).start().zoom(null,typeof ne=="function"?ne.apply(this,arguments):ne).end()})},w.scaleBy=function(F,ne,G,oe){w.scaleTo(F,function(){var Q=this.__zoom.k,ee=typeof ne=="function"?ne.apply(this,arguments):ne;return Q*ee},G,oe)},w.scaleTo=function(F,ne,G,oe){w.transform(F,function(){var Q=n.apply(this,arguments),ee=this.__zoom,X=G==null?P(Q):typeof G=="function"?G.apply(this,arguments):G,N=ee.invert(X),V=typeof ne=="function"?ne.apply(this,arguments):ne;return r(M(E(ee,V),X,N),Q,c)},G,oe)},w.translateBy=function(F,ne,G,oe){w.transform(F,function(){return r(this.__zoom.translate(typeof ne=="function"?ne.apply(this,arguments):ne,typeof G=="function"?G.apply(this,arguments):G),n.apply(this,arguments),c)},null,oe)},w.translateTo=function(F,ne,G,oe,Q){w.transform(F,function(){var ee=n.apply(this,arguments),X=this.__zoom,N=oe==null?P(ee):typeof oe=="function"?oe.apply(this,arguments):oe;return r(Yf.translate(N[0],N[1]).scale(X.k).translate(typeof ne=="function"?-ne.apply(this,arguments):-ne,typeof G=="function"?-G.apply(this,arguments):-G),ee,c)},oe,Q)};function E(F,ne){return ne=Math.max(u[0],Math.min(u[1],ne)),ne===F.k?F:new Qn(ne,F.x,F.y)}function M(F,ne,G){var oe=ne[0]-G[0]*F.k,Q=ne[1]-G[1]*F.k;return oe===F.x&&Q===F.y?F:new Qn(F.k,oe,Q)}function P(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function T(F,ne,G,oe){F.on("start.zoom",function(){z(this,arguments).event(oe).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(oe).end()}).tween("zoom",function(){var Q=this,ee=arguments,X=z(Q,ee).event(oe),N=n.apply(Q,ee),V=G==null?P(N):typeof G=="function"?G.apply(Q,ee):G,ce=Math.max(N[1][0]-N[0][0],N[1][1]-N[0][1]),pe=Q.__zoom,ke=typeof ne=="function"?ne.apply(Q,ee):ne,Se=d(pe.invert(V).concat(ce/pe.k),ke.invert(V).concat(ce/ke.k));return function(be){if(be===1)be=ke;else{var Ce=Se(be),Ae=ce/Ce[2];be=new Qn(Ae,V[0]-Ce[0]*Ae,V[1]-Ce[1]*Ae)}X.zoom(null,be)}})}function z(F,ne,G){return!G&&F.__zooming||new D(F,ne)}function D(F,ne){this.that=F,this.args=ne,this.active=0,this.sourceEvent=null,this.extent=n.apply(F,ne),this.taps=0}D.prototype={event:function(F){return F&&(this.sourceEvent=F),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(F,ne){return this.mouse&&F!=="mouse"&&(this.mouse[1]=ne.invert(this.mouse[0])),this.touch0&&F!=="touch"&&(this.touch0[1]=ne.invert(this.touch0[0])),this.touch1&&F!=="touch"&&(this.touch1[1]=ne.invert(this.touch1[0])),this.that.__zoom=ne,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(F){var ne=Xt(this.that).datum();g.call(F,this.that,new GS(F,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:g}),ne)}};function I(F,...ne){if(!e.apply(this,arguments))return;var G=z(this,ne).event(F),oe=this.__zoom,Q=Math.max(u[0],Math.min(u[1],oe.k*Math.pow(2,a.apply(this,arguments)))),ee=wn(F);if(G.wheel)(G.mouse[0][0]!==ee[0]||G.mouse[0][1]!==ee[1])&&(G.mouse[1]=oe.invert(G.mouse[0]=ee)),clearTimeout(G.wheel);else{if(oe.k===Q)return;G.mouse=[ee,oe.invert(ee)],hs(this),G.start()}na(F),G.wheel=setTimeout(X,k),G.zoom("mouse",r(M(E(oe,Q),G.mouse[0],G.mouse[1]),G.extent,c));function X(){G.wheel=null,G.end()}}function q(F,...ne){if(_||!e.apply(this,arguments))return;var G=F.currentTarget,oe=z(this,ne,!0).event(F),Q=Xt(F.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",ce,!0),ee=wn(F,G),X=F.clientX,N=F.clientY;U0(F.view),Hc(F),oe.mouse=[ee,this.__zoom.invert(ee)],hs(this),oe.start();function V(pe){if(na(pe),!oe.moved){var ke=pe.clientX-X,Se=pe.clientY-N;oe.moved=ke*ke+Se*Se>C}oe.event(pe).zoom("mouse",r(M(oe.that.__zoom,oe.mouse[0]=wn(pe,G),oe.mouse[1]),oe.extent,c))}function ce(pe){Q.on("mousemove.zoom mouseup.zoom",null),H0(pe.view,oe.moved),na(pe),oe.event(pe).end()}}function K(F,...ne){if(e.apply(this,arguments)){var G=this.__zoom,oe=wn(F.changedTouches?F.changedTouches[0]:F,this),Q=G.invert(oe),ee=G.k*(F.shiftKey?.5:2),X=r(M(E(G,ee),oe,Q),n.apply(this,ne),c);na(F),h>0?Xt(this).transition().duration(h).call(T,X,oe,F):Xt(this).call(w.transform,X,oe,F)}}function J(F,...ne){if(e.apply(this,arguments)){var G=F.touches,oe=G.length,Q=z(this,ne,F.changedTouches.length===oe).event(F),ee,X,N,V;for(Hc(F),X=0;X<oe;++X)N=G[X],V=wn(N,this),V=[V,this.__zoom.invert(V),N.identifier],Q.touch0?!Q.touch1&&Q.touch0[2]!==V[2]&&(Q.touch1=V,Q.taps=0):(Q.touch0=V,ee=!0,Q.taps=1+!!y);y&&(y=clearTimeout(y)),ee&&(Q.taps<2&&(m=V[0],y=setTimeout(function(){y=null},x)),hs(this),Q.start())}}function ae(F,...ne){if(this.__zooming){var G=z(this,ne).event(F),oe=F.changedTouches,Q=oe.length,ee,X,N,V;for(na(F),ee=0;ee<Q;++ee)X=oe[ee],N=wn(X,this),G.touch0&&G.touch0[2]===X.identifier?G.touch0[0]=N:G.touch1&&G.touch1[2]===X.identifier&&(G.touch1[0]=N);if(X=G.that.__zoom,G.touch1){var ce=G.touch0[0],pe=G.touch0[1],ke=G.touch1[0],Se=G.touch1[1],be=(be=ke[0]-ce[0])*be+(be=ke[1]-ce[1])*be,Ce=(Ce=Se[0]-pe[0])*Ce+(Ce=Se[1]-pe[1])*Ce;X=E(X,Math.sqrt(be/Ce)),N=[(ce[0]+ke[0])/2,(ce[1]+ke[1])/2],V=[(pe[0]+Se[0])/2,(pe[1]+Se[1])/2]}else if(G.touch0)N=G.touch0[0],V=G.touch0[1];else return;G.zoom("touch",r(M(X,N,V),G.extent,c))}}function he(F,...ne){if(this.__zooming){var G=z(this,ne).event(F),oe=F.changedTouches,Q=oe.length,ee,X;for(Hc(F),_&&clearTimeout(_),_=setTimeout(function(){_=null},x),ee=0;ee<Q;++ee)X=oe[ee],G.touch0&&G.touch0[2]===X.identifier?delete G.touch0:G.touch1&&G.touch1[2]===X.identifier&&delete G.touch1;if(G.touch1&&!G.touch0&&(G.touch0=G.touch1,delete G.touch1),G.touch0)G.touch0[1]=this.__zoom.invert(G.touch0[0]);else if(G.end(),G.taps===2&&(X=wn(X,this),Math.hypot(m[0]-X[0],m[1]-X[1])<b)){var N=Xt(this).on("dblclick.zoom");N&&N.apply(this,arguments)}}}return w.wheelDelta=function(F){return arguments.length?(a=typeof F=="function"?F:ns(+F),w):a},w.filter=function(F){return arguments.length?(e=typeof F=="function"?F:ns(!!F),w):e},w.touchable=function(F){return arguments.length?(l=typeof F=="function"?F:ns(!!F),w):l},w.extent=function(F){return arguments.length?(n=typeof F=="function"?F:ns([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),w):n},w.scaleExtent=function(F){return arguments.length?(u[0]=+F[0],u[1]=+F[1],w):[u[0],u[1]]},w.translateExtent=function(F){return arguments.length?(c[0][0]=+F[0][0],c[1][0]=+F[1][0],c[0][1]=+F[0][1],c[1][1]=+F[1][1],w):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},w.constrain=function(F){return arguments.length?(r=F,w):r},w.duration=function(F){return arguments.length?(h=+F,w):h},w.interpolate=function(F){return arguments.length?(d=F,w):d},w.on=function(){var F=g.on.apply(g,arguments);return F===g?w:F},w.clickDistance=function(F){return arguments.length?(C=(F=+F)*F,w):Math.sqrt(C)},w.tapDistance=function(F){return arguments.length?(b=+F,w):b},w}class Hg extends Map{constructor(n,r=iC){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),n!=null)for(const[a,l]of n)this.set(a,l)}get(n){return super.get(Bg(this,n))}has(n){return super.has(Bg(this,n))}set(n,r){return super.set(nC(this,n),r)}delete(n){return super.delete(rC(this,n))}}function Bg({_intern:e,_key:n},r){const a=n(r);return e.has(a)?e.get(a):r}function nC({_intern:e,_key:n},r){const a=n(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function rC({_intern:e,_key:n},r){const a=n(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function iC(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Vg(e,n){let r;if(n===void 0)for(const a of e)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let l of e)(l=n(l,++a,e))!=null&&(r<l||r===void 0&&l>=l)&&(r=l)}return r}function Wg(e,n){let r;if(n===void 0)for(const a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let l of e)(l=n(l,++a,e))!=null&&(r>l||r===void 0&&l>=l)&&(r=l)}return r}function oC(e,n){let r=0;for(let a of e)(a=+a)&&(r+=a);return r}var aC=typeof global=="object"&&global&&global.Object===Object&&global,lC=typeof self=="object"&&self&&self.Object===Object&&self,ty=aC||lC||Function("return this")(),Ss=ty.Symbol,ny=Object.prototype,sC=ny.hasOwnProperty,uC=ny.toString,ra=Ss?Ss.toStringTag:void 0;function cC(e){var n=sC.call(e,ra),r=e[ra];try{e[ra]=void 0;var a=!0}catch{}var l=uC.call(e);return a&&(n?e[ra]=r:delete e[ra]),l}var fC=Object.prototype,hC=fC.toString;function dC(e){return hC.call(e)}var pC="[object Null]",gC="[object Undefined]",qg=Ss?Ss.toStringTag:void 0;function mC(e){return e==null?e===void 0?gC:pC:qg&&qg in Object(e)?cC(e):dC(e)}function yC(e){return e!=null&&typeof e=="object"}var vC="[object Symbol]";function _C(e){return typeof e=="symbol"||yC(e)&&mC(e)==vC}var xC=/\s/;function wC(e){for(var n=e.length;n--&&xC.test(e.charAt(n)););return n}var kC=/^\s+/;function SC(e){return e&&e.slice(0,wC(e)+1).replace(kC,"")}function Cs(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Qg=NaN,CC=/^[-+]0x[0-9a-f]+$/i,bC=/^0b[01]+$/i,EC=/^0o[0-7]+$/i,PC=parseInt;function Kg(e){if(typeof e=="number")return e;if(_C(e))return Qg;if(Cs(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Cs(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=SC(e);var r=bC.test(e);return r||EC.test(e)?PC(e.slice(2),r?2:8):CC.test(e)?Qg:+e}var Bc=function(){return ty.Date.now()},RC="Expected a function",TC=Math.max,MC=Math.min;function ry(e,n,r){var a,l,u,c,h,d,g=0,y=!1,m=!1,_=!0;if(typeof e!="function")throw new TypeError(RC);n=Kg(n)||0,Cs(r)&&(y=!!r.leading,m="maxWait"in r,u=m?TC(Kg(r.maxWait)||0,n):u,_="trailing"in r?!!r.trailing:_);function x(z){var D=a,I=l;return a=l=void 0,g=z,c=e.apply(I,D),c}function k(z){return g=z,h=setTimeout(w,n),y?x(z):c}function C(z){var D=z-d,I=z-g,q=n-D;return m?MC(q,u-I):q}function b(z){var D=z-d,I=z-g;return d===void 0||D>=n||D<0||m&&I>=u}function w(){var z=Bc();if(b(z))return E(z);h=setTimeout(w,C(z))}function E(z){return h=void 0,_&&a?x(z):(a=l=void 0,c)}function M(){h!==void 0&&clearTimeout(h),g=0,a=d=l=h=void 0}function P(){return h===void 0?c:E(Bc())}function T(){var z=Bc(),D=b(z);if(a=arguments,l=this,d=z,D){if(h===void 0)return k(d);if(m)return clearTimeout(h),h=setTimeout(w,n),x(d)}return h===void 0&&(h=setTimeout(w,n)),c}return T.cancel=M,T.flush=P,T}var NC="Expected a function";function OC(e,n,r){var a=!0,l=!0;if(typeof e!="function")throw new TypeError(NC);return Cs(r)&&(a="leading"in r?!!r.leading:a,l="trailing"in r?!!r.trailing:l),ry(e,n,{leading:a,maxWait:n,trailing:l})}var si=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return e},Out:function(e){return e},InOut:function(e){return e}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(e){var n=1.70158;return e===1?1:e*e*((n+1)*e-n)},Out:function(e){var n=1.70158;return e===0?0:--e*e*((n+1)*e+n)+1},InOut:function(e){var n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}}),Bounce:Object.freeze({In:function(e){return 1-si.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?si.Bounce.In(e*2)*.5:si.Bounce.Out(e*2-1)*.5+.5}}),generatePow:function(e){return e===void 0&&(e=4),e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(n){return Math.pow(n,e)},Out:function(n){return 1-Math.pow(1-n,e)},InOut:function(n){return n<.5?Math.pow(n*2,e)/2:(1-Math.pow(2-n*2,e))/2+.5}}}}),ha=function(){return performance.now()},iy=function(){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,n)}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(r){return n._tweens[r]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(){for(var n,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];for(var l=0,u=r;l<u.length;l++){var c=u[l];(n=c._group)===null||n===void 0||n.remove(c),c._group=this,this._tweens[c.getId()]=c,this._tweensAddedDuringUpdate[c.getId()]=c}},e.prototype.remove=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var a=0,l=n;a<l.length;a++){var u=l[a];u._group=void 0,delete this._tweens[u.getId()],delete this._tweensAddedDuringUpdate[u.getId()]}},e.prototype.allStopped=function(){return this.getAll().every(function(n){return!n.isPlaying()})},e.prototype.update=function(n,r){n===void 0&&(n=ha()),r===void 0&&(r=!0);var a=Object.keys(this._tweens);if(a.length!==0)for(;a.length>0;){this._tweensAddedDuringUpdate={};for(var l=0;l<a.length;l++){var u=this._tweens[a[l]],c=!r;u&&u.update(n,c)===!1&&!r&&this.remove(u)}a=Object.keys(this._tweensAddedDuringUpdate)}},e}(),Cf={Linear:function(e,n){var r=e.length-1,a=r*n,l=Math.floor(a),u=Cf.Utils.Linear;return n<0?u(e[0],e[1],a):n>1?u(e[r],e[r-1],r-a):u(e[l],e[l+1>r?r:l+1],a-l)},Utils:{Linear:function(e,n,r){return(n-e)*r+e}}},oy=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),bf=new iy,Gg=function(){function e(n,r){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=si.Linear.None,this._interpolationFunction=Cf.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=oy.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=n,typeof r=="object"?(this._group=r,r.add(this)):r===!0&&(this._group=bf,bf.add(this))}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(n,r){if(r===void 0&&(r=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=n,this._propertiesAreSetUp=!1,this._duration=r<0?0:r,this},e.prototype.duration=function(n){return n===void 0&&(n=1e3),this._duration=n<0?0:n,this},e.prototype.dynamic=function(n){return n===void 0&&(n=!1),this._isDynamic=n,this},e.prototype.start=function(n,r){if(n===void 0&&(n=ha()),r===void 0&&(r=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var a in this._valuesStartRepeat)this._swapEndStartRepeatValues(a),this._valuesStart[a]=this._valuesStartRepeat[a]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n,this._startTime+=this._delayTime,!this._propertiesAreSetUp||r){if(this._propertiesAreSetUp=!0,!this._isDynamic){var l={};for(var u in this._valuesEnd)l[u]=this._valuesEnd[u];this._valuesEnd=l}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,r)}return this},e.prototype.startFromCurrentValues=function(n){return this.start(n,!0)},e.prototype._setupProperties=function(n,r,a,l,u){for(var c in a){var h=n[c],d=Array.isArray(h),g=d?"array":typeof h,y=!d&&Array.isArray(a[c]);if(!(g==="undefined"||g==="function")){if(y){var m=a[c];if(m.length===0)continue;for(var _=[h],x=0,k=m.length;x<k;x+=1){var C=this._handleRelativeValue(h,m[x]);if(isNaN(C)){y=!1,console.warn("Found invalid interpolation list. Skipping.");break}_.push(C)}y&&(a[c]=_)}if((g==="object"||d)&&h&&!y){r[c]=d?[]:{};var b=h;for(var w in b)r[c][w]=b[w];l[c]=d?[]:{};var m=a[c];if(!this._isDynamic){var E={};for(var w in m)E[w]=m[w];a[c]=m=E}this._setupProperties(b,r[c],m,l[c],u)}else(typeof r[c]>"u"||u)&&(r[c]=h),d||(r[c]*=1),y?l[c]=a[c].slice().reverse():l[c]=r[c]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},e.prototype.pause=function(n){return n===void 0&&(n=ha()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this)},e.prototype.resume=function(n){return n===void 0&&(n=ha()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this)},e.prototype.stopChainedTweens=function(){for(var n=0,r=this._chainedTweens.length;n<r;n++)this._chainedTweens[n].stop();return this},e.prototype.group=function(n){return n?(n.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},e.prototype.remove=function(){var n;return(n=this._group)===null||n===void 0||n.remove(this),this},e.prototype.delay=function(n){return n===void 0&&(n=0),this._delayTime=n,this},e.prototype.repeat=function(n){return n===void 0&&(n=0),this._initialRepeat=n,this._repeat=n,this},e.prototype.repeatDelay=function(n){return this._repeatDelayTime=n,this},e.prototype.yoyo=function(n){return n===void 0&&(n=!1),this._yoyo=n,this},e.prototype.easing=function(n){return n===void 0&&(n=si.Linear.None),this._easingFunction=n,this},e.prototype.interpolation=function(n){return n===void 0&&(n=Cf.Linear),this._interpolationFunction=n,this},e.prototype.chain=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this._chainedTweens=n,this},e.prototype.onStart=function(n){return this._onStartCallback=n,this},e.prototype.onEveryStart=function(n){return this._onEveryStartCallback=n,this},e.prototype.onUpdate=function(n){return this._onUpdateCallback=n,this},e.prototype.onRepeat=function(n){return this._onRepeatCallback=n,this},e.prototype.onComplete=function(n){return this._onCompleteCallback=n,this},e.prototype.onStop=function(n){return this._onStopCallback=n,this},e.prototype.update=function(n,r){var a=this,l;if(n===void 0&&(n=ha()),r===void 0&&(r=e.autoStartOnUpdate),this._isPaused)return!0;var u;if(!this._goToEnd&&!this._isPlaying)if(r)this.start(n,!0);else return!1;if(this._goToEnd=!1,n<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var c=n-this._startTime,h=this._duration+((l=this._repeatDelayTime)!==null&&l!==void 0?l:this._delayTime),d=this._duration+this._repeat*h,g=function(){if(a._duration===0||c>d)return 1;var C=Math.trunc(c/h),b=c-C*h,w=Math.min(b/a._duration,1);return w===0&&c===a._duration?1:w},y=g(),m=this._easingFunction(y);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,m),this._onUpdateCallback&&this._onUpdateCallback(this._object,y),this._duration===0||c>=this._duration)if(this._repeat>0){var _=Math.min(Math.trunc((c-this._duration)/h)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=_);for(u in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[u]=="string"&&(this._valuesStartRepeat[u]=this._valuesStartRepeat[u]+parseFloat(this._valuesEnd[u])),this._yoyo&&this._swapEndStartRepeatValues(u),this._valuesStart[u]=this._valuesStartRepeat[u];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=h*_,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var x=0,k=this._chainedTweens.length;x<k;x++)this._chainedTweens[x].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,r,a,l){for(var u in a)if(r[u]!==void 0){var c=r[u]||0,h=a[u],d=Array.isArray(n[u]),g=Array.isArray(h),y=!d&&g;y?n[u]=this._interpolationFunction(h,l):typeof h=="object"&&h?this._updateProperties(n[u],c,h,l):(h=this._handleRelativeValue(c,h),typeof h=="number"&&(n[u]=c+(h-c)*l))}},e.prototype._handleRelativeValue=function(n,r){return typeof r!="string"?r:r.charAt(0)==="+"||r.charAt(0)==="-"?n+parseFloat(r):parseFloat(r)},e.prototype._swapEndStartRepeatValues=function(n){var r=this._valuesStartRepeat[n],a=this._valuesEnd[n];typeof a=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(a):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=r},e.autoStartOnUpdate=!1,e}();oy.nextId;var Rn=bf;Rn.getAll.bind(Rn);Rn.removeAll.bind(Rn);Rn.add.bind(Rn);Rn.remove.bind(Rn);Rn.update.bind(Rn);function Xg(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=Array(n);r<n;r++)a[r]=e[r];return a}function AC(e){if(Array.isArray(e))return e}function zC(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function jC(e,n,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function DC(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,l,u,c,h=[],d=!0,g=!1;try{if(u=(r=r.call(e)).next,n!==0)for(;!(d=(a=u.call(r)).done)&&(h.push(a.value),h.length!==n);d=!0);}catch(y){g=!0,l=y}finally{try{if(!d&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(g)throw l}}return h}}function IC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
102
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LC(e,n){return AC(e)||DC(e,n)||FC(e,n)||IC()}function FC(e,n){if(e){if(typeof e=="string")return Xg(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xg(e,n):void 0}}var $C=jC(function e(n,r){var a=r.default,l=a===void 0?null:a,u=r.triggerUpdate,c=u===void 0?!0:u,h=r.onChange,d=h===void 0?function(g,y){}:h;zC(this,e),this.name=n,this.defaultVal=l,this.triggerUpdate=c,this.onChange=d});function Zf(e){var n=e.stateInit,r=n===void 0?function(){return{}}:n,a=e.props,l=a===void 0?{}:a,u=e.methods,c=u===void 0?{}:u,h=e.aliases,d=h===void 0?{}:h,g=e.init,y=g===void 0?function(){}:g,m=e.update,_=m===void 0?function(){}:m,x=Object.keys(l).map(function(k){return new $C(k,l[k])});return function k(){for(var C=arguments.length,b=new Array(C),w=0;w<C;w++)b[w]=arguments[w];var E=!!(this instanceof k&&this.constructor),M=E?b.shift():void 0,P=b[0],T=P===void 0?{}:P,z=Object.assign({},r instanceof Function?r(T):r,{initialised:!1}),D={};function I(J){return q(J,T),K(),I}var q=function(ae,he){y.call(I,ae,z,he),z.initialised=!0},K=ry(function(){z.initialised&&(_.call(I,z,D),D={})},1);return x.forEach(function(J){I[J.name]=ae(J);function ae(he){var F=he.name,ne=he.triggerUpdate,G=ne===void 0?!1:ne,oe=he.onChange,Q=oe===void 0?function(N,V){}:oe,ee=he.defaultVal,X=ee===void 0?null:ee;return function(N){var V=z[F];if(!arguments.length)return V;var ce=N===void 0?X:N;return z[F]=ce,Q.call(I,ce,z,V),!D.hasOwnProperty(F)&&(D[F]=V),G&&K(),I}}}),Object.keys(c).forEach(function(J){I[J]=function(){for(var ae,he=arguments.length,F=new Array(he),ne=0;ne<he;ne++)F[ne]=arguments[ne];return(ae=c[J]).call.apply(ae,[I,z].concat(F))}}),Object.entries(d).forEach(function(J){var ae=LC(J,2),he=ae[0],F=ae[1];return I[he]=I[F]}),I.resetProps=function(){return x.forEach(function(J){I[J.name](J.defaultVal)}),I},I.resetProps(),z._rerender=K,E&&M&&I(M),I}}var De=function(e){return typeof e=="function"?e:typeof e=="string"?function(n){return n[e]}:function(n){return e}};function bs(e){"@babel/helpers - typeof";return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bs(e)}var UC=/^\s+/,HC=/\s+$/;function ye(e,n){if(e=e||"",n=n||{},e instanceof ye)return e;if(!(this instanceof ye))return new ye(e,n);var r=BC(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||r.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}ye.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),r,a,l,u,c,h;return r=n.r/255,a=n.g/255,l=n.b/255,r<=.03928?u=r/12.92:u=Math.pow((r+.055)/1.055,2.4),a<=.03928?c=a/12.92:c=Math.pow((a+.055)/1.055,2.4),l<=.03928?h=l/12.92:h=Math.pow((l+.055)/1.055,2.4),.2126*u+.7152*c+.0722*h},setAlpha:function(n){return this._a=ay(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=Zg(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=Zg(this._r,this._g,this._b),r=Math.round(n.h*360),a=Math.round(n.s*100),l=Math.round(n.v*100);return this._a==1?"hsv("+r+", "+a+"%, "+l+"%)":"hsva("+r+", "+a+"%, "+l+"%, "+this._roundA+")"},toHsl:function(){var n=Yg(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=Yg(this._r,this._g,this._b),r=Math.round(n.h*360),a=Math.round(n.s*100),l=Math.round(n.l*100);return this._a==1?"hsl("+r+", "+a+"%, "+l+"%)":"hsla("+r+", "+a+"%, "+l+"%, "+this._roundA+")"},toHex:function(n){return Jg(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return QC(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Be(this._r,255)*100)+"%",g:Math.round(Be(this._g,255)*100)+"%",b:Math.round(Be(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Be(this._r,255)*100)+"%, "+Math.round(Be(this._g,255)*100)+"%, "+Math.round(Be(this._b,255)*100)+"%)":"rgba("+Math.round(Be(this._r,255)*100)+"%, "+Math.round(Be(this._g,255)*100)+"%, "+Math.round(Be(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ob[Jg(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var r="#"+em(this._r,this._g,this._b,this._a),a=r,l=this._gradientType?"GradientType = 1, ":"";if(n){var u=ye(n);a="#"+em(u._r,u._g,u._b,u._a)}return"progid:DXImageTransform.Microsoft.gradient("+l+"startColorstr="+r+",endColorstr="+a+")"},toString:function(n){var r=!!n;n=n||this._format;var a=!1,l=this._a<1&&this._a>=0,u=!r&&l&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return u?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(a=this.toRgbString()),n==="prgb"&&(a=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(a=this.toHexString()),n==="hex3"&&(a=this.toHexString(!0)),n==="hex4"&&(a=this.toHex8String(!0)),n==="hex8"&&(a=this.toHex8String()),n==="name"&&(a=this.toName()),n==="hsl"&&(a=this.toHslString()),n==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},clone:function(){return ye(this.toString())},_applyModification:function(n,r){var a=n.apply(null,[this].concat([].slice.call(r)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(YC,arguments)},brighten:function(){return this._applyModification(ZC,arguments)},darken:function(){return this._applyModification(JC,arguments)},desaturate:function(){return this._applyModification(KC,arguments)},saturate:function(){return this._applyModification(GC,arguments)},greyscale:function(){return this._applyModification(XC,arguments)},spin:function(){return this._applyModification(eb,arguments)},_applyCombination:function(n,r){return n.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(rb,arguments)},complement:function(){return this._applyCombination(tb,arguments)},monochromatic:function(){return this._applyCombination(ib,arguments)},splitcomplement:function(){return this._applyCombination(nb,arguments)},triad:function(){return this._applyCombination(tm,[3])},tetrad:function(){return this._applyCombination(tm,[4])}};ye.fromRatio=function(e,n){if(bs(e)=="object"){var r={};for(var a in e)e.hasOwnProperty(a)&&(a==="a"?r[a]=e[a]:r[a]=da(e[a]));e=r}return ye(e,n)};function BC(e){var n={r:0,g:0,b:0},r=1,a=null,l=null,u=null,c=!1,h=!1;return typeof e=="string"&&(e=ub(e)),bs(e)=="object"&&($n(e.r)&&$n(e.g)&&$n(e.b)?(n=VC(e.r,e.g,e.b),c=!0,h=String(e.r).substr(-1)==="%"?"prgb":"rgb"):$n(e.h)&&$n(e.s)&&$n(e.v)?(a=da(e.s),l=da(e.v),n=qC(e.h,a,l),c=!0,h="hsv"):$n(e.h)&&$n(e.s)&&$n(e.l)&&(a=da(e.s),u=da(e.l),n=WC(e.h,a,u),c=!0,h="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=ay(r),{ok:c,format:e.format||h,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function VC(e,n,r){return{r:Be(e,255)*255,g:Be(n,255)*255,b:Be(r,255)*255}}function Yg(e,n,r){e=Be(e,255),n=Be(n,255),r=Be(r,255);var a=Math.max(e,n,r),l=Math.min(e,n,r),u,c,h=(a+l)/2;if(a==l)u=c=0;else{var d=a-l;switch(c=h>.5?d/(2-a-l):d/(a+l),a){case e:u=(n-r)/d+(n<r?6:0);break;case n:u=(r-e)/d+2;break;case r:u=(e-n)/d+4;break}u/=6}return{h:u,s:c,l:h}}function WC(e,n,r){var a,l,u;e=Be(e,360),n=Be(n,100),r=Be(r,100);function c(g,y,m){return m<0&&(m+=1),m>1&&(m-=1),m<1/6?g+(y-g)*6*m:m<1/2?y:m<2/3?g+(y-g)*(2/3-m)*6:g}if(n===0)a=l=u=r;else{var h=r<.5?r*(1+n):r+n-r*n,d=2*r-h;a=c(d,h,e+1/3),l=c(d,h,e),u=c(d,h,e-1/3)}return{r:a*255,g:l*255,b:u*255}}function Zg(e,n,r){e=Be(e,255),n=Be(n,255),r=Be(r,255);var a=Math.max(e,n,r),l=Math.min(e,n,r),u,c,h=a,d=a-l;if(c=a===0?0:d/a,a==l)u=0;else{switch(a){case e:u=(n-r)/d+(n<r?6:0);break;case n:u=(r-e)/d+2;break;case r:u=(e-n)/d+4;break}u/=6}return{h:u,s:c,v:h}}function qC(e,n,r){e=Be(e,360)*6,n=Be(n,100),r=Be(r,100);var a=Math.floor(e),l=e-a,u=r*(1-n),c=r*(1-l*n),h=r*(1-(1-l)*n),d=a%6,g=[r,c,u,u,h,r][d],y=[h,r,r,c,u,u][d],m=[u,u,h,r,r,c][d];return{r:g*255,g:y*255,b:m*255}}function Jg(e,n,r,a){var l=[dn(Math.round(e).toString(16)),dn(Math.round(n).toString(16)),dn(Math.round(r).toString(16))];return a&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function QC(e,n,r,a,l){var u=[dn(Math.round(e).toString(16)),dn(Math.round(n).toString(16)),dn(Math.round(r).toString(16)),dn(ly(a))];return l&&u[0].charAt(0)==u[0].charAt(1)&&u[1].charAt(0)==u[1].charAt(1)&&u[2].charAt(0)==u[2].charAt(1)&&u[3].charAt(0)==u[3].charAt(1)?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0)+u[3].charAt(0):u.join("")}function em(e,n,r,a){var l=[dn(ly(a)),dn(Math.round(e).toString(16)),dn(Math.round(n).toString(16)),dn(Math.round(r).toString(16))];return l.join("")}ye.equals=function(e,n){return!e||!n?!1:ye(e).toRgbString()==ye(n).toRgbString()};ye.random=function(){return ye.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function KC(e,n){n=n===0?0:n||10;var r=ye(e).toHsl();return r.s-=n/100,r.s=js(r.s),ye(r)}function GC(e,n){n=n===0?0:n||10;var r=ye(e).toHsl();return r.s+=n/100,r.s=js(r.s),ye(r)}function XC(e){return ye(e).desaturate(100)}function YC(e,n){n=n===0?0:n||10;var r=ye(e).toHsl();return r.l+=n/100,r.l=js(r.l),ye(r)}function ZC(e,n){n=n===0?0:n||10;var r=ye(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),ye(r)}function JC(e,n){n=n===0?0:n||10;var r=ye(e).toHsl();return r.l-=n/100,r.l=js(r.l),ye(r)}function eb(e,n){var r=ye(e).toHsl(),a=(r.h+n)%360;return r.h=a<0?360+a:a,ye(r)}function tb(e){var n=ye(e).toHsl();return n.h=(n.h+180)%360,ye(n)}function tm(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var r=ye(e).toHsl(),a=[ye(e)],l=360/n,u=1;u<n;u++)a.push(ye({h:(r.h+u*l)%360,s:r.s,l:r.l}));return a}function nb(e){var n=ye(e).toHsl(),r=n.h;return[ye(e),ye({h:(r+72)%360,s:n.s,l:n.l}),ye({h:(r+216)%360,s:n.s,l:n.l})]}function rb(e,n,r){n=n||6,r=r||30;var a=ye(e).toHsl(),l=360/r,u=[ye(e)];for(a.h=(a.h-(l*n>>1)+720)%360;--n;)a.h=(a.h+l)%360,u.push(ye(a));return u}function ib(e,n){n=n||6;for(var r=ye(e).toHsv(),a=r.h,l=r.s,u=r.v,c=[],h=1/n;n--;)c.push(ye({h:a,s:l,v:u})),u=(u+h)%1;return c}ye.mix=function(e,n,r){r=r===0?0:r||50;var a=ye(e).toRgb(),l=ye(n).toRgb(),u=r/100,c={r:(l.r-a.r)*u+a.r,g:(l.g-a.g)*u+a.g,b:(l.b-a.b)*u+a.b,a:(l.a-a.a)*u+a.a};return ye(c)};ye.readability=function(e,n){var r=ye(e),a=ye(n);return(Math.max(r.getLuminance(),a.getLuminance())+.05)/(Math.min(r.getLuminance(),a.getLuminance())+.05)};ye.isReadable=function(e,n,r){var a=ye.readability(e,n),l,u;switch(u=!1,l=cb(r),l.level+l.size){case"AAsmall":case"AAAlarge":u=a>=4.5;break;case"AAlarge":u=a>=3;break;case"AAAsmall":u=a>=7;break}return u};ye.mostReadable=function(e,n,r){var a=null,l=0,u,c,h,d;r=r||{},c=r.includeFallbackColors,h=r.level,d=r.size;for(var g=0;g<n.length;g++)u=ye.readability(e,n[g]),u>l&&(l=u,a=ye(n[g]));return ye.isReadable(e,a,{level:h,size:d})||!c?a:(r.includeFallbackColors=!1,ye.mostReadable(e,["#fff","#000"],r))};var Ef=ye.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ob=ye.hexNames=ab(Ef);function ab(e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[e[r]]=r);return n}function ay(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Be(e,n){lb(e)&&(e="100%");var r=sb(e);return e=Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function js(e){return Math.min(1,Math.max(0,e))}function Lt(e){return parseInt(e,16)}function lb(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function sb(e){return typeof e=="string"&&e.indexOf("%")!=-1}function dn(e){return e.length==1?"0"+e:""+e}function da(e){return e<=1&&(e=e*100+"%"),e}function ly(e){return Math.round(parseFloat(e)*255).toString(16)}function nm(e){return Lt(e)/255}var sn=function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",r="(?:"+n+")|(?:"+e+")",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",l="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+a),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+a),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+a),hsva:new RegExp("hsva"+l),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function $n(e){return!!sn.CSS_UNIT.exec(e)}function ub(e){e=e.replace(UC,"").replace(HC,"").toLowerCase();var n=!1;if(Ef[e])e=Ef[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=sn.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=sn.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=sn.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=sn.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=sn.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=sn.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=sn.hex8.exec(e))?{r:Lt(r[1]),g:Lt(r[2]),b:Lt(r[3]),a:nm(r[4]),format:n?"name":"hex8"}:(r=sn.hex6.exec(e))?{r:Lt(r[1]),g:Lt(r[2]),b:Lt(r[3]),format:n?"name":"hex"}:(r=sn.hex4.exec(e))?{r:Lt(r[1]+""+r[1]),g:Lt(r[2]+""+r[2]),b:Lt(r[3]+""+r[3]),a:nm(r[4]+""+r[4]),format:n?"name":"hex8"}:(r=sn.hex3.exec(e))?{r:Lt(r[1]+""+r[1]),g:Lt(r[2]+""+r[2]),b:Lt(r[3]+""+r[3]),format:n?"name":"hex"}:!1}function cb(e){var n,r;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:n,size:r}}function Pf(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=Array(n);r<n;r++)a[r]=e[r];return a}function fb(e){if(Array.isArray(e))return Pf(e)}function sy(e,n,r){if(typeof e=="function"?e===n:e.has(n))return arguments.length<3?n:r;throw new TypeError("Private element is not present on this object")}function hb(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function db(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Qt(e,n){return e.get(sy(e,n))}function rm(e,n,r){hb(e,n),n.set(e,r)}function im(e,n,r){return e.set(sy(e,n),r),r}function pb(e,n){for(var r=0;r<n.length;r++){var a=n[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,xb(a.key),a)}}function gb(e,n,r){return n&&pb(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
103
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vb(e){return fb(e)||mb(e)||wb(e)||yb()}function _b(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,n);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function xb(e){var n=_b(e,"string");return typeof n=="symbol"?n:n+""}function wb(e,n){if(e){if(typeof e=="string")return Pf(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pf(e,n):void 0}}var kb=123,Sb=function(n){return"#".concat(Math.min(n,Math.pow(2,24)).toString(16).padStart(6,"0"))},uy=function(n,r,a){return(n<<16)+(r<<8)+a},Cb=function(n){var r=ye(n).toRgb(),a=r.r,l=r.g,u=r.b;return uy(a,l,u)},om=function(n,r){return n*kb%Math.pow(2,r)},Xr=new WeakMap,Un=new WeakMap,bb=function(){function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6;db(this,e),rm(this,Xr,void 0),rm(this,Un,void 0),im(Un,this,n),this.reset()}return gb(e,[{key:"reset",value:function(){im(Xr,this,["__reserved for background__"])}},{key:"register",value:function(r){if(Qt(Xr,this).length>=Math.pow(2,24-Qt(Un,this)))return null;var a=Qt(Xr,this).length,l=om(a,Qt(Un,this)),u=Sb(a+(l<<24-Qt(Un,this)));return Qt(Xr,this).push(r),u}},{key:"lookup",value:function(r){if(!r)return null;var a=typeof r=="string"?Cb(r):uy.apply(void 0,vb(r));if(!a)return null;var l=a&Math.pow(2,24-Qt(Un,this))-1,u=a>>24-Qt(Un,this)&Math.pow(2,Qt(Un,this))-1;return om(l,Qt(Un,this))!==u||l>=Qt(Xr,this).length?null:Qt(Xr,this)[l]}}])}(),Da,Ve,cy,fy,Yr,am,hy,dy,py,Jf,Rf,Tf,Ca={},gy=[],Eb=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ds=Array.isArray;function bn(e,n){for(var r in n)e[r]=n[r];return e}function eh(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Pb(e,n,r){var a,l,u,c={};for(u in n)u=="key"?a=n[u]:u=="ref"?l=n[u]:c[u]=n[u];if(arguments.length>2&&(c.children=arguments.length>3?Da.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)c[u]===void 0&&(c[u]=e.defaultProps[u]);return pa(e,c,a,l,null)}function pa(e,n,r,a,l){var u={type:e,props:n,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:l??++cy,__i:-1,__u:0};return l==null&&Ve.vnode!=null&&Ve.vnode(u),u}function Is(e){return e.children}function ds(e,n){this.props=e,this.context=n}function lo(e,n){if(n==null)return e.__?lo(e.__,e.__i+1):null;for(var r;n<e.__k.length;n++)if((r=e.__k[n])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?lo(e):null}function my(e){var n,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((r=e.__k[n])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return my(e)}}function lm(e){(!e.__d&&(e.__d=!0)&&Yr.push(e)&&!Es.__r++||am!=Ve.debounceRendering)&&((am=Ve.debounceRendering)||hy)(Es)}function Es(){for(var e,n,r,a,l,u,c,h=1;Yr.length;)Yr.length>h&&Yr.sort(dy),e=Yr.shift(),h=Yr.length,e.__d&&(r=void 0,l=(a=(n=e).__v).__e,u=[],c=[],n.__P&&((r=bn({},a)).__v=a.__v+1,Ve.vnode&&Ve.vnode(r),th(n.__P,r,a,n.__n,n.__P.namespaceURI,32&a.__u?[l]:null,u,l??lo(a),!!(32&a.__u),c),r.__v=a.__v,r.__.__k[r.__i]=r,_y(u,r,c),r.__e!=l&&my(r)));Es.__r=0}function yy(e,n,r,a,l,u,c,h,d,g,y){var m,_,x,k,C,b,w=a&&a.__k||gy,E=n.length;for(d=Rb(r,n,w,d,E),m=0;m<E;m++)(x=r.__k[m])!=null&&(_=x.__i==-1?Ca:w[x.__i]||Ca,x.__i=m,b=th(e,x,_,l,u,c,h,d,g,y),k=x.__e,x.ref&&_.ref!=x.ref&&(_.ref&&nh(_.ref,null,x),y.push(x.ref,x.__c||k,x)),C==null&&k!=null&&(C=k),4&x.__u||_.__k===x.__k?d=vy(x,d,e):typeof x.type=="function"&&b!==void 0?d=b:k&&(d=k.nextSibling),x.__u&=-7);return r.__e=C,d}function Rb(e,n,r,a,l){var u,c,h,d,g,y=r.length,m=y,_=0;for(e.__k=new Array(l),u=0;u<l;u++)(c=n[u])!=null&&typeof c!="boolean"&&typeof c!="function"?(d=u+_,(c=e.__k[u]=typeof c=="string"||typeof c=="number"||typeof c=="bigint"||c.constructor==String?pa(null,c,null,null,null):Ds(c)?pa(Is,{children:c},null,null,null):c.constructor==null&&c.__b>0?pa(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):c).__=e,c.__b=e.__b+1,h=null,(g=c.__i=Tb(c,r,d,m))!=-1&&(m--,(h=r[g])&&(h.__u|=2)),h==null||h.__v==null?(g==-1&&(l>y?_--:l<y&&_++),typeof c.type!="function"&&(c.__u|=4)):g!=d&&(g==d-1?_--:g==d+1?_++:(g>d?_--:_++,c.__u|=4))):e.__k[u]=null;if(m)for(u=0;u<y;u++)(h=r[u])!=null&&(2&h.__u)==0&&(h.__e==a&&(a=lo(h)),wy(h,h));return a}function vy(e,n,r){var a,l;if(typeof e.type=="function"){for(a=e.__k,l=0;a&&l<a.length;l++)a[l]&&(a[l].__=e,n=vy(a[l],n,r));return n}e.__e!=n&&(n&&e.type&&!r.contains(n)&&(n=lo(e)),r.insertBefore(e.__e,n||null),n=e.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType==8);return n}function Tb(e,n,r,a){var l,u,c=e.key,h=e.type,d=n[r];if(d===null&&e.key==null||d&&c==d.key&&h==d.type&&(2&d.__u)==0)return r;if(a>(d!=null&&(2&d.__u)==0?1:0))for(l=r-1,u=r+1;l>=0||u<n.length;){if(l>=0){if((d=n[l])&&(2&d.__u)==0&&c==d.key&&h==d.type)return l;l--}if(u<n.length){if((d=n[u])&&(2&d.__u)==0&&c==d.key&&h==d.type)return u;u++}}return-1}function sm(e,n,r){n[0]=="-"?e.setProperty(n,r??""):e[n]=r==null?"":typeof r!="number"||Eb.test(n)?r:r+"px"}function rs(e,n,r,a,l){var u,c;e:if(n=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof a=="string"&&(e.style.cssText=a=""),a)for(n in a)r&&n in r||sm(e.style,n,"");if(r)for(n in r)a&&r[n]==a[n]||sm(e.style,n,r[n])}else if(n[0]=="o"&&n[1]=="n")u=n!=(n=n.replace(py,"$1")),c=n.toLowerCase(),n=c in e||n=="onFocusOut"||n=="onFocusIn"?c.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+u]=r,r?a?r.u=a.u:(r.u=Jf,e.addEventListener(n,u?Tf:Rf,u)):e.removeEventListener(n,u?Tf:Rf,u);else{if(l=="http://www.w3.org/2000/svg")n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(n!="width"&&n!="height"&&n!="href"&&n!="list"&&n!="form"&&n!="tabIndex"&&n!="download"&&n!="rowSpan"&&n!="colSpan"&&n!="role"&&n!="popover"&&n in e)try{e[n]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&n[4]!="-"?e.removeAttribute(n):e.setAttribute(n,n=="popover"&&r==1?"":r))}}function um(e){return function(n){if(this.l){var r=this.l[n.type+e];if(n.t==null)n.t=Jf++;else if(n.t<r.u)return;return r(Ve.event?Ve.event(n):n)}}}function th(e,n,r,a,l,u,c,h,d,g){var y,m,_,x,k,C,b,w,E,M,P,T,z,D,I,q,K,J=n.type;if(n.constructor!=null)return null;128&r.__u&&(d=!!(32&r.__u),u=[h=n.__e=r.__e]),(y=Ve.__b)&&y(n);e:if(typeof J=="function")try{if(w=n.props,E="prototype"in J&&J.prototype.render,M=(y=J.contextType)&&a[y.__c],P=y?M?M.props.value:y.__:a,r.__c?b=(m=n.__c=r.__c).__=m.__E:(E?n.__c=m=new J(w,P):(n.__c=m=new ds(w,P),m.constructor=J,m.render=Nb),M&&M.sub(m),m.props=w,m.state||(m.state={}),m.context=P,m.__n=a,_=m.__d=!0,m.__h=[],m._sb=[]),E&&m.__s==null&&(m.__s=m.state),E&&J.getDerivedStateFromProps!=null&&(m.__s==m.state&&(m.__s=bn({},m.__s)),bn(m.__s,J.getDerivedStateFromProps(w,m.__s))),x=m.props,k=m.state,m.__v=n,_)E&&J.getDerivedStateFromProps==null&&m.componentWillMount!=null&&m.componentWillMount(),E&&m.componentDidMount!=null&&m.__h.push(m.componentDidMount);else{if(E&&J.getDerivedStateFromProps==null&&w!==x&&m.componentWillReceiveProps!=null&&m.componentWillReceiveProps(w,P),!m.__e&&m.shouldComponentUpdate!=null&&m.shouldComponentUpdate(w,m.__s,P)===!1||n.__v==r.__v){for(n.__v!=r.__v&&(m.props=w,m.state=m.__s,m.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.some(function(ae){ae&&(ae.__=n)}),T=0;T<m._sb.length;T++)m.__h.push(m._sb[T]);m._sb=[],m.__h.length&&c.push(m);break e}m.componentWillUpdate!=null&&m.componentWillUpdate(w,m.__s,P),E&&m.componentDidUpdate!=null&&m.__h.push(function(){m.componentDidUpdate(x,k,C)})}if(m.context=P,m.props=w,m.__P=e,m.__e=!1,z=Ve.__r,D=0,E){for(m.state=m.__s,m.__d=!1,z&&z(n),y=m.render(m.props,m.state,m.context),I=0;I<m._sb.length;I++)m.__h.push(m._sb[I]);m._sb=[]}else do m.__d=!1,z&&z(n),y=m.render(m.props,m.state,m.context),m.state=m.__s;while(m.__d&&++D<25);m.state=m.__s,m.getChildContext!=null&&(a=bn(bn({},a),m.getChildContext())),E&&!_&&m.getSnapshotBeforeUpdate!=null&&(C=m.getSnapshotBeforeUpdate(x,k)),q=y,y!=null&&y.type===Is&&y.key==null&&(q=xy(y.props.children)),h=yy(e,Ds(q)?q:[q],n,r,a,l,u,c,h,d,g),m.base=n.__e,n.__u&=-161,m.__h.length&&c.push(m),b&&(m.__E=m.__=null)}catch(ae){if(n.__v=null,d||u!=null)if(ae.then){for(n.__u|=d?160:128;h&&h.nodeType==8&&h.nextSibling;)h=h.nextSibling;u[u.indexOf(h)]=null,n.__e=h}else for(K=u.length;K--;)eh(u[K]);else n.__e=r.__e,n.__k=r.__k;Ve.__e(ae,n,r)}else u==null&&n.__v==r.__v?(n.__k=r.__k,n.__e=r.__e):h=n.__e=Mb(r.__e,n,r,a,l,u,c,d,g);return(y=Ve.diffed)&&y(n),128&n.__u?void 0:h}function _y(e,n,r){for(var a=0;a<r.length;a++)nh(r[a],r[++a],r[++a]);Ve.__c&&Ve.__c(n,e),e.some(function(l){try{e=l.__h,l.__h=[],e.some(function(u){u.call(l)})}catch(u){Ve.__e(u,l.__v)}})}function xy(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Ds(e)?e.map(xy):bn({},e)}function Mb(e,n,r,a,l,u,c,h,d){var g,y,m,_,x,k,C,b=r.props,w=n.props,E=n.type;if(E=="svg"?l="http://www.w3.org/2000/svg":E=="math"?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),u!=null){for(g=0;g<u.length;g++)if((x=u[g])&&"setAttribute"in x==!!E&&(E?x.localName==E:x.nodeType==3)){e=x,u[g]=null;break}}if(e==null){if(E==null)return document.createTextNode(w);e=document.createElementNS(l,E,w.is&&w),h&&(Ve.__m&&Ve.__m(n,u),h=!1),u=null}if(E==null)b===w||h&&e.data==w||(e.data=w);else{if(u=u&&Da.call(e.childNodes),b=r.props||Ca,!h&&u!=null)for(b={},g=0;g<e.attributes.length;g++)b[(x=e.attributes[g]).name]=x.value;for(g in b)if(x=b[g],g!="children"){if(g=="dangerouslySetInnerHTML")m=x;else if(!(g in w)){if(g=="value"&&"defaultValue"in w||g=="checked"&&"defaultChecked"in w)continue;rs(e,g,null,x,l)}}for(g in w)x=w[g],g=="children"?_=x:g=="dangerouslySetInnerHTML"?y=x:g=="value"?k=x:g=="checked"?C=x:h&&typeof x!="function"||b[g]===x||rs(e,g,x,b[g],l);if(y)h||m&&(y.__html==m.__html||y.__html==e.innerHTML)||(e.innerHTML=y.__html),n.__k=[];else if(m&&(e.innerHTML=""),yy(n.type=="template"?e.content:e,Ds(_)?_:[_],n,r,a,E=="foreignObject"?"http://www.w3.org/1999/xhtml":l,u,c,u?u[0]:r.__k&&lo(r,0),h,d),u!=null)for(g=u.length;g--;)eh(u[g]);h||(g="value",E=="progress"&&k==null?e.removeAttribute("value"):k!=null&&(k!==e[g]||E=="progress"&&!k||E=="option"&&k!=b[g])&&rs(e,g,k,b[g],l),g="checked",C!=null&&C!=e[g]&&rs(e,g,C,b[g],l))}return e}function nh(e,n,r){try{if(typeof e=="function"){var a=typeof e.__u=="function";a&&e.__u(),a&&n==null||(e.__u=e(n))}else e.current=n}catch(l){Ve.__e(l,r)}}function wy(e,n,r){var a,l;if(Ve.unmount&&Ve.unmount(e),(a=e.ref)&&(a.current&&a.current!=e.__e||nh(a,null,n)),(a=e.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(u){Ve.__e(u,n)}a.base=a.__P=null}if(a=e.__k)for(l=0;l<a.length;l++)a[l]&&wy(a[l],n,r||typeof e.type!="function");r||eh(e.__e),e.__c=e.__=e.__e=void 0}function Nb(e,n,r){return this.constructor(e,r)}function Ob(e,n,r){var a,l,u,c;n==document&&(n=document.documentElement),Ve.__&&Ve.__(e,n),l=(a=!1)?null:n.__k,u=[],c=[],th(n,e=n.__k=Pb(Is,null,[e]),l||Ca,Ca,n.namespaceURI,l?null:n.firstChild?Da.call(n.childNodes):null,u,l?l.__e:n.firstChild,a,c),_y(u,e,c)}function ky(e,n,r){var a,l,u,c,h=bn({},e.props);for(u in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),n)u=="key"?a=n[u]:u=="ref"?l=n[u]:h[u]=n[u]===void 0&&c!=null?c[u]:n[u];return arguments.length>2&&(h.children=arguments.length>3?Da.call(arguments,2):r),pa(e.type,h,a||e.key,l||e.ref,null)}Da=gy.slice,Ve={__e:function(e,n,r,a){for(var l,u,c;n=n.__;)if((l=n.__c)&&!l.__)try{if((u=l.constructor)&&u.getDerivedStateFromError!=null&&(l.setState(u.getDerivedStateFromError(e)),c=l.__d),l.componentDidCatch!=null&&(l.componentDidCatch(e,a||{}),c=l.__d),c)return l.__E=l}catch(h){e=h}throw e}},cy=0,fy=function(e){return e!=null&&e.constructor==null},ds.prototype.setState=function(e,n){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=bn({},this.state),typeof e=="function"&&(e=e(bn({},r),this.props)),e&&bn(r,e),e!=null&&this.__v&&(n&&this._sb.push(n),lm(this))},ds.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),lm(this))},ds.prototype.render=Is,Yr=[],hy=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,dy=function(e,n){return e.__v.__b-n.__v.__b},Es.__r=0,py=/(PointerCapture)$|Capture$/i,Jf=0,Rf=um(!1),Tf=um(!0);function cm(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=Array(n);r<n;r++)a[r]=e[r];return a}function Ab(e){if(Array.isArray(e))return e}function zb(e,n,r){return(n=$b(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function jb(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,l,u,c,h=[],d=!0,g=!1;try{if(u=(r=r.call(e)).next,n!==0)for(;!(d=(a=u.call(r)).done)&&(h.push(a.value),h.length!==n);d=!0);}catch(y){g=!0,l=y}finally{try{if(!d&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(g)throw l}}return h}}function Db(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
104
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fm(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,a)}return r}function Ib(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?fm(Object(r),!0).forEach(function(a){zb(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fm(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Lb(e,n){return Ab(e)||jb(e,n)||Ub(e,n)||Db()}function Fb(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,n);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function $b(e){var n=Fb(e,"string");return typeof n=="symbol"?n:n+""}function Ps(e){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ps(e)}function Ub(e,n){if(e){if(typeof e=="string")return cm(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cm(e,n):void 0}}var Mf=function(n){if(Ps(n)!=="object")return n;var r=ky(n);if(r.props){var a;r.props=Ib({},r.props),r!=null&&(a=r.props)!==null&&a!==void 0&&a.children&&(r.props.children=Array.isArray(r.props.children)?r.props.children.map(Mf):Mf(r.props.children))}return r},Hb=function(n){return fy(ky(n))},Bb=function(n,r){delete r.__k,Ob(Mf(n),r)};function Vb(e,n){n===void 0&&(n={});var r=n.insertAt;if(!(typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",r==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}var Wb=`.float-tooltip-kap {
|
|
105
|
-
position: absolute;
|
|
106
|
-
width: max-content; /* prevent shrinking near right edge */
|
|
107
|
-
max-width: max(50%, 150px);
|
|
108
|
-
padding: 3px 5px;
|
|
109
|
-
border-radius: 3px;
|
|
110
|
-
font: 12px sans-serif;
|
|
111
|
-
color: #eee;
|
|
112
|
-
background: rgba(0,0,0,0.6);
|
|
113
|
-
pointer-events: none;
|
|
114
|
-
}
|
|
115
|
-
`;Vb(Wb);var qb=Zf({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(n,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=a.style,u=l===void 0?{}:l,c=!!n&&Ps(n)==="object"&&!!n.node&&typeof n.node=="function",h=Xt(c?n.node():n);h.style("position")==="static"&&h.style("position","relative"),r.tooltipEl=h.append("div").attr("class","float-tooltip-kap"),Object.entries(u).forEach(function(g){var y=Lb(g,2),m=y[0],_=y[1];return r.tooltipEl.style(m,_)}),r.tooltipEl.style("left","-10000px").style("display","none");var d="tooltip-".concat(Math.round(Math.random()*1e12));r.mouseInside=!1,h.on("mousemove.".concat(d),function(g){r.mouseInside=!0;var y=wn(g),m=h.node(),_=m.offsetWidth,x=m.offsetHeight,k=[r.offsetX===null||r.offsetX===void 0?"-".concat(y[0]/_*100,"%"):typeof r.offsetX=="number"?"calc(-50% + ".concat(r.offsetX,"px)"):r.offsetX,r.offsetY===null||r.offsetY===void 0?x>130&&x-y[1]<100?"calc(-100% - 6px)":"21px":typeof r.offsetY=="number"?r.offsetY<0?"calc(-100% - ".concat(Math.abs(r.offsetY),"px)"):"".concat(r.offsetY,"px"):r.offsetY];r.tooltipEl.style("left",y[0]+"px").style("top",y[1]+"px").style("transform","translate(".concat(k.join(","),")")),r.content&&r.tooltipEl.style("display","inline")}),h.on("mouseover.".concat(d),function(){r.mouseInside=!0,r.content&&r.tooltipEl.style("display","inline")}),h.on("mouseout.".concat(d),function(){r.mouseInside=!1,r.tooltipEl.style("display","none")})},update:function(n){n.tooltipEl.style("display",n.content&&n.mouseInside?"inline":"none"),n.content?n.content instanceof HTMLElement?(n.tooltipEl.text(""),n.tooltipEl.append(function(){return n.content})):typeof n.content=="string"?n.tooltipEl.html(n.content):Hb(n.content)?(n.tooltipEl.text(""),Bb(n.content,n.tooltipEl.node())):(n.tooltipEl.style("display","none"),console.warn("Tooltip content is invalid, skipping.",n.content,n.content.toString())):n.tooltipEl.text("")}});function Qb(e,n,r){var a,l=1;e==null&&(e=0),n==null&&(n=0),r==null&&(r=0);function u(){var c,h=a.length,d,g=0,y=0,m=0;for(c=0;c<h;++c)d=a[c],g+=d.x||0,y+=d.y||0,m+=d.z||0;for(g=(g/h-e)*l,y=(y/h-n)*l,m=(m/h-r)*l,c=0;c<h;++c)d=a[c],g&&(d.x-=g),y&&(d.y-=y),m&&(d.z-=m)}return u.initialize=function(c){a=c},u.x=function(c){return arguments.length?(e=+c,u):e},u.y=function(c){return arguments.length?(n=+c,u):n},u.z=function(c){return arguments.length?(r=+c,u):r},u.strength=function(c){return arguments.length?(l=+c,u):l},u}function Kb(e){const n=+this._x.call(null,e);return Sy(this.cover(n),n,e)}function Sy(e,n,r){if(isNaN(n))return e;var a,l=e._root,u={data:r},c=e._x0,h=e._x1,d,g,y,m,_;if(!l)return e._root=u,e;for(;l.length;)if((y=n>=(d=(c+h)/2))?c=d:h=d,a=l,!(l=l[m=+y]))return a[m]=u,e;if(g=+e._x.call(null,l.data),n===g)return u.next=l,a?a[m]=u:e._root=u,e;do a=a?a[m]=new Array(2):e._root=new Array(2),(y=n>=(d=(c+h)/2))?c=d:h=d;while((m=+y)==(_=+(g>=d)));return a[_]=l,a[m]=u,e}function Gb(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,r=new Float64Array(n);let a=1/0,l=-1/0;for(let u=0,c;u<n;++u)isNaN(c=+this._x.call(null,e[u]))||(r[u]=c,c<a&&(a=c),c>l&&(l=c));if(a>l)return this;this.cover(a).cover(l);for(let u=0;u<n;++u)Sy(this,r[u],e[u]);return this}function Xb(e){if(isNaN(e=+e))return this;var n=this._x0,r=this._x1;if(isNaN(n))r=(n=Math.floor(e))+1;else{for(var a=r-n||1,l=this._root,u,c;n>e||e>=r;)switch(c=+(e<n),u=new Array(2),u[c]=l,l=u,a*=2,c){case 0:r=n+a;break;case 1:n=r-a;break}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._x1=r,this}function Yb(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function Zb(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function Xn(e,n,r){this.node=e,this.x0=n,this.x1=r}function Jb(e,n){var r,a=this._x0,l,u,c=this._x1,h=[],d=this._root,g,y;for(d&&h.push(new Xn(d,a,c)),n==null?n=1/0:(a=e-n,c=e+n);g=h.pop();)if(!(!(d=g.node)||(l=g.x0)>c||(u=g.x1)<a))if(d.length){var m=(l+u)/2;h.push(new Xn(d[1],m,u),new Xn(d[0],l,m)),(y=+(e>=m))&&(g=h[h.length-1],h[h.length-1]=h[h.length-1-y],h[h.length-1-y]=g)}else{var _=Math.abs(e-+this._x.call(null,d.data));_<n&&(n=_,a=e-_,c=e+_,r=d.data)}return r}function eE(e){if(isNaN(d=+this._x.call(null,e)))return this;var n,r=this._root,a,l,u,c=this._x0,h=this._x1,d,g,y,m,_;if(!r)return this;if(r.length)for(;;){if((y=d>=(g=(c+h)/2))?c=g:h=g,n=r,!(r=r[m=+y]))return this;if(!r.length)break;n[m+1&1]&&(a=n,_=m)}for(;r.data!==e;)if(l=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,l?(u?l.next=u:delete l.next,this):n?(u?n[m]=u:delete n[m],(r=n[0]||n[1])&&r===(n[1]||n[0])&&!r.length&&(a?a[_]=r:this._root=r),this):(this._root=u,this)}function tE(e){for(var n=0,r=e.length;n<r;++n)this.remove(e[n]);return this}function nE(){return this._root}function rE(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function iE(e){var n=[],r,a=this._root,l,u,c;for(a&&n.push(new Xn(a,this._x0,this._x1));r=n.pop();)if(!e(a=r.node,u=r.x0,c=r.x1)&&a.length){var h=(u+c)/2;(l=a[1])&&n.push(new Xn(l,h,c)),(l=a[0])&&n.push(new Xn(l,u,h))}return this}function oE(e){var n=[],r=[],a;for(this._root&&n.push(new Xn(this._root,this._x0,this._x1));a=n.pop();){var l=a.node;if(l.length){var u,c=a.x0,h=a.x1,d=(c+h)/2;(u=l[0])&&n.push(new Xn(u,c,d)),(u=l[1])&&n.push(new Xn(u,d,h))}r.push(a)}for(;a=r.pop();)e(a.node,a.x0,a.x1);return this}function aE(e){return e[0]}function lE(e){return arguments.length?(this._x=e,this):this._x}function Cy(e,n){var r=new rh(n??aE,NaN,NaN);return e==null?r:r.addAll(e)}function rh(e,n,r){this._x=e,this._x0=n,this._x1=r,this._root=void 0}function hm(e){for(var n={data:e.data},r=n;e=e.next;)r=r.next={data:e.data};return n}var At=Cy.prototype=rh.prototype;At.copy=function(){var e=new rh(this._x,this._x0,this._x1),n=this._root,r,a;if(!n)return e;if(!n.length)return e._root=hm(n),e;for(r=[{source:n,target:e._root=new Array(2)}];n=r.pop();)for(var l=0;l<2;++l)(a=n.source[l])&&(a.length?r.push({source:a,target:n.target[l]=new Array(2)}):n.target[l]=hm(a));return e};At.add=Kb;At.addAll=Gb;At.cover=Xb;At.data=Yb;At.extent=Zb;At.find=Jb;At.remove=eE;At.removeAll=tE;At.root=nE;At.size=rE;At.visit=iE;At.visitAfter=oE;At.x=lE;function sE(e){const n=+this._x.call(null,e),r=+this._y.call(null,e);return by(this.cover(n,r),n,r,e)}function by(e,n,r,a){if(isNaN(n)||isNaN(r))return e;var l,u=e._root,c={data:a},h=e._x0,d=e._y0,g=e._x1,y=e._y1,m,_,x,k,C,b,w,E;if(!u)return e._root=c,e;for(;u.length;)if((C=n>=(m=(h+g)/2))?h=m:g=m,(b=r>=(_=(d+y)/2))?d=_:y=_,l=u,!(u=u[w=b<<1|C]))return l[w]=c,e;if(x=+e._x.call(null,u.data),k=+e._y.call(null,u.data),n===x&&r===k)return c.next=u,l?l[w]=c:e._root=c,e;do l=l?l[w]=new Array(4):e._root=new Array(4),(C=n>=(m=(h+g)/2))?h=m:g=m,(b=r>=(_=(d+y)/2))?d=_:y=_;while((w=b<<1|C)===(E=(k>=_)<<1|x>=m));return l[E]=u,l[w]=c,e}function uE(e){var n,r,a=e.length,l,u,c=new Array(a),h=new Array(a),d=1/0,g=1/0,y=-1/0,m=-1/0;for(r=0;r<a;++r)isNaN(l=+this._x.call(null,n=e[r]))||isNaN(u=+this._y.call(null,n))||(c[r]=l,h[r]=u,l<d&&(d=l),l>y&&(y=l),u<g&&(g=u),u>m&&(m=u));if(d>y||g>m)return this;for(this.cover(d,g).cover(y,m),r=0;r<a;++r)by(this,c[r],h[r],e[r]);return this}function cE(e,n){if(isNaN(e=+e)||isNaN(n=+n))return this;var r=this._x0,a=this._y0,l=this._x1,u=this._y1;if(isNaN(r))l=(r=Math.floor(e))+1,u=(a=Math.floor(n))+1;else{for(var c=l-r||1,h=this._root,d,g;r>e||e>=l||a>n||n>=u;)switch(g=(n<a)<<1|e<r,d=new Array(4),d[g]=h,h=d,c*=2,g){case 0:l=r+c,u=a+c;break;case 1:r=l-c,u=a+c;break;case 2:l=r+c,a=u-c;break;case 3:r=l-c,a=u-c;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=a,this._x1=l,this._y1=u,this}function fE(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function hE(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function wt(e,n,r,a,l){this.node=e,this.x0=n,this.y0=r,this.x1=a,this.y1=l}function dE(e,n,r){var a,l=this._x0,u=this._y0,c,h,d,g,y=this._x1,m=this._y1,_=[],x=this._root,k,C;for(x&&_.push(new wt(x,l,u,y,m)),r==null?r=1/0:(l=e-r,u=n-r,y=e+r,m=n+r,r*=r);k=_.pop();)if(!(!(x=k.node)||(c=k.x0)>y||(h=k.y0)>m||(d=k.x1)<l||(g=k.y1)<u))if(x.length){var b=(c+d)/2,w=(h+g)/2;_.push(new wt(x[3],b,w,d,g),new wt(x[2],c,w,b,g),new wt(x[1],b,h,d,w),new wt(x[0],c,h,b,w)),(C=(n>=w)<<1|e>=b)&&(k=_[_.length-1],_[_.length-1]=_[_.length-1-C],_[_.length-1-C]=k)}else{var E=e-+this._x.call(null,x.data),M=n-+this._y.call(null,x.data),P=E*E+M*M;if(P<r){var T=Math.sqrt(r=P);l=e-T,u=n-T,y=e+T,m=n+T,a=x.data}}return a}function pE(e){if(isNaN(y=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var n,r=this._root,a,l,u,c=this._x0,h=this._y0,d=this._x1,g=this._y1,y,m,_,x,k,C,b,w;if(!r)return this;if(r.length)for(;;){if((k=y>=(_=(c+d)/2))?c=_:d=_,(C=m>=(x=(h+g)/2))?h=x:g=x,n=r,!(r=r[b=C<<1|k]))return this;if(!r.length)break;(n[b+1&3]||n[b+2&3]||n[b+3&3])&&(a=n,w=b)}for(;r.data!==e;)if(l=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,l?(u?l.next=u:delete l.next,this):n?(u?n[b]=u:delete n[b],(r=n[0]||n[1]||n[2]||n[3])&&r===(n[3]||n[2]||n[1]||n[0])&&!r.length&&(a?a[w]=r:this._root=r),this):(this._root=u,this)}function gE(e){for(var n=0,r=e.length;n<r;++n)this.remove(e[n]);return this}function mE(){return this._root}function yE(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function vE(e){var n=[],r,a=this._root,l,u,c,h,d;for(a&&n.push(new wt(a,this._x0,this._y0,this._x1,this._y1));r=n.pop();)if(!e(a=r.node,u=r.x0,c=r.y0,h=r.x1,d=r.y1)&&a.length){var g=(u+h)/2,y=(c+d)/2;(l=a[3])&&n.push(new wt(l,g,y,h,d)),(l=a[2])&&n.push(new wt(l,u,y,g,d)),(l=a[1])&&n.push(new wt(l,g,c,h,y)),(l=a[0])&&n.push(new wt(l,u,c,g,y))}return this}function _E(e){var n=[],r=[],a;for(this._root&&n.push(new wt(this._root,this._x0,this._y0,this._x1,this._y1));a=n.pop();){var l=a.node;if(l.length){var u,c=a.x0,h=a.y0,d=a.x1,g=a.y1,y=(c+d)/2,m=(h+g)/2;(u=l[0])&&n.push(new wt(u,c,h,y,m)),(u=l[1])&&n.push(new wt(u,y,h,d,m)),(u=l[2])&&n.push(new wt(u,c,m,y,g)),(u=l[3])&&n.push(new wt(u,y,m,d,g))}r.push(a)}for(;a=r.pop();)e(a.node,a.x0,a.y0,a.x1,a.y1);return this}function xE(e){return e[0]}function wE(e){return arguments.length?(this._x=e,this):this._x}function kE(e){return e[1]}function SE(e){return arguments.length?(this._y=e,this):this._y}function Ey(e,n,r){var a=new ih(n??xE,r??kE,NaN,NaN,NaN,NaN);return e==null?a:a.addAll(e)}function ih(e,n,r,a,l,u){this._x=e,this._y=n,this._x0=r,this._y0=a,this._x1=l,this._y1=u,this._root=void 0}function dm(e){for(var n={data:e.data},r=n;e=e.next;)r=r.next={data:e.data};return n}var kt=Ey.prototype=ih.prototype;kt.copy=function(){var e=new ih(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,r,a;if(!n)return e;if(!n.length)return e._root=dm(n),e;for(r=[{source:n,target:e._root=new Array(4)}];n=r.pop();)for(var l=0;l<4;++l)(a=n.source[l])&&(a.length?r.push({source:a,target:n.target[l]=new Array(4)}):n.target[l]=dm(a));return e};kt.add=sE;kt.addAll=uE;kt.cover=cE;kt.data=fE;kt.extent=hE;kt.find=dE;kt.remove=pE;kt.removeAll=gE;kt.root=mE;kt.size=yE;kt.visit=vE;kt.visitAfter=_E;kt.x=wE;kt.y=SE;function CE(e){const n=+this._x.call(null,e),r=+this._y.call(null,e),a=+this._z.call(null,e);return Py(this.cover(n,r,a),n,r,a,e)}function Py(e,n,r,a,l){if(isNaN(n)||isNaN(r)||isNaN(a))return e;var u,c=e._root,h={data:l},d=e._x0,g=e._y0,y=e._z0,m=e._x1,_=e._y1,x=e._z1,k,C,b,w,E,M,P,T,z,D,I;if(!c)return e._root=h,e;for(;c.length;)if((P=n>=(k=(d+m)/2))?d=k:m=k,(T=r>=(C=(g+_)/2))?g=C:_=C,(z=a>=(b=(y+x)/2))?y=b:x=b,u=c,!(c=c[D=z<<2|T<<1|P]))return u[D]=h,e;if(w=+e._x.call(null,c.data),E=+e._y.call(null,c.data),M=+e._z.call(null,c.data),n===w&&r===E&&a===M)return h.next=c,u?u[D]=h:e._root=h,e;do u=u?u[D]=new Array(8):e._root=new Array(8),(P=n>=(k=(d+m)/2))?d=k:m=k,(T=r>=(C=(g+_)/2))?g=C:_=C,(z=a>=(b=(y+x)/2))?y=b:x=b;while((D=z<<2|T<<1|P)===(I=(M>=b)<<2|(E>=C)<<1|w>=k));return u[I]=c,u[D]=h,e}function bE(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,r=new Float64Array(n),a=new Float64Array(n),l=new Float64Array(n);let u=1/0,c=1/0,h=1/0,d=-1/0,g=-1/0,y=-1/0;for(let m=0,_,x,k,C;m<n;++m)isNaN(x=+this._x.call(null,_=e[m]))||isNaN(k=+this._y.call(null,_))||isNaN(C=+this._z.call(null,_))||(r[m]=x,a[m]=k,l[m]=C,x<u&&(u=x),x>d&&(d=x),k<c&&(c=k),k>g&&(g=k),C<h&&(h=C),C>y&&(y=C));if(u>d||c>g||h>y)return this;this.cover(u,c,h).cover(d,g,y);for(let m=0;m<n;++m)Py(this,r[m],a[m],l[m],e[m]);return this}function EE(e,n,r){if(isNaN(e=+e)||isNaN(n=+n)||isNaN(r=+r))return this;var a=this._x0,l=this._y0,u=this._z0,c=this._x1,h=this._y1,d=this._z1;if(isNaN(a))c=(a=Math.floor(e))+1,h=(l=Math.floor(n))+1,d=(u=Math.floor(r))+1;else{for(var g=c-a||1,y=this._root,m,_;a>e||e>=c||l>n||n>=h||u>r||r>=d;)switch(_=(r<u)<<2|(n<l)<<1|e<a,m=new Array(8),m[_]=y,y=m,g*=2,_){case 0:c=a+g,h=l+g,d=u+g;break;case 1:a=c-g,h=l+g,d=u+g;break;case 2:c=a+g,l=h-g,d=u+g;break;case 3:a=c-g,l=h-g,d=u+g;break;case 4:c=a+g,h=l+g,u=d-g;break;case 5:a=c-g,h=l+g,u=d-g;break;case 6:c=a+g,l=h-g,u=d-g;break;case 7:a=c-g,l=h-g,u=d-g;break}this._root&&this._root.length&&(this._root=y)}return this._x0=a,this._y0=l,this._z0=u,this._x1=c,this._y1=h,this._z1=d,this}function PE(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function RE(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}function Ie(e,n,r,a,l,u,c){this.node=e,this.x0=n,this.y0=r,this.z0=a,this.x1=l,this.y1=u,this.z1=c}function TE(e,n,r,a){var l,u=this._x0,c=this._y0,h=this._z0,d,g,y,m,_,x,k=this._x1,C=this._y1,b=this._z1,w=[],E=this._root,M,P;for(E&&w.push(new Ie(E,u,c,h,k,C,b)),a==null?a=1/0:(u=e-a,c=n-a,h=r-a,k=e+a,C=n+a,b=r+a,a*=a);M=w.pop();)if(!(!(E=M.node)||(d=M.x0)>k||(g=M.y0)>C||(y=M.z0)>b||(m=M.x1)<u||(_=M.y1)<c||(x=M.z1)<h))if(E.length){var T=(d+m)/2,z=(g+_)/2,D=(y+x)/2;w.push(new Ie(E[7],T,z,D,m,_,x),new Ie(E[6],d,z,D,T,_,x),new Ie(E[5],T,g,D,m,z,x),new Ie(E[4],d,g,D,T,z,x),new Ie(E[3],T,z,y,m,_,D),new Ie(E[2],d,z,y,T,_,D),new Ie(E[1],T,g,y,m,z,D),new Ie(E[0],d,g,y,T,z,D)),(P=(r>=D)<<2|(n>=z)<<1|e>=T)&&(M=w[w.length-1],w[w.length-1]=w[w.length-1-P],w[w.length-1-P]=M)}else{var I=e-+this._x.call(null,E.data),q=n-+this._y.call(null,E.data),K=r-+this._z.call(null,E.data),J=I*I+q*q+K*K;if(J<a){var ae=Math.sqrt(a=J);u=e-ae,c=n-ae,h=r-ae,k=e+ae,C=n+ae,b=r+ae,l=E.data}}return l}const ME=(e,n,r,a,l,u)=>Math.sqrt((e-a)**2+(n-l)**2+(r-u)**2);function NE(e,n,r,a){const l=[],u=e-a,c=n-a,h=r-a,d=e+a,g=n+a,y=r+a;return this.visit((m,_,x,k,C,b,w)=>{if(!m.length)do{const E=m.data;ME(e,n,r,this._x(E),this._y(E),this._z(E))<=a&&l.push(E)}while(m=m.next);return _>d||x>g||k>y||C<u||b<c||w<h}),l}function OE(e){if(isNaN(_=+this._x.call(null,e))||isNaN(x=+this._y.call(null,e))||isNaN(k=+this._z.call(null,e)))return this;var n,r=this._root,a,l,u,c=this._x0,h=this._y0,d=this._z0,g=this._x1,y=this._y1,m=this._z1,_,x,k,C,b,w,E,M,P,T,z;if(!r)return this;if(r.length)for(;;){if((E=_>=(C=(c+g)/2))?c=C:g=C,(M=x>=(b=(h+y)/2))?h=b:y=b,(P=k>=(w=(d+m)/2))?d=w:m=w,n=r,!(r=r[T=P<<2|M<<1|E]))return this;if(!r.length)break;(n[T+1&7]||n[T+2&7]||n[T+3&7]||n[T+4&7]||n[T+5&7]||n[T+6&7]||n[T+7&7])&&(a=n,z=T)}for(;r.data!==e;)if(l=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,l?(u?l.next=u:delete l.next,this):n?(u?n[T]=u:delete n[T],(r=n[0]||n[1]||n[2]||n[3]||n[4]||n[5]||n[6]||n[7])&&r===(n[7]||n[6]||n[5]||n[4]||n[3]||n[2]||n[1]||n[0])&&!r.length&&(a?a[z]=r:this._root=r),this):(this._root=u,this)}function AE(e){for(var n=0,r=e.length;n<r;++n)this.remove(e[n]);return this}function zE(){return this._root}function jE(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function DE(e){var n=[],r,a=this._root,l,u,c,h,d,g,y;for(a&&n.push(new Ie(a,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));r=n.pop();)if(!e(a=r.node,u=r.x0,c=r.y0,h=r.z0,d=r.x1,g=r.y1,y=r.z1)&&a.length){var m=(u+d)/2,_=(c+g)/2,x=(h+y)/2;(l=a[7])&&n.push(new Ie(l,m,_,x,d,g,y)),(l=a[6])&&n.push(new Ie(l,u,_,x,m,g,y)),(l=a[5])&&n.push(new Ie(l,m,c,x,d,_,y)),(l=a[4])&&n.push(new Ie(l,u,c,x,m,_,y)),(l=a[3])&&n.push(new Ie(l,m,_,h,d,g,x)),(l=a[2])&&n.push(new Ie(l,u,_,h,m,g,x)),(l=a[1])&&n.push(new Ie(l,m,c,h,d,_,x)),(l=a[0])&&n.push(new Ie(l,u,c,h,m,_,x))}return this}function IE(e){var n=[],r=[],a;for(this._root&&n.push(new Ie(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));a=n.pop();){var l=a.node;if(l.length){var u,c=a.x0,h=a.y0,d=a.z0,g=a.x1,y=a.y1,m=a.z1,_=(c+g)/2,x=(h+y)/2,k=(d+m)/2;(u=l[0])&&n.push(new Ie(u,c,h,d,_,x,k)),(u=l[1])&&n.push(new Ie(u,_,h,d,g,x,k)),(u=l[2])&&n.push(new Ie(u,c,x,d,_,y,k)),(u=l[3])&&n.push(new Ie(u,_,x,d,g,y,k)),(u=l[4])&&n.push(new Ie(u,c,h,k,_,x,m)),(u=l[5])&&n.push(new Ie(u,_,h,k,g,x,m)),(u=l[6])&&n.push(new Ie(u,c,x,k,_,y,m)),(u=l[7])&&n.push(new Ie(u,_,x,k,g,y,m))}r.push(a)}for(;a=r.pop();)e(a.node,a.x0,a.y0,a.z0,a.x1,a.y1,a.z1);return this}function LE(e){return e[0]}function FE(e){return arguments.length?(this._x=e,this):this._x}function $E(e){return e[1]}function UE(e){return arguments.length?(this._y=e,this):this._y}function HE(e){return e[2]}function BE(e){return arguments.length?(this._z=e,this):this._z}function Ry(e,n,r,a){var l=new oh(n??LE,r??$E,a??HE,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?l:l.addAll(e)}function oh(e,n,r,a,l,u,c,h,d){this._x=e,this._y=n,this._z=r,this._x0=a,this._y0=l,this._z0=u,this._x1=c,this._y1=h,this._z1=d,this._root=void 0}function pm(e){for(var n={data:e.data},r=n;e=e.next;)r=r.next={data:e.data};return n}var st=Ry.prototype=oh.prototype;st.copy=function(){var e=new oh(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),n=this._root,r,a;if(!n)return e;if(!n.length)return e._root=pm(n),e;for(r=[{source:n,target:e._root=new Array(8)}];n=r.pop();)for(var l=0;l<8;++l)(a=n.source[l])&&(a.length?r.push({source:a,target:n.target[l]=new Array(8)}):n.target[l]=pm(a));return e};st.add=CE;st.addAll=bE;st.cover=EE;st.data=PE;st.extent=RE;st.find=TE;st.findAllWithinRadius=NE;st.remove=OE;st.removeAll=AE;st.root=zE;st.size=jE;st.visit=DE;st.visitAfter=IE;st.x=FE;st.y=UE;st.z=BE;function Kn(e){return function(){return e}}function Vn(e){return(e()-.5)*1e-6}function VE(e){return e.index}function gm(e,n){var r=e.get(n);if(!r)throw new Error("node not found: "+n);return r}function WE(e){var n=VE,r=_,a,l=Kn(30),u,c,h,d,g,y,m=1;e==null&&(e=[]);function _(w){return 1/Math.min(d[w.source.index],d[w.target.index])}function x(w){for(var E=0,M=e.length;E<m;++E)for(var P=0,T,z,D,I=0,q=0,K=0,J,ae;P<M;++P)T=e[P],z=T.source,D=T.target,I=D.x+D.vx-z.x-z.vx||Vn(y),h>1&&(q=D.y+D.vy-z.y-z.vy||Vn(y)),h>2&&(K=D.z+D.vz-z.z-z.vz||Vn(y)),J=Math.sqrt(I*I+q*q+K*K),J=(J-u[P])/J*w*a[P],I*=J,q*=J,K*=J,D.vx-=I*(ae=g[P]),h>1&&(D.vy-=q*ae),h>2&&(D.vz-=K*ae),z.vx+=I*(ae=1-ae),h>1&&(z.vy+=q*ae),h>2&&(z.vz+=K*ae)}function k(){if(c){var w,E=c.length,M=e.length,P=new Map(c.map((z,D)=>[n(z,D,c),z])),T;for(w=0,d=new Array(E);w<M;++w)T=e[w],T.index=w,typeof T.source!="object"&&(T.source=gm(P,T.source)),typeof T.target!="object"&&(T.target=gm(P,T.target)),d[T.source.index]=(d[T.source.index]||0)+1,d[T.target.index]=(d[T.target.index]||0)+1;for(w=0,g=new Array(M);w<M;++w)T=e[w],g[w]=d[T.source.index]/(d[T.source.index]+d[T.target.index]);a=new Array(M),C(),u=new Array(M),b()}}function C(){if(c)for(var w=0,E=e.length;w<E;++w)a[w]=+r(e[w],w,e)}function b(){if(c)for(var w=0,E=e.length;w<E;++w)u[w]=+l(e[w],w,e)}return x.initialize=function(w,...E){c=w,y=E.find(M=>typeof M=="function")||Math.random,h=E.find(M=>[1,2,3].includes(M))||2,k()},x.links=function(w){return arguments.length?(e=w,k(),x):e},x.id=function(w){return arguments.length?(n=w,x):n},x.iterations=function(w){return arguments.length?(m=+w,x):m},x.strength=function(w){return arguments.length?(r=typeof w=="function"?w:Kn(+w),C(),x):r},x.distance=function(w){return arguments.length?(l=typeof w=="function"?w:Kn(+w),b(),x):l},x}const qE=1664525,QE=1013904223,mm=4294967296;function KE(){let e=1;return()=>(e=(qE*e+QE)%mm)/mm}var ym=3;function Vc(e){return e.x}function vm(e){return e.y}function GE(e){return e.z}var XE=10,YE=Math.PI*(3-Math.sqrt(5)),ZE=Math.PI*20/(9+Math.sqrt(221));function JE(e,n){n=n||2;var r=Math.min(ym,Math.max(1,Math.round(n))),a,l=1,u=.001,c=1-Math.pow(u,1/300),h=0,d=.6,g=new Map,y=Kf(x),m=za("tick","end"),_=KE();e==null&&(e=[]);function x(){k(),m.call("tick",a),l<u&&(y.stop(),m.call("end",a))}function k(w){var E,M=e.length,P;w===void 0&&(w=1);for(var T=0;T<w;++T)for(l+=(h-l)*c,g.forEach(function(z){z(l)}),E=0;E<M;++E)P=e[E],P.fx==null?P.x+=P.vx*=d:(P.x=P.fx,P.vx=0),r>1&&(P.fy==null?P.y+=P.vy*=d:(P.y=P.fy,P.vy=0)),r>2&&(P.fz==null?P.z+=P.vz*=d:(P.z=P.fz,P.vz=0));return a}function C(){for(var w=0,E=e.length,M;w<E;++w){if(M=e[w],M.index=w,M.fx!=null&&(M.x=M.fx),M.fy!=null&&(M.y=M.fy),M.fz!=null&&(M.z=M.fz),isNaN(M.x)||r>1&&isNaN(M.y)||r>2&&isNaN(M.z)){var P=XE*(r>2?Math.cbrt(.5+w):r>1?Math.sqrt(.5+w):w),T=w*YE,z=w*ZE;r===1?M.x=P:r===2?(M.x=P*Math.cos(T),M.y=P*Math.sin(T)):(M.x=P*Math.sin(T)*Math.cos(z),M.y=P*Math.cos(T),M.z=P*Math.sin(T)*Math.sin(z))}(isNaN(M.vx)||r>1&&isNaN(M.vy)||r>2&&isNaN(M.vz))&&(M.vx=0,r>1&&(M.vy=0),r>2&&(M.vz=0))}}function b(w){return w.initialize&&w.initialize(e,_,r),w}return C(),a={tick:k,restart:function(){return y.restart(x),a},stop:function(){return y.stop(),a},numDimensions:function(w){return arguments.length?(r=Math.min(ym,Math.max(1,Math.round(w))),g.forEach(b),a):r},nodes:function(w){return arguments.length?(e=w,C(),g.forEach(b),a):e},alpha:function(w){return arguments.length?(l=+w,a):l},alphaMin:function(w){return arguments.length?(u=+w,a):u},alphaDecay:function(w){return arguments.length?(c=+w,a):+c},alphaTarget:function(w){return arguments.length?(h=+w,a):h},velocityDecay:function(w){return arguments.length?(d=1-w,a):1-d},randomSource:function(w){return arguments.length?(_=w,g.forEach(b),a):_},force:function(w,E){return arguments.length>1?(E==null?g.delete(w):g.set(w,b(E)),a):g.get(w)},find:function(){var w=Array.prototype.slice.call(arguments),E=w.shift()||0,M=(r>1?w.shift():null)||0,P=(r>2?w.shift():null)||0,T=w.shift()||1/0,z=0,D=e.length,I,q,K,J,ae,he;for(T*=T,z=0;z<D;++z)ae=e[z],I=E-ae.x,q=M-(ae.y||0),K=P-(ae.z||0),J=I*I+q*q+K*K,J<T&&(he=ae,T=J);return he},on:function(w,E){return arguments.length>1?(m.on(w,E),a):m.on(w)}}}function e3(){var e,n,r,a,l,u=Kn(-30),c,h=1,d=1/0,g=.81;function y(k){var C,b=e.length,w=(n===1?Cy(e,Vc):n===2?Ey(e,Vc,vm):n===3?Ry(e,Vc,vm,GE):null).visitAfter(_);for(l=k,C=0;C<b;++C)r=e[C],w.visit(x)}function m(){if(e){var k,C=e.length,b;for(c=new Array(C),k=0;k<C;++k)b=e[k],c[b.index]=+u(b,k,e)}}function _(k){var C=0,b,w,E=0,M,P,T,z,D=k.length;if(D){for(M=P=T=z=0;z<D;++z)(b=k[z])&&(w=Math.abs(b.value))&&(C+=b.value,E+=w,M+=w*(b.x||0),P+=w*(b.y||0),T+=w*(b.z||0));C*=Math.sqrt(4/D),k.x=M/E,n>1&&(k.y=P/E),n>2&&(k.z=T/E)}else{b=k,b.x=b.data.x,n>1&&(b.y=b.data.y),n>2&&(b.z=b.data.z);do C+=c[b.data.index];while(b=b.next)}k.value=C}function x(k,C,b,w,E){if(!k.value)return!0;var M=[b,w,E][n-1],P=k.x-r.x,T=n>1?k.y-r.y:0,z=n>2?k.z-r.z:0,D=M-C,I=P*P+T*T+z*z;if(D*D/g<I)return I<d&&(P===0&&(P=Vn(a),I+=P*P),n>1&&T===0&&(T=Vn(a),I+=T*T),n>2&&z===0&&(z=Vn(a),I+=z*z),I<h&&(I=Math.sqrt(h*I)),r.vx+=P*k.value*l/I,n>1&&(r.vy+=T*k.value*l/I),n>2&&(r.vz+=z*k.value*l/I)),!0;if(k.length||I>=d)return;(k.data!==r||k.next)&&(P===0&&(P=Vn(a),I+=P*P),n>1&&T===0&&(T=Vn(a),I+=T*T),n>2&&z===0&&(z=Vn(a),I+=z*z),I<h&&(I=Math.sqrt(h*I)));do k.data!==r&&(D=c[k.data.index]*l/I,r.vx+=P*D,n>1&&(r.vy+=T*D),n>2&&(r.vz+=z*D));while(k=k.next)}return y.initialize=function(k,...C){e=k,a=C.find(b=>typeof b=="function")||Math.random,n=C.find(b=>[1,2,3].includes(b))||2,m()},y.strength=function(k){return arguments.length?(u=typeof k=="function"?k:Kn(+k),m(),y):u},y.distanceMin=function(k){return arguments.length?(h=k*k,y):Math.sqrt(h)},y.distanceMax=function(k){return arguments.length?(d=k*k,y):Math.sqrt(d)},y.theta=function(k){return arguments.length?(g=k*k,y):Math.sqrt(g)},y}function t3(e,n,r,a){var l,u,c=Kn(.1),h,d;typeof e!="function"&&(e=Kn(+e)),n==null&&(n=0),r==null&&(r=0),a==null&&(a=0);function g(m){for(var _=0,x=l.length;_<x;++_){var k=l[_],C=k.x-n||1e-6,b=(k.y||0)-r||1e-6,w=(k.z||0)-a||1e-6,E=Math.sqrt(C*C+b*b+w*w),M=(d[_]-E)*h[_]*m/E;k.vx+=C*M,u>1&&(k.vy+=b*M),u>2&&(k.vz+=w*M)}}function y(){if(l){var m,_=l.length;for(h=new Array(_),d=new Array(_),m=0;m<_;++m)d[m]=+e(l[m],m,l),h[m]=isNaN(d[m])?0:+c(l[m],m,l)}}return g.initialize=function(m,..._){l=m,u=_.find(x=>[1,2,3].includes(x))||2,y()},g.strength=function(m){return arguments.length?(c=typeof m=="function"?m:Kn(+m),y(),g):c},g.radius=function(m){return arguments.length?(e=typeof m=="function"?m:Kn(+m),y(),g):e},g.x=function(m){return arguments.length?(n=+m,g):n},g.y=function(m){return arguments.length?(r=+m,g):r},g.z=function(m){return arguments.length?(a=+m,g):a},g}const{abs:ia,cos:Hn,sin:Hi,acos:n3,atan2:oa,sqrt:kr,pow:Kt}=Math;function aa(e){return e<0?-Kt(-e,1/3):Kt(e,1/3)}const Ty=Math.PI,is=2*Ty,Sr=Ty/2,r3=1e-6,Wc=Number.MAX_SAFE_INTEGER||9007199254740991,qc=Number.MIN_SAFE_INTEGER||-9007199254740991,i3={x:0,y:0,z:0},ie={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,n){const r=n(e);let a=r.x*r.x+r.y*r.y;return typeof r.z<"u"&&(a+=r.z*r.z),kr(a)},compute:function(e,n,r){if(e===0)return n[0].t=0,n[0];const a=n.length-1;if(e===1)return n[a].t=1,n[a];const l=1-e;let u=n;if(a===0)return n[0].t=e,n[0];if(a===1){const h={x:l*u[0].x+e*u[1].x,y:l*u[0].y+e*u[1].y,t:e};return r&&(h.z=l*u[0].z+e*u[1].z),h}if(a<4){let h=l*l,d=e*e,g,y,m,_=0;a===2?(u=[u[0],u[1],u[2],i3],g=h,y=l*e*2,m=d):a===3&&(g=h*l,y=h*e*3,m=l*d*3,_=e*d);const x={x:g*u[0].x+y*u[1].x+m*u[2].x+_*u[3].x,y:g*u[0].y+y*u[1].y+m*u[2].y+_*u[3].y,t:e};return r&&(x.z=g*u[0].z+y*u[1].z+m*u[2].z+_*u[3].z),x}const c=JSON.parse(JSON.stringify(n));for(;c.length>1;){for(let h=0;h<c.length-1;h++)c[h]={x:c[h].x+(c[h+1].x-c[h].x)*e,y:c[h].y+(c[h+1].y-c[h].y)*e},typeof c[h].z<"u"&&(c[h].z=c[h].z+(c[h+1].z-c[h].z)*e);c.splice(c.length-1,1)}return c[0].t=e,c[0]},computeWithRatios:function(e,n,r,a){const l=1-e,u=r,c=n;let h=u[0],d=u[1],g=u[2],y=u[3],m;if(h*=l,d*=e,c.length===2)return m=h+d,{x:(h*c[0].x+d*c[1].x)/m,y:(h*c[0].y+d*c[1].y)/m,z:a?(h*c[0].z+d*c[1].z)/m:!1,t:e};if(h*=l,d*=2*l,g*=e*e,c.length===3)return m=h+d+g,{x:(h*c[0].x+d*c[1].x+g*c[2].x)/m,y:(h*c[0].y+d*c[1].y+g*c[2].y)/m,z:a?(h*c[0].z+d*c[1].z+g*c[2].z)/m:!1,t:e};if(h*=l,d*=1.5*l,g*=3*l,y*=e*e*e,c.length===4)return m=h+d+g+y,{x:(h*c[0].x+d*c[1].x+g*c[2].x+y*c[3].x)/m,y:(h*c[0].y+d*c[1].y+g*c[2].y+y*c[3].y)/m,z:a?(h*c[0].z+d*c[1].z+g*c[2].z+y*c[3].z)/m:!1,t:e}},derive:function(e,n){const r=[];for(let a=e,l=a.length,u=l-1;l>1;l--,u--){const c=[];for(let h=0,d;h<u;h++)d={x:u*(a[h+1].x-a[h].x),y:u*(a[h+1].y-a[h].y)},n&&(d.z=u*(a[h+1].z-a[h].z)),c.push(d);r.push(c),a=c}return r},between:function(e,n,r){return n<=e&&e<=r||ie.approximately(e,n)||ie.approximately(e,r)},approximately:function(e,n,r){return ia(e-n)<=(r||r3)},length:function(e){const r=ie.Tvalues.length;let a=0;for(let l=0,u;l<r;l++)u=.5*ie.Tvalues[l]+.5,a+=ie.Cvalues[l]*ie.arcfn(u,e);return .5*a},map:function(e,n,r,a,l){const u=r-n,c=l-a,h=e-n,d=h/u;return a+c*d},lerp:function(e,n,r){const a={x:n.x+e*(r.x-n.x),y:n.y+e*(r.y-n.y)};return n.z!==void 0&&r.z!==void 0&&(a.z=n.z+e*(r.z-n.z)),a},pointToString:function(e){let n=e.x+"/"+e.y;return typeof e.z<"u"&&(n+="/"+e.z),n},pointsToString:function(e){return"["+e.map(ie.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,n,r){const a=n.x-e.x,l=n.y-e.y,u=r.x-e.x,c=r.y-e.y,h=a*c-l*u,d=a*u+l*c;return oa(h,d)},round:function(e,n){const r=""+e,a=r.indexOf(".");return parseFloat(r.substring(0,a+1+n))},dist:function(e,n){const r=e.x-n.x,a=e.y-n.y;return kr(r*r+a*a)},closest:function(e,n){let r=Kt(2,63),a,l;return e.forEach(function(u,c){l=ie.dist(n,u),l<r&&(r=l,a=c)}),{mdist:r,mpos:a}},abcratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const r=Kt(e,n)+Kt(1-e,n),a=r-1;return ia(a/r)},projectionratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const r=Kt(1-e,n),a=Kt(e,n)+r;return r/a},lli8:function(e,n,r,a,l,u,c,h){const d=(e*a-n*r)*(l-c)-(e-r)*(l*h-u*c),g=(e*a-n*r)*(u-h)-(n-a)*(l*h-u*c),y=(e-r)*(u-h)-(n-a)*(l-c);return y==0?!1:{x:d/y,y:g/y}},lli4:function(e,n,r,a){const l=e.x,u=e.y,c=n.x,h=n.y,d=r.x,g=r.y,y=a.x,m=a.y;return ie.lli8(l,u,c,h,d,g,y,m)},lli:function(e,n){return ie.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new Ue(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=Wc,r=Wc,a=qc,l=qc;return e.forEach(function(u){const c=u.bbox();n>c.x.min&&(n=c.x.min),r>c.y.min&&(r=c.y.min),a<c.x.max&&(a=c.x.max),l<c.y.max&&(l=c.y.max)}),{x:{min:n,mid:(n+a)/2,max:a,size:a-n},y:{min:r,mid:(r+l)/2,max:l,size:l-r}}},shapeintersections:function(e,n,r,a,l){if(!ie.bboxoverlap(n,a))return[];const u=[],c=[e.startcap,e.forward,e.back,e.endcap],h=[r.startcap,r.forward,r.back,r.endcap];return c.forEach(function(d){d.virtual||h.forEach(function(g){if(g.virtual)return;const y=d.intersects(g,l);y.length>0&&(y.c1=d,y.c2=g,y.s1=e,y.s2=r,u.push(y))})}),u},makeshape:function(e,n,r){const a=n.points.length,l=e.points.length,u=ie.makeline(n.points[a-1],e.points[0]),c=ie.makeline(e.points[l-1],n.points[0]),h={startcap:u,forward:e,back:n,endcap:c,bbox:ie.findbbox([u,e,n,c])};return h.intersections=function(d){return ie.shapeintersections(h,h.bbox,d,d.bbox,r)},h},getminmax:function(e,n,r){if(!r)return{min:0,max:0};let a=Wc,l=qc,u,c;r.indexOf(0)===-1&&(r=[0].concat(r)),r.indexOf(1)===-1&&r.push(1);for(let h=0,d=r.length;h<d;h++)u=r[h],c=e.get(u),c[n]<a&&(a=c[n]),c[n]>l&&(l=c[n]);return{min:a,mid:(a+l)/2,max:l,size:l-a}},align:function(e,n){const r=n.p1.x,a=n.p1.y,l=-oa(n.p2.y-a,n.p2.x-r),u=function(c){return{x:(c.x-r)*Hn(l)-(c.y-a)*Hi(l),y:(c.x-r)*Hi(l)+(c.y-a)*Hn(l)}};return e.map(u)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};const r=e.length-1,a=ie.align(e,n),l=function(D){return 0<=D&&D<=1};if(r===2){const D=a[0].y,I=a[1].y,q=a[2].y,K=D-2*I+q;if(K!==0){const J=-kr(I*I-D*q),ae=-D+I,he=-(J+ae)/K,F=-(-J+ae)/K;return[he,F].filter(l)}else if(I!==q&&K===0)return[(2*I-q)/(2*I-2*q)].filter(l);return[]}const u=a[0].y,c=a[1].y,h=a[2].y,d=a[3].y;let g=-u+3*c-3*h+d,y=3*u-6*c+3*h,m=-3*u+3*c,_=u;if(ie.approximately(g,0)){if(ie.approximately(y,0))return ie.approximately(m,0)?[]:[-_/m].filter(l);const D=kr(m*m-4*y*_),I=2*y;return[(D-m)/I,(-m-D)/I].filter(l)}y/=g,m/=g,_/=g;const x=(3*m-y*y)/3,k=x/3,C=(2*y*y*y-9*y*m+27*_)/27,b=C/2,w=b*b+k*k*k;let E,M,P,T,z;if(w<0){const D=-x/3,I=D*D*D,q=kr(I),K=-C/(2*q),J=K<-1?-1:K>1?1:K,ae=n3(J),he=aa(q),F=2*he;return P=F*Hn(ae/3)-y/3,T=F*Hn((ae+is)/3)-y/3,z=F*Hn((ae+2*is)/3)-y/3,[P,T,z].filter(l)}else{if(w===0)return E=b<0?aa(-b):-aa(b),P=2*E-y/3,T=-E-y/3,[P,T].filter(l);{const D=kr(w);return E=aa(-b+D),M=aa(b+D),[E-M-y/3].filter(l)}}},droots:function(e){if(e.length===3){const n=e[0],r=e[1],a=e[2],l=n-2*r+a;if(l!==0){const u=-kr(r*r-n*a),c=-n+r,h=-(u+c)/l,d=-(-u+c)/l;return[h,d]}else if(r!==a&&l===0)return[(2*r-a)/(2*(r-a))];return[]}if(e.length===2){const n=e[0],r=e[1];return n!==r?[n/(n-r)]:[]}return[]},curvature:function(e,n,r,a,l){let u,c,h,d,g=0,y=0;const m=ie.compute(e,n),_=ie.compute(e,r),x=m.x*m.x+m.y*m.y;if(a?(u=kr(Kt(m.y*_.z-_.y*m.z,2)+Kt(m.z*_.x-_.z*m.x,2)+Kt(m.x*_.y-_.x*m.y,2)),c=Kt(x+m.z*m.z,3/2)):(u=m.x*_.y-m.y*_.x,c=Kt(x,3/2)),u===0||c===0)return{k:0,r:0};if(g=u/c,y=c/u,!l){const k=ie.curvature(e-.001,n,r,a,!0).k,C=ie.curvature(e+.001,n,r,a,!0).k;d=(C-g+(g-k))/2,h=(ia(C-g)+ia(g-k))/2}return{k:g,r:y,dk:d,adk:h}},inflections:function(e){if(e.length<4)return[];const n=ie.align(e,{p1:e[0],p2:e.slice(-1)[0]}),r=n[2].x*n[1].y,a=n[3].x*n[1].y,l=n[1].x*n[2].y,u=n[3].x*n[2].y,c=18*(-3*r+2*a+3*l-u),h=18*(3*r-a-3*l),d=18*(l-r);if(ie.approximately(c,0)){if(!ie.approximately(h,0)){let _=-d/h;if(0<=_&&_<=1)return[_]}return[]}const g=2*c;if(ie.approximately(g,0))return[];const y=h*h-4*c*d;if(y<0)return[];const m=Math.sqrt(y);return[(m-h)/g,-(h+m)/g].filter(function(_){return 0<=_&&_<=1})},bboxoverlap:function(e,n){const r=["x","y"],a=r.length;for(let l=0,u,c,h,d;l<a;l++)if(u=r[l],c=e[u].mid,h=n[u].mid,d=(e[u].size+n[u].size)/2,ia(c-h)>=d)return!1;return!0},expandbox:function(e,n){n.x.min<e.x.min&&(e.x.min=n.x.min),n.y.min<e.y.min&&(e.y.min=n.y.min),n.z&&n.z.min<e.z.min&&(e.z.min=n.z.min),n.x.max>e.x.max&&(e.x.max=n.x.max),n.y.max>e.y.max&&(e.y.max=n.y.max),n.z&&n.z.max>e.z.max&&(e.z.max=n.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,n,r){const a=e.bbox(),l=n.bbox(),u=1e5,c=r||.5;if(a.x.size+a.y.size<c&&l.x.size+l.y.size<c)return[(u*(e._t1+e._t2)/2|0)/u+"/"+(u*(n._t1+n._t2)/2|0)/u];let h=e.split(.5),d=n.split(.5),g=[{left:h.left,right:d.left},{left:h.left,right:d.right},{left:h.right,right:d.right},{left:h.right,right:d.left}];g=g.filter(function(m){return ie.bboxoverlap(m.left.bbox(),m.right.bbox())});let y=[];return g.length===0||(g.forEach(function(m){y=y.concat(ie.pairiteration(m.left,m.right,c))}),y=y.filter(function(m,_){return y.indexOf(m)===_})),y},getccenter:function(e,n,r){const a=n.x-e.x,l=n.y-e.y,u=r.x-n.x,c=r.y-n.y,h=a*Hn(Sr)-l*Hi(Sr),d=a*Hi(Sr)+l*Hn(Sr),g=u*Hn(Sr)-c*Hi(Sr),y=u*Hi(Sr)+c*Hn(Sr),m=(e.x+n.x)/2,_=(e.y+n.y)/2,x=(n.x+r.x)/2,k=(n.y+r.y)/2,C=m+h,b=_+d,w=x+g,E=k+y,M=ie.lli8(m,_,C,b,x,k,w,E),P=ie.dist(M,e);let T=oa(e.y-M.y,e.x-M.x),z=oa(n.y-M.y,n.x-M.x),D=oa(r.y-M.y,r.x-M.x),I;return T<D?((T>z||z>D)&&(T+=is),T>D&&(I=D,D=T,T=I)):D<z&&z<T?(I=D,D=T,T=I):D+=is,M.s=T,M.e=D,M.r=P,M},numberSort:function(e,n){return e-n}};class ga{constructor(n){this.curves=[],this._3d=!1,n&&(this.curves=n,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map(function(n){return ie.pointsToString(n.points)}).join(", ")+"]"}addCurve(n){this.curves.push(n),this._3d=this._3d||n._3d}length(){return this.curves.map(function(n){return n.length()}).reduce(function(n,r){return n+r})}curve(n){return this.curves[n]}bbox(){const n=this.curves;for(var r=n[0].bbox(),a=1;a<n.length;a++)ie.expandbox(r,n[a].bbox());return r}offset(n){const r=[];return this.curves.forEach(function(a){r.push(...a.offset(n))}),new ga(r)}}const{abs:la,min:_m,max:xm,cos:o3,sin:a3,acos:l3,sqrt:sa}=Math,s3=Math.PI;class Ue{constructor(n){let r=n&&n.forEach?n:Array.from(arguments).slice(),a=!1;if(typeof r[0]=="object"){a=r.length;const x=[];r.forEach(function(k){["x","y","z"].forEach(function(C){typeof k[C]<"u"&&x.push(k[C])})}),r=x}let l=!1;const u=r.length;if(a){if(a>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");l=!0}}else if(u!==6&&u!==8&&u!==9&&u!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const c=this._3d=!l&&(u===9||u===12)||n&&n[0]&&typeof n[0].z<"u",h=this.points=[];for(let x=0,k=c?3:2;x<u;x+=k){var d={x:r[x],y:r[x+1]};c&&(d.z=r[x+2]),h.push(d)}const g=this.order=h.length-1,y=this.dims=["x","y"];c&&y.push("z"),this.dimlen=y.length;const m=ie.align(h,{p1:h[0],p2:h[g]}),_=ie.dist(h[0],h[g]);this._linear=m.reduce((x,k)=>x+la(k.y),0)<_/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(n,r,a,l){if(typeof l>"u"&&(l=.5),l===0)return new Ue(r,r,a);if(l===1)return new Ue(n,r,r);const u=Ue.getABC(2,n,r,a,l);return new Ue(n,u.A,a)}static cubicFromPoints(n,r,a,l,u){typeof l>"u"&&(l=.5);const c=Ue.getABC(3,n,r,a,l);typeof u>"u"&&(u=ie.dist(r,c.C));const h=u*(1-l)/l,d=ie.dist(n,a),g=(a.x-n.x)/d,y=(a.y-n.y)/d,m=u*g,_=u*y,x=h*g,k=h*y,C={x:r.x-m,y:r.y-_},b={x:r.x+x,y:r.y+k},w=c.A,E={x:w.x+(C.x-w.x)/(1-l),y:w.y+(C.y-w.y)/(1-l)},M={x:w.x+(b.x-w.x)/l,y:w.y+(b.y-w.y)/l},P={x:n.x+(E.x-n.x)/l,y:n.y+(E.y-n.y)/l},T={x:a.x+(M.x-a.x)/(1-l),y:a.y+(M.y-a.y)/(1-l)};return new Ue(n,P,T,a)}static getUtils(){return ie}getUtils(){return Ue.getUtils()}static get PolyBezier(){return ga}valueOf(){return this.toString()}toString(){return ie.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const n=this.points,r=n[0].x,a=n[0].y,l=["M",r,a,this.order===2?"Q":"C"];for(let u=1,c=n.length;u<c;u++)l.push(n[u].x),l.push(n[u].y);return l.join(" ")}setRatios(n){if(n.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=n,this._lut=[]}verify(){const n=this.coordDigest();n!==this._print&&(this._print=n,this.update())}coordDigest(){return this.points.map(function(n,r){return""+r+n.x+n.y+(n.z?n.z:0)}).join("")}update(){this._lut=[],this.dpoints=ie.derive(this.points,this._3d),this.computedirection()}computedirection(){const n=this.points,r=ie.angle(n[0],n[this.order],n[1]);this.clockwise=r>0}length(){return ie.length(this.derivative.bind(this))}static getABC(n=2,r,a,l,u=.5){const c=ie.projectionratio(u,n),h=1-c,d={x:c*r.x+h*l.x,y:c*r.y+h*l.y},g=ie.abcratio(u,n);return{A:{x:a.x+(a.x-d.x)/g,y:a.y+(a.y-d.y)/g},B:a,C:d,S:r,E:l}}getABC(n,r){r=r||this.get(n);let a=this.points[0],l=this.points[this.order];return Ue.getABC(this.order,a,r,l,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n+1)return this._lut;this._lut=[],n++,this._lut=[];for(let r=0,a,l;r<n;r++)l=r/(n-1),a=this.compute(l),a.t=l,this._lut.push(a);return this._lut}on(n,r){r=r||5;const a=this.getLUT(),l=[];for(let u=0,c,h=0;u<a.length;u++)c=a[u],ie.dist(c,n)<r&&(l.push(c),h+=u/a.length);return l.length?t/=l.length:!1}project(n){const r=this.getLUT(),a=r.length-1,l=ie.closest(r,n),u=l.mpos,c=(u-1)/a,h=(u+1)/a,d=.1/a;let g=l.mdist,y=c,m=y,_;g+=1;for(let x;y<h+d;y+=d)_=this.compute(y),x=ie.dist(n,_),x<g&&(g=x,m=y);return m=m<0?0:m>1?1:m,_=this.compute(m),_.t=m,_.d=g,_}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?ie.computeWithRatios(n,this.points,this.ratios,this._3d):ie.compute(n,this.points,this._3d,this.ratios)}raise(){const n=this.points,r=[n[0]],a=n.length;for(let l=1,u,c;l<a;l++)u=n[l],c=n[l-1],r[l]={x:(a-l)/a*u.x+l/a*c.x,y:(a-l)/a*u.y+l/a*c.y};return r[a]=n[a-1],new Ue(r)}derivative(n){return ie.compute(n,this.dpoints[0],this._3d)}dderivative(n){return ie.compute(n,this.dpoints[1],this._3d)}align(){let n=this.points;return new Ue(ie.align(n,{p1:n[0],p2:n[n.length-1]}))}curvature(n){return ie.curvature(n,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return ie.inflections(this.points)}normal(n){return this._3d?this.__normal3(n):this.__normal2(n)}__normal2(n){const r=this.derivative(n),a=sa(r.x*r.x+r.y*r.y);return{t:n,x:-r.y/a,y:r.x/a}}__normal3(n){const r=this.derivative(n),a=this.derivative(n+.01),l=sa(r.x*r.x+r.y*r.y+r.z*r.z),u=sa(a.x*a.x+a.y*a.y+a.z*a.z);r.x/=l,r.y/=l,r.z/=l,a.x/=u,a.y/=u,a.z/=u;const c={x:a.y*r.z-a.z*r.y,y:a.z*r.x-a.x*r.z,z:a.x*r.y-a.y*r.x},h=sa(c.x*c.x+c.y*c.y+c.z*c.z);c.x/=h,c.y/=h,c.z/=h;const d=[c.x*c.x,c.x*c.y-c.z,c.x*c.z+c.y,c.x*c.y+c.z,c.y*c.y,c.y*c.z-c.x,c.x*c.z-c.y,c.y*c.z+c.x,c.z*c.z];return{t:n,x:d[0]*r.x+d[1]*r.y+d[2]*r.z,y:d[3]*r.x+d[4]*r.y+d[5]*r.z,z:d[6]*r.x+d[7]*r.y+d[8]*r.z}}hull(n){let r=this.points,a=[],l=[],u=0;for(l[u++]=r[0],l[u++]=r[1],l[u++]=r[2],this.order===3&&(l[u++]=r[3]);r.length>1;){a=[];for(let c=0,h,d=r.length-1;c<d;c++)h=ie.lerp(n,r[c],r[c+1]),l[u++]=h,a.push(h);r=a}return l}split(n,r){if(n===0&&r)return this.split(r).left;if(r===1)return this.split(n).right;const a=this.hull(n),l={left:this.order===2?new Ue([a[0],a[3],a[5]]):new Ue([a[0],a[4],a[7],a[9]]),right:this.order===2?new Ue([a[5],a[4],a[2]]):new Ue([a[9],a[8],a[6],a[3]]),span:a};return l.left._t1=ie.map(0,0,1,this._t1,this._t2),l.left._t2=ie.map(n,0,1,this._t1,this._t2),l.right._t1=ie.map(n,0,1,this._t1,this._t2),l.right._t2=ie.map(1,0,1,this._t1,this._t2),r?(r=ie.map(r,n,1,0,1),l.right.split(r).left):l}extrema(){const n={};let r=[];return this.dims.forEach((function(a){let l=function(c){return c[a]},u=this.dpoints[0].map(l);n[a]=ie.droots(u),this.order===3&&(u=this.dpoints[1].map(l),n[a]=n[a].concat(ie.droots(u))),n[a]=n[a].filter(function(c){return c>=0&&c<=1}),r=r.concat(n[a].sort(ie.numberSort))}).bind(this)),n.values=r.sort(ie.numberSort).filter(function(a,l){return r.indexOf(a)===l}),n}bbox(){const n=this.extrema(),r={};return this.dims.forEach((function(a){r[a]=ie.getminmax(this,a,n[a])}).bind(this)),r}overlaps(n){const r=this.bbox(),a=n.bbox();return ie.bboxoverlap(r,a)}offset(n,r){if(typeof r<"u"){const a=this.get(n),l=this.normal(n),u={c:a,n:l,x:a.x+l.x*r,y:a.y+l.y*r};return this._3d&&(u.z=a.z+l.z*r),u}if(this._linear){const a=this.normal(0),l=this.points.map(function(u){const c={x:u.x+n*a.x,y:u.y+n*a.y};return u.z&&a.z&&(c.z=u.z+n*a.z),c});return[new Ue(l)]}return this.reduce().map(function(a){return a._linear?a.offset(n)[0]:a.scale(n)})}simple(){if(this.order===3){const l=ie.angle(this.points[0],this.points[3],this.points[1]),u=ie.angle(this.points[0],this.points[3],this.points[2]);if(l>0&&u<0||l<0&&u>0)return!1}const n=this.normal(0),r=this.normal(1);let a=n.x*r.x+n.y*r.y;return this._3d&&(a+=n.z*r.z),la(l3(a))<s3/3}reduce(){let n,r=0,a=0,l=.01,u,c=[],h=[],d=this.extrema().values;for(d.indexOf(0)===-1&&(d=[0].concat(d)),d.indexOf(1)===-1&&d.push(1),r=d[0],n=1;n<d.length;n++)a=d[n],u=this.split(r,a),u._t1=r,u._t2=a,c.push(u),r=a;return c.forEach(function(g){for(r=0,a=0;a<=1;)for(a=r+l;a<=1+l;a+=l)if(u=g.split(r,a),!u.simple()){if(a-=l,la(r-a)<l)return[];u=g.split(r,a),u._t1=ie.map(r,0,1,g._t1,g._t2),u._t2=ie.map(a,0,1,g._t1,g._t2),h.push(u),r=a;break}r<1&&(u=g.split(r,1),u._t1=ie.map(r,0,1,g._t1,g._t2),u._t2=g._t2,h.push(u))}),h}translate(n,r,a){a=typeof a=="number"?a:r;const l=this.order;let u=this.points.map((c,h)=>(1-h/l)*r+h/l*a);return new Ue(this.points.map((c,h)=>({x:c.x+n.x*u[h],y:c.y+n.y*u[h]})))}scale(n){const r=this.order;let a=!1;if(typeof n=="function"&&(a=n),a&&r===2)return this.raise().scale(a);const l=this.clockwise,u=this.points;if(this._linear)return this.translate(this.normal(0),a?a(0):n,a?a(1):n);const c=a?a(0):n,h=a?a(1):n,d=[this.offset(0,10),this.offset(1,10)],g=[],y=ie.lli4(d[0],d[0].c,d[1],d[1].c);if(!y)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(m){const _=g[m*r]=ie.copy(u[m*r]);_.x+=(m?h:c)*d[m].n.x,_.y+=(m?h:c)*d[m].n.y}),a?([0,1].forEach(function(m){if(!(r===2&&m)){var _=u[m+1],x={x:_.x-y.x,y:_.y-y.y},k=a?a((m+1)/r):n;a&&!l&&(k=-k);var C=sa(x.x*x.x+x.y*x.y);x.x/=C,x.y/=C,g[m+1]={x:_.x+k*x.x,y:_.y+k*x.y}}}),new Ue(g)):([0,1].forEach(m=>{if(r===2&&m)return;const _=g[m*r],x=this.derivative(m),k={x:_.x+x.x,y:_.y+x.y};g[m+1]=ie.lli4(_,k,y,u[m+1])}),new Ue(g))}outline(n,r,a,l){if(r=r===void 0?n:r,this._linear){const T=this.normal(0),z=this.points[0],D=this.points[this.points.length-1];let I,q,K;a===void 0&&(a=n,l=r),I={x:z.x+T.x*n,y:z.y+T.y*n},K={x:D.x+T.x*a,y:D.y+T.y*a},q={x:(I.x+K.x)/2,y:(I.y+K.y)/2};const J=[I,q,K];I={x:z.x-T.x*r,y:z.y-T.y*r},K={x:D.x-T.x*l,y:D.y-T.y*l},q={x:(I.x+K.x)/2,y:(I.y+K.y)/2};const ae=[K,q,I],he=ie.makeline(ae[2],J[0]),F=ie.makeline(J[2],ae[0]),ne=[he,new Ue(J),F,new Ue(ae)];return new ga(ne)}const u=this.reduce(),c=u.length,h=[];let d=[],g,y=0,m=this.length();const _=typeof a<"u"&&typeof l<"u";function x(T,z,D,I,q){return function(K){const J=I/D,ae=(I+q)/D,he=z-T;return ie.map(K,0,1,T+J*he,T+ae*he)}}u.forEach(function(T){const z=T.length();_?(h.push(T.scale(x(n,a,m,y,z))),d.push(T.scale(x(-r,-l,m,y,z)))):(h.push(T.scale(n)),d.push(T.scale(-r))),y+=z}),d=d.map(function(T){return g=T.points,g[3]?T.points=[g[3],g[2],g[1],g[0]]:T.points=[g[2],g[1],g[0]],T}).reverse();const k=h[0].points[0],C=h[c-1].points[h[c-1].points.length-1],b=d[c-1].points[d[c-1].points.length-1],w=d[0].points[0],E=ie.makeline(b,k),M=ie.makeline(C,w),P=[E].concat(h).concat([M]).concat(d);return new ga(P)}outlineshapes(n,r,a){r=r||n;const l=this.outline(n,r).curves,u=[];for(let c=1,h=l.length;c<h/2;c++){const d=ie.makeshape(l[c],l[h-c],a);d.startcap.virtual=c>1,d.endcap.virtual=c<h/2-1,u.push(d)}return u}intersects(n,r){return n?n.p1&&n.p2?this.lineIntersects(n):(n instanceof Ue&&(n=n.reduce()),this.curveintersects(this.reduce(),n,r)):this.selfintersects(r)}lineIntersects(n){const r=_m(n.p1.x,n.p2.x),a=_m(n.p1.y,n.p2.y),l=xm(n.p1.x,n.p2.x),u=xm(n.p1.y,n.p2.y);return ie.roots(this.points,n).filter(c=>{var h=this.get(c);return ie.between(h.x,r,l)&&ie.between(h.y,a,u)})}selfintersects(n){const r=this.reduce(),a=r.length-2,l=[];for(let u=0,c,h,d;u<a;u++)h=r.slice(u,u+1),d=r.slice(u+2),c=this.curveintersects(h,d,n),l.push(...c);return l}curveintersects(n,r,a){const l=[];n.forEach(function(c){r.forEach(function(h){c.overlaps(h)&&l.push({left:c,right:h})})});let u=[];return l.forEach(function(c){const h=ie.pairiteration(c.left,c.right,a);h.length>0&&(u=u.concat(h))}),u}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,r,a,l){const u=(l-a)/4,c=this.get(a+u),h=this.get(l-u),d=ie.dist(n,r),g=ie.dist(n,c),y=ie.dist(n,h);return la(g-d)+la(y-d)}_iterate(n,r){let a=0,l=1,u;do{u=0,l=1;let c=this.get(a),h,d,g,y,m=!1,_=!1,x,k=l,C=1;do if(_=m,y=g,k=(a+l)/2,h=this.get(k),d=this.get(l),g=ie.getccenter(c,h,d),g.interval={start:a,end:l},m=this._error(g,c,a,l)<=n,x=_&&!m,x||(C=l),m){if(l>=1){if(g.interval.end=C=1,y=g,l>1){let w={x:g.x+g.r*o3(g.e),y:g.y+g.r*a3(g.e)};g.e+=ie.angle({x:g.x,y:g.y},w,this.get(1))}break}l=l+(l-a)/2}else l=k;while(!x&&u++<100);if(u>=100)break;y=y||g,r.push(y),a=C}while(l<1);return r}}function Nf(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=Array(n);r<n;r++)a[r]=e[r];return a}function u3(e){if(Array.isArray(e))return e}function c3(e){if(Array.isArray(e))return Nf(e)}function f3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function h3(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,l,u,c,h=[],d=!0,g=!1;try{if(u=(r=r.call(e)).next,n!==0)for(;!(d=(a=u.call(r)).done)&&(h.push(a.value),h.length!==n);d=!0);}catch(y){g=!0,l=y}finally{try{if(!d&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(g)throw l}}return h}}function d3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
116
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
117
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g3(e,n){if(e==null)return{};var r,a,l=m3(e,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(a=0;a<u.length;a++)r=u[a],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}function m3(e,n){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(n.includes(a))continue;r[a]=e[a]}return r}function y3(e,n){return u3(e)||h3(e,n)||My(e,n)||d3()}function v3(e){return c3(e)||f3(e)||My(e)||p3()}function _3(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,n);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function x3(e){var n=_3(e,"string");return typeof n=="symbol"?n:n+""}function My(e,n){if(e){if(typeof e=="string")return Nf(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nf(e,n):void 0}}var w3=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l=(n instanceof Array?n.length?n:[void 0]:[n]).map(function(h){return{keyAccessor:h,isProp:!(h instanceof Function)}}),u=e.reduce(function(h,d){var g=h,y=d;return l.forEach(function(m,_){var x=m.keyAccessor,k=m.isProp,C;if(k){var b=y,w=b[x],E=g3(b,[x].map(x3));C=w,y=E}else C=x(y,_);_+1<l.length?(g.hasOwnProperty(C)||(g[C]={}),g=g[C]):r?(g.hasOwnProperty(C)||(g[C]=[]),g[C].push(y)):g[C]=y}),h},{});r instanceof Function&&function h(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;g===l.length?Object.keys(d).forEach(function(y){return d[y]=r(d[y])}):Object.values(d).forEach(function(y){return h(y,g+1)})}(u);var c=u;return a&&(c=[],function h(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];g.length===l.length?c.push({keys:g,vals:d}):Object.entries(d).forEach(function(y){var m=y3(y,2),_=m[0],x=m[1];return h(x,[].concat(v3(g),[_]))})}(u),n instanceof Array&&n.length===0&&c.length===1&&(c[0].keys=[])),c};function k3(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}const wm=Symbol("implicit");function Ny(){var e=new Hg,n=[],r=[],a=wm;function l(u){let c=e.get(u);if(c===void 0){if(a!==wm)return a;e.set(u,c=n.push(u)-1)}return r[c%r.length]}return l.domain=function(u){if(!arguments.length)return n.slice();n=[],e=new Hg;for(const c of u)e.has(c)||e.set(c,n.push(c)-1);return l},l.range=function(u){return arguments.length?(r=Array.from(u),l):r.slice()},l.unknown=function(u){return arguments.length?(a=u,l):a},l.copy=function(){return Ny(n,r).unknown(a)},k3.apply(l,arguments),l}function S3(e){for(var n=e.length/6|0,r=new Array(n),a=0;a<n;)r[a]="#"+e.slice(a*6,++a*6);return r}const C3=S3("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");function b3(e,n){n===void 0&&(n={});var r=n.insertAt;if(!(typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",r==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}var E3=`.force-graph-container canvas {
|
|
118
|
-
display: block;
|
|
119
|
-
user-select: none;
|
|
120
|
-
outline: none;
|
|
121
|
-
-webkit-tap-highlight-color: transparent;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.force-graph-container .clickable {
|
|
125
|
-
cursor: pointer;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.force-graph-container .grabbable {
|
|
129
|
-
cursor: move;
|
|
130
|
-
cursor: grab;
|
|
131
|
-
cursor: -moz-grab;
|
|
132
|
-
cursor: -webkit-grab;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.force-graph-container .grabbable:active {
|
|
136
|
-
cursor: grabbing;
|
|
137
|
-
cursor: -moz-grabbing;
|
|
138
|
-
cursor: -webkit-grabbing;
|
|
139
|
-
}
|
|
140
|
-
`;b3(E3);function Of(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=Array(n);r<n;r++)a[r]=e[r];return a}function P3(e){if(Array.isArray(e))return e}function R3(e){if(Array.isArray(e))return Of(e)}function km(e,n,r){if(Oy())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,n);var l=new(e.bind.apply(e,a));return l}function ba(e,n,r){return(n=z3(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Oy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Oy=function(){return!!e})()}function T3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M3(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,l,u,c,h=[],d=!0,g=!1;try{if(u=(r=r.call(e)).next,n!==0)for(;!(d=(a=u.call(r)).done)&&(h.push(a.value),h.length!==n);d=!0);}catch(y){g=!0,l=y}finally{try{if(!d&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(g)throw l}}return h}}function N3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
141
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
142
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sm(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,a)}return r}function Bi(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Sm(Object(r),!0).forEach(function(a){ba(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sm(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ma(e,n){return P3(e)||M3(e,n)||Ay(e,n)||N3()}function Yt(e){return R3(e)||T3(e)||Ay(e)||O3()}function A3(e,n){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,n);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function z3(e){var n=A3(e,"string");return typeof n=="symbol"?n:n+""}function Af(e){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Af(e)}function Ay(e,n){if(e){if(typeof e=="string")return Of(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Of(e,n):void 0}}var j3=Ny(C3);function Cm(e,n,r){!n||typeof r!="string"||e.filter(function(a){return!a[r]}).forEach(function(a){a[r]=j3(n(a))})}function D3(e,n){var r=e.nodes,a=e.links,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=l.nodeFilter,c=u===void 0?function(){return!0}:u,h=l.onLoopError,d=h===void 0?function(x){throw"Invalid DAG structure! Found cycle in node path: ".concat(x.join(" -> "),".")}:h,g={};r.forEach(function(x){return g[n(x)]={data:x,out:[],depth:-1,skip:!c(x)}}),a.forEach(function(x){var k=x.source,C=x.target,b=P(k),w=P(C);if(!g.hasOwnProperty(b))throw"Missing source node with id: ".concat(b);if(!g.hasOwnProperty(w))throw"Missing target node with id: ".concat(w);var E=g[b],M=g[w];E.out.push(M);function P(T){return Af(T)==="object"?n(T):T}});var y=[];_(Object.values(g));var m=Object.assign.apply(Object,[{}].concat(Yt(Object.entries(g).filter(function(x){var k=ma(x,2),C=k[1];return!C.skip}).map(function(x){var k=ma(x,2),C=k[0],b=k[1];return ba({},C,b.depth)}))));return m;function _(x){for(var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,b=function(){var P=x[w];if(k.indexOf(P)!==-1){var T=[].concat(Yt(k.slice(k.indexOf(P))),[P]).map(function(z){return n(z.data)});return y.some(function(z){return z.length===T.length&&z.every(function(D,I){return D===T[I]})})||(y.push(T),d(T)),1}C>P.depth&&(P.depth=C,_(P.out,[].concat(Yt(k),[P]),C+(P.skip?0:1)))},w=0,E=x.length;w<E;w++)b()}}var I3=2,dt=function(n,r){return r.onNeedsRedraw&&r.onNeedsRedraw()},bm=function(n,r){if(!r.isShadow){var a=De(r.linkDirectionalParticles);r.graphData.links.forEach(function(l){var u=Math.round(Math.abs(a(l)));u?l.__photons=Yt(Array(u)).map(function(){return{}}):delete l.__photons})}},Rs=Zf({props:{graphData:{default:{nodes:[],links:[]},onChange:function(n,r){r.engineRunning=!1,bm(n,r)}},dagMode:{onChange:function(n,r){!n&&(r.graphData.nodes||[]).forEach(function(a){return a.fx=a.fy=void 0})}},dagLevelDistance:{},dagNodeFilter:{default:function(n){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:dt},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:dt},nodeColor:{default:"color",triggerUpdate:!1,onChange:dt},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:dt},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:dt},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:dt},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:dt},linkColor:{default:"color",triggerUpdate:!1,onChange:dt},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:dt},linkWidth:{default:1,triggerUpdate:!1,onChange:dt},linkCurvature:{default:0,triggerUpdate:!1,onChange:dt},linkCanvasObject:{triggerUpdate:!1,onChange:dt},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:dt},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:dt},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:dt},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:dt},linkDirectionalParticles:{default:0,triggerUpdate:!1,onChange:bm},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:4,triggerUpdate:!1},linkDirectionalParticleColor:{triggerUpdate:!1},globalScale:{default:1,triggerUpdate:!1},d3AlphaMin:{default:0,triggerUpdate:!1},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(n,r){r.forceLayout.alphaDecay(n)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(n,r){r.forceLayout.alphaTarget(n)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(n,r){r.forceLayout.velocityDecay(n)}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1},onNeedsRedraw:{triggerUpdate:!1},isShadow:{default:!1,triggerUpdate:!1}},methods:{d3Force:function(n,r,a){return a===void 0?n.forceLayout.force(r):(n.forceLayout.force(r,a),this)},d3ReheatSimulation:function(n){return n.forceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(n){return n.cntTicks=0,n.startTickTime=new Date,n.engineRunning=!0,this},isEngineRunning:function(n){return!!n.engineRunning},tickFrame:function(n){return!n.isShadow&&r(),l(),!n.isShadow&&u(),!n.isShadow&&c(),a(),this;function r(){n.engineRunning&&(++n.cntTicks>n.cooldownTicks||new Date-n.startTickTime>n.cooldownTime||n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin?(n.engineRunning=!1,n.onEngineStop()):(n.forceLayout.tick(),n.onEngineTick()))}function a(){var h=De(n.nodeVisibility),d=De(n.nodeVal),g=De(n.nodeColor),y=De(n.nodeCanvasObjectMode),m=n.ctx,_=n.isShadow/n.globalScale,x=n.graphData.nodes.filter(h);m.save(),x.forEach(function(k){var C=y(k);if(n.nodeCanvasObject&&(C==="before"||C==="replace")&&(n.nodeCanvasObject(k,m,n.globalScale),C==="replace")){m.restore();return}var b=Math.sqrt(Math.max(0,d(k)||1))*n.nodeRelSize+_;m.beginPath(),m.arc(k.x,k.y,b,0,2*Math.PI,!1),m.fillStyle=g(k)||"rgba(31, 120, 180, 0.92)",m.fill(),n.nodeCanvasObject&&C==="after"&&n.nodeCanvasObject(k,n.ctx,n.globalScale)}),m.restore()}function l(){var h=De(n.linkVisibility),d=De(n.linkColor),g=De(n.linkWidth),y=De(n.linkLineDash),m=De(n.linkCurvature),_=De(n.linkCanvasObjectMode),x=n.ctx,k=n.isShadow*2,C=n.graphData.links.filter(h);C.forEach(z);var b=[],w=[],E=C;if(n.linkCanvasObject){var M=[],P=[];C.forEach(function(D){return({before:b,after:w,replace:M}[_(D)]||P).push(D)}),E=[].concat(Yt(b),w,P),b=b.concat(M)}x.save(),b.forEach(function(D){return n.linkCanvasObject(D,x,n.globalScale)}),x.restore();var T=w3(E,[d,g,y]);x.save(),Object.entries(T).forEach(function(D){var I=ma(D,2),q=I[0],K=I[1],J=!q||q==="undefined"?"rgba(0,0,0,0.15)":q;Object.entries(K).forEach(function(ae){var he=ma(ae,2),F=he[0],ne=he[1],G=(F||1)/n.globalScale+k;Object.entries(ne).forEach(function(oe){var Q=ma(oe,2);Q[0];var ee=Q[1],X=y(ee[0]);x.beginPath(),ee.forEach(function(N){var V=N.source,ce=N.target;if(!(!V||!ce||!V.hasOwnProperty("x")||!ce.hasOwnProperty("x"))){x.moveTo(V.x,V.y);var pe=N.__controlPoints;pe?x[pe.length===2?"quadraticCurveTo":"bezierCurveTo"].apply(x,Yt(pe).concat([ce.x,ce.y])):x.lineTo(ce.x,ce.y)}}),x.strokeStyle=J,x.lineWidth=G,x.setLineDash(X||[]),x.stroke()})})}),x.restore(),x.save(),w.forEach(function(D){return n.linkCanvasObject(D,x,n.globalScale)}),x.restore();function z(D){var I=m(D);if(!I){D.__controlPoints=null;return}var q=D.source,K=D.target;if(!(!q||!K||!q.hasOwnProperty("x")||!K.hasOwnProperty("x"))){var J=Math.sqrt(Math.pow(K.x-q.x,2)+Math.pow(K.y-q.y,2));if(J>0){var ae=Math.atan2(K.y-q.y,K.x-q.x),he=J*I,F={x:(q.x+K.x)/2+he*Math.cos(ae-Math.PI/2),y:(q.y+K.y)/2+he*Math.sin(ae-Math.PI/2)};D.__controlPoints=[F.x,F.y]}else{var ne=I*70;D.__controlPoints=[K.x,K.y-ne,K.x+ne,K.y]}}}}function u(){var h=1.6,d=.2,g=De(n.linkDirectionalArrowLength),y=De(n.linkDirectionalArrowRelPos),m=De(n.linkVisibility),_=De(n.linkDirectionalArrowColor||n.linkColor),x=De(n.nodeVal),k=n.ctx;k.save(),n.graphData.links.filter(m).forEach(function(C){var b=g(C);if(!(!b||b<0)){var w=C.source,E=C.target;if(!(!w||!E||!w.hasOwnProperty("x")||!E.hasOwnProperty("x"))){var M=Math.sqrt(Math.max(0,x(w)||1))*n.nodeRelSize,P=Math.sqrt(Math.max(0,x(E)||1))*n.nodeRelSize,T=Math.min(1,Math.max(0,y(C))),z=_(C)||"rgba(0,0,0,0.28)",D=b/h/2,I=C.__controlPoints&&km(Ue,[w.x,w.y].concat(Yt(C.__controlPoints),[E.x,E.y])),q=I?function(G){return I.get(G)}:function(G){return{x:w.x+(E.x-w.x)*G||0,y:w.y+(E.y-w.y)*G||0}},K=I?I.length():Math.sqrt(Math.pow(E.x-w.x,2)+Math.pow(E.y-w.y,2)),J=M+b+(K-M-P-b)*T,ae=q(J/K),he=q((J-b)/K),F=q((J-b*(1-d))/K),ne=Math.atan2(ae.y-he.y,ae.x-he.x)-Math.PI/2;k.beginPath(),k.moveTo(ae.x,ae.y),k.lineTo(he.x+D*Math.cos(ne),he.y+D*Math.sin(ne)),k.lineTo(F.x,F.y),k.lineTo(he.x-D*Math.cos(ne),he.y-D*Math.sin(ne)),k.fillStyle=z,k.fill()}}}),k.restore()}function c(){var h=De(n.linkDirectionalParticles),d=De(n.linkDirectionalParticleSpeed),g=De(n.linkDirectionalParticleWidth),y=De(n.linkVisibility),m=De(n.linkDirectionalParticleColor||n.linkColor),_=n.ctx;_.save(),n.graphData.links.filter(y).forEach(function(x){var k=h(x);if(!(!x.hasOwnProperty("__photons")||!x.__photons.length)){var C=x.source,b=x.target;if(!(!C||!b||!C.hasOwnProperty("x")||!b.hasOwnProperty("x"))){var w=d(x),E=x.__photons||[],M=Math.max(0,g(x)/2)/Math.sqrt(n.globalScale),P=m(x)||"rgba(0,0,0,0.28)";_.fillStyle=P;var T=x.__controlPoints?km(Ue,[C.x,C.y].concat(Yt(x.__controlPoints),[b.x,b.y])):null,z=0,D=!1;E.forEach(function(I){var q=!!I.__singleHop;if(I.hasOwnProperty("__progressRatio")||(I.__progressRatio=q?0:z/k),!q&&z++,I.__progressRatio+=w,I.__progressRatio>=1)if(!q)I.__progressRatio=I.__progressRatio%1;else{D=!0;return}var K=I.__progressRatio,J=T?T.get(K):{x:C.x+(b.x-C.x)*K||0,y:C.y+(b.y-C.y)*K||0};_.beginPath(),_.arc(J.x,J.y,M,0,2*Math.PI,!1),_.fill()}),D&&(x.__photons=x.__photons.filter(function(I){return!I.__singleHop||I.__progressRatio<=1}))}}}),_.restore()}},emitParticle:function(n,r){return r&&(!r.__photons&&(r.__photons=[]),r.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:JE().force("link",WE()).force("charge",e3()).force("center",Qb()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(n,r){r.ctx=n},update:function(n,r){n.engineRunning=!1,n.onUpdate(),n.nodeAutoColorBy!==null&&Cm(n.graphData.nodes,De(n.nodeAutoColorBy),n.nodeColor),n.linkAutoColorBy!==null&&Cm(n.graphData.links,De(n.linkAutoColorBy),n.linkColor),n.graphData.links.forEach(function(_){_.source=_[n.linkSource],_.target=_[n.linkTarget]}),n.forceLayout.stop().alpha(1).nodes(n.graphData.nodes);var a=n.forceLayout.force("link");a&&a.id(function(_){return _[n.nodeId]}).links(n.graphData.links);var l=n.dagMode&&D3(n.graphData,function(_){return _[n.nodeId]},{nodeFilter:n.dagNodeFilter,onLoopError:n.onDagError||void 0}),u=Math.max.apply(Math,Yt(Object.values(l||[]))),c=n.dagLevelDistance||n.graphData.nodes.length/(u||1)*I3*(["radialin","radialout"].indexOf(n.dagMode)!==-1?.7:1);if(["lr","rl","td","bu"].includes(r.dagMode)){var h=["lr","rl"].includes(r.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(_){return delete _[h]})}if(["lr","rl","td","bu"].includes(n.dagMode)){var d=["rl","bu"].includes(n.dagMode),g=function(x){return(l[x[n.nodeId]]-u/2)*c*(d?-1:1)},y=["lr","rl"].includes(n.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(_){return _[y]=g(_)})}n.forceLayout.force("dagRadial",["radialin","radialout"].indexOf(n.dagMode)!==-1?t3(function(_){var x=l[_[n.nodeId]]||-1;return(n.dagMode==="radialin"?u-x:x)*c}).strength(function(_){return n.dagNodeFilter(_)?1:0}):null);for(var m=0;m<n.warmupTicks&&!(n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin);m++)n.forceLayout.tick();this.resetCountdown(),n.onFinishUpdate()}});function zy(e,n){var r=e instanceof Array?e:[e],a=new n;return a._destructor&&a._destructor(),{linkProp:function(u){return{default:a[u](),onChange:function(h,d){r.forEach(function(g){return d[g][u](h)})},triggerUpdate:!1}},linkMethod:function(u){return function(c){for(var h=arguments.length,d=new Array(h>1?h-1:0),g=1;g<h;g++)d[g-1]=arguments[g];var y=[];return r.forEach(function(m){var _=c[m],x=_[u].apply(_,d);x!==_&&y.push(x)}),y.length?y[0]:this}}}}var L3=800,F3=4,$3=5,jy=zy("forceGraph",Rs),U3=zy(["forceGraph","shadowGraph"],Rs),H3=Object.assign.apply(Object,Yt(["nodeColor","nodeAutoColorBy","nodeCanvasObject","nodeCanvasObjectMode","linkColor","linkAutoColorBy","linkLineDash","linkWidth","linkCanvasObject","linkCanvasObjectMode","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","dagMode","dagLevelDistance","dagNodeFilter","onDagError","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map(function(e){return ba({},e,jy.linkProp(e))})).concat(Yt(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map(function(e){return ba({},e,U3.linkProp(e))})))),B3=Object.assign.apply(Object,Yt(["d3Force","d3ReheatSimulation","emitParticle"].map(function(e){return ba({},e,jy.linkMethod(e))})));function Qc(e){if(e.canvas){var n=e.canvas.width,r=e.canvas.height;n===300&&r===150&&(n=r=0);var a=window.devicePixelRatio;n/=a,r/=a,[e.canvas,e.shadowCanvas].forEach(function(u){u.style.width="".concat(e.width,"px"),u.style.height="".concat(e.height,"px"),u.width=e.width*a,u.height=e.height*a,!n&&!r&&u.getContext("2d").scale(a,a)});var l=xn(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-n)/2/l,(e.height-r)/2/l),e.needsRedraw=!0}}function Dy(e){var n=window.devicePixelRatio;e.setTransform(n,0,0,n,0,0)}function Em(e,n,r){e.save(),Dy(e),e.clearRect(0,0,n,r),e.restore()}var V3=Zf({props:Bi({width:{default:window.innerWidth,onChange:function(n,r){return Qc(r)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(n,r){return Qc(r)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(n,r){[n.nodes,n.links].every(function(l){return(l||[]).every(function(u){return!u.hasOwnProperty("__indexColor")})})&&r.colorTracker.reset(),[{type:"Node",objs:n.nodes},{type:"Link",objs:n.links}].forEach(a),r.forceGraph.graphData(n),r.shadowGraph.graphData(n);function a(l){var u=l.type,c=l.objs;c.filter(function(h){if(!h.hasOwnProperty("__indexColor"))return!0;var d=r.colorTracker.lookup(h.__indexColor);return!d||!d.hasOwnProperty("d")||d.d!==h}).forEach(function(h){h.__indexColor=r.colorTracker.register({type:u,d:h})})}},triggerUpdate:!1},backgroundColor:{onChange:function(n,r){r.canvas&&n&&(r.canvas.style.background=n)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(n,r){r.shadowGraph.nodeCanvasObject(n?function(a,l,u){return n(a,a.__indexColor,l,u)}:null),r.flushShadowCanvas&&r.flushShadowCanvas()},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(n,r){r.shadowGraph.linkCanvasObject(n?function(a,l,u){return n(a,a.__indexColor,l,u)}:null),r.flushShadowCanvas&&r.flushShadowCanvas()},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(n,r){r.zoom.scaleExtent([n,r.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(n,r){r.zoom.scaleExtent([r.zoom.scaleExtent()[0],n])},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},enableZoomInteraction:{default:!0,triggerUpdate:!1},enablePanInteraction:{default:!0,triggerUpdate:!1},enableZoomPanInteraction:{default:!0,triggerUpdate:!1},enablePointerInteraction:{default:!0,onChange:function(n,r){r.hoverObj=null},triggerUpdate:!1},autoPauseRedraw:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1},onZoom:{triggerUpdate:!1},onZoomEnd:{triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},H3),aliases:{stopAnimation:"pauseAnimation"},methods:Bi({graph2ScreenCoords:function(n,r,a){var l=xn(n.canvas);return{x:r*l.k+l.x,y:a*l.k+l.y}},screen2GraphCoords:function(n,r,a){var l=xn(n.canvas);return{x:(r-l.x)/l.k,y:(a-l.y)/l.k}},centerAt:function(n,r,a,l){if(!n.canvas)return null;if(r!==void 0||a!==void 0){var u=Object.assign({},r!==void 0?{x:r}:{},a!==void 0?{y:a}:{});return l?n.tweenGroup.add(new Gg(c()).to(u,l).easing(si.Quadratic.Out).onUpdate(h).start()):h(u),this}return c();function c(){var d=xn(n.canvas);return{x:(n.width/2-d.x)/d.k,y:(n.height/2-d.y)/d.k}}function h(d){var g=d.x,y=d.y;n.zoom.translateTo(n.zoom.__baseElem,g===void 0?c().x:g,y===void 0?c().y:y),n.needsRedraw=!0}},zoom:function(n,r,a){if(!n.canvas)return null;if(r!==void 0)return a?n.tweenGroup.add(new Gg({k:l()}).to({k:r},a).easing(si.Quadratic.Out).onUpdate(function(c){var h=c.k;return u(h)}).start()):u(r),this;return l();function l(){return xn(n.canvas).k}function u(c){n.zoom.scaleTo(n.zoom.__baseElem,c),n.needsRedraw=!0}},zoomToFit:function(n){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,l=arguments.length,u=new Array(l>3?l-3:0),c=3;c<l;c++)u[c-3]=arguments[c];var h=this.getGraphBbox.apply(this,u);if(h){var d={x:(h.x[0]+h.x[1])/2,y:(h.y[0]+h.y[1])/2},g=Math.max(1e-12,Math.min(1e12,(n.width-a*2)/(h.x[1]-h.x[0]),(n.height-a*2)/(h.y[1]-h.y[0])));this.centerAt(d.x,d.y,r),this.zoom(g,r)}return this},getGraphBbox:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},a=De(n.nodeVal),l=function(h){return Math.sqrt(Math.max(0,a(h)||1))*n.nodeRelSize},u=n.graphData.nodes.filter(r).map(function(c){return{x:c.x,y:c.y,r:l(c)}});return u.length?{x:[Wg(u,function(c){return c.x-c.r}),Vg(u,function(c){return c.x+c.r})],y:[Wg(u,function(c){return c.y-c.r}),Vg(u,function(c){return c.y+c.r})]}:null},pauseAnimation:function(n){return n.animationFrameRequestId&&(cancelAnimationFrame(n.animationFrameRequestId),n.animationFrameRequestId=null),this},resumeAnimation:function(n){return n.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},B3),stateInit:function(){return{lastSetZoom:1,zoom:tC(),forceGraph:new Rs,shadowGraph:new Rs().cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new bb,tweenGroup:new iy}},init:function(n,r){var a=this;n.innerHTML="";var l=document.createElement("div");l.classList.add("force-graph-container"),l.style.position="relative",n.appendChild(l),r.canvas=document.createElement("canvas"),r.backgroundColor&&(r.canvas.style.background=r.backgroundColor),l.appendChild(r.canvas),r.shadowCanvas=document.createElement("canvas");var u=r.canvas.getContext("2d"),c=r.shadowCanvas.getContext("2d",{willReadFrequently:!0}),h={x:-1e12,y:-1e12},d=function(){var m=null,_=window.devicePixelRatio,x=h.x>0&&h.y>0?c.getImageData(h.x*_,h.y*_,1,1):null;return x&&(m=r.colorTracker.lookup(x.data)),m};Xt(r.canvas).call(fk().subject(function(){if(!r.enableNodeDrag)return null;var y=d();return y&&y.type==="Node"?y.d:null}).on("start",function(y){var m=y.subject;m.__initialDragPos={x:m.x,y:m.y,fx:m.fx,fy:m.fy},y.active||(m.fx=m.x,m.fy=m.y),r.canvas.classList.add("grabbable")}).on("drag",function(y){var m=y.subject,_=m.__initialDragPos,x=y,k=xn(r.canvas).k,C={x:_.x+(x.x-_.x)/k-m.x,y:_.y+(x.y-_.y)/k-m.y};["x","y"].forEach(function(b){return m["f".concat(b)]=m[b]=_[b]+(x[b]-_[b])/k}),!(!m.__dragged&&$3>=Math.sqrt(oC(["x","y"].map(function(b){return Math.pow(y[b]-_[b],2)}))))&&(r.forceGraph.d3AlphaTarget(.3).resetCountdown(),r.isPointerDragging=!0,m.__dragged=!0,r.onNodeDrag(m,C))}).on("end",function(y){var m=y.subject,_=m.__initialDragPos,x={x:m.x-_.x,y:m.y-_.y};_.fx===void 0&&(m.fx=void 0),_.fy===void 0&&(m.fy=void 0),delete m.__initialDragPos,r.forceGraph.d3AlphaTarget()&&r.forceGraph.d3AlphaTarget(0).resetCountdown(),r.canvas.classList.remove("grabbable"),r.isPointerDragging=!1,m.__dragged&&(delete m.__dragged,r.onNodeDragEnd(m,x))})),r.zoom(r.zoom.__baseElem=Xt(r.canvas)),r.zoom.__baseElem.on("dblclick.zoom",null),r.zoom.filter(function(y){return!y.button&&r.enableZoomPanInteraction&&(y.type!=="wheel"||De(r.enableZoomInteraction)(y))&&(y.type==="wheel"||De(r.enablePanInteraction)(y))}).on("zoom",function(y){var m=y.transform;[u,c].forEach(function(_){Dy(_),_.translate(m.x,m.y),_.scale(m.k,m.k)}),r.isPointerDragging=!0,r.onZoom&&r.onZoom(Bi(Bi({},m),a.centerAt())),r.needsRedraw=!0}).on("end",function(y){r.isPointerDragging=!1,r.onZoomEnd&&r.onZoomEnd(Bi(Bi({},y.transform),a.centerAt()))}),Qc(r),r.forceGraph.onNeedsRedraw(function(){return r.needsRedraw=!0}).onFinishUpdate(function(){xn(r.canvas).k===r.lastSetZoom&&r.graphData.nodes.length&&(r.zoom.scaleTo(r.zoom.__baseElem,r.lastSetZoom=F3/Math.cbrt(r.graphData.nodes.length)),r.needsRedraw=!0)}),r.tooltip=new qb(l),["pointermove","pointerdown"].forEach(function(y){return l.addEventListener(y,function(m){y==="pointerdown"&&(r.isPointerPressed=!0,r.pointerDownEvent=m),!r.isPointerDragging&&m.type==="pointermove"&&r.onBackgroundClick&&(m.pressure>0||r.isPointerPressed)&&(m.pointerType!=="touch"||m.movementX===void 0||[m.movementX,m.movementY].some(function(k){return Math.abs(k)>1}))&&(r.isPointerDragging=!0);var _=x(l);h.x=m.pageX-_.left,h.y=m.pageY-_.top;function x(k){var C=k.getBoundingClientRect(),b=window.pageXOffset||document.documentElement.scrollLeft,w=window.pageYOffset||document.documentElement.scrollTop;return{top:C.top+w,left:C.left+b}}},{passive:!0})}),l.addEventListener("pointerup",function(y){if(r.isPointerPressed){if(r.isPointerPressed=!1,r.isPointerDragging){r.isPointerDragging=!1;return}var m=[y,r.pointerDownEvent];requestAnimationFrame(function(){if(y.button===0)if(r.hoverObj){var _=r["on".concat(r.hoverObj.type,"Click")];_&&_.apply(void 0,[r.hoverObj.d].concat(m))}else r.onBackgroundClick&&r.onBackgroundClick.apply(r,m);if(y.button===2)if(r.hoverObj){var x=r["on".concat(r.hoverObj.type,"RightClick")];x&&x.apply(void 0,[r.hoverObj.d].concat(m))}else r.onBackgroundRightClick&&r.onBackgroundRightClick.apply(r,m)})}},{passive:!0}),l.addEventListener("contextmenu",function(y){return!r.onBackgroundRightClick&&!r.onNodeRightClick&&!r.onLinkRightClick?!0:(y.preventDefault(),!1)}),r.forceGraph(u),r.shadowGraph(c);var g=OC(function(){Em(c,r.width,r.height),r.shadowGraph.linkWidth(function(m){return De(r.linkWidth)(m)+r.linkHoverPrecision});var y=xn(r.canvas);r.shadowGraph.globalScale(y.k).tickFrame()},L3);r.flushShadowCanvas=g.flush,(this._animationCycle=function y(){var m=!r.autoPauseRedraw||!!r.needsRedraw||r.forceGraph.isEngineRunning()||r.graphData.links.some(function(M){return M.__photons&&M.__photons.length});if(r.needsRedraw=!1,r.enablePointerInteraction){var _=r.isPointerDragging?null:d();if(_!==r.hoverObj){var x=r.hoverObj,k=x?x.type:null,C=_?_.type:null;if(k&&k!==C){var b=r["on".concat(k,"Hover")];b&&b(null,x.d)}if(C){var w=r["on".concat(C,"Hover")];w&&w(_.d,k===C?x.d:null)}r.tooltip.content(_&&De(r["".concat(_.type.toLowerCase(),"Label")])(_.d)||null),r.canvas.classList[_&&r["on".concat(C,"Click")]||!_&&r.onBackgroundClick?"add":"remove"]("clickable"),r.hoverObj=_}m&&g()}if(m){Em(u,r.width,r.height);var E=xn(r.canvas).k;r.onRenderFramePre&&r.onRenderFramePre(u,E),r.forceGraph.globalScale(E).tickFrame(),r.onRenderFramePost&&r.onRenderFramePost(u,E)}r.tweenGroup.update(),r.animationFrameRequestId=requestAnimationFrame(y)})()},update:function(n){}}),Kc={exports:{}},Gc,Pm;function W3(){if(Pm)return Gc;Pm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gc=e,Gc}var Xc,Rm;function q3(){if(Rm)return Xc;Rm=1;var e=W3();function n(){}function r(){}return r.resetWarningCache=n,Xc=function(){function a(c,h,d,g,y,m){if(m!==e){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}a.isRequired=a;function l(){return a}var u={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:l,element:a,elementType:a,instanceOf:l,node:a,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:r,resetWarningCache:n};return u.PropTypes=u,u},Xc}var Tm;function Q3(){return Tm||(Tm=1,Kc.exports=q3()()),Kc.exports}var K3=Q3();const L=Qm(K3),Ls={width:L.number,height:L.number,graphData:L.shape({nodes:L.arrayOf(L.object).isRequired,links:L.arrayOf(L.object).isRequired}),backgroundColor:L.string,nodeRelSize:L.number,nodeId:L.string,nodeLabel:L.oneOfType([L.string,L.func]),nodeVal:L.oneOfType([L.number,L.string,L.func]),nodeVisibility:L.oneOfType([L.bool,L.string,L.func]),nodeColor:L.oneOfType([L.string,L.func]),nodeAutoColorBy:L.oneOfType([L.string,L.func]),onNodeHover:L.func,onNodeClick:L.func,linkSource:L.string,linkTarget:L.string,linkLabel:L.oneOfType([L.string,L.func]),linkVisibility:L.oneOfType([L.bool,L.string,L.func]),linkColor:L.oneOfType([L.string,L.func]),linkAutoColorBy:L.oneOfType([L.string,L.func]),linkWidth:L.oneOfType([L.number,L.string,L.func]),linkCurvature:L.oneOfType([L.number,L.string,L.func]),linkDirectionalArrowLength:L.oneOfType([L.number,L.string,L.func]),linkDirectionalArrowColor:L.oneOfType([L.string,L.func]),linkDirectionalArrowRelPos:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticles:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticleSpeed:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticleWidth:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticleColor:L.oneOfType([L.string,L.func]),onLinkHover:L.func,onLinkClick:L.func,dagMode:L.oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:L.number,dagNodeFilter:L.func,onDagError:L.func,d3AlphaMin:L.number,d3AlphaDecay:L.number,d3VelocityDecay:L.number,warmupTicks:L.number,cooldownTicks:L.number,cooldownTime:L.number,onEngineTick:L.func,onEngineStop:L.func,getGraphBbox:L.func},Iy={zoomToFit:L.func,onNodeRightClick:L.func,onNodeDrag:L.func,onNodeDragEnd:L.func,onLinkRightClick:L.func,linkHoverPrecision:L.number,onBackgroundClick:L.func,onBackgroundRightClick:L.func,enablePointerInteraction:L.bool,enableNodeDrag:L.bool},ah={showNavInfo:L.bool,nodeOpacity:L.number,nodeResolution:L.number,nodeThreeObject:L.oneOfType([L.object,L.string,L.func]),nodeThreeObjectExtend:L.oneOfType([L.bool,L.string,L.func]),linkOpacity:L.number,linkResolution:L.number,linkCurveRotation:L.oneOfType([L.number,L.string,L.func]),linkMaterial:L.oneOfType([L.object,L.string,L.func]),linkThreeObject:L.oneOfType([L.object,L.string,L.func]),linkThreeObjectExtend:L.oneOfType([L.bool,L.string,L.func]),linkPositionUpdate:L.func,linkDirectionalArrowResolution:L.number,linkDirectionalParticleResolution:L.number,forceEngine:L.oneOf(["d3","ngraph"]),ngraphPhysics:L.object,numDimensions:L.oneOf([1,2,3])},G3=Object.assign({},Ls,Iy,{linkLineDash:L.oneOfType([L.arrayOf(L.number),L.string,L.func]),nodeCanvasObjectMode:L.oneOfType([L.string,L.func]),nodeCanvasObject:L.func,nodePointerAreaPaint:L.func,linkCanvasObjectMode:L.oneOfType([L.string,L.func]),linkCanvasObject:L.func,linkPointerAreaPaint:L.func,autoPauseRedraw:L.bool,minZoom:L.number,maxZoom:L.number,enableZoomInteraction:L.oneOfType([L.bool,L.func]),enablePanInteraction:L.oneOfType([L.bool,L.func]),onZoom:L.func,onZoomEnd:L.func,onRenderFramePre:L.func,onRenderFramePost:L.func});Object.assign({},Ls,Iy,ah,{enableNavigationControls:L.bool,controlType:L.oneOf(["trackball","orbit","fly"]),rendererConfig:L.object,extraRenderers:L.arrayOf(L.shape({render:L.func.isRequired}))});Object.assign({},Ls,ah,{nodeDesc:L.oneOfType([L.string,L.func]),linkDesc:L.oneOfType([L.string,L.func])});Object.assign({},Ls,ah,{markerAttrs:L.object,yOffset:L.number,glScale:L.number});const lh=Sw(V3,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});lh.displayName="ForceGraph2D";lh.propTypes=G3;const Yc=50,X3=2;function Y3({memories:e,onNodeClick:n,selectedMemoryId:r}){const a=$.useRef(void 0),[l,u]=$.useState({nodes:[],links:[]}),[c,h]=$.useState(new Set),[d,g]=$.useState(new Set),[y,m]=$.useState(null);$.useEffect(()=>{if(e&&e.length>0){const k=e.slice(0,Yc).map(b=>{var w,E;return{id:b.id,name:((w=b.metadata)==null?void 0:w.title)||((E=b.id)==null?void 0:E.substring(0,8))||"Memory",val:5,memory:b}}),C=[];if(k.length>1)for(let b=0;b<k.length;b++){const w=k[b];for(let E=0;E<Math.min(X3,k.length-1);E++){let M=Math.floor(Math.random()*k.length);for(;M===b||C.some(P=>P.source===w.id&&P.target===k[M].id);)M=Math.floor(Math.random()*k.length);k[M]&&C.push({source:w.id,target:k[M].id,value:Math.random()*2+1})}}u({nodes:k,links:C})}else u({nodes:[],links:[]})},[e]);const _=k=>{c.clear(),d.clear(),k&&(c.add(k.id),l.links.forEach(C=>{(C.source===k.id||C.target===k.id)&&(d.add(C),c.add(C.source),c.add(C.target))})),m(k),h(new Set(c)),g(new Set(d))},x=$.useCallback(k=>{var C,b;n(k.memory),(C=a.current)==null||C.centerAt(k.x,k.y,1e3),(b=a.current)==null||b.zoom(2,1e3)},[n,a]);return!e||e.length===0?W.jsx("div",{className:"text-center text-muted-foreground p-8",children:"No memories to display in graph."}):l.nodes.length===0&&e.length>0?W.jsx("div",{className:"text-center text-muted-foreground p-8",children:"Preparing graph data..."}):W.jsxs("div",{style:{margin:"auto",position:"relative",border:"1px solid #e2e8f0",borderRadius:"0.375rem"},children:[W.jsx(lh,{ref:a,graphData:l,nodeLabel:"name",nodeVal:"val",nodeRelSize:4,linkDirectionalParticles:1,linkDirectionalParticleWidth:k=>d.has(k)?2:0,linkWidth:k=>d.has(k)?1.5:.5,linkColor:k=>d.has(k)?"rgba(100,100,255,0.7)":"rgba(0,0,0,0.15)",nodeCanvasObjectMode:()=>"after",nodeCanvasObject:(k,C,b)=>{const w=k,E=w.name,M=12/b;C.font=`${M}px Sans-Serif`,C.textAlign="center",C.textBaseline="middle";const P=r===w.id,T=(y==null?void 0:y.id)===w.id,z=c.has(w.id);C.fillStyle=P?"rgba(60, 100, 200, 0.9)":T||z?"rgba(0, 50, 150, 0.7)":"rgba(0, 0, 0, 0.5)",C.fillText(E,w.x||0,(w.y||0)+8),C.beginPath(),C.arc(w.x||0,w.y||0,w.val||5,0,2*Math.PI,!1),C.fillStyle=P?"blue":T?"darkslateblue":z?"slateblue":"lightblue",C.fill(),P&&(C.strokeStyle="white",C.lineWidth=1/b,C.stroke())},onNodeHover:_,onNodeClick:x,width:600,height:500,cooldownTicks:100,onEngineStop:()=>{var k;return(k=a.current)==null?void 0:k.zoomToFit(400,100)}}),e.length>Yc&&W.jsxs("div",{className:"absolute bottom-2 right-2 text-xs bg-background/80 p-1 rounded",children:["Displaying ",Yc," of ",e.length," memories for performance."]})]})}const Ia=(...e)=>e.filter(Boolean).join(" "),Z3=()=>({toast:({title:e,description:n,variant:r})=>{console.log(`Toast: ${e} - ${n} (${r||"default"})`)}}),Mm=({open:e,onOpenChange:n,children:r})=>e?W.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",onClick:()=>n(!1),children:W.jsx("div",{className:"bg-gray-50 dark:bg-gray-800 rounded-lg shadow-xl max-w-full max-h-full flex flex-col",onClick:a=>a.stopPropagation(),children:r})}):null,Nm=({className:e,children:n})=>W.jsx("div",{className:Ia("p-6 flex flex-col border-gray-200 dark:border-gray-700",e),children:n}),Om=({className:e,children:n})=>W.jsx("div",{className:Ia("mb-4",e),children:n}),Am=({className:e,children:n})=>W.jsx("h2",{className:Ia("text-lg font-semibold",e),children:n}),zm=({className:e,children:n})=>W.jsx("p",{className:Ia("text-sm text-gray-600",e),children:n}),jm=({className:e,children:n})=>W.jsx("div",{className:Ia("flex justify-end gap-2 mt-4",e),children:n}),os=10,Fs={getKnowledgeDocuments:async(e,n)=>{const r=new URLSearchParams;n!=null&&n.limit&&r.append("limit",n.limit.toString()),n!=null&&n.before&&r.append("before",n.before.toString()),n!=null&&n.includeEmbedding&&r.append("includeEmbedding","true");const a=await fetch(`/api/agents/${e}/plugins/knowledge/documents?${r.toString()}`);if(!a.ok){const l=await a.text();throw new Error(`Failed to fetch knowledge documents: ${a.status} ${l}`)}return await a.json()},getKnowledgeChunks:async(e,n)=>{const r=new URLSearchParams;n!=null&&n.limit&&r.append("limit",n.limit.toString()),n!=null&&n.before&&r.append("before",n.before.toString());const a=await fetch(`/api/agents/${e}/plugins/knowledge/knowledges?${r.toString()}`);if(!a.ok){const l=await a.text();throw new Error(`Failed to fetch knowledge chunks: ${a.status} ${l}`)}return await a.json()},deleteKnowledgeDocument:async(e,n)=>{const r=await fetch(`/api/agents/${e}/plugins/knowledge/documents/${n}`,{method:"DELETE"});if(!r.ok){const a=await r.text();throw new Error(`Failed to delete knowledge document: ${r.status} ${a}`)}if(r.status!==204)return await r.json()},uploadKnowledge:async(e,n)=>{const r=new FormData;n.forEach(l=>r.append("files",l));const a=await fetch(`/api/agents/${e}/plugins/knowledge/documents`,{method:"POST",body:r});if(!a.ok){const l=await a.text();throw new Error(`Failed to upload knowledge: ${a.status} ${l}`)}return await a.json()}},J3=(e,n=!0,r=!1)=>l0({queryKey:["agents",e,"knowledge","documents",{includeEmbedding:r}],queryFn:async()=>(await Fs.getKnowledgeDocuments(e,{includeEmbedding:r})).data.memories,enabled:n}),eP=(e,n=!0)=>l0({queryKey:["agents",e,"knowledge","chunks"],queryFn:async()=>(await Fs.getKnowledgeChunks(e)).data.chunks,enabled:n}),tP=e=>{const n=Ts();return m_({mutationFn:async({knowledgeId:r})=>{await Fs.deleteKnowledgeDocument(e,r)},onSuccess:()=>{n.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})}})};function nP({agentId:e}){var mi,ho;const[n,r]=$.useState(null),[a,l]=$.useState(!1),[u,c]=$.useState(os),[h,d]=$.useState(!1),[g,y]=$.useState("list"),[m,_]=$.useState(null),[x,k]=$.useState(1),[C,b]=$.useState(!1),[w,E]=$.useState(""),[M,P]=$.useState(!1),[T,z]=$.useState(null),[D,I]=$.useState([]),q=$.useRef(null),K=$.useRef(null),{toast:J}=Z3(),ae=Ts(),{data:he=[],isLoading:F,error:ne}=J3(e,g==="list",!1),{data:G=[],isLoading:oe,error:Q}=eP(e,g==="graph"),ee=g==="list"?F:oe,X=g==="list"?ne:Q,N=g==="list"?he:G,{mutate:V}=tP(e),ce=$.useCallback(()=>{if(!K.current||h||u>=N.length)return;const{scrollTop:me,scrollHeight:Te,clientHeight:Me}=K.current;me+Me>=Te-100&&(d(!0),setTimeout(()=>{c(Je=>Math.min(Je+os,N.length)),d(!1)},300))},[h,u,N.length]);if($.useEffect(()=>{c(os)},[]),$.useEffect(()=>{const me=K.current;if(me)return me.addEventListener("scroll",ce),()=>me.removeEventListener("scroll",ce)},[ce]),ee&&(!N||N.length===0))return W.jsx("div",{className:"flex items-center justify-center h-40",children:"Loading knowledge documents..."});if(X)return W.jsxs("div",{className:"flex items-center justify-center h-40 text-destructive",children:["Error loading knowledge documents: ",X.message]});const pe=me=>{var Me;switch((Me=me.split(".").pop())==null?void 0:Me.toLowerCase()){case"md":return W.jsx(Ic,{className:"h-4 w-4 text-blue-500"});case"js":case"ts":case"jsx":case"tsx":return W.jsx(Ic,{className:"h-4 w-4 text-yellow-500"});case"json":return W.jsx(Ic,{className:"h-4 w-4 text-green-500"});case"pdf":return W.jsx(_g,{className:"h-4 w-4 text-red-500"});default:return W.jsx(_g,{className:"h-4 w-4 text-gray-500"})}},ke=me=>{me&&window.confirm("Are you sure you want to delete this document?")&&(V({knowledgeId:me}),r(null))},Se=()=>{q.current&&q.current.click()},be=()=>{b(!0),E(""),I([]),z(null)},Ce=()=>{try{if(!new URL(w).protocol.startsWith("http")){z("URL must start with http:// or https://");return}if(D.includes(w)){z("This URL is already in the list");return}I([...D,w]),E(""),z(null)}catch{z("URL invalide")}},Ae=me=>{I(D.filter(Te=>Te!==me))},gt=async()=>{var me;if(w.trim())try{new URL(w).protocol.startsWith("http")&&!D.includes(w)&&I([...D,w])}catch{}if(D.length===0){z("Please add at least one valid URL");return}P(!0),z(null);try{const Te=await fetch(`/api/agents/${e}/plugins/knowledge/documents`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileUrls:D})});if(!Te.ok){const Zt=await Te.text();throw new Error(Zt)}const Me=await Te.json();Me.success?(J({title:"URLs imported",description:`Successfully imported ${D.length} document(s)`}),b(!1),ae.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})):z(((me=Me.error)==null?void 0:me.message)||"Error importing documents from URLs")}catch(Te){z(Te.message||"Error importing documents from URLs"),J({title:"Error",description:"Failed to import documents from URLs",variant:"destructive"})}finally{P(!1)}},pi=async me=>{const Te=me.target.files;if(!(!Te||Te.length===0)){l(!0);try{const Me=Array.from(Te),Je=(await Fs.uploadKnowledge(e,Me)).data||[];if(Array.isArray(Je)&&Je.every($t=>$t.status==="success"))J({title:"Knowledge Uploaded",description:`Successfully uploaded ${Me.length} file(s)`}),ae.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]});else{const $t=Je.filter(tr=>tr.status==="success").length,Jt=Me.length-$t;J({title:Jt>0?"Upload Partially Failed":"Upload Issues",description:`Uploaded ${$t} file(s). ${Jt} file(s) failed. Check console for details.`,variant:Jt>0?"destructive":"default"}),console.error("Upload results:",Je)}}catch(Me){J({title:"Upload Failed",description:Me instanceof Error?Me.message:"Failed to upload knowledge files",variant:"destructive"}),console.error("Upload error:",Me)}finally{l(!1),q.current&&(q.current.value="")}}},La=N.slice(0,u),gi=u<N.length,fo=()=>W.jsx("div",{className:"flex justify-center p-4",children:h?W.jsxs("div",{className:"flex items-center gap-2",children:[W.jsx(Lc,{className:"h-4 w-4 animate-spin"}),W.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading more..."})]}):W.jsx(Tt,{variant:"ghost",size:"sm",onClick:()=>c(me=>me+os),className:"text-xs",children:"Show more"})}),Fa=()=>W.jsxs("div",{className:"text-muted-foreground text-center p-12 flex flex-col items-center gap-3 border-2 border-dashed rounded-lg mt-8",children:[W.jsx(Yx,{className:"h-12 w-12 text-muted-foreground opacity-20"}),W.jsx("h3",{className:"text-lg font-medium",children:"No Knowledge Documents"}),W.jsx("p",{className:"max-w-md text-sm",children:"No Knowledge Documents found."}),W.jsxs(Tt,{variant:"outline",onClick:Se,children:[W.jsx(xg,{className:"h-4 w-4 mr-2"}),"Upload Documents"]})]}),$a=({memory:me,index:Te})=>{var yi;const Me=me.metadata||{},Zt=Me.title||me.id||"Unknown Document",Je=Me.filename||"Unknown Document",$t=Me.fileExt||((yi=Je.split(".").pop())==null?void 0:yi.toLowerCase())||"",Jt=Zt,tr=Me.path||Je;return W.jsx("button",{type:"button",className:"w-full text-left",onClick:()=>r(me),children:W.jsxs(tw,{className:"hover:bg-accent/10 transition-colors relative group",children:[W.jsx("div",{className:"absolute top-3 left-3 opacity-70",children:pe(Je)}),W.jsxs(nw,{className:"p-3 pb-2 pl-10",children:[W.jsx("div",{className:"text-xs text-muted-foreground mb-1 line-clamp-1",children:tr}),W.jsxs("div",{className:"mb-2",children:[W.jsx("div",{className:"text-sm font-medium mb-1",children:Jt}),Me.description&&W.jsx("div",{className:"text-xs text-muted-foreground line-clamp-2",children:Me.description})]})]}),W.jsx(rw,{className:"p-2 border-t bg-muted/30 text-xs text-muted-foreground",children:W.jsxs("div",{className:"flex justify-between items-center w-full",children:[W.jsxs("div",{className:"flex items-center",children:[W.jsx(Zx,{className:"h-3 w-3 mr-1.5"}),W.jsx("span",{children:new Date(me.createdAt||0).toLocaleString(void 0,{month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"})})]}),W.jsxs("div",{className:"flex items-center gap-2",children:[W.jsx(ew,{variant:"outline",className:"px-1.5 py-0 h-5",children:$t||"unknown document"}),me.id&&W.jsx(Tt,{variant:"ghost",size:"icon",className:"size-6 opacity-0 group-hover:opacity-100 transition-opacity",onClick:nr=>{nr&&(nr.stopPropagation(),nr.preventDefault()),ke(me.id||"")},title:"Delete knowledge",children:W.jsx(Jx,{className:"h-3.5 w-3.5 text-destructive"})})]})]})})]})},me.id||Te)};return W.jsxs("div",{className:"flex flex-col h-full",children:[W.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[W.jsx("h2",{className:"text-lg font-semibold",children:"Knowledge"}),W.jsxs("div",{className:"flex items-center gap-2",children:[W.jsx(Tt,{variant:"outline",size:"sm",onClick:()=>y(g==="list"?"graph":"list"),children:g==="list"?"Graph":"List"}),W.jsxs("div",{className:"flex gap-2",children:[W.jsxs(Tt,{variant:"outline",onClick:be,children:[W.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-2",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[W.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),W.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]}),"URL"]}),W.jsxs(Tt,{onClick:Se,disabled:a,children:[a?W.jsx(Lc,{className:"h-4 w-4 animate-spin mr-2"}):W.jsx(xg,{className:"h-4 w-4 mr-2"}),"Upload"]})]})]})]}),C&&W.jsx(Mm,{open:C,onOpenChange:b,children:W.jsxs(Nm,{className:"max-w-md w-full",children:[W.jsxs(Om,{children:[W.jsx(Am,{className:"text-xl font-bold text-gray-900 dark:text-white",children:"Import from URL"}),W.jsx(zm,{className:"text-gray-700 dark:text-gray-300",children:"Enter one or more URLs of PDF, text, or other files to import into the knowledge base."})]}),W.jsxs("div",{className:"mt-6 space-y-4",children:[W.jsxs("div",{className:"flex gap-2",children:[W.jsx(iw,{placeholder:"https://example.com/document.pdf",value:w,onChange:me=>E(me.target.value),disabled:M,className:"flex-1 bg-white dark:bg-gray-700 border-gray-300 dark:border-gray-600",onKeyDown:me=>{me.key==="Enter"&&w.trim()&&(me.preventDefault(),Ce())}}),W.jsx(Tt,{variant:"outline",size:"sm",onClick:Ce,disabled:M||!w.trim(),className:"bg-blue-50 hover:bg-blue-100 text-blue-600 border-blue-200 hover:border-blue-300 dark:bg-blue-900/30 dark:hover:bg-blue-900/50 dark:text-blue-400 dark:border-blue-800",children:"Add"})]}),T&&W.jsx("div",{className:"text-sm text-red-500 bg-red-50 dark:bg-red-900/20 p-2 rounded-md",children:T}),D.length>0&&W.jsxs("div",{className:"border border-gray-200 dark:border-gray-700 rounded-md bg-white dark:bg-gray-800 p-3 mt-2",children:[W.jsxs("h4",{className:"text-sm font-medium mb-2 text-gray-700 dark:text-gray-300",children:["URLs to import (",D.length,")"]}),W.jsx("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:D.map((me,Te)=>W.jsxs("div",{className:"flex items-center justify-between text-sm bg-gray-50 dark:bg-gray-700 p-2 rounded border border-gray-200 dark:border-gray-600",children:[W.jsx("span",{className:"truncate flex-1 text-gray-800 dark:text-gray-200",children:me}),W.jsx(Tt,{variant:"ghost",size:"icon",className:"h-6 w-6 hover:bg-red-100 hover:text-red-600 dark:hover:bg-red-900/30 dark:hover:text-red-400",onClick:()=>Ae(me),disabled:M,children:W.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},Te))})]})]}),W.jsxs(jm,{className:"mt-6 pt-4 border-t border-gray-200 dark:border-gray-700",children:[W.jsx(Tt,{variant:"outline",onClick:()=>b(!1),disabled:M,className:"bg-gray-100 hover:bg-gray-200 text-gray-700 dark:bg-gray-700 dark:hover:bg-gray-600 dark:text-gray-300",children:"Cancel"}),W.jsx(Tt,{onClick:gt,disabled:M||D.length===0&&!w.trim(),className:"bg-blue-600 hover:bg-blue-700 text-white dark:bg-blue-700 dark:hover:bg-blue-600",children:M?W.jsxs(W.Fragment,{children:[W.jsx(Lc,{className:"h-4 w-4 animate-spin mr-2"}),"Importing..."]}):"Import"})]})]})}),W.jsx("input",{ref:q,type:"file",multiple:!0,accept:".txt,.md,.markdown,.pdf,.doc,.docx,.json,.xml,.yaml,.yml,.csv,.tsv,.log,.ini,.cfg,.conf,.env,.gitignore,.dockerignore,.editorconfig,.js,.jsx,.ts,.tsx,.mjs,.cjs,.py,.pyw,.pyi,.java,.c,.cpp,.cc,.cxx,.h,.hpp,.cs,.php,.rb,.go,.rs,.swift,.kt,.kts,.scala,.clj,.cljs,.ex,.exs,.r,.R,.m,.mm,.sh,.bash,.zsh,.fish,.ps1,.bat,.cmd,.sql,.html,.htm,.css,.scss,.sass,.less,.vue,.svelte,.astro,.lua,.pl,.pm,.dart,.hs,.elm,.ml,.fs,.fsx,.vb,.pas,.d,.nim,.zig,.jl,.tcl,.awk,.sed",onChange:pi,className:"hidden"}),W.jsx("div",{className:"flex-1 overflow-hidden",children:N.length===0?W.jsx(Fa,{}):g==="graph"?W.jsx("div",{className:"h-full p-4",children:W.jsx(Y3,{memories:N,onNodeClick:_,selectedMemoryId:m==null?void 0:m.id})}):W.jsxs("div",{ref:K,className:"h-full overflow-y-auto p-4",children:[W.jsx("div",{className:"grid gap-3",children:La.map((me,Te)=>W.jsx($a,{memory:me,index:Te},me.id||Te))}),gi&&W.jsx(fo,{})]})}),n&&W.jsx(Mm,{open:!!n,onOpenChange:()=>r(null),children:W.jsxs(Nm,{className:"max-w-[95vw] w-full max-h-[95vh] h-full overflow-hidden flex flex-col p-0",children:[W.jsx(Om,{className:"flex-shrink-0 p-6 pb-2",children:W.jsxs("div",{className:"flex items-center justify-between",children:[W.jsxs("div",{children:[W.jsx(Am,{className:"text-xl",children:((mi=n.metadata)==null?void 0:mi.title)||"Document Content"}),W.jsx(zm,{children:((ho=n.metadata)==null?void 0:ho.filename)||"Knowledge document"})]}),(()=>{var Je;const me=n.metadata,Te=(me==null?void 0:me.contentType)||"",Me=((Je=me==null?void 0:me.fileExt)==null?void 0:Je.toLowerCase())||"";return Te==="application/pdf"||Me==="pdf"?W.jsxs("div",{className:"flex items-center gap-2",children:[W.jsx(Tt,{variant:"outline",size:"sm",onClick:()=>k(Math.max(.5,x-.25)),disabled:x<=.5,children:W.jsx("span",{className:"text-lg",children:"−"})}),W.jsxs("span",{className:"text-sm font-medium min-w-[60px] text-center",children:[Math.round(x*100),"%"]}),W.jsx(Tt,{variant:"outline",size:"sm",onClick:()=>k(Math.min(3,x+.25)),disabled:x>=3,children:W.jsx("span",{className:"text-lg",children:"+"})}),W.jsx(Tt,{variant:"outline",size:"sm",onClick:()=>k(1),children:"Reset"})]}):null})()]})}),W.jsx("div",{className:"flex-1 overflow-auto px-6 pb-2",children:(()=>{var Je,$t,Jt;const me=n.metadata,Te=(me==null?void 0:me.contentType)||"",Me=((Je=me==null?void 0:me.fileExt)==null?void 0:Je.toLowerCase())||"";if((Te==="application/pdf"||Me==="pdf")&&(($t=n.content)!=null&&$t.text)){const tr=`data:application/pdf;base64,${n.content.text}`;return W.jsx("div",{className:"w-full h-full rounded-lg overflow-auto bg-gray-100 dark:bg-gray-900",children:W.jsx("div",{className:"min-w-full flex items-center justify-center p-4",style:{minHeight:"100%",transform:`scale(${x})`,transformOrigin:"top center",width:x>1?`${100/x}%`:"100%"},children:W.jsx("iframe",{src:tr,className:"w-full border-0 shadow-lg",style:{height:"90vh",maxWidth:"1200px"},title:"PDF Document"})})})}else return W.jsx("div",{className:"h-full w-full bg-gray-50 dark:bg-gray-900 rounded-lg border p-6",children:W.jsx("pre",{className:"whitespace-pre-wrap text-sm font-mono leading-relaxed text-gray-800 dark:text-gray-200 min-w-0 break-words",children:((Jt=n.content)==null?void 0:Jt.text)||"No content available"})})})()}),W.jsx(jm,{className:"flex-shrink-0 p-6 pt-4",children:W.jsx(Tt,{variant:"outline",onClick:()=>{r(null),k(1)},children:"Close"})})]})})]})}const rP=new Z1;function iP(){const e=window.ELIZA_CONFIG,n=e==null?void 0:e.agentId;return n?W.jsx(oP,{agentId:n}):W.jsxs("div",{className:"p-4 text-center",children:[W.jsx("div",{className:"text-red-600 font-medium",children:"Error: Agent ID not found"}),W.jsx("div",{className:"text-sm text-gray-600 mt-2",children:"The server should inject the agent ID configuration."})]})}function oP({agentId:e}){return W.jsx(i_,{client:rP,children:W.jsx(nP,{agentId:e})})}const Dm=document.getElementById("root");Dm&&k_.createRoot(Dm).render(W.jsx(Lx,{children:W.jsx(px,{children:W.jsx(_0,{path:"/display",element:W.jsx(iP,{})})})}));
|