@elizaos/plugin-knowledge 1.0.0-beta.72 → 1.0.0-beta.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-BQPj32JK.js +140 -0
- package/dist/assets/index-Cfdtl60S.css +1 -0
- package/dist/chunk-LHJERZV7.js +475 -0
- package/dist/chunk-LHJERZV7.js.map +1 -0
- package/dist/docs-loader-25N4HXDV.js +9 -0
- package/dist/docs-loader-25N4HXDV.js.map +1 -0
- package/dist/index.d.ts +37 -11
- package/dist/index.html +14 -0
- package/dist/index.js +575 -403
- package/dist/index.js.map +1 -1
- package/package.json +15 -3
- package/dist/docs-loader-G3WS433E.js +0 -129
- package/dist/docs-loader-G3WS433E.js.map +0 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
var mp=e=>{throw TypeError(e)};var Zu=(e,n,i)=>n.has(e)||mp("Cannot "+i);var O=(e,n,i)=>(Zu(e,n,"read from private field"),i?i.call(e):n.get(e)),ve=(e,n,i)=>n.has(e)?mp("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,i),ue=(e,n,i,s)=>(Zu(e,n,"write to private field"),s?s.call(e,i):n.set(e,i),i),be=(e,n,i)=>(Zu(e,n,"access private method"),i);var xl=(e,n,i,s)=>({set _(a){ue(e,n,a,i)},get _(){return O(e,n,s)}});(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();function i0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ju={exports:{}},Oo={},ec={exports:{}},Ee={};/**
|
|
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 vp;function Ev(){if(vp)return Ee;vp=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;function _(T){return T===null||typeof T!="object"?null:(T=g&&T[g]||T["@@iterator"],typeof T=="function"?T:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,b={};function C(T,V,se){this.props=T,this.context=V,this.refs=b,this.updater=se||x}C.prototype.isReactComponent={},C.prototype.setState=function(T,V){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,V,"setState")},C.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function k(){}k.prototype=C.prototype;function R(T,V,se){this.props=T,this.context=V,this.refs=b,this.updater=se||x}var A=R.prototype=new k;A.constructor=R,S(A,C.prototype),A.isPureReactComponent=!0;var P=Array.isArray,M=Object.prototype.hasOwnProperty,j={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function L(T,V,se){var ae,me={},we=null,Ce=null;if(V!=null)for(ae in V.ref!==void 0&&(Ce=V.ref),V.key!==void 0&&(we=""+V.key),V)M.call(V,ae)&&!I.hasOwnProperty(ae)&&(me[ae]=V[ae]);var Se=arguments.length-2;if(Se===1)me.children=se;else if(1<Se){for(var Re=Array(Se),Pt=0;Pt<Se;Pt++)Re[Pt]=arguments[Pt+2];me.children=Re}if(T&&T.defaultProps)for(ae in Se=T.defaultProps,Se)me[ae]===void 0&&(me[ae]=Se[ae]);return{$$typeof:e,type:T,key:we,ref:Ce,props:me,_owner:j.current}}function K(T,V){return{$$typeof:e,type:T.type,key:V,ref:T.ref,props:T.props,_owner:T._owner}}function G(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function te(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(se){return V[se]})}var oe=/\/+/g;function he(T,V){return typeof T=="object"&&T!==null&&T.key!=null?te(""+T.key):V.toString(36)}function F(T,V,se,ae,me){var we=typeof T;(we==="undefined"||we==="boolean")&&(T=null);var Ce=!1;if(T===null)Ce=!0;else switch(we){case"string":case"number":Ce=!0;break;case"object":switch(T.$$typeof){case e:case n:Ce=!0}}if(Ce)return Ce=T,me=me(Ce),T=ae===""?"."+he(Ce,0):ae,P(me)?(se="",T!=null&&(se=T.replace(oe,"$&/")+"/"),F(me,V,se,"",function(Pt){return Pt})):me!=null&&(G(me)&&(me=K(me,se+(!me.key||Ce&&Ce.key===me.key?"":(""+me.key).replace(oe,"$&/")+"/")+T)),V.push(me)),1;if(Ce=0,ae=ae===""?".":ae+":",P(T))for(var Se=0;Se<T.length;Se++){we=T[Se];var Re=ae+he(we,Se);Ce+=F(we,V,se,Re,me)}else if(Re=_(T),typeof Re=="function")for(T=Re.call(T),Se=0;!(we=T.next()).done;)we=we.value,Re=ae+he(we,Se++),Ce+=F(we,V,se,Re,me);else if(we==="object")throw V=String(T),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return Ce}function ee(T,V,se){if(T==null)return T;var ae=[],me=0;return F(T,ae,"","",function(we){return V.call(se,we,me++)}),ae}function W(T){if(T._status===-1){var V=T._result;V=V(),V.then(function(se){(T._status===0||T._status===-1)&&(T._status=1,T._result=se)},function(se){(T._status===0||T._status===-1)&&(T._status=2,T._result=se)}),T._status===-1&&(T._status=0,T._result=V)}if(T._status===1)return T._result.default;throw T._result}var ie={current:null},Q={transition:null},q={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:Q,ReactCurrentOwner:j};function B(){throw Error("act(...) is not supported in production builds of React.")}return Ee.Children={map:ee,forEach:function(T,V,se){ee(T,function(){V.apply(this,arguments)},se)},count:function(T){var V=0;return ee(T,function(){V++}),V},toArray:function(T){return ee(T,function(V){return V})||[]},only:function(T){if(!G(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},Ee.Component=C,Ee.Fragment=i,Ee.Profiler=a,Ee.PureComponent=R,Ee.StrictMode=s,Ee.Suspense=p,Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,Ee.act=B,Ee.cloneElement=function(T,V,se){if(T==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+T+".");var ae=S({},T.props),me=T.key,we=T.ref,Ce=T._owner;if(V!=null){if(V.ref!==void 0&&(we=V.ref,Ce=j.current),V.key!==void 0&&(me=""+V.key),T.type&&T.type.defaultProps)var Se=T.type.defaultProps;for(Re in V)M.call(V,Re)&&!I.hasOwnProperty(Re)&&(ae[Re]=V[Re]===void 0&&Se!==void 0?Se[Re]:V[Re])}var Re=arguments.length-2;if(Re===1)ae.children=se;else if(1<Re){Se=Array(Re);for(var Pt=0;Pt<Re;Pt++)Se[Pt]=arguments[Pt+2];ae.children=Se}return{$$typeof:e,type:T.type,key:me,ref:we,props:ae,_owner:Ce}},Ee.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},T.Provider={$$typeof:u,_context:T},T.Consumer=T},Ee.createElement=L,Ee.createFactory=function(T){var V=L.bind(null,T);return V.type=T,V},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(T){return{$$typeof:h,render:T}},Ee.isValidElement=G,Ee.lazy=function(T){return{$$typeof:v,_payload:{_status:-1,_result:T},_init:W}},Ee.memo=function(T,V){return{$$typeof:y,type:T,compare:V===void 0?null:V}},Ee.startTransition=function(T){var V=Q.transition;Q.transition={};try{T()}finally{Q.transition=V}},Ee.unstable_act=B,Ee.useCallback=function(T,V){return ie.current.useCallback(T,V)},Ee.useContext=function(T){return ie.current.useContext(T)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(T){return ie.current.useDeferredValue(T)},Ee.useEffect=function(T,V){return ie.current.useEffect(T,V)},Ee.useId=function(){return ie.current.useId()},Ee.useImperativeHandle=function(T,V,se){return ie.current.useImperativeHandle(T,V,se)},Ee.useInsertionEffect=function(T,V){return ie.current.useInsertionEffect(T,V)},Ee.useLayoutEffect=function(T,V){return ie.current.useLayoutEffect(T,V)},Ee.useMemo=function(T,V){return ie.current.useMemo(T,V)},Ee.useReducer=function(T,V,se){return ie.current.useReducer(T,V,se)},Ee.useRef=function(T){return ie.current.useRef(T)},Ee.useState=function(T){return ie.current.useState(T)},Ee.useSyncExternalStore=function(T,V,se){return ie.current.useSyncExternalStore(T,V,se)},Ee.useTransition=function(){return ie.current.useTransition()},Ee.version="18.3.1",Ee}var _p;function Zc(){return _p||(_p=1,ec.exports=Ev()),ec.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 xp;function Pv(){if(xp)return Oo;xp=1;var e=Zc(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(h,p,y){var v,g={},_=null,x=null;y!==void 0&&(_=""+y),p.key!==void 0&&(_=""+p.key),p.ref!==void 0&&(x=p.ref);for(v in p)s.call(p,v)&&!u.hasOwnProperty(v)&&(g[v]=p[v]);if(h&&h.defaultProps)for(v in p=h.defaultProps,p)g[v]===void 0&&(g[v]=p[v]);return{$$typeof:n,type:h,key:_,ref:x,props:g,_owner:a.current}}return Oo.Fragment=i,Oo.jsx=f,Oo.jsxs=f,Oo}var wp;function Tv(){return wp||(wp=1,Ju.exports=Pv()),Ju.exports}var J=Tv(),Vi=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(){}},Wr=typeof window>"u"||"Deno"in globalThis;function pt(){}function Mv(e,n){return typeof e=="function"?e(n):e}function _c(e){return typeof e=="number"&&e>=0&&e!==1/0}function o0(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Ci(e,n){return typeof e=="function"?e(n):e}function tn(e,n){return typeof e=="function"?e(n):e}function kp(e,n){const{type:i="all",exact:s,fetchStatus:a,predicate:u,queryKey:f,stale:h}=e;if(f){if(s){if(n.queryHash!==Jc(f,n.options))return!1}else if(!Wo(n.queryKey,f))return!1}if(i!=="all"){const p=n.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||a&&a!==n.state.fetchStatus||u&&!u(n))}function Sp(e,n){const{exact:i,status:s,predicate:a,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(i){if(Kr(n.options.mutationKey)!==Kr(u))return!1}else if(!Wo(n.options.mutationKey,u))return!1}return!(s&&n.state.status!==s||a&&!a(n))}function Jc(e,n){return((n==null?void 0:n.queryKeyHashFn)||Kr)(e)}function Kr(e){return JSON.stringify(e,(n,i)=>xc(i)?Object.keys(i).sort().reduce((s,a)=>(s[a]=i[a],s),{}):i)}function Wo(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(i=>Wo(e[i],n[i])):!1}function s0(e,n){if(e===n)return e;const i=Cp(e)&&Cp(n);if(i||xc(e)&&xc(n)){const s=i?e:Object.keys(e),a=s.length,u=i?n:Object.keys(n),f=u.length,h=i?[]:{};let p=0;for(let y=0;y<f;y++){const v=i?y:u[y];(!i&&s.includes(v)||i)&&e[v]===void 0&&n[v]===void 0?(h[v]=void 0,p++):(h[v]=s0(e[v],n[v]),h[v]===e[v]&&e[v]!==void 0&&p++)}return a===f&&p===a?e:h}return n}function Il(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const i in e)if(e[i]!==n[i])return!1;return!0}function Cp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xc(e){if(!bp(e))return!1;const n=e.constructor;if(n===void 0)return!0;const i=n.prototype;return!(!bp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function bp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ov(e){return new Promise(n=>{setTimeout(n,e)})}function wc(e,n,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,n):i.structuralSharing!==!1?s0(e,n):n}function Nv(e,n,i=0){const s=[...e,n];return i&&s.length>i?s.slice(1):s}function Rv(e,n,i=0){const s=[n,...e];return i&&s.length>i?s.slice(0,-1):s}var ef=Symbol();function l0(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===ef?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function a0(e,n){return typeof e=="function"?e(...n):!!e}var Ir,fr,Pi,Kg,Av=(Kg=class extends Vi{constructor(){super();ve(this,Ir);ve(this,fr);ve(this,Pi);ue(this,Pi,n=>{if(!Wr&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){O(this,fr)||this.setEventListener(O(this,Pi))}onUnsubscribe(){var n;this.hasListeners()||((n=O(this,fr))==null||n.call(this),ue(this,fr,void 0))}setEventListener(n){var i;ue(this,Pi,n),(i=O(this,fr))==null||i.call(this),ue(this,fr,n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(n){O(this,Ir)!==n&&(ue(this,Ir,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){var n;return typeof O(this,Ir)=="boolean"?O(this,Ir):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Ir=new WeakMap,fr=new WeakMap,Pi=new WeakMap,Kg),tf=new Av,Ti,hr,Mi,Gg,zv=(Gg=class extends Vi{constructor(){super();ve(this,Ti,!0);ve(this,hr);ve(this,Mi);ue(this,Mi,n=>{if(!Wr&&window.addEventListener){const i=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}})}onSubscribe(){O(this,hr)||this.setEventListener(O(this,Mi))}onUnsubscribe(){var n;this.hasListeners()||((n=O(this,hr))==null||n.call(this),ue(this,hr,void 0))}setEventListener(n){var i;ue(this,Mi,n),(i=O(this,hr))==null||i.call(this),ue(this,hr,n(this.setOnline.bind(this)))}setOnline(n){O(this,Ti)!==n&&(ue(this,Ti,n),this.listeners.forEach(s=>{s(n)}))}isOnline(){return O(this,Ti)}},Ti=new WeakMap,hr=new WeakMap,Mi=new WeakMap,Gg),Fl=new zv;function kc(){let e,n;const i=new Promise((a,u)=>{e=a,n=u});i.status="pending",i.catch(()=>{});function s(a){Object.assign(i,a),delete i.resolve,delete i.reject}return i.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},i.reject=a=>{s({status:"rejected",reason:a}),n(a)},i}function jv(e){return Math.min(1e3*2**e,3e4)}function u0(e){return(e??"online")==="online"?Fl.isOnline():!0}var c0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function tc(e){return e instanceof c0}function f0(e){let n=!1,i=0,s=!1,a;const u=kc(),f=b=>{var C;s||(_(new c0(b)),(C=e.abort)==null||C.call(e))},h=()=>{n=!0},p=()=>{n=!1},y=()=>tf.isFocused()&&(e.networkMode==="always"||Fl.isOnline())&&e.canRun(),v=()=>u0(e.networkMode)&&e.canRun(),g=b=>{var C;s||(s=!0,(C=e.onSuccess)==null||C.call(e,b),a==null||a(),u.resolve(b))},_=b=>{var C;s||(s=!0,(C=e.onError)==null||C.call(e,b),a==null||a(),u.reject(b))},x=()=>new Promise(b=>{var C;a=k=>{(s||y())&&b(k)},(C=e.onPause)==null||C.call(e)}).then(()=>{var b;a=void 0,s||(b=e.onContinue)==null||b.call(e)}),S=()=>{if(s)return;let b;const C=i===0?e.initialPromise:void 0;try{b=C??e.fn()}catch(k){b=Promise.reject(k)}Promise.resolve(b).then(g).catch(k=>{var j;if(s)return;const R=e.retry??(Wr?0:3),A=e.retryDelay??jv,P=typeof A=="function"?A(i,k):A,M=R===!0||typeof R=="number"&&i<R||typeof R=="function"&&R(i,k);if(n||!M){_(k);return}i++,(j=e.onFail)==null||j.call(e,i,k),Ov(P).then(()=>y()?void 0:x()).then(()=>{n?_(k):S()})})};return{promise:u,cancel:f,continue:()=>(a==null||a(),u),cancelRetry:h,continueRetry:p,canStart:v,start:()=>(v()?S():x().then(S),u)}}var Dv=e=>setTimeout(e,0);function Iv(){let e=[],n=0,i=h=>{h()},s=h=>{h()},a=Dv;const u=h=>{n?e.push(h):a(()=>{i(h)})},f=()=>{const h=e;e=[],h.length&&a(()=>{s(()=>{h.forEach(p=>{i(p)})})})};return{batch:h=>{let p;n++;try{p=h()}finally{n--,n||f()}return p},batchCalls:h=>(...p)=>{u(()=>{h(...p)})},schedule:u,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{a=h}}}var Ye=Iv(),Fr,Xg,h0=(Xg=class{constructor(){ve(this,Fr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_c(this.gcTime)&&ue(this,Fr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wr?1/0:5*60*1e3))}clearGcTimeout(){O(this,Fr)&&(clearTimeout(O(this,Fr)),ue(this,Fr,void 0))}},Fr=new WeakMap,Xg),Oi,Ni,Ht,Lr,ut,ts,$r,Jt,An,Yg,Fv=(Yg=class extends h0{constructor(n){super();ve(this,Jt);ve(this,Oi);ve(this,Ni);ve(this,Ht);ve(this,Lr);ve(this,ut);ve(this,ts);ve(this,$r);ue(this,$r,!1),ue(this,ts,n.defaultOptions),this.setOptions(n.options),this.observers=[],ue(this,Lr,n.client),ue(this,Ht,O(this,Lr).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,ue(this,Oi,Lv(this.options)),this.state=n.state??O(this,Oi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=O(this,ut))==null?void 0:n.promise}setOptions(n){this.options={...O(this,ts),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,Ht).remove(this)}setData(n,i){const s=wc(this.state.data,n,this.options);return be(this,Jt,An).call(this,{data:s,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),s}setState(n,i){be(this,Jt,An).call(this,{type:"setState",state:n,setStateOptions:i})}cancel(n){var s,a;const i=(s=O(this,ut))==null?void 0:s.promise;return(a=O(this,ut))==null||a.cancel(n),i?i.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,Oi))}isActive(){return this.observers.some(n=>tn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ef||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!o0(this.state.dataUpdatedAt,n)}onFocus(){var i;const n=this.observers.find(s=>s.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(i=O(this,ut))==null||i.continue()}onOnline(){var i;const n=this.observers.find(s=>s.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(i=O(this,ut))==null||i.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),O(this,Ht).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(O(this,ut)&&(O(this,$r)?O(this,ut).cancel({revert:!0}):O(this,ut).cancelRetry()),this.scheduleGc()),O(this,Ht).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||be(this,Jt,An).call(this,{type:"invalidate"})}fetch(n,i){var p,y,v;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(O(this,ut))return O(this,ut).continueRetry(),O(this,ut).promise}if(n&&this.setOptions(n),!this.options.queryFn){const g=this.observers.find(_=>_.options.queryFn);g&&this.setOptions(g.options)}const s=new AbortController,a=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(ue(this,$r,!0),s.signal)})},u=()=>{const g=l0(this.options,i),_={client:O(this,Lr),queryKey:this.queryKey,meta:this.meta};return a(_),ue(this,$r,!1),this.options.persister?this.options.persister(g,_,this):g(_)},f={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:O(this,Lr),state:this.state,fetchFn:u};a(f),(p=this.options.behavior)==null||p.onFetch(f,this),ue(this,Ni,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=f.fetchOptions)==null?void 0:y.meta))&&be(this,Jt,An).call(this,{type:"fetch",meta:(v=f.fetchOptions)==null?void 0:v.meta});const h=g=>{var _,x,S,b;tc(g)&&g.silent||be(this,Jt,An).call(this,{type:"error",error:g}),tc(g)||((x=(_=O(this,Ht).config).onError)==null||x.call(_,g,this),(b=(S=O(this,Ht).config).onSettled)==null||b.call(S,this.state.data,g,this)),this.scheduleGc()};return ue(this,ut,f0({initialPromise:i==null?void 0:i.initialPromise,fn:f.fetchFn,abort:s.abort.bind(s),onSuccess:g=>{var _,x,S,b;if(g===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(C){h(C);return}(x=(_=O(this,Ht).config).onSuccess)==null||x.call(_,g,this),(b=(S=O(this,Ht).config).onSettled)==null||b.call(S,g,this.state.error,this),this.scheduleGc()},onError:h,onFail:(g,_)=>{be(this,Jt,An).call(this,{type:"failed",failureCount:g,error:_})},onPause:()=>{be(this,Jt,An).call(this,{type:"pause"})},onContinue:()=>{be(this,Jt,An).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0})),O(this,ut).start()}},Oi=new WeakMap,Ni=new WeakMap,Ht=new WeakMap,Lr=new WeakMap,ut=new WeakMap,ts=new WeakMap,$r=new WeakMap,Jt=new WeakSet,An=function(n){const i=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...d0(s.data,this.options),fetchMeta:n.meta??null};case"success":return{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=n.error;return tc(a)&&a.revert&&O(this,Ni)?{...O(this,Ni),fetchStatus:"idle"}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=i(this.state),Ye.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),O(this,Ht).notify({query:this,type:"updated",action:n})})},Yg);function d0(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:u0(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Lv(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,i=n!==void 0,s=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var dn,Zg,$v=(Zg=class extends Vi{constructor(n={}){super();ve(this,dn);this.config=n,ue(this,dn,new Map)}build(n,i,s){const a=i.queryKey,u=i.queryHash??Jc(a,i);let f=this.get(u);return f||(f=new Fv({client:n,queryKey:a,queryHash:u,options:n.defaultQueryOptions(i),state:s,defaultOptions:n.getQueryDefaults(a)}),this.add(f)),f}add(n){O(this,dn).has(n.queryHash)||(O(this,dn).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=O(this,dn).get(n.queryHash);i&&(n.destroy(),i===n&&O(this,dn).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ye.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return O(this,dn).get(n)}getAll(){return[...O(this,dn).values()]}find(n){const i={exact:!0,...n};return this.getAll().find(s=>kp(i,s))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(s=>kp(n,s)):i}notify(n){Ye.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},dn=new WeakMap,Zg),pn,ht,Ur,gn,ur,Jg,Uv=(Jg=class extends h0{constructor(n){super();ve(this,gn);ve(this,pn);ve(this,ht);ve(this,Ur);this.mutationId=n.mutationId,ue(this,ht,n.mutationCache),ue(this,pn,[]),this.state=n.state||p0(),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,pn).includes(n)||(O(this,pn).push(n),this.clearGcTimeout(),O(this,ht).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){ue(this,pn,O(this,pn).filter(i=>i!==n)),this.scheduleGc(),O(this,ht).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){O(this,pn).length||(this.state.status==="pending"?this.scheduleGc():O(this,ht).remove(this))}continue(){var n;return((n=O(this,Ur))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var u,f,h,p,y,v,g,_,x,S,b,C,k,R,A,P,M,j,I,L;const i=()=>{be(this,gn,ur).call(this,{type:"continue"})};ue(this,Ur,f0({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(K,G)=>{be(this,gn,ur).call(this,{type:"failed",failureCount:K,error:G})},onPause:()=>{be(this,gn,ur).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,ht).canRun(this)}));const s=this.state.status==="pending",a=!O(this,Ur).canStart();try{if(s)i();else{be(this,gn,ur).call(this,{type:"pending",variables:n,isPaused:a}),await((f=(u=O(this,ht).config).onMutate)==null?void 0:f.call(u,n,this));const G=await((p=(h=this.options).onMutate)==null?void 0:p.call(h,n));G!==this.state.context&&be(this,gn,ur).call(this,{type:"pending",context:G,variables:n,isPaused:a})}const K=await O(this,Ur).start();return await((v=(y=O(this,ht).config).onSuccess)==null?void 0:v.call(y,K,n,this.state.context,this)),await((_=(g=this.options).onSuccess)==null?void 0:_.call(g,K,n,this.state.context)),await((S=(x=O(this,ht).config).onSettled)==null?void 0:S.call(x,K,null,this.state.variables,this.state.context,this)),await((C=(b=this.options).onSettled)==null?void 0:C.call(b,K,null,n,this.state.context)),be(this,gn,ur).call(this,{type:"success",data:K}),K}catch(K){try{throw await((R=(k=O(this,ht).config).onError)==null?void 0:R.call(k,K,n,this.state.context,this)),await((P=(A=this.options).onError)==null?void 0:P.call(A,K,n,this.state.context)),await((j=(M=O(this,ht).config).onSettled)==null?void 0:j.call(M,void 0,K,this.state.variables,this.state.context,this)),await((L=(I=this.options).onSettled)==null?void 0:L.call(I,void 0,K,n,this.state.context)),K}finally{be(this,gn,ur).call(this,{type:"error",error:K})}}finally{O(this,ht).runNext(this)}}},pn=new WeakMap,ht=new WeakMap,Ur=new WeakMap,gn=new WeakSet,ur=function(n){const i=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,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{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Ye.batch(()=>{O(this,pn).forEach(s=>{s.onMutationUpdate(n)}),O(this,ht).notify({mutation:this,type:"updated",action:n})})},Jg);function p0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jn,en,ns,e0,Hv=(e0=class extends Vi{constructor(n={}){super();ve(this,jn);ve(this,en);ve(this,ns);this.config=n,ue(this,jn,new Set),ue(this,en,new Map),ue(this,ns,0)}build(n,i,s){const a=new Uv({mutationCache:this,mutationId:++xl(this,ns)._,options:n.defaultMutationOptions(i),state:s});return this.add(a),a}add(n){O(this,jn).add(n);const i=wl(n);if(typeof i=="string"){const s=O(this,en).get(i);s?s.push(n):O(this,en).set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(O(this,jn).delete(n)){const i=wl(n);if(typeof i=="string"){const s=O(this,en).get(i);if(s)if(s.length>1){const a=s.indexOf(n);a!==-1&&s.splice(a,1)}else s[0]===n&&O(this,en).delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=wl(n);if(typeof i=="string"){const s=O(this,en).get(i),a=s==null?void 0:s.find(u=>u.state.status==="pending");return!a||a===n}else return!0}runNext(n){var s;const i=wl(n);if(typeof i=="string"){const a=(s=O(this,en).get(i))==null?void 0:s.find(u=>u!==n&&u.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ye.batch(()=>{O(this,jn).forEach(n=>{this.notify({type:"removed",mutation:n})}),O(this,jn).clear(),O(this,en).clear()})}getAll(){return Array.from(O(this,jn))}find(n){const i={exact:!0,...n};return this.getAll().find(s=>Sp(i,s))}findAll(n={}){return this.getAll().filter(i=>Sp(n,i))}notify(n){Ye.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return Ye.batch(()=>Promise.all(n.map(i=>i.continue().catch(pt))))}},jn=new WeakMap,en=new WeakMap,ns=new WeakMap,e0);function wl(e){var n;return(n=e.options.scope)==null?void 0:n.id}function Ep(e){return{onFetch:(n,i)=>{var v,g,_,x,S;const s=n.options,a=(_=(g=(v=n.fetchOptions)==null?void 0:v.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,u=((x=n.state.data)==null?void 0:x.pages)||[],f=((S=n.state.data)==null?void 0:S.pageParams)||[];let h={pages:[],pageParams:[]},p=0;const y=async()=>{let b=!1;const C=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(n.signal.aborted?b=!0:n.signal.addEventListener("abort",()=>{b=!0}),n.signal)})},k=l0(n.options,n.fetchOptions),R=async(A,P,M)=>{if(b)return Promise.reject();if(P==null&&A.pages.length)return Promise.resolve(A);const j={client:n.client,queryKey:n.queryKey,pageParam:P,direction:M?"backward":"forward",meta:n.options.meta};C(j);const I=await k(j),{maxPages:L}=n.options,K=M?Rv:Nv;return{pages:K(A.pages,I,L),pageParams:K(A.pageParams,P,L)}};if(a&&u.length){const A=a==="backward",P=A?Vv:Pp,M={pages:u,pageParams:f},j=P(s,M);h=await R(M,j,A)}else{const A=e??u.length;do{const P=p===0?f[0]??s.initialPageParam:Pp(s,h);if(p>0&&P==null)break;h=await R(h,P),p++}while(p<A)}return h};n.options.persister?n.fetchFn=()=>{var b,C;return(C=(b=n.options).persister)==null?void 0:C.call(b,y,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},i)}:n.fetchFn=y}}}function Pp(e,{pages:n,pageParams:i}){const s=n.length-1;return n.length>0?e.getNextPageParam(n[s],n,i[s],i):void 0}function Vv(e,{pages:n,pageParams:i}){var s;return n.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,n[0],n,i[0],i):void 0}var Be,dr,pr,Ri,Ai,gr,zi,ji,t0,qv=(t0=class{constructor(e={}){ve(this,Be);ve(this,dr);ve(this,pr);ve(this,Ri);ve(this,Ai);ve(this,gr);ve(this,zi);ve(this,ji);ue(this,Be,e.queryCache||new $v),ue(this,dr,e.mutationCache||new Hv),ue(this,pr,e.defaultOptions||{}),ue(this,Ri,new Map),ue(this,Ai,new Map),ue(this,gr,0)}mount(){xl(this,gr)._++,O(this,gr)===1&&(ue(this,zi,tf.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,Be).onFocus())})),ue(this,ji,Fl.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,Be).onOnline())})))}unmount(){var e,n;xl(this,gr)._--,O(this,gr)===0&&((e=O(this,zi))==null||e.call(this),ue(this,zi,void 0),(n=O(this,ji))==null||n.call(this),ue(this,ji,void 0))}isFetching(e){return O(this,Be).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return O(this,dr).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const n=this.defaultQueryOptions({queryKey:e});return(i=O(this,Be).get(n.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),i=O(this,Be).build(this,n),s=i.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(Ci(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return O(this,Be).findAll(e).map(({queryKey:n,state:i})=>{const s=i.data;return[n,s]})}setQueryData(e,n,i){const s=this.defaultQueryOptions({queryKey:e}),a=O(this,Be).get(s.queryHash),u=a==null?void 0:a.state.data,f=Mv(n,u);if(f!==void 0)return O(this,Be).build(this,s).setData(f,{...i,manual:!0})}setQueriesData(e,n,i){return Ye.batch(()=>O(this,Be).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,i)]))}getQueryState(e){var i;const n=this.defaultQueryOptions({queryKey:e});return(i=O(this,Be).get(n.queryHash))==null?void 0:i.state}removeQueries(e){const n=O(this,Be);Ye.batch(()=>{n.findAll(e).forEach(i=>{n.remove(i)})})}resetQueries(e,n){const i=O(this,Be);return Ye.batch(()=>(i.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const i={revert:!0,...n},s=Ye.batch(()=>O(this,Be).findAll(e).map(a=>a.cancel(i)));return Promise.all(s).then(pt).catch(pt)}invalidateQueries(e,n={}){return Ye.batch(()=>(O(this,Be).findAll(e).forEach(i=>{i.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 i={...n,cancelRefetch:n.cancelRefetch??!0},s=Ye.batch(()=>O(this,Be).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(pt)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(s).then(pt)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const i=O(this,Be).build(this,n);return i.isStaleByTime(Ci(n.staleTime,i))?i.fetch(n):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(pt).catch(pt)}fetchInfiniteQuery(e){return e.behavior=Ep(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(pt).catch(pt)}ensureInfiniteQueryData(e){return e.behavior=Ep(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Fl.isOnline()?O(this,dr).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,Be)}getMutationCache(){return O(this,dr)}getDefaultOptions(){return O(this,pr)}setDefaultOptions(e){ue(this,pr,e)}setQueryDefaults(e,n){O(this,Ri).set(Kr(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...O(this,Ri).values()],i={};return n.forEach(s=>{Wo(e,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(e,n){O(this,Ai).set(Kr(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...O(this,Ai).values()],i={};return n.forEach(s=>{Wo(e,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const n={...O(this,pr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=Jc(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===ef&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...O(this,pr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){O(this,Be).clear(),O(this,dr).clear()}},Be=new WeakMap,dr=new WeakMap,pr=new WeakMap,Ri=new WeakMap,Ai=new WeakMap,gr=new WeakMap,zi=new WeakMap,ji=new WeakMap,t0),St,Pe,rs,dt,Hr,Di,yr,mr,is,Ii,Fi,Vr,qr,vr,Li,Oe,Lo,Sc,Cc,bc,Ec,Pc,Tc,Mc,g0,n0,Bv=(n0=class extends Vi{constructor(n,i){super();ve(this,Oe);ve(this,St);ve(this,Pe);ve(this,rs);ve(this,dt);ve(this,Hr);ve(this,Di);ve(this,yr);ve(this,mr);ve(this,is);ve(this,Ii);ve(this,Fi);ve(this,Vr);ve(this,qr);ve(this,vr);ve(this,Li,new Set);this.options=i,ue(this,St,n),ue(this,mr,null),ue(this,yr,kc()),this.options.experimental_prefetchInRender||O(this,yr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,Pe).addObserver(this),Tp(O(this,Pe),this.options)?be(this,Oe,Lo).call(this):this.updateResult(),be(this,Oe,Ec).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oc(O(this,Pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oc(O(this,Pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,be(this,Oe,Pc).call(this),be(this,Oe,Tc).call(this),O(this,Pe).removeObserver(this)}setOptions(n){const i=this.options,s=O(this,Pe);if(this.options=O(this,St).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof tn(this.options.enabled,O(this,Pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");be(this,Oe,Mc).call(this),O(this,Pe).setOptions(this.options),i._defaulted&&!Il(this.options,i)&&O(this,St).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,Pe),observer:this});const a=this.hasListeners();a&&Mp(O(this,Pe),s,this.options,i)&&be(this,Oe,Lo).call(this),this.updateResult(),a&&(O(this,Pe)!==s||tn(this.options.enabled,O(this,Pe))!==tn(i.enabled,O(this,Pe))||Ci(this.options.staleTime,O(this,Pe))!==Ci(i.staleTime,O(this,Pe)))&&be(this,Oe,Sc).call(this);const u=be(this,Oe,Cc).call(this);a&&(O(this,Pe)!==s||tn(this.options.enabled,O(this,Pe))!==tn(i.enabled,O(this,Pe))||u!==O(this,vr))&&be(this,Oe,bc).call(this,u)}getOptimisticResult(n){const i=O(this,St).getQueryCache().build(O(this,St),n),s=this.createResult(i,n);return Wv(this,s)&&(ue(this,dt,s),ue(this,Di,this.options),ue(this,Hr,O(this,Pe).state)),s}getCurrentResult(){return O(this,dt)}trackResult(n,i){return new Proxy(n,{get:(s,a)=>(this.trackProp(a),i==null||i(a),Reflect.get(s,a))})}trackProp(n){O(this,Li).add(n)}getCurrentQuery(){return O(this,Pe)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=O(this,St).defaultQueryOptions(n),s=O(this,St).getQueryCache().build(O(this,St),i);return s.fetch().then(()=>this.createResult(s,i))}fetch(n){return be(this,Oe,Lo).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,dt)))}createResult(n,i){var K;const s=O(this,Pe),a=this.options,u=O(this,dt),f=O(this,Hr),h=O(this,Di),y=n!==s?n.state:O(this,rs),{state:v}=n;let g={...v},_=!1,x;if(i._optimisticResults){const G=this.hasListeners(),te=!G&&Tp(n,i),oe=G&&Mp(n,s,i,a);(te||oe)&&(g={...g,...d0(v.data,n.options)}),i._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:b,status:C}=g;x=g.data;let k=!1;if(i.placeholderData!==void 0&&x===void 0&&C==="pending"){let G;u!=null&&u.isPlaceholderData&&i.placeholderData===(h==null?void 0:h.placeholderData)?(G=u.data,k=!0):G=typeof i.placeholderData=="function"?i.placeholderData((K=O(this,Fi))==null?void 0:K.state.data,O(this,Fi)):i.placeholderData,G!==void 0&&(C="success",x=wc(u==null?void 0:u.data,G,i),_=!0)}if(i.select&&x!==void 0&&!k)if(u&&x===(f==null?void 0:f.data)&&i.select===O(this,is))x=O(this,Ii);else try{ue(this,is,i.select),x=i.select(x),x=wc(u==null?void 0:u.data,x,i),ue(this,Ii,x),ue(this,mr,null)}catch(G){ue(this,mr,G)}O(this,mr)&&(S=O(this,mr),x=O(this,Ii),b=Date.now(),C="error");const R=g.fetchStatus==="fetching",A=C==="pending",P=C==="error",M=A&&R,j=x!==void 0,L={status:C,fetchStatus:g.fetchStatus,isPending:A,isSuccess:C==="success",isError:P,isInitialLoading:M,isLoading:M,data:x,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>y.dataUpdateCount||g.errorUpdateCount>y.errorUpdateCount,isFetching:R,isRefetching:R&&!A,isLoadingError:P&&!j,isPaused:g.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:P&&j,isStale:nf(n,i),refetch:this.refetch,promise:O(this,yr)};if(this.options.experimental_prefetchInRender){const G=he=>{L.status==="error"?he.reject(L.error):L.data!==void 0&&he.resolve(L.data)},te=()=>{const he=ue(this,yr,L.promise=kc());G(he)},oe=O(this,yr);switch(oe.status){case"pending":n.queryHash===s.queryHash&&G(oe);break;case"fulfilled":(L.status==="error"||L.data!==oe.value)&&te();break;case"rejected":(L.status!=="error"||L.error!==oe.reason)&&te();break}}return L}updateResult(){const n=O(this,dt),i=this.createResult(O(this,Pe),this.options);if(ue(this,Hr,O(this,Pe).state),ue(this,Di,this.options),O(this,Hr).data!==void 0&&ue(this,Fi,O(this,Pe)),Il(i,n))return;ue(this,dt,i);const s=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,u=typeof a=="function"?a():a;if(u==="all"||!u&&!O(this,Li).size)return!0;const f=new Set(u??O(this,Li));return this.options.throwOnError&&f.add("error"),Object.keys(O(this,dt)).some(h=>{const p=h;return O(this,dt)[p]!==n[p]&&f.has(p)})};be(this,Oe,g0).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&be(this,Oe,Ec).call(this)}},St=new WeakMap,Pe=new WeakMap,rs=new WeakMap,dt=new WeakMap,Hr=new WeakMap,Di=new WeakMap,yr=new WeakMap,mr=new WeakMap,is=new WeakMap,Ii=new WeakMap,Fi=new WeakMap,Vr=new WeakMap,qr=new WeakMap,vr=new WeakMap,Li=new WeakMap,Oe=new WeakSet,Lo=function(n){be(this,Oe,Mc).call(this);let i=O(this,Pe).fetch(this.options,n);return n!=null&&n.throwOnError||(i=i.catch(pt)),i},Sc=function(){be(this,Oe,Pc).call(this);const n=Ci(this.options.staleTime,O(this,Pe));if(Wr||O(this,dt).isStale||!_c(n))return;const s=o0(O(this,dt).dataUpdatedAt,n)+1;ue(this,Vr,setTimeout(()=>{O(this,dt).isStale||this.updateResult()},s))},Cc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,Pe)):this.options.refetchInterval)??!1},bc=function(n){be(this,Oe,Tc).call(this),ue(this,vr,n),!(Wr||tn(this.options.enabled,O(this,Pe))===!1||!_c(O(this,vr))||O(this,vr)===0)&&ue(this,qr,setInterval(()=>{(this.options.refetchIntervalInBackground||tf.isFocused())&&be(this,Oe,Lo).call(this)},O(this,vr)))},Ec=function(){be(this,Oe,Sc).call(this),be(this,Oe,bc).call(this,be(this,Oe,Cc).call(this))},Pc=function(){O(this,Vr)&&(clearTimeout(O(this,Vr)),ue(this,Vr,void 0))},Tc=function(){O(this,qr)&&(clearInterval(O(this,qr)),ue(this,qr,void 0))},Mc=function(){const n=O(this,St).getQueryCache().build(O(this,St),this.options);if(n===O(this,Pe))return;const i=O(this,Pe);ue(this,Pe,n),ue(this,rs,n.state),this.hasListeners()&&(i==null||i.removeObserver(this),n.addObserver(this))},g0=function(n){Ye.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(O(this,dt))}),O(this,St).getQueryCache().notify({query:O(this,Pe),type:"observerResultsUpdated"})})},n0);function Qv(e,n){return tn(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function Tp(e,n){return Qv(e,n)||e.state.data!==void 0&&Oc(e,n,n.refetchOnMount)}function Oc(e,n,i){if(tn(n.enabled,e)!==!1){const s=typeof i=="function"?i(e):i;return s==="always"||s!==!1&&nf(e,n)}return!1}function Mp(e,n,i,s){return(e!==n||tn(s.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&nf(e,i)}function nf(e,n){return tn(n.enabled,e)!==!1&&e.isStaleByTime(Ci(n.staleTime,e))}function Wv(e,n){return!Il(e.getCurrentResult(),n)}var _r,xr,Ct,Dn,$n,Nl,Nc,r0,Kv=(r0=class extends Vi{constructor(i,s){super();ve(this,$n);ve(this,_r);ve(this,xr);ve(this,Ct);ve(this,Dn);ue(this,_r,i),this.setOptions(s),this.bindMethods(),be(this,$n,Nl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var a;const s=this.options;this.options=O(this,_r).defaultMutationOptions(i),Il(this.options,s)||O(this,_r).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,Ct),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&Kr(s.mutationKey)!==Kr(this.options.mutationKey)?this.reset():((a=O(this,Ct))==null?void 0:a.state.status)==="pending"&&O(this,Ct).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=O(this,Ct))==null||i.removeObserver(this)}onMutationUpdate(i){be(this,$n,Nl).call(this),be(this,$n,Nc).call(this,i)}getCurrentResult(){return O(this,xr)}reset(){var i;(i=O(this,Ct))==null||i.removeObserver(this),ue(this,Ct,void 0),be(this,$n,Nl).call(this),be(this,$n,Nc).call(this)}mutate(i,s){var a;return ue(this,Dn,s),(a=O(this,Ct))==null||a.removeObserver(this),ue(this,Ct,O(this,_r).getMutationCache().build(O(this,_r),this.options)),O(this,Ct).addObserver(this),O(this,Ct).execute(i)}},_r=new WeakMap,xr=new WeakMap,Ct=new WeakMap,Dn=new WeakMap,$n=new WeakSet,Nl=function(){var s;const i=((s=O(this,Ct))==null?void 0:s.state)??p0();ue(this,xr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Nc=function(i){Ye.batch(()=>{var s,a,u,f,h,p,y,v;if(O(this,Dn)&&this.hasListeners()){const g=O(this,xr).variables,_=O(this,xr).context;(i==null?void 0:i.type)==="success"?((a=(s=O(this,Dn)).onSuccess)==null||a.call(s,i.data,g,_),(f=(u=O(this,Dn)).onSettled)==null||f.call(u,i.data,null,g,_)):(i==null?void 0:i.type)==="error"&&((p=(h=O(this,Dn)).onError)==null||p.call(h,i.error,g,_),(v=(y=O(this,Dn)).onSettled)==null||v.call(y,void 0,i.error,g,_))}this.listeners.forEach(g=>{g(O(this,xr))})})},r0),ye=Zc();const Gv=i0(ye);var y0=ye.createContext(void 0),Yl=e=>{const n=ye.useContext(y0);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},Xv=({client:e,children:n})=>(ye.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),J.jsx(y0.Provider,{value:e,children:n})),m0=ye.createContext(!1),Yv=()=>ye.useContext(m0);m0.Provider;function Zv(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Jv=ye.createContext(Zv()),e1=()=>ye.useContext(Jv),t1=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},n1=e=>{ye.useEffect(()=>{e.clearReset()},[e])},r1=({result:e,errorResetBoundary:n,throwOnError:i,query:s,suspense:a})=>e.isError&&!n.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||a0(i,[e.error,s])),i1=e=>{const n=e.staleTime;e.suspense&&(e.staleTime=typeof n=="function"?(...i)=>Math.max(n(...i),1e3):Math.max(n??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},o1=(e,n)=>e.isLoading&&e.isFetching&&!n,s1=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,Op=(e,n,i)=>n.fetchOptimistic(e).catch(()=>{i.clearReset()});function l1(e,n,i){var g,_,x,S,b;const s=Yl(),a=Yv(),u=e1(),f=s.defaultQueryOptions(e);(_=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||_.call(g,f),f._optimisticResults=a?"isRestoring":"optimistic",i1(f),t1(f,u),n1(u);const h=!s.getQueryCache().get(f.queryHash),[p]=ye.useState(()=>new n(s,f)),y=p.getOptimisticResult(f),v=!a&&e.subscribed!==!1;if(ye.useSyncExternalStore(ye.useCallback(C=>{const k=v?p.subscribe(Ye.batchCalls(C)):pt;return p.updateResult(),k},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),ye.useEffect(()=>{p.setOptions(f)},[f,p]),s1(f,y))throw Op(f,p,u);if(r1({result:y,errorResetBoundary:u,throwOnError:f.throwOnError,query:s.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw y.error;if((S=(x=s.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||S.call(x,f,y),f.experimental_prefetchInRender&&!Wr&&o1(y,a)){const C=h?Op(f,p,u):(b=s.getQueryCache().get(f.queryHash))==null?void 0:b.promise;C==null||C.catch(pt).finally(()=>{p.updateResult()})}return f.notifyOnChangeProps?y:p.trackResult(y)}function a1(e,n){return l1(e,Bv)}function u1(e,n){const i=Yl(),[s]=ye.useState(()=>new Kv(i,e));ye.useEffect(()=>{s.setOptions(e)},[s,e]);const a=ye.useSyncExternalStore(ye.useCallback(f=>s.subscribe(Ye.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=ye.useCallback((f,h)=>{s.mutate(f,h).catch(pt)},[s]);if(a.error&&a0(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}var kl={},nc={exports:{}},kt={},rc={exports:{}},ic={};/**
|
|
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 Np;function c1(){return Np||(Np=1,function(e){function n(Q,q){var B=Q.length;Q.push(q);e:for(;0<B;){var T=B-1>>>1,V=Q[T];if(0<a(V,q))Q[T]=q,Q[B]=V,B=T;else break e}}function i(Q){return Q.length===0?null:Q[0]}function s(Q){if(Q.length===0)return null;var q=Q[0],B=Q.pop();if(B!==q){Q[0]=B;e:for(var T=0,V=Q.length,se=V>>>1;T<se;){var ae=2*(T+1)-1,me=Q[ae],we=ae+1,Ce=Q[we];if(0>a(me,B))we<V&&0>a(Ce,me)?(Q[T]=Ce,Q[we]=B,T=we):(Q[T]=me,Q[ae]=B,T=ae);else if(we<V&&0>a(Ce,B))Q[T]=Ce,Q[we]=B,T=we;else break e}}return q}function a(Q,q){var B=Q.sortIndex-q.sortIndex;return B!==0?B:Q.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var p=[],y=[],v=1,g=null,_=3,x=!1,S=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(Q){for(var q=i(y);q!==null;){if(q.callback===null)s(y);else if(q.startTime<=Q)s(y),q.sortIndex=q.expirationTime,n(p,q);else break;q=i(y)}}function P(Q){if(b=!1,A(Q),!S)if(i(p)!==null)S=!0,W(M);else{var q=i(y);q!==null&&ie(P,q.startTime-Q)}}function M(Q,q){S=!1,b&&(b=!1,k(L),L=-1),x=!0;var B=_;try{for(A(q),g=i(p);g!==null&&(!(g.expirationTime>q)||Q&&!te());){var T=g.callback;if(typeof T=="function"){g.callback=null,_=g.priorityLevel;var V=T(g.expirationTime<=q);q=e.unstable_now(),typeof V=="function"?g.callback=V:g===i(p)&&s(p),A(q)}else s(p);g=i(p)}if(g!==null)var se=!0;else{var ae=i(y);ae!==null&&ie(P,ae.startTime-q),se=!1}return se}finally{g=null,_=B,x=!1}}var j=!1,I=null,L=-1,K=5,G=-1;function te(){return!(e.unstable_now()-G<K)}function oe(){if(I!==null){var Q=e.unstable_now();G=Q;var q=!0;try{q=I(!0,Q)}finally{q?he():(j=!1,I=null)}}else j=!1}var he;if(typeof R=="function")he=function(){R(oe)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,ee=F.port2;F.port1.onmessage=oe,he=function(){ee.postMessage(null)}}else he=function(){C(oe,0)};function W(Q){I=Q,j||(j=!0,he())}function ie(Q,q){L=C(function(){Q(e.unstable_now())},q)}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(){S||x||(S=!0,W(M))},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"):K=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(Q){switch(_){case 1:case 2:case 3:var q=3;break;default:q=_}var B=_;_=q;try{return Q()}finally{_=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Q,q){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var B=_;_=Q;try{return q()}finally{_=B}},e.unstable_scheduleCallback=function(Q,q,B){var T=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?T+B:T):B=T,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=B+V,Q={id:v++,callback:q,priorityLevel:Q,startTime:B,expirationTime:V,sortIndex:-1},B>T?(Q.sortIndex=B,n(y,Q),i(p)===null&&Q===i(y)&&(b?(k(L),L=-1):b=!0,ie(P,B-T))):(Q.sortIndex=V,n(p,Q),S||x||(S=!0,W(M))),Q},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(Q){var q=_;return function(){var B=_;_=q;try{return Q.apply(this,arguments)}finally{_=B}}}}(ic)),ic}var Rp;function f1(){return Rp||(Rp=1,rc.exports=c1()),rc.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 Ap;function h1(){if(Ap)return kt;Ap=1;var e=Zc(),n=f1();function i(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(r,o){f(r,o),f(r+"Capture",o)}function f(r,o){for(a[r]=o,r=0;r<o.length;r++)s.add(o[r])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,y=/^[: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]*$/,v={},g={};function _(r){return p.call(g,r)?!0:p.call(v,r)?!1:y.test(r)?g[r]=!0:(v[r]=!0,!1)}function x(r,o,l,c){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function S(r,o,l,c){if(o===null||typeof o>"u"||x(r,o,l,c))return!0;if(c)return!1;if(l!==null)switch(l.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 b(r,o,l,c,d,m,w){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=d,this.mustUseProperty=l,this.propertyName=r,this.type=o,this.sanitizeURL=m,this.removeEmptyString=w}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){C[r]=new b(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];C[o]=new b(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){C[r]=new b(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){C[r]=new b(r,2,!1,r,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(r){C[r]=new b(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){C[r]=new b(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){C[r]=new b(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){C[r]=new b(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){C[r]=new b(r,5,!1,r.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function R(r){return r[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(r){var o=r.replace(k,R);C[o]=new b(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(k,R);C[o]=new b(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(k,R);C[o]=new b(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){C[r]=new b(r,1,!1,r.toLowerCase(),null,!1,!1)}),C.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){C[r]=new b(r,1,!1,r.toLowerCase(),null,!0,!0)});function A(r,o,l,c){var d=C.hasOwnProperty(o)?C[o]:null;(d!==null?d.type!==0:c||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(S(o,l,d,c)&&(l=null),c||d===null?_(o)&&(l===null?r.removeAttribute(o):r.setAttribute(o,""+l)):d.mustUseProperty?r[d.propertyName]=l===null?d.type===3?!1:"":l:(o=d.attributeName,c=d.attributeNamespace,l===null?r.removeAttribute(o):(d=d.type,l=d===3||d===4&&l===!0?"":""+l,c?r.setAttributeNS(c,o,l):r.setAttribute(o,l))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),j=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),te=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),Q=Symbol.iterator;function q(r){return r===null||typeof r!="object"?null:(r=Q&&r[Q]||r["@@iterator"],typeof r=="function"?r:null)}var B=Object.assign,T;function V(r){if(T===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);T=o&&o[1]||""}return`
|
|
34
|
+
`+T+r}var se=!1;function ae(r,o){if(!r||se)return"";se=!0;var l=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(H){var c=H}Reflect.construct(r,[],o)}else{try{o.call()}catch(H){c=H}r.call(o.prototype)}else{try{throw Error()}catch(H){c=H}r()}}catch(H){if(H&&c&&typeof H.stack=="string"){for(var d=H.stack.split(`
|
|
35
|
+
`),m=c.stack.split(`
|
|
36
|
+
`),w=d.length-1,E=m.length-1;1<=w&&0<=E&&d[w]!==m[E];)E--;for(;1<=w&&0<=E;w--,E--)if(d[w]!==m[E]){if(w!==1||E!==1)do if(w--,E--,0>E||d[w]!==m[E]){var N=`
|
|
37
|
+
`+d[w].replace(" at new "," at ");return r.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",r.displayName)),N}while(1<=w&&0<=E);break}}}finally{se=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?V(r):""}function me(r){switch(r.tag){case 5:return V(r.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return r=ae(r.type,!1),r;case 11:return r=ae(r.type.render,!1),r;case 1:return r=ae(r.type,!0),r;default:return""}}function we(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case I:return"Fragment";case j:return"Portal";case K:return"Profiler";case L:return"StrictMode";case he:return"Suspense";case F:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case te:return(r.displayName||"Context")+".Consumer";case G:return(r._context.displayName||"Context")+".Provider";case oe:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ee:return o=r.displayName||null,o!==null?o:we(r.type)||"Memo";case W:o=r._payload,r=r._init;try{return we(r(o))}catch{}}return null}function Ce(r){var o=r.type;switch(r.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 r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return we(o);case 8:return o===L?"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 Se(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Re(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Pt(r){var o=Re(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),c=""+r[o];if(!r.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,m=l.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return d.call(this)},set:function(w){c=""+w,m.call(this,w)}}),Object.defineProperty(r,o,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function cs(r){r._valueTracker||(r._valueTracker=Pt(r))}function Sf(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),c="";return r&&(c=Re(r)?r.checked?"true":"false":r.value),r=c,r!==l?(o.setValue(r),!0):!1}function fs(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function oa(r,o){var l=o.checked;return B({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Cf(r,o){var l=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;l=Se(o.value!=null?o.value:l),r._wrapperState={initialChecked:c,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function bf(r,o){o=o.checked,o!=null&&A(r,"checked",o,!1)}function sa(r,o){bf(r,o);var l=Se(o.value),c=o.type;if(l!=null)c==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?la(r,o.type,l):o.hasOwnProperty("defaultValue")&&la(r,o.type,Se(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function Ef(r,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,l||o===r.value||(r.value=o),r.defaultValue=o}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function la(r,o,l){(o!=="number"||fs(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var qi=Array.isArray;function Yr(r,o,l,c){if(r=r.options,o){o={};for(var d=0;d<l.length;d++)o["$"+l[d]]=!0;for(l=0;l<r.length;l++)d=o.hasOwnProperty("$"+r[l].value),r[l].selected!==d&&(r[l].selected=d),d&&c&&(r[l].defaultSelected=!0)}else{for(l=""+Se(l),o=null,d=0;d<r.length;d++){if(r[d].value===l){r[d].selected=!0,c&&(r[d].defaultSelected=!0);return}o!==null||r[d].disabled||(o=r[d])}o!==null&&(o.selected=!0)}}function aa(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return B({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Pf(r,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(i(92));if(qi(l)){if(1<l.length)throw Error(i(93));l=l[0]}o=l}o==null&&(o=""),l=o}r._wrapperState={initialValue:Se(l)}}function Tf(r,o){var l=Se(o.value),c=Se(o.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),o.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),c!=null&&(r.defaultValue=""+c)}function Mf(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function Of(r){switch(r){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 ua(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?Of(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var hs,Nf=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,c,d){MSApp.execUnsafeLocalFunction(function(){return r(o,l,c,d)})}:r}(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(hs=hs||document.createElement("div"),hs.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=hs.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function Bi(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var Qi={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},Oy=["Webkit","ms","Moz","O"];Object.keys(Qi).forEach(function(r){Oy.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),Qi[o]=Qi[r]})});function Rf(r,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||Qi.hasOwnProperty(r)&&Qi[r]?(""+o).trim():o+"px"}function Af(r,o){r=r.style;for(var l in o)if(o.hasOwnProperty(l)){var c=l.indexOf("--")===0,d=Rf(l,o[l],c);l==="float"&&(l="cssFloat"),c?r.setProperty(l,d):r[l]=d}}var Ny=B({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 ca(r,o){if(o){if(Ny[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(i(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(i(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(i(61))}if(o.style!=null&&typeof o.style!="object")throw Error(i(62))}}function fa(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){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 ha=null;function da(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var pa=null,Zr=null,Jr=null;function zf(r){if(r=go(r)){if(typeof pa!="function")throw Error(i(280));var o=r.stateNode;o&&(o=js(o),pa(r.stateNode,r.type,o))}}function jf(r){Zr?Jr?Jr.push(r):Jr=[r]:Zr=r}function Df(){if(Zr){var r=Zr,o=Jr;if(Jr=Zr=null,zf(r),o)for(r=0;r<o.length;r++)zf(o[r])}}function If(r,o){return r(o)}function Ff(){}var ga=!1;function Lf(r,o,l){if(ga)return r(o,l);ga=!0;try{return If(r,o,l)}finally{ga=!1,(Zr!==null||Jr!==null)&&(Ff(),Df())}}function Wi(r,o){var l=r.stateNode;if(l===null)return null;var c=js(l);if(c===null)return null;l=c[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":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,o,typeof l));return l}var ya=!1;if(h)try{var Ki={};Object.defineProperty(Ki,"passive",{get:function(){ya=!0}}),window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch{ya=!1}function Ry(r,o,l,c,d,m,w,E,N){var H=Array.prototype.slice.call(arguments,3);try{o.apply(l,H)}catch(Y){this.onError(Y)}}var Gi=!1,ds=null,ps=!1,ma=null,Ay={onError:function(r){Gi=!0,ds=r}};function zy(r,o,l,c,d,m,w,E,N){Gi=!1,ds=null,Ry.apply(Ay,arguments)}function jy(r,o,l,c,d,m,w,E,N){if(zy.apply(this,arguments),Gi){if(Gi){var H=ds;Gi=!1,ds=null}else throw Error(i(198));ps||(ps=!0,ma=H)}}function wr(r){var o=r,l=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(l=o.return),r=o.return;while(r)}return o.tag===3?l:null}function $f(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function Uf(r){if(wr(r)!==r)throw Error(i(188))}function Dy(r){var o=r.alternate;if(!o){if(o=wr(r),o===null)throw Error(i(188));return o!==r?null:r}for(var l=r,c=o;;){var d=l.return;if(d===null)break;var m=d.alternate;if(m===null){if(c=d.return,c!==null){l=c;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===l)return Uf(d),r;if(m===c)return Uf(d),o;m=m.sibling}throw Error(i(188))}if(l.return!==c.return)l=d,c=m;else{for(var w=!1,E=d.child;E;){if(E===l){w=!0,l=d,c=m;break}if(E===c){w=!0,c=d,l=m;break}E=E.sibling}if(!w){for(E=m.child;E;){if(E===l){w=!0,l=m,c=d;break}if(E===c){w=!0,c=m,l=d;break}E=E.sibling}if(!w)throw Error(i(189))}}if(l.alternate!==c)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:o}function Hf(r){return r=Dy(r),r!==null?Vf(r):null}function Vf(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=Vf(r);if(o!==null)return o;r=r.sibling}return null}var qf=n.unstable_scheduleCallback,Bf=n.unstable_cancelCallback,Iy=n.unstable_shouldYield,Fy=n.unstable_requestPaint,Qe=n.unstable_now,Ly=n.unstable_getCurrentPriorityLevel,va=n.unstable_ImmediatePriority,Qf=n.unstable_UserBlockingPriority,gs=n.unstable_NormalPriority,$y=n.unstable_LowPriority,Wf=n.unstable_IdlePriority,ys=null,sn=null;function Uy(r){if(sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(ys,r,void 0,(r.current.flags&128)===128)}catch{}}var Bt=Math.clz32?Math.clz32:qy,Hy=Math.log,Vy=Math.LN2;function qy(r){return r>>>=0,r===0?32:31-(Hy(r)/Vy|0)|0}var ms=64,vs=4194304;function Xi(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function _s(r,o){var l=r.pendingLanes;if(l===0)return 0;var c=0,d=r.suspendedLanes,m=r.pingedLanes,w=l&268435455;if(w!==0){var E=w&~d;E!==0?c=Xi(E):(m&=w,m!==0&&(c=Xi(m)))}else w=l&~d,w!==0?c=Xi(w):m!==0&&(c=Xi(m));if(c===0)return 0;if(o!==0&&o!==c&&(o&d)===0&&(d=c&-c,m=o&-o,d>=m||d===16&&(m&4194240)!==0))return o;if((c&4)!==0&&(c|=l&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=c;0<o;)l=31-Bt(o),d=1<<l,c|=r[l],o&=~d;return c}function By(r,o){switch(r){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 Qy(r,o){for(var l=r.suspendedLanes,c=r.pingedLanes,d=r.expirationTimes,m=r.pendingLanes;0<m;){var w=31-Bt(m),E=1<<w,N=d[w];N===-1?((E&l)===0||(E&c)!==0)&&(d[w]=By(E,o)):N<=o&&(r.expiredLanes|=E),m&=~E}}function _a(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Kf(){var r=ms;return ms<<=1,(ms&4194240)===0&&(ms=64),r}function xa(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function Yi(r,o,l){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-Bt(o),r[o]=l}function Wy(r,o){var l=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<l;){var d=31-Bt(l),m=1<<d;o[d]=0,c[d]=-1,r[d]=-1,l&=~m}}function wa(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var c=31-Bt(l),d=1<<c;d&o|r[c]&o&&(r[c]|=o),l&=~d}}var Ne=0;function Gf(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Xf,ka,Yf,Zf,Jf,Sa=!1,xs=[],Hn=null,Vn=null,qn=null,Zi=new Map,Ji=new Map,Bn=[],Ky="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 eh(r,o){switch(r){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":qn=null;break;case"pointerover":case"pointerout":Zi.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ji.delete(o.pointerId)}}function eo(r,o,l,c,d,m){return r===null||r.nativeEvent!==m?(r={blockedOn:o,domEventName:l,eventSystemFlags:c,nativeEvent:m,targetContainers:[d]},o!==null&&(o=go(o),o!==null&&ka(o)),r):(r.eventSystemFlags|=c,o=r.targetContainers,d!==null&&o.indexOf(d)===-1&&o.push(d),r)}function Gy(r,o,l,c,d){switch(o){case"focusin":return Hn=eo(Hn,r,o,l,c,d),!0;case"dragenter":return Vn=eo(Vn,r,o,l,c,d),!0;case"mouseover":return qn=eo(qn,r,o,l,c,d),!0;case"pointerover":var m=d.pointerId;return Zi.set(m,eo(Zi.get(m)||null,r,o,l,c,d)),!0;case"gotpointercapture":return m=d.pointerId,Ji.set(m,eo(Ji.get(m)||null,r,o,l,c,d)),!0}return!1}function th(r){var o=kr(r.target);if(o!==null){var l=wr(o);if(l!==null){if(o=l.tag,o===13){if(o=$f(l),o!==null){r.blockedOn=o,Jf(r.priority,function(){Yf(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function ws(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=ba(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);ha=c,l.target.dispatchEvent(c),ha=null}else return o=go(l),o!==null&&ka(o),r.blockedOn=l,!1;o.shift()}return!0}function nh(r,o,l){ws(r)&&l.delete(o)}function Xy(){Sa=!1,Hn!==null&&ws(Hn)&&(Hn=null),Vn!==null&&ws(Vn)&&(Vn=null),qn!==null&&ws(qn)&&(qn=null),Zi.forEach(nh),Ji.forEach(nh)}function to(r,o){r.blockedOn===o&&(r.blockedOn=null,Sa||(Sa=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Xy)))}function no(r){function o(d){return to(d,r)}if(0<xs.length){to(xs[0],r);for(var l=1;l<xs.length;l++){var c=xs[l];c.blockedOn===r&&(c.blockedOn=null)}}for(Hn!==null&&to(Hn,r),Vn!==null&&to(Vn,r),qn!==null&&to(qn,r),Zi.forEach(o),Ji.forEach(o),l=0;l<Bn.length;l++)c=Bn[l],c.blockedOn===r&&(c.blockedOn=null);for(;0<Bn.length&&(l=Bn[0],l.blockedOn===null);)th(l),l.blockedOn===null&&Bn.shift()}var ei=P.ReactCurrentBatchConfig,ks=!0;function Yy(r,o,l,c){var d=Ne,m=ei.transition;ei.transition=null;try{Ne=1,Ca(r,o,l,c)}finally{Ne=d,ei.transition=m}}function Zy(r,o,l,c){var d=Ne,m=ei.transition;ei.transition=null;try{Ne=4,Ca(r,o,l,c)}finally{Ne=d,ei.transition=m}}function Ca(r,o,l,c){if(ks){var d=ba(r,o,l,c);if(d===null)Ha(r,o,c,Ss,l),eh(r,c);else if(Gy(d,r,o,l,c))c.stopPropagation();else if(eh(r,c),o&4&&-1<Ky.indexOf(r)){for(;d!==null;){var m=go(d);if(m!==null&&Xf(m),m=ba(r,o,l,c),m===null&&Ha(r,o,c,Ss,l),m===d)break;d=m}d!==null&&c.stopPropagation()}else Ha(r,o,c,null,l)}}var Ss=null;function ba(r,o,l,c){if(Ss=null,r=da(c),r=kr(r),r!==null)if(o=wr(r),o===null)r=null;else if(l=o.tag,l===13){if(r=$f(o),r!==null)return r;r=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return Ss=r,null}function rh(r){switch(r){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(Ly()){case va:return 1;case Qf:return 4;case gs:case $y:return 16;case Wf:return 536870912;default:return 16}default:return 16}}var Qn=null,Ea=null,Cs=null;function ih(){if(Cs)return Cs;var r,o=Ea,l=o.length,c,d="value"in Qn?Qn.value:Qn.textContent,m=d.length;for(r=0;r<l&&o[r]===d[r];r++);var w=l-r;for(c=1;c<=w&&o[l-c]===d[m-c];c++);return Cs=d.slice(r,1<c?1-c:void 0)}function bs(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function Es(){return!0}function oh(){return!1}function Tt(r){function o(l,c,d,m,w){this._reactName=l,this._targetInst=d,this.type=c,this.nativeEvent=m,this.target=w,this.currentTarget=null;for(var E in r)r.hasOwnProperty(E)&&(l=r[E],this[E]=l?l(m):m[E]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Es:oh,this.isPropagationStopped=oh,this}return B(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Es)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Es)},persist:function(){},isPersistent:Es}),o}var ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pa=Tt(ti),ro=B({},ti,{view:0,detail:0}),Jy=Tt(ro),Ta,Ma,io,Ps=B({},ro,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Na,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==io&&(io&&r.type==="mousemove"?(Ta=r.screenX-io.screenX,Ma=r.screenY-io.screenY):Ma=Ta=0,io=r),Ta)},movementY:function(r){return"movementY"in r?r.movementY:Ma}}),sh=Tt(Ps),em=B({},Ps,{dataTransfer:0}),tm=Tt(em),nm=B({},ro,{relatedTarget:0}),Oa=Tt(nm),rm=B({},ti,{animationName:0,elapsedTime:0,pseudoElement:0}),im=Tt(rm),om=B({},ti,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),sm=Tt(om),lm=B({},ti,{data:0}),lh=Tt(lm),am={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},um={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"},cm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fm(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=cm[r])?!!o[r]:!1}function Na(){return fm}var hm=B({},ro,{key:function(r){if(r.key){var o=am[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=bs(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?um[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Na,charCode:function(r){return r.type==="keypress"?bs(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?bs(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),dm=Tt(hm),pm=B({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=Tt(pm),gm=B({},ro,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Na}),ym=Tt(gm),mm=B({},ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),vm=Tt(mm),_m=B({},Ps,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),xm=Tt(_m),wm=[9,13,27,32],Ra=h&&"CompositionEvent"in window,oo=null;h&&"documentMode"in document&&(oo=document.documentMode);var km=h&&"TextEvent"in window&&!oo,uh=h&&(!Ra||oo&&8<oo&&11>=oo),ch=" ",fh=!1;function hh(r,o){switch(r){case"keyup":return wm.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dh(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ni=!1;function Sm(r,o){switch(r){case"compositionend":return dh(o);case"keypress":return o.which!==32?null:(fh=!0,ch);case"textInput":return r=o.data,r===ch&&fh?null:r;default:return null}}function Cm(r,o){if(ni)return r==="compositionend"||!Ra&&hh(r,o)?(r=ih(),Cs=Ea=Qn=null,ni=!1,r):null;switch(r){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 uh&&o.locale!=="ko"?null:o.data;default:return null}}var bm={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 ph(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!bm[r.type]:o==="textarea"}function gh(r,o,l,c){jf(c),o=Rs(o,"onChange"),0<o.length&&(l=new Pa("onChange","change",null,l,c),r.push({event:l,listeners:o}))}var so=null,lo=null;function Em(r){Ah(r,0)}function Ts(r){var o=li(r);if(Sf(o))return r}function Pm(r,o){if(r==="change")return o}var yh=!1;if(h){var Aa;if(h){var za="oninput"in document;if(!za){var mh=document.createElement("div");mh.setAttribute("oninput","return;"),za=typeof mh.oninput=="function"}Aa=za}else Aa=!1;yh=Aa&&(!document.documentMode||9<document.documentMode)}function vh(){so&&(so.detachEvent("onpropertychange",_h),lo=so=null)}function _h(r){if(r.propertyName==="value"&&Ts(lo)){var o=[];gh(o,lo,r,da(r)),Lf(Em,o)}}function Tm(r,o,l){r==="focusin"?(vh(),so=o,lo=l,so.attachEvent("onpropertychange",_h)):r==="focusout"&&vh()}function Mm(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Ts(lo)}function Om(r,o){if(r==="click")return Ts(o)}function Nm(r,o){if(r==="input"||r==="change")return Ts(o)}function Rm(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Qt=typeof Object.is=="function"?Object.is:Rm;function ao(r,o){if(Qt(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var l=Object.keys(r),c=Object.keys(o);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var d=l[c];if(!p.call(o,d)||!Qt(r[d],o[d]))return!1}return!0}function xh(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function wh(r,o){var l=xh(r);r=0;for(var c;l;){if(l.nodeType===3){if(c=r+l.textContent.length,r<=o&&c>=o)return{node:l,offset:o-r};r=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=xh(l)}}function kh(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?kh(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function Sh(){for(var r=window,o=fs();o instanceof r.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)r=o.contentWindow;else break;o=fs(r.document)}return o}function ja(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function Am(r){var o=Sh(),l=r.focusedElem,c=r.selectionRange;if(o!==l&&l&&l.ownerDocument&&kh(l.ownerDocument.documentElement,l)){if(c!==null&&ja(l)){if(o=c.start,r=c.end,r===void 0&&(r=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(r,l.value.length);else if(r=(o=l.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var d=l.textContent.length,m=Math.min(c.start,d);c=c.end===void 0?m:Math.min(c.end,d),!r.extend&&m>c&&(d=c,c=m,m=d),d=wh(l,m);var w=wh(l,c);d&&w&&(r.rangeCount!==1||r.anchorNode!==d.node||r.anchorOffset!==d.offset||r.focusNode!==w.node||r.focusOffset!==w.offset)&&(o=o.createRange(),o.setStart(d.node,d.offset),r.removeAllRanges(),m>c?(r.addRange(o),r.extend(w.node,w.offset)):(o.setEnd(w.node,w.offset),r.addRange(o)))}}for(o=[],r=l;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)r=o[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var zm=h&&"documentMode"in document&&11>=document.documentMode,ri=null,Da=null,uo=null,Ia=!1;function Ch(r,o,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ia||ri==null||ri!==fs(c)||(c=ri,"selectionStart"in c&&ja(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),uo&&ao(uo,c)||(uo=c,c=Rs(Da,"onSelect"),0<c.length&&(o=new Pa("onSelect","select",null,o,l),r.push({event:o,listeners:c}),o.target=ri)))}function Ms(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var ii={animationend:Ms("Animation","AnimationEnd"),animationiteration:Ms("Animation","AnimationIteration"),animationstart:Ms("Animation","AnimationStart"),transitionend:Ms("Transition","TransitionEnd")},Fa={},bh={};h&&(bh=document.createElement("div").style,"AnimationEvent"in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),"TransitionEvent"in window||delete ii.transitionend.transition);function Os(r){if(Fa[r])return Fa[r];if(!ii[r])return r;var o=ii[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in bh)return Fa[r]=o[l];return r}var Eh=Os("animationend"),Ph=Os("animationiteration"),Th=Os("animationstart"),Mh=Os("transitionend"),Oh=new Map,Nh="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 Wn(r,o){Oh.set(r,o),u(o,[r])}for(var La=0;La<Nh.length;La++){var $a=Nh[La],jm=$a.toLowerCase(),Dm=$a[0].toUpperCase()+$a.slice(1);Wn(jm,"on"+Dm)}Wn(Eh,"onAnimationEnd"),Wn(Ph,"onAnimationIteration"),Wn(Th,"onAnimationStart"),Wn("dblclick","onDoubleClick"),Wn("focusin","onFocus"),Wn("focusout","onBlur"),Wn(Mh,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("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 co="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(" "),Im=new Set("cancel close invalid load scroll toggle".split(" ").concat(co));function Rh(r,o,l){var c=r.type||"unknown-event";r.currentTarget=l,jy(c,o,void 0,r),r.currentTarget=null}function Ah(r,o){o=(o&4)!==0;for(var l=0;l<r.length;l++){var c=r[l],d=c.event;c=c.listeners;e:{var m=void 0;if(o)for(var w=c.length-1;0<=w;w--){var E=c[w],N=E.instance,H=E.currentTarget;if(E=E.listener,N!==m&&d.isPropagationStopped())break e;Rh(d,E,H),m=N}else for(w=0;w<c.length;w++){if(E=c[w],N=E.instance,H=E.currentTarget,E=E.listener,N!==m&&d.isPropagationStopped())break e;Rh(d,E,H),m=N}}}if(ps)throw r=ma,ps=!1,ma=null,r}function De(r,o){var l=o[Ka];l===void 0&&(l=o[Ka]=new Set);var c=r+"__bubble";l.has(c)||(zh(o,r,2,!1),l.add(c))}function Ua(r,o,l){var c=0;o&&(c|=4),zh(l,r,c,o)}var Ns="_reactListening"+Math.random().toString(36).slice(2);function fo(r){if(!r[Ns]){r[Ns]=!0,s.forEach(function(l){l!=="selectionchange"&&(Im.has(l)||Ua(l,!1,r),Ua(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Ns]||(o[Ns]=!0,Ua("selectionchange",!1,o))}}function zh(r,o,l,c){switch(rh(o)){case 1:var d=Yy;break;case 4:d=Zy;break;default:d=Ca}l=d.bind(null,o,l,r),d=void 0,!ya||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(d=!0),c?d!==void 0?r.addEventListener(o,l,{capture:!0,passive:d}):r.addEventListener(o,l,!0):d!==void 0?r.addEventListener(o,l,{passive:d}):r.addEventListener(o,l,!1)}function Ha(r,o,l,c,d){var m=c;if((o&1)===0&&(o&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var E=c.stateNode.containerInfo;if(E===d||E.nodeType===8&&E.parentNode===d)break;if(w===4)for(w=c.return;w!==null;){var N=w.tag;if((N===3||N===4)&&(N=w.stateNode.containerInfo,N===d||N.nodeType===8&&N.parentNode===d))return;w=w.return}for(;E!==null;){if(w=kr(E),w===null)return;if(N=w.tag,N===5||N===6){c=m=w;continue e}E=E.parentNode}}c=c.return}Lf(function(){var H=m,Y=da(l),Z=[];e:{var X=Oh.get(r);if(X!==void 0){var le=Pa,fe=r;switch(r){case"keypress":if(bs(l)===0)break e;case"keydown":case"keyup":le=dm;break;case"focusin":fe="focus",le=Oa;break;case"focusout":fe="blur",le=Oa;break;case"beforeblur":case"afterblur":le=Oa;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=sh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=tm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=ym;break;case Eh:case Ph:case Th:le=im;break;case Mh:le=vm;break;case"scroll":le=Jy;break;case"wheel":le=xm;break;case"copy":case"cut":case"paste":le=sm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=ah}var de=(o&4)!==0,We=!de&&r==="scroll",$=de?X!==null?X+"Capture":null:X;de=[];for(var z=H,U;z!==null;){U=z;var ne=U.stateNode;if(U.tag===5&&ne!==null&&(U=ne,$!==null&&(ne=Wi(z,$),ne!=null&&de.push(ho(z,ne,U)))),We)break;z=z.return}0<de.length&&(X=new le(X,fe,null,l,Y),Z.push({event:X,listeners:de}))}}if((o&7)===0){e:{if(X=r==="mouseover"||r==="pointerover",le=r==="mouseout"||r==="pointerout",X&&l!==ha&&(fe=l.relatedTarget||l.fromElement)&&(kr(fe)||fe[xn]))break e;if((le||X)&&(X=Y.window===Y?Y:(X=Y.ownerDocument)?X.defaultView||X.parentWindow:window,le?(fe=l.relatedTarget||l.toElement,le=H,fe=fe?kr(fe):null,fe!==null&&(We=wr(fe),fe!==We||fe.tag!==5&&fe.tag!==6)&&(fe=null)):(le=null,fe=H),le!==fe)){if(de=sh,ne="onMouseLeave",$="onMouseEnter",z="mouse",(r==="pointerout"||r==="pointerover")&&(de=ah,ne="onPointerLeave",$="onPointerEnter",z="pointer"),We=le==null?X:li(le),U=fe==null?X:li(fe),X=new de(ne,z+"leave",le,l,Y),X.target=We,X.relatedTarget=U,ne=null,kr(Y)===H&&(de=new de($,z+"enter",fe,l,Y),de.target=U,de.relatedTarget=We,ne=de),We=ne,le&&fe)t:{for(de=le,$=fe,z=0,U=de;U;U=oi(U))z++;for(U=0,ne=$;ne;ne=oi(ne))U++;for(;0<z-U;)de=oi(de),z--;for(;0<U-z;)$=oi($),U--;for(;z--;){if(de===$||$!==null&&de===$.alternate)break t;de=oi(de),$=oi($)}de=null}else de=null;le!==null&&jh(Z,X,le,de,!1),fe!==null&&We!==null&&jh(Z,We,fe,de,!0)}}e:{if(X=H?li(H):window,le=X.nodeName&&X.nodeName.toLowerCase(),le==="select"||le==="input"&&X.type==="file")var pe=Pm;else if(ph(X))if(yh)pe=Nm;else{pe=Mm;var _e=Tm}else(le=X.nodeName)&&le.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(pe=Om);if(pe&&(pe=pe(r,H))){gh(Z,pe,l,Y);break e}_e&&_e(r,X,H),r==="focusout"&&(_e=X._wrapperState)&&_e.controlled&&X.type==="number"&&la(X,"number",X.value)}switch(_e=H?li(H):window,r){case"focusin":(ph(_e)||_e.contentEditable==="true")&&(ri=_e,Da=H,uo=null);break;case"focusout":uo=Da=ri=null;break;case"mousedown":Ia=!0;break;case"contextmenu":case"mouseup":case"dragend":Ia=!1,Ch(Z,l,Y);break;case"selectionchange":if(zm)break;case"keydown":case"keyup":Ch(Z,l,Y)}var xe;if(Ra)e:{switch(r){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else ni?hh(r,l)&&(ke="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(ke="onCompositionStart");ke&&(uh&&l.locale!=="ko"&&(ni||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&ni&&(xe=ih()):(Qn=Y,Ea="value"in Qn?Qn.value:Qn.textContent,ni=!0)),_e=Rs(H,ke),0<_e.length&&(ke=new lh(ke,r,null,l,Y),Z.push({event:ke,listeners:_e}),xe?ke.data=xe:(xe=dh(l),xe!==null&&(ke.data=xe)))),(xe=km?Sm(r,l):Cm(r,l))&&(H=Rs(H,"onBeforeInput"),0<H.length&&(Y=new lh("onBeforeInput","beforeinput",null,l,Y),Z.push({event:Y,listeners:H}),Y.data=xe))}Ah(Z,o)})}function ho(r,o,l){return{instance:r,listener:o,currentTarget:l}}function Rs(r,o){for(var l=o+"Capture",c=[];r!==null;){var d=r,m=d.stateNode;d.tag===5&&m!==null&&(d=m,m=Wi(r,l),m!=null&&c.unshift(ho(r,m,d)),m=Wi(r,o),m!=null&&c.push(ho(r,m,d))),r=r.return}return c}function oi(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function jh(r,o,l,c,d){for(var m=o._reactName,w=[];l!==null&&l!==c;){var E=l,N=E.alternate,H=E.stateNode;if(N!==null&&N===c)break;E.tag===5&&H!==null&&(E=H,d?(N=Wi(l,m),N!=null&&w.unshift(ho(l,N,E))):d||(N=Wi(l,m),N!=null&&w.push(ho(l,N,E)))),l=l.return}w.length!==0&&r.push({event:o,listeners:w})}var Fm=/\r\n?/g,Lm=/\u0000|\uFFFD/g;function Dh(r){return(typeof r=="string"?r:""+r).replace(Fm,`
|
|
38
|
+
`).replace(Lm,"")}function As(r,o,l){if(o=Dh(o),Dh(r)!==o&&l)throw Error(i(425))}function zs(){}var Va=null,qa=null;function Ba(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Qa=typeof setTimeout=="function"?setTimeout:void 0,$m=typeof clearTimeout=="function"?clearTimeout:void 0,Ih=typeof Promise=="function"?Promise:void 0,Um=typeof queueMicrotask=="function"?queueMicrotask:typeof Ih<"u"?function(r){return Ih.resolve(null).then(r).catch(Hm)}:Qa;function Hm(r){setTimeout(function(){throw r})}function Wa(r,o){var l=o,c=0;do{var d=l.nextSibling;if(r.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(c===0){r.removeChild(d),no(o);return}c--}else l!=="$"&&l!=="$?"&&l!=="$!"||c++;l=d}while(l);no(o)}function Kn(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function Fh(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return r;o--}else l==="/$"&&o++}r=r.previousSibling}return null}var si=Math.random().toString(36).slice(2),ln="__reactFiber$"+si,po="__reactProps$"+si,xn="__reactContainer$"+si,Ka="__reactEvents$"+si,Vm="__reactListeners$"+si,qm="__reactHandles$"+si;function kr(r){var o=r[ln];if(o)return o;for(var l=r.parentNode;l;){if(o=l[xn]||l[ln]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=Fh(r);r!==null;){if(l=r[ln])return l;r=Fh(r)}return o}r=l,l=r.parentNode}return null}function go(r){return r=r[ln]||r[xn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function li(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(i(33))}function js(r){return r[po]||null}var Ga=[],ai=-1;function Gn(r){return{current:r}}function Ie(r){0>ai||(r.current=Ga[ai],Ga[ai]=null,ai--)}function je(r,o){ai++,Ga[ai]=r.current,r.current=o}var Xn={},it=Gn(Xn),mt=Gn(!1),Sr=Xn;function ui(r,o){var l=r.type.contextTypes;if(!l)return Xn;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var d={},m;for(m in l)d[m]=o[m];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=d),d}function vt(r){return r=r.childContextTypes,r!=null}function Ds(){Ie(mt),Ie(it)}function Lh(r,o,l){if(it.current!==Xn)throw Error(i(168));je(it,o),je(mt,l)}function $h(r,o,l){var c=r.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return l;c=c.getChildContext();for(var d in c)if(!(d in o))throw Error(i(108,Ce(r)||"Unknown",d));return B({},l,c)}function Is(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Xn,Sr=it.current,je(it,r),je(mt,mt.current),!0}function Uh(r,o,l){var c=r.stateNode;if(!c)throw Error(i(169));l?(r=$h(r,o,Sr),c.__reactInternalMemoizedMergedChildContext=r,Ie(mt),Ie(it),je(it,r)):Ie(mt),je(mt,l)}var wn=null,Fs=!1,Xa=!1;function Hh(r){wn===null?wn=[r]:wn.push(r)}function Bm(r){Fs=!0,Hh(r)}function Yn(){if(!Xa&&wn!==null){Xa=!0;var r=0,o=Ne;try{var l=wn;for(Ne=1;r<l.length;r++){var c=l[r];do c=c(!0);while(c!==null)}wn=null,Fs=!1}catch(d){throw wn!==null&&(wn=wn.slice(r+1)),qf(va,Yn),d}finally{Ne=o,Xa=!1}}return null}var ci=[],fi=0,Ls=null,$s=0,zt=[],jt=0,Cr=null,kn=1,Sn="";function br(r,o){ci[fi++]=$s,ci[fi++]=Ls,Ls=r,$s=o}function Vh(r,o,l){zt[jt++]=kn,zt[jt++]=Sn,zt[jt++]=Cr,Cr=r;var c=kn;r=Sn;var d=32-Bt(c)-1;c&=~(1<<d),l+=1;var m=32-Bt(o)+d;if(30<m){var w=d-d%5;m=(c&(1<<w)-1).toString(32),c>>=w,d-=w,kn=1<<32-Bt(o)+d|l<<d|c,Sn=m+r}else kn=1<<m|l<<d|c,Sn=r}function Ya(r){r.return!==null&&(br(r,1),Vh(r,1,0))}function Za(r){for(;r===Ls;)Ls=ci[--fi],ci[fi]=null,$s=ci[--fi],ci[fi]=null;for(;r===Cr;)Cr=zt[--jt],zt[jt]=null,Sn=zt[--jt],zt[jt]=null,kn=zt[--jt],zt[jt]=null}var Mt=null,Ot=null,Le=!1,Wt=null;function qh(r,o){var l=Lt(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=r,o=r.deletions,o===null?(r.deletions=[l],r.flags|=16):o.push(l)}function Bh(r,o){switch(r.tag){case 5:var l=r.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,Mt=r,Ot=Kn(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,Mt=r,Ot=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=Cr!==null?{id:kn,overflow:Sn}:null,r.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=Lt(18,null,null,0),l.stateNode=o,l.return=r,r.child=l,Mt=r,Ot=null,!0):!1;default:return!1}}function Ja(r){return(r.mode&1)!==0&&(r.flags&128)===0}function eu(r){if(Le){var o=Ot;if(o){var l=o;if(!Bh(r,o)){if(Ja(r))throw Error(i(418));o=Kn(l.nextSibling);var c=Mt;o&&Bh(r,o)?qh(c,l):(r.flags=r.flags&-4097|2,Le=!1,Mt=r)}}else{if(Ja(r))throw Error(i(418));r.flags=r.flags&-4097|2,Le=!1,Mt=r}}}function Qh(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Mt=r}function Us(r){if(r!==Mt)return!1;if(!Le)return Qh(r),Le=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!Ba(r.type,r.memoizedProps)),o&&(o=Ot)){if(Ja(r))throw Wh(),Error(i(418));for(;o;)qh(r,o),o=Kn(o.nextSibling)}if(Qh(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(o===0){Ot=Kn(r.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}r=r.nextSibling}Ot=null}}else Ot=Mt?Kn(r.stateNode.nextSibling):null;return!0}function Wh(){for(var r=Ot;r;)r=Kn(r.nextSibling)}function hi(){Ot=Mt=null,Le=!1}function tu(r){Wt===null?Wt=[r]:Wt.push(r)}var Qm=P.ReactCurrentBatchConfig;function yo(r,o,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(i(309));var c=l.stateNode}if(!c)throw Error(i(147,r));var d=c,m=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===m?o.ref:(o=function(w){var E=d.refs;w===null?delete E[m]:E[m]=w},o._stringRef=m,o)}if(typeof r!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,r))}return r}function Hs(r,o){throw r=Object.prototype.toString.call(o),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function Kh(r){var o=r._init;return o(r._payload)}function Gh(r){function o($,z){if(r){var U=$.deletions;U===null?($.deletions=[z],$.flags|=16):U.push(z)}}function l($,z){if(!r)return null;for(;z!==null;)o($,z),z=z.sibling;return null}function c($,z){for($=new Map;z!==null;)z.key!==null?$.set(z.key,z):$.set(z.index,z),z=z.sibling;return $}function d($,z){return $=or($,z),$.index=0,$.sibling=null,$}function m($,z,U){return $.index=U,r?(U=$.alternate,U!==null?(U=U.index,U<z?($.flags|=2,z):U):($.flags|=2,z)):($.flags|=1048576,z)}function w($){return r&&$.alternate===null&&($.flags|=2),$}function E($,z,U,ne){return z===null||z.tag!==6?(z=Qu(U,$.mode,ne),z.return=$,z):(z=d(z,U),z.return=$,z)}function N($,z,U,ne){var pe=U.type;return pe===I?Y($,z,U.props.children,ne,U.key):z!==null&&(z.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===W&&Kh(pe)===z.type)?(ne=d(z,U.props),ne.ref=yo($,z,U),ne.return=$,ne):(ne=hl(U.type,U.key,U.props,null,$.mode,ne),ne.ref=yo($,z,U),ne.return=$,ne)}function H($,z,U,ne){return z===null||z.tag!==4||z.stateNode.containerInfo!==U.containerInfo||z.stateNode.implementation!==U.implementation?(z=Wu(U,$.mode,ne),z.return=$,z):(z=d(z,U.children||[]),z.return=$,z)}function Y($,z,U,ne,pe){return z===null||z.tag!==7?(z=Ar(U,$.mode,ne,pe),z.return=$,z):(z=d(z,U),z.return=$,z)}function Z($,z,U){if(typeof z=="string"&&z!==""||typeof z=="number")return z=Qu(""+z,$.mode,U),z.return=$,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case M:return U=hl(z.type,z.key,z.props,null,$.mode,U),U.ref=yo($,null,z),U.return=$,U;case j:return z=Wu(z,$.mode,U),z.return=$,z;case W:var ne=z._init;return Z($,ne(z._payload),U)}if(qi(z)||q(z))return z=Ar(z,$.mode,U,null),z.return=$,z;Hs($,z)}return null}function X($,z,U,ne){var pe=z!==null?z.key:null;if(typeof U=="string"&&U!==""||typeof U=="number")return pe!==null?null:E($,z,""+U,ne);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case M:return U.key===pe?N($,z,U,ne):null;case j:return U.key===pe?H($,z,U,ne):null;case W:return pe=U._init,X($,z,pe(U._payload),ne)}if(qi(U)||q(U))return pe!==null?null:Y($,z,U,ne,null);Hs($,U)}return null}function le($,z,U,ne,pe){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return $=$.get(U)||null,E(z,$,""+ne,pe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case M:return $=$.get(ne.key===null?U:ne.key)||null,N(z,$,ne,pe);case j:return $=$.get(ne.key===null?U:ne.key)||null,H(z,$,ne,pe);case W:var _e=ne._init;return le($,z,U,_e(ne._payload),pe)}if(qi(ne)||q(ne))return $=$.get(U)||null,Y(z,$,ne,pe,null);Hs(z,ne)}return null}function fe($,z,U,ne){for(var pe=null,_e=null,xe=z,ke=z=0,et=null;xe!==null&&ke<U.length;ke++){xe.index>ke?(et=xe,xe=null):et=xe.sibling;var Me=X($,xe,U[ke],ne);if(Me===null){xe===null&&(xe=et);break}r&&xe&&Me.alternate===null&&o($,xe),z=m(Me,z,ke),_e===null?pe=Me:_e.sibling=Me,_e=Me,xe=et}if(ke===U.length)return l($,xe),Le&&br($,ke),pe;if(xe===null){for(;ke<U.length;ke++)xe=Z($,U[ke],ne),xe!==null&&(z=m(xe,z,ke),_e===null?pe=xe:_e.sibling=xe,_e=xe);return Le&&br($,ke),pe}for(xe=c($,xe);ke<U.length;ke++)et=le(xe,$,ke,U[ke],ne),et!==null&&(r&&et.alternate!==null&&xe.delete(et.key===null?ke:et.key),z=m(et,z,ke),_e===null?pe=et:_e.sibling=et,_e=et);return r&&xe.forEach(function(sr){return o($,sr)}),Le&&br($,ke),pe}function de($,z,U,ne){var pe=q(U);if(typeof pe!="function")throw Error(i(150));if(U=pe.call(U),U==null)throw Error(i(151));for(var _e=pe=null,xe=z,ke=z=0,et=null,Me=U.next();xe!==null&&!Me.done;ke++,Me=U.next()){xe.index>ke?(et=xe,xe=null):et=xe.sibling;var sr=X($,xe,Me.value,ne);if(sr===null){xe===null&&(xe=et);break}r&&xe&&sr.alternate===null&&o($,xe),z=m(sr,z,ke),_e===null?pe=sr:_e.sibling=sr,_e=sr,xe=et}if(Me.done)return l($,xe),Le&&br($,ke),pe;if(xe===null){for(;!Me.done;ke++,Me=U.next())Me=Z($,Me.value,ne),Me!==null&&(z=m(Me,z,ke),_e===null?pe=Me:_e.sibling=Me,_e=Me);return Le&&br($,ke),pe}for(xe=c($,xe);!Me.done;ke++,Me=U.next())Me=le(xe,$,ke,Me.value,ne),Me!==null&&(r&&Me.alternate!==null&&xe.delete(Me.key===null?ke:Me.key),z=m(Me,z,ke),_e===null?pe=Me:_e.sibling=Me,_e=Me);return r&&xe.forEach(function(bv){return o($,bv)}),Le&&br($,ke),pe}function We($,z,U,ne){if(typeof U=="object"&&U!==null&&U.type===I&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case M:e:{for(var pe=U.key,_e=z;_e!==null;){if(_e.key===pe){if(pe=U.type,pe===I){if(_e.tag===7){l($,_e.sibling),z=d(_e,U.props.children),z.return=$,$=z;break e}}else if(_e.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===W&&Kh(pe)===_e.type){l($,_e.sibling),z=d(_e,U.props),z.ref=yo($,_e,U),z.return=$,$=z;break e}l($,_e);break}else o($,_e);_e=_e.sibling}U.type===I?(z=Ar(U.props.children,$.mode,ne,U.key),z.return=$,$=z):(ne=hl(U.type,U.key,U.props,null,$.mode,ne),ne.ref=yo($,z,U),ne.return=$,$=ne)}return w($);case j:e:{for(_e=U.key;z!==null;){if(z.key===_e)if(z.tag===4&&z.stateNode.containerInfo===U.containerInfo&&z.stateNode.implementation===U.implementation){l($,z.sibling),z=d(z,U.children||[]),z.return=$,$=z;break e}else{l($,z);break}else o($,z);z=z.sibling}z=Wu(U,$.mode,ne),z.return=$,$=z}return w($);case W:return _e=U._init,We($,z,_e(U._payload),ne)}if(qi(U))return fe($,z,U,ne);if(q(U))return de($,z,U,ne);Hs($,U)}return typeof U=="string"&&U!==""||typeof U=="number"?(U=""+U,z!==null&&z.tag===6?(l($,z.sibling),z=d(z,U),z.return=$,$=z):(l($,z),z=Qu(U,$.mode,ne),z.return=$,$=z),w($)):l($,z)}return We}var di=Gh(!0),Xh=Gh(!1),Vs=Gn(null),qs=null,pi=null,nu=null;function ru(){nu=pi=qs=null}function iu(r){var o=Vs.current;Ie(Vs),r._currentValue=o}function ou(r,o,l){for(;r!==null;){var c=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),r===l)break;r=r.return}}function gi(r,o){qs=r,nu=pi=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(_t=!0),r.firstContext=null)}function Dt(r){var o=r._currentValue;if(nu!==r)if(r={context:r,memoizedValue:o,next:null},pi===null){if(qs===null)throw Error(i(308));pi=r,qs.dependencies={lanes:0,firstContext:r}}else pi=pi.next=r;return o}var Er=null;function su(r){Er===null?Er=[r]:Er.push(r)}function Yh(r,o,l,c){var d=o.interleaved;return d===null?(l.next=l,su(o)):(l.next=d.next,d.next=l),o.interleaved=l,Cn(r,c)}function Cn(r,o){r.lanes|=o;var l=r.alternate;for(l!==null&&(l.lanes|=o),l=r,r=r.return;r!==null;)r.childLanes|=o,l=r.alternate,l!==null&&(l.childLanes|=o),l=r,r=r.return;return l.tag===3?l.stateNode:null}var Zn=!1;function lu(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zh(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function bn(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function Jn(r,o,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Te&2)!==0){var d=c.pending;return d===null?o.next=o:(o.next=d.next,d.next=o),c.pending=o,Cn(r,l)}return d=c.interleaved,d===null?(o.next=o,su(c)):(o.next=d.next,d.next=o),c.interleaved=o,Cn(r,l)}function Bs(r,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var c=o.lanes;c&=r.pendingLanes,l|=c,o.lanes=l,wa(r,l)}}function Jh(r,o){var l=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var d=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var w={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};m===null?d=m=w:m=m.next=w,l=l.next}while(l!==null);m===null?d=m=o:m=m.next=o}else d=m=o;l={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:c.shared,effects:c.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=o:r.next=o,l.lastBaseUpdate=o}function Qs(r,o,l,c){var d=r.updateQueue;Zn=!1;var m=d.firstBaseUpdate,w=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var N=E,H=N.next;N.next=null,w===null?m=H:w.next=H,w=N;var Y=r.alternate;Y!==null&&(Y=Y.updateQueue,E=Y.lastBaseUpdate,E!==w&&(E===null?Y.firstBaseUpdate=H:E.next=H,Y.lastBaseUpdate=N))}if(m!==null){var Z=d.baseState;w=0,Y=H=N=null,E=m;do{var X=E.lane,le=E.eventTime;if((c&X)===X){Y!==null&&(Y=Y.next={eventTime:le,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var fe=r,de=E;switch(X=o,le=l,de.tag){case 1:if(fe=de.payload,typeof fe=="function"){Z=fe.call(le,Z,X);break e}Z=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=de.payload,X=typeof fe=="function"?fe.call(le,Z,X):fe,X==null)break e;Z=B({},Z,X);break e;case 2:Zn=!0}}E.callback!==null&&E.lane!==0&&(r.flags|=64,X=d.effects,X===null?d.effects=[E]:X.push(E))}else le={eventTime:le,lane:X,tag:E.tag,payload:E.payload,callback:E.callback,next:null},Y===null?(H=Y=le,N=Z):Y=Y.next=le,w|=X;if(E=E.next,E===null){if(E=d.shared.pending,E===null)break;X=E,E=X.next,X.next=null,d.lastBaseUpdate=X,d.shared.pending=null}}while(!0);if(Y===null&&(N=Z),d.baseState=N,d.firstBaseUpdate=H,d.lastBaseUpdate=Y,o=d.shared.interleaved,o!==null){d=o;do w|=d.lane,d=d.next;while(d!==o)}else m===null&&(d.shared.lanes=0);Mr|=w,r.lanes=w,r.memoizedState=Z}}function ed(r,o,l){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var c=r[o],d=c.callback;if(d!==null){if(c.callback=null,c=l,typeof d!="function")throw Error(i(191,d));d.call(c)}}}var mo={},an=Gn(mo),vo=Gn(mo),_o=Gn(mo);function Pr(r){if(r===mo)throw Error(i(174));return r}function au(r,o){switch(je(_o,o),je(vo,r),je(an,mo),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:ua(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=ua(o,r)}Ie(an),je(an,o)}function yi(){Ie(an),Ie(vo),Ie(_o)}function td(r){Pr(_o.current);var o=Pr(an.current),l=ua(o,r.type);o!==l&&(je(vo,r),je(an,l))}function uu(r){vo.current===r&&(Ie(an),Ie(vo))}var He=Gn(0);function Ws(r){for(var o=r;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.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===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var cu=[];function fu(){for(var r=0;r<cu.length;r++)cu[r]._workInProgressVersionPrimary=null;cu.length=0}var Ks=P.ReactCurrentDispatcher,hu=P.ReactCurrentBatchConfig,Tr=0,Ve=null,Ge=null,Ze=null,Gs=!1,xo=!1,wo=0,Wm=0;function ot(){throw Error(i(321))}function du(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!Qt(r[l],o[l]))return!1;return!0}function pu(r,o,l,c,d,m){if(Tr=m,Ve=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Ks.current=r===null||r.memoizedState===null?Ym:Zm,r=l(c,d),xo){m=0;do{if(xo=!1,wo=0,25<=m)throw Error(i(301));m+=1,Ze=Ge=null,o.updateQueue=null,Ks.current=Jm,r=l(c,d)}while(xo)}if(Ks.current=Zs,o=Ge!==null&&Ge.next!==null,Tr=0,Ze=Ge=Ve=null,Gs=!1,o)throw Error(i(300));return r}function gu(){var r=wo!==0;return wo=0,r}function un(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?Ve.memoizedState=Ze=r:Ze=Ze.next=r,Ze}function It(){if(Ge===null){var r=Ve.alternate;r=r!==null?r.memoizedState:null}else r=Ge.next;var o=Ze===null?Ve.memoizedState:Ze.next;if(o!==null)Ze=o,Ge=r;else{if(r===null)throw Error(i(310));Ge=r,r={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},Ze===null?Ve.memoizedState=Ze=r:Ze=Ze.next=r}return Ze}function ko(r,o){return typeof o=="function"?o(r):o}function yu(r){var o=It(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=Ge,d=c.baseQueue,m=l.pending;if(m!==null){if(d!==null){var w=d.next;d.next=m.next,m.next=w}c.baseQueue=d=m,l.pending=null}if(d!==null){m=d.next,c=c.baseState;var E=w=null,N=null,H=m;do{var Y=H.lane;if((Tr&Y)===Y)N!==null&&(N=N.next={lane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),c=H.hasEagerState?H.eagerState:r(c,H.action);else{var Z={lane:Y,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null};N===null?(E=N=Z,w=c):N=N.next=Z,Ve.lanes|=Y,Mr|=Y}H=H.next}while(H!==null&&H!==m);N===null?w=c:N.next=E,Qt(c,o.memoizedState)||(_t=!0),o.memoizedState=c,o.baseState=w,o.baseQueue=N,l.lastRenderedState=c}if(r=l.interleaved,r!==null){d=r;do m=d.lane,Ve.lanes|=m,Mr|=m,d=d.next;while(d!==r)}else d===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function mu(r){var o=It(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=l.dispatch,d=l.pending,m=o.memoizedState;if(d!==null){l.pending=null;var w=d=d.next;do m=r(m,w.action),w=w.next;while(w!==d);Qt(m,o.memoizedState)||(_t=!0),o.memoizedState=m,o.baseQueue===null&&(o.baseState=m),l.lastRenderedState=m}return[m,c]}function nd(){}function rd(r,o){var l=Ve,c=It(),d=o(),m=!Qt(c.memoizedState,d);if(m&&(c.memoizedState=d,_t=!0),c=c.queue,vu(sd.bind(null,l,c,r),[r]),c.getSnapshot!==o||m||Ze!==null&&Ze.memoizedState.tag&1){if(l.flags|=2048,So(9,od.bind(null,l,c,d,o),void 0,null),Je===null)throw Error(i(349));(Tr&30)!==0||id(l,o,d)}return d}function id(r,o,l){r.flags|=16384,r={getSnapshot:o,value:l},o=Ve.updateQueue,o===null?(o={lastEffect:null,stores:null},Ve.updateQueue=o,o.stores=[r]):(l=o.stores,l===null?o.stores=[r]:l.push(r))}function od(r,o,l,c){o.value=l,o.getSnapshot=c,ld(o)&&ad(r)}function sd(r,o,l){return l(function(){ld(o)&&ad(r)})}function ld(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!Qt(r,l)}catch{return!0}}function ad(r){var o=Cn(r,1);o!==null&&Yt(o,r,1,-1)}function ud(r){var o=un();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:r},o.queue=r,r=r.dispatch=Xm.bind(null,Ve,r),[o.memoizedState,r]}function So(r,o,l,c){return r={tag:r,create:o,destroy:l,deps:c,next:null},o=Ve.updateQueue,o===null?(o={lastEffect:null,stores:null},Ve.updateQueue=o,o.lastEffect=r.next=r):(l=o.lastEffect,l===null?o.lastEffect=r.next=r:(c=l.next,l.next=r,r.next=c,o.lastEffect=r)),r}function cd(){return It().memoizedState}function Xs(r,o,l,c){var d=un();Ve.flags|=r,d.memoizedState=So(1|o,l,void 0,c===void 0?null:c)}function Ys(r,o,l,c){var d=It();c=c===void 0?null:c;var m=void 0;if(Ge!==null){var w=Ge.memoizedState;if(m=w.destroy,c!==null&&du(c,w.deps)){d.memoizedState=So(o,l,m,c);return}}Ve.flags|=r,d.memoizedState=So(1|o,l,m,c)}function fd(r,o){return Xs(8390656,8,r,o)}function vu(r,o){return Ys(2048,8,r,o)}function hd(r,o){return Ys(4,2,r,o)}function dd(r,o){return Ys(4,4,r,o)}function pd(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function gd(r,o,l){return l=l!=null?l.concat([r]):null,Ys(4,4,pd.bind(null,o,r),l)}function _u(){}function yd(r,o){var l=It();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&du(o,c[1])?c[0]:(l.memoizedState=[r,o],r)}function md(r,o){var l=It();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&du(o,c[1])?c[0]:(r=r(),l.memoizedState=[r,o],r)}function vd(r,o,l){return(Tr&21)===0?(r.baseState&&(r.baseState=!1,_t=!0),r.memoizedState=l):(Qt(l,o)||(l=Kf(),Ve.lanes|=l,Mr|=l,r.baseState=!0),o)}function Km(r,o){var l=Ne;Ne=l!==0&&4>l?l:4,r(!0);var c=hu.transition;hu.transition={};try{r(!1),o()}finally{Ne=l,hu.transition=c}}function _d(){return It().memoizedState}function Gm(r,o,l){var c=rr(r);if(l={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null},xd(r))wd(o,l);else if(l=Yh(r,o,l,c),l!==null){var d=ft();Yt(l,r,c,d),kd(l,o,c)}}function Xm(r,o,l){var c=rr(r),d={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null};if(xd(r))wd(o,d);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var w=o.lastRenderedState,E=m(w,l);if(d.hasEagerState=!0,d.eagerState=E,Qt(E,w)){var N=o.interleaved;N===null?(d.next=d,su(o)):(d.next=N.next,N.next=d),o.interleaved=d;return}}catch{}finally{}l=Yh(r,o,d,c),l!==null&&(d=ft(),Yt(l,r,c,d),kd(l,o,c))}}function xd(r){var o=r.alternate;return r===Ve||o!==null&&o===Ve}function wd(r,o){xo=Gs=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function kd(r,o,l){if((l&4194240)!==0){var c=o.lanes;c&=r.pendingLanes,l|=c,o.lanes=l,wa(r,l)}}var Zs={readContext:Dt,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},Ym={readContext:Dt,useCallback:function(r,o){return un().memoizedState=[r,o===void 0?null:o],r},useContext:Dt,useEffect:fd,useImperativeHandle:function(r,o,l){return l=l!=null?l.concat([r]):null,Xs(4194308,4,pd.bind(null,o,r),l)},useLayoutEffect:function(r,o){return Xs(4194308,4,r,o)},useInsertionEffect:function(r,o){return Xs(4,2,r,o)},useMemo:function(r,o){var l=un();return o=o===void 0?null:o,r=r(),l.memoizedState=[r,o],r},useReducer:function(r,o,l){var c=un();return o=l!==void 0?l(o):o,c.memoizedState=c.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},c.queue=r,r=r.dispatch=Gm.bind(null,Ve,r),[c.memoizedState,r]},useRef:function(r){var o=un();return r={current:r},o.memoizedState=r},useState:ud,useDebugValue:_u,useDeferredValue:function(r){return un().memoizedState=r},useTransition:function(){var r=ud(!1),o=r[0];return r=Km.bind(null,r[1]),un().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,l){var c=Ve,d=un();if(Le){if(l===void 0)throw Error(i(407));l=l()}else{if(l=o(),Je===null)throw Error(i(349));(Tr&30)!==0||id(c,o,l)}d.memoizedState=l;var m={value:l,getSnapshot:o};return d.queue=m,fd(sd.bind(null,c,m,r),[r]),c.flags|=2048,So(9,od.bind(null,c,m,l,o),void 0,null),l},useId:function(){var r=un(),o=Je.identifierPrefix;if(Le){var l=Sn,c=kn;l=(c&~(1<<32-Bt(c)-1)).toString(32)+l,o=":"+o+"R"+l,l=wo++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=Wm++,o=":"+o+"r"+l.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},Zm={readContext:Dt,useCallback:yd,useContext:Dt,useEffect:vu,useImperativeHandle:gd,useInsertionEffect:hd,useLayoutEffect:dd,useMemo:md,useReducer:yu,useRef:cd,useState:function(){return yu(ko)},useDebugValue:_u,useDeferredValue:function(r){var o=It();return vd(o,Ge.memoizedState,r)},useTransition:function(){var r=yu(ko)[0],o=It().memoizedState;return[r,o]},useMutableSource:nd,useSyncExternalStore:rd,useId:_d,unstable_isNewReconciler:!1},Jm={readContext:Dt,useCallback:yd,useContext:Dt,useEffect:vu,useImperativeHandle:gd,useInsertionEffect:hd,useLayoutEffect:dd,useMemo:md,useReducer:mu,useRef:cd,useState:function(){return mu(ko)},useDebugValue:_u,useDeferredValue:function(r){var o=It();return Ge===null?o.memoizedState=r:vd(o,Ge.memoizedState,r)},useTransition:function(){var r=mu(ko)[0],o=It().memoizedState;return[r,o]},useMutableSource:nd,useSyncExternalStore:rd,useId:_d,unstable_isNewReconciler:!1};function Kt(r,o){if(r&&r.defaultProps){o=B({},o),r=r.defaultProps;for(var l in r)o[l]===void 0&&(o[l]=r[l]);return o}return o}function xu(r,o,l,c){o=r.memoizedState,l=l(c,o),l=l==null?o:B({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var Js={isMounted:function(r){return(r=r._reactInternals)?wr(r)===r:!1},enqueueSetState:function(r,o,l){r=r._reactInternals;var c=ft(),d=rr(r),m=bn(c,d);m.payload=o,l!=null&&(m.callback=l),o=Jn(r,m,d),o!==null&&(Yt(o,r,d,c),Bs(o,r,d))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var c=ft(),d=rr(r),m=bn(c,d);m.tag=1,m.payload=o,l!=null&&(m.callback=l),o=Jn(r,m,d),o!==null&&(Yt(o,r,d,c),Bs(o,r,d))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=ft(),c=rr(r),d=bn(l,c);d.tag=2,o!=null&&(d.callback=o),o=Jn(r,d,c),o!==null&&(Yt(o,r,c,l),Bs(o,r,c))}};function Sd(r,o,l,c,d,m,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,m,w):o.prototype&&o.prototype.isPureReactComponent?!ao(l,c)||!ao(d,m):!0}function Cd(r,o,l){var c=!1,d=Xn,m=o.contextType;return typeof m=="object"&&m!==null?m=Dt(m):(d=vt(o)?Sr:it.current,c=o.contextTypes,m=(c=c!=null)?ui(r,d):Xn),o=new o(l,m),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Js,r.stateNode=o,o._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=d,r.__reactInternalMemoizedMaskedChildContext=m),o}function bd(r,o,l,c){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,c),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,c),o.state!==r&&Js.enqueueReplaceState(o,o.state,null)}function wu(r,o,l,c){var d=r.stateNode;d.props=l,d.state=r.memoizedState,d.refs={},lu(r);var m=o.contextType;typeof m=="object"&&m!==null?d.context=Dt(m):(m=vt(o)?Sr:it.current,d.context=ui(r,m)),d.state=r.memoizedState,m=o.getDerivedStateFromProps,typeof m=="function"&&(xu(r,o,m,l),d.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(o=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),o!==d.state&&Js.enqueueReplaceState(d,d.state,null),Qs(r,l,d,c),d.state=r.memoizedState),typeof d.componentDidMount=="function"&&(r.flags|=4194308)}function mi(r,o){try{var l="",c=o;do l+=me(c),c=c.return;while(c);var d=l}catch(m){d=`
|
|
39
|
+
Error generating stack: `+m.message+`
|
|
40
|
+
`+m.stack}return{value:r,source:o,stack:d,digest:null}}function ku(r,o,l){return{value:r,source:null,stack:l??null,digest:o??null}}function Su(r,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var ev=typeof WeakMap=="function"?WeakMap:Map;function Ed(r,o,l){l=bn(-1,l),l.tag=3,l.payload={element:null};var c=o.value;return l.callback=function(){sl||(sl=!0,Fu=c),Su(r,o)},l}function Pd(r,o,l){l=bn(-1,l),l.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var d=o.value;l.payload=function(){return c(d)},l.callback=function(){Su(r,o)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(l.callback=function(){Su(r,o),typeof c!="function"&&(tr===null?tr=new Set([this]):tr.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})}),l}function Td(r,o,l){var c=r.pingCache;if(c===null){c=r.pingCache=new ev;var d=new Set;c.set(o,d)}else d=c.get(o),d===void 0&&(d=new Set,c.set(o,d));d.has(l)||(d.add(l),r=pv.bind(null,r,o,l),o.then(r,r))}function Md(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function Od(r,o,l,c,d){return(r.mode&1)===0?(r===o?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=bn(-1,1),o.tag=2,Jn(l,o,1))),l.lanes|=1),r):(r.flags|=65536,r.lanes=d,r)}var tv=P.ReactCurrentOwner,_t=!1;function ct(r,o,l,c){o.child=r===null?Xh(o,null,l,c):di(o,r.child,l,c)}function Nd(r,o,l,c,d){l=l.render;var m=o.ref;return gi(o,d),c=pu(r,o,l,c,m,d),l=gu(),r!==null&&!_t?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,En(r,o,d)):(Le&&l&&Ya(o),o.flags|=1,ct(r,o,c,d),o.child)}function Rd(r,o,l,c,d){if(r===null){var m=l.type;return typeof m=="function"&&!Bu(m)&&m.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=m,Ad(r,o,m,c,d)):(r=hl(l.type,null,c,o,o.mode,d),r.ref=o.ref,r.return=o,o.child=r)}if(m=r.child,(r.lanes&d)===0){var w=m.memoizedProps;if(l=l.compare,l=l!==null?l:ao,l(w,c)&&r.ref===o.ref)return En(r,o,d)}return o.flags|=1,r=or(m,c),r.ref=o.ref,r.return=o,o.child=r}function Ad(r,o,l,c,d){if(r!==null){var m=r.memoizedProps;if(ao(m,c)&&r.ref===o.ref)if(_t=!1,o.pendingProps=c=m,(r.lanes&d)!==0)(r.flags&131072)!==0&&(_t=!0);else return o.lanes=r.lanes,En(r,o,d)}return Cu(r,o,l,c,d)}function zd(r,o,l){var c=o.pendingProps,d=c.children,m=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},je(_i,Nt),Nt|=l;else{if((l&1073741824)===0)return r=m!==null?m.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,je(_i,Nt),Nt|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=m!==null?m.baseLanes:l,je(_i,Nt),Nt|=c}else m!==null?(c=m.baseLanes|l,o.memoizedState=null):c=l,je(_i,Nt),Nt|=c;return ct(r,o,d,l),o.child}function jd(r,o){var l=o.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function Cu(r,o,l,c,d){var m=vt(l)?Sr:it.current;return m=ui(o,m),gi(o,d),l=pu(r,o,l,c,m,d),c=gu(),r!==null&&!_t?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,En(r,o,d)):(Le&&c&&Ya(o),o.flags|=1,ct(r,o,l,d),o.child)}function Dd(r,o,l,c,d){if(vt(l)){var m=!0;Is(o)}else m=!1;if(gi(o,d),o.stateNode===null)tl(r,o),Cd(o,l,c),wu(o,l,c,d),c=!0;else if(r===null){var w=o.stateNode,E=o.memoizedProps;w.props=E;var N=w.context,H=l.contextType;typeof H=="object"&&H!==null?H=Dt(H):(H=vt(l)?Sr:it.current,H=ui(o,H));var Y=l.getDerivedStateFromProps,Z=typeof Y=="function"||typeof w.getSnapshotBeforeUpdate=="function";Z||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(E!==c||N!==H)&&bd(o,w,c,H),Zn=!1;var X=o.memoizedState;w.state=X,Qs(o,c,w,d),N=o.memoizedState,E!==c||X!==N||mt.current||Zn?(typeof Y=="function"&&(xu(o,l,Y,c),N=o.memoizedState),(E=Zn||Sd(o,l,E,c,X,N,H))?(Z||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(o.flags|=4194308)):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=N),w.props=c,w.state=N,w.context=H,c=E):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{w=o.stateNode,Zh(r,o),E=o.memoizedProps,H=o.type===o.elementType?E:Kt(o.type,E),w.props=H,Z=o.pendingProps,X=w.context,N=l.contextType,typeof N=="object"&&N!==null?N=Dt(N):(N=vt(l)?Sr:it.current,N=ui(o,N));var le=l.getDerivedStateFromProps;(Y=typeof le=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(E!==Z||X!==N)&&bd(o,w,c,N),Zn=!1,X=o.memoizedState,w.state=X,Qs(o,c,w,d);var fe=o.memoizedState;E!==Z||X!==fe||mt.current||Zn?(typeof le=="function"&&(xu(o,l,le,c),fe=o.memoizedState),(H=Zn||Sd(o,l,H,c,X,fe,N)||!1)?(Y||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(c,fe,N),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(c,fe,N)),typeof w.componentDidUpdate=="function"&&(o.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof w.componentDidUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=fe),w.props=c,w.state=fe,w.context=N,c=H):(typeof w.componentDidUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=1024),c=!1)}return bu(r,o,l,c,m,d)}function bu(r,o,l,c,d,m){jd(r,o);var w=(o.flags&128)!==0;if(!c&&!w)return d&&Uh(o,l,!1),En(r,o,m);c=o.stateNode,tv.current=o;var E=w&&typeof l.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,r!==null&&w?(o.child=di(o,r.child,null,m),o.child=di(o,null,E,m)):ct(r,o,E,m),o.memoizedState=c.state,d&&Uh(o,l,!0),o.child}function Id(r){var o=r.stateNode;o.pendingContext?Lh(r,o.pendingContext,o.pendingContext!==o.context):o.context&&Lh(r,o.context,!1),au(r,o.containerInfo)}function Fd(r,o,l,c,d){return hi(),tu(d),o.flags|=256,ct(r,o,l,c),o.child}var Eu={dehydrated:null,treeContext:null,retryLane:0};function Pu(r){return{baseLanes:r,cachePool:null,transitions:null}}function Ld(r,o,l){var c=o.pendingProps,d=He.current,m=!1,w=(o.flags&128)!==0,E;if((E=w)||(E=r!==null&&r.memoizedState===null?!1:(d&2)!==0),E?(m=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(d|=1),je(He,d&1),r===null)return eu(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((o.mode&1)===0?o.lanes=1:r.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(w=c.children,r=c.fallback,m?(c=o.mode,m=o.child,w={mode:"hidden",children:w},(c&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=w):m=dl(w,c,0,null),r=Ar(r,c,l,null),m.return=o,r.return=o,m.sibling=r,o.child=m,o.child.memoizedState=Pu(l),o.memoizedState=Eu,r):Tu(o,w));if(d=r.memoizedState,d!==null&&(E=d.dehydrated,E!==null))return nv(r,o,w,c,E,d,l);if(m){m=c.fallback,w=o.mode,d=r.child,E=d.sibling;var N={mode:"hidden",children:c.children};return(w&1)===0&&o.child!==d?(c=o.child,c.childLanes=0,c.pendingProps=N,o.deletions=null):(c=or(d,N),c.subtreeFlags=d.subtreeFlags&14680064),E!==null?m=or(E,m):(m=Ar(m,w,l,null),m.flags|=2),m.return=o,c.return=o,c.sibling=m,o.child=c,c=m,m=o.child,w=r.child.memoizedState,w=w===null?Pu(l):{baseLanes:w.baseLanes|l,cachePool:null,transitions:w.transitions},m.memoizedState=w,m.childLanes=r.childLanes&~l,o.memoizedState=Eu,c}return m=r.child,r=m.sibling,c=or(m,{mode:"visible",children:c.children}),(o.mode&1)===0&&(c.lanes=l),c.return=o,c.sibling=null,r!==null&&(l=o.deletions,l===null?(o.deletions=[r],o.flags|=16):l.push(r)),o.child=c,o.memoizedState=null,c}function Tu(r,o){return o=dl({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function el(r,o,l,c){return c!==null&&tu(c),di(o,r.child,null,l),r=Tu(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function nv(r,o,l,c,d,m,w){if(l)return o.flags&256?(o.flags&=-257,c=ku(Error(i(422))),el(r,o,w,c)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(m=c.fallback,d=o.mode,c=dl({mode:"visible",children:c.children},d,0,null),m=Ar(m,d,w,null),m.flags|=2,c.return=o,m.return=o,c.sibling=m,o.child=c,(o.mode&1)!==0&&di(o,r.child,null,w),o.child.memoizedState=Pu(w),o.memoizedState=Eu,m);if((o.mode&1)===0)return el(r,o,w,null);if(d.data==="$!"){if(c=d.nextSibling&&d.nextSibling.dataset,c)var E=c.dgst;return c=E,m=Error(i(419)),c=ku(m,c,void 0),el(r,o,w,c)}if(E=(w&r.childLanes)!==0,_t||E){if(c=Je,c!==null){switch(w&-w){case 4:d=2;break;case 16:d=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:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(c.suspendedLanes|w))!==0?0:d,d!==0&&d!==m.retryLane&&(m.retryLane=d,Cn(r,d),Yt(c,r,d,-1))}return qu(),c=ku(Error(i(421))),el(r,o,w,c)}return d.data==="$?"?(o.flags|=128,o.child=r.child,o=gv.bind(null,r),d._reactRetry=o,null):(r=m.treeContext,Ot=Kn(d.nextSibling),Mt=o,Le=!0,Wt=null,r!==null&&(zt[jt++]=kn,zt[jt++]=Sn,zt[jt++]=Cr,kn=r.id,Sn=r.overflow,Cr=o),o=Tu(o,c.children),o.flags|=4096,o)}function $d(r,o,l){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o),ou(r.return,o,l)}function Mu(r,o,l,c,d){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:d}:(m.isBackwards=o,m.rendering=null,m.renderingStartTime=0,m.last=c,m.tail=l,m.tailMode=d)}function Ud(r,o,l){var c=o.pendingProps,d=c.revealOrder,m=c.tail;if(ct(r,o,c.children,l),c=He.current,(c&2)!==0)c=c&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&$d(r,l,o);else if(r.tag===19)$d(r,l,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(je(He,c),(o.mode&1)===0)o.memoizedState=null;else switch(d){case"forwards":for(l=o.child,d=null;l!==null;)r=l.alternate,r!==null&&Ws(r)===null&&(d=l),l=l.sibling;l=d,l===null?(d=o.child,o.child=null):(d=l.sibling,l.sibling=null),Mu(o,!1,d,l,m);break;case"backwards":for(l=null,d=o.child,o.child=null;d!==null;){if(r=d.alternate,r!==null&&Ws(r)===null){o.child=d;break}r=d.sibling,d.sibling=l,l=d,d=r}Mu(o,!0,l,null,m);break;case"together":Mu(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function tl(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function En(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),Mr|=o.lanes,(l&o.childLanes)===0)return null;if(r!==null&&o.child!==r.child)throw Error(i(153));if(o.child!==null){for(r=o.child,l=or(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=or(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function rv(r,o,l){switch(o.tag){case 3:Id(o),hi();break;case 5:td(o);break;case 1:vt(o.type)&&Is(o);break;case 4:au(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,d=o.memoizedProps.value;je(Vs,c._currentValue),c._currentValue=d;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(je(He,He.current&1),o.flags|=128,null):(l&o.child.childLanes)!==0?Ld(r,o,l):(je(He,He.current&1),r=En(r,o,l),r!==null?r.sibling:null);je(He,He.current&1);break;case 19:if(c=(l&o.childLanes)!==0,(r.flags&128)!==0){if(c)return Ud(r,o,l);o.flags|=128}if(d=o.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),je(He,He.current),c)break;return null;case 22:case 23:return o.lanes=0,zd(r,o,l)}return En(r,o,l)}var Hd,Ou,Vd,qd;Hd=function(r,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Ou=function(){},Vd=function(r,o,l,c){var d=r.memoizedProps;if(d!==c){r=o.stateNode,Pr(an.current);var m=null;switch(l){case"input":d=oa(r,d),c=oa(r,c),m=[];break;case"select":d=B({},d,{value:void 0}),c=B({},c,{value:void 0}),m=[];break;case"textarea":d=aa(r,d),c=aa(r,c),m=[];break;default:typeof d.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=zs)}ca(l,c);var w;l=null;for(H in d)if(!c.hasOwnProperty(H)&&d.hasOwnProperty(H)&&d[H]!=null)if(H==="style"){var E=d[H];for(w in E)E.hasOwnProperty(w)&&(l||(l={}),l[w]="")}else H!=="dangerouslySetInnerHTML"&&H!=="children"&&H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&H!=="autoFocus"&&(a.hasOwnProperty(H)?m||(m=[]):(m=m||[]).push(H,null));for(H in c){var N=c[H];if(E=d!=null?d[H]:void 0,c.hasOwnProperty(H)&&N!==E&&(N!=null||E!=null))if(H==="style")if(E){for(w in E)!E.hasOwnProperty(w)||N&&N.hasOwnProperty(w)||(l||(l={}),l[w]="");for(w in N)N.hasOwnProperty(w)&&E[w]!==N[w]&&(l||(l={}),l[w]=N[w])}else l||(m||(m=[]),m.push(H,l)),l=N;else H==="dangerouslySetInnerHTML"?(N=N?N.__html:void 0,E=E?E.__html:void 0,N!=null&&E!==N&&(m=m||[]).push(H,N)):H==="children"?typeof N!="string"&&typeof N!="number"||(m=m||[]).push(H,""+N):H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&(a.hasOwnProperty(H)?(N!=null&&H==="onScroll"&&De("scroll",r),m||E===N||(m=[])):(m=m||[]).push(H,N))}l&&(m=m||[]).push("style",l);var H=m;(o.updateQueue=H)&&(o.flags|=4)}},qd=function(r,o,l,c){l!==c&&(o.flags|=4)};function Co(r,o){if(!Le)switch(r.tailMode){case"hidden":o=r.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function st(r){var o=r.alternate!==null&&r.alternate.child===r.child,l=0,c=0;if(o)for(var d=r.child;d!==null;)l|=d.lanes|d.childLanes,c|=d.subtreeFlags&14680064,c|=d.flags&14680064,d.return=r,d=d.sibling;else for(d=r.child;d!==null;)l|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=r,d=d.sibling;return r.subtreeFlags|=c,r.childLanes=l,o}function iv(r,o,l){var c=o.pendingProps;switch(Za(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(o),null;case 1:return vt(o.type)&&Ds(),st(o),null;case 3:return c=o.stateNode,yi(),Ie(mt),Ie(it),fu(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(Us(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Wt!==null&&(Uu(Wt),Wt=null))),Ou(r,o),st(o),null;case 5:uu(o);var d=Pr(_o.current);if(l=o.type,r!==null&&o.stateNode!=null)Vd(r,o,l,c,d),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!c){if(o.stateNode===null)throw Error(i(166));return st(o),null}if(r=Pr(an.current),Us(o)){c=o.stateNode,l=o.type;var m=o.memoizedProps;switch(c[ln]=o,c[po]=m,r=(o.mode&1)!==0,l){case"dialog":De("cancel",c),De("close",c);break;case"iframe":case"object":case"embed":De("load",c);break;case"video":case"audio":for(d=0;d<co.length;d++)De(co[d],c);break;case"source":De("error",c);break;case"img":case"image":case"link":De("error",c),De("load",c);break;case"details":De("toggle",c);break;case"input":Cf(c,m),De("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!m.multiple},De("invalid",c);break;case"textarea":Pf(c,m),De("invalid",c)}ca(l,m),d=null;for(var w in m)if(m.hasOwnProperty(w)){var E=m[w];w==="children"?typeof E=="string"?c.textContent!==E&&(m.suppressHydrationWarning!==!0&&As(c.textContent,E,r),d=["children",E]):typeof E=="number"&&c.textContent!==""+E&&(m.suppressHydrationWarning!==!0&&As(c.textContent,E,r),d=["children",""+E]):a.hasOwnProperty(w)&&E!=null&&w==="onScroll"&&De("scroll",c)}switch(l){case"input":cs(c),Ef(c,m,!0);break;case"textarea":cs(c),Mf(c);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(c.onclick=zs)}c=d,o.updateQueue=c,c!==null&&(o.flags|=4)}else{w=d.nodeType===9?d:d.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Of(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=w.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=w.createElement(l,{is:c.is}):(r=w.createElement(l),l==="select"&&(w=r,c.multiple?w.multiple=!0:c.size&&(w.size=c.size))):r=w.createElementNS(r,l),r[ln]=o,r[po]=c,Hd(r,o,!1,!1),o.stateNode=r;e:{switch(w=fa(l,c),l){case"dialog":De("cancel",r),De("close",r),d=c;break;case"iframe":case"object":case"embed":De("load",r),d=c;break;case"video":case"audio":for(d=0;d<co.length;d++)De(co[d],r);d=c;break;case"source":De("error",r),d=c;break;case"img":case"image":case"link":De("error",r),De("load",r),d=c;break;case"details":De("toggle",r),d=c;break;case"input":Cf(r,c),d=oa(r,c),De("invalid",r);break;case"option":d=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},d=B({},c,{value:void 0}),De("invalid",r);break;case"textarea":Pf(r,c),d=aa(r,c),De("invalid",r);break;default:d=c}ca(l,d),E=d;for(m in E)if(E.hasOwnProperty(m)){var N=E[m];m==="style"?Af(r,N):m==="dangerouslySetInnerHTML"?(N=N?N.__html:void 0,N!=null&&Nf(r,N)):m==="children"?typeof N=="string"?(l!=="textarea"||N!=="")&&Bi(r,N):typeof N=="number"&&Bi(r,""+N):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(a.hasOwnProperty(m)?N!=null&&m==="onScroll"&&De("scroll",r):N!=null&&A(r,m,N,w))}switch(l){case"input":cs(r),Ef(r,c,!1);break;case"textarea":cs(r),Mf(r);break;case"option":c.value!=null&&r.setAttribute("value",""+Se(c.value));break;case"select":r.multiple=!!c.multiple,m=c.value,m!=null?Yr(r,!!c.multiple,m,!1):c.defaultValue!=null&&Yr(r,!!c.multiple,c.defaultValue,!0);break;default:typeof d.onClick=="function"&&(r.onclick=zs)}switch(l){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return st(o),null;case 6:if(r&&o.stateNode!=null)qd(r,o,r.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(i(166));if(l=Pr(_o.current),Pr(an.current),Us(o)){if(c=o.stateNode,l=o.memoizedProps,c[ln]=o,(m=c.nodeValue!==l)&&(r=Mt,r!==null))switch(r.tag){case 3:As(c.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&As(c.nodeValue,l,(r.mode&1)!==0)}m&&(o.flags|=4)}else c=(l.nodeType===9?l:l.ownerDocument).createTextNode(c),c[ln]=o,o.stateNode=c}return st(o),null;case 13:if(Ie(He),c=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Le&&Ot!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Wh(),hi(),o.flags|=98560,m=!1;else if(m=Us(o),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(i(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[ln]=o}else hi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;st(o),m=!1}else Wt!==null&&(Uu(Wt),Wt=null),m=!0;if(!m)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=l,o):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(o.child.flags|=8192,(o.mode&1)!==0&&(r===null||(He.current&1)!==0?Xe===0&&(Xe=3):qu())),o.updateQueue!==null&&(o.flags|=4),st(o),null);case 4:return yi(),Ou(r,o),r===null&&fo(o.stateNode.containerInfo),st(o),null;case 10:return iu(o.type._context),st(o),null;case 17:return vt(o.type)&&Ds(),st(o),null;case 19:if(Ie(He),m=o.memoizedState,m===null)return st(o),null;if(c=(o.flags&128)!==0,w=m.rendering,w===null)if(c)Co(m,!1);else{if(Xe!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(w=Ws(r),w!==null){for(o.flags|=128,Co(m,!1),c=w.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),o.subtreeFlags=0,c=l,l=o.child;l!==null;)m=l,r=c,m.flags&=14680066,w=m.alternate,w===null?(m.childLanes=0,m.lanes=r,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=w.childLanes,m.lanes=w.lanes,m.child=w.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=w.memoizedProps,m.memoizedState=w.memoizedState,m.updateQueue=w.updateQueue,m.type=w.type,r=w.dependencies,m.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return je(He,He.current&1|2),o.child}r=r.sibling}m.tail!==null&&Qe()>xi&&(o.flags|=128,c=!0,Co(m,!1),o.lanes=4194304)}else{if(!c)if(r=Ws(w),r!==null){if(o.flags|=128,c=!0,l=r.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),Co(m,!0),m.tail===null&&m.tailMode==="hidden"&&!w.alternate&&!Le)return st(o),null}else 2*Qe()-m.renderingStartTime>xi&&l!==1073741824&&(o.flags|=128,c=!0,Co(m,!1),o.lanes=4194304);m.isBackwards?(w.sibling=o.child,o.child=w):(l=m.last,l!==null?l.sibling=w:o.child=w,m.last=w)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=Qe(),o.sibling=null,l=He.current,je(He,c?l&1|2:l&1),o):(st(o),null);case 22:case 23:return Vu(),c=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?(Nt&1073741824)!==0&&(st(o),o.subtreeFlags&6&&(o.flags|=8192)):st(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function ov(r,o){switch(Za(o),o.tag){case 1:return vt(o.type)&&Ds(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return yi(),Ie(mt),Ie(it),fu(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return uu(o),null;case 13:if(Ie(He),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(i(340));hi()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return Ie(He),null;case 4:return yi(),null;case 10:return iu(o.type._context),null;case 22:case 23:return Vu(),null;case 24:return null;default:return null}}var nl=!1,lt=!1,sv=typeof WeakSet=="function"?WeakSet:Set,ce=null;function vi(r,o){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(c){qe(r,o,c)}else l.current=null}function Nu(r,o,l){try{l()}catch(c){qe(r,o,c)}}var Bd=!1;function lv(r,o){if(Va=ks,r=Sh(),ja(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var d=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var w=0,E=-1,N=-1,H=0,Y=0,Z=r,X=null;t:for(;;){for(var le;Z!==l||d!==0&&Z.nodeType!==3||(E=w+d),Z!==m||c!==0&&Z.nodeType!==3||(N=w+c),Z.nodeType===3&&(w+=Z.nodeValue.length),(le=Z.firstChild)!==null;)X=Z,Z=le;for(;;){if(Z===r)break t;if(X===l&&++H===d&&(E=w),X===m&&++Y===c&&(N=w),(le=Z.nextSibling)!==null)break;Z=X,X=Z.parentNode}Z=le}l=E===-1||N===-1?null:{start:E,end:N}}else l=null}l=l||{start:0,end:0}}else l=null;for(qa={focusedElem:r,selectionRange:l},ks=!1,ce=o;ce!==null;)if(o=ce,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,ce=r;else for(;ce!==null;){o=ce;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,We=fe.memoizedState,$=o.stateNode,z=$.getSnapshotBeforeUpdate(o.elementType===o.type?de:Kt(o.type,de),We);$.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var U=o.stateNode.containerInfo;U.nodeType===1?U.textContent="":U.nodeType===9&&U.documentElement&&U.removeChild(U.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ne){qe(o,o.return,ne)}if(r=o.sibling,r!==null){r.return=o.return,ce=r;break}ce=o.return}return fe=Bd,Bd=!1,fe}function bo(r,o,l){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var d=c=c.next;do{if((d.tag&r)===r){var m=d.destroy;d.destroy=void 0,m!==void 0&&Nu(o,l,m)}d=d.next}while(d!==c)}}function rl(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&r)===r){var c=l.create;l.destroy=c()}l=l.next}while(l!==o)}}function Ru(r){var o=r.ref;if(o!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof o=="function"?o(r):o.current=r}}function Qd(r){var o=r.alternate;o!==null&&(r.alternate=null,Qd(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[ln],delete o[po],delete o[Ka],delete o[Vm],delete o[qm])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Wd(r){return r.tag===5||r.tag===3||r.tag===4}function Kd(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Wd(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Au(r,o,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(r,o):l.insertBefore(r,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(r,l)):(o=l,o.appendChild(r)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=zs));else if(c!==4&&(r=r.child,r!==null))for(Au(r,o,l),r=r.sibling;r!==null;)Au(r,o,l),r=r.sibling}function zu(r,o,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,o?l.insertBefore(r,o):l.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(zu(r,o,l),r=r.sibling;r!==null;)zu(r,o,l),r=r.sibling}var tt=null,Gt=!1;function er(r,o,l){for(l=l.child;l!==null;)Gd(r,o,l),l=l.sibling}function Gd(r,o,l){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(ys,l)}catch{}switch(l.tag){case 5:lt||vi(l,o);case 6:var c=tt,d=Gt;tt=null,er(r,o,l),tt=c,Gt=d,tt!==null&&(Gt?(r=tt,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):tt.removeChild(l.stateNode));break;case 18:tt!==null&&(Gt?(r=tt,l=l.stateNode,r.nodeType===8?Wa(r.parentNode,l):r.nodeType===1&&Wa(r,l),no(r)):Wa(tt,l.stateNode));break;case 4:c=tt,d=Gt,tt=l.stateNode.containerInfo,Gt=!0,er(r,o,l),tt=c,Gt=d;break;case 0:case 11:case 14:case 15:if(!lt&&(c=l.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){d=c=c.next;do{var m=d,w=m.destroy;m=m.tag,w!==void 0&&((m&2)!==0||(m&4)!==0)&&Nu(l,o,w),d=d.next}while(d!==c)}er(r,o,l);break;case 1:if(!lt&&(vi(l,o),c=l.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=l.memoizedProps,c.state=l.memoizedState,c.componentWillUnmount()}catch(E){qe(l,o,E)}er(r,o,l);break;case 21:er(r,o,l);break;case 22:l.mode&1?(lt=(c=lt)||l.memoizedState!==null,er(r,o,l),lt=c):er(r,o,l);break;default:er(r,o,l)}}function Xd(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new sv),o.forEach(function(c){var d=yv.bind(null,r,c);l.has(c)||(l.add(c),c.then(d,d))})}}function Xt(r,o){var l=o.deletions;if(l!==null)for(var c=0;c<l.length;c++){var d=l[c];try{var m=r,w=o,E=w;e:for(;E!==null;){switch(E.tag){case 5:tt=E.stateNode,Gt=!1;break e;case 3:tt=E.stateNode.containerInfo,Gt=!0;break e;case 4:tt=E.stateNode.containerInfo,Gt=!0;break e}E=E.return}if(tt===null)throw Error(i(160));Gd(m,w,d),tt=null,Gt=!1;var N=d.alternate;N!==null&&(N.return=null),d.return=null}catch(H){qe(d,o,H)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Yd(o,r),o=o.sibling}function Yd(r,o){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Xt(o,r),cn(r),c&4){try{bo(3,r,r.return),rl(3,r)}catch(de){qe(r,r.return,de)}try{bo(5,r,r.return)}catch(de){qe(r,r.return,de)}}break;case 1:Xt(o,r),cn(r),c&512&&l!==null&&vi(l,l.return);break;case 5:if(Xt(o,r),cn(r),c&512&&l!==null&&vi(l,l.return),r.flags&32){var d=r.stateNode;try{Bi(d,"")}catch(de){qe(r,r.return,de)}}if(c&4&&(d=r.stateNode,d!=null)){var m=r.memoizedProps,w=l!==null?l.memoizedProps:m,E=r.type,N=r.updateQueue;if(r.updateQueue=null,N!==null)try{E==="input"&&m.type==="radio"&&m.name!=null&&bf(d,m),fa(E,w);var H=fa(E,m);for(w=0;w<N.length;w+=2){var Y=N[w],Z=N[w+1];Y==="style"?Af(d,Z):Y==="dangerouslySetInnerHTML"?Nf(d,Z):Y==="children"?Bi(d,Z):A(d,Y,Z,H)}switch(E){case"input":sa(d,m);break;case"textarea":Tf(d,m);break;case"select":var X=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!m.multiple;var le=m.value;le!=null?Yr(d,!!m.multiple,le,!1):X!==!!m.multiple&&(m.defaultValue!=null?Yr(d,!!m.multiple,m.defaultValue,!0):Yr(d,!!m.multiple,m.multiple?[]:"",!1))}d[po]=m}catch(de){qe(r,r.return,de)}}break;case 6:if(Xt(o,r),cn(r),c&4){if(r.stateNode===null)throw Error(i(162));d=r.stateNode,m=r.memoizedProps;try{d.nodeValue=m}catch(de){qe(r,r.return,de)}}break;case 3:if(Xt(o,r),cn(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{no(o.containerInfo)}catch(de){qe(r,r.return,de)}break;case 4:Xt(o,r),cn(r);break;case 13:Xt(o,r),cn(r),d=r.child,d.flags&8192&&(m=d.memoizedState!==null,d.stateNode.isHidden=m,!m||d.alternate!==null&&d.alternate.memoizedState!==null||(Iu=Qe())),c&4&&Xd(r);break;case 22:if(Y=l!==null&&l.memoizedState!==null,r.mode&1?(lt=(H=lt)||Y,Xt(o,r),lt=H):Xt(o,r),cn(r),c&8192){if(H=r.memoizedState!==null,(r.stateNode.isHidden=H)&&!Y&&(r.mode&1)!==0)for(ce=r,Y=r.child;Y!==null;){for(Z=ce=Y;ce!==null;){switch(X=ce,le=X.child,X.tag){case 0:case 11:case 14:case 15:bo(4,X,X.return);break;case 1:vi(X,X.return);var fe=X.stateNode;if(typeof fe.componentWillUnmount=="function"){c=X,l=X.return;try{o=c,fe.props=o.memoizedProps,fe.state=o.memoizedState,fe.componentWillUnmount()}catch(de){qe(c,l,de)}}break;case 5:vi(X,X.return);break;case 22:if(X.memoizedState!==null){ep(Z);continue}}le!==null?(le.return=X,ce=le):ep(Z)}Y=Y.sibling}e:for(Y=null,Z=r;;){if(Z.tag===5){if(Y===null){Y=Z;try{d=Z.stateNode,H?(m=d.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(E=Z.stateNode,N=Z.memoizedProps.style,w=N!=null&&N.hasOwnProperty("display")?N.display:null,E.style.display=Rf("display",w))}catch(de){qe(r,r.return,de)}}}else if(Z.tag===6){if(Y===null)try{Z.stateNode.nodeValue=H?"":Z.memoizedProps}catch(de){qe(r,r.return,de)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===r)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===r)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===r)break e;Y===Z&&(Y=null),Z=Z.return}Y===Z&&(Y=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:Xt(o,r),cn(r),c&4&&Xd(r);break;case 21:break;default:Xt(o,r),cn(r)}}function cn(r){var o=r.flags;if(o&2){try{e:{for(var l=r.return;l!==null;){if(Wd(l)){var c=l;break e}l=l.return}throw Error(i(160))}switch(c.tag){case 5:var d=c.stateNode;c.flags&32&&(Bi(d,""),c.flags&=-33);var m=Kd(r);zu(r,m,d);break;case 3:case 4:var w=c.stateNode.containerInfo,E=Kd(r);Au(r,E,w);break;default:throw Error(i(161))}}catch(N){qe(r,r.return,N)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function av(r,o,l){ce=r,Zd(r)}function Zd(r,o,l){for(var c=(r.mode&1)!==0;ce!==null;){var d=ce,m=d.child;if(d.tag===22&&c){var w=d.memoizedState!==null||nl;if(!w){var E=d.alternate,N=E!==null&&E.memoizedState!==null||lt;E=nl;var H=lt;if(nl=w,(lt=N)&&!H)for(ce=d;ce!==null;)w=ce,N=w.child,w.tag===22&&w.memoizedState!==null?tp(d):N!==null?(N.return=w,ce=N):tp(d);for(;m!==null;)ce=m,Zd(m),m=m.sibling;ce=d,nl=E,lt=H}Jd(r)}else(d.subtreeFlags&8772)!==0&&m!==null?(m.return=d,ce=m):Jd(r)}}function Jd(r){for(;ce!==null;){var o=ce;if((o.flags&8772)!==0){var l=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:lt||rl(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!lt)if(l===null)c.componentDidMount();else{var d=o.elementType===o.type?l.memoizedProps:Kt(o.type,l.memoizedProps);c.componentDidUpdate(d,l.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var m=o.updateQueue;m!==null&&ed(o,m,c);break;case 3:var w=o.updateQueue;if(w!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}ed(o,w,l)}break;case 5:var E=o.stateNode;if(l===null&&o.flags&4){l=E;var N=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":N.autoFocus&&l.focus();break;case"img":N.src&&(l.src=N.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var H=o.alternate;if(H!==null){var Y=H.memoizedState;if(Y!==null){var Z=Y.dehydrated;Z!==null&&no(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}lt||o.flags&512&&Ru(o)}catch(X){qe(o,o.return,X)}}if(o===r){ce=null;break}if(l=o.sibling,l!==null){l.return=o.return,ce=l;break}ce=o.return}}function ep(r){for(;ce!==null;){var o=ce;if(o===r){ce=null;break}var l=o.sibling;if(l!==null){l.return=o.return,ce=l;break}ce=o.return}}function tp(r){for(;ce!==null;){var o=ce;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{rl(4,o)}catch(N){qe(o,l,N)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var d=o.return;try{c.componentDidMount()}catch(N){qe(o,d,N)}}var m=o.return;try{Ru(o)}catch(N){qe(o,m,N)}break;case 5:var w=o.return;try{Ru(o)}catch(N){qe(o,w,N)}}}catch(N){qe(o,o.return,N)}if(o===r){ce=null;break}var E=o.sibling;if(E!==null){E.return=o.return,ce=E;break}ce=o.return}}var uv=Math.ceil,il=P.ReactCurrentDispatcher,ju=P.ReactCurrentOwner,Ft=P.ReactCurrentBatchConfig,Te=0,Je=null,Ke=null,nt=0,Nt=0,_i=Gn(0),Xe=0,Eo=null,Mr=0,ol=0,Du=0,Po=null,xt=null,Iu=0,xi=1/0,Pn=null,sl=!1,Fu=null,tr=null,ll=!1,nr=null,al=0,To=0,Lu=null,ul=-1,cl=0;function ft(){return(Te&6)!==0?Qe():ul!==-1?ul:ul=Qe()}function rr(r){return(r.mode&1)===0?1:(Te&2)!==0&&nt!==0?nt&-nt:Qm.transition!==null?(cl===0&&(cl=Kf()),cl):(r=Ne,r!==0||(r=window.event,r=r===void 0?16:rh(r.type)),r)}function Yt(r,o,l,c){if(50<To)throw To=0,Lu=null,Error(i(185));Yi(r,l,c),((Te&2)===0||r!==Je)&&(r===Je&&((Te&2)===0&&(ol|=l),Xe===4&&ir(r,nt)),wt(r,c),l===1&&Te===0&&(o.mode&1)===0&&(xi=Qe()+500,Fs&&Yn()))}function wt(r,o){var l=r.callbackNode;Qy(r,o);var c=_s(r,r===Je?nt:0);if(c===0)l!==null&&Bf(l),r.callbackNode=null,r.callbackPriority=0;else if(o=c&-c,r.callbackPriority!==o){if(l!=null&&Bf(l),o===1)r.tag===0?Bm(rp.bind(null,r)):Hh(rp.bind(null,r)),Um(function(){(Te&6)===0&&Yn()}),l=null;else{switch(Gf(c)){case 1:l=va;break;case 4:l=Qf;break;case 16:l=gs;break;case 536870912:l=Wf;break;default:l=gs}l=fp(l,np.bind(null,r))}r.callbackPriority=o,r.callbackNode=l}}function np(r,o){if(ul=-1,cl=0,(Te&6)!==0)throw Error(i(327));var l=r.callbackNode;if(wi()&&r.callbackNode!==l)return null;var c=_s(r,r===Je?nt:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||o)o=fl(r,c);else{o=c;var d=Te;Te|=2;var m=op();(Je!==r||nt!==o)&&(Pn=null,xi=Qe()+500,Nr(r,o));do try{hv();break}catch(E){ip(r,E)}while(!0);ru(),il.current=m,Te=d,Ke!==null?o=0:(Je=null,nt=0,o=Xe)}if(o!==0){if(o===2&&(d=_a(r),d!==0&&(c=d,o=$u(r,d))),o===1)throw l=Eo,Nr(r,0),ir(r,c),wt(r,Qe()),l;if(o===6)ir(r,c);else{if(d=r.current.alternate,(c&30)===0&&!cv(d)&&(o=fl(r,c),o===2&&(m=_a(r),m!==0&&(c=m,o=$u(r,m))),o===1))throw l=Eo,Nr(r,0),ir(r,c),wt(r,Qe()),l;switch(r.finishedWork=d,r.finishedLanes=c,o){case 0:case 1:throw Error(i(345));case 2:Rr(r,xt,Pn);break;case 3:if(ir(r,c),(c&130023424)===c&&(o=Iu+500-Qe(),10<o)){if(_s(r,0)!==0)break;if(d=r.suspendedLanes,(d&c)!==c){ft(),r.pingedLanes|=r.suspendedLanes&d;break}r.timeoutHandle=Qa(Rr.bind(null,r,xt,Pn),o);break}Rr(r,xt,Pn);break;case 4:if(ir(r,c),(c&4194240)===c)break;for(o=r.eventTimes,d=-1;0<c;){var w=31-Bt(c);m=1<<w,w=o[w],w>d&&(d=w),c&=~m}if(c=d,c=Qe()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*uv(c/1960))-c,10<c){r.timeoutHandle=Qa(Rr.bind(null,r,xt,Pn),c);break}Rr(r,xt,Pn);break;case 5:Rr(r,xt,Pn);break;default:throw Error(i(329))}}}return wt(r,Qe()),r.callbackNode===l?np.bind(null,r):null}function $u(r,o){var l=Po;return r.current.memoizedState.isDehydrated&&(Nr(r,o).flags|=256),r=fl(r,o),r!==2&&(o=xt,xt=l,o!==null&&Uu(o)),r}function Uu(r){xt===null?xt=r:xt.push.apply(xt,r)}function cv(r){for(var o=r;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var c=0;c<l.length;c++){var d=l[c],m=d.getSnapshot;d=d.value;try{if(!Qt(m(),d))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ir(r,o){for(o&=~Du,o&=~ol,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var l=31-Bt(o),c=1<<l;r[l]=-1,o&=~c}}function rp(r){if((Te&6)!==0)throw Error(i(327));wi();var o=_s(r,0);if((o&1)===0)return wt(r,Qe()),null;var l=fl(r,o);if(r.tag!==0&&l===2){var c=_a(r);c!==0&&(o=c,l=$u(r,c))}if(l===1)throw l=Eo,Nr(r,0),ir(r,o),wt(r,Qe()),l;if(l===6)throw Error(i(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,Rr(r,xt,Pn),wt(r,Qe()),null}function Hu(r,o){var l=Te;Te|=1;try{return r(o)}finally{Te=l,Te===0&&(xi=Qe()+500,Fs&&Yn())}}function Or(r){nr!==null&&nr.tag===0&&(Te&6)===0&&wi();var o=Te;Te|=1;var l=Ft.transition,c=Ne;try{if(Ft.transition=null,Ne=1,r)return r()}finally{Ne=c,Ft.transition=l,Te=o,(Te&6)===0&&Yn()}}function Vu(){Nt=_i.current,Ie(_i)}function Nr(r,o){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,$m(l)),Ke!==null)for(l=Ke.return;l!==null;){var c=l;switch(Za(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ds();break;case 3:yi(),Ie(mt),Ie(it),fu();break;case 5:uu(c);break;case 4:yi();break;case 13:Ie(He);break;case 19:Ie(He);break;case 10:iu(c.type._context);break;case 22:case 23:Vu()}l=l.return}if(Je=r,Ke=r=or(r.current,null),nt=Nt=o,Xe=0,Eo=null,Du=ol=Mr=0,xt=Po=null,Er!==null){for(o=0;o<Er.length;o++)if(l=Er[o],c=l.interleaved,c!==null){l.interleaved=null;var d=c.next,m=l.pending;if(m!==null){var w=m.next;m.next=d,c.next=w}l.pending=c}Er=null}return r}function ip(r,o){do{var l=Ke;try{if(ru(),Ks.current=Zs,Gs){for(var c=Ve.memoizedState;c!==null;){var d=c.queue;d!==null&&(d.pending=null),c=c.next}Gs=!1}if(Tr=0,Ze=Ge=Ve=null,xo=!1,wo=0,ju.current=null,l===null||l.return===null){Xe=1,Eo=o,Ke=null;break}e:{var m=r,w=l.return,E=l,N=o;if(o=nt,E.flags|=32768,N!==null&&typeof N=="object"&&typeof N.then=="function"){var H=N,Y=E,Z=Y.tag;if((Y.mode&1)===0&&(Z===0||Z===11||Z===15)){var X=Y.alternate;X?(Y.updateQueue=X.updateQueue,Y.memoizedState=X.memoizedState,Y.lanes=X.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var le=Md(w);if(le!==null){le.flags&=-257,Od(le,w,E,m,o),le.mode&1&&Td(m,H,o),o=le,N=H;var fe=o.updateQueue;if(fe===null){var de=new Set;de.add(N),o.updateQueue=de}else fe.add(N);break e}else{if((o&1)===0){Td(m,H,o),qu();break e}N=Error(i(426))}}else if(Le&&E.mode&1){var We=Md(w);if(We!==null){(We.flags&65536)===0&&(We.flags|=256),Od(We,w,E,m,o),tu(mi(N,E));break e}}m=N=mi(N,E),Xe!==4&&(Xe=2),Po===null?Po=[m]:Po.push(m),m=w;do{switch(m.tag){case 3:m.flags|=65536,o&=-o,m.lanes|=o;var $=Ed(m,N,o);Jh(m,$);break e;case 1:E=N;var z=m.type,U=m.stateNode;if((m.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||U!==null&&typeof U.componentDidCatch=="function"&&(tr===null||!tr.has(U)))){m.flags|=65536,o&=-o,m.lanes|=o;var ne=Pd(m,E,o);Jh(m,ne);break e}}m=m.return}while(m!==null)}lp(l)}catch(pe){o=pe,Ke===l&&l!==null&&(Ke=l=l.return);continue}break}while(!0)}function op(){var r=il.current;return il.current=Zs,r===null?Zs:r}function qu(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),Je===null||(Mr&268435455)===0&&(ol&268435455)===0||ir(Je,nt)}function fl(r,o){var l=Te;Te|=2;var c=op();(Je!==r||nt!==o)&&(Pn=null,Nr(r,o));do try{fv();break}catch(d){ip(r,d)}while(!0);if(ru(),Te=l,il.current=c,Ke!==null)throw Error(i(261));return Je=null,nt=0,Xe}function fv(){for(;Ke!==null;)sp(Ke)}function hv(){for(;Ke!==null&&!Iy();)sp(Ke)}function sp(r){var o=cp(r.alternate,r,Nt);r.memoizedProps=r.pendingProps,o===null?lp(r):Ke=o,ju.current=null}function lp(r){var o=r;do{var l=o.alternate;if(r=o.return,(o.flags&32768)===0){if(l=iv(l,o,Nt),l!==null){Ke=l;return}}else{if(l=ov(l,o),l!==null){l.flags&=32767,Ke=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Xe=6,Ke=null;return}}if(o=o.sibling,o!==null){Ke=o;return}Ke=o=r}while(o!==null);Xe===0&&(Xe=5)}function Rr(r,o,l){var c=Ne,d=Ft.transition;try{Ft.transition=null,Ne=1,dv(r,o,l,c)}finally{Ft.transition=d,Ne=c}return null}function dv(r,o,l,c){do wi();while(nr!==null);if((Te&6)!==0)throw Error(i(327));l=r.finishedWork;var d=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(i(177));r.callbackNode=null,r.callbackPriority=0;var m=l.lanes|l.childLanes;if(Wy(r,m),r===Je&&(Ke=Je=null,nt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||ll||(ll=!0,fp(gs,function(){return wi(),null})),m=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||m){m=Ft.transition,Ft.transition=null;var w=Ne;Ne=1;var E=Te;Te|=4,ju.current=null,lv(r,l),Yd(l,r),Am(qa),ks=!!Va,qa=Va=null,r.current=l,av(l),Fy(),Te=E,Ne=w,Ft.transition=m}else r.current=l;if(ll&&(ll=!1,nr=r,al=d),m=r.pendingLanes,m===0&&(tr=null),Uy(l.stateNode),wt(r,Qe()),o!==null)for(c=r.onRecoverableError,l=0;l<o.length;l++)d=o[l],c(d.value,{componentStack:d.stack,digest:d.digest});if(sl)throw sl=!1,r=Fu,Fu=null,r;return(al&1)!==0&&r.tag!==0&&wi(),m=r.pendingLanes,(m&1)!==0?r===Lu?To++:(To=0,Lu=r):To=0,Yn(),null}function wi(){if(nr!==null){var r=Gf(al),o=Ft.transition,l=Ne;try{if(Ft.transition=null,Ne=16>r?16:r,nr===null)var c=!1;else{if(r=nr,nr=null,al=0,(Te&6)!==0)throw Error(i(331));var d=Te;for(Te|=4,ce=r.current;ce!==null;){var m=ce,w=m.child;if((ce.flags&16)!==0){var E=m.deletions;if(E!==null){for(var N=0;N<E.length;N++){var H=E[N];for(ce=H;ce!==null;){var Y=ce;switch(Y.tag){case 0:case 11:case 15:bo(8,Y,m)}var Z=Y.child;if(Z!==null)Z.return=Y,ce=Z;else for(;ce!==null;){Y=ce;var X=Y.sibling,le=Y.return;if(Qd(Y),Y===H){ce=null;break}if(X!==null){X.return=le,ce=X;break}ce=le}}}var fe=m.alternate;if(fe!==null){var de=fe.child;if(de!==null){fe.child=null;do{var We=de.sibling;de.sibling=null,de=We}while(de!==null)}}ce=m}}if((m.subtreeFlags&2064)!==0&&w!==null)w.return=m,ce=w;else e:for(;ce!==null;){if(m=ce,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:bo(9,m,m.return)}var $=m.sibling;if($!==null){$.return=m.return,ce=$;break e}ce=m.return}}var z=r.current;for(ce=z;ce!==null;){w=ce;var U=w.child;if((w.subtreeFlags&2064)!==0&&U!==null)U.return=w,ce=U;else e:for(w=z;ce!==null;){if(E=ce,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:rl(9,E)}}catch(pe){qe(E,E.return,pe)}if(E===w){ce=null;break e}var ne=E.sibling;if(ne!==null){ne.return=E.return,ce=ne;break e}ce=E.return}}if(Te=d,Yn(),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(ys,r)}catch{}c=!0}return c}finally{Ne=l,Ft.transition=o}}return!1}function ap(r,o,l){o=mi(l,o),o=Ed(r,o,1),r=Jn(r,o,1),o=ft(),r!==null&&(Yi(r,1,o),wt(r,o))}function qe(r,o,l){if(r.tag===3)ap(r,r,l);else for(;o!==null;){if(o.tag===3){ap(o,r,l);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(tr===null||!tr.has(c))){r=mi(l,r),r=Pd(o,r,1),o=Jn(o,r,1),r=ft(),o!==null&&(Yi(o,1,r),wt(o,r));break}}o=o.return}}function pv(r,o,l){var c=r.pingCache;c!==null&&c.delete(o),o=ft(),r.pingedLanes|=r.suspendedLanes&l,Je===r&&(nt&l)===l&&(Xe===4||Xe===3&&(nt&130023424)===nt&&500>Qe()-Iu?Nr(r,0):Du|=l),wt(r,o)}function up(r,o){o===0&&((r.mode&1)===0?o=1:(o=vs,vs<<=1,(vs&130023424)===0&&(vs=4194304)));var l=ft();r=Cn(r,o),r!==null&&(Yi(r,o,l),wt(r,l))}function gv(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),up(r,l)}function yv(r,o){var l=0;switch(r.tag){case 13:var c=r.stateNode,d=r.memoizedState;d!==null&&(l=d.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(i(314))}c!==null&&c.delete(o),up(r,l)}var cp;cp=function(r,o,l){if(r!==null)if(r.memoizedProps!==o.pendingProps||mt.current)_t=!0;else{if((r.lanes&l)===0&&(o.flags&128)===0)return _t=!1,rv(r,o,l);_t=(r.flags&131072)!==0}else _t=!1,Le&&(o.flags&1048576)!==0&&Vh(o,$s,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;tl(r,o),r=o.pendingProps;var d=ui(o,it.current);gi(o,l),d=pu(null,o,c,r,d,l);var m=gu();return o.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,vt(c)?(m=!0,Is(o)):m=!1,o.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,lu(o),d.updater=Js,o.stateNode=d,d._reactInternals=o,wu(o,c,r,l),o=bu(null,o,c,!0,m,l)):(o.tag=0,Le&&m&&Ya(o),ct(null,o,d,l),o=o.child),o;case 16:c=o.elementType;e:{switch(tl(r,o),r=o.pendingProps,d=c._init,c=d(c._payload),o.type=c,d=o.tag=vv(c),r=Kt(c,r),d){case 0:o=Cu(null,o,c,r,l);break e;case 1:o=Dd(null,o,c,r,l);break e;case 11:o=Nd(null,o,c,r,l);break e;case 14:o=Rd(null,o,c,Kt(c.type,r),l);break e}throw Error(i(306,c,""))}return o;case 0:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Kt(c,d),Cu(r,o,c,d,l);case 1:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Kt(c,d),Dd(r,o,c,d,l);case 3:e:{if(Id(o),r===null)throw Error(i(387));c=o.pendingProps,m=o.memoizedState,d=m.element,Zh(r,o),Qs(o,c,null,l);var w=o.memoizedState;if(c=w.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},o.updateQueue.baseState=m,o.memoizedState=m,o.flags&256){d=mi(Error(i(423)),o),o=Fd(r,o,c,l,d);break e}else if(c!==d){d=mi(Error(i(424)),o),o=Fd(r,o,c,l,d);break e}else for(Ot=Kn(o.stateNode.containerInfo.firstChild),Mt=o,Le=!0,Wt=null,l=Xh(o,null,c,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(hi(),c===d){o=En(r,o,l);break e}ct(r,o,c,l)}o=o.child}return o;case 5:return td(o),r===null&&eu(o),c=o.type,d=o.pendingProps,m=r!==null?r.memoizedProps:null,w=d.children,Ba(c,d)?w=null:m!==null&&Ba(c,m)&&(o.flags|=32),jd(r,o),ct(r,o,w,l),o.child;case 6:return r===null&&eu(o),null;case 13:return Ld(r,o,l);case 4:return au(o,o.stateNode.containerInfo),c=o.pendingProps,r===null?o.child=di(o,null,c,l):ct(r,o,c,l),o.child;case 11:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Kt(c,d),Nd(r,o,c,d,l);case 7:return ct(r,o,o.pendingProps,l),o.child;case 8:return ct(r,o,o.pendingProps.children,l),o.child;case 12:return ct(r,o,o.pendingProps.children,l),o.child;case 10:e:{if(c=o.type._context,d=o.pendingProps,m=o.memoizedProps,w=d.value,je(Vs,c._currentValue),c._currentValue=w,m!==null)if(Qt(m.value,w)){if(m.children===d.children&&!mt.current){o=En(r,o,l);break e}}else for(m=o.child,m!==null&&(m.return=o);m!==null;){var E=m.dependencies;if(E!==null){w=m.child;for(var N=E.firstContext;N!==null;){if(N.context===c){if(m.tag===1){N=bn(-1,l&-l),N.tag=2;var H=m.updateQueue;if(H!==null){H=H.shared;var Y=H.pending;Y===null?N.next=N:(N.next=Y.next,Y.next=N),H.pending=N}}m.lanes|=l,N=m.alternate,N!==null&&(N.lanes|=l),ou(m.return,l,o),E.lanes|=l;break}N=N.next}}else if(m.tag===10)w=m.type===o.type?null:m.child;else if(m.tag===18){if(w=m.return,w===null)throw Error(i(341));w.lanes|=l,E=w.alternate,E!==null&&(E.lanes|=l),ou(w,l,o),w=m.sibling}else w=m.child;if(w!==null)w.return=m;else for(w=m;w!==null;){if(w===o){w=null;break}if(m=w.sibling,m!==null){m.return=w.return,w=m;break}w=w.return}m=w}ct(r,o,d.children,l),o=o.child}return o;case 9:return d=o.type,c=o.pendingProps.children,gi(o,l),d=Dt(d),c=c(d),o.flags|=1,ct(r,o,c,l),o.child;case 14:return c=o.type,d=Kt(c,o.pendingProps),d=Kt(c.type,d),Rd(r,o,c,d,l);case 15:return Ad(r,o,o.type,o.pendingProps,l);case 17:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Kt(c,d),tl(r,o),o.tag=1,vt(c)?(r=!0,Is(o)):r=!1,gi(o,l),Cd(o,c,d),wu(o,c,d,l),bu(null,o,c,!0,r,l);case 19:return Ud(r,o,l);case 22:return zd(r,o,l)}throw Error(i(156,o.tag))};function fp(r,o){return qf(r,o)}function mv(r,o,l,c){this.tag=r,this.key=l,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=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(r,o,l,c){return new mv(r,o,l,c)}function Bu(r){return r=r.prototype,!(!r||!r.isReactComponent)}function vv(r){if(typeof r=="function")return Bu(r)?1:0;if(r!=null){if(r=r.$$typeof,r===oe)return 11;if(r===ee)return 14}return 2}function or(r,o){var l=r.alternate;return l===null?(l=Lt(r.tag,o,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=o,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,o=r.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function hl(r,o,l,c,d,m){var w=2;if(c=r,typeof r=="function")Bu(r)&&(w=1);else if(typeof r=="string")w=5;else e:switch(r){case I:return Ar(l.children,d,m,o);case L:w=8,d|=8;break;case K:return r=Lt(12,l,o,d|2),r.elementType=K,r.lanes=m,r;case he:return r=Lt(13,l,o,d),r.elementType=he,r.lanes=m,r;case F:return r=Lt(19,l,o,d),r.elementType=F,r.lanes=m,r;case ie:return dl(l,d,m,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case G:w=10;break e;case te:w=9;break e;case oe:w=11;break e;case ee:w=14;break e;case W:w=16,c=null;break e}throw Error(i(130,r==null?r:typeof r,""))}return o=Lt(w,l,o,d),o.elementType=r,o.type=c,o.lanes=m,o}function Ar(r,o,l,c){return r=Lt(7,r,c,o),r.lanes=l,r}function dl(r,o,l,c){return r=Lt(22,r,c,o),r.elementType=ie,r.lanes=l,r.stateNode={isHidden:!1},r}function Qu(r,o,l){return r=Lt(6,r,null,o),r.lanes=l,r}function Wu(r,o,l){return o=Lt(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function _v(r,o,l,c,d){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xa(0),this.expirationTimes=xa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xa(0),this.identifierPrefix=c,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function Ku(r,o,l,c,d,m,w,E,N){return r=new _v(r,o,l,E,N),o===1?(o=1,m===!0&&(o|=8)):o=0,m=Lt(3,null,null,o),r.current=m,m.stateNode=r,m.memoizedState={element:c,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},lu(m),r}function xv(r,o,l){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:c==null?null:""+c,children:r,containerInfo:o,implementation:l}}function hp(r){if(!r)return Xn;r=r._reactInternals;e:{if(wr(r)!==r||r.tag!==1)throw Error(i(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(vt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(i(171))}if(r.tag===1){var l=r.type;if(vt(l))return $h(r,l,o)}return o}function dp(r,o,l,c,d,m,w,E,N){return r=Ku(l,c,!0,r,d,m,w,E,N),r.context=hp(null),l=r.current,c=ft(),d=rr(l),m=bn(c,d),m.callback=o??null,Jn(l,m,d),r.current.lanes=d,Yi(r,d,c),wt(r,c),r}function pl(r,o,l,c){var d=o.current,m=ft(),w=rr(d);return l=hp(l),o.context===null?o.context=l:o.pendingContext=l,o=bn(m,w),o.payload={element:r},c=c===void 0?null:c,c!==null&&(o.callback=c),r=Jn(d,o,w),r!==null&&(Yt(r,d,w,m),Bs(r,d,w)),w}function gl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function pp(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function Gu(r,o){pp(r,o),(r=r.alternate)&&pp(r,o)}function wv(){return null}var gp=typeof reportError=="function"?reportError:function(r){console.error(r)};function Xu(r){this._internalRoot=r}yl.prototype.render=Xu.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(i(409));pl(r,o,null,null)},yl.prototype.unmount=Xu.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;Or(function(){pl(null,r,null,null)}),o[xn]=null}};function yl(r){this._internalRoot=r}yl.prototype.unstable_scheduleHydration=function(r){if(r){var o=Zf();r={blockedOn:null,target:r,priority:o};for(var l=0;l<Bn.length&&o!==0&&o<Bn[l].priority;l++);Bn.splice(l,0,r),l===0&&th(r)}};function Yu(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function ml(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function yp(){}function kv(r,o,l,c,d){if(d){if(typeof c=="function"){var m=c;c=function(){var H=gl(w);m.call(H)}}var w=dp(o,c,r,0,null,!1,!1,"",yp);return r._reactRootContainer=w,r[xn]=w.current,fo(r.nodeType===8?r.parentNode:r),Or(),w}for(;d=r.lastChild;)r.removeChild(d);if(typeof c=="function"){var E=c;c=function(){var H=gl(N);E.call(H)}}var N=Ku(r,0,!1,null,null,!1,!1,"",yp);return r._reactRootContainer=N,r[xn]=N.current,fo(r.nodeType===8?r.parentNode:r),Or(function(){pl(o,N,l,c)}),N}function vl(r,o,l,c,d){var m=l._reactRootContainer;if(m){var w=m;if(typeof d=="function"){var E=d;d=function(){var N=gl(w);E.call(N)}}pl(o,w,r,d)}else w=kv(l,o,r,d,c);return gl(w)}Xf=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var l=Xi(o.pendingLanes);l!==0&&(wa(o,l|1),wt(o,Qe()),(Te&6)===0&&(xi=Qe()+500,Yn()))}break;case 13:Or(function(){var c=Cn(r,1);if(c!==null){var d=ft();Yt(c,r,1,d)}}),Gu(r,1)}},ka=function(r){if(r.tag===13){var o=Cn(r,134217728);if(o!==null){var l=ft();Yt(o,r,134217728,l)}Gu(r,134217728)}},Yf=function(r){if(r.tag===13){var o=rr(r),l=Cn(r,o);if(l!==null){var c=ft();Yt(l,r,o,c)}Gu(r,o)}},Zf=function(){return Ne},Jf=function(r,o){var l=Ne;try{return Ne=r,o()}finally{Ne=l}},pa=function(r,o,l){switch(o){case"input":if(sa(r,l),o=l.name,l.type==="radio"&&o!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var c=l[o];if(c!==r&&c.form===r.form){var d=js(c);if(!d)throw Error(i(90));Sf(c),sa(c,d)}}}break;case"textarea":Tf(r,l);break;case"select":o=l.value,o!=null&&Yr(r,!!l.multiple,o,!1)}},If=Hu,Ff=Or;var Sv={usingClientEntryPoint:!1,Events:[go,li,js,jf,Df,Hu]},Mo={findFiberByHostInstance:kr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Cv={bundleType:Mo.bundleType,version:Mo.version,rendererPackageName:Mo.rendererPackageName,rendererConfig:Mo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Hf(r),r===null?null:r.stateNode},findFiberByHostInstance:Mo.findFiberByHostInstance||wv,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 _l=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_l.isDisabled&&_l.supportsFiber)try{ys=_l.inject(Cv),sn=_l}catch{}}return kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sv,kt.createPortal=function(r,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yu(o))throw Error(i(200));return xv(r,o,null,l)},kt.createRoot=function(r,o){if(!Yu(r))throw Error(i(299));var l=!1,c="",d=gp;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(d=o.onRecoverableError)),o=Ku(r,1,!1,null,null,l,!1,c,d),r[xn]=o.current,fo(r.nodeType===8?r.parentNode:r),new Xu(o)},kt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=Hf(o),r=r===null?null:r.stateNode,r},kt.flushSync=function(r){return Or(r)},kt.hydrate=function(r,o,l){if(!ml(o))throw Error(i(200));return vl(null,r,o,!0,l)},kt.hydrateRoot=function(r,o,l){if(!Yu(r))throw Error(i(405));var c=l!=null&&l.hydratedSources||null,d=!1,m="",w=gp;if(l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onRecoverableError!==void 0&&(w=l.onRecoverableError)),o=dp(o,null,r,1,l??null,d,!1,m,w),r[xn]=o.current,fo(r),c)for(r=0;r<c.length;r++)l=c[r],d=l._getVersion,d=d(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,d]:o.mutableSourceEagerHydrationData.push(l,d);return new yl(o)},kt.render=function(r,o,l){if(!ml(o))throw Error(i(200));return vl(null,r,o,!1,l)},kt.unmountComponentAtNode=function(r){if(!ml(r))throw Error(i(40));return r._reactRootContainer?(Or(function(){vl(null,null,r,!1,function(){r._reactRootContainer=null,r[xn]=null})}),!0):!1},kt.unstable_batchedUpdates=Hu,kt.unstable_renderSubtreeIntoContainer=function(r,o,l,c){if(!ml(l))throw Error(i(200));if(r==null||r._reactInternals===void 0)throw Error(i(38));return vl(r,o,l,!1,c)},kt.version="18.3.1-next-f1338f8080-20240426",kt}var zp;function d1(){if(zp)return nc.exports;zp=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(),nc.exports=h1(),nc.exports}var jp;function p1(){if(jp)return kl;jp=1;var e=d1();return kl.createRoot=e.createRoot,kl.hydrateRoot=e.hydrateRoot,kl}var g1=p1();/**
|
|
41
|
+
* @license lucide-react v0.408.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const y1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),v0=(...e)=>e.filter((n,i,s)=>!!n&&s.indexOf(n)===i).join(" ");/**
|
|
46
|
+
* @license lucide-react v0.408.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var m1={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"};/**
|
|
51
|
+
* @license lucide-react v0.408.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const v1=ye.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:a="",children:u,iconNode:f,...h},p)=>ye.createElement("svg",{ref:p,...m1,width:n,height:n,stroke:e,strokeWidth:s?Number(i)*24/Number(n):i,className:v0("lucide",a),...h},[...f.map(([y,v])=>ye.createElement(y,v)),...Array.isArray(u)?u:[u]]));/**
|
|
56
|
+
* @license lucide-react v0.408.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const Xr=(e,n)=>{const i=ye.forwardRef(({className:s,...a},u)=>ye.createElement(v1,{ref:u,iconNode:n,className:v0(`lucide-${y1(e)}`,s),...a}));return i.displayName=`${e}`,i};/**
|
|
61
|
+
* @license lucide-react v0.408.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const _1=Xr("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"}]]);/**
|
|
66
|
+
* @license lucide-react v0.408.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const x1=Xr("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
71
|
+
* @license lucide-react v0.408.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const Dp=Xr("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"}]]);/**
|
|
76
|
+
* @license lucide-react v0.408.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const oc=Xr("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"}]]);/**
|
|
81
|
+
* @license lucide-react v0.408.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const Ip=Xr("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"}]]);/**
|
|
86
|
+
* @license lucide-react v0.408.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const w1=Xr("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"}]]);/**
|
|
91
|
+
* @license lucide-react v0.408.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const Fp=Xr("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 k1({children:e,variant:n="default",className:i=""}){const s="inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",a={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 J.jsx("span",{className:`${s} ${a[n]} ${i}`,children:e})}function Tn({children:e,variant:n="default",size:i="default",className:s="",onClick:a,disabled:u=!1,title:f,type:h="button"}){const p="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",y={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"},v={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 J.jsx("button",{type:h,className:`${p} ${y[n]} ${v[i]} ${s}`,onClick:a,disabled:u,title:f,children:e})}function S1({children:e,className:n=""}){return J.jsx("div",{className:`rounded-lg border bg-card text-card-foreground shadow-sm ${n}`,children:e})}function C1({children:e,className:n=""}){return J.jsx("div",{className:`flex flex-col space-y-1.5 p-6 ${n}`,children:e})}function b1({children:e,className:n=""}){return J.jsx("div",{className:`flex items-center p-6 pt-0 ${n}`,children:e})}function E1(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n===0){if(Object(i)!==i)return;p=!1}else for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function P1(e,n,i){return n=j1(n),n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Lp(e,n){return O1(e)||E1(e,n)||_0(e,n)||A1()}function T1(e){return M1(e)||N1(e)||_0(e)||R1()}function M1(e){if(Array.isArray(e))return Rc(e)}function O1(e){if(Array.isArray(e))return e}function N1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _0(e,n){if(e){if(typeof e=="string")return Rc(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Rc(e,n)}}function Rc(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=new Array(n);i<n;i++)s[i]=e[i];return s}function R1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
96
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
97
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z1(e,n){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function j1(e){var n=z1(e,"string");return typeof n=="symbol"?n:String(n)}var D1=function(n,i){var s=new Set(i);return Object.assign.apply(Object,[{}].concat(T1(Object.entries(n).filter(function(a){var u=Lp(a,1),f=u[0];return!s.has(f)}).map(function(a){var u=Lp(a,2),f=u[0],h=u[1];return P1({},f,h)}))))};function Ac(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function I1(e){if(Array.isArray(e))return e}function F1(e){if(Array.isArray(e))return Ac(e)}function L1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $1(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function U1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
98
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
99
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V1(e,n){return I1(e)||$1(e,n)||x0(e,n)||U1()}function $p(e){return F1(e)||L1(e)||x0(e)||H1()}function x0(e,n){if(e){if(typeof e=="string")return Ac(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ac(e,n):void 0}}function q1(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.wrapperElementType,s=i===void 0?"div":i,a=n.nodeMapper,u=a===void 0?function(v){return v}:a,f=n.methodNames,h=f===void 0?[]:f,p=n.initPropNames,y=p===void 0?[]:p;return ye.forwardRef(function(v,g){var _=ye.useRef(),x=ye.useMemo(function(){var C=Object.fromEntries(y.filter(function(k){return v.hasOwnProperty(k)}).map(function(k){return[k,v[k]]}));return e(C)},[]);Up(function(){x(u(_.current))},ye.useLayoutEffect),Up(function(){return x._destructor instanceof Function?x._destructor:void 0});var S=ye.useCallback(function(C){for(var k=arguments.length,R=new Array(k>1?k-1:0),A=1;A<k;A++)R[A-1]=arguments[A];return x[C]instanceof Function?x[C].apply(x,R):void 0},[x]),b=ye.useRef({});return Object.keys(D1(v,[].concat($p(h),$p(y)))).filter(function(C){return b.current[C]!==v[C]}).forEach(function(C){return S(C,v[C])}),b.current=v,ye.useImperativeHandle(g,function(){return Object.fromEntries(h.map(function(C){return[C,function(){for(var k=arguments.length,R=new Array(k),A=0;A<k;A++)R[A]=arguments[A];return S.apply(void 0,[C].concat(R))}]}))},[S]),Gv.createElement(s,{ref:_})})}function Up(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ye.useEffect,i=ye.useRef(),s=ye.useRef(!1),a=ye.useRef(!1),u=ye.useState(0),f=V1(u,2);f[0];var h=f[1];s.current&&(a.current=!0),n(function(){return s.current||(i.current=e(),s.current=!0),h(function(p){return p+1}),function(){a.current&&i.current&&i.current()}},[])}var zc="http://www.w3.org/1999/xhtml";const Hp={svg:"http://www.w3.org/2000/svg",xhtml:zc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zl(e){var n=e+="",i=n.indexOf(":");return i>=0&&(n=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),Hp.hasOwnProperty(n)?{space:Hp[n],local:e}:e}function B1(e){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===zc&&n.documentElement.namespaceURI===zc?n.createElement(e):n.createElementNS(i,e)}}function Q1(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function w0(e){var n=Zl(e);return(n.local?Q1:B1)(n)}function W1(){}function rf(e){return e==null?W1:function(){return this.querySelector(e)}}function K1(e){typeof e!="function"&&(e=rf(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=new Array(f),p,y,v=0;v<f;++v)(p=u[v])&&(y=e.call(p,p.__data__,v,u))&&("__data__"in p&&(y.__data__=p.__data__),h[v]=y);return new At(s,this._parents)}function G1(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function X1(){return[]}function k0(e){return e==null?X1:function(){return this.querySelectorAll(e)}}function Y1(e){return function(){return G1(e.apply(this,arguments))}}function Z1(e){typeof e=="function"?e=Y1(e):e=k0(e);for(var n=this._groups,i=n.length,s=[],a=[],u=0;u<i;++u)for(var f=n[u],h=f.length,p,y=0;y<h;++y)(p=f[y])&&(s.push(e.call(p,p.__data__,y,f)),a.push(p));return new At(s,a)}function S0(e){return function(){return this.matches(e)}}function C0(e){return function(n){return n.matches(e)}}var J1=Array.prototype.find;function e_(e){return function(){return J1.call(this.children,e)}}function t_(){return this.firstElementChild}function n_(e){return this.select(e==null?t_:e_(typeof e=="function"?e:C0(e)))}var r_=Array.prototype.filter;function i_(){return Array.from(this.children)}function o_(e){return function(){return r_.call(this.children,e)}}function s_(e){return this.selectAll(e==null?i_:o_(typeof e=="function"?e:C0(e)))}function l_(e){typeof e!="function"&&(e=S0(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=[],p,y=0;y<f;++y)(p=u[y])&&e.call(p,p.__data__,y,u)&&h.push(p);return new At(s,this._parents)}function b0(e){return new Array(e.length)}function a_(){return new At(this._enter||this._groups.map(b0),this._parents)}function Ll(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}Ll.prototype={constructor:Ll,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 u_(e){return function(){return e}}function c_(e,n,i,s,a,u){for(var f=0,h,p=n.length,y=u.length;f<y;++f)(h=n[f])?(h.__data__=u[f],s[f]=h):i[f]=new Ll(e,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function f_(e,n,i,s,a,u,f){var h,p,y=new Map,v=n.length,g=u.length,_=new Array(v),x;for(h=0;h<v;++h)(p=n[h])&&(_[h]=x=f.call(p,p.__data__,h,n)+"",y.has(x)?a[h]=p:y.set(x,p));for(h=0;h<g;++h)x=f.call(e,u[h],h,u)+"",(p=y.get(x))?(s[h]=p,p.__data__=u[h],y.delete(x)):i[h]=new Ll(e,u[h]);for(h=0;h<v;++h)(p=n[h])&&y.get(_[h])===p&&(a[h]=p)}function h_(e){return e.__data__}function d_(e,n){if(!arguments.length)return Array.from(this,h_);var i=n?f_:c_,s=this._parents,a=this._groups;typeof e!="function"&&(e=u_(e));for(var u=a.length,f=new Array(u),h=new Array(u),p=new Array(u),y=0;y<u;++y){var v=s[y],g=a[y],_=g.length,x=p_(e.call(v,v&&v.__data__,y,s)),S=x.length,b=h[y]=new Array(S),C=f[y]=new Array(S),k=p[y]=new Array(_);i(v,g,b,C,k,x,n);for(var R=0,A=0,P,M;R<S;++R)if(P=b[R]){for(R>=A&&(A=R+1);!(M=C[A])&&++A<S;);P._next=M||null}}return f=new At(f,s),f._enter=h,f._exit=p,f}function p_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function g_(){return new At(this._exit||this._groups.map(b0),this._parents)}function y_(e,n,i){var s=this.enter(),a=this,u=this.exit();return typeof e=="function"?(s=e(s),s&&(s=s.selection())):s=s.append(e+""),n!=null&&(a=n(a),a&&(a=a.selection())),i==null?u.remove():i(u),s&&a?s.merge(a).order():a}function m_(e){for(var n=e.selection?e.selection():e,i=this._groups,s=n._groups,a=i.length,u=s.length,f=Math.min(a,u),h=new Array(a),p=0;p<f;++p)for(var y=i[p],v=s[p],g=y.length,_=h[p]=new Array(g),x,S=0;S<g;++S)(x=y[S]||v[S])&&(_[S]=x);for(;p<a;++p)h[p]=i[p];return new At(h,this._parents)}function v_(){for(var e=this._groups,n=-1,i=e.length;++n<i;)for(var s=e[n],a=s.length-1,u=s[a],f;--a>=0;)(f=s[a])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function __(e){e||(e=x_);function n(g,_){return g&&_?e(g.__data__,_.__data__):!g-!_}for(var i=this._groups,s=i.length,a=new Array(s),u=0;u<s;++u){for(var f=i[u],h=f.length,p=a[u]=new Array(h),y,v=0;v<h;++v)(y=f[v])&&(p[v]=y);p.sort(n)}return new At(a,this._parents).order()}function x_(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function w_(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function k_(){return Array.from(this)}function S_(){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var s=e[n],a=0,u=s.length;a<u;++a){var f=s[a];if(f)return f}return null}function C_(){let e=0;for(const n of this)++e;return e}function b_(){return!this.node()}function E_(e){for(var n=this._groups,i=0,s=n.length;i<s;++i)for(var a=n[i],u=0,f=a.length,h;u<f;++u)(h=a[u])&&e.call(h,h.__data__,u,a);return this}function P_(e){return function(){this.removeAttribute(e)}}function T_(e){return function(){this.removeAttributeNS(e.space,e.local)}}function M_(e,n){return function(){this.setAttribute(e,n)}}function O_(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function N_(e,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttribute(e):this.setAttribute(e,i)}}function R_(e,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function A_(e,n){var i=Zl(e);if(arguments.length<2){var s=this.node();return i.local?s.getAttributeNS(i.space,i.local):s.getAttribute(i)}return this.each((n==null?i.local?T_:P_:typeof n=="function"?i.local?R_:N_:i.local?O_:M_)(i,n))}function E0(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function z_(e){return function(){this.style.removeProperty(e)}}function j_(e,n,i){return function(){this.style.setProperty(e,n,i)}}function D_(e,n,i){return function(){var s=n.apply(this,arguments);s==null?this.style.removeProperty(e):this.style.setProperty(e,s,i)}}function I_(e,n,i){return arguments.length>1?this.each((n==null?z_:typeof n=="function"?D_:j_)(e,n,i??"")):$i(this.node(),e)}function $i(e,n){return e.style.getPropertyValue(n)||E0(e).getComputedStyle(e,null).getPropertyValue(n)}function F_(e){return function(){delete this[e]}}function L_(e,n){return function(){this[e]=n}}function $_(e,n){return function(){var i=n.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function U_(e,n){return arguments.length>1?this.each((n==null?F_:typeof n=="function"?$_:L_)(e,n)):this.node()[e]}function P0(e){return e.trim().split(/^|\s+/)}function of(e){return e.classList||new T0(e)}function T0(e){this._node=e,this._names=P0(e.getAttribute("class")||"")}T0.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 M0(e,n){for(var i=of(e),s=-1,a=n.length;++s<a;)i.add(n[s])}function O0(e,n){for(var i=of(e),s=-1,a=n.length;++s<a;)i.remove(n[s])}function H_(e){return function(){M0(this,e)}}function V_(e){return function(){O0(this,e)}}function q_(e,n){return function(){(n.apply(this,arguments)?M0:O0)(this,e)}}function B_(e,n){var i=P0(e+"");if(arguments.length<2){for(var s=of(this.node()),a=-1,u=i.length;++a<u;)if(!s.contains(i[a]))return!1;return!0}return this.each((typeof n=="function"?q_:n?H_:V_)(i,n))}function Q_(){this.textContent=""}function W_(e){return function(){this.textContent=e}}function K_(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function G_(e){return arguments.length?this.each(e==null?Q_:(typeof e=="function"?K_:W_)(e)):this.node().textContent}function X_(){this.innerHTML=""}function Y_(e){return function(){this.innerHTML=e}}function Z_(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function J_(e){return arguments.length?this.each(e==null?X_:(typeof e=="function"?Z_:Y_)(e)):this.node().innerHTML}function ex(){this.nextSibling&&this.parentNode.appendChild(this)}function tx(){return this.each(ex)}function nx(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rx(){return this.each(nx)}function ix(e){var n=typeof e=="function"?e:w0(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function ox(){return null}function sx(e,n){var i=typeof e=="function"?e:w0(e),s=n==null?ox:typeof n=="function"?n:rf(n);return this.select(function(){return this.insertBefore(i.apply(this,arguments),s.apply(this,arguments)||null)})}function lx(){var e=this.parentNode;e&&e.removeChild(this)}function ax(){return this.each(lx)}function ux(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function cx(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function fx(e){return this.select(e?cx:ux)}function hx(e){return arguments.length?this.property("__data__",e):this.node().__data__}function dx(e){return function(n){e.call(this,n,this.__data__)}}function px(e){return e.trim().split(/^|\s+/).map(function(n){var i="",s=n.indexOf(".");return s>=0&&(i=n.slice(s+1),n=n.slice(0,s)),{type:n,name:i}})}function gx(e){return function(){var n=this.__on;if(n){for(var i=0,s=-1,a=n.length,u;i<a;++i)u=n[i],(!e.type||u.type===e.type)&&u.name===e.name?this.removeEventListener(u.type,u.listener,u.options):n[++s]=u;++s?n.length=s:delete this.__on}}}function yx(e,n,i){return function(){var s=this.__on,a,u=dx(n);if(s){for(var f=0,h=s.length;f<h;++f)if((a=s[f]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=i),a.value=n;return}}this.addEventListener(e.type,u,i),a={type:e.type,name:e.name,value:n,listener:u,options:i},s?s.push(a):this.__on=[a]}}function mx(e,n,i){var s=px(e+""),a,u=s.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,y=h.length,v;p<y;++p)for(a=0,v=h[p];a<u;++a)if((f=s[a]).type===v.type&&f.name===v.name)return v.value}return}for(h=n?yx:gx,a=0;a<u;++a)this.each(h(s[a],n,i));return this}function N0(e,n,i){var s=E0(e),a=s.CustomEvent;typeof a=="function"?a=new a(n,i):(a=s.document.createEvent("Event"),i?(a.initEvent(n,i.bubbles,i.cancelable),a.detail=i.detail):a.initEvent(n,!1,!1)),e.dispatchEvent(a)}function vx(e,n){return function(){return N0(this,e,n)}}function _x(e,n){return function(){return N0(this,e,n.apply(this,arguments))}}function xx(e,n){return this.each((typeof n=="function"?_x:vx)(e,n))}function*wx(){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var s=e[n],a=0,u=s.length,f;a<u;++a)(f=s[a])&&(yield f)}var R0=[null];function At(e,n){this._groups=e,this._parents=n}function os(){return new At([[document.documentElement]],R0)}function kx(){return this}At.prototype=os.prototype={constructor:At,select:K1,selectAll:Z1,selectChild:n_,selectChildren:s_,filter:l_,data:d_,enter:a_,exit:g_,join:y_,merge:m_,selection:kx,order:v_,sort:__,call:w_,nodes:k_,node:S_,size:C_,empty:b_,each:E_,attr:A_,style:I_,property:U_,classed:B_,text:G_,html:J_,raise:tx,lower:rx,append:ix,insert:sx,remove:ax,clone:fx,datum:hx,on:mx,dispatch:xx,[Symbol.iterator]:wx};function Vt(e){return typeof e=="string"?new At([[document.querySelector(e)]],[document.documentElement]):new At([[e]],R0)}function Sx(e){let n;for(;n=e.sourceEvent;)e=n;return e}function hn(e,n){if(e=Sx(e),n===void 0&&(n=e.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var s=i.createSVGPoint();return s.x=e.clientX,s.y=e.clientY,s=s.matrixTransform(n.getScreenCTM().inverse()),[s.x,s.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.clientTop]}}return[e.pageX,e.pageY]}var Cx={value:()=>{}};function ss(){for(var e=0,n=arguments.length,i={},s;e<n;++e){if(!(s=arguments[e]+"")||s in i||/[\s.]/.test(s))throw new Error("illegal type: "+s);i[s]=[]}return new Rl(i)}function Rl(e){this._=e}function bx(e,n){return e.trim().split(/^|\s+/).map(function(i){var s="",a=i.indexOf(".");if(a>=0&&(s=i.slice(a+1),i=i.slice(0,a)),i&&!n.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:s}})}Rl.prototype=ss.prototype={constructor:Rl,on:function(e,n){var i=this._,s=bx(e+"",i),a,u=-1,f=s.length;if(arguments.length<2){for(;++u<f;)if((a=(e=s[u]).type)&&(a=Ex(i[a],e.name)))return a;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++u<f;)if(a=(e=s[u]).type)i[a]=Vp(i[a],e.name,n);else if(n==null)for(a in i)i[a]=Vp(i[a],e.name,null);return this},copy:function(){var e={},n=this._;for(var i in n)e[i]=n[i].slice();return new Rl(e)},call:function(e,n){if((a=arguments.length-2)>0)for(var i=new Array(a),s=0,a,u;s<a;++s)i[s]=arguments[s+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(u=this._[e],s=0,a=u.length;s<a;++s)u[s].value.apply(n,i)},apply:function(e,n,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var s=this._[e],a=0,u=s.length;a<u;++a)s[a].value.apply(n,i)}};function Ex(e,n){for(var i=0,s=e.length,a;i<s;++i)if((a=e[i]).name===n)return a.value}function Vp(e,n,i){for(var s=0,a=e.length;s<a;++s)if(e[s].name===n){e[s]=Cx,e=e.slice(0,s).concat(e.slice(s+1));break}return i!=null&&e.push({name:n,value:i}),e}const Px={passive:!1},Ko={capture:!0,passive:!1};function sc(e){e.stopImmediatePropagation()}function bi(e){e.preventDefault(),e.stopImmediatePropagation()}function A0(e){var n=e.document.documentElement,i=Vt(e).on("dragstart.drag",bi,Ko);"onselectstart"in n?i.on("selectstart.drag",bi,Ko):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function z0(e,n){var i=e.document.documentElement,s=Vt(e).on("dragstart.drag",null);n&&(s.on("click.drag",bi,Ko),setTimeout(function(){s.on("click.drag",null)},0)),"onselectstart"in i?s.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}const Sl=e=>()=>e;function jc(e,{sourceEvent:n,subject:i,target:s,identifier:a,active:u,x:f,y:h,dx:p,dy:y,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:p,enumerable:!0,configurable:!0},dy:{value:y,enumerable:!0,configurable:!0},_:{value:v}})}jc.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Tx(e){return!e.ctrlKey&&!e.button}function Mx(){return this.parentNode}function Ox(e,n){return n??{x:e.x,y:e.y}}function Nx(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rx(){var e=Tx,n=Mx,i=Ox,s=Nx,a={},u=ss("start","drag","end"),f=0,h,p,y,v,g=0;function _(P){P.on("mousedown.drag",x).filter(s).on("touchstart.drag",C).on("touchmove.drag",k,Px).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(P,M){if(!(v||!e.call(this,P,M))){var j=A(this,n.call(this,P,M),P,M,"mouse");j&&(Vt(P.view).on("mousemove.drag",S,Ko).on("mouseup.drag",b,Ko),A0(P.view),sc(P),y=!1,h=P.clientX,p=P.clientY,j("start",P))}}function S(P){if(bi(P),!y){var M=P.clientX-h,j=P.clientY-p;y=M*M+j*j>g}a.mouse("drag",P)}function b(P){Vt(P.view).on("mousemove.drag mouseup.drag",null),z0(P.view,y),bi(P),a.mouse("end",P)}function C(P,M){if(e.call(this,P,M)){var j=P.changedTouches,I=n.call(this,P,M),L=j.length,K,G;for(K=0;K<L;++K)(G=A(this,I,P,M,j[K].identifier,j[K]))&&(sc(P),G("start",P,j[K]))}}function k(P){var M=P.changedTouches,j=M.length,I,L;for(I=0;I<j;++I)(L=a[M[I].identifier])&&(bi(P),L("drag",P,M[I]))}function R(P){var M=P.changedTouches,j=M.length,I,L;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),I=0;I<j;++I)(L=a[M[I].identifier])&&(sc(P),L("end",P,M[I]))}function A(P,M,j,I,L,K){var G=u.copy(),te=hn(K||j,M),oe,he,F;if((F=i.call(P,new jc("beforestart",{sourceEvent:j,target:_,identifier:L,active:f,x:te[0],y:te[1],dx:0,dy:0,dispatch:G}),I))!=null)return oe=F.x-te[0]||0,he=F.y-te[1]||0,function ee(W,ie,Q){var q=te,B;switch(W){case"start":a[L]=ee,B=f++;break;case"end":delete a[L],--f;case"drag":te=hn(Q||ie,M),B=f;break}G.call(W,P,new jc(W,{sourceEvent:ie,subject:F,target:_,identifier:L,active:B,x:te[0]+oe,y:te[1]+he,dx:te[0]-q[0],dy:te[1]-q[1],dispatch:G}),I)}}return _.filter=function(P){return arguments.length?(e=typeof P=="function"?P:Sl(!!P),_):e},_.container=function(P){return arguments.length?(n=typeof P=="function"?P:Sl(P),_):n},_.subject=function(P){return arguments.length?(i=typeof P=="function"?P:Sl(P),_):i},_.touchable=function(P){return arguments.length?(s=typeof P=="function"?P:Sl(!!P),_):s},_.on=function(){var P=u.on.apply(u,arguments);return P===u?_:P},_.clickDistance=function(P){return arguments.length?(g=(P=+P)*P,_):Math.sqrt(g)},_}function sf(e,n,i){e.prototype=n.prototype=i,i.constructor=e}function j0(e,n){var i=Object.create(e.prototype);for(var s in n)i[s]=n[s];return i}function ls(){}var Go=.7,$l=1/Go,Ei="\\s*([+-]?\\d+)\\s*",Xo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ax=/^#([0-9a-f]{3,8})$/,zx=new RegExp(`^rgb\\(${Ei},${Ei},${Ei}\\)$`),jx=new RegExp(`^rgb\\(${mn},${mn},${mn}\\)$`),Dx=new RegExp(`^rgba\\(${Ei},${Ei},${Ei},${Xo}\\)$`),Ix=new RegExp(`^rgba\\(${mn},${mn},${mn},${Xo}\\)$`),Fx=new RegExp(`^hsl\\(${Xo},${mn},${mn}\\)$`),Lx=new RegExp(`^hsla\\(${Xo},${mn},${mn},${Xo}\\)$`),qp={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};sf(ls,Yo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bp,formatHex:Bp,formatHex8:$x,formatHsl:Ux,formatRgb:Qp,toString:Qp});function Bp(){return this.rgb().formatHex()}function $x(){return this.rgb().formatHex8()}function Ux(){return D0(this).formatHsl()}function Qp(){return this.rgb().formatRgb()}function Yo(e){var n,i;return e=(e+"").trim().toLowerCase(),(n=Ax.exec(e))?(i=n[1].length,n=parseInt(n[1],16),i===6?Wp(n):i===3?new bt(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?Cl(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?Cl(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=zx.exec(e))?new bt(n[1],n[2],n[3],1):(n=jx.exec(e))?new bt(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Dx.exec(e))?Cl(n[1],n[2],n[3],n[4]):(n=Ix.exec(e))?Cl(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Fx.exec(e))?Xp(n[1],n[2]/100,n[3]/100,1):(n=Lx.exec(e))?Xp(n[1],n[2]/100,n[3]/100,n[4]):qp.hasOwnProperty(e)?Wp(qp[e]):e==="transparent"?new bt(NaN,NaN,NaN,0):null}function Wp(e){return new bt(e>>16&255,e>>8&255,e&255,1)}function Cl(e,n,i,s){return s<=0&&(e=n=i=NaN),new bt(e,n,i,s)}function Hx(e){return e instanceof ls||(e=Yo(e)),e?(e=e.rgb(),new bt(e.r,e.g,e.b,e.opacity)):new bt}function Dc(e,n,i,s){return arguments.length===1?Hx(e):new bt(e,n,i,s??1)}function bt(e,n,i,s){this.r=+e,this.g=+n,this.b=+i,this.opacity=+s}sf(bt,Dc,j0(ls,{brighter(e){return e=e==null?$l:Math.pow($l,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Go:Math.pow(Go,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(Br(this.r),Br(this.g),Br(this.b),Ul(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:Kp,formatHex:Kp,formatHex8:Vx,formatRgb:Gp,toString:Gp}));function Kp(){return`#${Dr(this.r)}${Dr(this.g)}${Dr(this.b)}`}function Vx(){return`#${Dr(this.r)}${Dr(this.g)}${Dr(this.b)}${Dr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gp(){const e=Ul(this.opacity);return`${e===1?"rgb(":"rgba("}${Br(this.r)}, ${Br(this.g)}, ${Br(this.b)}${e===1?")":`, ${e})`}`}function Ul(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Br(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Dr(e){return e=Br(e),(e<16?"0":"")+e.toString(16)}function Xp(e,n,i,s){return s<=0?e=n=i=NaN:i<=0||i>=1?e=n=NaN:n<=0&&(e=NaN),new nn(e,n,i,s)}function D0(e){if(e instanceof nn)return new nn(e.h,e.s,e.l,e.opacity);if(e instanceof ls||(e=Yo(e)),!e)return new nn;if(e instanceof nn)return e;e=e.rgb();var n=e.r/255,i=e.g/255,s=e.b/255,a=Math.min(n,i,s),u=Math.max(n,i,s),f=NaN,h=u-a,p=(u+a)/2;return h?(n===u?f=(i-s)/h+(i<s)*6:i===u?f=(s-n)/h+2:f=(n-i)/h+4,h/=p<.5?u+a:2-u-a,f*=60):h=p>0&&p<1?0:f,new nn(f,h,p,e.opacity)}function qx(e,n,i,s){return arguments.length===1?D0(e):new nn(e,n,i,s??1)}function nn(e,n,i,s){this.h=+e,this.s=+n,this.l=+i,this.opacity=+s}sf(nn,qx,j0(ls,{brighter(e){return e=e==null?$l:Math.pow($l,e),new nn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Go:Math.pow(Go,e),new nn(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,i=this.l,s=i+(i<.5?i:1-i)*n,a=2*i-s;return new bt(lc(e>=240?e-240:e+120,a,s),lc(e,a,s),lc(e<120?e+240:e-120,a,s),this.opacity)},clamp(){return new nn(Yp(this.h),bl(this.s),bl(this.l),Ul(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=Ul(this.opacity);return`${e===1?"hsl(":"hsla("}${Yp(this.h)}, ${bl(this.s)*100}%, ${bl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Yp(e){return e=(e||0)%360,e<0?e+360:e}function bl(e){return Math.max(0,Math.min(1,e||0))}function lc(e,n,i){return(e<60?n+(i-n)*e/60:e<180?i:e<240?n+(i-n)*(240-e)/60:n)*255}const I0=e=>()=>e;function Bx(e,n){return function(i){return e+i*n}}function Qx(e,n,i){return e=Math.pow(e,i),n=Math.pow(n,i)-e,i=1/i,function(s){return Math.pow(e+s*n,i)}}function Wx(e){return(e=+e)==1?F0:function(n,i){return i-n?Qx(n,i,e):I0(isNaN(n)?i:n)}}function F0(e,n){var i=n-e;return i?Bx(e,i):I0(isNaN(e)?n:e)}const Zp=function e(n){var i=Wx(n);function s(a,u){var f=i((a=Dc(a)).r,(u=Dc(u)).r),h=i(a.g,u.g),p=i(a.b,u.b),y=F0(a.opacity,u.opacity);return function(v){return a.r=f(v),a.g=h(v),a.b=p(v),a.opacity=y(v),a+""}}return s.gamma=e,s}(1);function cr(e,n){return e=+e,n=+n,function(i){return e*(1-i)+n*i}}var Ic=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ac=new RegExp(Ic.source,"g");function Kx(e){return function(){return e}}function Gx(e){return function(n){return e(n)+""}}function Xx(e,n){var i=Ic.lastIndex=ac.lastIndex=0,s,a,u,f=-1,h=[],p=[];for(e=e+"",n=n+"";(s=Ic.exec(e))&&(a=ac.exec(n));)(u=a.index)>i&&(u=n.slice(i,u),h[f]?h[f]+=u:h[++f]=u),(s=s[0])===(a=a[0])?h[f]?h[f]+=a:h[++f]=a:(h[++f]=null,p.push({i:f,x:cr(s,a)})),i=ac.lastIndex;return i<n.length&&(u=n.slice(i),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?Gx(p[0].x):Kx(n):(n=p.length,function(y){for(var v=0,g;v<n;++v)h[(g=p[v]).i]=g.x(y);return h.join("")})}var Jp=180/Math.PI,Fc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function L0(e,n,i,s,a,u){var f,h,p;return(f=Math.sqrt(e*e+n*n))&&(e/=f,n/=f),(p=e*i+n*s)&&(i-=e*p,s-=n*p),(h=Math.sqrt(i*i+s*s))&&(i/=h,s/=h,p/=h),e*s<n*i&&(e=-e,n=-n,p=-p,f=-f),{translateX:a,translateY:u,rotate:Math.atan2(n,e)*Jp,skewX:Math.atan(p)*Jp,scaleX:f,scaleY:h}}var El;function Yx(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?Fc:L0(n.a,n.b,n.c,n.d,n.e,n.f)}function Zx(e){return e==null||(El||(El=document.createElementNS("http://www.w3.org/2000/svg","g")),El.setAttribute("transform",e),!(e=El.transform.baseVal.consolidate()))?Fc:(e=e.matrix,L0(e.a,e.b,e.c,e.d,e.e,e.f))}function $0(e,n,i,s){function a(y){return y.length?y.pop()+" ":""}function u(y,v,g,_,x,S){if(y!==g||v!==_){var b=x.push("translate(",null,n,null,i);S.push({i:b-4,x:cr(y,g)},{i:b-2,x:cr(v,_)})}else(g||_)&&x.push("translate("+g+n+_+i)}function f(y,v,g,_){y!==v?(y-v>180?v+=360:v-y>180&&(y+=360),_.push({i:g.push(a(g)+"rotate(",null,s)-2,x:cr(y,v)})):v&&g.push(a(g)+"rotate("+v+s)}function h(y,v,g,_){y!==v?_.push({i:g.push(a(g)+"skewX(",null,s)-2,x:cr(y,v)}):v&&g.push(a(g)+"skewX("+v+s)}function p(y,v,g,_,x,S){if(y!==g||v!==_){var b=x.push(a(x)+"scale(",null,",",null,")");S.push({i:b-4,x:cr(y,g)},{i:b-2,x:cr(v,_)})}else(g!==1||_!==1)&&x.push(a(x)+"scale("+g+","+_+")")}return function(y,v){var g=[],_=[];return y=e(y),v=e(v),u(y.translateX,y.translateY,v.translateX,v.translateY,g,_),f(y.rotate,v.rotate,g,_),h(y.skewX,v.skewX,g,_),p(y.scaleX,y.scaleY,v.scaleX,v.scaleY,g,_),y=v=null,function(x){for(var S=-1,b=_.length,C;++S<b;)g[(C=_[S]).i]=C.x(x);return g.join("")}}}var Jx=$0(Yx,"px, ","px)","deg)"),ew=$0(Zx,", ",")",")"),tw=1e-12;function eg(e){return((e=Math.exp(e))+1/e)/2}function nw(e){return((e=Math.exp(e))-1/e)/2}function rw(e){return((e=Math.exp(2*e))-1)/(e+1)}const iw=function e(n,i,s){function a(u,f){var h=u[0],p=u[1],y=u[2],v=f[0],g=f[1],_=f[2],x=v-h,S=g-p,b=x*x+S*S,C,k;if(b<tw)k=Math.log(_/y)/n,C=function(I){return[h+I*x,p+I*S,y*Math.exp(n*I*k)]};else{var R=Math.sqrt(b),A=(_*_-y*y+s*b)/(2*y*i*R),P=(_*_-y*y-s*b)/(2*_*i*R),M=Math.log(Math.sqrt(A*A+1)-A),j=Math.log(Math.sqrt(P*P+1)-P);k=(j-M)/n,C=function(I){var L=I*k,K=eg(M),G=y/(i*R)*(K*rw(n*L+M)-nw(M));return[h+G*x,p+G*S,y*K/eg(n*L+M)]}}return C.duration=k*1e3*n/Math.SQRT2,C}return a.rho=function(u){var f=Math.max(.001,+u),h=f*f,p=h*h;return e(f,h,p)},a}(Math.SQRT2,2,4);var Ui=0,$o=0,No=0,U0=1e3,Hl,Uo,Vl=0,Gr=0,Jl=0,Zo=typeof performance=="object"&&performance.now?performance:Date,H0=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function lf(){return Gr||(H0(ow),Gr=Zo.now()+Jl)}function ow(){Gr=0}function ql(){this._call=this._time=this._next=null}ql.prototype=af.prototype={constructor:ql,restart:function(e,n,i){if(typeof e!="function")throw new TypeError("callback is not a function");i=(i==null?lf():+i)+(n==null?0:+n),!this._next&&Uo!==this&&(Uo?Uo._next=this:Hl=this,Uo=this),this._call=e,this._time=i,Lc()},stop:function(){this._call&&(this._call=null,this._time=1/0,Lc())}};function af(e,n,i){var s=new ql;return s.restart(e,n,i),s}function sw(){lf(),++Ui;for(var e=Hl,n;e;)(n=Gr-e._time)>=0&&e._call.call(void 0,n),e=e._next;--Ui}function tg(){Gr=(Vl=Zo.now())+Jl,Ui=$o=0;try{sw()}finally{Ui=0,aw(),Gr=0}}function lw(){var e=Zo.now(),n=e-Vl;n>U0&&(Jl-=n,Vl=e)}function aw(){for(var e,n=Hl,i,s=1/0;n;)n._call?(s>n._time&&(s=n._time),e=n,n=n._next):(i=n._next,n._next=null,n=e?e._next=i:Hl=i);Uo=e,Lc(s)}function Lc(e){if(!Ui){$o&&($o=clearTimeout($o));var n=e-Gr;n>24?(e<1/0&&($o=setTimeout(tg,e-Zo.now()-Jl)),No&&(No=clearInterval(No))):(No||(Vl=Zo.now(),No=setInterval(lw,U0)),Ui=1,H0(tg))}}function ng(e,n,i){var s=new ql;return n=n==null?0:+n,s.restart(a=>{s.stop(),e(a+n)},n,i),s}var uw=ss("start","end","cancel","interrupt"),cw=[],V0=0,rg=1,$c=2,Al=3,ig=4,Uc=5,zl=6;function ea(e,n,i,s,a,u){var f=e.__transition;if(!f)e.__transition={};else if(i in f)return;fw(e,i,{name:n,index:s,group:a,on:uw,tween:cw,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:V0})}function uf(e,n){var i=on(e,n);if(i.state>V0)throw new Error("too late; already scheduled");return i}function _n(e,n){var i=on(e,n);if(i.state>Al)throw new Error("too late; already running");return i}function on(e,n){var i=e.__transition;if(!i||!(i=i[n]))throw new Error("transition not found");return i}function fw(e,n,i){var s=e.__transition,a;s[n]=i,i.timer=af(u,0,i.time);function u(y){i.state=rg,i.timer.restart(f,i.delay,i.time),i.delay<=y&&f(y-i.delay)}function f(y){var v,g,_,x;if(i.state!==rg)return p();for(v in s)if(x=s[v],x.name===i.name){if(x.state===Al)return ng(f);x.state===ig?(x.state=zl,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete s[v]):+v<n&&(x.state=zl,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete s[v])}if(ng(function(){i.state===Al&&(i.state=ig,i.timer.restart(h,i.delay,i.time),h(y))}),i.state=$c,i.on.call("start",e,e.__data__,i.index,i.group),i.state===$c){for(i.state=Al,a=new Array(_=i.tween.length),v=0,g=-1;v<_;++v)(x=i.tween[v].value.call(e,e.__data__,i.index,i.group))&&(a[++g]=x);a.length=g+1}}function h(y){for(var v=y<i.duration?i.ease.call(null,y/i.duration):(i.timer.restart(p),i.state=Uc,1),g=-1,_=a.length;++g<_;)a[g].call(e,v);i.state===Uc&&(i.on.call("end",e,e.__data__,i.index,i.group),p())}function p(){i.state=zl,i.timer.stop(),delete s[n];for(var y in s)return;delete e.__transition}}function jl(e,n){var i=e.__transition,s,a,u=!0,f;if(i){n=n==null?null:n+"";for(f in i){if((s=i[f]).name!==n){u=!1;continue}a=s.state>$c&&s.state<Uc,s.state=zl,s.timer.stop(),s.on.call(a?"interrupt":"cancel",e,e.__data__,s.index,s.group),delete i[f]}u&&delete e.__transition}}function hw(e){return this.each(function(){jl(this,e)})}function dw(e,n){var i,s;return function(){var a=_n(this,e),u=a.tween;if(u!==i){s=i=u;for(var f=0,h=s.length;f<h;++f)if(s[f].name===n){s=s.slice(),s.splice(f,1);break}}a.tween=s}}function pw(e,n,i){var s,a;if(typeof i!="function")throw new Error;return function(){var u=_n(this,e),f=u.tween;if(f!==s){a=(s=f).slice();for(var h={name:n,value:i},p=0,y=a.length;p<y;++p)if(a[p].name===n){a[p]=h;break}p===y&&a.push(h)}u.tween=a}}function gw(e,n){var i=this._id;if(e+="",arguments.length<2){for(var s=on(this.node(),i).tween,a=0,u=s.length,f;a<u;++a)if((f=s[a]).name===e)return f.value;return null}return this.each((n==null?dw:pw)(i,e,n))}function cf(e,n,i){var s=e._id;return e.each(function(){var a=_n(this,s);(a.value||(a.value={}))[n]=i.apply(this,arguments)}),function(a){return on(a,s).value[n]}}function q0(e,n){var i;return(typeof n=="number"?cr:n instanceof Yo?Zp:(i=Yo(n))?(n=i,Zp):Xx)(e,n)}function yw(e){return function(){this.removeAttribute(e)}}function mw(e){return function(){this.removeAttributeNS(e.space,e.local)}}function vw(e,n,i){var s,a=i+"",u;return function(){var f=this.getAttribute(e);return f===a?null:f===s?u:u=n(s=f,i)}}function _w(e,n,i){var s,a=i+"",u;return function(){var f=this.getAttributeNS(e.space,e.local);return f===a?null:f===s?u:u=n(s=f,i)}}function xw(e,n,i){var s,a,u;return function(){var f,h=i(this),p;return h==null?void this.removeAttribute(e):(f=this.getAttribute(e),p=h+"",f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h)))}}function ww(e,n,i){var s,a,u;return function(){var f,h=i(this),p;return h==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),p=h+"",f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h)))}}function kw(e,n){var i=Zl(e),s=i==="transform"?ew:q0;return this.attrTween(e,typeof n=="function"?(i.local?ww:xw)(i,s,cf(this,"attr."+e,n)):n==null?(i.local?mw:yw)(i):(i.local?_w:vw)(i,s,n))}function Sw(e,n){return function(i){this.setAttribute(e,n.call(this,i))}}function Cw(e,n){return function(i){this.setAttributeNS(e.space,e.local,n.call(this,i))}}function bw(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&Cw(e,u)),i}return a._value=n,a}function Ew(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&Sw(e,u)),i}return a._value=n,a}function Pw(e,n){var i="attr."+e;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;var s=Zl(e);return this.tween(i,(s.local?bw:Ew)(s,n))}function Tw(e,n){return function(){uf(this,e).delay=+n.apply(this,arguments)}}function Mw(e,n){return n=+n,function(){uf(this,e).delay=n}}function Ow(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?Tw:Mw)(n,e)):on(this.node(),n).delay}function Nw(e,n){return function(){_n(this,e).duration=+n.apply(this,arguments)}}function Rw(e,n){return n=+n,function(){_n(this,e).duration=n}}function Aw(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?Nw:Rw)(n,e)):on(this.node(),n).duration}function zw(e,n){if(typeof n!="function")throw new Error;return function(){_n(this,e).ease=n}}function jw(e){var n=this._id;return arguments.length?this.each(zw(n,e)):on(this.node(),n).ease}function Dw(e,n){return function(){var i=n.apply(this,arguments);if(typeof i!="function")throw new Error;_n(this,e).ease=i}}function Iw(e){if(typeof e!="function")throw new Error;return this.each(Dw(this._id,e))}function Fw(e){typeof e!="function"&&(e=S0(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=[],p,y=0;y<f;++y)(p=u[y])&&e.call(p,p.__data__,y,u)&&h.push(p);return new Un(s,this._parents,this._name,this._id)}function Lw(e){if(e._id!==this._id)throw new Error;for(var n=this._groups,i=e._groups,s=n.length,a=i.length,u=Math.min(s,a),f=new Array(s),h=0;h<u;++h)for(var p=n[h],y=i[h],v=p.length,g=f[h]=new Array(v),_,x=0;x<v;++x)(_=p[x]||y[x])&&(g[x]=_);for(;h<s;++h)f[h]=n[h];return new Un(f,this._parents,this._name,this._id)}function $w(e){return(e+"").trim().split(/^|\s+/).every(function(n){var i=n.indexOf(".");return i>=0&&(n=n.slice(0,i)),!n||n==="start"})}function Uw(e,n,i){var s,a,u=$w(n)?uf:_n;return function(){var f=u(this,e),h=f.on;h!==s&&(a=(s=h).copy()).on(n,i),f.on=a}}function Hw(e,n){var i=this._id;return arguments.length<2?on(this.node(),i).on.on(e):this.each(Uw(i,e,n))}function Vw(e){return function(){var n=this.parentNode;for(var i in this.__transition)if(+i!==e)return;n&&n.removeChild(this)}}function qw(){return this.on("end.remove",Vw(this._id))}function Bw(e){var n=this._name,i=this._id;typeof e!="function"&&(e=rf(e));for(var s=this._groups,a=s.length,u=new Array(a),f=0;f<a;++f)for(var h=s[f],p=h.length,y=u[f]=new Array(p),v,g,_=0;_<p;++_)(v=h[_])&&(g=e.call(v,v.__data__,_,h))&&("__data__"in v&&(g.__data__=v.__data__),y[_]=g,ea(y[_],n,i,_,y,on(v,i)));return new Un(u,this._parents,n,i)}function Qw(e){var n=this._name,i=this._id;typeof e!="function"&&(e=k0(e));for(var s=this._groups,a=s.length,u=[],f=[],h=0;h<a;++h)for(var p=s[h],y=p.length,v,g=0;g<y;++g)if(v=p[g]){for(var _=e.call(v,v.__data__,g,p),x,S=on(v,i),b=0,C=_.length;b<C;++b)(x=_[b])&&ea(x,n,i,b,_,S);u.push(_),f.push(v)}return new Un(u,f,n,i)}var Ww=os.prototype.constructor;function Kw(){return new Ww(this._groups,this._parents)}function Gw(e,n){var i,s,a;return function(){var u=$i(this,e),f=(this.style.removeProperty(e),$i(this,e));return u===f?null:u===i&&f===s?a:a=n(i=u,s=f)}}function B0(e){return function(){this.style.removeProperty(e)}}function Xw(e,n,i){var s,a=i+"",u;return function(){var f=$i(this,e);return f===a?null:f===s?u:u=n(s=f,i)}}function Yw(e,n,i){var s,a,u;return function(){var f=$i(this,e),h=i(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(e),$i(this,e))),f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h))}}function Zw(e,n){var i,s,a,u="style."+n,f="end."+u,h;return function(){var p=_n(this,e),y=p.on,v=p.value[u]==null?h||(h=B0(n)):void 0;(y!==i||a!==v)&&(s=(i=y).copy()).on(f,a=v),p.on=s}}function Jw(e,n,i){var s=(e+="")=="transform"?Jx:q0;return n==null?this.styleTween(e,Gw(e,s)).on("end.style."+e,B0(e)):typeof n=="function"?this.styleTween(e,Yw(e,s,cf(this,"style."+e,n))).each(Zw(this._id,e)):this.styleTween(e,Xw(e,s,n),i).on("end.style."+e,null)}function e2(e,n,i){return function(s){this.style.setProperty(e,n.call(this,s),i)}}function t2(e,n,i){var s,a;function u(){var f=n.apply(this,arguments);return f!==a&&(s=(a=f)&&e2(e,f,i)),s}return u._value=n,u}function n2(e,n,i){var s="style."+(e+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(n==null)return this.tween(s,null);if(typeof n!="function")throw new Error;return this.tween(s,t2(e,n,i??""))}function r2(e){return function(){this.textContent=e}}function i2(e){return function(){var n=e(this);this.textContent=n??""}}function o2(e){return this.tween("text",typeof e=="function"?i2(cf(this,"text",e)):r2(e==null?"":e+""))}function s2(e){return function(n){this.textContent=e.call(this,n)}}function l2(e){var n,i;function s(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&s2(a)),n}return s._value=e,s}function a2(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,l2(e))}function u2(){for(var e=this._name,n=this._id,i=Q0(),s=this._groups,a=s.length,u=0;u<a;++u)for(var f=s[u],h=f.length,p,y=0;y<h;++y)if(p=f[y]){var v=on(p,n);ea(p,e,i,y,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Un(s,this._parents,e,i)}function c2(){var e,n,i=this,s=i._id,a=i.size();return new Promise(function(u,f){var h={value:f},p={value:function(){--a===0&&u()}};i.each(function(){var y=_n(this,s),v=y.on;v!==e&&(n=(e=v).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(p)),y.on=n}),a===0&&u()})}var f2=0;function Un(e,n,i,s){this._groups=e,this._parents=n,this._name=i,this._id=s}function Q0(){return++f2}var Mn=os.prototype;Un.prototype={constructor:Un,select:Bw,selectAll:Qw,selectChild:Mn.selectChild,selectChildren:Mn.selectChildren,filter:Fw,merge:Lw,selection:Kw,transition:u2,call:Mn.call,nodes:Mn.nodes,node:Mn.node,size:Mn.size,empty:Mn.empty,each:Mn.each,on:Hw,attr:kw,attrTween:Pw,style:Jw,styleTween:n2,text:o2,textTween:a2,remove:qw,tween:gw,delay:Ow,duration:Aw,ease:jw,easeVarying:Iw,end:c2,[Symbol.iterator]:Mn[Symbol.iterator]};function h2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var d2={time:null,delay:0,duration:250,ease:h2};function p2(e,n){for(var i;!(i=e.__transition)||!(i=i[n]);)if(!(e=e.parentNode))throw new Error(`transition ${n} not found`);return i}function g2(e){var n,i;e instanceof Un?(n=e._id,e=e._name):(n=Q0(),(i=d2).time=lf(),e=e==null?null:e+"");for(var s=this._groups,a=s.length,u=0;u<a;++u)for(var f=s[u],h=f.length,p,y=0;y<h;++y)(p=f[y])&&ea(p,e,n,y,f,i||p2(p,n));return new Un(s,this._parents,e,n)}os.prototype.interrupt=hw;os.prototype.transition=g2;const Pl=e=>()=>e;function y2(e,{sourceEvent:n,target:i,transform:s,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:s,enumerable:!0,configurable:!0},_:{value:a}})}function In(e,n,i){this.k=e,this.x=n,this.y=i}In.prototype={constructor:In,scale:function(e){return e===1?this:new In(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new In(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 ff=new In(1,0,0);fn.prototype=In.prototype;function fn(e){for(;!e.__zoom;)if(!(e=e.parentNode))return ff;return e.__zoom}function uc(e){e.stopImmediatePropagation()}function Ro(e){e.preventDefault(),e.stopImmediatePropagation()}function m2(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function v2(){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 og(){return this.__zoom||ff}function _2(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function x2(){return navigator.maxTouchPoints||"ontouchstart"in this}function w2(e,n,i){var s=e.invertX(n[0][0])-i[0][0],a=e.invertX(n[1][0])-i[1][0],u=e.invertY(n[0][1])-i[0][1],f=e.invertY(n[1][1])-i[1][1];return e.translate(a>s?(s+a)/2:Math.min(0,s)||Math.max(0,a),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function k2(){var e=m2,n=v2,i=w2,s=_2,a=x2,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=iw,y=ss("start","zoom","end"),v,g,_,x=500,S=150,b=0,C=10;function k(F){F.property("__zoom",og).on("wheel.zoom",L,{passive:!1}).on("mousedown.zoom",K).on("dblclick.zoom",G).filter(a).on("touchstart.zoom",te).on("touchmove.zoom",oe).on("touchend.zoom touchcancel.zoom",he).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(F,ee,W,ie){var Q=F.selection?F.selection():F;Q.property("__zoom",og),F!==Q?M(F,ee,W,ie):Q.interrupt().each(function(){j(this,arguments).event(ie).start().zoom(null,typeof ee=="function"?ee.apply(this,arguments):ee).end()})},k.scaleBy=function(F,ee,W,ie){k.scaleTo(F,function(){var Q=this.__zoom.k,q=typeof ee=="function"?ee.apply(this,arguments):ee;return Q*q},W,ie)},k.scaleTo=function(F,ee,W,ie){k.transform(F,function(){var Q=n.apply(this,arguments),q=this.__zoom,B=W==null?P(Q):typeof W=="function"?W.apply(this,arguments):W,T=q.invert(B),V=typeof ee=="function"?ee.apply(this,arguments):ee;return i(A(R(q,V),B,T),Q,f)},W,ie)},k.translateBy=function(F,ee,W,ie){k.transform(F,function(){return i(this.__zoom.translate(typeof ee=="function"?ee.apply(this,arguments):ee,typeof W=="function"?W.apply(this,arguments):W),n.apply(this,arguments),f)},null,ie)},k.translateTo=function(F,ee,W,ie,Q){k.transform(F,function(){var q=n.apply(this,arguments),B=this.__zoom,T=ie==null?P(q):typeof ie=="function"?ie.apply(this,arguments):ie;return i(ff.translate(T[0],T[1]).scale(B.k).translate(typeof ee=="function"?-ee.apply(this,arguments):-ee,typeof W=="function"?-W.apply(this,arguments):-W),q,f)},ie,Q)};function R(F,ee){return ee=Math.max(u[0],Math.min(u[1],ee)),ee===F.k?F:new In(ee,F.x,F.y)}function A(F,ee,W){var ie=ee[0]-W[0]*F.k,Q=ee[1]-W[1]*F.k;return ie===F.x&&Q===F.y?F:new In(F.k,ie,Q)}function P(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function M(F,ee,W,ie){F.on("start.zoom",function(){j(this,arguments).event(ie).start()}).on("interrupt.zoom end.zoom",function(){j(this,arguments).event(ie).end()}).tween("zoom",function(){var Q=this,q=arguments,B=j(Q,q).event(ie),T=n.apply(Q,q),V=W==null?P(T):typeof W=="function"?W.apply(Q,q):W,se=Math.max(T[1][0]-T[0][0],T[1][1]-T[0][1]),ae=Q.__zoom,me=typeof ee=="function"?ee.apply(Q,q):ee,we=p(ae.invert(V).concat(se/ae.k),me.invert(V).concat(se/me.k));return function(Ce){if(Ce===1)Ce=me;else{var Se=we(Ce),Re=se/Se[2];Ce=new In(Re,V[0]-Se[0]*Re,V[1]-Se[1]*Re)}B.zoom(null,Ce)}})}function j(F,ee,W){return!W&&F.__zooming||new I(F,ee)}function I(F,ee){this.that=F,this.args=ee,this.active=0,this.sourceEvent=null,this.extent=n.apply(F,ee),this.taps=0}I.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,ee){return this.mouse&&F!=="mouse"&&(this.mouse[1]=ee.invert(this.mouse[0])),this.touch0&&F!=="touch"&&(this.touch0[1]=ee.invert(this.touch0[0])),this.touch1&&F!=="touch"&&(this.touch1[1]=ee.invert(this.touch1[0])),this.that.__zoom=ee,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(F){var ee=Vt(this.that).datum();y.call(F,this.that,new y2(F,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:y}),ee)}};function L(F,...ee){if(!e.apply(this,arguments))return;var W=j(this,ee).event(F),ie=this.__zoom,Q=Math.max(u[0],Math.min(u[1],ie.k*Math.pow(2,s.apply(this,arguments)))),q=hn(F);if(W.wheel)(W.mouse[0][0]!==q[0]||W.mouse[0][1]!==q[1])&&(W.mouse[1]=ie.invert(W.mouse[0]=q)),clearTimeout(W.wheel);else{if(ie.k===Q)return;W.mouse=[q,ie.invert(q)],jl(this),W.start()}Ro(F),W.wheel=setTimeout(B,S),W.zoom("mouse",i(A(R(ie,Q),W.mouse[0],W.mouse[1]),W.extent,f));function B(){W.wheel=null,W.end()}}function K(F,...ee){if(_||!e.apply(this,arguments))return;var W=F.currentTarget,ie=j(this,ee,!0).event(F),Q=Vt(F.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",se,!0),q=hn(F,W),B=F.clientX,T=F.clientY;A0(F.view),uc(F),ie.mouse=[q,this.__zoom.invert(q)],jl(this),ie.start();function V(ae){if(Ro(ae),!ie.moved){var me=ae.clientX-B,we=ae.clientY-T;ie.moved=me*me+we*we>b}ie.event(ae).zoom("mouse",i(A(ie.that.__zoom,ie.mouse[0]=hn(ae,W),ie.mouse[1]),ie.extent,f))}function se(ae){Q.on("mousemove.zoom mouseup.zoom",null),z0(ae.view,ie.moved),Ro(ae),ie.event(ae).end()}}function G(F,...ee){if(e.apply(this,arguments)){var W=this.__zoom,ie=hn(F.changedTouches?F.changedTouches[0]:F,this),Q=W.invert(ie),q=W.k*(F.shiftKey?.5:2),B=i(A(R(W,q),ie,Q),n.apply(this,ee),f);Ro(F),h>0?Vt(this).transition().duration(h).call(M,B,ie,F):Vt(this).call(k.transform,B,ie,F)}}function te(F,...ee){if(e.apply(this,arguments)){var W=F.touches,ie=W.length,Q=j(this,ee,F.changedTouches.length===ie).event(F),q,B,T,V;for(uc(F),B=0;B<ie;++B)T=W[B],V=hn(T,this),V=[V,this.__zoom.invert(V),T.identifier],Q.touch0?!Q.touch1&&Q.touch0[2]!==V[2]&&(Q.touch1=V,Q.taps=0):(Q.touch0=V,q=!0,Q.taps=1+!!v);v&&(v=clearTimeout(v)),q&&(Q.taps<2&&(g=V[0],v=setTimeout(function(){v=null},x)),jl(this),Q.start())}}function oe(F,...ee){if(this.__zooming){var W=j(this,ee).event(F),ie=F.changedTouches,Q=ie.length,q,B,T,V;for(Ro(F),q=0;q<Q;++q)B=ie[q],T=hn(B,this),W.touch0&&W.touch0[2]===B.identifier?W.touch0[0]=T:W.touch1&&W.touch1[2]===B.identifier&&(W.touch1[0]=T);if(B=W.that.__zoom,W.touch1){var se=W.touch0[0],ae=W.touch0[1],me=W.touch1[0],we=W.touch1[1],Ce=(Ce=me[0]-se[0])*Ce+(Ce=me[1]-se[1])*Ce,Se=(Se=we[0]-ae[0])*Se+(Se=we[1]-ae[1])*Se;B=R(B,Math.sqrt(Ce/Se)),T=[(se[0]+me[0])/2,(se[1]+me[1])/2],V=[(ae[0]+we[0])/2,(ae[1]+we[1])/2]}else if(W.touch0)T=W.touch0[0],V=W.touch0[1];else return;W.zoom("touch",i(A(B,T,V),W.extent,f))}}function he(F,...ee){if(this.__zooming){var W=j(this,ee).event(F),ie=F.changedTouches,Q=ie.length,q,B;for(uc(F),_&&clearTimeout(_),_=setTimeout(function(){_=null},x),q=0;q<Q;++q)B=ie[q],W.touch0&&W.touch0[2]===B.identifier?delete W.touch0:W.touch1&&W.touch1[2]===B.identifier&&delete W.touch1;if(W.touch1&&!W.touch0&&(W.touch0=W.touch1,delete W.touch1),W.touch0)W.touch0[1]=this.__zoom.invert(W.touch0[0]);else if(W.end(),W.taps===2&&(B=hn(B,this),Math.hypot(g[0]-B[0],g[1]-B[1])<C)){var T=Vt(this).on("dblclick.zoom");T&&T.apply(this,arguments)}}}return k.wheelDelta=function(F){return arguments.length?(s=typeof F=="function"?F:Pl(+F),k):s},k.filter=function(F){return arguments.length?(e=typeof F=="function"?F:Pl(!!F),k):e},k.touchable=function(F){return arguments.length?(a=typeof F=="function"?F:Pl(!!F),k):a},k.extent=function(F){return arguments.length?(n=typeof F=="function"?F:Pl([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),k):n},k.scaleExtent=function(F){return arguments.length?(u[0]=+F[0],u[1]=+F[1],k):[u[0],u[1]]},k.translateExtent=function(F){return arguments.length?(f[0][0]=+F[0][0],f[1][0]=+F[1][0],f[0][1]=+F[0][1],f[1][1]=+F[1][1],k):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},k.constrain=function(F){return arguments.length?(i=F,k):i},k.duration=function(F){return arguments.length?(h=+F,k):h},k.interpolate=function(F){return arguments.length?(p=F,k):p},k.on=function(){var F=y.on.apply(y,arguments);return F===y?k:F},k.clickDistance=function(F){return arguments.length?(b=(F=+F)*F,k):Math.sqrt(b)},k.tapDistance=function(F){return arguments.length?(C=+F,k):C},k}class sg extends Map{constructor(n,i=b2){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),n!=null)for(const[s,a]of n)this.set(s,a)}get(n){return super.get(lg(this,n))}has(n){return super.has(lg(this,n))}set(n,i){return super.set(S2(this,n),i)}delete(n){return super.delete(C2(this,n))}}function lg({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):i}function S2({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):(e.set(s,i),i)}function C2({_intern:e,_key:n},i){const s=n(i);return e.has(s)&&(i=e.get(s),e.delete(s)),i}function b2(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ag(e,n){let i;if(n===void 0)for(const s of e)s!=null&&(i<s||i===void 0&&s>=s)&&(i=s);else{let s=-1;for(let a of e)(a=n(a,++s,e))!=null&&(i<a||i===void 0&&a>=a)&&(i=a)}return i}function ug(e,n){let i;if(n===void 0)for(const s of e)s!=null&&(i>s||i===void 0&&s>=s)&&(i=s);else{let s=-1;for(let a of e)(a=n(a,++s,e))!=null&&(i>a||i===void 0&&a>=a)&&(i=a)}return i}function E2(e,n){let i=0;for(let s of e)(s=+s)&&(i+=s);return i}var P2=typeof global=="object"&&global&&global.Object===Object&&global,T2=typeof self=="object"&&self&&self.Object===Object&&self,W0=P2||T2||Function("return this")(),Bl=W0.Symbol,K0=Object.prototype,M2=K0.hasOwnProperty,O2=K0.toString,Ao=Bl?Bl.toStringTag:void 0;function N2(e){var n=M2.call(e,Ao),i=e[Ao];try{e[Ao]=void 0;var s=!0}catch{}var a=O2.call(e);return s&&(n?e[Ao]=i:delete e[Ao]),a}var R2=Object.prototype,A2=R2.toString;function z2(e){return A2.call(e)}var j2="[object Null]",D2="[object Undefined]",cg=Bl?Bl.toStringTag:void 0;function I2(e){return e==null?e===void 0?D2:j2:cg&&cg in Object(e)?N2(e):z2(e)}function F2(e){return e!=null&&typeof e=="object"}var L2="[object Symbol]";function $2(e){return typeof e=="symbol"||F2(e)&&I2(e)==L2}var U2=/\s/;function H2(e){for(var n=e.length;n--&&U2.test(e.charAt(n)););return n}var V2=/^\s+/;function q2(e){return e&&e.slice(0,H2(e)+1).replace(V2,"")}function Ql(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var fg=NaN,B2=/^[-+]0x[0-9a-f]+$/i,Q2=/^0b[01]+$/i,W2=/^0o[0-7]+$/i,K2=parseInt;function hg(e){if(typeof e=="number")return e;if($2(e))return fg;if(Ql(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Ql(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=q2(e);var i=Q2.test(e);return i||W2.test(e)?K2(e.slice(2),i?2:8):B2.test(e)?fg:+e}var cc=function(){return W0.Date.now()},G2="Expected a function",X2=Math.max,Y2=Math.min;function G0(e,n,i){var s,a,u,f,h,p,y=0,v=!1,g=!1,_=!0;if(typeof e!="function")throw new TypeError(G2);n=hg(n)||0,Ql(i)&&(v=!!i.leading,g="maxWait"in i,u=g?X2(hg(i.maxWait)||0,n):u,_="trailing"in i?!!i.trailing:_);function x(j){var I=s,L=a;return s=a=void 0,y=j,f=e.apply(L,I),f}function S(j){return y=j,h=setTimeout(k,n),v?x(j):f}function b(j){var I=j-p,L=j-y,K=n-I;return g?Y2(K,u-L):K}function C(j){var I=j-p,L=j-y;return p===void 0||I>=n||I<0||g&&L>=u}function k(){var j=cc();if(C(j))return R(j);h=setTimeout(k,b(j))}function R(j){return h=void 0,_&&s?x(j):(s=a=void 0,f)}function A(){h!==void 0&&clearTimeout(h),y=0,s=p=a=h=void 0}function P(){return h===void 0?f:R(cc())}function M(){var j=cc(),I=C(j);if(s=arguments,a=this,p=j,I){if(h===void 0)return S(p);if(g)return clearTimeout(h),h=setTimeout(k,n),x(p)}return h===void 0&&(h=setTimeout(k,n)),f}return M.cancel=A,M.flush=P,M}var Z2="Expected a function";function J2(e,n,i){var s=!0,a=!0;if(typeof e!="function")throw new TypeError(Z2);return Ql(i)&&(s="leading"in i?!!i.leading:s,a="trailing"in i?!!i.trailing:a),G0(e,n,{leading:s,maxWait:n,trailing:a})}var Qr=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-Qr.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?Qr.Bounce.In(e*2)*.5:Qr.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}}}}),Ho=function(){return performance.now()},X0=function(){function e(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,n)}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(i){return n._tweens[i]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];for(var a=0,u=i;a<u.length;a++){var f=u[a];(n=f._group)===null||n===void 0||n.remove(f),f._group=this,this._tweens[f.getId()]=f,this._tweensAddedDuringUpdate[f.getId()]=f}},e.prototype.remove=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var s=0,a=n;s<a.length;s++){var u=a[s];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,i){n===void 0&&(n=Ho()),i===void 0&&(i=!0);var s=Object.keys(this._tweens);if(s.length!==0)for(;s.length>0;){this._tweensAddedDuringUpdate={};for(var a=0;a<s.length;a++){var u=this._tweens[s[a]],f=!i;u&&u.update(n,f)===!1&&!i&&this.remove(u)}s=Object.keys(this._tweensAddedDuringUpdate)}},e}(),Hc={Linear:function(e,n){var i=e.length-1,s=i*n,a=Math.floor(s),u=Hc.Utils.Linear;return n<0?u(e[0],e[1],s):n>1?u(e[i],e[i-1],i-s):u(e[a],e[a+1>i?i:a+1],s-a)},Utils:{Linear:function(e,n,i){return(n-e)*i+e}}},Y0=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),Vc=new X0,dg=function(){function e(n,i){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=Qr.Linear.None,this._interpolationFunction=Hc.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=Y0.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=n,typeof i=="object"?(this._group=i,i.add(this)):i===!0&&(this._group=Vc,Vc.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,i){if(i===void 0&&(i=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=i<0?0:i,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,i){if(n===void 0&&(n=Ho()),i===void 0&&(i=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var s in this._valuesStartRepeat)this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s]}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||i){if(this._propertiesAreSetUp=!0,!this._isDynamic){var a={};for(var u in this._valuesEnd)a[u]=this._valuesEnd[u];this._valuesEnd=a}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,i)}return this},e.prototype.startFromCurrentValues=function(n){return this.start(n,!0)},e.prototype._setupProperties=function(n,i,s,a,u){for(var f in s){var h=n[f],p=Array.isArray(h),y=p?"array":typeof h,v=!p&&Array.isArray(s[f]);if(!(y==="undefined"||y==="function")){if(v){var g=s[f];if(g.length===0)continue;for(var _=[h],x=0,S=g.length;x<S;x+=1){var b=this._handleRelativeValue(h,g[x]);if(isNaN(b)){v=!1,console.warn("Found invalid interpolation list. Skipping.");break}_.push(b)}v&&(s[f]=_)}if((y==="object"||p)&&h&&!v){i[f]=p?[]:{};var C=h;for(var k in C)i[f][k]=C[k];a[f]=p?[]:{};var g=s[f];if(!this._isDynamic){var R={};for(var k in g)R[k]=g[k];s[f]=g=R}this._setupProperties(C,i[f],g,a[f],u)}else(typeof i[f]>"u"||u)&&(i[f]=h),p||(i[f]*=1),v?a[f]=s[f].slice().reverse():a[f]=i[f]||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=Ho()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this)},e.prototype.resume=function(n){return n===void 0&&(n=Ho()),!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,i=this._chainedTweens.length;n<i;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=Qr.Linear.None),this._easingFunction=n,this},e.prototype.interpolation=function(n){return n===void 0&&(n=Hc.Linear),this._interpolationFunction=n,this},e.prototype.chain=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];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,i){var s=this,a;if(n===void 0&&(n=Ho()),i===void 0&&(i=e.autoStartOnUpdate),this._isPaused)return!0;var u;if(!this._goToEnd&&!this._isPlaying)if(i)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 f=n-this._startTime,h=this._duration+((a=this._repeatDelayTime)!==null&&a!==void 0?a:this._delayTime),p=this._duration+this._repeat*h,y=function(){if(s._duration===0||f>p)return 1;var b=Math.trunc(f/h),C=f-b*h,k=Math.min(C/s._duration,1);return k===0&&f===s._duration?1:k},v=y(),g=this._easingFunction(v);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,g),this._onUpdateCallback&&this._onUpdateCallback(this._object,v),this._duration===0||f>=this._duration)if(this._repeat>0){var _=Math.min(Math.trunc((f-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,S=this._chainedTweens.length;x<S;x++)this._chainedTweens[x].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,i,s,a){for(var u in s)if(i[u]!==void 0){var f=i[u]||0,h=s[u],p=Array.isArray(n[u]),y=Array.isArray(h),v=!p&&y;v?n[u]=this._interpolationFunction(h,a):typeof h=="object"&&h?this._updateProperties(n[u],f,h,a):(h=this._handleRelativeValue(f,h),typeof h=="number"&&(n[u]=f+(h-f)*a))}},e.prototype._handleRelativeValue=function(n,i){return typeof i!="string"?i:i.charAt(0)==="+"||i.charAt(0)==="-"?n+parseFloat(i):parseFloat(i)},e.prototype._swapEndStartRepeatValues=function(n){var i=this._valuesStartRepeat[n],s=this._valuesEnd[n];typeof s=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(s):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=i},e.autoStartOnUpdate=!1,e}();Y0.nextId;var vn=Vc;vn.getAll.bind(vn);vn.removeAll.bind(vn);vn.add.bind(vn);vn.remove.bind(vn);vn.update.bind(vn);function pg(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function ek(e){if(Array.isArray(e))return e}function tk(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function nk(e,n,i){return Object.defineProperty(e,"prototype",{writable:!1}),e}function rk(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function ik(){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 ok(e,n){return ek(e)||rk(e,n)||sk(e,n)||ik()}function sk(e,n){if(e){if(typeof e=="string")return pg(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?pg(e,n):void 0}}var lk=nk(function e(n,i){var s=i.default,a=s===void 0?null:s,u=i.triggerUpdate,f=u===void 0?!0:u,h=i.onChange,p=h===void 0?function(y,v){}:h;tk(this,e),this.name=n,this.defaultVal=a,this.triggerUpdate=f,this.onChange=p});function hf(e){var n=e.stateInit,i=n===void 0?function(){return{}}:n,s=e.props,a=s===void 0?{}:s,u=e.methods,f=u===void 0?{}:u,h=e.aliases,p=h===void 0?{}:h,y=e.init,v=y===void 0?function(){}:y,g=e.update,_=g===void 0?function(){}:g,x=Object.keys(a).map(function(S){return new lk(S,a[S])});return function S(){for(var b=arguments.length,C=new Array(b),k=0;k<b;k++)C[k]=arguments[k];var R=!!(this instanceof S&&this.constructor),A=R?C.shift():void 0,P=C[0],M=P===void 0?{}:P,j=Object.assign({},i instanceof Function?i(M):i,{initialised:!1}),I={};function L(te){return K(te,M),G(),L}var K=function(oe,he){v.call(L,oe,j,he),j.initialised=!0},G=G0(function(){j.initialised&&(_.call(L,j,I),I={})},1);return x.forEach(function(te){L[te.name]=oe(te);function oe(he){var F=he.name,ee=he.triggerUpdate,W=ee===void 0?!1:ee,ie=he.onChange,Q=ie===void 0?function(T,V){}:ie,q=he.defaultVal,B=q===void 0?null:q;return function(T){var V=j[F];if(!arguments.length)return V;var se=T===void 0?B:T;return j[F]=se,Q.call(L,se,j,V),!I.hasOwnProperty(F)&&(I[F]=V),W&&G(),L}}}),Object.keys(f).forEach(function(te){L[te]=function(){for(var oe,he=arguments.length,F=new Array(he),ee=0;ee<he;ee++)F[ee]=arguments[ee];return(oe=f[te]).call.apply(oe,[L,j].concat(F))}}),Object.entries(p).forEach(function(te){var oe=ok(te,2),he=oe[0],F=oe[1];return L[he]=L[F]}),L.resetProps=function(){return x.forEach(function(te){L[te.name](te.defaultVal)}),L},L.resetProps(),j._rerender=G,R&&A&&L(A),L}}var Ae=function(e){return typeof e=="function"?e:typeof e=="string"?function(n){return n[e]}:function(n){return e}};function Wl(e){"@babel/helpers - typeof";return Wl=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},Wl(e)}var ak=/^\s+/,uk=/\s+$/;function ge(e,n){if(e=e||"",n=n||{},e instanceof ge)return e;if(!(this instanceof ge))return new ge(e,n);var i=ck(e);this._originalInput=e,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||i.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=i.ok}ge.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(),i,s,a,u,f,h;return i=n.r/255,s=n.g/255,a=n.b/255,i<=.03928?u=i/12.92:u=Math.pow((i+.055)/1.055,2.4),s<=.03928?f=s/12.92:f=Math.pow((s+.055)/1.055,2.4),a<=.03928?h=a/12.92:h=Math.pow((a+.055)/1.055,2.4),.2126*u+.7152*f+.0722*h},setAlpha:function(n){return this._a=Z0(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=yg(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=yg(this._r,this._g,this._b),i=Math.round(n.h*360),s=Math.round(n.s*100),a=Math.round(n.v*100);return this._a==1?"hsv("+i+", "+s+"%, "+a+"%)":"hsva("+i+", "+s+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var n=gg(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=gg(this._r,this._g,this._b),i=Math.round(n.h*360),s=Math.round(n.s*100),a=Math.round(n.l*100);return this._a==1?"hsl("+i+", "+s+"%, "+a+"%)":"hsla("+i+", "+s+"%, "+a+"%, "+this._roundA+")"},toHex:function(n){return mg(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return pk(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($e(this._r,255)*100)+"%",g:Math.round($e(this._g,255)*100)+"%",b:Math.round($e(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round($e(this._r,255)*100)+"%, "+Math.round($e(this._g,255)*100)+"%, "+Math.round($e(this._b,255)*100)+"%)":"rgba("+Math.round($e(this._r,255)*100)+"%, "+Math.round($e(this._g,255)*100)+"%, "+Math.round($e(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ek[mg(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var i="#"+vg(this._r,this._g,this._b,this._a),s=i,a=this._gradientType?"GradientType = 1, ":"";if(n){var u=ge(n);s="#"+vg(u._r,u._g,u._b,u._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+i+",endColorstr="+s+")"},toString:function(n){var i=!!n;n=n||this._format;var s=!1,a=this._a<1&&this._a>=0,u=!i&&a&&(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"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return ge(this.toString())},_applyModification:function(n,i){var s=n.apply(null,[this].concat([].slice.call(i)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(vk,arguments)},brighten:function(){return this._applyModification(_k,arguments)},darken:function(){return this._applyModification(xk,arguments)},desaturate:function(){return this._applyModification(gk,arguments)},saturate:function(){return this._applyModification(yk,arguments)},greyscale:function(){return this._applyModification(mk,arguments)},spin:function(){return this._applyModification(wk,arguments)},_applyCombination:function(n,i){return n.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(Ck,arguments)},complement:function(){return this._applyCombination(kk,arguments)},monochromatic:function(){return this._applyCombination(bk,arguments)},splitcomplement:function(){return this._applyCombination(Sk,arguments)},triad:function(){return this._applyCombination(_g,[3])},tetrad:function(){return this._applyCombination(_g,[4])}};ge.fromRatio=function(e,n){if(Wl(e)=="object"){var i={};for(var s in e)e.hasOwnProperty(s)&&(s==="a"?i[s]=e[s]:i[s]=Vo(e[s]));e=i}return ge(e,n)};function ck(e){var n={r:0,g:0,b:0},i=1,s=null,a=null,u=null,f=!1,h=!1;return typeof e=="string"&&(e=Ok(e)),Wl(e)=="object"&&(On(e.r)&&On(e.g)&&On(e.b)?(n=fk(e.r,e.g,e.b),f=!0,h=String(e.r).substr(-1)==="%"?"prgb":"rgb"):On(e.h)&&On(e.s)&&On(e.v)?(s=Vo(e.s),a=Vo(e.v),n=dk(e.h,s,a),f=!0,h="hsv"):On(e.h)&&On(e.s)&&On(e.l)&&(s=Vo(e.s),u=Vo(e.l),n=hk(e.h,s,u),f=!0,h="hsl"),e.hasOwnProperty("a")&&(i=e.a)),i=Z0(i),{ok:f,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:i}}function fk(e,n,i){return{r:$e(e,255)*255,g:$e(n,255)*255,b:$e(i,255)*255}}function gg(e,n,i){e=$e(e,255),n=$e(n,255),i=$e(i,255);var s=Math.max(e,n,i),a=Math.min(e,n,i),u,f,h=(s+a)/2;if(s==a)u=f=0;else{var p=s-a;switch(f=h>.5?p/(2-s-a):p/(s+a),s){case e:u=(n-i)/p+(n<i?6:0);break;case n:u=(i-e)/p+2;break;case i:u=(e-n)/p+4;break}u/=6}return{h:u,s:f,l:h}}function hk(e,n,i){var s,a,u;e=$e(e,360),n=$e(n,100),i=$e(i,100);function f(y,v,g){return g<0&&(g+=1),g>1&&(g-=1),g<1/6?y+(v-y)*6*g:g<1/2?v:g<2/3?y+(v-y)*(2/3-g)*6:y}if(n===0)s=a=u=i;else{var h=i<.5?i*(1+n):i+n-i*n,p=2*i-h;s=f(p,h,e+1/3),a=f(p,h,e),u=f(p,h,e-1/3)}return{r:s*255,g:a*255,b:u*255}}function yg(e,n,i){e=$e(e,255),n=$e(n,255),i=$e(i,255);var s=Math.max(e,n,i),a=Math.min(e,n,i),u,f,h=s,p=s-a;if(f=s===0?0:p/s,s==a)u=0;else{switch(s){case e:u=(n-i)/p+(n<i?6:0);break;case n:u=(i-e)/p+2;break;case i:u=(e-n)/p+4;break}u/=6}return{h:u,s:f,v:h}}function dk(e,n,i){e=$e(e,360)*6,n=$e(n,100),i=$e(i,100);var s=Math.floor(e),a=e-s,u=i*(1-n),f=i*(1-a*n),h=i*(1-(1-a)*n),p=s%6,y=[i,f,u,u,h,i][p],v=[h,i,i,f,u,u][p],g=[u,u,h,i,i,f][p];return{r:y*255,g:v*255,b:g*255}}function mg(e,n,i,s){var a=[rn(Math.round(e).toString(16)),rn(Math.round(n).toString(16)),rn(Math.round(i).toString(16))];return s&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function pk(e,n,i,s,a){var u=[rn(Math.round(e).toString(16)),rn(Math.round(n).toString(16)),rn(Math.round(i).toString(16)),rn(J0(s))];return a&&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 vg(e,n,i,s){var a=[rn(J0(s)),rn(Math.round(e).toString(16)),rn(Math.round(n).toString(16)),rn(Math.round(i).toString(16))];return a.join("")}ge.equals=function(e,n){return!e||!n?!1:ge(e).toRgbString()==ge(n).toRgbString()};ge.random=function(){return ge.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function gk(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.s-=n/100,i.s=ta(i.s),ge(i)}function yk(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.s+=n/100,i.s=ta(i.s),ge(i)}function mk(e){return ge(e).desaturate(100)}function vk(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.l+=n/100,i.l=ta(i.l),ge(i)}function _k(e,n){n=n===0?0:n||10;var i=ge(e).toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(n/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(n/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(n/100)))),ge(i)}function xk(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.l-=n/100,i.l=ta(i.l),ge(i)}function wk(e,n){var i=ge(e).toHsl(),s=(i.h+n)%360;return i.h=s<0?360+s:s,ge(i)}function kk(e){var n=ge(e).toHsl();return n.h=(n.h+180)%360,ge(n)}function _g(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var i=ge(e).toHsl(),s=[ge(e)],a=360/n,u=1;u<n;u++)s.push(ge({h:(i.h+u*a)%360,s:i.s,l:i.l}));return s}function Sk(e){var n=ge(e).toHsl(),i=n.h;return[ge(e),ge({h:(i+72)%360,s:n.s,l:n.l}),ge({h:(i+216)%360,s:n.s,l:n.l})]}function Ck(e,n,i){n=n||6,i=i||30;var s=ge(e).toHsl(),a=360/i,u=[ge(e)];for(s.h=(s.h-(a*n>>1)+720)%360;--n;)s.h=(s.h+a)%360,u.push(ge(s));return u}function bk(e,n){n=n||6;for(var i=ge(e).toHsv(),s=i.h,a=i.s,u=i.v,f=[],h=1/n;n--;)f.push(ge({h:s,s:a,v:u})),u=(u+h)%1;return f}ge.mix=function(e,n,i){i=i===0?0:i||50;var s=ge(e).toRgb(),a=ge(n).toRgb(),u=i/100,f={r:(a.r-s.r)*u+s.r,g:(a.g-s.g)*u+s.g,b:(a.b-s.b)*u+s.b,a:(a.a-s.a)*u+s.a};return ge(f)};ge.readability=function(e,n){var i=ge(e),s=ge(n);return(Math.max(i.getLuminance(),s.getLuminance())+.05)/(Math.min(i.getLuminance(),s.getLuminance())+.05)};ge.isReadable=function(e,n,i){var s=ge.readability(e,n),a,u;switch(u=!1,a=Nk(i),a.level+a.size){case"AAsmall":case"AAAlarge":u=s>=4.5;break;case"AAlarge":u=s>=3;break;case"AAAsmall":u=s>=7;break}return u};ge.mostReadable=function(e,n,i){var s=null,a=0,u,f,h,p;i=i||{},f=i.includeFallbackColors,h=i.level,p=i.size;for(var y=0;y<n.length;y++)u=ge.readability(e,n[y]),u>a&&(a=u,s=ge(n[y]));return ge.isReadable(e,s,{level:h,size:p})||!f?s:(i.includeFallbackColors=!1,ge.mostReadable(e,["#fff","#000"],i))};var qc=ge.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"},Ek=ge.hexNames=Pk(qc);function Pk(e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[e[i]]=i);return n}function Z0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function $e(e,n){Tk(e)&&(e="100%");var i=Mk(e);return e=Math.min(n,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function ta(e){return Math.min(1,Math.max(0,e))}function Rt(e){return parseInt(e,16)}function Tk(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Mk(e){return typeof e=="string"&&e.indexOf("%")!=-1}function rn(e){return e.length==1?"0"+e:""+e}function Vo(e){return e<=1&&(e=e*100+"%"),e}function J0(e){return Math.round(parseFloat(e)*255).toString(16)}function xg(e){return Rt(e)/255}var Zt=function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",i="(?:"+n+")|(?:"+e+")",s="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",a="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?";return{CSS_UNIT:new RegExp(i),rgb:new RegExp("rgb"+s),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+s),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+s),hsva:new RegExp("hsva"+a),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 On(e){return!!Zt.CSS_UNIT.exec(e)}function Ok(e){e=e.replace(ak,"").replace(uk,"").toLowerCase();var n=!1;if(qc[e])e=qc[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var i;return(i=Zt.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=Zt.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=Zt.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=Zt.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=Zt.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=Zt.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=Zt.hex8.exec(e))?{r:Rt(i[1]),g:Rt(i[2]),b:Rt(i[3]),a:xg(i[4]),format:n?"name":"hex8"}:(i=Zt.hex6.exec(e))?{r:Rt(i[1]),g:Rt(i[2]),b:Rt(i[3]),format:n?"name":"hex"}:(i=Zt.hex4.exec(e))?{r:Rt(i[1]+""+i[1]),g:Rt(i[2]+""+i[2]),b:Rt(i[3]+""+i[3]),a:xg(i[4]+""+i[4]),format:n?"name":"hex8"}:(i=Zt.hex3.exec(e))?{r:Rt(i[1]+""+i[1]),g:Rt(i[2]+""+i[2]),b:Rt(i[3]+""+i[3]),format:n?"name":"hex"}:!1}function Nk(e){var n,i;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),i=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),i!=="small"&&i!=="large"&&(i="small"),{level:n,size:i}}function Bc(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function Rk(e){if(Array.isArray(e))return Bc(e)}function ey(e,n,i){if(typeof e=="function"?e===n:e.has(n))return arguments.length<3?n:i;throw new TypeError("Private element is not present on this object")}function Ak(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zk(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function $t(e,n){return e.get(ey(e,n))}function wg(e,n,i){Ak(e,n),n.set(e,i)}function kg(e,n,i){return e.set(ey(e,n),i),i}function jk(e,n){for(var i=0;i<n.length;i++){var s=n[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,Uk(s.key),s)}}function Dk(e,n,i){return n&&jk(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ik(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fk(){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 Lk(e){return Rk(e)||Ik(e)||Hk(e)||Fk()}function $k(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Uk(e){var n=$k(e,"string");return typeof n=="symbol"?n:n+""}function Hk(e,n){if(e){if(typeof e=="string")return Bc(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Bc(e,n):void 0}}var Vk=123,qk=function(n){return"#".concat(Math.min(n,Math.pow(2,24)).toString(16).padStart(6,"0"))},ty=function(n,i,s){return(n<<16)+(i<<8)+s},Bk=function(n){var i=ge(n).toRgb(),s=i.r,a=i.g,u=i.b;return ty(s,a,u)},Sg=function(n,i){return n*Vk%Math.pow(2,i)},zr=new WeakMap,Nn=new WeakMap,Qk=function(){function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6;zk(this,e),wg(this,zr,void 0),wg(this,Nn,void 0),kg(Nn,this,n),this.reset()}return Dk(e,[{key:"reset",value:function(){kg(zr,this,["__reserved for background__"])}},{key:"register",value:function(i){if($t(zr,this).length>=Math.pow(2,24-$t(Nn,this)))return null;var s=$t(zr,this).length,a=Sg(s,$t(Nn,this)),u=qk(s+(a<<24-$t(Nn,this)));return $t(zr,this).push(i),u}},{key:"lookup",value:function(i){if(!i)return null;var s=typeof i=="string"?Bk(i):ty.apply(void 0,Lk(i));if(!s)return null;var a=s&Math.pow(2,24-$t(Nn,this))-1,u=s>>24-$t(Nn,this)&Math.pow(2,$t(Nn,this))-1;return Sg(a,$t(Nn,this))!==u||a>=$t(zr,this).length?null:$t(zr,this)[a]}}])}(),as,Ue,ny,ry,jr,Cg,iy,oy,sy,df,Qc,Wc,Jo={},ly=[],Wk=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,na=Array.isArray;function yn(e,n){for(var i in n)e[i]=n[i];return e}function pf(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Kk(e,n,i){var s,a,u,f={};for(u in n)u=="key"?s=n[u]:u=="ref"?a=n[u]:f[u]=n[u];if(arguments.length>2&&(f.children=arguments.length>3?as.call(arguments,2):i),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)f[u]==null&&(f[u]=e.defaultProps[u]);return qo(e,f,s,a,null)}function qo(e,n,i,s,a){var u={type:e,props:n,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++ny,__i:-1,__u:0};return a==null&&Ue.vnode!=null&&Ue.vnode(u),u}function ra(e){return e.children}function Dl(e,n){this.props=e,this.context=n}function Hi(e,n){if(n==null)return e.__?Hi(e.__,e.__i+1):null;for(var i;n<e.__k.length;n++)if((i=e.__k[n])!=null&&i.__e!=null)return i.__e;return typeof e.type=="function"?Hi(e):null}function ay(e){var n,i;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((i=e.__k[n])!=null&&i.__e!=null){e.__e=e.__c.base=i.__e;break}return ay(e)}}function bg(e){(!e.__d&&(e.__d=!0)&&jr.push(e)&&!Kl.__r++||Cg!=Ue.debounceRendering)&&((Cg=Ue.debounceRendering)||iy)(Kl)}function Kl(){for(var e,n,i,s,a,u,f,h=1;jr.length;)jr.length>h&&jr.sort(oy),e=jr.shift(),h=jr.length,e.__d&&(i=void 0,a=(s=(n=e).__v).__e,u=[],f=[],n.__P&&((i=yn({},s)).__v=s.__v+1,Ue.vnode&&Ue.vnode(i),gf(n.__P,i,s,n.__n,n.__P.namespaceURI,32&s.__u?[a]:null,u,a??Hi(s),!!(32&s.__u),f),i.__v=s.__v,i.__.__k[i.__i]=i,fy(u,i,f),i.__e!=a&&ay(i)));Kl.__r=0}function uy(e,n,i,s,a,u,f,h,p,y,v){var g,_,x,S,b,C,k=s&&s.__k||ly,R=n.length;for(p=Gk(i,n,k,p,R),g=0;g<R;g++)(x=i.__k[g])!=null&&(_=x.__i==-1?Jo:k[x.__i]||Jo,x.__i=g,C=gf(e,x,_,a,u,f,h,p,y,v),S=x.__e,x.ref&&_.ref!=x.ref&&(_.ref&&yf(_.ref,null,x),v.push(x.ref,x.__c||S,x)),b==null&&S!=null&&(b=S),4&x.__u||_.__k===x.__k?p=cy(x,p,e):typeof x.type=="function"&&C!==void 0?p=C:S&&(p=S.nextSibling),x.__u&=-7);return i.__e=b,p}function Gk(e,n,i,s,a){var u,f,h,p,y,v=i.length,g=v,_=0;for(e.__k=new Array(a),u=0;u<a;u++)(f=n[u])!=null&&typeof f!="boolean"&&typeof f!="function"?(p=u+_,(f=e.__k[u]=typeof f=="string"||typeof f=="number"||typeof f=="bigint"||f.constructor==String?qo(null,f,null,null,null):na(f)?qo(ra,{children:f},null,null,null):f.constructor==null&&f.__b>0?qo(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f).__=e,f.__b=e.__b+1,h=null,(y=f.__i=Xk(f,i,p,g))!=-1&&(g--,(h=i[y])&&(h.__u|=2)),h==null||h.__v==null?(y==-1&&(a>v?_--:a<v&&_++),typeof f.type!="function"&&(f.__u|=4)):y!=p&&(y==p-1?_--:y==p+1?_++:(y>p?_--:_++,f.__u|=4))):e.__k[u]=null;if(g)for(u=0;u<v;u++)(h=i[u])!=null&&(2&h.__u)==0&&(h.__e==s&&(s=Hi(h)),dy(h,h));return s}function cy(e,n,i){var s,a;if(typeof e.type=="function"){for(s=e.__k,a=0;s&&a<s.length;a++)s[a]&&(s[a].__=e,n=cy(s[a],n,i));return n}e.__e!=n&&(n&&e.type&&!i.contains(n)&&(n=Hi(e)),i.insertBefore(e.__e,n||null),n=e.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType==8);return n}function Xk(e,n,i,s){var a,u,f=e.key,h=e.type,p=n[i];if(p===null&&e.key==null||p&&f==p.key&&h==p.type&&(2&p.__u)==0)return i;if(s>(p!=null&&(2&p.__u)==0?1:0))for(a=i-1,u=i+1;a>=0||u<n.length;){if(a>=0){if((p=n[a])&&(2&p.__u)==0&&f==p.key&&h==p.type)return a;a--}if(u<n.length){if((p=n[u])&&(2&p.__u)==0&&f==p.key&&h==p.type)return u;u++}}return-1}function Eg(e,n,i){n[0]=="-"?e.setProperty(n,i??""):e[n]=i==null?"":typeof i!="number"||Wk.test(n)?i:i+"px"}function Tl(e,n,i,s,a){var u,f;e:if(n=="style")if(typeof i=="string")e.style.cssText=i;else{if(typeof s=="string"&&(e.style.cssText=s=""),s)for(n in s)i&&n in i||Eg(e.style,n,"");if(i)for(n in i)s&&i[n]==s[n]||Eg(e.style,n,i[n])}else if(n[0]=="o"&&n[1]=="n")u=n!=(n=n.replace(sy,"$1")),f=n.toLowerCase(),n=f in e||n=="onFocusOut"||n=="onFocusIn"?f.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+u]=i,i?s?i.u=s.u:(i.u=df,e.addEventListener(n,u?Wc:Qc,u)):e.removeEventListener(n,u?Wc:Qc,u);else{if(a=="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]=i??"";break e}catch{}typeof i=="function"||(i==null||i===!1&&n[4]!="-"?e.removeAttribute(n):e.setAttribute(n,n=="popover"&&i==1?"":i))}}function Pg(e){return function(n){if(this.l){var i=this.l[n.type+e];if(n.t==null)n.t=df++;else if(n.t<i.u)return;return i(Ue.event?Ue.event(n):n)}}}function gf(e,n,i,s,a,u,f,h,p,y){var v,g,_,x,S,b,C,k,R,A,P,M,j,I,L,K,G,te=n.type;if(n.constructor!=null)return null;128&i.__u&&(p=!!(32&i.__u),u=[h=n.__e=i.__e]),(v=Ue.__b)&&v(n);e:if(typeof te=="function")try{if(k=n.props,R="prototype"in te&&te.prototype.render,A=(v=te.contextType)&&s[v.__c],P=v?A?A.props.value:v.__:s,i.__c?C=(g=n.__c=i.__c).__=g.__E:(R?n.__c=g=new te(k,P):(n.__c=g=new Dl(k,P),g.constructor=te,g.render=Zk),A&&A.sub(g),g.props=k,g.state||(g.state={}),g.context=P,g.__n=s,_=g.__d=!0,g.__h=[],g._sb=[]),R&&g.__s==null&&(g.__s=g.state),R&&te.getDerivedStateFromProps!=null&&(g.__s==g.state&&(g.__s=yn({},g.__s)),yn(g.__s,te.getDerivedStateFromProps(k,g.__s))),x=g.props,S=g.state,g.__v=n,_)R&&te.getDerivedStateFromProps==null&&g.componentWillMount!=null&&g.componentWillMount(),R&&g.componentDidMount!=null&&g.__h.push(g.componentDidMount);else{if(R&&te.getDerivedStateFromProps==null&&k!==x&&g.componentWillReceiveProps!=null&&g.componentWillReceiveProps(k,P),!g.__e&&g.shouldComponentUpdate!=null&&g.shouldComponentUpdate(k,g.__s,P)===!1||n.__v==i.__v){for(n.__v!=i.__v&&(g.props=k,g.state=g.__s,g.__d=!1),n.__e=i.__e,n.__k=i.__k,n.__k.some(function(oe){oe&&(oe.__=n)}),M=0;M<g._sb.length;M++)g.__h.push(g._sb[M]);g._sb=[],g.__h.length&&f.push(g);break e}g.componentWillUpdate!=null&&g.componentWillUpdate(k,g.__s,P),R&&g.componentDidUpdate!=null&&g.__h.push(function(){g.componentDidUpdate(x,S,b)})}if(g.context=P,g.props=k,g.__P=e,g.__e=!1,j=Ue.__r,I=0,R){for(g.state=g.__s,g.__d=!1,j&&j(n),v=g.render(g.props,g.state,g.context),L=0;L<g._sb.length;L++)g.__h.push(g._sb[L]);g._sb=[]}else do g.__d=!1,j&&j(n),v=g.render(g.props,g.state,g.context),g.state=g.__s;while(g.__d&&++I<25);g.state=g.__s,g.getChildContext!=null&&(s=yn(yn({},s),g.getChildContext())),R&&!_&&g.getSnapshotBeforeUpdate!=null&&(b=g.getSnapshotBeforeUpdate(x,S)),K=v,v!=null&&v.type===ra&&v.key==null&&(K=hy(v.props.children)),h=uy(e,na(K)?K:[K],n,i,s,a,u,f,h,p,y),g.base=n.__e,n.__u&=-161,g.__h.length&&f.push(g),C&&(g.__E=g.__=null)}catch(oe){if(n.__v=null,p||u!=null)if(oe.then){for(n.__u|=p?160:128;h&&h.nodeType==8&&h.nextSibling;)h=h.nextSibling;u[u.indexOf(h)]=null,n.__e=h}else for(G=u.length;G--;)pf(u[G]);else n.__e=i.__e,n.__k=i.__k;Ue.__e(oe,n,i)}else u==null&&n.__v==i.__v?(n.__k=i.__k,n.__e=i.__e):h=n.__e=Yk(i.__e,n,i,s,a,u,f,p,y);return(v=Ue.diffed)&&v(n),128&n.__u?void 0:h}function fy(e,n,i){for(var s=0;s<i.length;s++)yf(i[s],i[++s],i[++s]);Ue.__c&&Ue.__c(n,e),e.some(function(a){try{e=a.__h,a.__h=[],e.some(function(u){u.call(a)})}catch(u){Ue.__e(u,a.__v)}})}function hy(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:na(e)?e.map(hy):yn({},e)}function Yk(e,n,i,s,a,u,f,h,p){var y,v,g,_,x,S,b,C=i.props,k=n.props,R=n.type;if(R=="svg"?a="http://www.w3.org/2000/svg":R=="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),u!=null){for(y=0;y<u.length;y++)if((x=u[y])&&"setAttribute"in x==!!R&&(R?x.localName==R:x.nodeType==3)){e=x,u[y]=null;break}}if(e==null){if(R==null)return document.createTextNode(k);e=document.createElementNS(a,R,k.is&&k),h&&(Ue.__m&&Ue.__m(n,u),h=!1),u=null}if(R==null)C===k||h&&e.data==k||(e.data=k);else{if(u=u&&as.call(e.childNodes),C=i.props||Jo,!h&&u!=null)for(C={},y=0;y<e.attributes.length;y++)C[(x=e.attributes[y]).name]=x.value;for(y in C)if(x=C[y],y!="children"){if(y=="dangerouslySetInnerHTML")g=x;else if(!(y in k)){if(y=="value"&&"defaultValue"in k||y=="checked"&&"defaultChecked"in k)continue;Tl(e,y,null,x,a)}}for(y in k)x=k[y],y=="children"?_=x:y=="dangerouslySetInnerHTML"?v=x:y=="value"?S=x:y=="checked"?b=x:h&&typeof x!="function"||C[y]===x||Tl(e,y,x,C[y],a);if(v)h||g&&(v.__html==g.__html||v.__html==e.innerHTML)||(e.innerHTML=v.__html),n.__k=[];else if(g&&(e.innerHTML=""),uy(n.type=="template"?e.content:e,na(_)?_:[_],n,i,s,R=="foreignObject"?"http://www.w3.org/1999/xhtml":a,u,f,u?u[0]:i.__k&&Hi(i,0),h,p),u!=null)for(y=u.length;y--;)pf(u[y]);h||(y="value",R=="progress"&&S==null?e.removeAttribute("value"):S!=null&&(S!==e[y]||R=="progress"&&!S||R=="option"&&S!=C[y])&&Tl(e,y,S,C[y],a),y="checked",b!=null&&b!=e[y]&&Tl(e,y,b,C[y],a))}return e}function yf(e,n,i){try{if(typeof e=="function"){var s=typeof e.__u=="function";s&&e.__u(),s&&n==null||(e.__u=e(n))}else e.current=n}catch(a){Ue.__e(a,i)}}function dy(e,n,i){var s,a;if(Ue.unmount&&Ue.unmount(e),(s=e.ref)&&(s.current&&s.current!=e.__e||yf(s,null,n)),(s=e.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(u){Ue.__e(u,n)}s.base=s.__P=null}if(s=e.__k)for(a=0;a<s.length;a++)s[a]&&dy(s[a],n,i||typeof e.type!="function");i||pf(e.__e),e.__c=e.__=e.__e=void 0}function Zk(e,n,i){return this.constructor(e,i)}function Jk(e,n,i){var s,a,u,f;n==document&&(n=document.documentElement),Ue.__&&Ue.__(e,n),a=(s=!1)?null:n.__k,u=[],f=[],gf(n,e=n.__k=Kk(ra,null,[e]),a||Jo,Jo,n.namespaceURI,a?null:n.firstChild?as.call(n.childNodes):null,u,a?a.__e:n.firstChild,s,f),fy(u,e,f)}function py(e,n,i){var s,a,u,f,h=yn({},e.props);for(u in e.type&&e.type.defaultProps&&(f=e.type.defaultProps),n)u=="key"?s=n[u]:u=="ref"?a=n[u]:h[u]=n[u]==null&&f!=null?f[u]:n[u];return arguments.length>2&&(h.children=arguments.length>3?as.call(arguments,2):i),qo(e.type,h,s||e.key,a||e.ref,null)}as=ly.slice,Ue={__e:function(e,n,i,s){for(var a,u,f;n=n.__;)if((a=n.__c)&&!a.__)try{if((u=a.constructor)&&u.getDerivedStateFromError!=null&&(a.setState(u.getDerivedStateFromError(e)),f=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(e,s||{}),f=a.__d),f)return a.__E=a}catch(h){e=h}throw e}},ny=0,ry=function(e){return e!=null&&e.constructor==null},Dl.prototype.setState=function(e,n){var i;i=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=yn({},this.state),typeof e=="function"&&(e=e(yn({},i),this.props)),e&&yn(i,e),e!=null&&this.__v&&(n&&this._sb.push(n),bg(this))},Dl.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),bg(this))},Dl.prototype.render=ra,jr=[],iy=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,oy=function(e,n){return e.__v.__b-n.__v.__b},Kl.__r=0,sy=/(PointerCapture)$|Capture$/i,df=0,Qc=Pg(!1),Wc=Pg(!0);function Tg(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function eS(e){if(Array.isArray(e))return e}function tS(e,n,i){return(n=lS(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function nS(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function rS(){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 Mg(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,s)}return i}function iS(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Mg(Object(i),!0).forEach(function(s){tS(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Mg(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function oS(e,n){return eS(e)||nS(e,n)||aS(e,n)||rS()}function sS(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function lS(e){var n=sS(e,"string");return typeof n=="symbol"?n:n+""}function Gl(e){"@babel/helpers - typeof";return Gl=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},Gl(e)}function aS(e,n){if(e){if(typeof e=="string")return Tg(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Tg(e,n):void 0}}var Kc=function(n){if(Gl(n)!=="object")return n;var i=py(n);if(i.props){var s;i.props=iS({},i.props),i!=null&&(s=i.props)!==null&&s!==void 0&&s.children&&(i.props.children=Array.isArray(i.props.children)?i.props.children.map(Kc):Kc(i.props.children))}return i},uS=function(n){return ry(py(n))},cS=function(n,i){delete i.__k,Jk(Kc(n),i)};function fS(e,n){n===void 0&&(n={});var i=n.insertAt;if(!(typeof document>"u")){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",i==="top"&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var hS=`.float-tooltip-kap {
|
|
103
|
+
position: absolute;
|
|
104
|
+
width: max-content; /* prevent shrinking near right edge */
|
|
105
|
+
max-width: max(50%, 150px);
|
|
106
|
+
padding: 3px 5px;
|
|
107
|
+
border-radius: 3px;
|
|
108
|
+
font: 12px sans-serif;
|
|
109
|
+
color: #eee;
|
|
110
|
+
background: rgba(0,0,0,0.6);
|
|
111
|
+
pointer-events: none;
|
|
112
|
+
}
|
|
113
|
+
`;fS(hS);var dS=hf({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(n,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=s.style,u=a===void 0?{}:a,f=!!n&&Gl(n)==="object"&&!!n.node&&typeof n.node=="function",h=Vt(f?n.node():n);h.style("position")==="static"&&h.style("position","relative"),i.tooltipEl=h.append("div").attr("class","float-tooltip-kap"),Object.entries(u).forEach(function(y){var v=oS(y,2),g=v[0],_=v[1];return i.tooltipEl.style(g,_)}),i.tooltipEl.style("left","-10000px").style("display","none");var p="tooltip-".concat(Math.round(Math.random()*1e12));i.mouseInside=!1,h.on("mousemove.".concat(p),function(y){i.mouseInside=!0;var v=hn(y),g=h.node(),_=g.offsetWidth,x=g.offsetHeight,S=[i.offsetX===null||i.offsetX===void 0?"-".concat(v[0]/_*100,"%"):typeof i.offsetX=="number"?"calc(-50% + ".concat(i.offsetX,"px)"):i.offsetX,i.offsetY===null||i.offsetY===void 0?x>130&&x-v[1]<100?"calc(-100% - 6px)":"21px":typeof i.offsetY=="number"?i.offsetY<0?"calc(-100% - ".concat(Math.abs(i.offsetY),"px)"):"".concat(i.offsetY,"px"):i.offsetY];i.tooltipEl.style("left",v[0]+"px").style("top",v[1]+"px").style("transform","translate(".concat(S.join(","),")")),i.content&&i.tooltipEl.style("display","inline")}),h.on("mouseover.".concat(p),function(){i.mouseInside=!0,i.content&&i.tooltipEl.style("display","inline")}),h.on("mouseout.".concat(p),function(){i.mouseInside=!1,i.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):uS(n.content)?(n.tooltipEl.text(""),cS(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 pS(e,n,i){var s,a=1;e==null&&(e=0),n==null&&(n=0),i==null&&(i=0);function u(){var f,h=s.length,p,y=0,v=0,g=0;for(f=0;f<h;++f)p=s[f],y+=p.x||0,v+=p.y||0,g+=p.z||0;for(y=(y/h-e)*a,v=(v/h-n)*a,g=(g/h-i)*a,f=0;f<h;++f)p=s[f],y&&(p.x-=y),v&&(p.y-=v),g&&(p.z-=g)}return u.initialize=function(f){s=f},u.x=function(f){return arguments.length?(e=+f,u):e},u.y=function(f){return arguments.length?(n=+f,u):n},u.z=function(f){return arguments.length?(i=+f,u):i},u.strength=function(f){return arguments.length?(a=+f,u):a},u}function gS(e){const n=+this._x.call(null,e);return gy(this.cover(n),n,e)}function gy(e,n,i){if(isNaN(n))return e;var s,a=e._root,u={data:i},f=e._x0,h=e._x1,p,y,v,g,_;if(!a)return e._root=u,e;for(;a.length;)if((v=n>=(p=(f+h)/2))?f=p:h=p,s=a,!(a=a[g=+v]))return s[g]=u,e;if(y=+e._x.call(null,a.data),n===y)return u.next=a,s?s[g]=u:e._root=u,e;do s=s?s[g]=new Array(2):e._root=new Array(2),(v=n>=(p=(f+h)/2))?f=p:h=p;while((g=+v)==(_=+(y>=p)));return s[_]=a,s[g]=u,e}function yS(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,i=new Float64Array(n);let s=1/0,a=-1/0;for(let u=0,f;u<n;++u)isNaN(f=+this._x.call(null,e[u]))||(i[u]=f,f<s&&(s=f),f>a&&(a=f));if(s>a)return this;this.cover(s).cover(a);for(let u=0;u<n;++u)gy(this,i[u],e[u]);return this}function mS(e){if(isNaN(e=+e))return this;var n=this._x0,i=this._x1;if(isNaN(n))i=(n=Math.floor(e))+1;else{for(var s=i-n||1,a=this._root,u,f;n>e||e>=i;)switch(f=+(e<n),u=new Array(2),u[f]=a,a=u,s*=2,f){case 0:i=n+s;break;case 1:n=i-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._x1=i,this}function vS(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function _S(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function Ln(e,n,i){this.node=e,this.x0=n,this.x1=i}function xS(e,n){var i,s=this._x0,a,u,f=this._x1,h=[],p=this._root,y,v;for(p&&h.push(new Ln(p,s,f)),n==null?n=1/0:(s=e-n,f=e+n);y=h.pop();)if(!(!(p=y.node)||(a=y.x0)>f||(u=y.x1)<s))if(p.length){var g=(a+u)/2;h.push(new Ln(p[1],g,u),new Ln(p[0],a,g)),(v=+(e>=g))&&(y=h[h.length-1],h[h.length-1]=h[h.length-1-v],h[h.length-1-v]=y)}else{var _=Math.abs(e-+this._x.call(null,p.data));_<n&&(n=_,s=e-_,f=e+_,i=p.data)}return i}function wS(e){if(isNaN(p=+this._x.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._x1,p,y,v,g,_;if(!i)return this;if(i.length)for(;;){if((v=p>=(y=(f+h)/2))?f=y:h=y,n=i,!(i=i[g=+v]))return this;if(!i.length)break;n[g+1&1]&&(s=n,_=g)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[g]=u:delete n[g],(i=n[0]||n[1])&&i===(n[1]||n[0])&&!i.length&&(s?s[_]=i:this._root=i),this):(this._root=u,this)}function kS(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function SS(){return this._root}function CS(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function bS(e){var n=[],i,s=this._root,a,u,f;for(s&&n.push(new Ln(s,this._x0,this._x1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.x1)&&s.length){var h=(u+f)/2;(a=s[1])&&n.push(new Ln(a,h,f)),(a=s[0])&&n.push(new Ln(a,u,h))}return this}function ES(e){var n=[],i=[],s;for(this._root&&n.push(new Ln(this._root,this._x0,this._x1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.x1,p=(f+h)/2;(u=a[0])&&n.push(new Ln(u,f,p)),(u=a[1])&&n.push(new Ln(u,p,h))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.x1);return this}function PS(e){return e[0]}function TS(e){return arguments.length?(this._x=e,this):this._x}function yy(e,n){var i=new mf(n??PS,NaN,NaN);return e==null?i:i.addAll(e)}function mf(e,n,i){this._x=e,this._x0=n,this._x1=i,this._root=void 0}function Og(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var Et=yy.prototype=mf.prototype;Et.copy=function(){var e=new mf(this._x,this._x0,this._x1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=Og(n),e;for(i=[{source:n,target:e._root=new Array(2)}];n=i.pop();)for(var a=0;a<2;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(2)}):n.target[a]=Og(s));return e};Et.add=gS;Et.addAll=yS;Et.cover=mS;Et.data=vS;Et.extent=_S;Et.find=xS;Et.remove=wS;Et.removeAll=kS;Et.root=SS;Et.size=CS;Et.visit=bS;Et.visitAfter=ES;Et.x=TS;function MS(e){const n=+this._x.call(null,e),i=+this._y.call(null,e);return my(this.cover(n,i),n,i,e)}function my(e,n,i,s){if(isNaN(n)||isNaN(i))return e;var a,u=e._root,f={data:s},h=e._x0,p=e._y0,y=e._x1,v=e._y1,g,_,x,S,b,C,k,R;if(!u)return e._root=f,e;for(;u.length;)if((b=n>=(g=(h+y)/2))?h=g:y=g,(C=i>=(_=(p+v)/2))?p=_:v=_,a=u,!(u=u[k=C<<1|b]))return a[k]=f,e;if(x=+e._x.call(null,u.data),S=+e._y.call(null,u.data),n===x&&i===S)return f.next=u,a?a[k]=f:e._root=f,e;do a=a?a[k]=new Array(4):e._root=new Array(4),(b=n>=(g=(h+y)/2))?h=g:y=g,(C=i>=(_=(p+v)/2))?p=_:v=_;while((k=C<<1|b)===(R=(S>=_)<<1|x>=g));return a[R]=u,a[k]=f,e}function OS(e){var n,i,s=e.length,a,u,f=new Array(s),h=new Array(s),p=1/0,y=1/0,v=-1/0,g=-1/0;for(i=0;i<s;++i)isNaN(a=+this._x.call(null,n=e[i]))||isNaN(u=+this._y.call(null,n))||(f[i]=a,h[i]=u,a<p&&(p=a),a>v&&(v=a),u<y&&(y=u),u>g&&(g=u));if(p>v||y>g)return this;for(this.cover(p,y).cover(v,g),i=0;i<s;++i)my(this,f[i],h[i],e[i]);return this}function NS(e,n){if(isNaN(e=+e)||isNaN(n=+n))return this;var i=this._x0,s=this._y0,a=this._x1,u=this._y1;if(isNaN(i))a=(i=Math.floor(e))+1,u=(s=Math.floor(n))+1;else{for(var f=a-i||1,h=this._root,p,y;i>e||e>=a||s>n||n>=u;)switch(y=(n<s)<<1|e<i,p=new Array(4),p[y]=h,h=p,f*=2,y){case 0:a=i+f,u=s+f;break;case 1:i=a-f,u=s+f;break;case 2:a=i+f,s=u-f;break;case 3:i=a-f,s=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=i,this._y0=s,this._x1=a,this._y1=u,this}function RS(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function AS(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 gt(e,n,i,s,a){this.node=e,this.x0=n,this.y0=i,this.x1=s,this.y1=a}function zS(e,n,i){var s,a=this._x0,u=this._y0,f,h,p,y,v=this._x1,g=this._y1,_=[],x=this._root,S,b;for(x&&_.push(new gt(x,a,u,v,g)),i==null?i=1/0:(a=e-i,u=n-i,v=e+i,g=n+i,i*=i);S=_.pop();)if(!(!(x=S.node)||(f=S.x0)>v||(h=S.y0)>g||(p=S.x1)<a||(y=S.y1)<u))if(x.length){var C=(f+p)/2,k=(h+y)/2;_.push(new gt(x[3],C,k,p,y),new gt(x[2],f,k,C,y),new gt(x[1],C,h,p,k),new gt(x[0],f,h,C,k)),(b=(n>=k)<<1|e>=C)&&(S=_[_.length-1],_[_.length-1]=_[_.length-1-b],_[_.length-1-b]=S)}else{var R=e-+this._x.call(null,x.data),A=n-+this._y.call(null,x.data),P=R*R+A*A;if(P<i){var M=Math.sqrt(i=P);a=e-M,u=n-M,v=e+M,g=n+M,s=x.data}}return s}function jS(e){if(isNaN(v=+this._x.call(null,e))||isNaN(g=+this._y.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._y0,p=this._x1,y=this._y1,v,g,_,x,S,b,C,k;if(!i)return this;if(i.length)for(;;){if((S=v>=(_=(f+p)/2))?f=_:p=_,(b=g>=(x=(h+y)/2))?h=x:y=x,n=i,!(i=i[C=b<<1|S]))return this;if(!i.length)break;(n[C+1&3]||n[C+2&3]||n[C+3&3])&&(s=n,k=C)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[C]=u:delete n[C],(i=n[0]||n[1]||n[2]||n[3])&&i===(n[3]||n[2]||n[1]||n[0])&&!i.length&&(s?s[k]=i:this._root=i),this):(this._root=u,this)}function DS(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function IS(){return this._root}function FS(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function LS(e){var n=[],i,s=this._root,a,u,f,h,p;for(s&&n.push(new gt(s,this._x0,this._y0,this._x1,this._y1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.y0,h=i.x1,p=i.y1)&&s.length){var y=(u+h)/2,v=(f+p)/2;(a=s[3])&&n.push(new gt(a,y,v,h,p)),(a=s[2])&&n.push(new gt(a,u,v,y,p)),(a=s[1])&&n.push(new gt(a,y,f,h,v)),(a=s[0])&&n.push(new gt(a,u,f,y,v))}return this}function $S(e){var n=[],i=[],s;for(this._root&&n.push(new gt(this._root,this._x0,this._y0,this._x1,this._y1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.y0,p=s.x1,y=s.y1,v=(f+p)/2,g=(h+y)/2;(u=a[0])&&n.push(new gt(u,f,h,v,g)),(u=a[1])&&n.push(new gt(u,v,h,p,g)),(u=a[2])&&n.push(new gt(u,f,g,v,y)),(u=a[3])&&n.push(new gt(u,v,g,p,y))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.y0,s.x1,s.y1);return this}function US(e){return e[0]}function HS(e){return arguments.length?(this._x=e,this):this._x}function VS(e){return e[1]}function qS(e){return arguments.length?(this._y=e,this):this._y}function vy(e,n,i){var s=new vf(n??US,i??VS,NaN,NaN,NaN,NaN);return e==null?s:s.addAll(e)}function vf(e,n,i,s,a,u){this._x=e,this._y=n,this._x0=i,this._y0=s,this._x1=a,this._y1=u,this._root=void 0}function Ng(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var yt=vy.prototype=vf.prototype;yt.copy=function(){var e=new vf(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=Ng(n),e;for(i=[{source:n,target:e._root=new Array(4)}];n=i.pop();)for(var a=0;a<4;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(4)}):n.target[a]=Ng(s));return e};yt.add=MS;yt.addAll=OS;yt.cover=NS;yt.data=RS;yt.extent=AS;yt.find=zS;yt.remove=jS;yt.removeAll=DS;yt.root=IS;yt.size=FS;yt.visit=LS;yt.visitAfter=$S;yt.x=HS;yt.y=qS;function BS(e){const n=+this._x.call(null,e),i=+this._y.call(null,e),s=+this._z.call(null,e);return _y(this.cover(n,i,s),n,i,s,e)}function _y(e,n,i,s,a){if(isNaN(n)||isNaN(i)||isNaN(s))return e;var u,f=e._root,h={data:a},p=e._x0,y=e._y0,v=e._z0,g=e._x1,_=e._y1,x=e._z1,S,b,C,k,R,A,P,M,j,I,L;if(!f)return e._root=h,e;for(;f.length;)if((P=n>=(S=(p+g)/2))?p=S:g=S,(M=i>=(b=(y+_)/2))?y=b:_=b,(j=s>=(C=(v+x)/2))?v=C:x=C,u=f,!(f=f[I=j<<2|M<<1|P]))return u[I]=h,e;if(k=+e._x.call(null,f.data),R=+e._y.call(null,f.data),A=+e._z.call(null,f.data),n===k&&i===R&&s===A)return h.next=f,u?u[I]=h:e._root=h,e;do u=u?u[I]=new Array(8):e._root=new Array(8),(P=n>=(S=(p+g)/2))?p=S:g=S,(M=i>=(b=(y+_)/2))?y=b:_=b,(j=s>=(C=(v+x)/2))?v=C:x=C;while((I=j<<2|M<<1|P)===(L=(A>=C)<<2|(R>=b)<<1|k>=S));return u[L]=f,u[I]=h,e}function QS(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,i=new Float64Array(n),s=new Float64Array(n),a=new Float64Array(n);let u=1/0,f=1/0,h=1/0,p=-1/0,y=-1/0,v=-1/0;for(let g=0,_,x,S,b;g<n;++g)isNaN(x=+this._x.call(null,_=e[g]))||isNaN(S=+this._y.call(null,_))||isNaN(b=+this._z.call(null,_))||(i[g]=x,s[g]=S,a[g]=b,x<u&&(u=x),x>p&&(p=x),S<f&&(f=S),S>y&&(y=S),b<h&&(h=b),b>v&&(v=b));if(u>p||f>y||h>v)return this;this.cover(u,f,h).cover(p,y,v);for(let g=0;g<n;++g)_y(this,i[g],s[g],a[g],e[g]);return this}function WS(e,n,i){if(isNaN(e=+e)||isNaN(n=+n)||isNaN(i=+i))return this;var s=this._x0,a=this._y0,u=this._z0,f=this._x1,h=this._y1,p=this._z1;if(isNaN(s))f=(s=Math.floor(e))+1,h=(a=Math.floor(n))+1,p=(u=Math.floor(i))+1;else{for(var y=f-s||1,v=this._root,g,_;s>e||e>=f||a>n||n>=h||u>i||i>=p;)switch(_=(i<u)<<2|(n<a)<<1|e<s,g=new Array(8),g[_]=v,v=g,y*=2,_){case 0:f=s+y,h=a+y,p=u+y;break;case 1:s=f-y,h=a+y,p=u+y;break;case 2:f=s+y,a=h-y,p=u+y;break;case 3:s=f-y,a=h-y,p=u+y;break;case 4:f=s+y,h=a+y,u=p-y;break;case 5:s=f-y,h=a+y,u=p-y;break;case 6:f=s+y,a=h-y,u=p-y;break;case 7:s=f-y,a=h-y,u=p-y;break}this._root&&this._root.length&&(this._root=v)}return this._x0=s,this._y0=a,this._z0=u,this._x1=f,this._y1=h,this._z1=p,this}function KS(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function GS(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 ze(e,n,i,s,a,u,f){this.node=e,this.x0=n,this.y0=i,this.z0=s,this.x1=a,this.y1=u,this.z1=f}function XS(e,n,i,s){var a,u=this._x0,f=this._y0,h=this._z0,p,y,v,g,_,x,S=this._x1,b=this._y1,C=this._z1,k=[],R=this._root,A,P;for(R&&k.push(new ze(R,u,f,h,S,b,C)),s==null?s=1/0:(u=e-s,f=n-s,h=i-s,S=e+s,b=n+s,C=i+s,s*=s);A=k.pop();)if(!(!(R=A.node)||(p=A.x0)>S||(y=A.y0)>b||(v=A.z0)>C||(g=A.x1)<u||(_=A.y1)<f||(x=A.z1)<h))if(R.length){var M=(p+g)/2,j=(y+_)/2,I=(v+x)/2;k.push(new ze(R[7],M,j,I,g,_,x),new ze(R[6],p,j,I,M,_,x),new ze(R[5],M,y,I,g,j,x),new ze(R[4],p,y,I,M,j,x),new ze(R[3],M,j,v,g,_,I),new ze(R[2],p,j,v,M,_,I),new ze(R[1],M,y,v,g,j,I),new ze(R[0],p,y,v,M,j,I)),(P=(i>=I)<<2|(n>=j)<<1|e>=M)&&(A=k[k.length-1],k[k.length-1]=k[k.length-1-P],k[k.length-1-P]=A)}else{var L=e-+this._x.call(null,R.data),K=n-+this._y.call(null,R.data),G=i-+this._z.call(null,R.data),te=L*L+K*K+G*G;if(te<s){var oe=Math.sqrt(s=te);u=e-oe,f=n-oe,h=i-oe,S=e+oe,b=n+oe,C=i+oe,a=R.data}}return a}const YS=(e,n,i,s,a,u)=>Math.sqrt((e-s)**2+(n-a)**2+(i-u)**2);function ZS(e,n,i,s){const a=[],u=e-s,f=n-s,h=i-s,p=e+s,y=n+s,v=i+s;return this.visit((g,_,x,S,b,C,k)=>{if(!g.length)do{const R=g.data;YS(e,n,i,this._x(R),this._y(R),this._z(R))<=s&&a.push(R)}while(g=g.next);return _>p||x>y||S>v||b<u||C<f||k<h}),a}function JS(e){if(isNaN(_=+this._x.call(null,e))||isNaN(x=+this._y.call(null,e))||isNaN(S=+this._z.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._y0,p=this._z0,y=this._x1,v=this._y1,g=this._z1,_,x,S,b,C,k,R,A,P,M,j;if(!i)return this;if(i.length)for(;;){if((R=_>=(b=(f+y)/2))?f=b:y=b,(A=x>=(C=(h+v)/2))?h=C:v=C,(P=S>=(k=(p+g)/2))?p=k:g=k,n=i,!(i=i[M=P<<2|A<<1|R]))return this;if(!i.length)break;(n[M+1&7]||n[M+2&7]||n[M+3&7]||n[M+4&7]||n[M+5&7]||n[M+6&7]||n[M+7&7])&&(s=n,j=M)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[M]=u:delete n[M],(i=n[0]||n[1]||n[2]||n[3]||n[4]||n[5]||n[6]||n[7])&&i===(n[7]||n[6]||n[5]||n[4]||n[3]||n[2]||n[1]||n[0])&&!i.length&&(s?s[j]=i:this._root=i),this):(this._root=u,this)}function eC(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function tC(){return this._root}function nC(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function rC(e){var n=[],i,s=this._root,a,u,f,h,p,y,v;for(s&&n.push(new ze(s,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.y0,h=i.z0,p=i.x1,y=i.y1,v=i.z1)&&s.length){var g=(u+p)/2,_=(f+y)/2,x=(h+v)/2;(a=s[7])&&n.push(new ze(a,g,_,x,p,y,v)),(a=s[6])&&n.push(new ze(a,u,_,x,g,y,v)),(a=s[5])&&n.push(new ze(a,g,f,x,p,_,v)),(a=s[4])&&n.push(new ze(a,u,f,x,g,_,v)),(a=s[3])&&n.push(new ze(a,g,_,h,p,y,x)),(a=s[2])&&n.push(new ze(a,u,_,h,g,y,x)),(a=s[1])&&n.push(new ze(a,g,f,h,p,_,x)),(a=s[0])&&n.push(new ze(a,u,f,h,g,_,x))}return this}function iC(e){var n=[],i=[],s;for(this._root&&n.push(new ze(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.y0,p=s.z0,y=s.x1,v=s.y1,g=s.z1,_=(f+y)/2,x=(h+v)/2,S=(p+g)/2;(u=a[0])&&n.push(new ze(u,f,h,p,_,x,S)),(u=a[1])&&n.push(new ze(u,_,h,p,y,x,S)),(u=a[2])&&n.push(new ze(u,f,x,p,_,v,S)),(u=a[3])&&n.push(new ze(u,_,x,p,y,v,S)),(u=a[4])&&n.push(new ze(u,f,h,S,_,x,g)),(u=a[5])&&n.push(new ze(u,_,h,S,y,x,g)),(u=a[6])&&n.push(new ze(u,f,x,S,_,v,g)),(u=a[7])&&n.push(new ze(u,_,x,S,y,v,g))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.y0,s.z0,s.x1,s.y1,s.z1);return this}function oC(e){return e[0]}function sC(e){return arguments.length?(this._x=e,this):this._x}function lC(e){return e[1]}function aC(e){return arguments.length?(this._y=e,this):this._y}function uC(e){return e[2]}function cC(e){return arguments.length?(this._z=e,this):this._z}function xy(e,n,i,s){var a=new _f(n??oC,i??lC,s??uC,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?a:a.addAll(e)}function _f(e,n,i,s,a,u,f,h,p){this._x=e,this._y=n,this._z=i,this._x0=s,this._y0=a,this._z0=u,this._x1=f,this._y1=h,this._z1=p,this._root=void 0}function Rg(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var rt=xy.prototype=_f.prototype;rt.copy=function(){var e=new _f(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=Rg(n),e;for(i=[{source:n,target:e._root=new Array(8)}];n=i.pop();)for(var a=0;a<8;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(8)}):n.target[a]=Rg(s));return e};rt.add=BS;rt.addAll=QS;rt.cover=WS;rt.data=KS;rt.extent=GS;rt.find=XS;rt.findAllWithinRadius=ZS;rt.remove=JS;rt.removeAll=eC;rt.root=tC;rt.size=nC;rt.visit=rC;rt.visitAfter=iC;rt.x=sC;rt.y=aC;rt.z=cC;function Fn(e){return function(){return e}}function zn(e){return(e()-.5)*1e-6}function fC(e){return e.index}function Ag(e,n){var i=e.get(n);if(!i)throw new Error("node not found: "+n);return i}function hC(e){var n=fC,i=_,s,a=Fn(30),u,f,h,p,y,v,g=1;e==null&&(e=[]);function _(k){return 1/Math.min(p[k.source.index],p[k.target.index])}function x(k){for(var R=0,A=e.length;R<g;++R)for(var P=0,M,j,I,L=0,K=0,G=0,te,oe;P<A;++P)M=e[P],j=M.source,I=M.target,L=I.x+I.vx-j.x-j.vx||zn(v),h>1&&(K=I.y+I.vy-j.y-j.vy||zn(v)),h>2&&(G=I.z+I.vz-j.z-j.vz||zn(v)),te=Math.sqrt(L*L+K*K+G*G),te=(te-u[P])/te*k*s[P],L*=te,K*=te,G*=te,I.vx-=L*(oe=y[P]),h>1&&(I.vy-=K*oe),h>2&&(I.vz-=G*oe),j.vx+=L*(oe=1-oe),h>1&&(j.vy+=K*oe),h>2&&(j.vz+=G*oe)}function S(){if(f){var k,R=f.length,A=e.length,P=new Map(f.map((j,I)=>[n(j,I,f),j])),M;for(k=0,p=new Array(R);k<A;++k)M=e[k],M.index=k,typeof M.source!="object"&&(M.source=Ag(P,M.source)),typeof M.target!="object"&&(M.target=Ag(P,M.target)),p[M.source.index]=(p[M.source.index]||0)+1,p[M.target.index]=(p[M.target.index]||0)+1;for(k=0,y=new Array(A);k<A;++k)M=e[k],y[k]=p[M.source.index]/(p[M.source.index]+p[M.target.index]);s=new Array(A),b(),u=new Array(A),C()}}function b(){if(f)for(var k=0,R=e.length;k<R;++k)s[k]=+i(e[k],k,e)}function C(){if(f)for(var k=0,R=e.length;k<R;++k)u[k]=+a(e[k],k,e)}return x.initialize=function(k,...R){f=k,v=R.find(A=>typeof A=="function")||Math.random,h=R.find(A=>[1,2,3].includes(A))||2,S()},x.links=function(k){return arguments.length?(e=k,S(),x):e},x.id=function(k){return arguments.length?(n=k,x):n},x.iterations=function(k){return arguments.length?(g=+k,x):g},x.strength=function(k){return arguments.length?(i=typeof k=="function"?k:Fn(+k),b(),x):i},x.distance=function(k){return arguments.length?(a=typeof k=="function"?k:Fn(+k),C(),x):a},x}const dC=1664525,pC=1013904223,zg=4294967296;function gC(){let e=1;return()=>(e=(dC*e+pC)%zg)/zg}var jg=3;function fc(e){return e.x}function Dg(e){return e.y}function yC(e){return e.z}var mC=10,vC=Math.PI*(3-Math.sqrt(5)),_C=Math.PI*20/(9+Math.sqrt(221));function xC(e,n){n=n||2;var i=Math.min(jg,Math.max(1,Math.round(n))),s,a=1,u=.001,f=1-Math.pow(u,1/300),h=0,p=.6,y=new Map,v=af(x),g=ss("tick","end"),_=gC();e==null&&(e=[]);function x(){S(),g.call("tick",s),a<u&&(v.stop(),g.call("end",s))}function S(k){var R,A=e.length,P;k===void 0&&(k=1);for(var M=0;M<k;++M)for(a+=(h-a)*f,y.forEach(function(j){j(a)}),R=0;R<A;++R)P=e[R],P.fx==null?P.x+=P.vx*=p:(P.x=P.fx,P.vx=0),i>1&&(P.fy==null?P.y+=P.vy*=p:(P.y=P.fy,P.vy=0)),i>2&&(P.fz==null?P.z+=P.vz*=p:(P.z=P.fz,P.vz=0));return s}function b(){for(var k=0,R=e.length,A;k<R;++k){if(A=e[k],A.index=k,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),A.fz!=null&&(A.z=A.fz),isNaN(A.x)||i>1&&isNaN(A.y)||i>2&&isNaN(A.z)){var P=mC*(i>2?Math.cbrt(.5+k):i>1?Math.sqrt(.5+k):k),M=k*vC,j=k*_C;i===1?A.x=P:i===2?(A.x=P*Math.cos(M),A.y=P*Math.sin(M)):(A.x=P*Math.sin(M)*Math.cos(j),A.y=P*Math.cos(M),A.z=P*Math.sin(M)*Math.sin(j))}(isNaN(A.vx)||i>1&&isNaN(A.vy)||i>2&&isNaN(A.vz))&&(A.vx=0,i>1&&(A.vy=0),i>2&&(A.vz=0))}}function C(k){return k.initialize&&k.initialize(e,_,i),k}return b(),s={tick:S,restart:function(){return v.restart(x),s},stop:function(){return v.stop(),s},numDimensions:function(k){return arguments.length?(i=Math.min(jg,Math.max(1,Math.round(k))),y.forEach(C),s):i},nodes:function(k){return arguments.length?(e=k,b(),y.forEach(C),s):e},alpha:function(k){return arguments.length?(a=+k,s):a},alphaMin:function(k){return arguments.length?(u=+k,s):u},alphaDecay:function(k){return arguments.length?(f=+k,s):+f},alphaTarget:function(k){return arguments.length?(h=+k,s):h},velocityDecay:function(k){return arguments.length?(p=1-k,s):1-p},randomSource:function(k){return arguments.length?(_=k,y.forEach(C),s):_},force:function(k,R){return arguments.length>1?(R==null?y.delete(k):y.set(k,C(R)),s):y.get(k)},find:function(){var k=Array.prototype.slice.call(arguments),R=k.shift()||0,A=(i>1?k.shift():null)||0,P=(i>2?k.shift():null)||0,M=k.shift()||1/0,j=0,I=e.length,L,K,G,te,oe,he;for(M*=M,j=0;j<I;++j)oe=e[j],L=R-oe.x,K=A-(oe.y||0),G=P-(oe.z||0),te=L*L+K*K+G*G,te<M&&(he=oe,M=te);return he},on:function(k,R){return arguments.length>1?(g.on(k,R),s):g.on(k)}}}function wC(){var e,n,i,s,a,u=Fn(-30),f,h=1,p=1/0,y=.81;function v(S){var b,C=e.length,k=(n===1?yy(e,fc):n===2?vy(e,fc,Dg):n===3?xy(e,fc,Dg,yC):null).visitAfter(_);for(a=S,b=0;b<C;++b)i=e[b],k.visit(x)}function g(){if(e){var S,b=e.length,C;for(f=new Array(b),S=0;S<b;++S)C=e[S],f[C.index]=+u(C,S,e)}}function _(S){var b=0,C,k,R=0,A,P,M,j,I=S.length;if(I){for(A=P=M=j=0;j<I;++j)(C=S[j])&&(k=Math.abs(C.value))&&(b+=C.value,R+=k,A+=k*(C.x||0),P+=k*(C.y||0),M+=k*(C.z||0));b*=Math.sqrt(4/I),S.x=A/R,n>1&&(S.y=P/R),n>2&&(S.z=M/R)}else{C=S,C.x=C.data.x,n>1&&(C.y=C.data.y),n>2&&(C.z=C.data.z);do b+=f[C.data.index];while(C=C.next)}S.value=b}function x(S,b,C,k,R){if(!S.value)return!0;var A=[C,k,R][n-1],P=S.x-i.x,M=n>1?S.y-i.y:0,j=n>2?S.z-i.z:0,I=A-b,L=P*P+M*M+j*j;if(I*I/y<L)return L<p&&(P===0&&(P=zn(s),L+=P*P),n>1&&M===0&&(M=zn(s),L+=M*M),n>2&&j===0&&(j=zn(s),L+=j*j),L<h&&(L=Math.sqrt(h*L)),i.vx+=P*S.value*a/L,n>1&&(i.vy+=M*S.value*a/L),n>2&&(i.vz+=j*S.value*a/L)),!0;if(S.length||L>=p)return;(S.data!==i||S.next)&&(P===0&&(P=zn(s),L+=P*P),n>1&&M===0&&(M=zn(s),L+=M*M),n>2&&j===0&&(j=zn(s),L+=j*j),L<h&&(L=Math.sqrt(h*L)));do S.data!==i&&(I=f[S.data.index]*a/L,i.vx+=P*I,n>1&&(i.vy+=M*I),n>2&&(i.vz+=j*I));while(S=S.next)}return v.initialize=function(S,...b){e=S,s=b.find(C=>typeof C=="function")||Math.random,n=b.find(C=>[1,2,3].includes(C))||2,g()},v.strength=function(S){return arguments.length?(u=typeof S=="function"?S:Fn(+S),g(),v):u},v.distanceMin=function(S){return arguments.length?(h=S*S,v):Math.sqrt(h)},v.distanceMax=function(S){return arguments.length?(p=S*S,v):Math.sqrt(p)},v.theta=function(S){return arguments.length?(y=S*S,v):Math.sqrt(y)},v}function kC(e,n,i,s){var a,u,f=Fn(.1),h,p;typeof e!="function"&&(e=Fn(+e)),n==null&&(n=0),i==null&&(i=0),s==null&&(s=0);function y(g){for(var _=0,x=a.length;_<x;++_){var S=a[_],b=S.x-n||1e-6,C=(S.y||0)-i||1e-6,k=(S.z||0)-s||1e-6,R=Math.sqrt(b*b+C*C+k*k),A=(p[_]-R)*h[_]*g/R;S.vx+=b*A,u>1&&(S.vy+=C*A),u>2&&(S.vz+=k*A)}}function v(){if(a){var g,_=a.length;for(h=new Array(_),p=new Array(_),g=0;g<_;++g)p[g]=+e(a[g],g,a),h[g]=isNaN(p[g])?0:+f(a[g],g,a)}}return y.initialize=function(g,..._){a=g,u=_.find(x=>[1,2,3].includes(x))||2,v()},y.strength=function(g){return arguments.length?(f=typeof g=="function"?g:Fn(+g),v(),y):f},y.radius=function(g){return arguments.length?(e=typeof g=="function"?g:Fn(+g),v(),y):e},y.x=function(g){return arguments.length?(n=+g,y):n},y.y=function(g){return arguments.length?(i=+g,y):i},y.z=function(g){return arguments.length?(s=+g,y):s},y}const{abs:zo,cos:Rn,sin:ki,acos:SC,atan2:jo,sqrt:lr,pow:Ut}=Math;function Do(e){return e<0?-Ut(-e,1/3):Ut(e,1/3)}const wy=Math.PI,Ml=2*wy,ar=wy/2,CC=1e-6,hc=Number.MAX_SAFE_INTEGER||9007199254740991,dc=Number.MIN_SAFE_INTEGER||-9007199254740991,bC={x:0,y:0,z:0},re={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 i=n(e);let s=i.x*i.x+i.y*i.y;return typeof i.z<"u"&&(s+=i.z*i.z),lr(s)},compute:function(e,n,i){if(e===0)return n[0].t=0,n[0];const s=n.length-1;if(e===1)return n[s].t=1,n[s];const a=1-e;let u=n;if(s===0)return n[0].t=e,n[0];if(s===1){const h={x:a*u[0].x+e*u[1].x,y:a*u[0].y+e*u[1].y,t:e};return i&&(h.z=a*u[0].z+e*u[1].z),h}if(s<4){let h=a*a,p=e*e,y,v,g,_=0;s===2?(u=[u[0],u[1],u[2],bC],y=h,v=a*e*2,g=p):s===3&&(y=h*a,v=h*e*3,g=a*p*3,_=e*p);const x={x:y*u[0].x+v*u[1].x+g*u[2].x+_*u[3].x,y:y*u[0].y+v*u[1].y+g*u[2].y+_*u[3].y,t:e};return i&&(x.z=y*u[0].z+v*u[1].z+g*u[2].z+_*u[3].z),x}const f=JSON.parse(JSON.stringify(n));for(;f.length>1;){for(let h=0;h<f.length-1;h++)f[h]={x:f[h].x+(f[h+1].x-f[h].x)*e,y:f[h].y+(f[h+1].y-f[h].y)*e},typeof f[h].z<"u"&&(f[h].z=f[h].z+(f[h+1].z-f[h].z)*e);f.splice(f.length-1,1)}return f[0].t=e,f[0]},computeWithRatios:function(e,n,i,s){const a=1-e,u=i,f=n;let h=u[0],p=u[1],y=u[2],v=u[3],g;if(h*=a,p*=e,f.length===2)return g=h+p,{x:(h*f[0].x+p*f[1].x)/g,y:(h*f[0].y+p*f[1].y)/g,z:s?(h*f[0].z+p*f[1].z)/g:!1,t:e};if(h*=a,p*=2*a,y*=e*e,f.length===3)return g=h+p+y,{x:(h*f[0].x+p*f[1].x+y*f[2].x)/g,y:(h*f[0].y+p*f[1].y+y*f[2].y)/g,z:s?(h*f[0].z+p*f[1].z+y*f[2].z)/g:!1,t:e};if(h*=a,p*=1.5*a,y*=3*a,v*=e*e*e,f.length===4)return g=h+p+y+v,{x:(h*f[0].x+p*f[1].x+y*f[2].x+v*f[3].x)/g,y:(h*f[0].y+p*f[1].y+y*f[2].y+v*f[3].y)/g,z:s?(h*f[0].z+p*f[1].z+y*f[2].z+v*f[3].z)/g:!1,t:e}},derive:function(e,n){const i=[];for(let s=e,a=s.length,u=a-1;a>1;a--,u--){const f=[];for(let h=0,p;h<u;h++)p={x:u*(s[h+1].x-s[h].x),y:u*(s[h+1].y-s[h].y)},n&&(p.z=u*(s[h+1].z-s[h].z)),f.push(p);i.push(f),s=f}return i},between:function(e,n,i){return n<=e&&e<=i||re.approximately(e,n)||re.approximately(e,i)},approximately:function(e,n,i){return zo(e-n)<=(i||CC)},length:function(e){const i=re.Tvalues.length;let s=0;for(let a=0,u;a<i;a++)u=.5*re.Tvalues[a]+.5,s+=re.Cvalues[a]*re.arcfn(u,e);return .5*s},map:function(e,n,i,s,a){const u=i-n,f=a-s,h=e-n,p=h/u;return s+f*p},lerp:function(e,n,i){const s={x:n.x+e*(i.x-n.x),y:n.y+e*(i.y-n.y)};return n.z!==void 0&&i.z!==void 0&&(s.z=n.z+e*(i.z-n.z)),s},pointToString:function(e){let n=e.x+"/"+e.y;return typeof e.z<"u"&&(n+="/"+e.z),n},pointsToString:function(e){return"["+e.map(re.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,n,i){const s=n.x-e.x,a=n.y-e.y,u=i.x-e.x,f=i.y-e.y,h=s*f-a*u,p=s*u+a*f;return jo(h,p)},round:function(e,n){const i=""+e,s=i.indexOf(".");return parseFloat(i.substring(0,s+1+n))},dist:function(e,n){const i=e.x-n.x,s=e.y-n.y;return lr(i*i+s*s)},closest:function(e,n){let i=Ut(2,63),s,a;return e.forEach(function(u,f){a=re.dist(n,u),a<i&&(i=a,s=f)}),{mdist:i,mpos:s}},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 i=Ut(e,n)+Ut(1-e,n),s=i-1;return zo(s/i)},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 i=Ut(1-e,n),s=Ut(e,n)+i;return i/s},lli8:function(e,n,i,s,a,u,f,h){const p=(e*s-n*i)*(a-f)-(e-i)*(a*h-u*f),y=(e*s-n*i)*(u-h)-(n-s)*(a*h-u*f),v=(e-i)*(u-h)-(n-s)*(a-f);return v==0?!1:{x:p/v,y:y/v}},lli4:function(e,n,i,s){const a=e.x,u=e.y,f=n.x,h=n.y,p=i.x,y=i.y,v=s.x,g=s.y;return re.lli8(a,u,f,h,p,y,v,g)},lli:function(e,n){return re.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new Fe(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=hc,i=hc,s=dc,a=dc;return e.forEach(function(u){const f=u.bbox();n>f.x.min&&(n=f.x.min),i>f.y.min&&(i=f.y.min),s<f.x.max&&(s=f.x.max),a<f.y.max&&(a=f.y.max)}),{x:{min:n,mid:(n+s)/2,max:s,size:s-n},y:{min:i,mid:(i+a)/2,max:a,size:a-i}}},shapeintersections:function(e,n,i,s,a){if(!re.bboxoverlap(n,s))return[];const u=[],f=[e.startcap,e.forward,e.back,e.endcap],h=[i.startcap,i.forward,i.back,i.endcap];return f.forEach(function(p){p.virtual||h.forEach(function(y){if(y.virtual)return;const v=p.intersects(y,a);v.length>0&&(v.c1=p,v.c2=y,v.s1=e,v.s2=i,u.push(v))})}),u},makeshape:function(e,n,i){const s=n.points.length,a=e.points.length,u=re.makeline(n.points[s-1],e.points[0]),f=re.makeline(e.points[a-1],n.points[0]),h={startcap:u,forward:e,back:n,endcap:f,bbox:re.findbbox([u,e,n,f])};return h.intersections=function(p){return re.shapeintersections(h,h.bbox,p,p.bbox,i)},h},getminmax:function(e,n,i){if(!i)return{min:0,max:0};let s=hc,a=dc,u,f;i.indexOf(0)===-1&&(i=[0].concat(i)),i.indexOf(1)===-1&&i.push(1);for(let h=0,p=i.length;h<p;h++)u=i[h],f=e.get(u),f[n]<s&&(s=f[n]),f[n]>a&&(a=f[n]);return{min:s,mid:(s+a)/2,max:a,size:a-s}},align:function(e,n){const i=n.p1.x,s=n.p1.y,a=-jo(n.p2.y-s,n.p2.x-i),u=function(f){return{x:(f.x-i)*Rn(a)-(f.y-s)*ki(a),y:(f.x-i)*ki(a)+(f.y-s)*Rn(a)}};return e.map(u)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};const i=e.length-1,s=re.align(e,n),a=function(I){return 0<=I&&I<=1};if(i===2){const I=s[0].y,L=s[1].y,K=s[2].y,G=I-2*L+K;if(G!==0){const te=-lr(L*L-I*K),oe=-I+L,he=-(te+oe)/G,F=-(-te+oe)/G;return[he,F].filter(a)}else if(L!==K&&G===0)return[(2*L-K)/(2*L-2*K)].filter(a);return[]}const u=s[0].y,f=s[1].y,h=s[2].y,p=s[3].y;let y=-u+3*f-3*h+p,v=3*u-6*f+3*h,g=-3*u+3*f,_=u;if(re.approximately(y,0)){if(re.approximately(v,0))return re.approximately(g,0)?[]:[-_/g].filter(a);const I=lr(g*g-4*v*_),L=2*v;return[(I-g)/L,(-g-I)/L].filter(a)}v/=y,g/=y,_/=y;const x=(3*g-v*v)/3,S=x/3,b=(2*v*v*v-9*v*g+27*_)/27,C=b/2,k=C*C+S*S*S;let R,A,P,M,j;if(k<0){const I=-x/3,L=I*I*I,K=lr(L),G=-b/(2*K),te=G<-1?-1:G>1?1:G,oe=SC(te),he=Do(K),F=2*he;return P=F*Rn(oe/3)-v/3,M=F*Rn((oe+Ml)/3)-v/3,j=F*Rn((oe+2*Ml)/3)-v/3,[P,M,j].filter(a)}else{if(k===0)return R=C<0?Do(-C):-Do(C),P=2*R-v/3,M=-R-v/3,[P,M].filter(a);{const I=lr(k);return R=Do(-C+I),A=Do(C+I),[R-A-v/3].filter(a)}}},droots:function(e){if(e.length===3){const n=e[0],i=e[1],s=e[2],a=n-2*i+s;if(a!==0){const u=-lr(i*i-n*s),f=-n+i,h=-(u+f)/a,p=-(-u+f)/a;return[h,p]}else if(i!==s&&a===0)return[(2*i-s)/(2*(i-s))];return[]}if(e.length===2){const n=e[0],i=e[1];return n!==i?[n/(n-i)]:[]}return[]},curvature:function(e,n,i,s,a){let u,f,h,p,y=0,v=0;const g=re.compute(e,n),_=re.compute(e,i),x=g.x*g.x+g.y*g.y;if(s?(u=lr(Ut(g.y*_.z-_.y*g.z,2)+Ut(g.z*_.x-_.z*g.x,2)+Ut(g.x*_.y-_.x*g.y,2)),f=Ut(x+g.z*g.z,3/2)):(u=g.x*_.y-g.y*_.x,f=Ut(x,3/2)),u===0||f===0)return{k:0,r:0};if(y=u/f,v=f/u,!a){const S=re.curvature(e-.001,n,i,s,!0).k,b=re.curvature(e+.001,n,i,s,!0).k;p=(b-y+(y-S))/2,h=(zo(b-y)+zo(y-S))/2}return{k:y,r:v,dk:p,adk:h}},inflections:function(e){if(e.length<4)return[];const n=re.align(e,{p1:e[0],p2:e.slice(-1)[0]}),i=n[2].x*n[1].y,s=n[3].x*n[1].y,a=n[1].x*n[2].y,u=n[3].x*n[2].y,f=18*(-3*i+2*s+3*a-u),h=18*(3*i-s-3*a),p=18*(a-i);if(re.approximately(f,0)){if(!re.approximately(h,0)){let _=-p/h;if(0<=_&&_<=1)return[_]}return[]}const y=2*f;if(re.approximately(y,0))return[];const v=h*h-4*f*p;if(v<0)return[];const g=Math.sqrt(v);return[(g-h)/y,-(h+g)/y].filter(function(_){return 0<=_&&_<=1})},bboxoverlap:function(e,n){const i=["x","y"],s=i.length;for(let a=0,u,f,h,p;a<s;a++)if(u=i[a],f=e[u].mid,h=n[u].mid,p=(e[u].size+n[u].size)/2,zo(f-h)>=p)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,i){const s=e.bbox(),a=n.bbox(),u=1e5,f=i||.5;if(s.x.size+s.y.size<f&&a.x.size+a.y.size<f)return[(u*(e._t1+e._t2)/2|0)/u+"/"+(u*(n._t1+n._t2)/2|0)/u];let h=e.split(.5),p=n.split(.5),y=[{left:h.left,right:p.left},{left:h.left,right:p.right},{left:h.right,right:p.right},{left:h.right,right:p.left}];y=y.filter(function(g){return re.bboxoverlap(g.left.bbox(),g.right.bbox())});let v=[];return y.length===0||(y.forEach(function(g){v=v.concat(re.pairiteration(g.left,g.right,f))}),v=v.filter(function(g,_){return v.indexOf(g)===_})),v},getccenter:function(e,n,i){const s=n.x-e.x,a=n.y-e.y,u=i.x-n.x,f=i.y-n.y,h=s*Rn(ar)-a*ki(ar),p=s*ki(ar)+a*Rn(ar),y=u*Rn(ar)-f*ki(ar),v=u*ki(ar)+f*Rn(ar),g=(e.x+n.x)/2,_=(e.y+n.y)/2,x=(n.x+i.x)/2,S=(n.y+i.y)/2,b=g+h,C=_+p,k=x+y,R=S+v,A=re.lli8(g,_,b,C,x,S,k,R),P=re.dist(A,e);let M=jo(e.y-A.y,e.x-A.x),j=jo(n.y-A.y,n.x-A.x),I=jo(i.y-A.y,i.x-A.x),L;return M<I?((M>j||j>I)&&(M+=Ml),M>I&&(L=I,I=M,M=L)):I<j&&j<M?(L=I,I=M,M=L):I+=Ml,A.s=M,A.e=I,A.r=P,A},numberSort:function(e,n){return e-n}};class Bo{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 re.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,i){return n+i})}curve(n){return this.curves[n]}bbox(){const n=this.curves;for(var i=n[0].bbox(),s=1;s<n.length;s++)re.expandbox(i,n[s].bbox());return i}offset(n){const i=[];return this.curves.forEach(function(s){i.push(...s.offset(n))}),new Bo(i)}}const{abs:Io,min:Ig,max:Fg,cos:EC,sin:PC,acos:TC,sqrt:Fo}=Math,MC=Math.PI;class Fe{constructor(n){let i=n&&n.forEach?n:Array.from(arguments).slice(),s=!1;if(typeof i[0]=="object"){s=i.length;const x=[];i.forEach(function(S){["x","y","z"].forEach(function(b){typeof S[b]<"u"&&x.push(S[b])})}),i=x}let a=!1;const u=i.length;if(s){if(s>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");a=!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 f=this._3d=!a&&(u===9||u===12)||n&&n[0]&&typeof n[0].z<"u",h=this.points=[];for(let x=0,S=f?3:2;x<u;x+=S){var p={x:i[x],y:i[x+1]};f&&(p.z=i[x+2]),h.push(p)}const y=this.order=h.length-1,v=this.dims=["x","y"];f&&v.push("z"),this.dimlen=v.length;const g=re.align(h,{p1:h[0],p2:h[y]}),_=re.dist(h[0],h[y]);this._linear=g.reduce((x,S)=>x+Io(S.y),0)<_/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(n,i,s,a){if(typeof a>"u"&&(a=.5),a===0)return new Fe(i,i,s);if(a===1)return new Fe(n,i,i);const u=Fe.getABC(2,n,i,s,a);return new Fe(n,u.A,s)}static cubicFromPoints(n,i,s,a,u){typeof a>"u"&&(a=.5);const f=Fe.getABC(3,n,i,s,a);typeof u>"u"&&(u=re.dist(i,f.C));const h=u*(1-a)/a,p=re.dist(n,s),y=(s.x-n.x)/p,v=(s.y-n.y)/p,g=u*y,_=u*v,x=h*y,S=h*v,b={x:i.x-g,y:i.y-_},C={x:i.x+x,y:i.y+S},k=f.A,R={x:k.x+(b.x-k.x)/(1-a),y:k.y+(b.y-k.y)/(1-a)},A={x:k.x+(C.x-k.x)/a,y:k.y+(C.y-k.y)/a},P={x:n.x+(R.x-n.x)/a,y:n.y+(R.y-n.y)/a},M={x:s.x+(A.x-s.x)/(1-a),y:s.y+(A.y-s.y)/(1-a)};return new Fe(n,P,M,s)}static getUtils(){return re}getUtils(){return Fe.getUtils()}static get PolyBezier(){return Bo}valueOf(){return this.toString()}toString(){return re.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const n=this.points,i=n[0].x,s=n[0].y,a=["M",i,s,this.order===2?"Q":"C"];for(let u=1,f=n.length;u<f;u++)a.push(n[u].x),a.push(n[u].y);return a.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,i){return""+i+n.x+n.y+(n.z?n.z:0)}).join("")}update(){this._lut=[],this.dpoints=re.derive(this.points,this._3d),this.computedirection()}computedirection(){const n=this.points,i=re.angle(n[0],n[this.order],n[1]);this.clockwise=i>0}length(){return re.length(this.derivative.bind(this))}static getABC(n=2,i,s,a,u=.5){const f=re.projectionratio(u,n),h=1-f,p={x:f*i.x+h*a.x,y:f*i.y+h*a.y},y=re.abcratio(u,n);return{A:{x:s.x+(s.x-p.x)/y,y:s.y+(s.y-p.y)/y},B:s,C:p,S:i,E:a}}getABC(n,i){i=i||this.get(n);let s=this.points[0],a=this.points[this.order];return Fe.getABC(this.order,s,i,a,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n+1)return this._lut;this._lut=[],n++,this._lut=[];for(let i=0,s,a;i<n;i++)a=i/(n-1),s=this.compute(a),s.t=a,this._lut.push(s);return this._lut}on(n,i){i=i||5;const s=this.getLUT(),a=[];for(let u=0,f,h=0;u<s.length;u++)f=s[u],re.dist(f,n)<i&&(a.push(f),h+=u/s.length);return a.length?t/=a.length:!1}project(n){const i=this.getLUT(),s=i.length-1,a=re.closest(i,n),u=a.mpos,f=(u-1)/s,h=(u+1)/s,p=.1/s;let y=a.mdist,v=f,g=v,_;y+=1;for(let x;v<h+p;v+=p)_=this.compute(v),x=re.dist(n,_),x<y&&(y=x,g=v);return g=g<0?0:g>1?1:g,_=this.compute(g),_.t=g,_.d=y,_}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?re.computeWithRatios(n,this.points,this.ratios,this._3d):re.compute(n,this.points,this._3d,this.ratios)}raise(){const n=this.points,i=[n[0]],s=n.length;for(let a=1,u,f;a<s;a++)u=n[a],f=n[a-1],i[a]={x:(s-a)/s*u.x+a/s*f.x,y:(s-a)/s*u.y+a/s*f.y};return i[s]=n[s-1],new Fe(i)}derivative(n){return re.compute(n,this.dpoints[0],this._3d)}dderivative(n){return re.compute(n,this.dpoints[1],this._3d)}align(){let n=this.points;return new Fe(re.align(n,{p1:n[0],p2:n[n.length-1]}))}curvature(n){return re.curvature(n,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return re.inflections(this.points)}normal(n){return this._3d?this.__normal3(n):this.__normal2(n)}__normal2(n){const i=this.derivative(n),s=Fo(i.x*i.x+i.y*i.y);return{t:n,x:-i.y/s,y:i.x/s}}__normal3(n){const i=this.derivative(n),s=this.derivative(n+.01),a=Fo(i.x*i.x+i.y*i.y+i.z*i.z),u=Fo(s.x*s.x+s.y*s.y+s.z*s.z);i.x/=a,i.y/=a,i.z/=a,s.x/=u,s.y/=u,s.z/=u;const f={x:s.y*i.z-s.z*i.y,y:s.z*i.x-s.x*i.z,z:s.x*i.y-s.y*i.x},h=Fo(f.x*f.x+f.y*f.y+f.z*f.z);f.x/=h,f.y/=h,f.z/=h;const p=[f.x*f.x,f.x*f.y-f.z,f.x*f.z+f.y,f.x*f.y+f.z,f.y*f.y,f.y*f.z-f.x,f.x*f.z-f.y,f.y*f.z+f.x,f.z*f.z];return{t:n,x:p[0]*i.x+p[1]*i.y+p[2]*i.z,y:p[3]*i.x+p[4]*i.y+p[5]*i.z,z:p[6]*i.x+p[7]*i.y+p[8]*i.z}}hull(n){let i=this.points,s=[],a=[],u=0;for(a[u++]=i[0],a[u++]=i[1],a[u++]=i[2],this.order===3&&(a[u++]=i[3]);i.length>1;){s=[];for(let f=0,h,p=i.length-1;f<p;f++)h=re.lerp(n,i[f],i[f+1]),a[u++]=h,s.push(h);i=s}return a}split(n,i){if(n===0&&i)return this.split(i).left;if(i===1)return this.split(n).right;const s=this.hull(n),a={left:this.order===2?new Fe([s[0],s[3],s[5]]):new Fe([s[0],s[4],s[7],s[9]]),right:this.order===2?new Fe([s[5],s[4],s[2]]):new Fe([s[9],s[8],s[6],s[3]]),span:s};return a.left._t1=re.map(0,0,1,this._t1,this._t2),a.left._t2=re.map(n,0,1,this._t1,this._t2),a.right._t1=re.map(n,0,1,this._t1,this._t2),a.right._t2=re.map(1,0,1,this._t1,this._t2),i?(i=re.map(i,n,1,0,1),a.right.split(i).left):a}extrema(){const n={};let i=[];return this.dims.forEach((function(s){let a=function(f){return f[s]},u=this.dpoints[0].map(a);n[s]=re.droots(u),this.order===3&&(u=this.dpoints[1].map(a),n[s]=n[s].concat(re.droots(u))),n[s]=n[s].filter(function(f){return f>=0&&f<=1}),i=i.concat(n[s].sort(re.numberSort))}).bind(this)),n.values=i.sort(re.numberSort).filter(function(s,a){return i.indexOf(s)===a}),n}bbox(){const n=this.extrema(),i={};return this.dims.forEach((function(s){i[s]=re.getminmax(this,s,n[s])}).bind(this)),i}overlaps(n){const i=this.bbox(),s=n.bbox();return re.bboxoverlap(i,s)}offset(n,i){if(typeof i<"u"){const s=this.get(n),a=this.normal(n),u={c:s,n:a,x:s.x+a.x*i,y:s.y+a.y*i};return this._3d&&(u.z=s.z+a.z*i),u}if(this._linear){const s=this.normal(0),a=this.points.map(function(u){const f={x:u.x+n*s.x,y:u.y+n*s.y};return u.z&&s.z&&(f.z=u.z+n*s.z),f});return[new Fe(a)]}return this.reduce().map(function(s){return s._linear?s.offset(n)[0]:s.scale(n)})}simple(){if(this.order===3){const a=re.angle(this.points[0],this.points[3],this.points[1]),u=re.angle(this.points[0],this.points[3],this.points[2]);if(a>0&&u<0||a<0&&u>0)return!1}const n=this.normal(0),i=this.normal(1);let s=n.x*i.x+n.y*i.y;return this._3d&&(s+=n.z*i.z),Io(TC(s))<MC/3}reduce(){let n,i=0,s=0,a=.01,u,f=[],h=[],p=this.extrema().values;for(p.indexOf(0)===-1&&(p=[0].concat(p)),p.indexOf(1)===-1&&p.push(1),i=p[0],n=1;n<p.length;n++)s=p[n],u=this.split(i,s),u._t1=i,u._t2=s,f.push(u),i=s;return f.forEach(function(y){for(i=0,s=0;s<=1;)for(s=i+a;s<=1+a;s+=a)if(u=y.split(i,s),!u.simple()){if(s-=a,Io(i-s)<a)return[];u=y.split(i,s),u._t1=re.map(i,0,1,y._t1,y._t2),u._t2=re.map(s,0,1,y._t1,y._t2),h.push(u),i=s;break}i<1&&(u=y.split(i,1),u._t1=re.map(i,0,1,y._t1,y._t2),u._t2=y._t2,h.push(u))}),h}translate(n,i,s){s=typeof s=="number"?s:i;const a=this.order;let u=this.points.map((f,h)=>(1-h/a)*i+h/a*s);return new Fe(this.points.map((f,h)=>({x:f.x+n.x*u[h],y:f.y+n.y*u[h]})))}scale(n){const i=this.order;let s=!1;if(typeof n=="function"&&(s=n),s&&i===2)return this.raise().scale(s);const a=this.clockwise,u=this.points;if(this._linear)return this.translate(this.normal(0),s?s(0):n,s?s(1):n);const f=s?s(0):n,h=s?s(1):n,p=[this.offset(0,10),this.offset(1,10)],y=[],v=re.lli4(p[0],p[0].c,p[1],p[1].c);if(!v)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(g){const _=y[g*i]=re.copy(u[g*i]);_.x+=(g?h:f)*p[g].n.x,_.y+=(g?h:f)*p[g].n.y}),s?([0,1].forEach(function(g){if(!(i===2&&g)){var _=u[g+1],x={x:_.x-v.x,y:_.y-v.y},S=s?s((g+1)/i):n;s&&!a&&(S=-S);var b=Fo(x.x*x.x+x.y*x.y);x.x/=b,x.y/=b,y[g+1]={x:_.x+S*x.x,y:_.y+S*x.y}}}),new Fe(y)):([0,1].forEach(g=>{if(i===2&&g)return;const _=y[g*i],x=this.derivative(g),S={x:_.x+x.x,y:_.y+x.y};y[g+1]=re.lli4(_,S,v,u[g+1])}),new Fe(y))}outline(n,i,s,a){if(i=i===void 0?n:i,this._linear){const M=this.normal(0),j=this.points[0],I=this.points[this.points.length-1];let L,K,G;s===void 0&&(s=n,a=i),L={x:j.x+M.x*n,y:j.y+M.y*n},G={x:I.x+M.x*s,y:I.y+M.y*s},K={x:(L.x+G.x)/2,y:(L.y+G.y)/2};const te=[L,K,G];L={x:j.x-M.x*i,y:j.y-M.y*i},G={x:I.x-M.x*a,y:I.y-M.y*a},K={x:(L.x+G.x)/2,y:(L.y+G.y)/2};const oe=[G,K,L],he=re.makeline(oe[2],te[0]),F=re.makeline(te[2],oe[0]),ee=[he,new Fe(te),F,new Fe(oe)];return new Bo(ee)}const u=this.reduce(),f=u.length,h=[];let p=[],y,v=0,g=this.length();const _=typeof s<"u"&&typeof a<"u";function x(M,j,I,L,K){return function(G){const te=L/I,oe=(L+K)/I,he=j-M;return re.map(G,0,1,M+te*he,M+oe*he)}}u.forEach(function(M){const j=M.length();_?(h.push(M.scale(x(n,s,g,v,j))),p.push(M.scale(x(-i,-a,g,v,j)))):(h.push(M.scale(n)),p.push(M.scale(-i))),v+=j}),p=p.map(function(M){return y=M.points,y[3]?M.points=[y[3],y[2],y[1],y[0]]:M.points=[y[2],y[1],y[0]],M}).reverse();const S=h[0].points[0],b=h[f-1].points[h[f-1].points.length-1],C=p[f-1].points[p[f-1].points.length-1],k=p[0].points[0],R=re.makeline(C,S),A=re.makeline(b,k),P=[R].concat(h).concat([A]).concat(p);return new Bo(P)}outlineshapes(n,i,s){i=i||n;const a=this.outline(n,i).curves,u=[];for(let f=1,h=a.length;f<h/2;f++){const p=re.makeshape(a[f],a[h-f],s);p.startcap.virtual=f>1,p.endcap.virtual=f<h/2-1,u.push(p)}return u}intersects(n,i){return n?n.p1&&n.p2?this.lineIntersects(n):(n instanceof Fe&&(n=n.reduce()),this.curveintersects(this.reduce(),n,i)):this.selfintersects(i)}lineIntersects(n){const i=Ig(n.p1.x,n.p2.x),s=Ig(n.p1.y,n.p2.y),a=Fg(n.p1.x,n.p2.x),u=Fg(n.p1.y,n.p2.y);return re.roots(this.points,n).filter(f=>{var h=this.get(f);return re.between(h.x,i,a)&&re.between(h.y,s,u)})}selfintersects(n){const i=this.reduce(),s=i.length-2,a=[];for(let u=0,f,h,p;u<s;u++)h=i.slice(u,u+1),p=i.slice(u+2),f=this.curveintersects(h,p,n),a.push(...f);return a}curveintersects(n,i,s){const a=[];n.forEach(function(f){i.forEach(function(h){f.overlaps(h)&&a.push({left:f,right:h})})});let u=[];return a.forEach(function(f){const h=re.pairiteration(f.left,f.right,s);h.length>0&&(u=u.concat(h))}),u}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,i,s,a){const u=(a-s)/4,f=this.get(s+u),h=this.get(a-u),p=re.dist(n,i),y=re.dist(n,f),v=re.dist(n,h);return Io(y-p)+Io(v-p)}_iterate(n,i){let s=0,a=1,u;do{u=0,a=1;let f=this.get(s),h,p,y,v,g=!1,_=!1,x,S=a,b=1;do if(_=g,v=y,S=(s+a)/2,h=this.get(S),p=this.get(a),y=re.getccenter(f,h,p),y.interval={start:s,end:a},g=this._error(y,f,s,a)<=n,x=_&&!g,x||(b=a),g){if(a>=1){if(y.interval.end=b=1,v=y,a>1){let k={x:y.x+y.r*EC(y.e),y:y.y+y.r*PC(y.e)};y.e+=re.angle({x:y.x,y:y.y},k,this.get(1))}break}a=a+(a-s)/2}else a=S;while(!x&&u++<100);if(u>=100)break;v=v||y,i.push(v),s=b}while(a<1);return i}}function Gc(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function OC(e){if(Array.isArray(e))return e}function NC(e){if(Array.isArray(e))return Gc(e)}function RC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AC(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function zC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
114
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
115
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DC(e,n){if(e==null)return{};var i,s,a=IC(e,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(s=0;s<u.length;s++)i=u[s],n.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}function IC(e,n){if(e==null)return{};var i={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(n.includes(s))continue;i[s]=e[s]}return i}function FC(e,n){return OC(e)||AC(e,n)||ky(e,n)||zC()}function LC(e){return NC(e)||RC(e)||ky(e)||jC()}function $C(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function UC(e){var n=$C(e,"string");return typeof n=="symbol"?n:n+""}function ky(e,n){if(e){if(typeof e=="string")return Gc(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Gc(e,n):void 0}}var HC=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=(n instanceof Array?n.length?n:[void 0]:[n]).map(function(h){return{keyAccessor:h,isProp:!(h instanceof Function)}}),u=e.reduce(function(h,p){var y=h,v=p;return a.forEach(function(g,_){var x=g.keyAccessor,S=g.isProp,b;if(S){var C=v,k=C[x],R=DC(C,[x].map(UC));b=k,v=R}else b=x(v,_);_+1<a.length?(y.hasOwnProperty(b)||(y[b]={}),y=y[b]):i?(y.hasOwnProperty(b)||(y[b]=[]),y[b].push(v)):y[b]=v}),h},{});i instanceof Function&&function h(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;y===a.length?Object.keys(p).forEach(function(v){return p[v]=i(p[v])}):Object.values(p).forEach(function(v){return h(v,y+1)})}(u);var f=u;return s&&(f=[],function h(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];y.length===a.length?f.push({keys:y,vals:p}):Object.entries(p).forEach(function(v){var g=FC(v,2),_=g[0],x=g[1];return h(x,[].concat(LC(y),[_]))})}(u),n instanceof Array&&n.length===0&&f.length===1&&(f[0].keys=[])),f};function VC(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}const Lg=Symbol("implicit");function Sy(){var e=new sg,n=[],i=[],s=Lg;function a(u){let f=e.get(u);if(f===void 0){if(s!==Lg)return s;e.set(u,f=n.push(u)-1)}return i[f%i.length]}return a.domain=function(u){if(!arguments.length)return n.slice();n=[],e=new sg;for(const f of u)e.has(f)||e.set(f,n.push(f)-1);return a},a.range=function(u){return arguments.length?(i=Array.from(u),a):i.slice()},a.unknown=function(u){return arguments.length?(s=u,a):s},a.copy=function(){return Sy(n,i).unknown(s)},VC.apply(a,arguments),a}function qC(e){for(var n=e.length/6|0,i=new Array(n),s=0;s<n;)i[s]="#"+e.slice(s*6,++s*6);return i}const BC=qC("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");function QC(e,n){n===void 0&&(n={});var i=n.insertAt;if(!(typeof document>"u")){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",i==="top"&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var WC=`.force-graph-container canvas {
|
|
116
|
+
display: block;
|
|
117
|
+
user-select: none;
|
|
118
|
+
outline: none;
|
|
119
|
+
-webkit-tap-highlight-color: transparent;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.force-graph-container .clickable {
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.force-graph-container .grabbable {
|
|
127
|
+
cursor: move;
|
|
128
|
+
cursor: grab;
|
|
129
|
+
cursor: -moz-grab;
|
|
130
|
+
cursor: -webkit-grab;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.force-graph-container .grabbable:active {
|
|
134
|
+
cursor: grabbing;
|
|
135
|
+
cursor: -moz-grabbing;
|
|
136
|
+
cursor: -webkit-grabbing;
|
|
137
|
+
}
|
|
138
|
+
`;QC(WC);function Xc(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function KC(e){if(Array.isArray(e))return e}function GC(e){if(Array.isArray(e))return Xc(e)}function $g(e,n,i){if(Cy())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,n);var a=new(e.bind.apply(e,s));return a}function es(e,n,i){return(n=tb(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Cy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cy=function(){return!!e})()}function XC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YC(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function ZC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
139
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
140
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ug(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,s)}return i}function Si(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Ug(Object(i),!0).forEach(function(s){es(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ug(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function Qo(e,n){return KC(e)||YC(e,n)||by(e,n)||ZC()}function qt(e){return GC(e)||XC(e)||by(e)||JC()}function eb(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function tb(e){var n=eb(e,"string");return typeof n=="symbol"?n:n+""}function Yc(e){"@babel/helpers - typeof";return Yc=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},Yc(e)}function by(e,n){if(e){if(typeof e=="string")return Xc(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Xc(e,n):void 0}}var nb=Sy(BC);function Hg(e,n,i){!n||typeof i!="string"||e.filter(function(s){return!s[i]}).forEach(function(s){s[i]=nb(n(s))})}function rb(e,n){var i=e.nodes,s=e.links,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=a.nodeFilter,f=u===void 0?function(){return!0}:u,h=a.onLoopError,p=h===void 0?function(x){throw"Invalid DAG structure! Found cycle in node path: ".concat(x.join(" -> "),".")}:h,y={};i.forEach(function(x){return y[n(x)]={data:x,out:[],depth:-1,skip:!f(x)}}),s.forEach(function(x){var S=x.source,b=x.target,C=P(S),k=P(b);if(!y.hasOwnProperty(C))throw"Missing source node with id: ".concat(C);if(!y.hasOwnProperty(k))throw"Missing target node with id: ".concat(k);var R=y[C],A=y[k];R.out.push(A);function P(M){return Yc(M)==="object"?n(M):M}});var v=[];_(Object.values(y));var g=Object.assign.apply(Object,[{}].concat(qt(Object.entries(y).filter(function(x){var S=Qo(x,2),b=S[1];return!b.skip}).map(function(x){var S=Qo(x,2),b=S[0],C=S[1];return es({},b,C.depth)}))));return g;function _(x){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,C=function(){var P=x[k];if(S.indexOf(P)!==-1){var M=[].concat(qt(S.slice(S.indexOf(P))),[P]).map(function(j){return n(j.data)});return v.some(function(j){return j.length===M.length&&j.every(function(I,L){return I===M[L]})})||(v.push(M),p(M)),1}b>P.depth&&(P.depth=b,_(P.out,[].concat(qt(S),[P]),b+(P.skip?0:1)))},k=0,R=x.length;k<R;k++)C()}}var ib=2,at=function(n,i){return i.onNeedsRedraw&&i.onNeedsRedraw()},Vg=function(n,i){if(!i.isShadow){var s=Ae(i.linkDirectionalParticles);i.graphData.links.forEach(function(a){var u=Math.round(Math.abs(s(a)));u?a.__photons=qt(Array(u)).map(function(){return{}}):delete a.__photons})}},Xl=hf({props:{graphData:{default:{nodes:[],links:[]},onChange:function(n,i){i.engineRunning=!1,Vg(n,i)}},dagMode:{onChange:function(n,i){!n&&(i.graphData.nodes||[]).forEach(function(s){return s.fx=s.fy=void 0})}},dagLevelDistance:{},dagNodeFilter:{default:function(n){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:at},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:at},nodeColor:{default:"color",triggerUpdate:!1,onChange:at},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:at},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:at},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:at},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:at},linkColor:{default:"color",triggerUpdate:!1,onChange:at},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:at},linkWidth:{default:1,triggerUpdate:!1,onChange:at},linkCurvature:{default:0,triggerUpdate:!1,onChange:at},linkCanvasObject:{triggerUpdate:!1,onChange:at},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:at},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:at},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:at},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:at},linkDirectionalParticles:{default:0,triggerUpdate:!1,onChange:Vg},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,i){i.forceLayout.alphaDecay(n)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(n,i){i.forceLayout.alphaTarget(n)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(n,i){i.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,i,s){return s===void 0?n.forceLayout.force(i):(n.forceLayout.force(i,s),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&&i(),a(),!n.isShadow&&u(),!n.isShadow&&f(),s(),this;function i(){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 s(){var h=Ae(n.nodeVisibility),p=Ae(n.nodeVal),y=Ae(n.nodeColor),v=Ae(n.nodeCanvasObjectMode),g=n.ctx,_=n.isShadow/n.globalScale,x=n.graphData.nodes.filter(h);g.save(),x.forEach(function(S){var b=v(S);if(n.nodeCanvasObject&&(b==="before"||b==="replace")&&(n.nodeCanvasObject(S,g,n.globalScale),b==="replace")){g.restore();return}var C=Math.sqrt(Math.max(0,p(S)||1))*n.nodeRelSize+_;g.beginPath(),g.arc(S.x,S.y,C,0,2*Math.PI,!1),g.fillStyle=y(S)||"rgba(31, 120, 180, 0.92)",g.fill(),n.nodeCanvasObject&&b==="after"&&n.nodeCanvasObject(S,n.ctx,n.globalScale)}),g.restore()}function a(){var h=Ae(n.linkVisibility),p=Ae(n.linkColor),y=Ae(n.linkWidth),v=Ae(n.linkLineDash),g=Ae(n.linkCurvature),_=Ae(n.linkCanvasObjectMode),x=n.ctx,S=n.isShadow*2,b=n.graphData.links.filter(h);b.forEach(j);var C=[],k=[],R=b;if(n.linkCanvasObject){var A=[],P=[];b.forEach(function(I){return({before:C,after:k,replace:A}[_(I)]||P).push(I)}),R=[].concat(qt(C),k,P),C=C.concat(A)}x.save(),C.forEach(function(I){return n.linkCanvasObject(I,x,n.globalScale)}),x.restore();var M=HC(R,[p,y,v]);x.save(),Object.entries(M).forEach(function(I){var L=Qo(I,2),K=L[0],G=L[1],te=!K||K==="undefined"?"rgba(0,0,0,0.15)":K;Object.entries(G).forEach(function(oe){var he=Qo(oe,2),F=he[0],ee=he[1],W=(F||1)/n.globalScale+S;Object.entries(ee).forEach(function(ie){var Q=Qo(ie,2);Q[0];var q=Q[1],B=v(q[0]);x.beginPath(),q.forEach(function(T){var V=T.source,se=T.target;if(!(!V||!se||!V.hasOwnProperty("x")||!se.hasOwnProperty("x"))){x.moveTo(V.x,V.y);var ae=T.__controlPoints;ae?x[ae.length===2?"quadraticCurveTo":"bezierCurveTo"].apply(x,qt(ae).concat([se.x,se.y])):x.lineTo(se.x,se.y)}}),x.strokeStyle=te,x.lineWidth=W,x.setLineDash(B||[]),x.stroke()})})}),x.restore(),x.save(),k.forEach(function(I){return n.linkCanvasObject(I,x,n.globalScale)}),x.restore();function j(I){var L=g(I);if(!L){I.__controlPoints=null;return}var K=I.source,G=I.target;if(!(!K||!G||!K.hasOwnProperty("x")||!G.hasOwnProperty("x"))){var te=Math.sqrt(Math.pow(G.x-K.x,2)+Math.pow(G.y-K.y,2));if(te>0){var oe=Math.atan2(G.y-K.y,G.x-K.x),he=te*L,F={x:(K.x+G.x)/2+he*Math.cos(oe-Math.PI/2),y:(K.y+G.y)/2+he*Math.sin(oe-Math.PI/2)};I.__controlPoints=[F.x,F.y]}else{var ee=L*70;I.__controlPoints=[G.x,G.y-ee,G.x+ee,G.y]}}}}function u(){var h=1.6,p=.2,y=Ae(n.linkDirectionalArrowLength),v=Ae(n.linkDirectionalArrowRelPos),g=Ae(n.linkVisibility),_=Ae(n.linkDirectionalArrowColor||n.linkColor),x=Ae(n.nodeVal),S=n.ctx;S.save(),n.graphData.links.filter(g).forEach(function(b){var C=y(b);if(!(!C||C<0)){var k=b.source,R=b.target;if(!(!k||!R||!k.hasOwnProperty("x")||!R.hasOwnProperty("x"))){var A=Math.sqrt(Math.max(0,x(k)||1))*n.nodeRelSize,P=Math.sqrt(Math.max(0,x(R)||1))*n.nodeRelSize,M=Math.min(1,Math.max(0,v(b))),j=_(b)||"rgba(0,0,0,0.28)",I=C/h/2,L=b.__controlPoints&&$g(Fe,[k.x,k.y].concat(qt(b.__controlPoints),[R.x,R.y])),K=L?function(W){return L.get(W)}:function(W){return{x:k.x+(R.x-k.x)*W||0,y:k.y+(R.y-k.y)*W||0}},G=L?L.length():Math.sqrt(Math.pow(R.x-k.x,2)+Math.pow(R.y-k.y,2)),te=A+C+(G-A-P-C)*M,oe=K(te/G),he=K((te-C)/G),F=K((te-C*(1-p))/G),ee=Math.atan2(oe.y-he.y,oe.x-he.x)-Math.PI/2;S.beginPath(),S.moveTo(oe.x,oe.y),S.lineTo(he.x+I*Math.cos(ee),he.y+I*Math.sin(ee)),S.lineTo(F.x,F.y),S.lineTo(he.x-I*Math.cos(ee),he.y-I*Math.sin(ee)),S.fillStyle=j,S.fill()}}}),S.restore()}function f(){var h=Ae(n.linkDirectionalParticles),p=Ae(n.linkDirectionalParticleSpeed),y=Ae(n.linkDirectionalParticleWidth),v=Ae(n.linkVisibility),g=Ae(n.linkDirectionalParticleColor||n.linkColor),_=n.ctx;_.save(),n.graphData.links.filter(v).forEach(function(x){var S=h(x);if(!(!x.hasOwnProperty("__photons")||!x.__photons.length)){var b=x.source,C=x.target;if(!(!b||!C||!b.hasOwnProperty("x")||!C.hasOwnProperty("x"))){var k=p(x),R=x.__photons||[],A=Math.max(0,y(x)/2)/Math.sqrt(n.globalScale),P=g(x)||"rgba(0,0,0,0.28)";_.fillStyle=P;var M=x.__controlPoints?$g(Fe,[b.x,b.y].concat(qt(x.__controlPoints),[C.x,C.y])):null,j=0,I=!1;R.forEach(function(L){var K=!!L.__singleHop;if(L.hasOwnProperty("__progressRatio")||(L.__progressRatio=K?0:j/S),!K&&j++,L.__progressRatio+=k,L.__progressRatio>=1)if(!K)L.__progressRatio=L.__progressRatio%1;else{I=!0;return}var G=L.__progressRatio,te=M?M.get(G):{x:b.x+(C.x-b.x)*G||0,y:b.y+(C.y-b.y)*G||0};_.beginPath(),_.arc(te.x,te.y,A,0,2*Math.PI,!1),_.fill()}),I&&(x.__photons=x.__photons.filter(function(L){return!L.__singleHop||L.__progressRatio<=1}))}}}),_.restore()}},emitParticle:function(n,i){return i&&(!i.__photons&&(i.__photons=[]),i.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:xC().force("link",hC()).force("charge",wC()).force("center",pS()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(n,i){i.ctx=n},update:function(n,i){n.engineRunning=!1,n.onUpdate(),n.nodeAutoColorBy!==null&&Hg(n.graphData.nodes,Ae(n.nodeAutoColorBy),n.nodeColor),n.linkAutoColorBy!==null&&Hg(n.graphData.links,Ae(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 s=n.forceLayout.force("link");s&&s.id(function(_){return _[n.nodeId]}).links(n.graphData.links);var a=n.dagMode&&rb(n.graphData,function(_){return _[n.nodeId]},{nodeFilter:n.dagNodeFilter,onLoopError:n.onDagError||void 0}),u=Math.max.apply(Math,qt(Object.values(a||[]))),f=n.dagLevelDistance||n.graphData.nodes.length/(u||1)*ib*(["radialin","radialout"].indexOf(n.dagMode)!==-1?.7:1);if(["lr","rl","td","bu"].includes(i.dagMode)){var h=["lr","rl"].includes(i.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(_){return delete _[h]})}if(["lr","rl","td","bu"].includes(n.dagMode)){var p=["rl","bu"].includes(n.dagMode),y=function(x){return(a[x[n.nodeId]]-u/2)*f*(p?-1:1)},v=["lr","rl"].includes(n.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(_){return _[v]=y(_)})}n.forceLayout.force("dagRadial",["radialin","radialout"].indexOf(n.dagMode)!==-1?kC(function(_){var x=a[_[n.nodeId]]||-1;return(n.dagMode==="radialin"?u-x:x)*f}).strength(function(_){return n.dagNodeFilter(_)?1:0}):null);for(var g=0;g<n.warmupTicks&&!(n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin);g++)n.forceLayout.tick();this.resetCountdown(),n.onFinishUpdate()}});function Ey(e,n){var i=e instanceof Array?e:[e],s=new n;return s._destructor&&s._destructor(),{linkProp:function(u){return{default:s[u](),onChange:function(h,p){i.forEach(function(y){return p[y][u](h)})},triggerUpdate:!1}},linkMethod:function(u){return function(f){for(var h=arguments.length,p=new Array(h>1?h-1:0),y=1;y<h;y++)p[y-1]=arguments[y];var v=[];return i.forEach(function(g){var _=f[g],x=_[u].apply(_,p);x!==_&&v.push(x)}),v.length?v[0]:this}}}}var ob=800,sb=4,lb=5,Py=Ey("forceGraph",Xl),ab=Ey(["forceGraph","shadowGraph"],Xl),ub=Object.assign.apply(Object,qt(["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 es({},e,Py.linkProp(e))})).concat(qt(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map(function(e){return es({},e,ab.linkProp(e))})))),cb=Object.assign.apply(Object,qt(["d3Force","d3ReheatSimulation","emitParticle"].map(function(e){return es({},e,Py.linkMethod(e))})));function pc(e){if(e.canvas){var n=e.canvas.width,i=e.canvas.height;n===300&&i===150&&(n=i=0);var s=window.devicePixelRatio;n/=s,i/=s,[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*s,u.height=e.height*s,!n&&!i&&u.getContext("2d").scale(s,s)});var a=fn(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-n)/2/a,(e.height-i)/2/a),e.needsRedraw=!0}}function Ty(e){var n=window.devicePixelRatio;e.setTransform(n,0,0,n,0,0)}function qg(e,n,i){e.save(),Ty(e),e.clearRect(0,0,n,i),e.restore()}var fb=hf({props:Si({width:{default:window.innerWidth,onChange:function(n,i){return pc(i)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(n,i){return pc(i)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(n,i){[n.nodes,n.links].every(function(a){return(a||[]).every(function(u){return!u.hasOwnProperty("__indexColor")})})&&i.colorTracker.reset(),[{type:"Node",objs:n.nodes},{type:"Link",objs:n.links}].forEach(s),i.forceGraph.graphData(n),i.shadowGraph.graphData(n);function s(a){var u=a.type,f=a.objs;f.filter(function(h){if(!h.hasOwnProperty("__indexColor"))return!0;var p=i.colorTracker.lookup(h.__indexColor);return!p||!p.hasOwnProperty("d")||p.d!==h}).forEach(function(h){h.__indexColor=i.colorTracker.register({type:u,d:h})})}},triggerUpdate:!1},backgroundColor:{onChange:function(n,i){i.canvas&&n&&(i.canvas.style.background=n)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(n,i){i.shadowGraph.nodeCanvasObject(n?function(s,a,u){return n(s,s.__indexColor,a,u)}:null),i.flushShadowCanvas&&i.flushShadowCanvas()},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(n,i){i.shadowGraph.linkCanvasObject(n?function(s,a,u){return n(s,s.__indexColor,a,u)}:null),i.flushShadowCanvas&&i.flushShadowCanvas()},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(n,i){i.zoom.scaleExtent([n,i.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(n,i){i.zoom.scaleExtent([i.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,i){i.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}},ub),aliases:{stopAnimation:"pauseAnimation"},methods:Si({graph2ScreenCoords:function(n,i,s){var a=fn(n.canvas);return{x:i*a.k+a.x,y:s*a.k+a.y}},screen2GraphCoords:function(n,i,s){var a=fn(n.canvas);return{x:(i-a.x)/a.k,y:(s-a.y)/a.k}},centerAt:function(n,i,s,a){if(!n.canvas)return null;if(i!==void 0||s!==void 0){var u=Object.assign({},i!==void 0?{x:i}:{},s!==void 0?{y:s}:{});return a?n.tweenGroup.add(new dg(f()).to(u,a).easing(Qr.Quadratic.Out).onUpdate(h).start()):h(u),this}return f();function f(){var p=fn(n.canvas);return{x:(n.width/2-p.x)/p.k,y:(n.height/2-p.y)/p.k}}function h(p){var y=p.x,v=p.y;n.zoom.translateTo(n.zoom.__baseElem,y===void 0?f().x:y,v===void 0?f().y:v),n.needsRedraw=!0}},zoom:function(n,i,s){if(!n.canvas)return null;if(i!==void 0)return s?n.tweenGroup.add(new dg({k:a()}).to({k:i},s).easing(Qr.Quadratic.Out).onUpdate(function(f){var h=f.k;return u(h)}).start()):u(i),this;return a();function a(){return fn(n.canvas).k}function u(f){n.zoom.scaleTo(n.zoom.__baseElem,f),n.needsRedraw=!0}},zoomToFit:function(n){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,a=arguments.length,u=new Array(a>3?a-3:0),f=3;f<a;f++)u[f-3]=arguments[f];var h=this.getGraphBbox.apply(this,u);if(h){var p={x:(h.x[0]+h.x[1])/2,y:(h.y[0]+h.y[1])/2},y=Math.max(1e-12,Math.min(1e12,(n.width-s*2)/(h.x[1]-h.x[0]),(n.height-s*2)/(h.y[1]-h.y[0])));this.centerAt(p.x,p.y,i),this.zoom(y,i)}return this},getGraphBbox:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},s=Ae(n.nodeVal),a=function(h){return Math.sqrt(Math.max(0,s(h)||1))*n.nodeRelSize},u=n.graphData.nodes.filter(i).map(function(f){return{x:f.x,y:f.y,r:a(f)}});return u.length?{x:[ug(u,function(f){return f.x-f.r}),ag(u,function(f){return f.x+f.r})],y:[ug(u,function(f){return f.y-f.r}),ag(u,function(f){return f.y+f.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:[]})}},cb),stateInit:function(){return{lastSetZoom:1,zoom:k2(),forceGraph:new Xl,shadowGraph:new Xl().cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new Qk,tweenGroup:new X0}},init:function(n,i){var s=this;n.innerHTML="";var a=document.createElement("div");a.classList.add("force-graph-container"),a.style.position="relative",n.appendChild(a),i.canvas=document.createElement("canvas"),i.backgroundColor&&(i.canvas.style.background=i.backgroundColor),a.appendChild(i.canvas),i.shadowCanvas=document.createElement("canvas");var u=i.canvas.getContext("2d"),f=i.shadowCanvas.getContext("2d",{willReadFrequently:!0}),h={x:-1e12,y:-1e12},p=function(){var g=null,_=window.devicePixelRatio,x=h.x>0&&h.y>0?f.getImageData(h.x*_,h.y*_,1,1):null;return x&&(g=i.colorTracker.lookup(x.data)),g};Vt(i.canvas).call(Rx().subject(function(){if(!i.enableNodeDrag)return null;var v=p();return v&&v.type==="Node"?v.d:null}).on("start",function(v){var g=v.subject;g.__initialDragPos={x:g.x,y:g.y,fx:g.fx,fy:g.fy},v.active||(g.fx=g.x,g.fy=g.y),i.canvas.classList.add("grabbable")}).on("drag",function(v){var g=v.subject,_=g.__initialDragPos,x=v,S=fn(i.canvas).k,b={x:_.x+(x.x-_.x)/S-g.x,y:_.y+(x.y-_.y)/S-g.y};["x","y"].forEach(function(C){return g["f".concat(C)]=g[C]=_[C]+(x[C]-_[C])/S}),!(!g.__dragged&&lb>=Math.sqrt(E2(["x","y"].map(function(C){return Math.pow(v[C]-_[C],2)}))))&&(i.forceGraph.d3AlphaTarget(.3).resetCountdown(),i.isPointerDragging=!0,g.__dragged=!0,i.onNodeDrag(g,b))}).on("end",function(v){var g=v.subject,_=g.__initialDragPos,x={x:g.x-_.x,y:g.y-_.y};_.fx===void 0&&(g.fx=void 0),_.fy===void 0&&(g.fy=void 0),delete g.__initialDragPos,i.forceGraph.d3AlphaTarget()&&i.forceGraph.d3AlphaTarget(0).resetCountdown(),i.canvas.classList.remove("grabbable"),i.isPointerDragging=!1,g.__dragged&&(delete g.__dragged,i.onNodeDragEnd(g,x))})),i.zoom(i.zoom.__baseElem=Vt(i.canvas)),i.zoom.__baseElem.on("dblclick.zoom",null),i.zoom.filter(function(v){return!v.button&&i.enableZoomPanInteraction&&(v.type!=="wheel"||Ae(i.enableZoomInteraction)(v))&&(v.type==="wheel"||Ae(i.enablePanInteraction)(v))}).on("zoom",function(v){var g=v.transform;[u,f].forEach(function(_){Ty(_),_.translate(g.x,g.y),_.scale(g.k,g.k)}),i.isPointerDragging=!0,i.onZoom&&i.onZoom(Si(Si({},g),s.centerAt())),i.needsRedraw=!0}).on("end",function(v){i.isPointerDragging=!1,i.onZoomEnd&&i.onZoomEnd(Si(Si({},v.transform),s.centerAt()))}),pc(i),i.forceGraph.onNeedsRedraw(function(){return i.needsRedraw=!0}).onFinishUpdate(function(){fn(i.canvas).k===i.lastSetZoom&&i.graphData.nodes.length&&(i.zoom.scaleTo(i.zoom.__baseElem,i.lastSetZoom=sb/Math.cbrt(i.graphData.nodes.length)),i.needsRedraw=!0)}),i.tooltip=new dS(a),["pointermove","pointerdown"].forEach(function(v){return a.addEventListener(v,function(g){v==="pointerdown"&&(i.isPointerPressed=!0,i.pointerDownEvent=g),!i.isPointerDragging&&g.type==="pointermove"&&i.onBackgroundClick&&(g.pressure>0||i.isPointerPressed)&&(g.pointerType!=="touch"||g.movementX===void 0||[g.movementX,g.movementY].some(function(S){return Math.abs(S)>1}))&&(i.isPointerDragging=!0);var _=x(a);h.x=g.pageX-_.left,h.y=g.pageY-_.top;function x(S){var b=S.getBoundingClientRect(),C=window.pageXOffset||document.documentElement.scrollLeft,k=window.pageYOffset||document.documentElement.scrollTop;return{top:b.top+k,left:b.left+C}}},{passive:!0})}),a.addEventListener("pointerup",function(v){if(i.isPointerPressed){if(i.isPointerPressed=!1,i.isPointerDragging){i.isPointerDragging=!1;return}var g=[v,i.pointerDownEvent];requestAnimationFrame(function(){if(v.button===0)if(i.hoverObj){var _=i["on".concat(i.hoverObj.type,"Click")];_&&_.apply(void 0,[i.hoverObj.d].concat(g))}else i.onBackgroundClick&&i.onBackgroundClick.apply(i,g);if(v.button===2)if(i.hoverObj){var x=i["on".concat(i.hoverObj.type,"RightClick")];x&&x.apply(void 0,[i.hoverObj.d].concat(g))}else i.onBackgroundRightClick&&i.onBackgroundRightClick.apply(i,g)})}},{passive:!0}),a.addEventListener("contextmenu",function(v){return!i.onBackgroundRightClick&&!i.onNodeRightClick&&!i.onLinkRightClick?!0:(v.preventDefault(),!1)}),i.forceGraph(u),i.shadowGraph(f);var y=J2(function(){qg(f,i.width,i.height),i.shadowGraph.linkWidth(function(g){return Ae(i.linkWidth)(g)+i.linkHoverPrecision});var v=fn(i.canvas);i.shadowGraph.globalScale(v.k).tickFrame()},ob);i.flushShadowCanvas=y.flush,(this._animationCycle=function v(){var g=!i.autoPauseRedraw||!!i.needsRedraw||i.forceGraph.isEngineRunning()||i.graphData.links.some(function(A){return A.__photons&&A.__photons.length});if(i.needsRedraw=!1,i.enablePointerInteraction){var _=i.isPointerDragging?null:p();if(_!==i.hoverObj){var x=i.hoverObj,S=x?x.type:null,b=_?_.type:null;if(S&&S!==b){var C=i["on".concat(S,"Hover")];C&&C(null,x.d)}if(b){var k=i["on".concat(b,"Hover")];k&&k(_.d,S===b?x.d:null)}i.tooltip.content(_&&Ae(i["".concat(_.type.toLowerCase(),"Label")])(_.d)||null),i.canvas.classList[_&&i["on".concat(b,"Click")]||!_&&i.onBackgroundClick?"add":"remove"]("clickable"),i.hoverObj=_}g&&y()}if(g){qg(u,i.width,i.height);var R=fn(i.canvas).k;i.onRenderFramePre&&i.onRenderFramePre(u,R),i.forceGraph.globalScale(R).tickFrame(),i.onRenderFramePost&&i.onRenderFramePost(u,R)}i.tweenGroup.update(),i.animationFrameRequestId=requestAnimationFrame(v)})()},update:function(n){}}),gc={exports:{}},yc,Bg;function hb(){if(Bg)return yc;Bg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return yc=e,yc}var mc,Qg;function db(){if(Qg)return mc;Qg=1;var e=hb();function n(){}function i(){}return i.resetWarningCache=n,mc=function(){function s(f,h,p,y,v,g){if(g!==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",_}}s.isRequired=s;function a(){return s}var u={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:a,element:s,elementType:s,instanceOf:a,node:s,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:i,resetWarningCache:n};return u.PropTypes=u,u},mc}var Wg;function pb(){return Wg||(Wg=1,gc.exports=db()()),gc.exports}var gb=pb();const D=i0(gb),ia={width:D.number,height:D.number,graphData:D.shape({nodes:D.arrayOf(D.object).isRequired,links:D.arrayOf(D.object).isRequired}),backgroundColor:D.string,nodeRelSize:D.number,nodeId:D.string,nodeLabel:D.oneOfType([D.string,D.func]),nodeVal:D.oneOfType([D.number,D.string,D.func]),nodeVisibility:D.oneOfType([D.bool,D.string,D.func]),nodeColor:D.oneOfType([D.string,D.func]),nodeAutoColorBy:D.oneOfType([D.string,D.func]),onNodeHover:D.func,onNodeClick:D.func,linkSource:D.string,linkTarget:D.string,linkLabel:D.oneOfType([D.string,D.func]),linkVisibility:D.oneOfType([D.bool,D.string,D.func]),linkColor:D.oneOfType([D.string,D.func]),linkAutoColorBy:D.oneOfType([D.string,D.func]),linkWidth:D.oneOfType([D.number,D.string,D.func]),linkCurvature:D.oneOfType([D.number,D.string,D.func]),linkDirectionalArrowLength:D.oneOfType([D.number,D.string,D.func]),linkDirectionalArrowColor:D.oneOfType([D.string,D.func]),linkDirectionalArrowRelPos:D.oneOfType([D.number,D.string,D.func]),linkDirectionalParticles:D.oneOfType([D.number,D.string,D.func]),linkDirectionalParticleSpeed:D.oneOfType([D.number,D.string,D.func]),linkDirectionalParticleWidth:D.oneOfType([D.number,D.string,D.func]),linkDirectionalParticleColor:D.oneOfType([D.string,D.func]),onLinkHover:D.func,onLinkClick:D.func,dagMode:D.oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:D.number,dagNodeFilter:D.func,onDagError:D.func,d3AlphaMin:D.number,d3AlphaDecay:D.number,d3VelocityDecay:D.number,warmupTicks:D.number,cooldownTicks:D.number,cooldownTime:D.number,onEngineTick:D.func,onEngineStop:D.func,getGraphBbox:D.func},My={zoomToFit:D.func,onNodeRightClick:D.func,onNodeDrag:D.func,onNodeDragEnd:D.func,onLinkRightClick:D.func,linkHoverPrecision:D.number,onBackgroundClick:D.func,onBackgroundRightClick:D.func,enablePointerInteraction:D.bool,enableNodeDrag:D.bool},xf={showNavInfo:D.bool,nodeOpacity:D.number,nodeResolution:D.number,nodeThreeObject:D.oneOfType([D.object,D.string,D.func]),nodeThreeObjectExtend:D.oneOfType([D.bool,D.string,D.func]),linkOpacity:D.number,linkResolution:D.number,linkCurveRotation:D.oneOfType([D.number,D.string,D.func]),linkMaterial:D.oneOfType([D.object,D.string,D.func]),linkThreeObject:D.oneOfType([D.object,D.string,D.func]),linkThreeObjectExtend:D.oneOfType([D.bool,D.string,D.func]),linkPositionUpdate:D.func,linkDirectionalArrowResolution:D.number,linkDirectionalParticleResolution:D.number,forceEngine:D.oneOf(["d3","ngraph"]),ngraphPhysics:D.object,numDimensions:D.oneOf([1,2,3])},yb=Object.assign({},ia,My,{linkLineDash:D.oneOfType([D.arrayOf(D.number),D.string,D.func]),nodeCanvasObjectMode:D.oneOfType([D.string,D.func]),nodeCanvasObject:D.func,nodePointerAreaPaint:D.func,linkCanvasObjectMode:D.oneOfType([D.string,D.func]),linkCanvasObject:D.func,linkPointerAreaPaint:D.func,autoPauseRedraw:D.bool,minZoom:D.number,maxZoom:D.number,enableZoomInteraction:D.oneOfType([D.bool,D.func]),enablePanInteraction:D.oneOfType([D.bool,D.func]),onZoom:D.func,onZoomEnd:D.func,onRenderFramePre:D.func,onRenderFramePost:D.func});Object.assign({},ia,My,xf,{enableNavigationControls:D.bool,controlType:D.oneOf(["trackball","orbit","fly"]),rendererConfig:D.object,extraRenderers:D.arrayOf(D.shape({render:D.func.isRequired}))});Object.assign({},ia,xf,{nodeDesc:D.oneOfType([D.string,D.func]),linkDesc:D.oneOfType([D.string,D.func])});Object.assign({},ia,xf,{markerAttrs:D.object,yOffset:D.number,glScale:D.number});const wf=q1(fb,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});wf.displayName="ForceGraph2D";wf.propTypes=yb;const vc=50,mb=2;function vb({memories:e,onNodeClick:n,selectedMemoryId:i}){const s=ye.useRef(void 0),[a,u]=ye.useState({nodes:[],links:[]}),[f,h]=ye.useState(new Set),[p,y]=ye.useState(new Set),[v,g]=ye.useState(null);ye.useEffect(()=>{if(e&&e.length>0){const S=e.slice(0,vc).map(C=>{var k,R;return{id:C.id,name:((k=C.metadata)==null?void 0:k.title)||((R=C.id)==null?void 0:R.substring(0,8))||"Memory",val:5,memory:C}}),b=[];if(S.length>1)for(let C=0;C<S.length;C++){const k=S[C];for(let R=0;R<Math.min(mb,S.length-1);R++){let A=Math.floor(Math.random()*S.length);for(;A===C||b.some(P=>P.source===k.id&&P.target===S[A].id);)A=Math.floor(Math.random()*S.length);S[A]&&b.push({source:k.id,target:S[A].id,value:Math.random()*2+1})}}u({nodes:S,links:b})}else u({nodes:[],links:[]})},[e]);const _=S=>{f.clear(),p.clear(),S&&(f.add(S.id),a.links.forEach(b=>{(b.source===S.id||b.target===S.id)&&(p.add(b),f.add(b.source),f.add(b.target))})),g(S),h(new Set(f)),y(new Set(p))},x=ye.useCallback(S=>{var b,C;n(S.memory),(b=s.current)==null||b.centerAt(S.x,S.y,1e3),(C=s.current)==null||C.zoom(2,1e3)},[n,s]);return!e||e.length===0?J.jsx("div",{className:"text-center text-muted-foreground p-8",children:"No memories to display in graph."}):a.nodes.length===0&&e.length>0?J.jsx("div",{className:"text-center text-muted-foreground p-8",children:"Preparing graph data..."}):J.jsxs("div",{style:{margin:"auto",position:"relative",border:"1px solid #e2e8f0",borderRadius:"0.375rem"},children:[J.jsx(wf,{ref:s,graphData:a,nodeLabel:"name",nodeVal:"val",nodeRelSize:4,linkDirectionalParticles:1,linkDirectionalParticleWidth:S=>p.has(S)?2:0,linkWidth:S=>p.has(S)?1.5:.5,linkColor:S=>p.has(S)?"rgba(100,100,255,0.7)":"rgba(0,0,0,0.15)",nodeCanvasObjectMode:()=>"after",nodeCanvasObject:(S,b,C)=>{const k=S,R=k.name,A=12/C;b.font=`${A}px Sans-Serif`,b.textAlign="center",b.textBaseline="middle";const P=i===k.id,M=(v==null?void 0:v.id)===k.id,j=f.has(k.id);b.fillStyle=P?"rgba(60, 100, 200, 0.9)":M||j?"rgba(0, 50, 150, 0.7)":"rgba(0, 0, 0, 0.5)",b.fillText(R,k.x||0,(k.y||0)+8),b.beginPath(),b.arc(k.x||0,k.y||0,k.val||5,0,2*Math.PI,!1),b.fillStyle=P?"blue":M?"darkslateblue":j?"slateblue":"lightblue",b.fill(),P&&(b.strokeStyle="white",b.lineWidth=1/C,b.stroke())},onNodeHover:_,onNodeClick:x,width:600,height:500,cooldownTicks:100,onEngineStop:()=>{var S;return(S=s.current)==null?void 0:S.zoomToFit(400,100)}}),e.length>vc&&J.jsxs("div",{className:"absolute bottom-2 right-2 text-xs bg-background/80 p-1 rounded",children:["Displaying ",vc," of ",e.length," memories for performance."]})]})}const us=(...e)=>e.filter(Boolean).join(" "),_b=()=>({toast:({title:e,description:n,variant:i})=>{console.log(`Toast: ${e} - ${n} (${i||"default"})`)}}),xb=({open:e,onOpenChange:n,children:i})=>e?J.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",onClick:()=>n(!1),children:J.jsx("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-xl max-w-full max-h-full flex flex-col",onClick:s=>s.stopPropagation(),children:i})}):null,wb=({className:e,children:n})=>J.jsx("div",{className:us("p-6 flex flex-col",e),children:n}),kb=({className:e,children:n})=>J.jsx("div",{className:us("mb-4",e),children:n}),Sb=({className:e,children:n})=>J.jsx("h2",{className:us("text-lg font-semibold",e),children:n}),Cb=({className:e,children:n})=>J.jsx("p",{className:us("text-sm text-gray-600",e),children:n}),bb=({className:e,children:n})=>J.jsx("div",{className:us("flex justify-end gap-2 mt-4",e),children:n}),Ol=10,kf={getKnowledgeDocuments:async(e,n)=>{const i=new URLSearchParams;n!=null&&n.limit&&i.append("limit",n.limit.toString()),n!=null&&n.before&&i.append("before",n.before.toString()),n!=null&&n.includeEmbedding&&i.append("includeEmbedding","true");const s=await fetch(`/api/agents/${e}/plugins/knowledge/documents?${i.toString()}`);if(!s.ok){const u=await s.text();throw new Error(`Failed to fetch knowledge documents: ${s.status} ${u}`)}return await s.json()},deleteKnowledgeDocument:async(e,n)=>{const i=await fetch(`/api/agents/${e}/plugins/knowledge/documents/${n}`,{method:"DELETE"});if(!i.ok){const s=await i.text();throw new Error(`Failed to delete knowledge document: ${i.status} ${s}`)}if(i.status!==204)return await i.json()},uploadKnowledge:async(e,n)=>{const i=new FormData;n.forEach(a=>i.append("files",a));const s=await fetch(`/api/agents/${e}/plugins/knowledge/upload`,{method:"POST",body:i});if(!s.ok){const a=await s.text();throw new Error(`Failed to upload knowledge: ${s.status} ${a}`)}return await s.json()}},Eb=(e,n=!0,i=!1)=>a1({queryKey:["agents",e,"knowledge","documents",{includeEmbedding:i}],queryFn:async()=>(await kf.getKnowledgeDocuments(e,{includeEmbedding:i})).data.memories,enabled:n}),Pb=e=>{const n=Yl();return u1({mutationFn:async({knowledgeId:i})=>{await kf.deleteKnowledgeDocument(e,i)},onSuccess:()=>{n.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})}})};function Tb({agentId:e}){var ie,Q;const[n,i]=ye.useState(null),[s,a]=ye.useState(!1),[u,f]=ye.useState(Ol),[h,p]=ye.useState(!1),[y,v]=ye.useState("list"),[g,_]=ye.useState(null),[x,S]=ye.useState(1),b=ye.useRef(null),C=ye.useRef(null),{toast:k}=_b(),R=Yl(),{data:A=[],isLoading:P,error:M}=Eb(e,!0,y==="graph"),{mutate:j}=Pb(e),I=ye.useCallback(()=>{if(!C.current||h||u>=A.length)return;const{scrollTop:q,scrollHeight:B,clientHeight:T}=C.current;q+T>=B-100&&(p(!0),setTimeout(()=>{f(se=>Math.min(se+Ol,A.length)),p(!1)},300))},[h,u,A.length]);if(ye.useEffect(()=>{f(Ol)},[]),ye.useEffect(()=>{const q=C.current;if(q)return q.addEventListener("scroll",I),()=>q.removeEventListener("scroll",I)},[I]),P&&(!A||A.length===0))return J.jsx("div",{className:"flex items-center justify-center h-40",children:"Loading knowledge documents..."});if(M)return J.jsxs("div",{className:"flex items-center justify-center h-40 text-destructive",children:["Error loading knowledge documents: ",M.message]});const L=q=>{var T;switch((T=q.split(".").pop())==null?void 0:T.toLowerCase()){case"md":return J.jsx(oc,{className:"h-4 w-4 text-blue-500"});case"js":case"ts":case"jsx":case"tsx":return J.jsx(oc,{className:"h-4 w-4 text-yellow-500"});case"json":return J.jsx(oc,{className:"h-4 w-4 text-green-500"});case"pdf":return J.jsx(Dp,{className:"h-4 w-4 text-red-500"});default:return J.jsx(Dp,{className:"h-4 w-4 text-gray-500"})}},K=q=>{q&&window.confirm("Are you sure you want to delete this document?")&&(j({knowledgeId:q}),i(null))},G=()=>{b.current&&b.current.click()},te=async q=>{const B=q.target.files;if(!(!B||B.length===0)){a(!0);try{const T=Array.from(B),se=(await kf.uploadKnowledge(e,T)).data||[];if(Array.isArray(se)&&se.every(ae=>ae.status==="success"))k({title:"Knowledge Uploaded",description:`Successfully uploaded ${T.length} file(s)`}),R.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]});else{const ae=se.filter(we=>we.status==="success").length,me=T.length-ae;k({title:me>0?"Upload Partially Failed":"Upload Issues",description:`Uploaded ${ae} file(s). ${me} file(s) failed. Check console for details.`,variant:me>0?"destructive":"default"}),console.error("Upload results:",se)}}catch(T){k({title:"Upload Failed",description:T instanceof Error?T.message:"Failed to upload knowledge files",variant:"destructive"}),console.error("Upload error:",T)}finally{a(!1),b.current&&(b.current.value="")}}},oe=A.slice(0,u),he=u<A.length,F=()=>J.jsx("div",{className:"flex justify-center p-4",children:h?J.jsxs("div",{className:"flex items-center gap-2",children:[J.jsx(Ip,{className:"h-4 w-4 animate-spin"}),J.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading more..."})]}):J.jsx(Tn,{variant:"ghost",size:"sm",onClick:()=>f(q=>q+Ol),className:"text-xs",children:"Show more"})}),ee=()=>J.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:[J.jsx(_1,{className:"h-12 w-12 text-muted-foreground opacity-20"}),J.jsx("h3",{className:"text-lg font-medium",children:"No Knowledge Documents"}),J.jsx("p",{className:"max-w-md text-sm",children:"No Knowledge Documents found."}),J.jsxs(Tn,{variant:"outline",onClick:G,children:[J.jsx(Fp,{className:"h-4 w-4 mr-2"}),"Upload Documents"]})]}),W=({memory:q,index:B})=>{var Ce;const T=q.metadata||{},V=T.title||q.id||"Unknown Document",se=T.filename||"Unknown Document",ae=T.fileExt||((Ce=se.split(".").pop())==null?void 0:Ce.toLowerCase())||"",me=V,we=T.path||se;return J.jsx("button",{type:"button",className:"w-full text-left",onClick:()=>i(q),children:J.jsxs(S1,{className:"hover:bg-accent/10 transition-colors relative group",children:[J.jsx("div",{className:"absolute top-3 left-3 opacity-70",children:L(se)}),J.jsxs(C1,{className:"p-3 pb-2 pl-10",children:[J.jsx("div",{className:"text-xs text-muted-foreground mb-1 line-clamp-1",children:we}),J.jsxs("div",{className:"mb-2",children:[J.jsx("div",{className:"text-sm font-medium mb-1",children:me}),T.description&&J.jsx("div",{className:"text-xs text-muted-foreground line-clamp-2",children:T.description})]})]}),J.jsx(b1,{className:"p-2 border-t bg-muted/30 text-xs text-muted-foreground",children:J.jsxs("div",{className:"flex justify-between items-center w-full",children:[J.jsxs("div",{className:"flex items-center",children:[J.jsx(x1,{className:"h-3 w-3 mr-1.5"}),J.jsx("span",{children:new Date(q.createdAt||0).toLocaleString(void 0,{month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"})})]}),J.jsxs("div",{className:"flex items-center gap-2",children:[J.jsx(k1,{variant:"outline",className:"px-1.5 py-0 h-5",children:ae||"unknown document"}),q.id&&J.jsx(Tn,{variant:"ghost",size:"icon",className:"size-6 opacity-0 group-hover:opacity-100 transition-opacity",onClick:Se=>{Se&&(Se.stopPropagation(),Se.preventDefault()),K(q.id||"")},title:"Delete knowledge",children:J.jsx(w1,{className:"h-3.5 w-3.5 text-destructive"})})]})]})})]})},q.id||B)};return J.jsxs("div",{className:"flex flex-col h-full",children:[J.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[J.jsx("h2",{className:"text-lg font-semibold",children:"Knowledge"}),J.jsxs("div",{className:"flex items-center gap-2",children:[J.jsx(Tn,{variant:"outline",size:"sm",onClick:()=>v(y==="list"?"graph":"list"),children:y==="list"?"Graph":"List"}),J.jsxs(Tn,{onClick:G,disabled:s,children:[s?J.jsx(Ip,{className:"h-4 w-4 animate-spin mr-2"}):J.jsx(Fp,{className:"h-4 w-4 mr-2"}),"Upload"]})]})]}),J.jsx("input",{ref:b,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:te,className:"hidden"}),J.jsx("div",{className:"flex-1 overflow-hidden",children:A.length===0?J.jsx(ee,{}):y==="graph"?J.jsx("div",{className:"h-full p-4",children:J.jsx(vb,{memories:A,onNodeClick:_,selectedMemoryId:g==null?void 0:g.id})}):J.jsxs("div",{ref:C,className:"h-full overflow-y-auto p-4",children:[J.jsx("div",{className:"grid gap-3",children:oe.map((q,B)=>J.jsx(W,{memory:q,index:B},q.id||B))}),he&&J.jsx(F,{})]})}),n&&J.jsx(xb,{open:!!n,onOpenChange:()=>i(null),children:J.jsxs(wb,{className:"max-w-[95vw] w-full max-h-[95vh] h-full overflow-hidden flex flex-col p-0",children:[J.jsx(kb,{className:"flex-shrink-0 p-6 pb-2",children:J.jsxs("div",{className:"flex items-center justify-between",children:[J.jsxs("div",{children:[J.jsx(Sb,{className:"text-xl",children:((ie=n.metadata)==null?void 0:ie.title)||"Document Content"}),J.jsx(Cb,{children:((Q=n.metadata)==null?void 0:Q.filename)||"Knowledge document"})]}),(()=>{var se;const q=n.metadata,B=(q==null?void 0:q.contentType)||"",T=((se=q==null?void 0:q.fileExt)==null?void 0:se.toLowerCase())||"";return B==="application/pdf"||T==="pdf"?J.jsxs("div",{className:"flex items-center gap-2",children:[J.jsx(Tn,{variant:"outline",size:"sm",onClick:()=>S(Math.max(.5,x-.25)),disabled:x<=.5,children:J.jsx("span",{className:"text-lg",children:"−"})}),J.jsxs("span",{className:"text-sm font-medium min-w-[60px] text-center",children:[Math.round(x*100),"%"]}),J.jsx(Tn,{variant:"outline",size:"sm",onClick:()=>S(Math.min(3,x+.25)),disabled:x>=3,children:J.jsx("span",{className:"text-lg",children:"+"})}),J.jsx(Tn,{variant:"outline",size:"sm",onClick:()=>S(1),children:"Reset"})]}):null})()]})}),J.jsx("div",{className:"flex-1 overflow-auto px-6 pb-2",children:(()=>{var se,ae,me;const q=n.metadata,B=(q==null?void 0:q.contentType)||"",T=((se=q==null?void 0:q.fileExt)==null?void 0:se.toLowerCase())||"";if((B==="application/pdf"||T==="pdf")&&((ae=n.content)!=null&&ae.text)){const we=`data:application/pdf;base64,${n.content.text}`;return J.jsx("div",{className:"w-full h-full rounded-lg overflow-auto bg-gray-100 dark:bg-gray-900",children:J.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:J.jsx("iframe",{src:we,className:"w-full border-0 shadow-lg",style:{height:"90vh",maxWidth:"1200px"},title:"PDF Document"})})})}else return J.jsx("div",{className:"h-full w-full bg-gray-50 dark:bg-gray-900 rounded-lg border p-6",children:J.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:((me=n.content)==null?void 0:me.text)||"No content available"})})})()}),J.jsx(bb,{className:"flex-shrink-0 p-6 pt-4",children:J.jsx(Tn,{variant:"outline",onClick:()=>{i(null),S(1)},children:"Close"})})]})})]})}const Mb=new qv;function Ob(){return J.jsx(Xv,{client:Mb,children:J.jsx(Tb,{agentId:"b850bc30-45f8-0041-a00a-83df46d8555d"})})}g1.createRoot(document.getElementById("root")).render(J.jsx(Ob,{}));
|