@elizaos/plugin-knowledge 1.0.10 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -9
- package/dist/.vite/manifest.json +2 -2
- package/dist/assets/index-B5VEkqpw.css +1 -0
- package/dist/assets/index-DlOvU00u.js +169 -0
- package/dist/index.d.ts +15 -43
- package/dist/index.html +2 -2
- package/dist/index.js +1355 -511
- package/dist/index.js.map +1 -1
- package/package.json +20 -22
- package/dist/assets/index-CBT93PUU.css +0 -1
- package/dist/assets/index-ChiOWvZU.js +0 -165
- package/dist/chunk-UOE4LEMH.js +0 -695
- package/dist/chunk-UOE4LEMH.js.map +0 -1
- package/dist/docs-loader-PF5X4UMB.js +0 -9
- package/dist/docs-loader-PF5X4UMB.js.map +0 -1
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).observe(document,{childList:!0,subtree:!0});function r(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();function My(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Lc={exports:{}},Fr={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Yg;function c_(){if(Yg)return Fr;Yg=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(u,o,c){var h=null;if(c!==void 0&&(h=""+c),o.key!==void 0&&(h=""+o.key),"key"in o){c={};for(var g in o)g!=="key"&&(c[g]=o[g])}else c=o;return o=c.ref,{$$typeof:n,type:u,key:h,ref:o!==void 0?o:null,props:c}}return Fr.Fragment=i,Fr.jsx=r,Fr.jsxs=r,Fr}var Xg;function f_(){return Xg||(Xg=1,Lc.exports=c_()),Lc.exports}var O=f_(),Ja=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Pi=typeof window>"u"||"Deno"in globalThis;function _e(){}function h_(n,i){return typeof n=="function"?n(i):n}function of(n){return typeof n=="number"&&n>=0&&n!==1/0}function Cy(n,i){return Math.max(n+(i||0)-Date.now(),0)}function wi(n,i){return typeof n=="function"?n(i):n}function an(n,i){return typeof n=="function"?n(i):n}function Vg(n,i){const{type:r="all",exact:u,fetchStatus:o,predicate:c,queryKey:h,stale:g}=n;if(h){if(u){if(i.queryHash!==kf(h,i.options))return!1}else if(!dl(i.queryKey,h))return!1}if(r!=="all"){const y=i.isActive();if(r==="active"&&!y||r==="inactive"&&y)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||o&&o!==i.state.fetchStatus||c&&!c(i))}function Zg(n,i){const{exact:r,status:u,predicate:o,mutationKey:c}=n;if(c){if(!i.options.mutationKey)return!1;if(r){if(Ji(i.options.mutationKey)!==Ji(c))return!1}else if(!dl(i.options.mutationKey,c))return!1}return!(u&&i.state.status!==u||o&&!o(i))}function kf(n,i){return(i?.queryKeyHashFn||Ji)(n)}function Ji(n){return JSON.stringify(n,(i,r)=>cf(r)?Object.keys(r).sort().reduce((u,o)=>(u[o]=r[o],u),{}):r)}function dl(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(r=>dl(n[r],i[r])):!1}function Ny(n,i){if(n===i)return n;const r=$g(n)&&$g(i);if(r||cf(n)&&cf(i)){const u=r?n:Object.keys(n),o=u.length,c=r?i:Object.keys(i),h=c.length,g=r?[]:{},y=new Set(u);let p=0;for(let v=0;v<h;v++){const m=r?v:c[v];(!r&&y.has(m)||r)&&n[m]===void 0&&i[m]===void 0?(g[m]=void 0,p++):(g[m]=Ny(n[m],i[m]),g[m]===n[m]&&n[m]!==void 0&&p++)}return o===h&&p===o?n:g}return i}function es(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const r in n)if(n[r]!==i[r])return!1;return!0}function $g(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function cf(n){if(!Kg(n))return!1;const i=n.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!Kg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Kg(n){return Object.prototype.toString.call(n)==="[object Object]"}function d_(n){return new Promise(i=>{setTimeout(i,n)})}function ff(n,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,i):r.structuralSharing!==!1?Ny(n,i):i}function g_(n,i,r=0){const u=[...n,i];return r&&u.length>r?u.slice(1):u}function p_(n,i,r=0){const u=[i,...n];return r&&u.length>r?u.slice(0,-1):u}var Uf=Symbol();function zy(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===Uf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Ry(n,i){return typeof n=="function"?n(...i):!!n}var y_=class extends Ja{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!Pi&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},qf=new y_,m_=class extends Ja{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!Pi&&window.addEventListener){const i=()=>n(!0),r=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(r=>{r(n)}))}isOnline(){return this.#e}},ns=new m_;function hf(){let n,i;const r=new Promise((o,c)=>{n=o,i=c});r.status="pending",r.catch(()=>{});function u(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{u({status:"fulfilled",value:o}),n(o)},r.reject=o=>{u({status:"rejected",reason:o}),i(o)},r}function v_(n){return Math.min(1e3*2**n,3e4)}function Dy(n){return(n??"online")==="online"?ns.isOnline():!0}var jy=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Bc(n){return n instanceof jy}function ky(n){let i=!1,r=0,u=!1,o;const c=hf(),h=M=>{u||(b(new jy(M)),n.abort?.())},g=()=>{i=!0},y=()=>{i=!1},p=()=>qf.isFocused()&&(n.networkMode==="always"||ns.isOnline())&&n.canRun(),v=()=>Dy(n.networkMode)&&n.canRun(),m=M=>{u||(u=!0,n.onSuccess?.(M),o?.(),c.resolve(M))},b=M=>{u||(u=!0,n.onError?.(M),o?.(),c.reject(M))},x=()=>new Promise(M=>{o=T=>{(u||p())&&M(T)},n.onPause?.()}).then(()=>{o=void 0,u||n.onContinue?.()}),A=()=>{if(u)return;let M;const T=r===0?n.initialPromise:void 0;try{M=T??n.fn()}catch(w){M=Promise.reject(w)}Promise.resolve(M).then(m).catch(w=>{if(u)return;const D=n.retry??(Pi?0:3),q=n.retryDelay??v_,R=typeof q=="function"?q(r,w):q,C=D===!0||typeof D=="number"&&r<D||typeof D=="function"&&D(r,w);if(i||!C){b(w);return}r++,n.onFail?.(r,w),d_(R).then(()=>p()?void 0:x()).then(()=>{i?b(w):A()})})};return{promise:c,cancel:h,continue:()=>(o?.(),c),cancelRetry:g,continueRetry:y,canStart:v,start:()=>(v()?A():x().then(A),c)}}var __=n=>setTimeout(n,0);function b_(){let n=[],i=0,r=g=>{g()},u=g=>{g()},o=__;const c=g=>{i?n.push(g):o(()=>{r(g)})},h=()=>{const g=n;n=[],g.length&&o(()=>{u(()=>{g.forEach(y=>{r(y)})})})};return{batch:g=>{let y;i++;try{y=g()}finally{i--,i||h()}return y},batchCalls:g=>(...y)=>{c(()=>{g(...y)})},schedule:c,setNotifyFunction:g=>{r=g},setBatchNotifyFunction:g=>{u=g},setScheduler:g=>{o=g}}}var ie=b_(),Uy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),of(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Pi?1/0:5*60*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},x_=class extends Uy{#e;#t;#n;#i;#a;#l;#u;constructor(n){super(),this.#u=!1,this.#l=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#n=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=w_(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){this.options={...this.#l,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,i){const r=ff(this.state.data,n,this.options);return this.#r({data:r,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),r}setState(n,i){this.#r({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#a?.promise;return this.#a?.cancel(n),i?i.then(_e).catch(_e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>an(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Uf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>wi(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Cy(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#a&&(this.#u?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}fetch(n,i){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const y=this.observers.find(p=>p.options.queryFn);y&&this.setOptions(y.options)}const r=new AbortController,u=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#u=!0,r.signal)})},o=()=>{const y=zy(this.options,i),v=(()=>{const m={client:this.#i,queryKey:this.queryKey,meta:this.meta};return u(m),m})();return this.#u=!1,this.options.persister?this.options.persister(y,v,this):y(v)},h=(()=>{const y={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return u(y),y})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#r({type:"fetch",meta:h.fetchOptions?.meta});const g=y=>{Bc(y)&&y.silent||this.#r({type:"error",error:y}),Bc(y)||(this.#n.config.onError?.(y,this),this.#n.config.onSettled?.(this.state.data,y,this)),this.scheduleGc()};return this.#a=ky({initialPromise:i?.initialPromise,fn:h.fetchFn,abort:r.abort.bind(r),onSuccess:y=>{if(y===void 0){g(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(p){g(p);return}this.#n.config.onSuccess?.(y,this),this.#n.config.onSettled?.(y,this.state.error,this),this.scheduleGc()},onError:g,onFail:(y,p)=>{this.#r({type:"failed",failureCount:y,error:p})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}),this.#a.start()}#r(n){const i=r=>{switch(n.type){case"failed":return{...r,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...qy(r.data,this.options),fetchMeta:n.meta??null};case"success":return this.#t=void 0,{...r,data:n.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const u=n.error;return Bc(u)&&u.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...r,error:u,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...n.state}}};this.state=i(this.state),ie.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function qy(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Dy(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function w_(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,r=i!==void 0,u=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var S_=class extends Ja{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,r){const u=i.queryKey,o=i.queryHash??kf(u,i);let c=this.get(o);return c||(c=new x_({client:n,queryKey:u,queryHash:o,options:n.defaultQueryOptions(i),state:r,defaultOptions:n.getQueryDefaults(u)}),this.add(c)),c}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){ie.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(r=>Vg(i,r))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(r=>Vg(n,r)):i}notify(n){ie.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){ie.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){ie.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},A_=class extends Uy{#e;#t;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#t=n.mutationCache,this.#e=[],this.state=n.state||Hy(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(i=>i!==n),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#i({type:"continue"})};this.#n=ky({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(o,c)=>{this.#i({type:"failed",failureCount:o,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",u=!this.#n.canStart();try{if(r)i();else{this.#i({type:"pending",variables:n,isPaused:u}),await this.#t.config.onMutate?.(n,this);const c=await this.options.onMutate?.(n);c!==this.state.context&&this.#i({type:"pending",context:c,variables:n,isPaused:u})}const o=await this.#n.start();return await this.#t.config.onSuccess?.(o,n,this.state.context,this),await this.options.onSuccess?.(o,n,this.state.context),await this.#t.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,n,this.state.context),this.#i({type:"success",data:o}),o}catch(o){try{throw await this.#t.config.onError?.(o,n,this.state.context,this),await this.options.onError?.(o,n,this.state.context),await this.#t.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,n,this.state.context),o}finally{this.#i({type:"error",error:o})}}finally{this.#t.runNext(this)}}#i(n){const i=r=>{switch(n.type){case"failed":return{...r,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:n.error,failureCount:r.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ie.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(n)}),this.#t.notify({mutation:this,type:"updated",action:n})})}};function Hy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var T_=class extends Ja{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,i,r){const u=new A_({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(i),state:r});return this.add(u),u}add(n){this.#e.add(n);const i=Qu(n);if(typeof i=="string"){const r=this.#t.get(i);r?r.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=Qu(n);if(typeof i=="string"){const r=this.#t.get(i);if(r)if(r.length>1){const u=r.indexOf(n);u!==-1&&r.splice(u,1)}else r[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Qu(n);if(typeof i=="string"){const u=this.#t.get(i)?.find(o=>o.state.status==="pending");return!u||u===n}else return!0}runNext(n){const i=Qu(n);return typeof i=="string"?this.#t.get(i)?.find(u=>u!==n&&u.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ie.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(r=>Zg(i,r))}findAll(n={}){return this.getAll().filter(i=>Zg(n,i))}notify(n){ie.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return ie.batch(()=>Promise.all(n.map(i=>i.continue().catch(_e))))}};function Qu(n){return n.options.scope?.id}function Fg(n){return{onFetch:(i,r)=>{const u=i.options,o=i.fetchOptions?.meta?.fetchMore?.direction,c=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let g={pages:[],pageParams:[]},y=0;const p=async()=>{let v=!1;const m=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(i.signal.aborted?v=!0:i.signal.addEventListener("abort",()=>{v=!0}),i.signal)})},b=zy(i.options,i.fetchOptions),x=async(A,M,T)=>{if(v)return Promise.reject();if(M==null&&A.pages.length)return Promise.resolve(A);const D=(()=>{const H={client:i.client,queryKey:i.queryKey,pageParam:M,direction:T?"backward":"forward",meta:i.options.meta};return m(H),H})(),q=await b(D),{maxPages:R}=i.options,C=T?p_:g_;return{pages:C(A.pages,q,R),pageParams:C(A.pageParams,M,R)}};if(o&&c.length){const A=o==="backward",M=A?E_:Pg,T={pages:c,pageParams:h},w=M(u,T);g=await x(T,w,A)}else{const A=n??c.length;do{const M=y===0?h[0]??u.initialPageParam:Pg(u,g);if(y>0&&M==null)break;g=await x(g,M),y++}while(y<A)}return g};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r):i.fetchFn=p}}}function Pg(n,{pages:i,pageParams:r}){const u=i.length-1;return i.length>0?n.getNextPageParam(i[u],i,r[u],r):void 0}function E_(n,{pages:i,pageParams:r}){return i.length>0?n.getPreviousPageParam?.(i[0],i,r[0],r):void 0}var O_=class{#e;#t;#n;#i;#a;#l;#u;#r;constructor(n={}){this.#e=n.queryCache||new S_,this.#t=n.mutationCache||new T_,this.#n=n.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#u=qf.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=ns.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#u?.(),this.#u=void 0,this.#r?.(),this.#r=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),r=this.#e.build(this,i),u=r.state.data;return u===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(wi(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(u))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:r})=>{const u=r.data;return[i,u]})}setQueryData(n,i,r){const u=this.defaultQueryOptions({queryKey:n}),c=this.#e.get(u.queryHash)?.state.data,h=h_(i,c);if(h!==void 0)return this.#e.build(this,u).setData(h,{...r,manual:!0})}setQueriesData(n,i,r){return ie.batch(()=>this.#e.findAll(n).map(({queryKey:u})=>[u,this.setQueryData(u,i,r)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;ie.batch(()=>{i.findAll(n).forEach(r=>{i.remove(r)})})}resetQueries(n,i){const r=this.#e;return ie.batch(()=>(r.findAll(n).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const r={revert:!0,...i},u=ie.batch(()=>this.#e.findAll(n).map(o=>o.cancel(r)));return Promise.all(u).then(_e).catch(_e)}invalidateQueries(n,i={}){return ie.batch(()=>(this.#e.findAll(n).forEach(r=>{r.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},u=ie.batch(()=>this.#e.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,r);return r.throwOnError||(c=c.catch(_e)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(u).then(_e)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const r=this.#e.build(this,i);return r.isStaleByTime(wi(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(_e).catch(_e)}fetchInfiniteQuery(n){return n.behavior=Fg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(_e).catch(_e)}ensureInfiniteQueryData(n){return n.behavior=Fg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ns.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,i){this.#i.set(Ji(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#i.values()],r={};return i.forEach(u=>{dl(n,u.queryKey)&&Object.assign(r,u.defaultOptions)}),r}setMutationDefaults(n,i){this.#a.set(Ji(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#a.values()],r={};return i.forEach(u=>{dl(n,u.mutationKey)&&Object.assign(r,u.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=kf(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Uf&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},M_=class extends Ja{constructor(n,i){super(),this.options=i,this.#e=n,this.#r=null,this.#u=hf(),this.options.experimental_prefetchInRender||this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#n=void 0;#i=void 0;#a;#l;#u;#r;#p;#h;#d;#o;#c;#s;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Jg(this.#t,this.options)?this.#f():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return df(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return df(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof an(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),i._defaulted&&!es(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const u=this.hasListeners();u&&Wg(this.#t,r,this.options,i)&&this.#f(),this.updateResult(),u&&(this.#t!==r||an(this.options.enabled,this.#t)!==an(i.enabled,this.#t)||wi(this.options.staleTime,this.#t)!==wi(i.staleTime,this.#t))&&this.#y();const o=this.#m();u&&(this.#t!==r||an(this.options.enabled,this.#t)!==an(i.enabled,this.#t)||o!==this.#s)&&this.#v(o)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),r=this.createResult(i,n);return N_(this,r)&&(this.#i=r,this.#l=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#i}trackResult(n,i){return new Proxy(n,{get:(r,u)=>(this.trackProp(u),i?.(u),Reflect.get(r,u))})}trackProp(n){this.#g.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),r=this.#e.getQueryCache().build(this.#e,i);return r.fetch().then(()=>this.createResult(r,i))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(n){this.#w();let i=this.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(_e)),i}#y(){this.#b();const n=wi(this.options.staleTime,this.#t);if(Pi||this.#i.isStale||!of(n))return;const r=Cy(this.#i.dataUpdatedAt,n)+1;this.#o=setTimeout(()=>{this.#i.isStale||this.updateResult()},r)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(n){this.#x(),this.#s=n,!(Pi||an(this.options.enabled,this.#t)===!1||!of(this.#s)||this.#s===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||qf.isFocused())&&this.#f()},this.#s))}#_(){this.#y(),this.#v(this.#m())}#b(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}#x(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,i){const r=this.#t,u=this.options,o=this.#i,c=this.#a,h=this.#l,y=n!==r?n.state:this.#n,{state:p}=n;let v={...p},m=!1,b;if(i._optimisticResults){const B=this.hasListeners(),J=!B&&Jg(n,i),W=B&&Wg(n,r,i,u);(J||W)&&(v={...v,...qy(p.data,n.options)}),i._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:x,errorUpdatedAt:A,status:M}=v;b=v.data;let T=!1;if(i.placeholderData!==void 0&&b===void 0&&M==="pending"){let B;o?.isPlaceholderData&&i.placeholderData===h?.placeholderData?(B=o.data,T=!0):B=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,B!==void 0&&(M="success",b=ff(o?.data,B,i),m=!0)}if(i.select&&b!==void 0&&!T)if(o&&b===c?.data&&i.select===this.#p)b=this.#h;else try{this.#p=i.select,b=i.select(b),b=ff(o?.data,b,i),this.#h=b,this.#r=null}catch(B){this.#r=B}this.#r&&(x=this.#r,b=this.#h,A=Date.now(),M="error");const w=v.fetchStatus==="fetching",D=M==="pending",q=M==="error",R=D&&w,C=b!==void 0,U={status:M,fetchStatus:v.fetchStatus,isPending:D,isSuccess:M==="success",isError:q,isInitialLoading:R,isLoading:R,data:b,dataUpdatedAt:v.dataUpdatedAt,error:x,errorUpdatedAt:A,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>y.dataUpdateCount||v.errorUpdateCount>y.errorUpdateCount,isFetching:w,isRefetching:w&&!D,isLoadingError:q&&!C,isPaused:v.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:q&&C,isStale:Hf(n,i),refetch:this.refetch,promise:this.#u};if(this.options.experimental_prefetchInRender){const B=et=>{U.status==="error"?et.reject(U.error):U.data!==void 0&&et.resolve(U.data)},J=()=>{const et=this.#u=U.promise=hf();B(et)},W=this.#u;switch(W.status){case"pending":n.queryHash===r.queryHash&&B(W);break;case"fulfilled":(U.status==="error"||U.data!==W.value)&&J();break;case"rejected":(U.status!=="error"||U.error!==W.reason)&&J();break}}return U}updateResult(){const n=this.#i,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#l=this.options,this.#a.data!==void 0&&(this.#d=this.#t),es(i,n))return;this.#i=i;const r=()=>{if(!n)return!0;const{notifyOnChangeProps:u}=this.options,o=typeof u=="function"?u():u;if(o==="all"||!o&&!this.#g.size)return!0;const c=new Set(o??this.#g);return this.options.throwOnError&&c.add("error"),Object.keys(this.#i).some(h=>{const g=h;return this.#i[g]!==n[g]&&c.has(g)})};this.#S({listeners:r()})}#w(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#S(n){ie.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function C_(n,i){return an(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function Jg(n,i){return C_(n,i)||n.state.data!==void 0&&df(n,i,i.refetchOnMount)}function df(n,i,r){if(an(i.enabled,n)!==!1&&wi(i.staleTime,n)!=="static"){const u=typeof r=="function"?r(n):r;return u==="always"||u!==!1&&Hf(n,i)}return!1}function Wg(n,i,r,u){return(n!==i||an(u.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Hf(n,r)}function Hf(n,i){return an(i.enabled,n)!==!1&&n.isStaleByTime(wi(i.staleTime,n))}function N_(n,i){return!es(n.getCurrentResult(),i)}var z_=class extends Ja{#e;#t=void 0;#n;#i;constructor(i,r){super(),this.#e=i,this.setOptions(r),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const r=this.options;this.options=this.#e.defaultMutationOptions(i),es(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&Ji(r.mutationKey)!==Ji(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#l(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#l()}mutate(i,r){return this.#i=r,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??Hy();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#l(i){ie.batch(()=>{if(this.#i&&this.hasListeners()){const r=this.#t.variables,u=this.#t.context;i?.type==="success"?(this.#i.onSuccess?.(i.data,r,u),this.#i.onSettled?.(i.data,null,r,u)):i?.type==="error"&&(this.#i.onError?.(i.error,r,u),this.#i.onSettled?.(void 0,i.error,r,u))}this.listeners.forEach(r=>{r(this.#t)})})}},Gc={exports:{}},xt={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Ig;function R_(){if(Ig)return xt;Ig=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.iterator;function b(E){return E===null||typeof E!="object"?null:(E=m&&E[m]||E["@@iterator"],typeof E=="function"?E:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,M={};function T(E,Z,tt){this.props=E,this.context=Z,this.refs=M,this.updater=tt||x}T.prototype.isReactComponent={},T.prototype.setState=function(E,Z){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,Z,"setState")},T.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function w(){}w.prototype=T.prototype;function D(E,Z,tt){this.props=E,this.context=Z,this.refs=M,this.updater=tt||x}var q=D.prototype=new w;q.constructor=D,A(q,T.prototype),q.isPureReactComponent=!0;var R=Array.isArray,C={H:null,A:null,T:null,S:null,V:null},H=Object.prototype.hasOwnProperty;function U(E,Z,tt,it,st,yt){return tt=yt.ref,{$$typeof:n,type:E,key:Z,ref:tt!==void 0?tt:null,props:yt}}function B(E,Z){return U(E.type,Z,void 0,void 0,void 0,E.props)}function J(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function W(E){var Z={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(tt){return Z[tt]})}var et=/\/+/g;function lt(E,Z){return typeof E=="object"&&E!==null&&E.key!=null?W(""+E.key):Z.toString(36)}function ft(){}function G(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(ft,ft):(E.status="pending",E.then(function(Z){E.status==="pending"&&(E.status="fulfilled",E.value=Z)},function(Z){E.status==="pending"&&(E.status="rejected",E.reason=Z)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function I(E,Z,tt,it,st){var yt=typeof E;(yt==="undefined"||yt==="boolean")&&(E=null);var ht=!1;if(E===null)ht=!0;else switch(yt){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(E.$$typeof){case n:case i:ht=!0;break;case v:return ht=E._init,I(ht(E._payload),Z,tt,it,st)}}if(ht)return st=st(E),ht=it===""?"."+lt(E,0):it,R(st)?(tt="",ht!=null&&(tt=ht.replace(et,"$&/")+"/"),I(st,Z,tt,"",function(pe){return pe})):st!=null&&(J(st)&&(st=B(st,tt+(st.key==null||E&&E.key===st.key?"":(""+st.key).replace(et,"$&/")+"/")+ht)),Z.push(st)),1;ht=0;var Ct=it===""?".":it+":";if(R(E))for(var At=0;At<E.length;At++)it=E[At],yt=Ct+lt(it,At),ht+=I(it,Z,tt,yt,st);else if(At=b(E),typeof At=="function")for(E=At.call(E),At=0;!(it=E.next()).done;)it=it.value,yt=Ct+lt(it,At++),ht+=I(it,Z,tt,yt,st);else if(yt==="object"){if(typeof E.then=="function")return I(G(E),Z,tt,it,st);throw Z=String(E),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ht}function z(E,Z,tt){if(E==null)return E;var it=[],st=0;return I(E,it,"","",function(yt){return Z.call(tt,yt,st++)}),it}function $(E){if(E._status===-1){var Z=E._result;Z=Z(),Z.then(function(tt){(E._status===0||E._status===-1)&&(E._status=1,E._result=tt)},function(tt){(E._status===0||E._status===-1)&&(E._status=2,E._result=tt)}),E._status===-1&&(E._status=0,E._result=Z)}if(E._status===1)return E._result.default;throw E._result}var nt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)};function ut(){}return xt.Children={map:z,forEach:function(E,Z,tt){z(E,function(){Z.apply(this,arguments)},tt)},count:function(E){var Z=0;return z(E,function(){Z++}),Z},toArray:function(E){return z(E,function(Z){return Z})||[]},only:function(E){if(!J(E))throw Error("React.Children.only expected to receive a single React element child.");return E}},xt.Component=T,xt.Fragment=r,xt.Profiler=o,xt.PureComponent=D,xt.StrictMode=u,xt.Suspense=y,xt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,xt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return C.H.useMemoCache(E)}},xt.cache=function(E){return function(){return E.apply(null,arguments)}},xt.cloneElement=function(E,Z,tt){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var it=A({},E.props),st=E.key,yt=void 0;if(Z!=null)for(ht in Z.ref!==void 0&&(yt=void 0),Z.key!==void 0&&(st=""+Z.key),Z)!H.call(Z,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&Z.ref===void 0||(it[ht]=Z[ht]);var ht=arguments.length-2;if(ht===1)it.children=tt;else if(1<ht){for(var Ct=Array(ht),At=0;At<ht;At++)Ct[At]=arguments[At+2];it.children=Ct}return U(E.type,st,void 0,void 0,yt,it)},xt.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:c,_context:E},E},xt.createElement=function(E,Z,tt){var it,st={},yt=null;if(Z!=null)for(it in Z.key!==void 0&&(yt=""+Z.key),Z)H.call(Z,it)&&it!=="key"&&it!=="__self"&&it!=="__source"&&(st[it]=Z[it]);var ht=arguments.length-2;if(ht===1)st.children=tt;else if(1<ht){for(var Ct=Array(ht),At=0;At<ht;At++)Ct[At]=arguments[At+2];st.children=Ct}if(E&&E.defaultProps)for(it in ht=E.defaultProps,ht)st[it]===void 0&&(st[it]=ht[it]);return U(E,yt,void 0,void 0,null,st)},xt.createRef=function(){return{current:null}},xt.forwardRef=function(E){return{$$typeof:g,render:E}},xt.isValidElement=J,xt.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:$}},xt.memo=function(E,Z){return{$$typeof:p,type:E,compare:Z===void 0?null:Z}},xt.startTransition=function(E){var Z=C.T,tt={};C.T=tt;try{var it=E(),st=C.S;st!==null&&st(tt,it),typeof it=="object"&&it!==null&&typeof it.then=="function"&&it.then(ut,nt)}catch(yt){nt(yt)}finally{C.T=Z}},xt.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},xt.use=function(E){return C.H.use(E)},xt.useActionState=function(E,Z,tt){return C.H.useActionState(E,Z,tt)},xt.useCallback=function(E,Z){return C.H.useCallback(E,Z)},xt.useContext=function(E){return C.H.useContext(E)},xt.useDebugValue=function(){},xt.useDeferredValue=function(E,Z){return C.H.useDeferredValue(E,Z)},xt.useEffect=function(E,Z,tt){var it=C.H;if(typeof tt=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return it.useEffect(E,Z)},xt.useId=function(){return C.H.useId()},xt.useImperativeHandle=function(E,Z,tt){return C.H.useImperativeHandle(E,Z,tt)},xt.useInsertionEffect=function(E,Z){return C.H.useInsertionEffect(E,Z)},xt.useLayoutEffect=function(E,Z){return C.H.useLayoutEffect(E,Z)},xt.useMemo=function(E,Z){return C.H.useMemo(E,Z)},xt.useOptimistic=function(E,Z){return C.H.useOptimistic(E,Z)},xt.useReducer=function(E,Z,tt){return C.H.useReducer(E,Z,tt)},xt.useRef=function(E){return C.H.useRef(E)},xt.useState=function(E){return C.H.useState(E)},xt.useSyncExternalStore=function(E,Z,tt){return C.H.useSyncExternalStore(E,Z,tt)},xt.useTransition=function(){return C.H.useTransition()},xt.version="19.1.0",xt}var tp;function Lf(){return tp||(tp=1,Gc.exports=R_()),Gc.exports}var ot=Lf();const Bf=My(ot);var Ly=ot.createContext(void 0),ps=n=>{const i=ot.useContext(Ly);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},D_=({client:n,children:i})=>(ot.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),O.jsx(Ly.Provider,{value:n,children:i})),By=ot.createContext(!1),j_=()=>ot.useContext(By);By.Provider;function k_(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var U_=ot.createContext(k_()),q_=()=>ot.useContext(U_),H_=(n,i)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(i.isReset()||(n.retryOnMount=!1))},L_=n=>{ot.useEffect(()=>{n.clearReset()},[n])},B_=({result:n,errorResetBoundary:i,throwOnError:r,query:u,suspense:o})=>n.isError&&!i.isReset()&&!n.isFetching&&u&&(o&&n.data===void 0||Ry(r,[n.error,u])),G_=n=>{if(n.suspense){const i=u=>u==="static"?u:Math.max(u??1e3,1e3),r=n.staleTime;n.staleTime=typeof r=="function"?(...u)=>i(r(...u)):i(r),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Q_=(n,i)=>n.isLoading&&n.isFetching&&!i,Y_=(n,i)=>n?.suspense&&i.isPending,ep=(n,i,r)=>i.fetchOptimistic(n).catch(()=>{r.clearReset()});function X_(n,i,r){const u=j_(),o=q_(),c=ps(),h=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=u?"isRestoring":"optimistic",G_(h),H_(h,o),L_(o);const g=!c.getQueryCache().get(h.queryHash),[y]=ot.useState(()=>new i(c,h)),p=y.getOptimisticResult(h),v=!u&&n.subscribed!==!1;if(ot.useSyncExternalStore(ot.useCallback(m=>{const b=v?y.subscribe(ie.batchCalls(m)):_e;return y.updateResult(),b},[y,v]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),ot.useEffect(()=>{y.setOptions(h)},[h,y]),Y_(h,p))throw ep(h,y,o);if(B_({result:p,errorResetBoundary:o,throwOnError:h.throwOnError,query:c.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw p.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(h,p),h.experimental_prefetchInRender&&!Pi&&Q_(p,u)&&(g?ep(h,y,o):c.getQueryCache().get(h.queryHash)?.promise)?.catch(_e).finally(()=>{y.updateResult()}),h.notifyOnChangeProps?p:y.trackResult(p)}function gf(n,i){return X_(n,M_)}function V_(n,i){const r=ps(),[u]=ot.useState(()=>new z_(r,n));ot.useEffect(()=>{u.setOptions(n)},[u,n]);const o=ot.useSyncExternalStore(ot.useCallback(h=>u.subscribe(ie.batchCalls(h)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),c=ot.useCallback((h,g)=>{u.mutate(h,g).catch(_e)},[u]);if(o.error&&Ry(u.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}var Qc={exports:{}},Pr={},Yc={exports:{}},Xc={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Z_(){return np||(np=1,function(n){function i(z,$){var nt=z.length;z.push($);t:for(;0<nt;){var ut=nt-1>>>1,E=z[ut];if(0<o(E,$))z[ut]=$,z[nt]=E,nt=ut;else break t}}function r(z){return z.length===0?null:z[0]}function u(z){if(z.length===0)return null;var $=z[0],nt=z.pop();if(nt!==$){z[0]=nt;t:for(var ut=0,E=z.length,Z=E>>>1;ut<Z;){var tt=2*(ut+1)-1,it=z[tt],st=tt+1,yt=z[st];if(0>o(it,nt))st<E&&0>o(yt,it)?(z[ut]=yt,z[st]=nt,ut=st):(z[ut]=it,z[tt]=nt,ut=tt);else if(st<E&&0>o(yt,nt))z[ut]=yt,z[st]=nt,ut=st;else break t}}return $}function o(z,$){var nt=z.sortIndex-$.sortIndex;return nt!==0?nt:z.id-$.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var h=Date,g=h.now();n.unstable_now=function(){return h.now()-g}}var y=[],p=[],v=1,m=null,b=3,x=!1,A=!1,M=!1,T=!1,w=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function R(z){for(var $=r(p);$!==null;){if($.callback===null)u(p);else if($.startTime<=z)u(p),$.sortIndex=$.expirationTime,i(y,$);else break;$=r(p)}}function C(z){if(M=!1,R(z),!A)if(r(y)!==null)A=!0,H||(H=!0,lt());else{var $=r(p);$!==null&&I(C,$.startTime-z)}}var H=!1,U=-1,B=5,J=-1;function W(){return T?!0:!(n.unstable_now()-J<B)}function et(){if(T=!1,H){var z=n.unstable_now();J=z;var $=!0;try{t:{A=!1,M&&(M=!1,D(U),U=-1),x=!0;var nt=b;try{e:{for(R(z),m=r(y);m!==null&&!(m.expirationTime>z&&W());){var ut=m.callback;if(typeof ut=="function"){m.callback=null,b=m.priorityLevel;var E=ut(m.expirationTime<=z);if(z=n.unstable_now(),typeof E=="function"){m.callback=E,R(z),$=!0;break e}m===r(y)&&u(y),R(z)}else u(y);m=r(y)}if(m!==null)$=!0;else{var Z=r(p);Z!==null&&I(C,Z.startTime-z),$=!1}}break t}finally{m=null,b=nt,x=!1}$=void 0}}finally{$?lt():H=!1}}}var lt;if(typeof q=="function")lt=function(){q(et)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,G=ft.port2;ft.port1.onmessage=et,lt=function(){G.postMessage(null)}}else lt=function(){w(et,0)};function I(z,$){U=w(function(){z(n.unstable_now())},$)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(z){switch(b){case 1:case 2:case 3:var $=3;break;default:$=b}var nt=b;b=$;try{return z()}finally{b=nt}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(z,$){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var nt=b;b=z;try{return $()}finally{b=nt}},n.unstable_scheduleCallback=function(z,$,nt){var ut=n.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?ut+nt:ut):nt=ut,z){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=nt+E,z={id:v++,callback:$,priorityLevel:z,startTime:nt,expirationTime:E,sortIndex:-1},nt>ut?(z.sortIndex=nt,i(p,z),r(y)===null&&z===r(p)&&(M?(D(U),U=-1):M=!0,I(C,nt-ut))):(z.sortIndex=E,i(y,z),A||x||(A=!0,H||(H=!0,lt()))),z},n.unstable_shouldYield=W,n.unstable_wrapCallback=function(z){var $=b;return function(){var nt=b;b=$;try{return z.apply(this,arguments)}finally{b=nt}}}}(Xc)),Xc}var ip;function $_(){return ip||(ip=1,Yc.exports=Z_()),Yc.exports}var Vc={exports:{}},de={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and 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 K_(){if(ap)return de;ap=1;var n=Lf();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(y,p,v){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:y,containerInfo:p,implementation:v}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return de.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,de.createPortal=function(y,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return c(y,p,null,v)},de.flushSync=function(y){var p=h.T,v=u.p;try{if(h.T=null,u.p=2,y)return y()}finally{h.T=p,u.p=v,u.d.f()}},de.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(y,p))},de.prefetchDNS=function(y){typeof y=="string"&&u.d.D(y)},de.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var v=p.as,m=g(v,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?u.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:m,integrity:b,fetchPriority:x}):v==="script"&&u.d.X(y,{crossOrigin:m,integrity:b,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},de.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=g(p.as,p.crossOrigin);u.d.M(y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(y)},de.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,m=g(v,p.crossOrigin);u.d.L(y,v,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},de.preloadModule=function(y,p){if(typeof y=="string")if(p){var v=g(p.as,p.crossOrigin);u.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(y)},de.requestFormReset=function(y){u.d.r(y)},de.unstable_batchedUpdates=function(y,p){return y(p)},de.useFormState=function(y,p,v){return h.H.useFormState(y,p,v)},de.useFormStatus=function(){return h.H.useHostTransitionStatus()},de.version="19.1.0",de}var rp;function F_(){if(rp)return Vc.exports;rp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Vc.exports=K_(),Vc.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var lp;function P_(){if(lp)return Pr;lp=1;var n=$_(),i=Lf(),r=F_();function u(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var a=e,l=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(l=a.return),e=a.return;while(e)}return a.tag===3?l:null}function h(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function g(e){if(c(e)!==e)throw Error(u(188))}function y(e){var a=e.alternate;if(!a){if(a=c(e),a===null)throw Error(u(188));return a!==e?null:e}for(var l=e,s=a;;){var f=l.return;if(f===null)break;var d=f.alternate;if(d===null){if(s=f.return,s!==null){l=s;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===l)return g(f),e;if(d===s)return g(f),a;d=d.sibling}throw Error(u(188))}if(l.return!==s.return)l=f,s=d;else{for(var _=!1,S=f.child;S;){if(S===l){_=!0,l=f,s=d;break}if(S===s){_=!0,s=f,l=d;break}S=S.sibling}if(!_){for(S=d.child;S;){if(S===l){_=!0,l=d,s=f;break}if(S===s){_=!0,s=d,l=f;break}S=S.sibling}if(!_)throw Error(u(189))}}if(l.alternate!==s)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:a}function p(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=p(e),a!==null)return a;e=e.sibling}return null}var v=Object.assign,m=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),q=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),et=Symbol.iterator;function lt(e){return e===null||typeof e!="object"?null:(e=et&&e[et]||e["@@iterator"],typeof e=="function"?e:null)}var ft=Symbol.for("react.client.reference");function G(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ft?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case T:return"Profiler";case M:return"StrictMode";case C:return"Suspense";case H:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case q:return(e.displayName||"Context")+".Provider";case D:return(e._context.displayName||"Context")+".Consumer";case R:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return a=e.displayName||null,a!==null?a:G(e.type)||"Memo";case B:a=e._payload,e=e._init;try{return G(e(a))}catch{}}return null}var I=Array.isArray,z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},ut=[],E=-1;function Z(e){return{current:e}}function tt(e){0>E||(e.current=ut[E],ut[E]=null,E--)}function it(e,a){E++,ut[E]=e.current,e.current=a}var st=Z(null),yt=Z(null),ht=Z(null),Ct=Z(null);function At(e,a){switch(it(ht,a),it(yt,e),it(st,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?mg(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=mg(a),e=vg(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}tt(st),it(st,e)}function pe(){tt(st),tt(yt),tt(ht)}function Wa(e){e.memoizedState!==null&&it(Ct,e);var a=st.current,l=vg(a,e.type);a!==l&&(it(yt,e),it(st,l))}function Ii(e){yt.current===e&&(tt(st),tt(yt)),Ct.current===e&&(tt(Ct),Xr._currentValue=nt)}var ta=Object.prototype.hasOwnProperty,ea=n.unstable_scheduleCallback,Ia=n.unstable_cancelCallback,Ss=n.unstable_shouldYield,As=n.unstable_requestPaint,Le=n.unstable_now,Ol=n.unstable_getCurrentPriorityLevel,xn=n.unstable_ImmediatePriority,Si=n.unstable_UserBlockingPriority,Ai=n.unstable_NormalPriority,Ts=n.unstable_LowPriority,wn=n.unstable_IdlePriority,Es=n.log,Os=n.unstable_setDisableYieldValue,Sn=null,ye=null;function on(e){if(typeof Es=="function"&&Os(e),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(Sn,e)}catch{}}var me=Math.clz32?Math.clz32:Cl,Ml=Math.log,Ms=Math.LN2;function Cl(e){return e>>>=0,e===0?32:31-(Ml(e)/Ms|0)|0}var na=256,Ti=4194304;function An(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ia(e,a,l){var s=e.pendingLanes;if(s===0)return 0;var f=0,d=e.suspendedLanes,_=e.pingedLanes;e=e.warmLanes;var S=s&134217727;return S!==0?(s=S&~d,s!==0?f=An(s):(_&=S,_!==0?f=An(_):l||(l=S&~e,l!==0&&(f=An(l))))):(S=s&~d,S!==0?f=An(S):_!==0?f=An(_):l||(l=s&~e,l!==0&&(f=An(l)))),f===0?0:a!==0&&a!==f&&(a&d)===0&&(d=f&-f,l=a&-a,d>=l||d===32&&(l&4194048)!==0)?a:f}function Ei(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function Cs(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32: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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Nl(){var e=na;return na<<=1,(na&4194048)===0&&(na=256),e}function zl(){var e=Ti;return Ti<<=1,(Ti&62914560)===0&&(Ti=4194304),e}function tr(e){for(var a=[],l=0;31>l;l++)a.push(e);return a}function Tn(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function at(e,a,l,s,f,d){var _=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var S=e.entanglements,N=e.expirationTimes,Y=e.hiddenUpdates;for(l=_&~l;0<l;){var K=31-me(l),P=1<<K;S[K]=0,N[K]=-1;var X=Y[K];if(X!==null)for(Y[K]=null,K=0;K<X.length;K++){var V=X[K];V!==null&&(V.lane&=-536870913)}l&=~P}s!==0&&_t(e,s,0),d!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=d&~(_&~a))}function _t(e,a,l){e.pendingLanes|=a,e.suspendedLanes&=~a;var s=31-me(a);e.entangledLanes|=a,e.entanglements[s]=e.entanglements[s]|1073741824|l&4194090}function bt(e,a){var l=e.entangledLanes|=a;for(e=e.entanglements;l;){var s=31-me(l),f=1<<s;f&a|e[s]&a&&(e[s]|=a),l&=~f}}function we(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Se(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Oi(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:qg(e.type))}function Pn(e,a){var l=$.p;try{return $.p=e,a()}finally{$.p=l}}var te=Math.random().toString(36).slice(2),Gt="__reactFiber$"+te,Vt="__reactProps$"+te,aa="__reactContainer$"+te,Ns="__reactEvents$"+te,tv="__reactListeners$"+te,ev="__reactHandles$"+te,rh="__reactResources$"+te,er="__reactMarker$"+te;function zs(e){delete e[Gt],delete e[Vt],delete e[Ns],delete e[tv],delete e[ev]}function ra(e){var a=e[Gt];if(a)return a;for(var l=e.parentNode;l;){if(a=l[aa]||l[Gt]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(e=wg(e);e!==null;){if(l=e[Gt])return l;e=wg(e)}return a}e=l,l=e.parentNode}return null}function la(e){if(e=e[Gt]||e[aa]){var a=e.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return e}return null}function nr(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(u(33))}function ua(e){var a=e[rh];return a||(a=e[rh]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ae(e){e[er]=!0}var lh=new Set,uh={};function Mi(e,a){sa(e,a),sa(e+"Capture",a)}function sa(e,a){for(uh[e]=a,e=0;e<a.length;e++)lh.add(a[e])}var nv=RegExp("^[: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]*$"),sh={},oh={};function iv(e){return ta.call(oh,e)?!0:ta.call(sh,e)?!1:nv.test(e)?oh[e]=!0:(sh[e]=!0,!1)}function Rl(e,a,l){if(iv(a))if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var s=a.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+l)}}function Dl(e,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+l)}}function En(e,a,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(a,l,""+s)}}var Rs,ch;function oa(e){if(Rs===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);Rs=a&&a[1]||"",ch=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Rs+e+ch}var Ds=!1;function js(e,a){if(!e||Ds)return"";Ds=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(a){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(V){var X=V}Reflect.construct(e,[],P)}else{try{P.call()}catch(V){X=V}e.call(P.prototype)}}else{try{throw Error()}catch(V){X=V}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(V){if(V&&X&&typeof V.stack=="string")return[V.stack,X.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=s.DetermineComponentFrameRoot(),_=d[0],S=d[1];if(_&&S){var N=_.split(`
|
|
44
|
+
`),Y=S.split(`
|
|
45
|
+
`);for(f=s=0;s<N.length&&!N[s].includes("DetermineComponentFrameRoot");)s++;for(;f<Y.length&&!Y[f].includes("DetermineComponentFrameRoot");)f++;if(s===N.length||f===Y.length)for(s=N.length-1,f=Y.length-1;1<=s&&0<=f&&N[s]!==Y[f];)f--;for(;1<=s&&0<=f;s--,f--)if(N[s]!==Y[f]){if(s!==1||f!==1)do if(s--,f--,0>f||N[s]!==Y[f]){var K=`
|
|
46
|
+
`+N[s].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),K}while(1<=s&&0<=f);break}}}finally{Ds=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?oa(l):""}function av(e){switch(e.tag){case 26:case 27:case 5:return oa(e.type);case 16:return oa("Lazy");case 13:return oa("Suspense");case 19:return oa("SuspenseList");case 0:case 15:return js(e.type,!1);case 11:return js(e.type.render,!1);case 1:return js(e.type,!0);case 31:return oa("Activity");default:return""}}function fh(e){try{var a="";do a+=av(e),e=e.return;while(e);return a}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}function Be(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hh(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function rv(e){var a=hh(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,a),s=""+e[a];if(!e.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,d=l.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return f.call(this)},set:function(_){s=""+_,d.call(this,_)}}),Object.defineProperty(e,a,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(_){s=""+_},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function jl(e){e._valueTracker||(e._valueTracker=rv(e))}function dh(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var l=a.getValue(),s="";return e&&(s=hh(e)?e.checked?"true":"false":e.value),e=s,e!==l?(a.setValue(e),!0):!1}function kl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var lv=/[\n"\\]/g;function Ge(e){return e.replace(lv,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function ks(e,a,l,s,f,d,_,S){e.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.type=_:e.removeAttribute("type"),a!=null?_==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+Be(a)):e.value!==""+Be(a)&&(e.value=""+Be(a)):_!=="submit"&&_!=="reset"||e.removeAttribute("value"),a!=null?Us(e,_,Be(a)):l!=null?Us(e,_,Be(l)):s!=null&&e.removeAttribute("value"),f==null&&d!=null&&(e.defaultChecked=!!d),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Be(S):e.removeAttribute("name")}function gh(e,a,l,s,f,d,_,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),a!=null||l!=null){if(!(d!=="submit"&&d!=="reset"||a!=null))return;l=l!=null?""+Be(l):"",a=a!=null?""+Be(a):l,S||a===e.value||(e.value=a),e.defaultValue=a}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=S?e.checked:!!s,e.defaultChecked=!!s,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(e.name=_)}function Us(e,a,l){a==="number"&&kl(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ca(e,a,l,s){if(e=e.options,a){a={};for(var f=0;f<l.length;f++)a["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=a.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&s&&(e[l].defaultSelected=!0)}else{for(l=""+Be(l),a=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,s&&(e[f].defaultSelected=!0);return}a!==null||e[f].disabled||(a=e[f])}a!==null&&(a.selected=!0)}}function ph(e,a,l){if(a!=null&&(a=""+Be(a),a!==e.value&&(e.value=a),l==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=l!=null?""+Be(l):""}function yh(e,a,l,s){if(a==null){if(s!=null){if(l!=null)throw Error(u(92));if(I(s)){if(1<s.length)throw Error(u(93));s=s[0]}l=s}l==null&&(l=""),a=l}l=Be(a),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s)}function fa(e,a){if(a){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=a;return}}e.textContent=a}var uv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function mh(e,a,l){var s=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":s?e.setProperty(a,l):typeof l!="number"||l===0||uv.has(a)?a==="float"?e.cssFloat=l:e[a]=(""+l).trim():e[a]=l+"px"}function vh(e,a,l){if(a!=null&&typeof a!="object")throw Error(u(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||a!=null&&a.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var f in a)s=a[f],a.hasOwnProperty(f)&&l[f]!==s&&mh(e,f,s)}else for(var d in a)a.hasOwnProperty(d)&&mh(e,d,a[d])}function qs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ov=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ul(e){return ov.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Hs=null;function Ls(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ha=null,da=null;function _h(e){var a=la(e);if(a&&(e=a.stateNode)){var l=e[Vt]||null;t:switch(e=a.stateNode,a.type){case"input":if(ks(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ge(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var s=l[a];if(s!==e&&s.form===e.form){var f=s[Vt]||null;if(!f)throw Error(u(90));ks(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<l.length;a++)s=l[a],s.form===e.form&&dh(s)}break t;case"textarea":ph(e,l.value,l.defaultValue);break t;case"select":a=l.value,a!=null&&ca(e,!!l.multiple,a,!1)}}}var Bs=!1;function bh(e,a,l){if(Bs)return e(a,l);Bs=!0;try{var s=e(a);return s}finally{if(Bs=!1,(ha!==null||da!==null)&&(xu(),ha&&(a=ha,e=da,da=ha=null,_h(a),e)))for(a=0;a<e.length;a++)_h(e[a])}}function ir(e,a){var l=e.stateNode;if(l===null)return null;var s=l[Vt]||null;if(s===null)return null;l=s[a];t:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break t;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,a,typeof l));return l}var On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gs=!1;if(On)try{var ar={};Object.defineProperty(ar,"passive",{get:function(){Gs=!0}}),window.addEventListener("test",ar,ar),window.removeEventListener("test",ar,ar)}catch{Gs=!1}var Jn=null,Qs=null,ql=null;function xh(){if(ql)return ql;var e,a=Qs,l=a.length,s,f="value"in Jn?Jn.value:Jn.textContent,d=f.length;for(e=0;e<l&&a[e]===f[e];e++);var _=l-e;for(s=1;s<=_&&a[l-s]===f[d-s];s++);return ql=f.slice(e,1<s?1-s:void 0)}function Hl(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function Ll(){return!0}function wh(){return!1}function Ae(e){function a(l,s,f,d,_){this._reactName=l,this._targetInst=f,this.type=s,this.nativeEvent=d,this.target=_,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Ll:wh,this.isPropagationStopped=wh,this}return v(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ll)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ll)},persist:function(){},isPersistent:Ll}),a}var Ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bl=Ae(Ci),rr=v({},Ci,{view:0,detail:0}),cv=Ae(rr),Ys,Xs,lr,Gl=v({},rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==lr&&(lr&&e.type==="mousemove"?(Ys=e.screenX-lr.screenX,Xs=e.screenY-lr.screenY):Xs=Ys=0,lr=e),Ys)},movementY:function(e){return"movementY"in e?e.movementY:Xs}}),Sh=Ae(Gl),fv=v({},Gl,{dataTransfer:0}),hv=Ae(fv),dv=v({},rr,{relatedTarget:0}),Vs=Ae(dv),gv=v({},Ci,{animationName:0,elapsedTime:0,pseudoElement:0}),pv=Ae(gv),yv=v({},Ci,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mv=Ae(yv),vv=v({},Ci,{data:0}),Ah=Ae(vv),_v={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bv={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"},xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wv(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=xv[e])?!!a[e]:!1}function Zs(){return wv}var Sv=v({},rr,{key:function(e){if(e.key){var a=_v[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=Hl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zs,charCode:function(e){return e.type==="keypress"?Hl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Av=Ae(Sv),Tv=v({},Gl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Th=Ae(Tv),Ev=v({},rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zs}),Ov=Ae(Ev),Mv=v({},Ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cv=Ae(Mv),Nv=v({},Gl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zv=Ae(Nv),Rv=v({},Ci,{newState:0,oldState:0}),Dv=Ae(Rv),jv=[9,13,27,32],$s=On&&"CompositionEvent"in window,ur=null;On&&"documentMode"in document&&(ur=document.documentMode);var kv=On&&"TextEvent"in window&&!ur,Eh=On&&(!$s||ur&&8<ur&&11>=ur),Oh=" ",Mh=!1;function Ch(e,a){switch(e){case"keyup":return jv.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ga=!1;function Uv(e,a){switch(e){case"compositionend":return Nh(a);case"keypress":return a.which!==32?null:(Mh=!0,Oh);case"textInput":return e=a.data,e===Oh&&Mh?null:e;default:return null}}function qv(e,a){if(ga)return e==="compositionend"||!$s&&Ch(e,a)?(e=xh(),ql=Qs=Jn=null,ga=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Eh&&a.locale!=="ko"?null:a.data;default:return null}}var Hv={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 zh(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!Hv[e.type]:a==="textarea"}function Rh(e,a,l,s){ha?da?da.push(s):da=[s]:ha=s,a=Ou(a,"onChange"),0<a.length&&(l=new Bl("onChange","change",null,l,s),e.push({event:l,listeners:a}))}var sr=null,or=null;function Lv(e){hg(e,0)}function Ql(e){var a=nr(e);if(dh(a))return e}function Dh(e,a){if(e==="change")return a}var jh=!1;if(On){var Ks;if(On){var Fs="oninput"in document;if(!Fs){var kh=document.createElement("div");kh.setAttribute("oninput","return;"),Fs=typeof kh.oninput=="function"}Ks=Fs}else Ks=!1;jh=Ks&&(!document.documentMode||9<document.documentMode)}function Uh(){sr&&(sr.detachEvent("onpropertychange",qh),or=sr=null)}function qh(e){if(e.propertyName==="value"&&Ql(or)){var a=[];Rh(a,or,e,Ls(e)),bh(Lv,a)}}function Bv(e,a,l){e==="focusin"?(Uh(),sr=a,or=l,sr.attachEvent("onpropertychange",qh)):e==="focusout"&&Uh()}function Gv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ql(or)}function Qv(e,a){if(e==="click")return Ql(a)}function Yv(e,a){if(e==="input"||e==="change")return Ql(a)}function Xv(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var Ne=typeof Object.is=="function"?Object.is:Xv;function cr(e,a){if(Ne(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var l=Object.keys(e),s=Object.keys(a);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var f=l[s];if(!ta.call(a,f)||!Ne(e[f],a[f]))return!1}return!0}function Hh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lh(e,a){var l=Hh(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=a&&s>=a)return{node:l,offset:a-e};e=s}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Hh(l)}}function Bh(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Bh(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Gh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=kl(e.document);a instanceof e.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)e=a.contentWindow;else break;a=kl(e.document)}return a}function Ps(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var Vv=On&&"documentMode"in document&&11>=document.documentMode,pa=null,Js=null,fr=null,Ws=!1;function Qh(e,a,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ws||pa==null||pa!==kl(s)||(s=pa,"selectionStart"in s&&Ps(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),fr&&cr(fr,s)||(fr=s,s=Ou(Js,"onSelect"),0<s.length&&(a=new Bl("onSelect","select",null,a,l),e.push({event:a,listeners:s}),a.target=pa)))}function Ni(e,a){var l={};return l[e.toLowerCase()]=a.toLowerCase(),l["Webkit"+e]="webkit"+a,l["Moz"+e]="moz"+a,l}var ya={animationend:Ni("Animation","AnimationEnd"),animationiteration:Ni("Animation","AnimationIteration"),animationstart:Ni("Animation","AnimationStart"),transitionrun:Ni("Transition","TransitionRun"),transitionstart:Ni("Transition","TransitionStart"),transitioncancel:Ni("Transition","TransitionCancel"),transitionend:Ni("Transition","TransitionEnd")},Is={},Yh={};On&&(Yh=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function zi(e){if(Is[e])return Is[e];if(!ya[e])return e;var a=ya[e],l;for(l in a)if(a.hasOwnProperty(l)&&l in Yh)return Is[e]=a[l];return e}var Xh=zi("animationend"),Vh=zi("animationiteration"),Zh=zi("animationstart"),Zv=zi("transitionrun"),$v=zi("transitionstart"),Kv=zi("transitioncancel"),$h=zi("transitionend"),Kh=new Map,to="abort auxClick beforeToggle 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(" ");to.push("scrollEnd");function Ie(e,a){Kh.set(e,a),Mi(a,[e])}var Fh=new WeakMap;function Qe(e,a){if(typeof e=="object"&&e!==null){var l=Fh.get(e);return l!==void 0?l:(a={value:e,source:a,stack:fh(a)},Fh.set(e,a),a)}return{value:e,source:a,stack:fh(a)}}var Ye=[],ma=0,eo=0;function Yl(){for(var e=ma,a=eo=ma=0;a<e;){var l=Ye[a];Ye[a++]=null;var s=Ye[a];Ye[a++]=null;var f=Ye[a];Ye[a++]=null;var d=Ye[a];if(Ye[a++]=null,s!==null&&f!==null){var _=s.pending;_===null?f.next=f:(f.next=_.next,_.next=f),s.pending=f}d!==0&&Ph(l,f,d)}}function Xl(e,a,l,s){Ye[ma++]=e,Ye[ma++]=a,Ye[ma++]=l,Ye[ma++]=s,eo|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function no(e,a,l,s){return Xl(e,a,l,s),Vl(e)}function va(e,a){return Xl(e,null,null,a),Vl(e)}function Ph(e,a,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var f=!1,d=e.return;d!==null;)d.childLanes|=l,s=d.alternate,s!==null&&(s.childLanes|=l),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(f=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,f&&a!==null&&(f=31-me(l),e=d.hiddenUpdates,s=e[f],s===null?e[f]=[a]:s.push(a),a.lane=l|536870912),d):null}function Vl(e){if(50<Ur)throw Ur=0,oc=null,Error(u(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var _a={};function Fv(e,a,l,s){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(e,a,l,s){return new Fv(e,a,l,s)}function io(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mn(e,a){var l=e.alternate;return l===null?(l=ze(e.tag,a,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=a,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,a=e.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Jh(e,a){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,a=l.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function Zl(e,a,l,s,f,d){var _=0;if(s=e,typeof e=="function")io(e)&&(_=1);else if(typeof e=="string")_=J1(e,l,st.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case J:return e=ze(31,l,a,f),e.elementType=J,e.lanes=d,e;case A:return Ri(l.children,f,d,a);case M:_=8,f|=24;break;case T:return e=ze(12,l,a,f|2),e.elementType=T,e.lanes=d,e;case C:return e=ze(13,l,a,f),e.elementType=C,e.lanes=d,e;case H:return e=ze(19,l,a,f),e.elementType=H,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w:case q:_=10;break t;case D:_=9;break t;case R:_=11;break t;case U:_=14;break t;case B:_=16,s=null;break t}_=29,l=Error(u(130,e===null?"null":typeof e,"")),s=null}return a=ze(_,l,a,f),a.elementType=e,a.type=s,a.lanes=d,a}function Ri(e,a,l,s){return e=ze(7,e,s,a),e.lanes=l,e}function ao(e,a,l){return e=ze(6,e,null,a),e.lanes=l,e}function ro(e,a,l){return a=ze(4,e.children!==null?e.children:[],e.key,a),a.lanes=l,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var ba=[],xa=0,$l=null,Kl=0,Xe=[],Ve=0,Di=null,Cn=1,Nn="";function ji(e,a){ba[xa++]=Kl,ba[xa++]=$l,$l=e,Kl=a}function Wh(e,a,l){Xe[Ve++]=Cn,Xe[Ve++]=Nn,Xe[Ve++]=Di,Di=e;var s=Cn;e=Nn;var f=32-me(s)-1;s&=~(1<<f),l+=1;var d=32-me(a)+f;if(30<d){var _=f-f%5;d=(s&(1<<_)-1).toString(32),s>>=_,f-=_,Cn=1<<32-me(a)+f|l<<f|s,Nn=d+e}else Cn=1<<d|l<<f|s,Nn=e}function lo(e){e.return!==null&&(ji(e,1),Wh(e,1,0))}function uo(e){for(;e===$l;)$l=ba[--xa],ba[xa]=null,Kl=ba[--xa],ba[xa]=null;for(;e===Di;)Di=Xe[--Ve],Xe[Ve]=null,Nn=Xe[--Ve],Xe[Ve]=null,Cn=Xe[--Ve],Xe[Ve]=null}var ve=null,$t=null,Nt=!1,ki=null,cn=!1,so=Error(u(519));function Ui(e){var a=Error(u(418,""));throw gr(Qe(a,e)),so}function Ih(e){var a=e.stateNode,l=e.type,s=e.memoizedProps;switch(a[Gt]=e,a[Vt]=s,l){case"dialog":Et("cancel",a),Et("close",a);break;case"iframe":case"object":case"embed":Et("load",a);break;case"video":case"audio":for(l=0;l<Hr.length;l++)Et(Hr[l],a);break;case"source":Et("error",a);break;case"img":case"image":case"link":Et("error",a),Et("load",a);break;case"details":Et("toggle",a);break;case"input":Et("invalid",a),gh(a,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),jl(a);break;case"select":Et("invalid",a);break;case"textarea":Et("invalid",a),yh(a,s.value,s.defaultValue,s.children),jl(a)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||s.suppressHydrationWarning===!0||yg(a.textContent,l)?(s.popover!=null&&(Et("beforetoggle",a),Et("toggle",a)),s.onScroll!=null&&Et("scroll",a),s.onScrollEnd!=null&&Et("scrollend",a),s.onClick!=null&&(a.onclick=Mu),a=!0):a=!1,a||Ui(e)}function td(e){for(ve=e.return;ve;)switch(ve.tag){case 5:case 13:cn=!1;return;case 27:case 3:cn=!0;return;default:ve=ve.return}}function hr(e){if(e!==ve)return!1;if(!Nt)return td(e),Nt=!0,!1;var a=e.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Tc(e.type,e.memoizedProps)),l=!l),l&&$t&&Ui(e),td(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));t:{for(e=e.nextSibling,a=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(a===0){$t=en(e.nextSibling);break t}a--}else l!=="$"&&l!=="$!"&&l!=="$?"||a++;e=e.nextSibling}$t=null}}else a===27?(a=$t,di(e.type)?(e=Cc,Cc=null,$t=e):$t=a):$t=ve?en(e.stateNode.nextSibling):null;return!0}function dr(){$t=ve=null,Nt=!1}function ed(){var e=ki;return e!==null&&(Oe===null?Oe=e:Oe.push.apply(Oe,e),ki=null),e}function gr(e){ki===null?ki=[e]:ki.push(e)}var oo=Z(null),qi=null,zn=null;function Wn(e,a,l){it(oo,a._currentValue),a._currentValue=l}function Rn(e){e._currentValue=oo.current,tt(oo)}function co(e,a,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,s!==null&&(s.childLanes|=a)):s!==null&&(s.childLanes&a)!==a&&(s.childLanes|=a),e===l)break;e=e.return}}function fo(e,a,l,s){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var d=f.dependencies;if(d!==null){var _=f.child;d=d.firstContext;t:for(;d!==null;){var S=d;d=f;for(var N=0;N<a.length;N++)if(S.context===a[N]){d.lanes|=l,S=d.alternate,S!==null&&(S.lanes|=l),co(d.return,l,e),s||(_=null);break t}d=S.next}}else if(f.tag===18){if(_=f.return,_===null)throw Error(u(341));_.lanes|=l,d=_.alternate,d!==null&&(d.lanes|=l),co(_,l,e),_=null}else _=f.child;if(_!==null)_.return=f;else for(_=f;_!==null;){if(_===e){_=null;break}if(f=_.sibling,f!==null){f.return=_.return,_=f;break}_=_.return}f=_}}function pr(e,a,l,s){e=null;for(var f=a,d=!1;f!==null;){if(!d){if((f.flags&524288)!==0)d=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var _=f.alternate;if(_===null)throw Error(u(387));if(_=_.memoizedProps,_!==null){var S=f.type;Ne(f.pendingProps.value,_.value)||(e!==null?e.push(S):e=[S])}}else if(f===Ct.current){if(_=f.alternate,_===null)throw Error(u(387));_.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Xr):e=[Xr])}f=f.return}e!==null&&fo(a,e,l,s),a.flags|=262144}function Fl(e){for(e=e.firstContext;e!==null;){if(!Ne(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hi(e){qi=e,zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function he(e){return nd(qi,e)}function Pl(e,a){return qi===null&&Hi(e),nd(e,a)}function nd(e,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},zn===null){if(e===null)throw Error(u(308));zn=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else zn=zn.next=a;return l}var Pv=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){a.aborted=!0,e.forEach(function(l){return l()})}},Jv=n.unstable_scheduleCallback,Wv=n.unstable_NormalPriority,ee={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ho(){return{controller:new Pv,data:new Map,refCount:0}}function yr(e){e.refCount--,e.refCount===0&&Jv(Wv,function(){e.controller.abort()})}var mr=null,go=0,wa=0,Sa=null;function Iv(e,a){if(mr===null){var l=mr=[];go=0,wa=yc(),Sa={status:"pending",value:void 0,then:function(s){l.push(s)}}}return go++,a.then(id,id),a}function id(){if(--go===0&&mr!==null){Sa!==null&&(Sa.status="fulfilled");var e=mr;mr=null,wa=0,Sa=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function t1(e,a){var l=[],s={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return e.then(function(){s.status="fulfilled",s.value=a;for(var f=0;f<l.length;f++)(0,l[f])(a)},function(f){for(s.status="rejected",s.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),s}var ad=z.S;z.S=function(e,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&Iv(e,a),ad!==null&&ad(e,a)};var Li=Z(null);function po(){var e=Li.current;return e!==null?e:Lt.pooledCache}function Jl(e,a){a===null?it(Li,Li.current):it(Li,a.pool)}function rd(){var e=po();return e===null?null:{parent:ee._currentValue,pool:e}}var vr=Error(u(460)),ld=Error(u(474)),Wl=Error(u(542)),yo={then:function(){}};function ud(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Il(){}function sd(e,a,l){switch(l=e[l],l===void 0?e.push(a):l!==a&&(a.then(Il,Il),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,cd(e),e;default:if(typeof a.status=="string")a.then(Il,Il);else{if(e=Lt,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=a,e.status="pending",e.then(function(s){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=s}},function(s){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=s}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,cd(e),e}throw _r=a,vr}}var _r=null;function od(){if(_r===null)throw Error(u(459));var e=_r;return _r=null,e}function cd(e){if(e===vr||e===Wl)throw Error(u(483))}var In=!1;function mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vo(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ti(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ei(e,a,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(zt&2)!==0){var f=s.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),s.pending=a,a=Vl(e),Ph(e,null,l),a}return Xl(e,s,a,l),Vl(e)}function br(e,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var s=a.lanes;s&=e.pendingLanes,l|=s,a.lanes=l,bt(e,l)}}function _o(e,a){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var f=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var _={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};d===null?f=d=_:d=d.next=_,l=l.next}while(l!==null);d===null?f=d=a:d=d.next=a}else f=d=a;l={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=a:e.next=a,l.lastBaseUpdate=a}var bo=!1;function xr(){if(bo){var e=Sa;if(e!==null)throw e}}function wr(e,a,l,s){bo=!1;var f=e.updateQueue;In=!1;var d=f.firstBaseUpdate,_=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var N=S,Y=N.next;N.next=null,_===null?d=Y:_.next=Y,_=N;var K=e.alternate;K!==null&&(K=K.updateQueue,S=K.lastBaseUpdate,S!==_&&(S===null?K.firstBaseUpdate=Y:S.next=Y,K.lastBaseUpdate=N))}if(d!==null){var P=f.baseState;_=0,K=Y=N=null,S=d;do{var X=S.lane&-536870913,V=X!==S.lane;if(V?(Ot&X)===X:(s&X)===X){X!==0&&X===wa&&(bo=!0),K!==null&&(K=K.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var vt=e,pt=S;X=a;var Ut=l;switch(pt.tag){case 1:if(vt=pt.payload,typeof vt=="function"){P=vt.call(Ut,P,X);break t}P=vt;break t;case 3:vt.flags=vt.flags&-65537|128;case 0:if(vt=pt.payload,X=typeof vt=="function"?vt.call(Ut,P,X):vt,X==null)break t;P=v({},P,X);break t;case 2:In=!0}}X=S.callback,X!==null&&(e.flags|=64,V&&(e.flags|=8192),V=f.callbacks,V===null?f.callbacks=[X]:V.push(X))}else V={lane:X,tag:S.tag,payload:S.payload,callback:S.callback,next:null},K===null?(Y=K=V,N=P):K=K.next=V,_|=X;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;V=S,S=V.next,V.next=null,f.lastBaseUpdate=V,f.shared.pending=null}}while(!0);K===null&&(N=P),f.baseState=N,f.firstBaseUpdate=Y,f.lastBaseUpdate=K,d===null&&(f.shared.lanes=0),oi|=_,e.lanes=_,e.memoizedState=P}}function fd(e,a){if(typeof e!="function")throw Error(u(191,e));e.call(a)}function hd(e,a){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)fd(l[e],a)}var Aa=Z(null),tu=Z(0);function dd(e,a){e=Ln,it(tu,e),it(Aa,a),Ln=e|a.baseLanes}function xo(){it(tu,Ln),it(Aa,Aa.current)}function wo(){Ln=tu.current,tt(Aa),tt(tu)}var ni=0,wt=null,jt=null,Wt=null,eu=!1,Ta=!1,Bi=!1,nu=0,Sr=0,Ea=null,e1=0;function Ft(){throw Error(u(321))}function So(e,a){if(a===null)return!1;for(var l=0;l<a.length&&l<e.length;l++)if(!Ne(e[l],a[l]))return!1;return!0}function Ao(e,a,l,s,f,d){return ni=d,wt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,z.H=e===null||e.memoizedState===null?Pd:Jd,Bi=!1,d=l(s,f),Bi=!1,Ta&&(d=pd(a,l,s,f)),gd(e),d}function gd(e){z.H=su;var a=jt!==null&&jt.next!==null;if(ni=0,Wt=jt=wt=null,eu=!1,Sr=0,Ea=null,a)throw Error(u(300));e===null||re||(e=e.dependencies,e!==null&&Fl(e)&&(re=!0))}function pd(e,a,l,s){wt=e;var f=0;do{if(Ta&&(Ea=null),Sr=0,Ta=!1,25<=f)throw Error(u(301));if(f+=1,Wt=jt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}z.H=s1,d=a(l,s)}while(Ta);return d}function n1(){var e=z.H,a=e.useState()[0];return a=typeof a.then=="function"?Ar(a):a,e=e.useState()[0],(jt!==null?jt.memoizedState:null)!==e&&(wt.flags|=1024),a}function To(){var e=nu!==0;return nu=0,e}function Eo(e,a,l){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~l}function Oo(e){if(eu){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}eu=!1}ni=0,Wt=jt=wt=null,Ta=!1,Sr=nu=0,Ea=null}function Te(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wt===null?wt.memoizedState=Wt=e:Wt=Wt.next=e,Wt}function It(){if(jt===null){var e=wt.alternate;e=e!==null?e.memoizedState:null}else e=jt.next;var a=Wt===null?wt.memoizedState:Wt.next;if(a!==null)Wt=a,jt=e;else{if(e===null)throw wt.alternate===null?Error(u(467)):Error(u(310));jt=e,e={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},Wt===null?wt.memoizedState=Wt=e:Wt=Wt.next=e}return Wt}function Mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ar(e){var a=Sr;return Sr+=1,Ea===null&&(Ea=[]),e=sd(Ea,e,a),a=wt,(Wt===null?a.memoizedState:Wt.next)===null&&(a=a.alternate,z.H=a===null||a.memoizedState===null?Pd:Jd),e}function iu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ar(e);if(e.$$typeof===q)return he(e)}throw Error(u(438,String(e)))}function Co(e){var a=null,l=wt.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var s=wt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(a={data:s.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=Mo(),wt.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(e),s=0;s<e;s++)l[s]=W;return a.index++,l}function Dn(e,a){return typeof a=="function"?a(e):a}function au(e){var a=It();return No(a,jt,e)}function No(e,a,l){var s=e.queue;if(s===null)throw Error(u(311));s.lastRenderedReducer=l;var f=e.baseQueue,d=s.pending;if(d!==null){if(f!==null){var _=f.next;f.next=d.next,d.next=_}a.baseQueue=f=d,s.pending=null}if(d=e.baseState,f===null)e.memoizedState=d;else{a=f.next;var S=_=null,N=null,Y=a,K=!1;do{var P=Y.lane&-536870913;if(P!==Y.lane?(Ot&P)===P:(ni&P)===P){var X=Y.revertLane;if(X===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),P===wa&&(K=!0);else if((ni&X)===X){Y=Y.next,X===wa&&(K=!0);continue}else P={lane:0,revertLane:Y.revertLane,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},N===null?(S=N=P,_=d):N=N.next=P,wt.lanes|=X,oi|=X;P=Y.action,Bi&&l(d,P),d=Y.hasEagerState?Y.eagerState:l(d,P)}else X={lane:P,revertLane:Y.revertLane,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},N===null?(S=N=X,_=d):N=N.next=X,wt.lanes|=P,oi|=P;Y=Y.next}while(Y!==null&&Y!==a);if(N===null?_=d:N.next=S,!Ne(d,e.memoizedState)&&(re=!0,K&&(l=Sa,l!==null)))throw l;e.memoizedState=d,e.baseState=_,e.baseQueue=N,s.lastRenderedState=d}return f===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function zo(e){var a=It(),l=a.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var s=l.dispatch,f=l.pending,d=a.memoizedState;if(f!==null){l.pending=null;var _=f=f.next;do d=e(d,_.action),_=_.next;while(_!==f);Ne(d,a.memoizedState)||(re=!0),a.memoizedState=d,a.baseQueue===null&&(a.baseState=d),l.lastRenderedState=d}return[d,s]}function yd(e,a,l){var s=wt,f=It(),d=Nt;if(d){if(l===void 0)throw Error(u(407));l=l()}else l=a();var _=!Ne((jt||f).memoizedState,l);_&&(f.memoizedState=l,re=!0),f=f.queue;var S=_d.bind(null,s,f,e);if(Tr(2048,8,S,[e]),f.getSnapshot!==a||_||Wt!==null&&Wt.memoizedState.tag&1){if(s.flags|=2048,Oa(9,ru(),vd.bind(null,s,f,l,a),null),Lt===null)throw Error(u(349));d||(ni&124)!==0||md(s,a,l)}return l}function md(e,a,l){e.flags|=16384,e={getSnapshot:a,value:l},a=wt.updateQueue,a===null?(a=Mo(),wt.updateQueue=a,a.stores=[e]):(l=a.stores,l===null?a.stores=[e]:l.push(e))}function vd(e,a,l,s){a.value=l,a.getSnapshot=s,bd(a)&&xd(e)}function _d(e,a,l){return l(function(){bd(a)&&xd(e)})}function bd(e){var a=e.getSnapshot;e=e.value;try{var l=a();return!Ne(e,l)}catch{return!0}}function xd(e){var a=va(e,2);a!==null&&Ue(a,e,2)}function Ro(e){var a=Te();if(typeof e=="function"){var l=e;if(e=l(),Bi){on(!0);try{l()}finally{on(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:e},a}function wd(e,a,l,s){return e.baseState=l,No(e,jt,typeof s=="function"?s:Dn)}function i1(e,a,l,s,f){if(uu(e))throw Error(u(485));if(e=a.action,e!==null){var d={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){d.listeners.push(_)}};z.T!==null?l(!0):d.isTransition=!1,s(d),l=a.pending,l===null?(d.next=a.pending=d,Sd(a,d)):(d.next=l.next,a.pending=l.next=d)}}function Sd(e,a){var l=a.action,s=a.payload,f=e.state;if(a.isTransition){var d=z.T,_={};z.T=_;try{var S=l(f,s),N=z.S;N!==null&&N(_,S),Ad(e,a,S)}catch(Y){Do(e,a,Y)}finally{z.T=d}}else try{d=l(f,s),Ad(e,a,d)}catch(Y){Do(e,a,Y)}}function Ad(e,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){Td(e,a,s)},function(s){return Do(e,a,s)}):Td(e,a,l)}function Td(e,a,l){a.status="fulfilled",a.value=l,Ed(a),e.state=l,a=e.pending,a!==null&&(l=a.next,l===a?e.pending=null:(l=l.next,a.next=l,Sd(e,l)))}function Do(e,a,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do a.status="rejected",a.reason=l,Ed(a),a=a.next;while(a!==s)}e.action=null}function Ed(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function Od(e,a){return a}function Md(e,a){if(Nt){var l=Lt.formState;if(l!==null){t:{var s=wt;if(Nt){if($t){e:{for(var f=$t,d=cn;f.nodeType!==8;){if(!d){f=null;break e}if(f=en(f.nextSibling),f===null){f=null;break e}}d=f.data,f=d==="F!"||d==="F"?f:null}if(f){$t=en(f.nextSibling),s=f.data==="F!";break t}}Ui(s)}s=!1}s&&(a=l[0])}}return l=Te(),l.memoizedState=l.baseState=a,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Od,lastRenderedState:a},l.queue=s,l=$d.bind(null,wt,s),s.dispatch=l,s=Ro(!1),d=Ho.bind(null,wt,!1,s.queue),s=Te(),f={state:a,dispatch:null,action:e,pending:null},s.queue=f,l=i1.bind(null,wt,f,d,l),f.dispatch=l,s.memoizedState=e,[a,l,!1]}function Cd(e){var a=It();return Nd(a,jt,e)}function Nd(e,a,l){if(a=No(e,a,Od)[0],e=au(Dn)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var s=Ar(a)}catch(_){throw _===vr?Wl:_}else s=a;a=It();var f=a.queue,d=f.dispatch;return l!==a.memoizedState&&(wt.flags|=2048,Oa(9,ru(),a1.bind(null,f,l),null)),[s,d,e]}function a1(e,a){e.action=a}function zd(e){var a=It(),l=jt;if(l!==null)return Nd(a,l,e);It(),a=a.memoizedState,l=It();var s=l.queue.dispatch;return l.memoizedState=e,[a,s,!1]}function Oa(e,a,l,s){return e={tag:e,create:l,deps:s,inst:a,next:null},a=wt.updateQueue,a===null&&(a=Mo(),wt.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,a.lastEffect=e),e}function ru(){return{destroy:void 0,resource:void 0}}function Rd(){return It().memoizedState}function lu(e,a,l,s){var f=Te();s=s===void 0?null:s,wt.flags|=e,f.memoizedState=Oa(1|a,ru(),l,s)}function Tr(e,a,l,s){var f=It();s=s===void 0?null:s;var d=f.memoizedState.inst;jt!==null&&s!==null&&So(s,jt.memoizedState.deps)?f.memoizedState=Oa(a,d,l,s):(wt.flags|=e,f.memoizedState=Oa(1|a,d,l,s))}function Dd(e,a){lu(8390656,8,e,a)}function jd(e,a){Tr(2048,8,e,a)}function kd(e,a){return Tr(4,2,e,a)}function Ud(e,a){return Tr(4,4,e,a)}function qd(e,a){if(typeof a=="function"){e=e();var l=a(e);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function Hd(e,a,l){l=l!=null?l.concat([e]):null,Tr(4,4,qd.bind(null,a,e),l)}function jo(){}function Ld(e,a){var l=It();a=a===void 0?null:a;var s=l.memoizedState;return a!==null&&So(a,s[1])?s[0]:(l.memoizedState=[e,a],e)}function Bd(e,a){var l=It();a=a===void 0?null:a;var s=l.memoizedState;if(a!==null&&So(a,s[1]))return s[0];if(s=e(),Bi){on(!0);try{e()}finally{on(!1)}}return l.memoizedState=[s,a],s}function ko(e,a,l){return l===void 0||(ni&1073741824)!==0?e.memoizedState=a:(e.memoizedState=l,e=Y0(),wt.lanes|=e,oi|=e,l)}function Gd(e,a,l,s){return Ne(l,a)?l:Aa.current!==null?(e=ko(e,l,s),Ne(e,a)||(re=!0),e):(ni&42)===0?(re=!0,e.memoizedState=l):(e=Y0(),wt.lanes|=e,oi|=e,a)}function Qd(e,a,l,s,f){var d=$.p;$.p=d!==0&&8>d?d:8;var _=z.T,S={};z.T=S,Ho(e,!1,a,l);try{var N=f(),Y=z.S;if(Y!==null&&Y(S,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var K=t1(N,s);Er(e,a,K,ke(e))}else Er(e,a,s,ke(e))}catch(P){Er(e,a,{then:function(){},status:"rejected",reason:P},ke())}finally{$.p=d,z.T=_}}function r1(){}function Uo(e,a,l,s){if(e.tag!==5)throw Error(u(476));var f=Yd(e).queue;Qd(e,f,a,nt,l===null?r1:function(){return Xd(e),l(s)})}function Yd(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:nt},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:l},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function Xd(e){var a=Yd(e).next.queue;Er(e,a,{},ke())}function qo(){return he(Xr)}function Vd(){return It().memoizedState}function Zd(){return It().memoizedState}function l1(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var l=ke();e=ti(l);var s=ei(a,e,l);s!==null&&(Ue(s,a,l),br(s,a,l)),a={cache:ho()},e.payload=a;return}a=a.return}}function u1(e,a,l){var s=ke();l={lane:s,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},uu(e)?Kd(a,l):(l=no(e,a,l,s),l!==null&&(Ue(l,e,s),Fd(l,a,s)))}function $d(e,a,l){var s=ke();Er(e,a,l,s)}function Er(e,a,l,s){var f={lane:s,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(uu(e))Kd(a,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=a.lastRenderedReducer,d!==null))try{var _=a.lastRenderedState,S=d(_,l);if(f.hasEagerState=!0,f.eagerState=S,Ne(S,_))return Xl(e,a,f,0),Lt===null&&Yl(),!1}catch{}finally{}if(l=no(e,a,f,s),l!==null)return Ue(l,e,s),Fd(l,a,s),!0}return!1}function Ho(e,a,l,s){if(s={lane:2,revertLane:yc(),action:s,hasEagerState:!1,eagerState:null,next:null},uu(e)){if(a)throw Error(u(479))}else a=no(e,l,s,2),a!==null&&Ue(a,e,2)}function uu(e){var a=e.alternate;return e===wt||a!==null&&a===wt}function Kd(e,a){Ta=eu=!0;var l=e.pending;l===null?a.next=a:(a.next=l.next,l.next=a),e.pending=a}function Fd(e,a,l){if((l&4194048)!==0){var s=a.lanes;s&=e.pendingLanes,l|=s,a.lanes=l,bt(e,l)}}var su={readContext:he,use:iu,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useLayoutEffect:Ft,useInsertionEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useSyncExternalStore:Ft,useId:Ft,useHostTransitionStatus:Ft,useFormState:Ft,useActionState:Ft,useOptimistic:Ft,useMemoCache:Ft,useCacheRefresh:Ft},Pd={readContext:he,use:iu,useCallback:function(e,a){return Te().memoizedState=[e,a===void 0?null:a],e},useContext:he,useEffect:Dd,useImperativeHandle:function(e,a,l){l=l!=null?l.concat([e]):null,lu(4194308,4,qd.bind(null,a,e),l)},useLayoutEffect:function(e,a){return lu(4194308,4,e,a)},useInsertionEffect:function(e,a){lu(4,2,e,a)},useMemo:function(e,a){var l=Te();a=a===void 0?null:a;var s=e();if(Bi){on(!0);try{e()}finally{on(!1)}}return l.memoizedState=[s,a],s},useReducer:function(e,a,l){var s=Te();if(l!==void 0){var f=l(a);if(Bi){on(!0);try{l(a)}finally{on(!1)}}}else f=a;return s.memoizedState=s.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},s.queue=e,e=e.dispatch=u1.bind(null,wt,e),[s.memoizedState,e]},useRef:function(e){var a=Te();return e={current:e},a.memoizedState=e},useState:function(e){e=Ro(e);var a=e.queue,l=$d.bind(null,wt,a);return a.dispatch=l,[e.memoizedState,l]},useDebugValue:jo,useDeferredValue:function(e,a){var l=Te();return ko(l,e,a)},useTransition:function(){var e=Ro(!1);return e=Qd.bind(null,wt,e.queue,!0,!1),Te().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,l){var s=wt,f=Te();if(Nt){if(l===void 0)throw Error(u(407));l=l()}else{if(l=a(),Lt===null)throw Error(u(349));(Ot&124)!==0||md(s,a,l)}f.memoizedState=l;var d={value:l,getSnapshot:a};return f.queue=d,Dd(_d.bind(null,s,d,e),[e]),s.flags|=2048,Oa(9,ru(),vd.bind(null,s,d,l,a),null),l},useId:function(){var e=Te(),a=Lt.identifierPrefix;if(Nt){var l=Nn,s=Cn;l=(s&~(1<<32-me(s)-1)).toString(32)+l,a="«"+a+"R"+l,l=nu++,0<l&&(a+="H"+l.toString(32)),a+="»"}else l=e1++,a="«"+a+"r"+l.toString(32)+"»";return e.memoizedState=a},useHostTransitionStatus:qo,useFormState:Md,useActionState:Md,useOptimistic:function(e){var a=Te();a.memoizedState=a.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=Ho.bind(null,wt,!0,l),l.dispatch=a,[e,a]},useMemoCache:Co,useCacheRefresh:function(){return Te().memoizedState=l1.bind(null,wt)}},Jd={readContext:he,use:iu,useCallback:Ld,useContext:he,useEffect:jd,useImperativeHandle:Hd,useInsertionEffect:kd,useLayoutEffect:Ud,useMemo:Bd,useReducer:au,useRef:Rd,useState:function(){return au(Dn)},useDebugValue:jo,useDeferredValue:function(e,a){var l=It();return Gd(l,jt.memoizedState,e,a)},useTransition:function(){var e=au(Dn)[0],a=It().memoizedState;return[typeof e=="boolean"?e:Ar(e),a]},useSyncExternalStore:yd,useId:Vd,useHostTransitionStatus:qo,useFormState:Cd,useActionState:Cd,useOptimistic:function(e,a){var l=It();return wd(l,jt,e,a)},useMemoCache:Co,useCacheRefresh:Zd},s1={readContext:he,use:iu,useCallback:Ld,useContext:he,useEffect:jd,useImperativeHandle:Hd,useInsertionEffect:kd,useLayoutEffect:Ud,useMemo:Bd,useReducer:zo,useRef:Rd,useState:function(){return zo(Dn)},useDebugValue:jo,useDeferredValue:function(e,a){var l=It();return jt===null?ko(l,e,a):Gd(l,jt.memoizedState,e,a)},useTransition:function(){var e=zo(Dn)[0],a=It().memoizedState;return[typeof e=="boolean"?e:Ar(e),a]},useSyncExternalStore:yd,useId:Vd,useHostTransitionStatus:qo,useFormState:zd,useActionState:zd,useOptimistic:function(e,a){var l=It();return jt!==null?wd(l,jt,e,a):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Co,useCacheRefresh:Zd},Ma=null,Or=0;function ou(e){var a=Or;return Or+=1,Ma===null&&(Ma=[]),sd(Ma,e,a)}function Mr(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function cu(e,a){throw a.$$typeof===m?Error(u(525)):(e=Object.prototype.toString.call(a),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function Wd(e){var a=e._init;return a(e._payload)}function Id(e){function a(L,j){if(e){var Q=L.deletions;Q===null?(L.deletions=[j],L.flags|=16):Q.push(j)}}function l(L,j){if(!e)return null;for(;j!==null;)a(L,j),j=j.sibling;return null}function s(L){for(var j=new Map;L!==null;)L.key!==null?j.set(L.key,L):j.set(L.index,L),L=L.sibling;return j}function f(L,j){return L=Mn(L,j),L.index=0,L.sibling=null,L}function d(L,j,Q){return L.index=Q,e?(Q=L.alternate,Q!==null?(Q=Q.index,Q<j?(L.flags|=67108866,j):Q):(L.flags|=67108866,j)):(L.flags|=1048576,j)}function _(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function S(L,j,Q,F){return j===null||j.tag!==6?(j=ao(Q,L.mode,F),j.return=L,j):(j=f(j,Q),j.return=L,j)}function N(L,j,Q,F){var ct=Q.type;return ct===A?K(L,j,Q.props.children,F,Q.key):j!==null&&(j.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===B&&Wd(ct)===j.type)?(j=f(j,Q.props),Mr(j,Q),j.return=L,j):(j=Zl(Q.type,Q.key,Q.props,null,L.mode,F),Mr(j,Q),j.return=L,j)}function Y(L,j,Q,F){return j===null||j.tag!==4||j.stateNode.containerInfo!==Q.containerInfo||j.stateNode.implementation!==Q.implementation?(j=ro(Q,L.mode,F),j.return=L,j):(j=f(j,Q.children||[]),j.return=L,j)}function K(L,j,Q,F,ct){return j===null||j.tag!==7?(j=Ri(Q,L.mode,F,ct),j.return=L,j):(j=f(j,Q),j.return=L,j)}function P(L,j,Q){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=ao(""+j,L.mode,Q),j.return=L,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case b:return Q=Zl(j.type,j.key,j.props,null,L.mode,Q),Mr(Q,j),Q.return=L,Q;case x:return j=ro(j,L.mode,Q),j.return=L,j;case B:var F=j._init;return j=F(j._payload),P(L,j,Q)}if(I(j)||lt(j))return j=Ri(j,L.mode,Q,null),j.return=L,j;if(typeof j.then=="function")return P(L,ou(j),Q);if(j.$$typeof===q)return P(L,Pl(L,j),Q);cu(L,j)}return null}function X(L,j,Q,F){var ct=j!==null?j.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return ct!==null?null:S(L,j,""+Q,F);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case b:return Q.key===ct?N(L,j,Q,F):null;case x:return Q.key===ct?Y(L,j,Q,F):null;case B:return ct=Q._init,Q=ct(Q._payload),X(L,j,Q,F)}if(I(Q)||lt(Q))return ct!==null?null:K(L,j,Q,F,null);if(typeof Q.then=="function")return X(L,j,ou(Q),F);if(Q.$$typeof===q)return X(L,j,Pl(L,Q),F);cu(L,Q)}return null}function V(L,j,Q,F,ct){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return L=L.get(Q)||null,S(j,L,""+F,ct);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case b:return L=L.get(F.key===null?Q:F.key)||null,N(j,L,F,ct);case x:return L=L.get(F.key===null?Q:F.key)||null,Y(j,L,F,ct);case B:var St=F._init;return F=St(F._payload),V(L,j,Q,F,ct)}if(I(F)||lt(F))return L=L.get(Q)||null,K(j,L,F,ct,null);if(typeof F.then=="function")return V(L,j,Q,ou(F),ct);if(F.$$typeof===q)return V(L,j,Q,Pl(j,F),ct);cu(j,F)}return null}function vt(L,j,Q,F){for(var ct=null,St=null,dt=j,mt=j=0,ue=null;dt!==null&&mt<Q.length;mt++){dt.index>mt?(ue=dt,dt=null):ue=dt.sibling;var Mt=X(L,dt,Q[mt],F);if(Mt===null){dt===null&&(dt=ue);break}e&&dt&&Mt.alternate===null&&a(L,dt),j=d(Mt,j,mt),St===null?ct=Mt:St.sibling=Mt,St=Mt,dt=ue}if(mt===Q.length)return l(L,dt),Nt&&ji(L,mt),ct;if(dt===null){for(;mt<Q.length;mt++)dt=P(L,Q[mt],F),dt!==null&&(j=d(dt,j,mt),St===null?ct=dt:St.sibling=dt,St=dt);return Nt&&ji(L,mt),ct}for(dt=s(dt);mt<Q.length;mt++)ue=V(dt,L,mt,Q[mt],F),ue!==null&&(e&&ue.alternate!==null&&dt.delete(ue.key===null?mt:ue.key),j=d(ue,j,mt),St===null?ct=ue:St.sibling=ue,St=ue);return e&&dt.forEach(function(vi){return a(L,vi)}),Nt&&ji(L,mt),ct}function pt(L,j,Q,F){if(Q==null)throw Error(u(151));for(var ct=null,St=null,dt=j,mt=j=0,ue=null,Mt=Q.next();dt!==null&&!Mt.done;mt++,Mt=Q.next()){dt.index>mt?(ue=dt,dt=null):ue=dt.sibling;var vi=X(L,dt,Mt.value,F);if(vi===null){dt===null&&(dt=ue);break}e&&dt&&vi.alternate===null&&a(L,dt),j=d(vi,j,mt),St===null?ct=vi:St.sibling=vi,St=vi,dt=ue}if(Mt.done)return l(L,dt),Nt&&ji(L,mt),ct;if(dt===null){for(;!Mt.done;mt++,Mt=Q.next())Mt=P(L,Mt.value,F),Mt!==null&&(j=d(Mt,j,mt),St===null?ct=Mt:St.sibling=Mt,St=Mt);return Nt&&ji(L,mt),ct}for(dt=s(dt);!Mt.done;mt++,Mt=Q.next())Mt=V(dt,L,mt,Mt.value,F),Mt!==null&&(e&&Mt.alternate!==null&&dt.delete(Mt.key===null?mt:Mt.key),j=d(Mt,j,mt),St===null?ct=Mt:St.sibling=Mt,St=Mt);return e&&dt.forEach(function(o_){return a(L,o_)}),Nt&&ji(L,mt),ct}function Ut(L,j,Q,F){if(typeof Q=="object"&&Q!==null&&Q.type===A&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case b:t:{for(var ct=Q.key;j!==null;){if(j.key===ct){if(ct=Q.type,ct===A){if(j.tag===7){l(L,j.sibling),F=f(j,Q.props.children),F.return=L,L=F;break t}}else if(j.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===B&&Wd(ct)===j.type){l(L,j.sibling),F=f(j,Q.props),Mr(F,Q),F.return=L,L=F;break t}l(L,j);break}else a(L,j);j=j.sibling}Q.type===A?(F=Ri(Q.props.children,L.mode,F,Q.key),F.return=L,L=F):(F=Zl(Q.type,Q.key,Q.props,null,L.mode,F),Mr(F,Q),F.return=L,L=F)}return _(L);case x:t:{for(ct=Q.key;j!==null;){if(j.key===ct)if(j.tag===4&&j.stateNode.containerInfo===Q.containerInfo&&j.stateNode.implementation===Q.implementation){l(L,j.sibling),F=f(j,Q.children||[]),F.return=L,L=F;break t}else{l(L,j);break}else a(L,j);j=j.sibling}F=ro(Q,L.mode,F),F.return=L,L=F}return _(L);case B:return ct=Q._init,Q=ct(Q._payload),Ut(L,j,Q,F)}if(I(Q))return vt(L,j,Q,F);if(lt(Q)){if(ct=lt(Q),typeof ct!="function")throw Error(u(150));return Q=ct.call(Q),pt(L,j,Q,F)}if(typeof Q.then=="function")return Ut(L,j,ou(Q),F);if(Q.$$typeof===q)return Ut(L,j,Pl(L,Q),F);cu(L,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,j!==null&&j.tag===6?(l(L,j.sibling),F=f(j,Q),F.return=L,L=F):(l(L,j),F=ao(Q,L.mode,F),F.return=L,L=F),_(L)):l(L,j)}return function(L,j,Q,F){try{Or=0;var ct=Ut(L,j,Q,F);return Ma=null,ct}catch(dt){if(dt===vr||dt===Wl)throw dt;var St=ze(29,dt,null,L.mode);return St.lanes=F,St.return=L,St}finally{}}}var Ca=Id(!0),t0=Id(!1),Ze=Z(null),fn=null;function ii(e){var a=e.alternate;it(ne,ne.current&1),it(Ze,e),fn===null&&(a===null||Aa.current!==null||a.memoizedState!==null)&&(fn=e)}function e0(e){if(e.tag===22){if(it(ne,ne.current),it(Ze,e),fn===null){var a=e.alternate;a!==null&&a.memoizedState!==null&&(fn=e)}}else ai()}function ai(){it(ne,ne.current),it(Ze,Ze.current)}function jn(e){tt(Ze),fn===e&&(fn=null),tt(ne)}var ne=Z(0);function fu(e){for(var a=e;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||Mc(l)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Lo(e,a,l,s){a=e.memoizedState,l=l(s,a),l=l==null?a:v({},a,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Bo={enqueueSetState:function(e,a,l){e=e._reactInternals;var s=ke(),f=ti(s);f.payload=a,l!=null&&(f.callback=l),a=ei(e,f,s),a!==null&&(Ue(a,e,s),br(a,e,s))},enqueueReplaceState:function(e,a,l){e=e._reactInternals;var s=ke(),f=ti(s);f.tag=1,f.payload=a,l!=null&&(f.callback=l),a=ei(e,f,s),a!==null&&(Ue(a,e,s),br(a,e,s))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var l=ke(),s=ti(l);s.tag=2,a!=null&&(s.callback=a),a=ei(e,s,l),a!==null&&(Ue(a,e,l),br(a,e,l))}};function n0(e,a,l,s,f,d,_){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,_):a.prototype&&a.prototype.isPureReactComponent?!cr(l,s)||!cr(f,d):!0}function i0(e,a,l,s){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,s),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,s),a.state!==e&&Bo.enqueueReplaceState(a,a.state,null)}function Gi(e,a){var l=a;if("ref"in a){l={};for(var s in a)s!=="ref"&&(l[s]=a[s])}if(e=e.defaultProps){l===a&&(l=v({},l));for(var f in e)l[f]===void 0&&(l[f]=e[f])}return l}var hu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function a0(e){hu(e)}function r0(e){console.error(e)}function l0(e){hu(e)}function du(e,a){try{var l=e.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(s){setTimeout(function(){throw s})}}function u0(e,a,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Go(e,a,l){return l=ti(l),l.tag=3,l.payload={element:null},l.callback=function(){du(e,a)},l}function s0(e){return e=ti(e),e.tag=3,e}function o0(e,a,l,s){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var d=s.value;e.payload=function(){return f(d)},e.callback=function(){u0(a,l,s)}}var _=l.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(e.callback=function(){u0(a,l,s),typeof f!="function"&&(ci===null?ci=new Set([this]):ci.add(this));var S=s.stack;this.componentDidCatch(s.value,{componentStack:S!==null?S:""})})}function o1(e,a,l,s,f){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(a=l.alternate,a!==null&&pr(a,l,f,!0),l=Ze.current,l!==null){switch(l.tag){case 13:return fn===null?fc():l.alternate===null&&Kt===0&&(Kt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,s===yo?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([s]):a.add(s),dc(e,s,f)),!1;case 22:return l.flags|=65536,s===yo?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([s]):l.add(s)),dc(e,s,f)),!1}throw Error(u(435,l.tag))}return dc(e,s,f),fc(),!1}if(Nt)return a=Ze.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,s!==so&&(e=Error(u(422),{cause:s}),gr(Qe(e,l)))):(s!==so&&(a=Error(u(423),{cause:s}),gr(Qe(a,l))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,s=Qe(s,l),f=Go(e.stateNode,s,f),_o(e,f),Kt!==4&&(Kt=2)),!1;var d=Error(u(520),{cause:s});if(d=Qe(d,l),kr===null?kr=[d]:kr.push(d),Kt!==4&&(Kt=2),a===null)return!0;s=Qe(s,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,e=f&-f,l.lanes|=e,e=Go(l.stateNode,s,e),_o(l,e),!1;case 1:if(a=l.type,d=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ci===null||!ci.has(d))))return l.flags|=65536,f&=-f,l.lanes|=f,f=s0(f),o0(f,e,l,s),_o(l,f),!1}l=l.return}while(l!==null);return!1}var c0=Error(u(461)),re=!1;function se(e,a,l,s){a.child=e===null?t0(a,null,l,s):Ca(a,e.child,l,s)}function f0(e,a,l,s,f){l=l.render;var d=a.ref;if("ref"in s){var _={};for(var S in s)S!=="ref"&&(_[S]=s[S])}else _=s;return Hi(a),s=Ao(e,a,l,_,d,f),S=To(),e!==null&&!re?(Eo(e,a,f),kn(e,a,f)):(Nt&&S&&lo(a),a.flags|=1,se(e,a,s,f),a.child)}function h0(e,a,l,s,f){if(e===null){var d=l.type;return typeof d=="function"&&!io(d)&&d.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=d,d0(e,a,d,s,f)):(e=Zl(l.type,null,s,a,a.mode,f),e.ref=a.ref,e.return=a,a.child=e)}if(d=e.child,!Fo(e,f)){var _=d.memoizedProps;if(l=l.compare,l=l!==null?l:cr,l(_,s)&&e.ref===a.ref)return kn(e,a,f)}return a.flags|=1,e=Mn(d,s),e.ref=a.ref,e.return=a,a.child=e}function d0(e,a,l,s,f){if(e!==null){var d=e.memoizedProps;if(cr(d,s)&&e.ref===a.ref)if(re=!1,a.pendingProps=s=d,Fo(e,f))(e.flags&131072)!==0&&(re=!0);else return a.lanes=e.lanes,kn(e,a,f)}return Qo(e,a,l,s,f)}function g0(e,a,l){var s=a.pendingProps,f=s.children,d=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((a.flags&128)!==0){if(s=d!==null?d.baseLanes|l:l,e!==null){for(f=a.child=e.child,d=0;f!==null;)d=d|f.lanes|f.childLanes,f=f.sibling;a.childLanes=d&~s}else a.childLanes=0,a.child=null;return p0(e,a,s,l)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jl(a,d!==null?d.cachePool:null),d!==null?dd(a,d):xo(),e0(a);else return a.lanes=a.childLanes=536870912,p0(e,a,d!==null?d.baseLanes|l:l,l)}else d!==null?(Jl(a,d.cachePool),dd(a,d),ai(),a.memoizedState=null):(e!==null&&Jl(a,null),xo(),ai());return se(e,a,f,l),a.child}function p0(e,a,l,s){var f=po();return f=f===null?null:{parent:ee._currentValue,pool:f},a.memoizedState={baseLanes:l,cachePool:f},e!==null&&Jl(a,null),xo(),e0(a),e!==null&&pr(e,a,s,!0),null}function gu(e,a){var l=a.ref;if(l===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(a.flags|=4194816)}}function Qo(e,a,l,s,f){return Hi(a),l=Ao(e,a,l,s,void 0,f),s=To(),e!==null&&!re?(Eo(e,a,f),kn(e,a,f)):(Nt&&s&&lo(a),a.flags|=1,se(e,a,l,f),a.child)}function y0(e,a,l,s,f,d){return Hi(a),a.updateQueue=null,l=pd(a,s,l,f),gd(e),s=To(),e!==null&&!re?(Eo(e,a,d),kn(e,a,d)):(Nt&&s&&lo(a),a.flags|=1,se(e,a,l,d),a.child)}function m0(e,a,l,s,f){if(Hi(a),a.stateNode===null){var d=_a,_=l.contextType;typeof _=="object"&&_!==null&&(d=he(_)),d=new l(s,d),a.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Bo,a.stateNode=d,d._reactInternals=a,d=a.stateNode,d.props=s,d.state=a.memoizedState,d.refs={},mo(a),_=l.contextType,d.context=typeof _=="object"&&_!==null?he(_):_a,d.state=a.memoizedState,_=l.getDerivedStateFromProps,typeof _=="function"&&(Lo(a,l,_,s),d.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(_=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),_!==d.state&&Bo.enqueueReplaceState(d,d.state,null),wr(a,s,d,f),xr(),d.state=a.memoizedState),typeof d.componentDidMount=="function"&&(a.flags|=4194308),s=!0}else if(e===null){d=a.stateNode;var S=a.memoizedProps,N=Gi(l,S);d.props=N;var Y=d.context,K=l.contextType;_=_a,typeof K=="object"&&K!==null&&(_=he(K));var P=l.getDerivedStateFromProps;K=typeof P=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=a.pendingProps!==S,K||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||Y!==_)&&i0(a,d,s,_),In=!1;var X=a.memoizedState;d.state=X,wr(a,s,d,f),xr(),Y=a.memoizedState,S||X!==Y||In?(typeof P=="function"&&(Lo(a,l,P,s),Y=a.memoizedState),(N=In||n0(a,l,N,s,X,Y,_))?(K||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(a.flags|=4194308)):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=s,a.memoizedState=Y),d.props=s,d.state=Y,d.context=_,s=N):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),s=!1)}else{d=a.stateNode,vo(e,a),_=a.memoizedProps,K=Gi(l,_),d.props=K,P=a.pendingProps,X=d.context,Y=l.contextType,N=_a,typeof Y=="object"&&Y!==null&&(N=he(Y)),S=l.getDerivedStateFromProps,(Y=typeof S=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(_!==P||X!==N)&&i0(a,d,s,N),In=!1,X=a.memoizedState,d.state=X,wr(a,s,d,f),xr();var V=a.memoizedState;_!==P||X!==V||In||e!==null&&e.dependencies!==null&&Fl(e.dependencies)?(typeof S=="function"&&(Lo(a,l,S,s),V=a.memoizedState),(K=In||n0(a,l,K,s,X,V,N)||e!==null&&e.dependencies!==null&&Fl(e.dependencies))?(Y||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,V,N),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,V,N)),typeof d.componentDidUpdate=="function"&&(a.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof d.componentDidUpdate!="function"||_===e.memoizedProps&&X===e.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&X===e.memoizedState||(a.flags|=1024),a.memoizedProps=s,a.memoizedState=V),d.props=s,d.state=V,d.context=N,s=K):(typeof d.componentDidUpdate!="function"||_===e.memoizedProps&&X===e.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&X===e.memoizedState||(a.flags|=1024),s=!1)}return d=s,gu(e,a),s=(a.flags&128)!==0,d||s?(d=a.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:d.render(),a.flags|=1,e!==null&&s?(a.child=Ca(a,e.child,null,f),a.child=Ca(a,null,l,f)):se(e,a,l,f),a.memoizedState=d.state,e=a.child):e=kn(e,a,f),e}function v0(e,a,l,s){return dr(),a.flags|=256,se(e,a,l,s),a.child}var Yo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xo(e){return{baseLanes:e,cachePool:rd()}}function Vo(e,a,l){return e=e!==null?e.childLanes&~l:0,a&&(e|=$e),e}function _0(e,a,l){var s=a.pendingProps,f=!1,d=(a.flags&128)!==0,_;if((_=d)||(_=e!==null&&e.memoizedState===null?!1:(ne.current&2)!==0),_&&(f=!0,a.flags&=-129),_=(a.flags&32)!==0,a.flags&=-33,e===null){if(Nt){if(f?ii(a):ai(),Nt){var S=$t,N;if(N=S){t:{for(N=S,S=cn;N.nodeType!==8;){if(!S){S=null;break t}if(N=en(N.nextSibling),N===null){S=null;break t}}S=N}S!==null?(a.memoizedState={dehydrated:S,treeContext:Di!==null?{id:Cn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},N=ze(18,null,null,0),N.stateNode=S,N.return=a,a.child=N,ve=a,$t=null,N=!0):N=!1}N||Ui(a)}if(S=a.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return Mc(S)?a.lanes=32:a.lanes=536870912,null;jn(a)}return S=s.children,s=s.fallback,f?(ai(),f=a.mode,S=pu({mode:"hidden",children:S},f),s=Ri(s,f,l,null),S.return=a,s.return=a,S.sibling=s,a.child=S,f=a.child,f.memoizedState=Xo(l),f.childLanes=Vo(e,_,l),a.memoizedState=Yo,s):(ii(a),Zo(a,S))}if(N=e.memoizedState,N!==null&&(S=N.dehydrated,S!==null)){if(d)a.flags&256?(ii(a),a.flags&=-257,a=$o(e,a,l)):a.memoizedState!==null?(ai(),a.child=e.child,a.flags|=128,a=null):(ai(),f=s.fallback,S=a.mode,s=pu({mode:"visible",children:s.children},S),f=Ri(f,S,l,null),f.flags|=2,s.return=a,f.return=a,s.sibling=f,a.child=s,Ca(a,e.child,null,l),s=a.child,s.memoizedState=Xo(l),s.childLanes=Vo(e,_,l),a.memoizedState=Yo,a=f);else if(ii(a),Mc(S)){if(_=S.nextSibling&&S.nextSibling.dataset,_)var Y=_.dgst;_=Y,s=Error(u(419)),s.stack="",s.digest=_,gr({value:s,source:null,stack:null}),a=$o(e,a,l)}else if(re||pr(e,a,l,!1),_=(l&e.childLanes)!==0,re||_){if(_=Lt,_!==null&&(s=l&-l,s=(s&42)!==0?1:we(s),s=(s&(_.suspendedLanes|l))!==0?0:s,s!==0&&s!==N.retryLane))throw N.retryLane=s,va(e,s),Ue(_,e,s),c0;S.data==="$?"||fc(),a=$o(e,a,l)}else S.data==="$?"?(a.flags|=192,a.child=e.child,a=null):(e=N.treeContext,$t=en(S.nextSibling),ve=a,Nt=!0,ki=null,cn=!1,e!==null&&(Xe[Ve++]=Cn,Xe[Ve++]=Nn,Xe[Ve++]=Di,Cn=e.id,Nn=e.overflow,Di=a),a=Zo(a,s.children),a.flags|=4096);return a}return f?(ai(),f=s.fallback,S=a.mode,N=e.child,Y=N.sibling,s=Mn(N,{mode:"hidden",children:s.children}),s.subtreeFlags=N.subtreeFlags&65011712,Y!==null?f=Mn(Y,f):(f=Ri(f,S,l,null),f.flags|=2),f.return=a,s.return=a,s.sibling=f,a.child=s,s=f,f=a.child,S=e.child.memoizedState,S===null?S=Xo(l):(N=S.cachePool,N!==null?(Y=ee._currentValue,N=N.parent!==Y?{parent:Y,pool:Y}:N):N=rd(),S={baseLanes:S.baseLanes|l,cachePool:N}),f.memoizedState=S,f.childLanes=Vo(e,_,l),a.memoizedState=Yo,s):(ii(a),l=e.child,e=l.sibling,l=Mn(l,{mode:"visible",children:s.children}),l.return=a,l.sibling=null,e!==null&&(_=a.deletions,_===null?(a.deletions=[e],a.flags|=16):_.push(e)),a.child=l,a.memoizedState=null,l)}function Zo(e,a){return a=pu({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function pu(e,a){return e=ze(22,e,null,a),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function $o(e,a,l){return Ca(a,e.child,null,l),e=Zo(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function b0(e,a,l){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a),co(e.return,a,l)}function Ko(e,a,l,s,f){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:f}:(d.isBackwards=a,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=l,d.tailMode=f)}function x0(e,a,l){var s=a.pendingProps,f=s.revealOrder,d=s.tail;if(se(e,a,s.children,l),s=ne.current,(s&2)!==0)s=s&1|2,a.flags|=128;else{if(e!==null&&(e.flags&128)!==0)t:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&b0(e,l,a);else if(e.tag===19)b0(e,l,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break t;for(;e.sibling===null;){if(e.return===null||e.return===a)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(it(ne,s),f){case"forwards":for(l=a.child,f=null;l!==null;)e=l.alternate,e!==null&&fu(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=a.child,a.child=null):(f=l.sibling,l.sibling=null),Ko(a,!1,f,l,d);break;case"backwards":for(l=null,f=a.child,a.child=null;f!==null;){if(e=f.alternate,e!==null&&fu(e)===null){a.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}Ko(a,!0,l,null,d);break;case"together":Ko(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function kn(e,a,l){if(e!==null&&(a.dependencies=e.dependencies),oi|=a.lanes,(l&a.childLanes)===0)if(e!==null){if(pr(e,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(u(153));if(a.child!==null){for(e=a.child,l=Mn(e,e.pendingProps),a.child=l,l.return=a;e.sibling!==null;)e=e.sibling,l=l.sibling=Mn(e,e.pendingProps),l.return=a;l.sibling=null}return a.child}function Fo(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&Fl(e)))}function c1(e,a,l){switch(a.tag){case 3:At(a,a.stateNode.containerInfo),Wn(a,ee,e.memoizedState.cache),dr();break;case 27:case 5:Wa(a);break;case 4:At(a,a.stateNode.containerInfo);break;case 10:Wn(a,a.type,a.memoizedProps.value);break;case 13:var s=a.memoizedState;if(s!==null)return s.dehydrated!==null?(ii(a),a.flags|=128,null):(l&a.child.childLanes)!==0?_0(e,a,l):(ii(a),e=kn(e,a,l),e!==null?e.sibling:null);ii(a);break;case 19:var f=(e.flags&128)!==0;if(s=(l&a.childLanes)!==0,s||(pr(e,a,l,!1),s=(l&a.childLanes)!==0),f){if(s)return x0(e,a,l);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),it(ne,ne.current),s)break;return null;case 22:case 23:return a.lanes=0,g0(e,a,l);case 24:Wn(a,ee,e.memoizedState.cache)}return kn(e,a,l)}function w0(e,a,l){if(e!==null)if(e.memoizedProps!==a.pendingProps)re=!0;else{if(!Fo(e,l)&&(a.flags&128)===0)return re=!1,c1(e,a,l);re=(e.flags&131072)!==0}else re=!1,Nt&&(a.flags&1048576)!==0&&Wh(a,Kl,a.index);switch(a.lanes=0,a.tag){case 16:t:{e=a.pendingProps;var s=a.elementType,f=s._init;if(s=f(s._payload),a.type=s,typeof s=="function")io(s)?(e=Gi(s,e),a.tag=1,a=m0(null,a,s,e,l)):(a.tag=0,a=Qo(null,a,s,e,l));else{if(s!=null){if(f=s.$$typeof,f===R){a.tag=11,a=f0(null,a,s,e,l);break t}else if(f===U){a.tag=14,a=h0(null,a,s,e,l);break t}}throw a=G(s)||s,Error(u(306,a,""))}}return a;case 0:return Qo(e,a,a.type,a.pendingProps,l);case 1:return s=a.type,f=Gi(s,a.pendingProps),m0(e,a,s,f,l);case 3:t:{if(At(a,a.stateNode.containerInfo),e===null)throw Error(u(387));s=a.pendingProps;var d=a.memoizedState;f=d.element,vo(e,a),wr(a,s,null,l);var _=a.memoizedState;if(s=_.cache,Wn(a,ee,s),s!==d.cache&&fo(a,[ee],l,!0),xr(),s=_.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=d,a.memoizedState=d,a.flags&256){a=v0(e,a,s,l);break t}else if(s!==f){f=Qe(Error(u(424)),a),gr(f),a=v0(e,a,s,l);break t}else{switch(e=a.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for($t=en(e.firstChild),ve=a,Nt=!0,ki=null,cn=!0,l=t0(a,null,s,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(dr(),s===f){a=kn(e,a,l);break t}se(e,a,s,l)}a=a.child}return a;case 26:return gu(e,a),e===null?(l=Eg(a.type,null,a.pendingProps,null))?a.memoizedState=l:Nt||(l=a.type,e=a.pendingProps,s=Cu(ht.current).createElement(l),s[Gt]=a,s[Vt]=e,ce(s,l,e),ae(s),a.stateNode=s):a.memoizedState=Eg(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return Wa(a),e===null&&Nt&&(s=a.stateNode=Sg(a.type,a.pendingProps,ht.current),ve=a,cn=!0,f=$t,di(a.type)?(Cc=f,$t=en(s.firstChild)):$t=f),se(e,a,a.pendingProps.children,l),gu(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&Nt&&((f=s=$t)&&(s=H1(s,a.type,a.pendingProps,cn),s!==null?(a.stateNode=s,ve=a,$t=en(s.firstChild),cn=!1,f=!0):f=!1),f||Ui(a)),Wa(a),f=a.type,d=a.pendingProps,_=e!==null?e.memoizedProps:null,s=d.children,Tc(f,d)?s=null:_!==null&&Tc(f,_)&&(a.flags|=32),a.memoizedState!==null&&(f=Ao(e,a,n1,null,null,l),Xr._currentValue=f),gu(e,a),se(e,a,s,l),a.child;case 6:return e===null&&Nt&&((e=l=$t)&&(l=L1(l,a.pendingProps,cn),l!==null?(a.stateNode=l,ve=a,$t=null,e=!0):e=!1),e||Ui(a)),null;case 13:return _0(e,a,l);case 4:return At(a,a.stateNode.containerInfo),s=a.pendingProps,e===null?a.child=Ca(a,null,s,l):se(e,a,s,l),a.child;case 11:return f0(e,a,a.type,a.pendingProps,l);case 7:return se(e,a,a.pendingProps,l),a.child;case 8:return se(e,a,a.pendingProps.children,l),a.child;case 12:return se(e,a,a.pendingProps.children,l),a.child;case 10:return s=a.pendingProps,Wn(a,a.type,s.value),se(e,a,s.children,l),a.child;case 9:return f=a.type._context,s=a.pendingProps.children,Hi(a),f=he(f),s=s(f),a.flags|=1,se(e,a,s,l),a.child;case 14:return h0(e,a,a.type,a.pendingProps,l);case 15:return d0(e,a,a.type,a.pendingProps,l);case 19:return x0(e,a,l);case 31:return s=a.pendingProps,l=a.mode,s={mode:s.mode,children:s.children},e===null?(l=pu(s,l),l.ref=a.ref,a.child=l,l.return=a,a=l):(l=Mn(e.child,s),l.ref=a.ref,a.child=l,l.return=a,a=l),a;case 22:return g0(e,a,l);case 24:return Hi(a),s=he(ee),e===null?(f=po(),f===null&&(f=Lt,d=ho(),f.pooledCache=d,d.refCount++,d!==null&&(f.pooledCacheLanes|=l),f=d),a.memoizedState={parent:s,cache:f},mo(a),Wn(a,ee,f)):((e.lanes&l)!==0&&(vo(e,a),wr(a,null,null,l),xr()),f=e.memoizedState,d=a.memoizedState,f.parent!==s?(f={parent:s,cache:s},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),Wn(a,ee,s)):(s=d.cache,Wn(a,ee,s),s!==f.cache&&fo(a,[ee],l,!0))),se(e,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(u(156,a.tag))}function Un(e){e.flags|=4}function S0(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zg(a)){if(a=Ze.current,a!==null&&((Ot&4194048)===Ot?fn!==null:(Ot&62914560)!==Ot&&(Ot&536870912)===0||a!==fn))throw _r=yo,ld;e.flags|=8192}}function yu(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?zl():536870912,e.lanes|=a,Da|=a)}function Cr(e,a){if(!Nt)switch(e.tailMode){case"hidden":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Zt(e){var a=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(a)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=s,e.childLanes=l,a}function f1(e,a,l){var s=a.pendingProps;switch(uo(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(a),null;case 1:return Zt(a),null;case 3:return l=a.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),Rn(ee),pe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(hr(a)?Un(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ed())),Zt(a),null;case 26:return l=a.memoizedState,e===null?(Un(a),l!==null?(Zt(a),S0(a,l)):(Zt(a),a.flags&=-16777217)):l?l!==e.memoizedState?(Un(a),Zt(a),S0(a,l)):(Zt(a),a.flags&=-16777217):(e.memoizedProps!==s&&Un(a),Zt(a),a.flags&=-16777217),null;case 27:Ii(a),l=ht.current;var f=a.type;if(e!==null&&a.stateNode!=null)e.memoizedProps!==s&&Un(a);else{if(!s){if(a.stateNode===null)throw Error(u(166));return Zt(a),null}e=st.current,hr(a)?Ih(a):(e=Sg(f,s,l),a.stateNode=e,Un(a))}return Zt(a),null;case 5:if(Ii(a),l=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==s&&Un(a);else{if(!s){if(a.stateNode===null)throw Error(u(166));return Zt(a),null}if(e=st.current,hr(a))Ih(a);else{switch(f=Cu(ht.current),e){case 1:e=f.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=f.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?f.createElement("select",{is:s.is}):f.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?f.createElement(l,{is:s.is}):f.createElement(l)}}e[Gt]=a,e[Vt]=s;t:for(f=a.child;f!==null;){if(f.tag===5||f.tag===6)e.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===a)break t;for(;f.sibling===null;){if(f.return===null||f.return===a)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}a.stateNode=e;t:switch(ce(e,l,s),l){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break t;case"img":e=!0;break t;default:e=!1}e&&Un(a)}}return Zt(a),a.flags&=-16777217,null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==s&&Un(a);else{if(typeof s!="string"&&a.stateNode===null)throw Error(u(166));if(e=ht.current,hr(a)){if(e=a.stateNode,l=a.memoizedProps,s=null,f=ve,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}e[Gt]=a,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||yg(e.nodeValue,l)),e||Ui(a)}else e=Cu(e).createTextNode(s),e[Gt]=a,a.stateNode=e}return Zt(a),null;case 13:if(s=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=hr(a),s!==null&&s.dehydrated!==null){if(e===null){if(!f)throw Error(u(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(u(317));f[Gt]=a}else dr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Zt(a),f=!1}else f=ed(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(jn(a),a):(jn(a),null)}if(jn(a),(a.flags&128)!==0)return a.lanes=l,a;if(l=s!==null,e=e!==null&&e.memoizedState!==null,l){s=a.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool);var d=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==f&&(s.flags|=2048)}return l!==e&&l&&(a.child.flags|=8192),yu(a,a.updateQueue),Zt(a),null;case 4:return pe(),e===null&&bc(a.stateNode.containerInfo),Zt(a),null;case 10:return Rn(a.type),Zt(a),null;case 19:if(tt(ne),f=a.memoizedState,f===null)return Zt(a),null;if(s=(a.flags&128)!==0,d=f.rendering,d===null)if(s)Cr(f,!1);else{if(Kt!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(d=fu(e),d!==null){for(a.flags|=128,Cr(f,!1),e=d.updateQueue,a.updateQueue=e,yu(a,e),a.subtreeFlags=0,e=l,l=a.child;l!==null;)Jh(l,e),l=l.sibling;return it(ne,ne.current&1|2),a.child}e=e.sibling}f.tail!==null&&Le()>_u&&(a.flags|=128,s=!0,Cr(f,!1),a.lanes=4194304)}else{if(!s)if(e=fu(d),e!==null){if(a.flags|=128,s=!0,e=e.updateQueue,a.updateQueue=e,yu(a,e),Cr(f,!0),f.tail===null&&f.tailMode==="hidden"&&!d.alternate&&!Nt)return Zt(a),null}else 2*Le()-f.renderingStartTime>_u&&l!==536870912&&(a.flags|=128,s=!0,Cr(f,!1),a.lanes=4194304);f.isBackwards?(d.sibling=a.child,a.child=d):(e=f.last,e!==null?e.sibling=d:a.child=d,f.last=d)}return f.tail!==null?(a=f.tail,f.rendering=a,f.tail=a.sibling,f.renderingStartTime=Le(),a.sibling=null,e=ne.current,it(ne,s?e&1|2:e&1),a):(Zt(a),null);case 22:case 23:return jn(a),wo(),s=a.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(a.flags|=8192):s&&(a.flags|=8192),s?(l&536870912)!==0&&(a.flags&128)===0&&(Zt(a),a.subtreeFlags&6&&(a.flags|=8192)):Zt(a),l=a.updateQueue,l!==null&&yu(a,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==l&&(a.flags|=2048),e!==null&&tt(Li),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Rn(ee),Zt(a),null;case 25:return null;case 30:return null}throw Error(u(156,a.tag))}function h1(e,a){switch(uo(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return Rn(ee),pe(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return Ii(a),null;case 13:if(jn(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(u(340));dr()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return tt(ne),null;case 4:return pe(),null;case 10:return Rn(a.type),null;case 22:case 23:return jn(a),wo(),e!==null&&tt(Li),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return Rn(ee),null;case 25:return null;default:return null}}function A0(e,a){switch(uo(a),a.tag){case 3:Rn(ee),pe();break;case 26:case 27:case 5:Ii(a);break;case 4:pe();break;case 13:jn(a);break;case 19:tt(ne);break;case 10:Rn(a.type);break;case 22:case 23:jn(a),wo(),e!==null&&tt(Li);break;case 24:Rn(ee)}}function Nr(e,a){try{var l=a.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&e)===e){s=void 0;var d=l.create,_=l.inst;s=d(),_.destroy=s}l=l.next}while(l!==f)}}catch(S){qt(a,a.return,S)}}function ri(e,a,l){try{var s=a.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var d=f.next;s=d;do{if((s.tag&e)===e){var _=s.inst,S=_.destroy;if(S!==void 0){_.destroy=void 0,f=a;var N=l,Y=S;try{Y()}catch(K){qt(f,N,K)}}}s=s.next}while(s!==d)}}catch(K){qt(a,a.return,K)}}function T0(e){var a=e.updateQueue;if(a!==null){var l=e.stateNode;try{hd(a,l)}catch(s){qt(e,e.return,s)}}}function E0(e,a,l){l.props=Gi(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){qt(e,a,s)}}function zr(e,a){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(f){qt(e,a,f)}}function hn(e,a){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(f){qt(e,a,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){qt(e,a,f)}else l.current=null}function O0(e){var a=e.type,l=e.memoizedProps,s=e.stateNode;try{t:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break t;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(f){qt(e,e.return,f)}}function Po(e,a,l){try{var s=e.stateNode;D1(s,e.type,l,a),s[Vt]=a}catch(f){qt(e,e.return,f)}}function M0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&di(e.type)||e.tag===4}function Jo(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||M0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&di(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wo(e,a,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(e),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=Mu));else if(s!==4&&(s===27&&di(e.type)&&(l=e.stateNode,a=null),e=e.child,e!==null))for(Wo(e,a,l),e=e.sibling;e!==null;)Wo(e,a,l),e=e.sibling}function mu(e,a,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,a?l.insertBefore(e,a):l.appendChild(e);else if(s!==4&&(s===27&&di(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(mu(e,a,l),e=e.sibling;e!==null;)mu(e,a,l),e=e.sibling}function C0(e){var a=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);ce(a,s,l),a[Gt]=e,a[Vt]=l}catch(d){qt(e,e.return,d)}}var qn=!1,Pt=!1,Io=!1,N0=typeof WeakSet=="function"?WeakSet:Set,le=null;function d1(e,a){if(e=e.containerInfo,Sc=ku,e=Gh(e),Ps(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else t:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var f=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break t}var _=0,S=-1,N=-1,Y=0,K=0,P=e,X=null;e:for(;;){for(var V;P!==l||f!==0&&P.nodeType!==3||(S=_+f),P!==d||s!==0&&P.nodeType!==3||(N=_+s),P.nodeType===3&&(_+=P.nodeValue.length),(V=P.firstChild)!==null;)X=P,P=V;for(;;){if(P===e)break e;if(X===l&&++Y===f&&(S=_),X===d&&++K===s&&(N=_),(V=P.nextSibling)!==null)break;P=X,X=P.parentNode}P=V}l=S===-1||N===-1?null:{start:S,end:N}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ac={focusedElem:e,selectionRange:l},ku=!1,le=a;le!==null;)if(a=le,e=a.child,(a.subtreeFlags&1024)!==0&&e!==null)e.return=a,le=e;else for(;le!==null;){switch(a=le,d=a.alternate,e=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,l=a,f=d.memoizedProps,d=d.memoizedState,s=l.stateNode;try{var vt=Gi(l.type,f,l.elementType===l.type);e=s.getSnapshotBeforeUpdate(vt,d),s.__reactInternalSnapshotBeforeUpdate=e}catch(pt){qt(l,l.return,pt)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,l=e.nodeType,l===9)Oc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Oc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=a.sibling,e!==null){e.return=a.return,le=e;break}le=a.return}}function z0(e,a,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:li(e,l),s&4&&Nr(5,l);break;case 1:if(li(e,l),s&4)if(e=l.stateNode,a===null)try{e.componentDidMount()}catch(_){qt(l,l.return,_)}else{var f=Gi(l.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(f,a,e.__reactInternalSnapshotBeforeUpdate)}catch(_){qt(l,l.return,_)}}s&64&&T0(l),s&512&&zr(l,l.return);break;case 3:if(li(e,l),s&64&&(e=l.updateQueue,e!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{hd(e,a)}catch(_){qt(l,l.return,_)}}break;case 27:a===null&&s&4&&C0(l);case 26:case 5:li(e,l),a===null&&s&4&&O0(l),s&512&&zr(l,l.return);break;case 12:li(e,l);break;case 13:li(e,l),s&4&&j0(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=w1.bind(null,l),B1(e,l))));break;case 22:if(s=l.memoizedState!==null||qn,!s){a=a!==null&&a.memoizedState!==null||Pt,f=qn;var d=Pt;qn=s,(Pt=a)&&!d?ui(e,l,(l.subtreeFlags&8772)!==0):li(e,l),qn=f,Pt=d}break;case 30:break;default:li(e,l)}}function R0(e){var a=e.alternate;a!==null&&(e.alternate=null,R0(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&zs(a)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Qt=null,Ee=!1;function Hn(e,a,l){for(l=l.child;l!==null;)D0(e,a,l),l=l.sibling}function D0(e,a,l){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(Sn,l)}catch{}switch(l.tag){case 26:Pt||hn(l,a),Hn(e,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Pt||hn(l,a);var s=Qt,f=Ee;di(l.type)&&(Qt=l.stateNode,Ee=!1),Hn(e,a,l),Br(l.stateNode),Qt=s,Ee=f;break;case 5:Pt||hn(l,a);case 6:if(s=Qt,f=Ee,Qt=null,Hn(e,a,l),Qt=s,Ee=f,Qt!==null)if(Ee)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(l.stateNode)}catch(d){qt(l,a,d)}else try{Qt.removeChild(l.stateNode)}catch(d){qt(l,a,d)}break;case 18:Qt!==null&&(Ee?(e=Qt,xg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Kr(e)):xg(Qt,l.stateNode));break;case 4:s=Qt,f=Ee,Qt=l.stateNode.containerInfo,Ee=!0,Hn(e,a,l),Qt=s,Ee=f;break;case 0:case 11:case 14:case 15:Pt||ri(2,l,a),Pt||ri(4,l,a),Hn(e,a,l);break;case 1:Pt||(hn(l,a),s=l.stateNode,typeof s.componentWillUnmount=="function"&&E0(l,a,s)),Hn(e,a,l);break;case 21:Hn(e,a,l);break;case 22:Pt=(s=Pt)||l.memoizedState!==null,Hn(e,a,l),Pt=s;break;default:Hn(e,a,l)}}function j0(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kr(e)}catch(l){qt(a,a.return,l)}}function g1(e){switch(e.tag){case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new N0),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new N0),a;default:throw Error(u(435,e.tag))}}function tc(e,a){var l=g1(e);a.forEach(function(s){var f=S1.bind(null,e,s);l.has(s)||(l.add(s),s.then(f,f))})}function Re(e,a){var l=a.deletions;if(l!==null)for(var s=0;s<l.length;s++){var f=l[s],d=e,_=a,S=_;t:for(;S!==null;){switch(S.tag){case 27:if(di(S.type)){Qt=S.stateNode,Ee=!1;break t}break;case 5:Qt=S.stateNode,Ee=!1;break t;case 3:case 4:Qt=S.stateNode.containerInfo,Ee=!0;break t}S=S.return}if(Qt===null)throw Error(u(160));D0(d,_,f),Qt=null,Ee=!1,d=f.alternate,d!==null&&(d.return=null),f.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)k0(a,e),a=a.sibling}var tn=null;function k0(e,a){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Re(a,e),De(e),s&4&&(ri(3,e,e.return),Nr(3,e),ri(5,e,e.return));break;case 1:Re(a,e),De(e),s&512&&(Pt||l===null||hn(l,l.return)),s&64&&qn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var f=tn;if(Re(a,e),De(e),s&512&&(Pt||l===null||hn(l,l.return)),s&4){var d=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){t:{s=e.type,l=e.memoizedProps,f=f.ownerDocument||f;e:switch(s){case"title":d=f.getElementsByTagName("title")[0],(!d||d[er]||d[Gt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=f.createElement(s),f.head.insertBefore(d,f.querySelector("head > title"))),ce(d,s,l),d[Gt]=e,ae(d),s=d;break t;case"link":var _=Cg("link","href",f).get(s+(l.href||""));if(_){for(var S=0;S<_.length;S++)if(d=_[S],d.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&d.getAttribute("rel")===(l.rel==null?null:l.rel)&&d.getAttribute("title")===(l.title==null?null:l.title)&&d.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){_.splice(S,1);break e}}d=f.createElement(s),ce(d,s,l),f.head.appendChild(d);break;case"meta":if(_=Cg("meta","content",f).get(s+(l.content||""))){for(S=0;S<_.length;S++)if(d=_[S],d.getAttribute("content")===(l.content==null?null:""+l.content)&&d.getAttribute("name")===(l.name==null?null:l.name)&&d.getAttribute("property")===(l.property==null?null:l.property)&&d.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&d.getAttribute("charset")===(l.charSet==null?null:l.charSet)){_.splice(S,1);break e}}d=f.createElement(s),ce(d,s,l),f.head.appendChild(d);break;default:throw Error(u(468,s))}d[Gt]=e,ae(d),s=d}e.stateNode=s}else Ng(f,e.type,e.stateNode);else e.stateNode=Mg(f,s,e.memoizedProps);else d!==s?(d===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):d.count--,s===null?Ng(f,e.type,e.stateNode):Mg(f,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Po(e,e.memoizedProps,l.memoizedProps)}break;case 27:Re(a,e),De(e),s&512&&(Pt||l===null||hn(l,l.return)),l!==null&&s&4&&Po(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Re(a,e),De(e),s&512&&(Pt||l===null||hn(l,l.return)),e.flags&32){f=e.stateNode;try{fa(f,"")}catch(V){qt(e,e.return,V)}}s&4&&e.stateNode!=null&&(f=e.memoizedProps,Po(e,f,l!==null?l.memoizedProps:f)),s&1024&&(Io=!0);break;case 6:if(Re(a,e),De(e),s&4){if(e.stateNode===null)throw Error(u(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch(V){qt(e,e.return,V)}}break;case 3:if(Ru=null,f=tn,tn=Nu(a.containerInfo),Re(a,e),tn=f,De(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{Kr(a.containerInfo)}catch(V){qt(e,e.return,V)}Io&&(Io=!1,U0(e));break;case 4:s=tn,tn=Nu(e.stateNode.containerInfo),Re(a,e),De(e),tn=s;break;case 12:Re(a,e),De(e);break;case 13:Re(a,e),De(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(lc=Le()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tc(e,s)));break;case 22:f=e.memoizedState!==null;var N=l!==null&&l.memoizedState!==null,Y=qn,K=Pt;if(qn=Y||f,Pt=K||N,Re(a,e),Pt=K,qn=Y,De(e),s&8192)t:for(a=e.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(l===null||N||qn||Pt||Qi(e)),l=null,a=e;;){if(a.tag===5||a.tag===26){if(l===null){N=l=a;try{if(d=N.stateNode,f)_=d.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{S=N.stateNode;var P=N.memoizedProps.style,X=P!=null&&P.hasOwnProperty("display")?P.display:null;S.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(V){qt(N,N.return,V)}}}else if(a.tag===6){if(l===null){N=a;try{N.stateNode.nodeValue=f?"":N.memoizedProps}catch(V){qt(N,N.return,V)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break t;for(;a.sibling===null;){if(a.return===null||a.return===e)break t;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,tc(e,l))));break;case 19:Re(a,e),De(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tc(e,s)));break;case 30:break;case 21:break;default:Re(a,e),De(e)}}function De(e){var a=e.flags;if(a&2){try{for(var l,s=e.return;s!==null;){if(M0(s)){l=s;break}s=s.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var f=l.stateNode,d=Jo(e);mu(e,d,f);break;case 5:var _=l.stateNode;l.flags&32&&(fa(_,""),l.flags&=-33);var S=Jo(e);mu(e,S,_);break;case 3:case 4:var N=l.stateNode.containerInfo,Y=Jo(e);Wo(e,Y,N);break;default:throw Error(u(161))}}catch(K){qt(e,e.return,K)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function U0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;U0(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function li(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)z0(e,a.alternate,a),a=a.sibling}function Qi(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:ri(4,a,a.return),Qi(a);break;case 1:hn(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&E0(a,a.return,l),Qi(a);break;case 27:Br(a.stateNode);case 26:case 5:hn(a,a.return),Qi(a);break;case 22:a.memoizedState===null&&Qi(a);break;case 30:Qi(a);break;default:Qi(a)}e=e.sibling}}function ui(e,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var s=a.alternate,f=e,d=a,_=d.flags;switch(d.tag){case 0:case 11:case 15:ui(f,d,l),Nr(4,d);break;case 1:if(ui(f,d,l),s=d,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(Y){qt(s,s.return,Y)}if(s=d,f=s.updateQueue,f!==null){var S=s.stateNode;try{var N=f.shared.hiddenCallbacks;if(N!==null)for(f.shared.hiddenCallbacks=null,f=0;f<N.length;f++)fd(N[f],S)}catch(Y){qt(s,s.return,Y)}}l&&_&64&&T0(d),zr(d,d.return);break;case 27:C0(d);case 26:case 5:ui(f,d,l),l&&s===null&&_&4&&O0(d),zr(d,d.return);break;case 12:ui(f,d,l);break;case 13:ui(f,d,l),l&&_&4&&j0(f,d);break;case 22:d.memoizedState===null&&ui(f,d,l),zr(d,d.return);break;case 30:break;default:ui(f,d,l)}a=a.sibling}}function ec(e,a){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&yr(l))}function nc(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&yr(e))}function dn(e,a,l,s){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)q0(e,a,l,s),a=a.sibling}function q0(e,a,l,s){var f=a.flags;switch(a.tag){case 0:case 11:case 15:dn(e,a,l,s),f&2048&&Nr(9,a);break;case 1:dn(e,a,l,s);break;case 3:dn(e,a,l,s),f&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&yr(e)));break;case 12:if(f&2048){dn(e,a,l,s),e=a.stateNode;try{var d=a.memoizedProps,_=d.id,S=d.onPostCommit;typeof S=="function"&&S(_,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){qt(a,a.return,N)}}else dn(e,a,l,s);break;case 13:dn(e,a,l,s);break;case 23:break;case 22:d=a.stateNode,_=a.alternate,a.memoizedState!==null?d._visibility&2?dn(e,a,l,s):Rr(e,a):d._visibility&2?dn(e,a,l,s):(d._visibility|=2,Na(e,a,l,s,(a.subtreeFlags&10256)!==0)),f&2048&&ec(_,a);break;case 24:dn(e,a,l,s),f&2048&&nc(a.alternate,a);break;default:dn(e,a,l,s)}}function Na(e,a,l,s,f){for(f=f&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var d=e,_=a,S=l,N=s,Y=_.flags;switch(_.tag){case 0:case 11:case 15:Na(d,_,S,N,f),Nr(8,_);break;case 23:break;case 22:var K=_.stateNode;_.memoizedState!==null?K._visibility&2?Na(d,_,S,N,f):Rr(d,_):(K._visibility|=2,Na(d,_,S,N,f)),f&&Y&2048&&ec(_.alternate,_);break;case 24:Na(d,_,S,N,f),f&&Y&2048&&nc(_.alternate,_);break;default:Na(d,_,S,N,f)}a=a.sibling}}function Rr(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=e,s=a,f=s.flags;switch(s.tag){case 22:Rr(l,s),f&2048&&ec(s.alternate,s);break;case 24:Rr(l,s),f&2048&&nc(s.alternate,s);break;default:Rr(l,s)}a=a.sibling}}var Dr=8192;function za(e){if(e.subtreeFlags&Dr)for(e=e.child;e!==null;)H0(e),e=e.sibling}function H0(e){switch(e.tag){case 26:za(e),e.flags&Dr&&e.memoizedState!==null&&I1(tn,e.memoizedState,e.memoizedProps);break;case 5:za(e);break;case 3:case 4:var a=tn;tn=Nu(e.stateNode.containerInfo),za(e),tn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Dr,Dr=16777216,za(e),Dr=a):za(e));break;default:za(e)}}function L0(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function jr(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var s=a[l];le=s,G0(s,e)}L0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)B0(e),e=e.sibling}function B0(e){switch(e.tag){case 0:case 11:case 15:jr(e),e.flags&2048&&ri(9,e,e.return);break;case 3:jr(e);break;case 12:jr(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,vu(e)):jr(e);break;default:jr(e)}}function vu(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var s=a[l];le=s,G0(s,e)}L0(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:ri(8,a,a.return),vu(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,vu(a));break;default:vu(a)}e=e.sibling}}function G0(e,a){for(;le!==null;){var l=le;switch(l.tag){case 0:case 11:case 15:ri(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:yr(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,le=s;else t:for(l=e;le!==null;){s=le;var f=s.sibling,d=s.return;if(R0(s),s===l){le=null;break t}if(f!==null){f.return=d,le=f;break t}le=d}}}var p1={getCacheForType:function(e){var a=he(ee),l=a.data.get(e);return l===void 0&&(l=e(),a.data.set(e,l)),l}},y1=typeof WeakMap=="function"?WeakMap:Map,zt=0,Lt=null,Tt=null,Ot=0,Rt=0,je=null,si=!1,Ra=!1,ic=!1,Ln=0,Kt=0,oi=0,Yi=0,ac=0,$e=0,Da=0,kr=null,Oe=null,rc=!1,lc=0,_u=1/0,bu=null,ci=null,oe=0,fi=null,ja=null,ka=0,uc=0,sc=null,Q0=null,Ur=0,oc=null;function ke(){if((zt&2)!==0&&Ot!==0)return Ot&-Ot;if(z.T!==null){var e=wa;return e!==0?e:yc()}return Oi()}function Y0(){$e===0&&($e=(Ot&536870912)===0||Nt?Nl():536870912);var e=Ze.current;return e!==null&&(e.flags|=32),$e}function Ue(e,a,l){(e===Lt&&(Rt===2||Rt===9)||e.cancelPendingCommit!==null)&&(Ua(e,0),hi(e,Ot,$e,!1)),Tn(e,l),((zt&2)===0||e!==Lt)&&(e===Lt&&((zt&2)===0&&(Yi|=l),Kt===4&&hi(e,Ot,$e,!1)),gn(e))}function X0(e,a,l){if((zt&6)!==0)throw Error(u(327));var s=!l&&(a&124)===0&&(a&e.expiredLanes)===0||Ei(e,a),f=s?_1(e,a):hc(e,a,!0),d=s;do{if(f===0){Ra&&!s&&hi(e,a,0,!1);break}else{if(l=e.current.alternate,d&&!m1(l)){f=hc(e,a,!1),d=!1;continue}if(f===2){if(d=a,e.errorRecoveryDisabledLanes&d)var _=0;else _=e.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){a=_;t:{var S=e;f=kr;var N=S.current.memoizedState.isDehydrated;if(N&&(Ua(S,_).flags|=256),_=hc(S,_,!1),_!==2){if(ic&&!N){S.errorRecoveryDisabledLanes|=d,Yi|=d,f=4;break t}d=Oe,Oe=f,d!==null&&(Oe===null?Oe=d:Oe.push.apply(Oe,d))}f=_}if(d=!1,f!==2)continue}}if(f===1){Ua(e,0),hi(e,a,0,!0);break}t:{switch(s=e,d=f,d){case 0:case 1:throw Error(u(345));case 4:if((a&4194048)!==a)break;case 6:hi(s,a,$e,!si);break t;case 2:Oe=null;break;case 3:case 5:break;default:throw Error(u(329))}if((a&62914560)===a&&(f=lc+300-Le(),10<f)){if(hi(s,a,$e,!si),ia(s,0,!0)!==0)break t;s.timeoutHandle=_g(V0.bind(null,s,l,Oe,bu,rc,a,$e,Yi,Da,si,d,2,-0,0),f);break t}V0(s,l,Oe,bu,rc,a,$e,Yi,Da,si,d,0,-0,0)}}break}while(!0);gn(e)}function V0(e,a,l,s,f,d,_,S,N,Y,K,P,X,V){if(e.timeoutHandle=-1,P=a.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(Yr={stylesheets:null,count:0,unsuspend:W1},H0(a),P=t_(),P!==null)){e.cancelPendingCommit=P(W0.bind(null,e,a,d,l,s,f,_,S,N,K,1,X,V)),hi(e,d,_,!Y);return}W0(e,a,d,l,s,f,_,S,N)}function m1(e){for(var a=e;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var f=l[s],d=f.getSnapshot;f=f.value;try{if(!Ne(d(),f))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function hi(e,a,l,s){a&=~ac,a&=~Yi,e.suspendedLanes|=a,e.pingedLanes&=~a,s&&(e.warmLanes|=a),s=e.expirationTimes;for(var f=a;0<f;){var d=31-me(f),_=1<<d;s[d]=-1,f&=~_}l!==0&&_t(e,l,a)}function xu(){return(zt&6)===0?(qr(0),!1):!0}function cc(){if(Tt!==null){if(Rt===0)var e=Tt.return;else e=Tt,zn=qi=null,Oo(e),Ma=null,Or=0,e=Tt;for(;e!==null;)A0(e.alternate,e),e=e.return;Tt=null}}function Ua(e,a){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,k1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cc(),Lt=e,Tt=l=Mn(e.current,null),Ot=a,Rt=0,je=null,si=!1,Ra=Ei(e,a),ic=!1,Da=$e=ac=Yi=oi=Kt=0,Oe=kr=null,rc=!1,(a&8)!==0&&(a|=a&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=a;0<s;){var f=31-me(s),d=1<<f;a|=e[f],s&=~d}return Ln=a,Yl(),l}function Z0(e,a){wt=null,z.H=su,a===vr||a===Wl?(a=od(),Rt=3):a===ld?(a=od(),Rt=4):Rt=a===c0?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,je=a,Tt===null&&(Kt=1,du(e,Qe(a,e.current)))}function $0(){var e=z.H;return z.H=su,e===null?su:e}function K0(){var e=z.A;return z.A=p1,e}function fc(){Kt=4,si||(Ot&4194048)!==Ot&&Ze.current!==null||(Ra=!0),(oi&134217727)===0&&(Yi&134217727)===0||Lt===null||hi(Lt,Ot,$e,!1)}function hc(e,a,l){var s=zt;zt|=2;var f=$0(),d=K0();(Lt!==e||Ot!==a)&&(bu=null,Ua(e,a)),a=!1;var _=Kt;t:do try{if(Rt!==0&&Tt!==null){var S=Tt,N=je;switch(Rt){case 8:cc(),_=6;break t;case 3:case 2:case 9:case 6:Ze.current===null&&(a=!0);var Y=Rt;if(Rt=0,je=null,qa(e,S,N,Y),l&&Ra){_=0;break t}break;default:Y=Rt,Rt=0,je=null,qa(e,S,N,Y)}}v1(),_=Kt;break}catch(K){Z0(e,K)}while(!0);return a&&e.shellSuspendCounter++,zn=qi=null,zt=s,z.H=f,z.A=d,Tt===null&&(Lt=null,Ot=0,Yl()),_}function v1(){for(;Tt!==null;)F0(Tt)}function _1(e,a){var l=zt;zt|=2;var s=$0(),f=K0();Lt!==e||Ot!==a?(bu=null,_u=Le()+500,Ua(e,a)):Ra=Ei(e,a);t:do try{if(Rt!==0&&Tt!==null){a=Tt;var d=je;e:switch(Rt){case 1:Rt=0,je=null,qa(e,a,d,1);break;case 2:case 9:if(ud(d)){Rt=0,je=null,P0(a);break}a=function(){Rt!==2&&Rt!==9||Lt!==e||(Rt=7),gn(e)},d.then(a,a);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:ud(d)?(Rt=0,je=null,P0(a)):(Rt=0,je=null,qa(e,a,d,7));break;case 5:var _=null;switch(Tt.tag){case 26:_=Tt.memoizedState;case 5:case 27:var S=Tt;if(!_||zg(_)){Rt=0,je=null;var N=S.sibling;if(N!==null)Tt=N;else{var Y=S.return;Y!==null?(Tt=Y,wu(Y)):Tt=null}break e}}Rt=0,je=null,qa(e,a,d,5);break;case 6:Rt=0,je=null,qa(e,a,d,6);break;case 8:cc(),Kt=6;break t;default:throw Error(u(462))}}b1();break}catch(K){Z0(e,K)}while(!0);return zn=qi=null,z.H=s,z.A=f,zt=l,Tt!==null?0:(Lt=null,Ot=0,Yl(),Kt)}function b1(){for(;Tt!==null&&!Ss();)F0(Tt)}function F0(e){var a=w0(e.alternate,e,Ln);e.memoizedProps=e.pendingProps,a===null?wu(e):Tt=a}function P0(e){var a=e,l=a.alternate;switch(a.tag){case 15:case 0:a=y0(l,a,a.pendingProps,a.type,void 0,Ot);break;case 11:a=y0(l,a,a.pendingProps,a.type.render,a.ref,Ot);break;case 5:Oo(a);default:A0(l,a),a=Tt=Jh(a,Ln),a=w0(l,a,Ln)}e.memoizedProps=e.pendingProps,a===null?wu(e):Tt=a}function qa(e,a,l,s){zn=qi=null,Oo(a),Ma=null,Or=0;var f=a.return;try{if(o1(e,f,a,l,Ot)){Kt=1,du(e,Qe(l,e.current)),Tt=null;return}}catch(d){if(f!==null)throw Tt=f,d;Kt=1,du(e,Qe(l,e.current)),Tt=null;return}a.flags&32768?(Nt||s===1?e=!0:Ra||(Ot&536870912)!==0?e=!1:(si=e=!0,(s===2||s===9||s===3||s===6)&&(s=Ze.current,s!==null&&s.tag===13&&(s.flags|=16384))),J0(a,e)):wu(a)}function wu(e){var a=e;do{if((a.flags&32768)!==0){J0(a,si);return}e=a.return;var l=f1(a.alternate,a,Ln);if(l!==null){Tt=l;return}if(a=a.sibling,a!==null){Tt=a;return}Tt=a=e}while(a!==null);Kt===0&&(Kt=5)}function J0(e,a){do{var l=h1(e.alternate,e);if(l!==null){l.flags&=32767,Tt=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(e=e.sibling,e!==null)){Tt=e;return}Tt=e=l}while(e!==null);Kt=6,Tt=null}function W0(e,a,l,s,f,d,_,S,N){e.cancelPendingCommit=null;do Su();while(oe!==0);if((zt&6)!==0)throw Error(u(327));if(a!==null){if(a===e.current)throw Error(u(177));if(d=a.lanes|a.childLanes,d|=eo,at(e,l,d,_,S,N),e===Lt&&(Tt=Lt=null,Ot=0),ja=a,fi=e,ka=l,uc=d,sc=f,Q0=s,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,A1(Ai,function(){return ig(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||s){s=z.T,z.T=null,f=$.p,$.p=2,_=zt,zt|=4;try{d1(e,a,l)}finally{zt=_,$.p=f,z.T=s}}oe=1,I0(),tg(),eg()}}function I0(){if(oe===1){oe=0;var e=fi,a=ja,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var s=$.p;$.p=2;var f=zt;zt|=4;try{k0(a,e);var d=Ac,_=Gh(e.containerInfo),S=d.focusedElem,N=d.selectionRange;if(_!==S&&S&&S.ownerDocument&&Bh(S.ownerDocument.documentElement,S)){if(N!==null&&Ps(S)){var Y=N.start,K=N.end;if(K===void 0&&(K=Y),"selectionStart"in S)S.selectionStart=Y,S.selectionEnd=Math.min(K,S.value.length);else{var P=S.ownerDocument||document,X=P&&P.defaultView||window;if(X.getSelection){var V=X.getSelection(),vt=S.textContent.length,pt=Math.min(N.start,vt),Ut=N.end===void 0?pt:Math.min(N.end,vt);!V.extend&&pt>Ut&&(_=Ut,Ut=pt,pt=_);var L=Lh(S,pt),j=Lh(S,Ut);if(L&&j&&(V.rangeCount!==1||V.anchorNode!==L.node||V.anchorOffset!==L.offset||V.focusNode!==j.node||V.focusOffset!==j.offset)){var Q=P.createRange();Q.setStart(L.node,L.offset),V.removeAllRanges(),pt>Ut?(V.addRange(Q),V.extend(j.node,j.offset)):(Q.setEnd(j.node,j.offset),V.addRange(Q))}}}}for(P=[],V=S;V=V.parentNode;)V.nodeType===1&&P.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<P.length;S++){var F=P[S];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}ku=!!Sc,Ac=Sc=null}finally{zt=f,$.p=s,z.T=l}}e.current=a,oe=2}}function tg(){if(oe===2){oe=0;var e=fi,a=ja,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var s=$.p;$.p=2;var f=zt;zt|=4;try{z0(e,a.alternate,a)}finally{zt=f,$.p=s,z.T=l}}oe=3}}function eg(){if(oe===4||oe===3){oe=0,As();var e=fi,a=ja,l=ka,s=Q0;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?oe=5:(oe=0,ja=fi=null,ng(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(ci=null),Se(l),a=a.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(Sn,a,void 0,(a.current.flags&128)===128)}catch{}if(s!==null){a=z.T,f=$.p,$.p=2,z.T=null;try{for(var d=e.onRecoverableError,_=0;_<s.length;_++){var S=s[_];d(S.value,{componentStack:S.stack})}}finally{z.T=a,$.p=f}}(ka&3)!==0&&Su(),gn(e),f=e.pendingLanes,(l&4194090)!==0&&(f&42)!==0?e===oc?Ur++:(Ur=0,oc=e):Ur=0,qr(0)}}function ng(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,yr(a)))}function Su(e){return I0(),tg(),eg(),ig()}function ig(){if(oe!==5)return!1;var e=fi,a=uc;uc=0;var l=Se(ka),s=z.T,f=$.p;try{$.p=32>l?32:l,z.T=null,l=sc,sc=null;var d=fi,_=ka;if(oe=0,ja=fi=null,ka=0,(zt&6)!==0)throw Error(u(331));var S=zt;if(zt|=4,B0(d.current),q0(d,d.current,_,l),zt=S,qr(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(Sn,d)}catch{}return!0}finally{$.p=f,z.T=s,ng(e,a)}}function ag(e,a,l){a=Qe(l,a),a=Go(e.stateNode,a,2),e=ei(e,a,2),e!==null&&(Tn(e,2),gn(e))}function qt(e,a,l){if(e.tag===3)ag(e,e,l);else for(;a!==null;){if(a.tag===3){ag(a,e,l);break}else if(a.tag===1){var s=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ci===null||!ci.has(s))){e=Qe(l,e),l=s0(2),s=ei(a,l,2),s!==null&&(o0(l,s,a,e),Tn(s,2),gn(s));break}}a=a.return}}function dc(e,a,l){var s=e.pingCache;if(s===null){s=e.pingCache=new y1;var f=new Set;s.set(a,f)}else f=s.get(a),f===void 0&&(f=new Set,s.set(a,f));f.has(l)||(ic=!0,f.add(l),e=x1.bind(null,e,a,l),a.then(e,e))}function x1(e,a,l){var s=e.pingCache;s!==null&&s.delete(a),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Lt===e&&(Ot&l)===l&&(Kt===4||Kt===3&&(Ot&62914560)===Ot&&300>Le()-lc?(zt&2)===0&&Ua(e,0):ac|=l,Da===Ot&&(Da=0)),gn(e)}function rg(e,a){a===0&&(a=zl()),e=va(e,a),e!==null&&(Tn(e,a),gn(e))}function w1(e){var a=e.memoizedState,l=0;a!==null&&(l=a.retryLane),rg(e,l)}function S1(e,a){var l=0;switch(e.tag){case 13:var s=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(u(314))}s!==null&&s.delete(a),rg(e,l)}function A1(e,a){return ea(e,a)}var Au=null,Ha=null,gc=!1,Tu=!1,pc=!1,Xi=0;function gn(e){e!==Ha&&e.next===null&&(Ha===null?Au=Ha=e:Ha=Ha.next=e),Tu=!0,gc||(gc=!0,E1())}function qr(e,a){if(!pc&&Tu){pc=!0;do for(var l=!1,s=Au;s!==null;){if(e!==0){var f=s.pendingLanes;if(f===0)var d=0;else{var _=s.suspendedLanes,S=s.pingedLanes;d=(1<<31-me(42|e)+1)-1,d&=f&~(_&~S),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(l=!0,og(s,d))}else d=Ot,d=ia(s,s===Lt?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(d&3)===0||Ei(s,d)||(l=!0,og(s,d));s=s.next}while(l);pc=!1}}function T1(){lg()}function lg(){Tu=gc=!1;var e=0;Xi!==0&&(j1()&&(e=Xi),Xi=0);for(var a=Le(),l=null,s=Au;s!==null;){var f=s.next,d=ug(s,a);d===0?(s.next=null,l===null?Au=f:l.next=f,f===null&&(Ha=l)):(l=s,(e!==0||(d&3)!==0)&&(Tu=!0)),s=f}qr(e)}function ug(e,a){for(var l=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var _=31-me(d),S=1<<_,N=f[_];N===-1?((S&l)===0||(S&s)!==0)&&(f[_]=Cs(S,a)):N<=a&&(e.expiredLanes|=S),d&=~S}if(a=Lt,l=Ot,l=ia(e,e===a?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===a&&(Rt===2||Rt===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Ia(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ei(e,l)){if(a=l&-l,a===e.callbackPriority)return a;switch(s!==null&&Ia(s),Se(l)){case 2:case 8:l=Si;break;case 32:l=Ai;break;case 268435456:l=wn;break;default:l=Ai}return s=sg.bind(null,e),l=ea(l,s),e.callbackPriority=a,e.callbackNode=l,a}return s!==null&&s!==null&&Ia(s),e.callbackPriority=2,e.callbackNode=null,2}function sg(e,a){if(oe!==0&&oe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Su()&&e.callbackNode!==l)return null;var s=Ot;return s=ia(e,e===Lt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(X0(e,s,a),ug(e,Le()),e.callbackNode!=null&&e.callbackNode===l?sg.bind(null,e):null)}function og(e,a){if(Su())return null;X0(e,a,!0)}function E1(){U1(function(){(zt&6)!==0?ea(xn,T1):lg()})}function yc(){return Xi===0&&(Xi=Nl()),Xi}function cg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ul(""+e)}function fg(e,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,e.id&&l.setAttribute("form",e.id),a.parentNode.insertBefore(l,a),e=new FormData(e),l.parentNode.removeChild(l),e}function O1(e,a,l,s,f){if(a==="submit"&&l&&l.stateNode===f){var d=cg((f[Vt]||null).action),_=s.submitter;_&&(a=(a=_[Vt]||null)?cg(a.formAction):_.getAttribute("formAction"),a!==null&&(d=a,_=null));var S=new Bl("action","action",null,s,f);e.push({event:S,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Xi!==0){var N=_?fg(f,_):new FormData(f);Uo(l,{pending:!0,data:N,method:f.method,action:d},null,N)}}else typeof d=="function"&&(S.preventDefault(),N=_?fg(f,_):new FormData(f),Uo(l,{pending:!0,data:N,method:f.method,action:d},d,N))},currentTarget:f}]})}}for(var mc=0;mc<to.length;mc++){var vc=to[mc],M1=vc.toLowerCase(),C1=vc[0].toUpperCase()+vc.slice(1);Ie(M1,"on"+C1)}Ie(Xh,"onAnimationEnd"),Ie(Vh,"onAnimationIteration"),Ie(Zh,"onAnimationStart"),Ie("dblclick","onDoubleClick"),Ie("focusin","onFocus"),Ie("focusout","onBlur"),Ie(Zv,"onTransitionRun"),Ie($v,"onTransitionStart"),Ie(Kv,"onTransitionCancel"),Ie($h,"onTransitionEnd"),sa("onMouseEnter",["mouseout","mouseover"]),sa("onMouseLeave",["mouseout","mouseover"]),sa("onPointerEnter",["pointerout","pointerover"]),sa("onPointerLeave",["pointerout","pointerover"]),Mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hr="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(" "),N1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hr));function hg(e,a){a=(a&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],f=s.event;s=s.listeners;t:{var d=void 0;if(a)for(var _=s.length-1;0<=_;_--){var S=s[_],N=S.instance,Y=S.currentTarget;if(S=S.listener,N!==d&&f.isPropagationStopped())break t;d=S,f.currentTarget=Y;try{d(f)}catch(K){hu(K)}f.currentTarget=null,d=N}else for(_=0;_<s.length;_++){if(S=s[_],N=S.instance,Y=S.currentTarget,S=S.listener,N!==d&&f.isPropagationStopped())break t;d=S,f.currentTarget=Y;try{d(f)}catch(K){hu(K)}f.currentTarget=null,d=N}}}}function Et(e,a){var l=a[Ns];l===void 0&&(l=a[Ns]=new Set);var s=e+"__bubble";l.has(s)||(dg(a,e,2,!1),l.add(s))}function _c(e,a,l){var s=0;a&&(s|=4),dg(l,e,s,a)}var Eu="_reactListening"+Math.random().toString(36).slice(2);function bc(e){if(!e[Eu]){e[Eu]=!0,lh.forEach(function(l){l!=="selectionchange"&&(N1.has(l)||_c(l,!1,e),_c(l,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[Eu]||(a[Eu]=!0,_c("selectionchange",!1,a))}}function dg(e,a,l,s){switch(qg(a)){case 2:var f=i_;break;case 8:f=a_;break;default:f=jc}l=f.bind(null,a,l,e),f=void 0,!Gs||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),s?f!==void 0?e.addEventListener(a,l,{capture:!0,passive:f}):e.addEventListener(a,l,!0):f!==void 0?e.addEventListener(a,l,{passive:f}):e.addEventListener(a,l,!1)}function xc(e,a,l,s,f){var d=s;if((a&1)===0&&(a&2)===0&&s!==null)t:for(;;){if(s===null)return;var _=s.tag;if(_===3||_===4){var S=s.stateNode.containerInfo;if(S===f)break;if(_===4)for(_=s.return;_!==null;){var N=_.tag;if((N===3||N===4)&&_.stateNode.containerInfo===f)return;_=_.return}for(;S!==null;){if(_=ra(S),_===null)return;if(N=_.tag,N===5||N===6||N===26||N===27){s=d=_;continue t}S=S.parentNode}}s=s.return}bh(function(){var Y=d,K=Ls(l),P=[];t:{var X=Kh.get(e);if(X!==void 0){var V=Bl,vt=e;switch(e){case"keypress":if(Hl(l)===0)break t;case"keydown":case"keyup":V=Av;break;case"focusin":vt="focus",V=Vs;break;case"focusout":vt="blur",V=Vs;break;case"beforeblur":case"afterblur":V=Vs;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=Sh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=hv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=Ov;break;case Xh:case Vh:case Zh:V=pv;break;case $h:V=Cv;break;case"scroll":case"scrollend":V=cv;break;case"wheel":V=zv;break;case"copy":case"cut":case"paste":V=mv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Th;break;case"toggle":case"beforetoggle":V=Dv}var pt=(a&4)!==0,Ut=!pt&&(e==="scroll"||e==="scrollend"),L=pt?X!==null?X+"Capture":null:X;pt=[];for(var j=Y,Q;j!==null;){var F=j;if(Q=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||Q===null||L===null||(F=ir(j,L),F!=null&&pt.push(Lr(j,F,Q))),Ut)break;j=j.return}0<pt.length&&(X=new V(X,vt,null,l,K),P.push({event:X,listeners:pt}))}}if((a&7)===0){t:{if(X=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",X&&l!==Hs&&(vt=l.relatedTarget||l.fromElement)&&(ra(vt)||vt[aa]))break t;if((V||X)&&(X=K.window===K?K:(X=K.ownerDocument)?X.defaultView||X.parentWindow:window,V?(vt=l.relatedTarget||l.toElement,V=Y,vt=vt?ra(vt):null,vt!==null&&(Ut=c(vt),pt=vt.tag,vt!==Ut||pt!==5&&pt!==27&&pt!==6)&&(vt=null)):(V=null,vt=Y),V!==vt)){if(pt=Sh,F="onMouseLeave",L="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(pt=Th,F="onPointerLeave",L="onPointerEnter",j="pointer"),Ut=V==null?X:nr(V),Q=vt==null?X:nr(vt),X=new pt(F,j+"leave",V,l,K),X.target=Ut,X.relatedTarget=Q,F=null,ra(K)===Y&&(pt=new pt(L,j+"enter",vt,l,K),pt.target=Q,pt.relatedTarget=Ut,F=pt),Ut=F,V&&vt)e:{for(pt=V,L=vt,j=0,Q=pt;Q;Q=La(Q))j++;for(Q=0,F=L;F;F=La(F))Q++;for(;0<j-Q;)pt=La(pt),j--;for(;0<Q-j;)L=La(L),Q--;for(;j--;){if(pt===L||L!==null&&pt===L.alternate)break e;pt=La(pt),L=La(L)}pt=null}else pt=null;V!==null&&gg(P,X,V,pt,!1),vt!==null&&Ut!==null&&gg(P,Ut,vt,pt,!0)}}t:{if(X=Y?nr(Y):window,V=X.nodeName&&X.nodeName.toLowerCase(),V==="select"||V==="input"&&X.type==="file")var ct=Dh;else if(zh(X))if(jh)ct=Yv;else{ct=Gv;var St=Bv}else V=X.nodeName,!V||V.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?Y&&qs(Y.elementType)&&(ct=Dh):ct=Qv;if(ct&&(ct=ct(e,Y))){Rh(P,ct,l,K);break t}St&&St(e,X,Y),e==="focusout"&&Y&&X.type==="number"&&Y.memoizedProps.value!=null&&Us(X,"number",X.value)}switch(St=Y?nr(Y):window,e){case"focusin":(zh(St)||St.contentEditable==="true")&&(pa=St,Js=Y,fr=null);break;case"focusout":fr=Js=pa=null;break;case"mousedown":Ws=!0;break;case"contextmenu":case"mouseup":case"dragend":Ws=!1,Qh(P,l,K);break;case"selectionchange":if(Vv)break;case"keydown":case"keyup":Qh(P,l,K)}var dt;if($s)t:{switch(e){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else ga?Ch(e,l)&&(mt="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(mt="onCompositionStart");mt&&(Eh&&l.locale!=="ko"&&(ga||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&ga&&(dt=xh()):(Jn=K,Qs="value"in Jn?Jn.value:Jn.textContent,ga=!0)),St=Ou(Y,mt),0<St.length&&(mt=new Ah(mt,e,null,l,K),P.push({event:mt,listeners:St}),dt?mt.data=dt:(dt=Nh(l),dt!==null&&(mt.data=dt)))),(dt=kv?Uv(e,l):qv(e,l))&&(mt=Ou(Y,"onBeforeInput"),0<mt.length&&(St=new Ah("onBeforeInput","beforeinput",null,l,K),P.push({event:St,listeners:mt}),St.data=dt)),O1(P,e,Y,l,K)}hg(P,a)})}function Lr(e,a,l){return{instance:e,listener:a,currentTarget:l}}function Ou(e,a){for(var l=a+"Capture",s=[];e!==null;){var f=e,d=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||d===null||(f=ir(e,l),f!=null&&s.unshift(Lr(e,f,d)),f=ir(e,a),f!=null&&s.push(Lr(e,f,d))),e.tag===3)return s;e=e.return}return[]}function La(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function gg(e,a,l,s,f){for(var d=a._reactName,_=[];l!==null&&l!==s;){var S=l,N=S.alternate,Y=S.stateNode;if(S=S.tag,N!==null&&N===s)break;S!==5&&S!==26&&S!==27||Y===null||(N=Y,f?(Y=ir(l,d),Y!=null&&_.unshift(Lr(l,Y,N))):f||(Y=ir(l,d),Y!=null&&_.push(Lr(l,Y,N)))),l=l.return}_.length!==0&&e.push({event:a,listeners:_})}var z1=/\r\n?/g,R1=/\u0000|\uFFFD/g;function pg(e){return(typeof e=="string"?e:""+e).replace(z1,`
|
|
49
|
+
`).replace(R1,"")}function yg(e,a){return a=pg(a),pg(e)===a}function Mu(){}function kt(e,a,l,s,f,d){switch(l){case"children":typeof s=="string"?a==="body"||a==="textarea"&&s===""||fa(e,s):(typeof s=="number"||typeof s=="bigint")&&a!=="body"&&fa(e,""+s);break;case"className":Dl(e,"class",s);break;case"tabIndex":Dl(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Dl(e,l,s);break;case"style":vh(e,s,d);break;case"data":if(a!=="object"){Dl(e,"data",s);break}case"src":case"href":if(s===""&&(a!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Ul(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(l==="formAction"?(a!=="input"&&kt(e,a,"name",f.name,f,null),kt(e,a,"formEncType",f.formEncType,f,null),kt(e,a,"formMethod",f.formMethod,f,null),kt(e,a,"formTarget",f.formTarget,f,null)):(kt(e,a,"encType",f.encType,f,null),kt(e,a,"method",f.method,f,null),kt(e,a,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Ul(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=Mu);break;case"onScroll":s!=null&&Et("scroll",e);break;case"onScrollEnd":s!=null&&Et("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(u(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=Ul(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":Et("beforetoggle",e),Et("toggle",e),Rl(e,"popover",s);break;case"xlinkActuate":En(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":En(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":En(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":En(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":En(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":En(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":En(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":En(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":En(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Rl(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=sv.get(l)||l,Rl(e,l,s))}}function wc(e,a,l,s,f,d){switch(l){case"style":vh(e,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(u(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof s=="string"?fa(e,s):(typeof s=="number"||typeof s=="bigint")&&fa(e,""+s);break;case"onScroll":s!=null&&Et("scroll",e);break;case"onScrollEnd":s!=null&&Et("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Mu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uh.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),a=l.slice(2,f?l.length-7:void 0),d=e[Vt]||null,d=d!=null?d[l]:null,typeof d=="function"&&e.removeEventListener(a,d,f),typeof s=="function")){typeof d!="function"&&d!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(a,s,f);break t}l in e?e[l]=s:s===!0?e.setAttribute(l,""):Rl(e,l,s)}}}function ce(e,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Et("error",e),Et("load",e);var s=!1,f=!1,d;for(d in l)if(l.hasOwnProperty(d)){var _=l[d];if(_!=null)switch(d){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,a));default:kt(e,a,d,_,l,null)}}f&&kt(e,a,"srcSet",l.srcSet,l,null),s&&kt(e,a,"src",l.src,l,null);return;case"input":Et("invalid",e);var S=d=_=f=null,N=null,Y=null;for(s in l)if(l.hasOwnProperty(s)){var K=l[s];if(K!=null)switch(s){case"name":f=K;break;case"type":_=K;break;case"checked":N=K;break;case"defaultChecked":Y=K;break;case"value":d=K;break;case"defaultValue":S=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(u(137,a));break;default:kt(e,a,s,K,l,null)}}gh(e,d,S,N,Y,_,f,!1),jl(e);return;case"select":Et("invalid",e),s=_=d=null;for(f in l)if(l.hasOwnProperty(f)&&(S=l[f],S!=null))switch(f){case"value":d=S;break;case"defaultValue":_=S;break;case"multiple":s=S;default:kt(e,a,f,S,l,null)}a=d,l=_,e.multiple=!!s,a!=null?ca(e,!!s,a,!1):l!=null&&ca(e,!!s,l,!0);return;case"textarea":Et("invalid",e),d=f=s=null;for(_ in l)if(l.hasOwnProperty(_)&&(S=l[_],S!=null))switch(_){case"value":s=S;break;case"defaultValue":f=S;break;case"children":d=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:kt(e,a,_,S,l,null)}yh(e,s,f,d),jl(e);return;case"option":for(N in l)if(l.hasOwnProperty(N)&&(s=l[N],s!=null))switch(N){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:kt(e,a,N,s,l,null)}return;case"dialog":Et("beforetoggle",e),Et("toggle",e),Et("cancel",e),Et("close",e);break;case"iframe":case"object":Et("load",e);break;case"video":case"audio":for(s=0;s<Hr.length;s++)Et(Hr[s],e);break;case"image":Et("error",e),Et("load",e);break;case"details":Et("toggle",e);break;case"embed":case"source":case"link":Et("error",e),Et("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in l)if(l.hasOwnProperty(Y)&&(s=l[Y],s!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,a));default:kt(e,a,Y,s,l,null)}return;default:if(qs(a)){for(K in l)l.hasOwnProperty(K)&&(s=l[K],s!==void 0&&wc(e,a,K,s,l,void 0));return}}for(S in l)l.hasOwnProperty(S)&&(s=l[S],s!=null&&kt(e,a,S,s,l,null))}function D1(e,a,l,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,d=null,_=null,S=null,N=null,Y=null,K=null;for(V in l){var P=l[V];if(l.hasOwnProperty(V)&&P!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":N=P;default:s.hasOwnProperty(V)||kt(e,a,V,null,s,P)}}for(var X in s){var V=s[X];if(P=l[X],s.hasOwnProperty(X)&&(V!=null||P!=null))switch(X){case"type":d=V;break;case"name":f=V;break;case"checked":Y=V;break;case"defaultChecked":K=V;break;case"value":_=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,a));break;default:V!==P&&kt(e,a,X,V,s,P)}}ks(e,_,S,N,Y,K,d,f);return;case"select":V=_=S=X=null;for(d in l)if(N=l[d],l.hasOwnProperty(d)&&N!=null)switch(d){case"value":break;case"multiple":V=N;default:s.hasOwnProperty(d)||kt(e,a,d,null,s,N)}for(f in s)if(d=s[f],N=l[f],s.hasOwnProperty(f)&&(d!=null||N!=null))switch(f){case"value":X=d;break;case"defaultValue":S=d;break;case"multiple":_=d;default:d!==N&&kt(e,a,f,d,s,N)}a=S,l=_,s=V,X!=null?ca(e,!!l,X,!1):!!s!=!!l&&(a!=null?ca(e,!!l,a,!0):ca(e,!!l,l?[]:"",!1));return;case"textarea":V=X=null;for(S in l)if(f=l[S],l.hasOwnProperty(S)&&f!=null&&!s.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:kt(e,a,S,null,s,f)}for(_ in s)if(f=s[_],d=l[_],s.hasOwnProperty(_)&&(f!=null||d!=null))switch(_){case"value":X=f;break;case"defaultValue":V=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(u(91));break;default:f!==d&&kt(e,a,_,f,s,d)}ph(e,X,V);return;case"option":for(var vt in l)if(X=l[vt],l.hasOwnProperty(vt)&&X!=null&&!s.hasOwnProperty(vt))switch(vt){case"selected":e.selected=!1;break;default:kt(e,a,vt,null,s,X)}for(N in s)if(X=s[N],V=l[N],s.hasOwnProperty(N)&&X!==V&&(X!=null||V!=null))switch(N){case"selected":e.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:kt(e,a,N,X,s,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var pt in l)X=l[pt],l.hasOwnProperty(pt)&&X!=null&&!s.hasOwnProperty(pt)&&kt(e,a,pt,null,s,X);for(Y in s)if(X=s[Y],V=l[Y],s.hasOwnProperty(Y)&&X!==V&&(X!=null||V!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(u(137,a));break;default:kt(e,a,Y,X,s,V)}return;default:if(qs(a)){for(var Ut in l)X=l[Ut],l.hasOwnProperty(Ut)&&X!==void 0&&!s.hasOwnProperty(Ut)&&wc(e,a,Ut,void 0,s,X);for(K in s)X=s[K],V=l[K],!s.hasOwnProperty(K)||X===V||X===void 0&&V===void 0||wc(e,a,K,X,s,V);return}}for(var L in l)X=l[L],l.hasOwnProperty(L)&&X!=null&&!s.hasOwnProperty(L)&&kt(e,a,L,null,s,X);for(P in s)X=s[P],V=l[P],!s.hasOwnProperty(P)||X===V||X==null&&V==null||kt(e,a,P,X,s,V)}var Sc=null,Ac=null;function Cu(e){return e.nodeType===9?e:e.ownerDocument}function mg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vg(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function Tc(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Ec=null;function j1(){var e=window.event;return e&&e.type==="popstate"?e===Ec?!1:(Ec=e,!0):(Ec=null,!1)}var _g=typeof setTimeout=="function"?setTimeout:void 0,k1=typeof clearTimeout=="function"?clearTimeout:void 0,bg=typeof Promise=="function"?Promise:void 0,U1=typeof queueMicrotask=="function"?queueMicrotask:typeof bg<"u"?function(e){return bg.resolve(null).then(e).catch(q1)}:_g;function q1(e){setTimeout(function(){throw e})}function di(e){return e==="head"}function xg(e,a){var l=a,s=0,f=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(0<s&&8>s){l=s;var _=e.ownerDocument;if(l&1&&Br(_.documentElement),l&2&&Br(_.body),l&4)for(l=_.head,Br(l),_=l.firstChild;_;){var S=_.nextSibling,N=_.nodeName;_[er]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&_.rel.toLowerCase()==="stylesheet"||l.removeChild(_),_=S}}if(f===0){e.removeChild(d),Kr(a);return}f--}else l==="$"||l==="$?"||l==="$!"?f++:s=l.charCodeAt(0)-48;else s=0;l=d}while(l);Kr(a)}function Oc(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Oc(l),zs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function H1(e,a,l,s){for(;e.nodeType===1;){var f=l;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[er])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var d=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=en(e.nextSibling),e===null)break}return null}function L1(e,a,l){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=en(e.nextSibling),e===null))return null;return e}function Mc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function B1(e,a){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")a();else{var s=function(){a(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function en(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return e}var Cc=null;function wg(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(a===0)return e;a--}else l==="/$"&&a++}e=e.previousSibling}return null}function Sg(e,a,l){switch(a=Cu(l),e){case"html":if(e=a.documentElement,!e)throw Error(u(452));return e;case"head":if(e=a.head,!e)throw Error(u(453));return e;case"body":if(e=a.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Br(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);zs(e)}var Ke=new Map,Ag=new Set;function Nu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Bn=$.d;$.d={f:G1,r:Q1,D:Y1,C:X1,L:V1,m:Z1,X:K1,S:$1,M:F1};function G1(){var e=Bn.f(),a=xu();return e||a}function Q1(e){var a=la(e);a!==null&&a.tag===5&&a.type==="form"?Xd(a):Bn.r(e)}var Ba=typeof document>"u"?null:document;function Tg(e,a,l){var s=Ba;if(s&&typeof a=="string"&&a){var f=Ge(a);f='link[rel="'+e+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),Ag.has(f)||(Ag.add(f),e={rel:e,crossOrigin:l,href:a},s.querySelector(f)===null&&(a=s.createElement("link"),ce(a,"link",e),ae(a),s.head.appendChild(a)))}}function Y1(e){Bn.D(e),Tg("dns-prefetch",e,null)}function X1(e,a){Bn.C(e,a),Tg("preconnect",e,a)}function V1(e,a,l){Bn.L(e,a,l);var s=Ba;if(s&&e&&a){var f='link[rel="preload"][as="'+Ge(a)+'"]';a==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+Ge(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+Ge(l.imageSizes)+'"]')):f+='[href="'+Ge(e)+'"]';var d=f;switch(a){case"style":d=Ga(e);break;case"script":d=Qa(e)}Ke.has(d)||(e=v({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:e,as:a},l),Ke.set(d,e),s.querySelector(f)!==null||a==="style"&&s.querySelector(Gr(d))||a==="script"&&s.querySelector(Qr(d))||(a=s.createElement("link"),ce(a,"link",e),ae(a),s.head.appendChild(a)))}}function Z1(e,a){Bn.m(e,a);var l=Ba;if(l&&e){var s=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+Ge(s)+'"][href="'+Ge(e)+'"]',d=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Qa(e)}if(!Ke.has(d)&&(e=v({rel:"modulepreload",href:e},a),Ke.set(d,e),l.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Qr(d)))return}s=l.createElement("link"),ce(s,"link",e),ae(s),l.head.appendChild(s)}}}function $1(e,a,l){Bn.S(e,a,l);var s=Ba;if(s&&e){var f=ua(s).hoistableStyles,d=Ga(e);a=a||"default";var _=f.get(d);if(!_){var S={loading:0,preload:null};if(_=s.querySelector(Gr(d)))S.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":a},l),(l=Ke.get(d))&&Nc(e,l);var N=_=s.createElement("link");ae(N),ce(N,"link",e),N._p=new Promise(function(Y,K){N.onload=Y,N.onerror=K}),N.addEventListener("load",function(){S.loading|=1}),N.addEventListener("error",function(){S.loading|=2}),S.loading|=4,zu(_,a,s)}_={type:"stylesheet",instance:_,count:1,state:S},f.set(d,_)}}}function K1(e,a){Bn.X(e,a);var l=Ba;if(l&&e){var s=ua(l).hoistableScripts,f=Qa(e),d=s.get(f);d||(d=l.querySelector(Qr(f)),d||(e=v({src:e,async:!0},a),(a=Ke.get(f))&&zc(e,a),d=l.createElement("script"),ae(d),ce(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(f,d))}}function F1(e,a){Bn.M(e,a);var l=Ba;if(l&&e){var s=ua(l).hoistableScripts,f=Qa(e),d=s.get(f);d||(d=l.querySelector(Qr(f)),d||(e=v({src:e,async:!0,type:"module"},a),(a=Ke.get(f))&&zc(e,a),d=l.createElement("script"),ae(d),ce(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(f,d))}}function Eg(e,a,l,s){var f=(f=ht.current)?Nu(f):null;if(!f)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=Ga(l.href),l=ua(f).hoistableStyles,s=l.get(a),s||(s={type:"style",instance:null,count:0,state:null},l.set(a,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ga(l.href);var d=ua(f).hoistableStyles,_=d.get(e);if(_||(f=f.ownerDocument||f,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,_),(d=f.querySelector(Gr(e)))&&!d._p&&(_.instance=d,_.state.loading=5),Ke.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ke.set(e,l),d||P1(f,e,l,_.state))),a&&s===null)throw Error(u(528,""));return _}if(a&&s!==null)throw Error(u(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Qa(l),l=ua(f).hoistableScripts,s=l.get(a),s||(s={type:"script",instance:null,count:0,state:null},l.set(a,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ga(e){return'href="'+Ge(e)+'"'}function Gr(e){return'link[rel="stylesheet"]['+e+"]"}function Og(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function P1(e,a,l,s){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?s.loading=1:(a=e.createElement("link"),s.preload=a,a.addEventListener("load",function(){return s.loading|=1}),a.addEventListener("error",function(){return s.loading|=2}),ce(a,"link",l),ae(a),e.head.appendChild(a))}function Qa(e){return'[src="'+Ge(e)+'"]'}function Qr(e){return"script[async]"+e}function Mg(e,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var s=e.querySelector('style[data-href~="'+Ge(l.href)+'"]');if(s)return a.instance=s,ae(s),s;var f=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),ae(s),ce(s,"style",f),zu(s,l.precedence,e),a.instance=s;case"stylesheet":f=Ga(l.href);var d=e.querySelector(Gr(f));if(d)return a.state.loading|=4,a.instance=d,ae(d),d;s=Og(l),(f=Ke.get(f))&&Nc(s,f),d=(e.ownerDocument||e).createElement("link"),ae(d);var _=d;return _._p=new Promise(function(S,N){_.onload=S,_.onerror=N}),ce(d,"link",s),a.state.loading|=4,zu(d,l.precedence,e),a.instance=d;case"script":return d=Qa(l.src),(f=e.querySelector(Qr(d)))?(a.instance=f,ae(f),f):(s=l,(f=Ke.get(d))&&(s=v({},l),zc(s,f)),e=e.ownerDocument||e,f=e.createElement("script"),ae(f),ce(f,"link",s),e.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(u(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(s=a.instance,a.state.loading|=4,zu(s,l.precedence,e));return a.instance}function zu(e,a,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,d=f,_=0;_<s.length;_++){var S=s[_];if(S.dataset.precedence===a)d=S;else if(d!==f)break}d?d.parentNode.insertBefore(e,d.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(e,a.firstChild))}function Nc(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function zc(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var Ru=null;function Cg(e,a,l){if(Ru===null){var s=new Map,f=Ru=new Map;f.set(l,s)}else f=Ru,s=f.get(l),s||(s=new Map,f.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),f=0;f<l.length;f++){var d=l[f];if(!(d[er]||d[Gt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var _=d.getAttribute(a)||"";_=e+_;var S=s.get(_);S?S.push(d):s.set(_,[d])}}return s}function Ng(e,a,l){e=e.ownerDocument||e,e.head.insertBefore(l,a==="title"?e.querySelector("head > title"):null)}function J1(e,a,l){if(l===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return e=a.disabled,typeof a.precedence=="string"&&e==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function zg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Yr=null;function W1(){}function I1(e,a,l){if(Yr===null)throw Error(u(475));var s=Yr;if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=Ga(l.href),d=e.querySelector(Gr(f));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=Du.bind(s),e.then(s,s)),a.state.loading|=4,a.instance=d,ae(d);return}d=e.ownerDocument||e,l=Og(l),(f=Ke.get(f))&&Nc(l,f),d=d.createElement("link"),ae(d);var _=d;_._p=new Promise(function(S,N){_.onload=S,_.onerror=N}),ce(d,"link",l),a.instance=d}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(s.count++,a=Du.bind(s),e.addEventListener("load",a),e.addEventListener("error",a))}}function t_(){if(Yr===null)throw Error(u(475));var e=Yr;return e.stylesheets&&e.count===0&&Rc(e,e.stylesheets),0<e.count?function(a){var l=setTimeout(function(){if(e.stylesheets&&Rc(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l)}}:null}function Du(){if(this.count--,this.count===0){if(this.stylesheets)Rc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ju=null;function Rc(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ju=new Map,a.forEach(e_,e),ju=null,Du.call(e))}function e_(e,a){if(!(a.state.loading&4)){var l=ju.get(e);if(l)var s=l.get(null);else{l=new Map,ju.set(e,l);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<f.length;d++){var _=f[d];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(l.set(_.dataset.precedence,_),s=_)}s&&l.set(null,s)}f=a.instance,_=f.getAttribute("data-precedence"),d=l.get(_)||s,d===s&&l.set(null,f),l.set(_,f),this.count++,s=Du.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),d?d.parentNode.insertBefore(f,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),a.state.loading|=4}}var Xr={$$typeof:q,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function n_(e,a,l,s,f,d,_,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tr(0),this.hiddenUpdates=tr(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=d,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Rg(e,a,l,s,f,d,_,S,N,Y,K,P){return e=new n_(e,a,l,_,S,N,Y,P),a=1,d===!0&&(a|=24),d=ze(3,null,null,a),e.current=d,d.stateNode=e,a=ho(),a.refCount++,e.pooledCache=a,a.refCount++,d.memoizedState={element:s,isDehydrated:l,cache:a},mo(d),e}function Dg(e){return e?(e=_a,e):_a}function jg(e,a,l,s,f,d){f=Dg(f),s.context===null?s.context=f:s.pendingContext=f,s=ti(a),s.payload={element:l},d=d===void 0?null:d,d!==null&&(s.callback=d),l=ei(e,s,a),l!==null&&(Ue(l,e,a),br(l,e,a))}function kg(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<a?l:a}}function Dc(e,a){kg(e,a),(e=e.alternate)&&kg(e,a)}function Ug(e){if(e.tag===13){var a=va(e,67108864);a!==null&&Ue(a,e,67108864),Dc(e,67108864)}}var ku=!0;function i_(e,a,l,s){var f=z.T;z.T=null;var d=$.p;try{$.p=2,jc(e,a,l,s)}finally{$.p=d,z.T=f}}function a_(e,a,l,s){var f=z.T;z.T=null;var d=$.p;try{$.p=8,jc(e,a,l,s)}finally{$.p=d,z.T=f}}function jc(e,a,l,s){if(ku){var f=kc(s);if(f===null)xc(e,a,s,Uu,l),Hg(e,s);else if(l_(f,e,a,l,s))s.stopPropagation();else if(Hg(e,s),a&4&&-1<r_.indexOf(e)){for(;f!==null;){var d=la(f);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var _=An(d.pendingLanes);if(_!==0){var S=d;for(S.pendingLanes|=2,S.entangledLanes|=2;_;){var N=1<<31-me(_);S.entanglements[1]|=N,_&=~N}gn(d),(zt&6)===0&&(_u=Le()+500,qr(0))}}break;case 13:S=va(d,2),S!==null&&Ue(S,d,2),xu(),Dc(d,2)}if(d=kc(s),d===null&&xc(e,a,s,Uu,l),d===f)break;f=d}f!==null&&s.stopPropagation()}else xc(e,a,s,null,l)}}function kc(e){return e=Ls(e),Uc(e)}var Uu=null;function Uc(e){if(Uu=null,e=ra(e),e!==null){var a=c(e);if(a===null)e=null;else{var l=a.tag;if(l===13){if(e=h(a),e!==null)return e;e=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return Uu=e,null}function qg(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ol()){case xn:return 2;case Si:return 8;case Ai:case Ts:return 32;case wn:return 268435456;default:return 32}default:return 32}}var qc=!1,gi=null,pi=null,yi=null,Vr=new Map,Zr=new Map,mi=[],r_="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".split(" ");function Hg(e,a){switch(e){case"focusin":case"focusout":gi=null;break;case"dragenter":case"dragleave":pi=null;break;case"mouseover":case"mouseout":yi=null;break;case"pointerover":case"pointerout":Vr.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zr.delete(a.pointerId)}}function $r(e,a,l,s,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:a,domEventName:l,eventSystemFlags:s,nativeEvent:d,targetContainers:[f]},a!==null&&(a=la(a),a!==null&&Ug(a)),e):(e.eventSystemFlags|=s,a=e.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),e)}function l_(e,a,l,s,f){switch(a){case"focusin":return gi=$r(gi,e,a,l,s,f),!0;case"dragenter":return pi=$r(pi,e,a,l,s,f),!0;case"mouseover":return yi=$r(yi,e,a,l,s,f),!0;case"pointerover":var d=f.pointerId;return Vr.set(d,$r(Vr.get(d)||null,e,a,l,s,f)),!0;case"gotpointercapture":return d=f.pointerId,Zr.set(d,$r(Zr.get(d)||null,e,a,l,s,f)),!0}return!1}function Lg(e){var a=ra(e.target);if(a!==null){var l=c(a);if(l!==null){if(a=l.tag,a===13){if(a=h(l),a!==null){e.blockedOn=a,Pn(e.priority,function(){if(l.tag===13){var s=ke();s=we(s);var f=va(l,s);f!==null&&Ue(f,l,s),Dc(l,s)}});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qu(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var l=kc(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);Hs=s,l.target.dispatchEvent(s),Hs=null}else return a=la(l),a!==null&&Ug(a),e.blockedOn=l,!1;a.shift()}return!0}function Bg(e,a,l){qu(e)&&l.delete(a)}function u_(){qc=!1,gi!==null&&qu(gi)&&(gi=null),pi!==null&&qu(pi)&&(pi=null),yi!==null&&qu(yi)&&(yi=null),Vr.forEach(Bg),Zr.forEach(Bg)}function Hu(e,a){e.blockedOn===a&&(e.blockedOn=null,qc||(qc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,u_)))}var Lu=null;function Gg(e){Lu!==e&&(Lu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Lu===e&&(Lu=null);for(var a=0;a<e.length;a+=3){var l=e[a],s=e[a+1],f=e[a+2];if(typeof s!="function"){if(Uc(s||l)===null)continue;break}var d=la(l);d!==null&&(e.splice(a,3),a-=3,Uo(d,{pending:!0,data:f,method:l.method,action:s},s,f))}}))}function Kr(e){function a(N){return Hu(N,e)}gi!==null&&Hu(gi,e),pi!==null&&Hu(pi,e),yi!==null&&Hu(yi,e),Vr.forEach(a),Zr.forEach(a);for(var l=0;l<mi.length;l++){var s=mi[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<mi.length&&(l=mi[0],l.blockedOn===null);)Lg(l),l.blockedOn===null&&mi.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var f=l[s],d=l[s+1],_=f[Vt]||null;if(typeof d=="function")_||Gg(l);else if(_){var S=null;if(d&&d.hasAttribute("formAction")){if(f=d,_=d[Vt]||null)S=_.formAction;else if(Uc(f)!==null)continue}else S=_.action;typeof S=="function"?l[s+1]=S:(l.splice(s,3),s-=3),Gg(l)}}}function Hc(e){this._internalRoot=e}Bu.prototype.render=Hc.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(u(409));var l=a.current,s=ke();jg(l,s,e,a,null,null)},Bu.prototype.unmount=Hc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;jg(e.current,2,null,e,null,null),xu(),a[aa]=null}};function Bu(e){this._internalRoot=e}Bu.prototype.unstable_scheduleHydration=function(e){if(e){var a=Oi();e={blockedOn:null,target:e,priority:a};for(var l=0;l<mi.length&&a!==0&&a<mi[l].priority;l++);mi.splice(l,0,e),l===0&&Lg(e)}};var Qg=i.version;if(Qg!=="19.1.0")throw Error(u(527,Qg,"19.1.0"));$.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=y(a),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var s_={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gu.isDisabled&&Gu.supportsFiber)try{Sn=Gu.inject(s_),ye=Gu}catch{}}return Pr.createRoot=function(e,a){if(!o(e))throw Error(u(299));var l=!1,s="",f=a0,d=r0,_=l0,S=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(S=a.unstable_transitionCallbacks)),a=Rg(e,1,!1,null,null,l,s,f,d,_,S,null),e[aa]=a.current,bc(e),new Hc(a)},Pr.hydrateRoot=function(e,a,l){if(!o(e))throw Error(u(299));var s=!1,f="",d=a0,_=r0,S=l0,N=null,Y=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(_=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(N=l.unstable_transitionCallbacks),l.formState!==void 0&&(Y=l.formState)),a=Rg(e,1,!0,a,l??null,s,f,d,_,S,N,Y),a.context=Dg(null),l=a.current,s=ke(),s=we(s),f=ti(s),f.callback=null,ei(l,f,s),l=s,a.current.lanes=l,Tn(a,l),gn(a),e[aa]=a.current,bc(e),new Bu(a)},Pr.version="19.1.0",Pr}var up;function J_(){if(up)return Qc.exports;up=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Qc.exports=P_(),Qc.exports}var W_=J_();/**
|
|
50
|
+
* @license lucide-react v0.525.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const I_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tb=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,u)=>u?u.toUpperCase():r.toLowerCase()),sp=n=>{const i=tb(n);return i.charAt(0).toUpperCase()+i.slice(1)},Gy=(...n)=>n.filter((i,r,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===r).join(" ").trim(),eb=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
|
|
55
|
+
* @license lucide-react v0.525.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var nb={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"};/**
|
|
60
|
+
* @license lucide-react v0.525.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const ib=ot.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:o="",children:c,iconNode:h,...g},y)=>ot.createElement("svg",{ref:y,...nb,width:i,height:i,stroke:n,strokeWidth:u?Number(r)*24/Number(i):r,className:Gy("lucide",o),...!c&&!eb(g)&&{"aria-hidden":"true"},...g},[...h.map(([p,v])=>ot.createElement(p,v)),...Array.isArray(c)?c:[c]]));/**
|
|
65
|
+
* @license lucide-react v0.525.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const un=(n,i)=>{const r=ot.forwardRef(({className:u,...o},c)=>ot.createElement(ib,{ref:c,iconNode:i,className:Gy(`lucide-${I_(sp(n))}`,`lucide-${n}`,u),...o}));return r.displayName=sp(n),r};/**
|
|
70
|
+
* @license lucide-react v0.525.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const ab=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],rb=un("arrow-left",ab);/**
|
|
75
|
+
* @license lucide-react v0.525.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const lb=[["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"}]],ub=un("book",lb);/**
|
|
80
|
+
* @license lucide-react v0.525.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const sb=[["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"}]],op=un("file-text",sb);/**
|
|
85
|
+
* @license lucide-react v0.525.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const ob=[["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"}]],Zc=un("file",ob);/**
|
|
90
|
+
* @license lucide-react v0.525.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const cb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],fb=un("info",cb);/**
|
|
95
|
+
* @license lucide-react v0.525.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const hb=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],$c=un("list",hb);/**
|
|
100
|
+
* @license lucide-react v0.525.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const db=[["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"}]],Ya=un("loader",db);/**
|
|
105
|
+
* @license lucide-react v0.525.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const gb=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],pb=un("network",gb);/**
|
|
110
|
+
* @license lucide-react v0.525.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const yb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Kc=un("search",yb);/**
|
|
115
|
+
* @license lucide-react v0.525.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const mb=[["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"}]],vb=un("trash-2",mb);/**
|
|
120
|
+
* @license lucide-react v0.525.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const _b=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],cp=un("upload",_b);function fp({children:n,variant:i="default",className:r=""}){const u="inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",o={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 O.jsx("span",{className:`${u} ${o[i]} ${r}`,children:n})}function Jt({children:n,variant:i="default",size:r="default",className:u="",onClick:o,disabled:c=!1,title:h,type:g="button"}){const y="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",p={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 text-sm",sm:"h-9 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8 text-sm",icon:"h-10 w-10 text-xs"};return O.jsx("button",{type:g,className:`${y} ${p[i]} ${v[r]} ${u}`,onClick:o,disabled:c,title:h,children:n})}function Fc({type:n="text",placeholder:i,value:r,onChange:u,className:o="",disabled:c=!1,ref:h,multiple:g,accept:y,...p}){return O.jsx("input",{type:n,placeholder:i,value:r,onChange:u,disabled:c,multiple:g,accept:y,ref:h,className:`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${o}`,...p})}function bb(n,i){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var u,o,c,h,g=[],y=!0,p=!1;try{if(c=(r=r.call(n)).next,i===0){if(Object(r)!==r)return;y=!1}else for(;!(y=(u=c.call(r)).done)&&(g.push(u.value),g.length!==i);y=!0);}catch(v){p=!0,o=v}finally{try{if(!y&&r.return!=null&&(h=r.return(),Object(h)!==h))return}finally{if(p)throw o}}return g}}function xb(n,i,r){return i=Cb(i),i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n}function hp(n,i){return Ab(n)||bb(n,i)||Qy(n,i)||Ob()}function wb(n){return Sb(n)||Tb(n)||Qy(n)||Eb()}function Sb(n){if(Array.isArray(n))return pf(n)}function Ab(n){if(Array.isArray(n))return n}function Tb(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Qy(n,i){if(n){if(typeof n=="string")return pf(n,i);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pf(n,i)}}function pf(n,i){(i==null||i>n.length)&&(i=n.length);for(var r=0,u=new Array(i);r<i;r++)u[r]=n[r];return u}function Eb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
125
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ob(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
126
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mb(n,i){if(typeof n!="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var u=r.call(n,i);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}function Cb(n){var i=Mb(n,"string");return typeof i=="symbol"?i:String(i)}var Nb=function(i,r){var u=new Set(r);return Object.assign.apply(Object,[{}].concat(wb(Object.entries(i).filter(function(o){var c=hp(o,1),h=c[0];return!u.has(h)}).map(function(o){var c=hp(o,2),h=c[0],g=c[1];return xb({},h,g)}))))};function yf(n,i){(i==null||i>n.length)&&(i=n.length);for(var r=0,u=Array(i);r<i;r++)u[r]=n[r];return u}function zb(n){if(Array.isArray(n))return n}function Rb(n){if(Array.isArray(n))return yf(n)}function Db(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function jb(n,i){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var u,o,c,h,g=[],y=!0,p=!1;try{if(c=(r=r.call(n)).next,i!==0)for(;!(y=(u=c.call(r)).done)&&(g.push(u.value),g.length!==i);y=!0);}catch(v){p=!0,o=v}finally{try{if(!y&&r.return!=null&&(h=r.return(),Object(h)!==h))return}finally{if(p)throw o}}return g}}function kb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
127
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ub(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
128
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qb(n,i){return zb(n)||jb(n,i)||Yy(n,i)||kb()}function dp(n){return Rb(n)||Db(n)||Yy(n)||Ub()}function Yy(n,i){if(n){if(typeof n=="string")return yf(n,i);var r={}.toString.call(n).slice(8,-1);return r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set"?Array.from(n):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yf(n,i):void 0}}function Hb(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.wrapperElementType,u=r===void 0?"div":r,o=i.nodeMapper,c=o===void 0?function(v){return v}:o,h=i.methodNames,g=h===void 0?[]:h,y=i.initPropNames,p=y===void 0?[]:y;return ot.forwardRef(function(v,m){var b=ot.useRef(),x=ot.useMemo(function(){var T=Object.fromEntries(p.filter(function(w){return v.hasOwnProperty(w)}).map(function(w){return[w,v[w]]}));return n(T)},[]);gp(function(){x(c(b.current))},ot.useLayoutEffect),gp(function(){return x._destructor instanceof Function?x._destructor:void 0});var A=ot.useCallback(function(T){for(var w=arguments.length,D=new Array(w>1?w-1:0),q=1;q<w;q++)D[q-1]=arguments[q];return x[T]instanceof Function?x[T].apply(x,D):void 0},[x]),M=ot.useRef({});return Object.keys(Nb(v,[].concat(dp(g),dp(p)))).filter(function(T){return M.current[T]!==v[T]}).forEach(function(T){return A(T,v[T])}),M.current=v,ot.useImperativeHandle(m,function(){return Object.fromEntries(g.map(function(T){return[T,function(){for(var w=arguments.length,D=new Array(w),q=0;q<w;q++)D[q]=arguments[q];return A.apply(void 0,[T].concat(D))}]}))},[A]),Bf.createElement(u,{ref:b})})}function gp(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ot.useEffect,r=ot.useRef(),u=ot.useRef(!1),o=ot.useRef(!1),c=ot.useState(0),h=qb(c,2);h[0];var g=h[1];u.current&&(o.current=!0),i(function(){return u.current||(r.current=n(),u.current=!0),g(function(y){return y+1}),function(){o.current&&r.current&&r.current()}},[])}var mf="http://www.w3.org/1999/xhtml";const pp={svg:"http://www.w3.org/2000/svg",xhtml:mf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ys(n){var i=n+="",r=i.indexOf(":");return r>=0&&(i=n.slice(0,r))!=="xmlns"&&(n=n.slice(r+1)),pp.hasOwnProperty(i)?{space:pp[i],local:n}:n}function Lb(n){return function(){var i=this.ownerDocument,r=this.namespaceURI;return r===mf&&i.documentElement.namespaceURI===mf?i.createElement(n):i.createElementNS(r,n)}}function Bb(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Xy(n){var i=ys(n);return(i.local?Bb:Lb)(i)}function Gb(){}function Gf(n){return n==null?Gb:function(){return this.querySelector(n)}}function Qb(n){typeof n!="function"&&(n=Gf(n));for(var i=this._groups,r=i.length,u=new Array(r),o=0;o<r;++o)for(var c=i[o],h=c.length,g=u[o]=new Array(h),y,p,v=0;v<h;++v)(y=c[v])&&(p=n.call(y,y.__data__,v,c))&&("__data__"in y&&(p.__data__=y.__data__),g[v]=p);return new He(u,this._parents)}function Yb(n){return n==null?[]:Array.isArray(n)?n:Array.from(n)}function Xb(){return[]}function Vy(n){return n==null?Xb:function(){return this.querySelectorAll(n)}}function Vb(n){return function(){return Yb(n.apply(this,arguments))}}function Zb(n){typeof n=="function"?n=Vb(n):n=Vy(n);for(var i=this._groups,r=i.length,u=[],o=[],c=0;c<r;++c)for(var h=i[c],g=h.length,y,p=0;p<g;++p)(y=h[p])&&(u.push(n.call(y,y.__data__,p,h)),o.push(y));return new He(u,o)}function Zy(n){return function(){return this.matches(n)}}function $y(n){return function(i){return i.matches(n)}}var $b=Array.prototype.find;function Kb(n){return function(){return $b.call(this.children,n)}}function Fb(){return this.firstElementChild}function Pb(n){return this.select(n==null?Fb:Kb(typeof n=="function"?n:$y(n)))}var Jb=Array.prototype.filter;function Wb(){return Array.from(this.children)}function Ib(n){return function(){return Jb.call(this.children,n)}}function tx(n){return this.selectAll(n==null?Wb:Ib(typeof n=="function"?n:$y(n)))}function ex(n){typeof n!="function"&&(n=Zy(n));for(var i=this._groups,r=i.length,u=new Array(r),o=0;o<r;++o)for(var c=i[o],h=c.length,g=u[o]=[],y,p=0;p<h;++p)(y=c[p])&&n.call(y,y.__data__,p,c)&&g.push(y);return new He(u,this._parents)}function Ky(n){return new Array(n.length)}function nx(){return new He(this._enter||this._groups.map(Ky),this._parents)}function is(n,i){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=i}is.prototype={constructor:is,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,i){return this._parent.insertBefore(n,i)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};function ix(n){return function(){return n}}function ax(n,i,r,u,o,c){for(var h=0,g,y=i.length,p=c.length;h<p;++h)(g=i[h])?(g.__data__=c[h],u[h]=g):r[h]=new is(n,c[h]);for(;h<y;++h)(g=i[h])&&(o[h]=g)}function rx(n,i,r,u,o,c,h){var g,y,p=new Map,v=i.length,m=c.length,b=new Array(v),x;for(g=0;g<v;++g)(y=i[g])&&(b[g]=x=h.call(y,y.__data__,g,i)+"",p.has(x)?o[g]=y:p.set(x,y));for(g=0;g<m;++g)x=h.call(n,c[g],g,c)+"",(y=p.get(x))?(u[g]=y,y.__data__=c[g],p.delete(x)):r[g]=new is(n,c[g]);for(g=0;g<v;++g)(y=i[g])&&p.get(b[g])===y&&(o[g]=y)}function lx(n){return n.__data__}function ux(n,i){if(!arguments.length)return Array.from(this,lx);var r=i?rx:ax,u=this._parents,o=this._groups;typeof n!="function"&&(n=ix(n));for(var c=o.length,h=new Array(c),g=new Array(c),y=new Array(c),p=0;p<c;++p){var v=u[p],m=o[p],b=m.length,x=sx(n.call(v,v&&v.__data__,p,u)),A=x.length,M=g[p]=new Array(A),T=h[p]=new Array(A),w=y[p]=new Array(b);r(v,m,M,T,w,x,i);for(var D=0,q=0,R,C;D<A;++D)if(R=M[D]){for(D>=q&&(q=D+1);!(C=T[q])&&++q<A;);R._next=C||null}}return h=new He(h,u),h._enter=g,h._exit=y,h}function sx(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function ox(){return new He(this._exit||this._groups.map(Ky),this._parents)}function cx(n,i,r){var u=this.enter(),o=this,c=this.exit();return typeof n=="function"?(u=n(u),u&&(u=u.selection())):u=u.append(n+""),i!=null&&(o=i(o),o&&(o=o.selection())),r==null?c.remove():r(c),u&&o?u.merge(o).order():o}function fx(n){for(var i=n.selection?n.selection():n,r=this._groups,u=i._groups,o=r.length,c=u.length,h=Math.min(o,c),g=new Array(o),y=0;y<h;++y)for(var p=r[y],v=u[y],m=p.length,b=g[y]=new Array(m),x,A=0;A<m;++A)(x=p[A]||v[A])&&(b[A]=x);for(;y<o;++y)g[y]=r[y];return new He(g,this._parents)}function hx(){for(var n=this._groups,i=-1,r=n.length;++i<r;)for(var u=n[i],o=u.length-1,c=u[o],h;--o>=0;)(h=u[o])&&(c&&h.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(h,c),c=h);return this}function dx(n){n||(n=gx);function i(m,b){return m&&b?n(m.__data__,b.__data__):!m-!b}for(var r=this._groups,u=r.length,o=new Array(u),c=0;c<u;++c){for(var h=r[c],g=h.length,y=o[c]=new Array(g),p,v=0;v<g;++v)(p=h[v])&&(y[v]=p);y.sort(i)}return new He(o,this._parents).order()}function gx(n,i){return n<i?-1:n>i?1:n>=i?0:NaN}function px(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function yx(){return Array.from(this)}function mx(){for(var n=this._groups,i=0,r=n.length;i<r;++i)for(var u=n[i],o=0,c=u.length;o<c;++o){var h=u[o];if(h)return h}return null}function vx(){let n=0;for(const i of this)++n;return n}function _x(){return!this.node()}function bx(n){for(var i=this._groups,r=0,u=i.length;r<u;++r)for(var o=i[r],c=0,h=o.length,g;c<h;++c)(g=o[c])&&n.call(g,g.__data__,c,o);return this}function xx(n){return function(){this.removeAttribute(n)}}function wx(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Sx(n,i){return function(){this.setAttribute(n,i)}}function Ax(n,i){return function(){this.setAttributeNS(n.space,n.local,i)}}function Tx(n,i){return function(){var r=i.apply(this,arguments);r==null?this.removeAttribute(n):this.setAttribute(n,r)}}function Ex(n,i){return function(){var r=i.apply(this,arguments);r==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,r)}}function Ox(n,i){var r=ys(n);if(arguments.length<2){var u=this.node();return r.local?u.getAttributeNS(r.space,r.local):u.getAttribute(r)}return this.each((i==null?r.local?wx:xx:typeof i=="function"?r.local?Ex:Tx:r.local?Ax:Sx)(r,i))}function Fy(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Mx(n){return function(){this.style.removeProperty(n)}}function Cx(n,i,r){return function(){this.style.setProperty(n,i,r)}}function Nx(n,i,r){return function(){var u=i.apply(this,arguments);u==null?this.style.removeProperty(n):this.style.setProperty(n,u,r)}}function zx(n,i,r){return arguments.length>1?this.each((i==null?Mx:typeof i=="function"?Nx:Cx)(n,i,r??"")):Ka(this.node(),n)}function Ka(n,i){return n.style.getPropertyValue(i)||Fy(n).getComputedStyle(n,null).getPropertyValue(i)}function Rx(n){return function(){delete this[n]}}function Dx(n,i){return function(){this[n]=i}}function jx(n,i){return function(){var r=i.apply(this,arguments);r==null?delete this[n]:this[n]=r}}function kx(n,i){return arguments.length>1?this.each((i==null?Rx:typeof i=="function"?jx:Dx)(n,i)):this.node()[n]}function Py(n){return n.trim().split(/^|\s+/)}function Qf(n){return n.classList||new Jy(n)}function Jy(n){this._node=n,this._names=Py(n.getAttribute("class")||"")}Jy.prototype={add:function(n){var i=this._names.indexOf(n);i<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var i=this._names.indexOf(n);i>=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function Wy(n,i){for(var r=Qf(n),u=-1,o=i.length;++u<o;)r.add(i[u])}function Iy(n,i){for(var r=Qf(n),u=-1,o=i.length;++u<o;)r.remove(i[u])}function Ux(n){return function(){Wy(this,n)}}function qx(n){return function(){Iy(this,n)}}function Hx(n,i){return function(){(i.apply(this,arguments)?Wy:Iy)(this,n)}}function Lx(n,i){var r=Py(n+"");if(arguments.length<2){for(var u=Qf(this.node()),o=-1,c=r.length;++o<c;)if(!u.contains(r[o]))return!1;return!0}return this.each((typeof i=="function"?Hx:i?Ux:qx)(r,i))}function Bx(){this.textContent=""}function Gx(n){return function(){this.textContent=n}}function Qx(n){return function(){var i=n.apply(this,arguments);this.textContent=i??""}}function Yx(n){return arguments.length?this.each(n==null?Bx:(typeof n=="function"?Qx:Gx)(n)):this.node().textContent}function Xx(){this.innerHTML=""}function Vx(n){return function(){this.innerHTML=n}}function Zx(n){return function(){var i=n.apply(this,arguments);this.innerHTML=i??""}}function $x(n){return arguments.length?this.each(n==null?Xx:(typeof n=="function"?Zx:Vx)(n)):this.node().innerHTML}function Kx(){this.nextSibling&&this.parentNode.appendChild(this)}function Fx(){return this.each(Kx)}function Px(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Jx(){return this.each(Px)}function Wx(n){var i=typeof n=="function"?n:Xy(n);return this.select(function(){return this.appendChild(i.apply(this,arguments))})}function Ix(){return null}function t2(n,i){var r=typeof n=="function"?n:Xy(n),u=i==null?Ix:typeof i=="function"?i:Gf(i);return this.select(function(){return this.insertBefore(r.apply(this,arguments),u.apply(this,arguments)||null)})}function e2(){var n=this.parentNode;n&&n.removeChild(this)}function n2(){return this.each(e2)}function i2(){var n=this.cloneNode(!1),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}function a2(){var n=this.cloneNode(!0),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}function r2(n){return this.select(n?a2:i2)}function l2(n){return arguments.length?this.property("__data__",n):this.node().__data__}function u2(n){return function(i){n.call(this,i,this.__data__)}}function s2(n){return n.trim().split(/^|\s+/).map(function(i){var r="",u=i.indexOf(".");return u>=0&&(r=i.slice(u+1),i=i.slice(0,u)),{type:i,name:r}})}function o2(n){return function(){var i=this.__on;if(i){for(var r=0,u=-1,o=i.length,c;r<o;++r)c=i[r],(!n.type||c.type===n.type)&&c.name===n.name?this.removeEventListener(c.type,c.listener,c.options):i[++u]=c;++u?i.length=u:delete this.__on}}}function c2(n,i,r){return function(){var u=this.__on,o,c=u2(i);if(u){for(var h=0,g=u.length;h<g;++h)if((o=u[h]).type===n.type&&o.name===n.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=c,o.options=r),o.value=i;return}}this.addEventListener(n.type,c,r),o={type:n.type,name:n.name,value:i,listener:c,options:r},u?u.push(o):this.__on=[o]}}function f2(n,i,r){var u=s2(n+""),o,c=u.length,h;if(arguments.length<2){var g=this.node().__on;if(g){for(var y=0,p=g.length,v;y<p;++y)for(o=0,v=g[y];o<c;++o)if((h=u[o]).type===v.type&&h.name===v.name)return v.value}return}for(g=i?c2:o2,o=0;o<c;++o)this.each(g(u[o],i,r));return this}function tm(n,i,r){var u=Fy(n),o=u.CustomEvent;typeof o=="function"?o=new o(i,r):(o=u.document.createEvent("Event"),r?(o.initEvent(i,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(i,!1,!1)),n.dispatchEvent(o)}function h2(n,i){return function(){return tm(this,n,i)}}function d2(n,i){return function(){return tm(this,n,i.apply(this,arguments))}}function g2(n,i){return this.each((typeof i=="function"?d2:h2)(n,i))}function*p2(){for(var n=this._groups,i=0,r=n.length;i<r;++i)for(var u=n[i],o=0,c=u.length,h;o<c;++o)(h=u[o])&&(yield h)}var em=[null];function He(n,i){this._groups=n,this._parents=i}function wl(){return new He([[document.documentElement]],em)}function y2(){return this}He.prototype=wl.prototype={constructor:He,select:Qb,selectAll:Zb,selectChild:Pb,selectChildren:tx,filter:ex,data:ux,enter:nx,exit:ox,join:cx,merge:fx,selection:y2,order:hx,sort:dx,call:px,nodes:yx,node:mx,size:vx,empty:_x,each:bx,attr:Ox,style:zx,property:kx,classed:Lx,text:Yx,html:$x,raise:Fx,lower:Jx,append:Wx,insert:t2,remove:n2,clone:r2,datum:l2,on:f2,dispatch:g2,[Symbol.iterator]:p2};function Je(n){return typeof n=="string"?new He([[document.querySelector(n)]],[document.documentElement]):new He([[n]],em)}function m2(n){let i;for(;i=n.sourceEvent;)n=i;return n}function yn(n,i){if(n=m2(n),i===void 0&&(i=n.currentTarget),i){var r=i.ownerSVGElement||i;if(r.createSVGPoint){var u=r.createSVGPoint();return u.x=n.clientX,u.y=n.clientY,u=u.matrixTransform(i.getScreenCTM().inverse()),[u.x,u.y]}if(i.getBoundingClientRect){var o=i.getBoundingClientRect();return[n.clientX-o.left-i.clientLeft,n.clientY-o.top-i.clientTop]}}return[n.pageX,n.pageY]}var v2={value:()=>{}};function Sl(){for(var n=0,i=arguments.length,r={},u;n<i;++n){if(!(u=arguments[n]+"")||u in r||/[\s.]/.test(u))throw new Error("illegal type: "+u);r[u]=[]}return new Pu(r)}function Pu(n){this._=n}function _2(n,i){return n.trim().split(/^|\s+/).map(function(r){var u="",o=r.indexOf(".");if(o>=0&&(u=r.slice(o+1),r=r.slice(0,o)),r&&!i.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:u}})}Pu.prototype=Sl.prototype={constructor:Pu,on:function(n,i){var r=this._,u=_2(n+"",r),o,c=-1,h=u.length;if(arguments.length<2){for(;++c<h;)if((o=(n=u[c]).type)&&(o=b2(r[o],n.name)))return o;return}if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++c<h;)if(o=(n=u[c]).type)r[o]=yp(r[o],n.name,i);else if(i==null)for(o in r)r[o]=yp(r[o],n.name,null);return this},copy:function(){var n={},i=this._;for(var r in i)n[r]=i[r].slice();return new Pu(n)},call:function(n,i){if((o=arguments.length-2)>0)for(var r=new Array(o),u=0,o,c;u<o;++u)r[u]=arguments[u+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(c=this._[n],u=0,o=c.length;u<o;++u)c[u].value.apply(i,r)},apply:function(n,i,r){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var u=this._[n],o=0,c=u.length;o<c;++o)u[o].value.apply(i,r)}};function b2(n,i){for(var r=0,u=n.length,o;r<u;++r)if((o=n[r]).name===i)return o.value}function yp(n,i,r){for(var u=0,o=n.length;u<o;++u)if(n[u].name===i){n[u]=v2,n=n.slice(0,u).concat(n.slice(u+1));break}return r!=null&&n.push({name:i,value:r}),n}const x2={passive:!1},gl={capture:!0,passive:!1};function Pc(n){n.stopImmediatePropagation()}function Za(n){n.preventDefault(),n.stopImmediatePropagation()}function nm(n){var i=n.document.documentElement,r=Je(n).on("dragstart.drag",Za,gl);"onselectstart"in i?r.on("selectstart.drag",Za,gl):(i.__noselect=i.style.MozUserSelect,i.style.MozUserSelect="none")}function im(n,i){var r=n.document.documentElement,u=Je(n).on("dragstart.drag",null);i&&(u.on("click.drag",Za,gl),setTimeout(function(){u.on("click.drag",null)},0)),"onselectstart"in r?u.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Yu=n=>()=>n;function vf(n,{sourceEvent:i,subject:r,target:u,identifier:o,active:c,x:h,y:g,dx:y,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:u,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:h,enumerable:!0,configurable:!0},y:{value:g,enumerable:!0,configurable:!0},dx:{value:y,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}vf.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function w2(n){return!n.ctrlKey&&!n.button}function S2(){return this.parentNode}function A2(n,i){return i??{x:n.x,y:n.y}}function T2(){return navigator.maxTouchPoints||"ontouchstart"in this}function E2(){var n=w2,i=S2,r=A2,u=T2,o={},c=Sl("start","drag","end"),h=0,g,y,p,v,m=0;function b(R){R.on("mousedown.drag",x).filter(u).on("touchstart.drag",T).on("touchmove.drag",w,x2).on("touchend.drag touchcancel.drag",D).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(R,C){if(!(v||!n.call(this,R,C))){var H=q(this,i.call(this,R,C),R,C,"mouse");H&&(Je(R.view).on("mousemove.drag",A,gl).on("mouseup.drag",M,gl),nm(R.view),Pc(R),p=!1,g=R.clientX,y=R.clientY,H("start",R))}}function A(R){if(Za(R),!p){var C=R.clientX-g,H=R.clientY-y;p=C*C+H*H>m}o.mouse("drag",R)}function M(R){Je(R.view).on("mousemove.drag mouseup.drag",null),im(R.view,p),Za(R),o.mouse("end",R)}function T(R,C){if(n.call(this,R,C)){var H=R.changedTouches,U=i.call(this,R,C),B=H.length,J,W;for(J=0;J<B;++J)(W=q(this,U,R,C,H[J].identifier,H[J]))&&(Pc(R),W("start",R,H[J]))}}function w(R){var C=R.changedTouches,H=C.length,U,B;for(U=0;U<H;++U)(B=o[C[U].identifier])&&(Za(R),B("drag",R,C[U]))}function D(R){var C=R.changedTouches,H=C.length,U,B;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),U=0;U<H;++U)(B=o[C[U].identifier])&&(Pc(R),B("end",R,C[U]))}function q(R,C,H,U,B,J){var W=c.copy(),et=yn(J||H,C),lt,ft,G;if((G=r.call(R,new vf("beforestart",{sourceEvent:H,target:b,identifier:B,active:h,x:et[0],y:et[1],dx:0,dy:0,dispatch:W}),U))!=null)return lt=G.x-et[0]||0,ft=G.y-et[1]||0,function I(z,$,nt){var ut=et,E;switch(z){case"start":o[B]=I,E=h++;break;case"end":delete o[B],--h;case"drag":et=yn(nt||$,C),E=h;break}W.call(z,R,new vf(z,{sourceEvent:$,subject:G,target:b,identifier:B,active:E,x:et[0]+lt,y:et[1]+ft,dx:et[0]-ut[0],dy:et[1]-ut[1],dispatch:W}),U)}}return b.filter=function(R){return arguments.length?(n=typeof R=="function"?R:Yu(!!R),b):n},b.container=function(R){return arguments.length?(i=typeof R=="function"?R:Yu(R),b):i},b.subject=function(R){return arguments.length?(r=typeof R=="function"?R:Yu(R),b):r},b.touchable=function(R){return arguments.length?(u=typeof R=="function"?R:Yu(!!R),b):u},b.on=function(){var R=c.on.apply(c,arguments);return R===c?b:R},b.clickDistance=function(R){return arguments.length?(m=(R=+R)*R,b):Math.sqrt(m)},b}function Yf(n,i,r){n.prototype=i.prototype=r,r.constructor=n}function am(n,i){var r=Object.create(n.prototype);for(var u in i)r[u]=i[u];return r}function Al(){}var pl=.7,as=1/pl,$a="\\s*([+-]?\\d+)\\s*",yl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",O2=/^#([0-9a-f]{3,8})$/,M2=new RegExp(`^rgb\\(${$a},${$a},${$a}\\)$`),C2=new RegExp(`^rgb\\(${vn},${vn},${vn}\\)$`),N2=new RegExp(`^rgba\\(${$a},${$a},${$a},${yl}\\)$`),z2=new RegExp(`^rgba\\(${vn},${vn},${vn},${yl}\\)$`),R2=new RegExp(`^hsl\\(${yl},${vn},${vn}\\)$`),D2=new RegExp(`^hsla\\(${yl},${vn},${vn},${yl}\\)$`),mp={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};Yf(Al,ml,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:vp,formatHex:vp,formatHex8:j2,formatHsl:k2,formatRgb:_p,toString:_p});function vp(){return this.rgb().formatHex()}function j2(){return this.rgb().formatHex8()}function k2(){return rm(this).formatHsl()}function _p(){return this.rgb().formatRgb()}function ml(n){var i,r;return n=(n+"").trim().toLowerCase(),(i=O2.exec(n))?(r=i[1].length,i=parseInt(i[1],16),r===6?bp(i):r===3?new Me(i>>8&15|i>>4&240,i>>4&15|i&240,(i&15)<<4|i&15,1):r===8?Xu(i>>24&255,i>>16&255,i>>8&255,(i&255)/255):r===4?Xu(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|i&240,((i&15)<<4|i&15)/255):null):(i=M2.exec(n))?new Me(i[1],i[2],i[3],1):(i=C2.exec(n))?new Me(i[1]*255/100,i[2]*255/100,i[3]*255/100,1):(i=N2.exec(n))?Xu(i[1],i[2],i[3],i[4]):(i=z2.exec(n))?Xu(i[1]*255/100,i[2]*255/100,i[3]*255/100,i[4]):(i=R2.exec(n))?Sp(i[1],i[2]/100,i[3]/100,1):(i=D2.exec(n))?Sp(i[1],i[2]/100,i[3]/100,i[4]):mp.hasOwnProperty(n)?bp(mp[n]):n==="transparent"?new Me(NaN,NaN,NaN,0):null}function bp(n){return new Me(n>>16&255,n>>8&255,n&255,1)}function Xu(n,i,r,u){return u<=0&&(n=i=r=NaN),new Me(n,i,r,u)}function U2(n){return n instanceof Al||(n=ml(n)),n?(n=n.rgb(),new Me(n.r,n.g,n.b,n.opacity)):new Me}function _f(n,i,r,u){return arguments.length===1?U2(n):new Me(n,i,r,u??1)}function Me(n,i,r,u){this.r=+n,this.g=+i,this.b=+r,this.opacity=+u}Yf(Me,_f,am(Al,{brighter(n){return n=n==null?as:Math.pow(as,n),new Me(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?pl:Math.pow(pl,n),new Me(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new Me(Ki(this.r),Ki(this.g),Ki(this.b),rs(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:xp,formatHex:xp,formatHex8:q2,formatRgb:wp,toString:wp}));function xp(){return`#${$i(this.r)}${$i(this.g)}${$i(this.b)}`}function q2(){return`#${$i(this.r)}${$i(this.g)}${$i(this.b)}${$i((isNaN(this.opacity)?1:this.opacity)*255)}`}function wp(){const n=rs(this.opacity);return`${n===1?"rgb(":"rgba("}${Ki(this.r)}, ${Ki(this.g)}, ${Ki(this.b)}${n===1?")":`, ${n})`}`}function rs(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Ki(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function $i(n){return n=Ki(n),(n<16?"0":"")+n.toString(16)}function Sp(n,i,r,u){return u<=0?n=i=r=NaN:r<=0||r>=1?n=i=NaN:i<=0&&(n=NaN),new rn(n,i,r,u)}function rm(n){if(n instanceof rn)return new rn(n.h,n.s,n.l,n.opacity);if(n instanceof Al||(n=ml(n)),!n)return new rn;if(n instanceof rn)return n;n=n.rgb();var i=n.r/255,r=n.g/255,u=n.b/255,o=Math.min(i,r,u),c=Math.max(i,r,u),h=NaN,g=c-o,y=(c+o)/2;return g?(i===c?h=(r-u)/g+(r<u)*6:r===c?h=(u-i)/g+2:h=(i-r)/g+4,g/=y<.5?c+o:2-c-o,h*=60):g=y>0&&y<1?0:h,new rn(h,g,y,n.opacity)}function H2(n,i,r,u){return arguments.length===1?rm(n):new rn(n,i,r,u??1)}function rn(n,i,r,u){this.h=+n,this.s=+i,this.l=+r,this.opacity=+u}Yf(rn,H2,am(Al,{brighter(n){return n=n==null?as:Math.pow(as,n),new rn(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?pl:Math.pow(pl,n),new rn(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,i=isNaN(n)||isNaN(this.s)?0:this.s,r=this.l,u=r+(r<.5?r:1-r)*i,o=2*r-u;return new Me(Jc(n>=240?n-240:n+120,o,u),Jc(n,o,u),Jc(n<120?n+240:n-120,o,u),this.opacity)},clamp(){return new rn(Ap(this.h),Vu(this.s),Vu(this.l),rs(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 n=rs(this.opacity);return`${n===1?"hsl(":"hsla("}${Ap(this.h)}, ${Vu(this.s)*100}%, ${Vu(this.l)*100}%${n===1?")":`, ${n})`}`}}));function Ap(n){return n=(n||0)%360,n<0?n+360:n}function Vu(n){return Math.max(0,Math.min(1,n||0))}function Jc(n,i,r){return(n<60?i+(r-i)*n/60:n<180?r:n<240?i+(r-i)*(240-n)/60:i)*255}const lm=n=>()=>n;function L2(n,i){return function(r){return n+r*i}}function B2(n,i,r){return n=Math.pow(n,r),i=Math.pow(i,r)-n,r=1/r,function(u){return Math.pow(n+u*i,r)}}function G2(n){return(n=+n)==1?um:function(i,r){return r-i?B2(i,r,n):lm(isNaN(i)?r:i)}}function um(n,i){var r=i-n;return r?L2(n,r):lm(isNaN(n)?i:n)}const Tp=function n(i){var r=G2(i);function u(o,c){var h=r((o=_f(o)).r,(c=_f(c)).r),g=r(o.g,c.g),y=r(o.b,c.b),p=um(o.opacity,c.opacity);return function(v){return o.r=h(v),o.g=g(v),o.b=y(v),o.opacity=p(v),o+""}}return u.gamma=n,u}(1);function xi(n,i){return n=+n,i=+i,function(r){return n*(1-r)+i*r}}var bf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wc=new RegExp(bf.source,"g");function Q2(n){return function(){return n}}function Y2(n){return function(i){return n(i)+""}}function X2(n,i){var r=bf.lastIndex=Wc.lastIndex=0,u,o,c,h=-1,g=[],y=[];for(n=n+"",i=i+"";(u=bf.exec(n))&&(o=Wc.exec(i));)(c=o.index)>r&&(c=i.slice(r,c),g[h]?g[h]+=c:g[++h]=c),(u=u[0])===(o=o[0])?g[h]?g[h]+=o:g[++h]=o:(g[++h]=null,y.push({i:h,x:xi(u,o)})),r=Wc.lastIndex;return r<i.length&&(c=i.slice(r),g[h]?g[h]+=c:g[++h]=c),g.length<2?y[0]?Y2(y[0].x):Q2(i):(i=y.length,function(p){for(var v=0,m;v<i;++v)g[(m=y[v]).i]=m.x(p);return g.join("")})}var Ep=180/Math.PI,xf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function sm(n,i,r,u,o,c){var h,g,y;return(h=Math.sqrt(n*n+i*i))&&(n/=h,i/=h),(y=n*r+i*u)&&(r-=n*y,u-=i*y),(g=Math.sqrt(r*r+u*u))&&(r/=g,u/=g,y/=g),n*u<i*r&&(n=-n,i=-i,y=-y,h=-h),{translateX:o,translateY:c,rotate:Math.atan2(i,n)*Ep,skewX:Math.atan(y)*Ep,scaleX:h,scaleY:g}}var Zu;function V2(n){const i=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return i.isIdentity?xf:sm(i.a,i.b,i.c,i.d,i.e,i.f)}function Z2(n){return n==null||(Zu||(Zu=document.createElementNS("http://www.w3.org/2000/svg","g")),Zu.setAttribute("transform",n),!(n=Zu.transform.baseVal.consolidate()))?xf:(n=n.matrix,sm(n.a,n.b,n.c,n.d,n.e,n.f))}function om(n,i,r,u){function o(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,x,A){if(p!==m||v!==b){var M=x.push("translate(",null,i,null,r);A.push({i:M-4,x:xi(p,m)},{i:M-2,x:xi(v,b)})}else(m||b)&&x.push("translate("+m+i+b+r)}function h(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(o(m)+"rotate(",null,u)-2,x:xi(p,v)})):v&&m.push(o(m)+"rotate("+v+u)}function g(p,v,m,b){p!==v?b.push({i:m.push(o(m)+"skewX(",null,u)-2,x:xi(p,v)}):v&&m.push(o(m)+"skewX("+v+u)}function y(p,v,m,b,x,A){if(p!==m||v!==b){var M=x.push(o(x)+"scale(",null,",",null,")");A.push({i:M-4,x:xi(p,m)},{i:M-2,x:xi(v,b)})}else(m!==1||b!==1)&&x.push(o(x)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=n(p),v=n(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),h(p.rotate,v.rotate,m,b),g(p.skewX,v.skewX,m,b),y(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(x){for(var A=-1,M=b.length,T;++A<M;)m[(T=b[A]).i]=T.x(x);return m.join("")}}}var $2=om(V2,"px, ","px)","deg)"),K2=om(Z2,", ",")",")"),F2=1e-12;function Op(n){return((n=Math.exp(n))+1/n)/2}function P2(n){return((n=Math.exp(n))-1/n)/2}function J2(n){return((n=Math.exp(2*n))-1)/(n+1)}const W2=function n(i,r,u){function o(c,h){var g=c[0],y=c[1],p=c[2],v=h[0],m=h[1],b=h[2],x=v-g,A=m-y,M=x*x+A*A,T,w;if(M<F2)w=Math.log(b/p)/i,T=function(U){return[g+U*x,y+U*A,p*Math.exp(i*U*w)]};else{var D=Math.sqrt(M),q=(b*b-p*p+u*M)/(2*p*r*D),R=(b*b-p*p-u*M)/(2*b*r*D),C=Math.log(Math.sqrt(q*q+1)-q),H=Math.log(Math.sqrt(R*R+1)-R);w=(H-C)/i,T=function(U){var B=U*w,J=Op(C),W=p/(r*D)*(J*J2(i*B+C)-P2(C));return[g+W*x,y+W*A,p*J/Op(i*B+C)]}}return T.duration=w*1e3*i/Math.SQRT2,T}return o.rho=function(c){var h=Math.max(.001,+c),g=h*h,y=g*g;return n(h,g,y)},o}(Math.SQRT2,2,4);var Fa=0,ll=0,Jr=0,cm=1e3,ls,ul,us=0,Wi=0,ms=0,vl=typeof performance=="object"&&performance.now?performance:Date,fm=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function Xf(){return Wi||(fm(I2),Wi=vl.now()+ms)}function I2(){Wi=0}function ss(){this._call=this._time=this._next=null}ss.prototype=Vf.prototype={constructor:ss,restart:function(n,i,r){if(typeof n!="function")throw new TypeError("callback is not a function");r=(r==null?Xf():+r)+(i==null?0:+i),!this._next&&ul!==this&&(ul?ul._next=this:ls=this,ul=this),this._call=n,this._time=r,wf()},stop:function(){this._call&&(this._call=null,this._time=1/0,wf())}};function Vf(n,i,r){var u=new ss;return u.restart(n,i,r),u}function tw(){Xf(),++Fa;for(var n=ls,i;n;)(i=Wi-n._time)>=0&&n._call.call(void 0,i),n=n._next;--Fa}function Mp(){Wi=(us=vl.now())+ms,Fa=ll=0;try{tw()}finally{Fa=0,nw(),Wi=0}}function ew(){var n=vl.now(),i=n-us;i>cm&&(ms-=i,us=n)}function nw(){for(var n,i=ls,r,u=1/0;i;)i._call?(u>i._time&&(u=i._time),n=i,i=i._next):(r=i._next,i._next=null,i=n?n._next=r:ls=r);ul=n,wf(u)}function wf(n){if(!Fa){ll&&(ll=clearTimeout(ll));var i=n-Wi;i>24?(n<1/0&&(ll=setTimeout(Mp,n-vl.now()-ms)),Jr&&(Jr=clearInterval(Jr))):(Jr||(us=vl.now(),Jr=setInterval(ew,cm)),Fa=1,fm(Mp))}}function Cp(n,i,r){var u=new ss;return i=i==null?0:+i,u.restart(o=>{u.stop(),n(o+i)},i,r),u}var iw=Sl("start","end","cancel","interrupt"),aw=[],hm=0,Np=1,Sf=2,Ju=3,zp=4,Af=5,Wu=6;function vs(n,i,r,u,o,c){var h=n.__transition;if(!h)n.__transition={};else if(r in h)return;rw(n,r,{name:i,index:u,group:o,on:iw,tween:aw,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:hm})}function Zf(n,i){var r=sn(n,i);if(r.state>hm)throw new Error("too late; already scheduled");return r}function bn(n,i){var r=sn(n,i);if(r.state>Ju)throw new Error("too late; already running");return r}function sn(n,i){var r=n.__transition;if(!r||!(r=r[i]))throw new Error("transition not found");return r}function rw(n,i,r){var u=n.__transition,o;u[i]=r,r.timer=Vf(c,0,r.time);function c(p){r.state=Np,r.timer.restart(h,r.delay,r.time),r.delay<=p&&h(p-r.delay)}function h(p){var v,m,b,x;if(r.state!==Np)return y();for(v in u)if(x=u[v],x.name===r.name){if(x.state===Ju)return Cp(h);x.state===zp?(x.state=Wu,x.timer.stop(),x.on.call("interrupt",n,n.__data__,x.index,x.group),delete u[v]):+v<i&&(x.state=Wu,x.timer.stop(),x.on.call("cancel",n,n.__data__,x.index,x.group),delete u[v])}if(Cp(function(){r.state===Ju&&(r.state=zp,r.timer.restart(g,r.delay,r.time),g(p))}),r.state=Sf,r.on.call("start",n,n.__data__,r.index,r.group),r.state===Sf){for(r.state=Ju,o=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(x=r.tween[v].value.call(n,n.__data__,r.index,r.group))&&(o[++m]=x);o.length=m+1}}function g(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(y),r.state=Af,1),m=-1,b=o.length;++m<b;)o[m].call(n,v);r.state===Af&&(r.on.call("end",n,n.__data__,r.index,r.group),y())}function y(){r.state=Wu,r.timer.stop(),delete u[i];for(var p in u)return;delete n.__transition}}function Iu(n,i){var r=n.__transition,u,o,c=!0,h;if(r){i=i==null?null:i+"";for(h in r){if((u=r[h]).name!==i){c=!1;continue}o=u.state>Sf&&u.state<Af,u.state=Wu,u.timer.stop(),u.on.call(o?"interrupt":"cancel",n,n.__data__,u.index,u.group),delete r[h]}c&&delete n.__transition}}function lw(n){return this.each(function(){Iu(this,n)})}function uw(n,i){var r,u;return function(){var o=bn(this,n),c=o.tween;if(c!==r){u=r=c;for(var h=0,g=u.length;h<g;++h)if(u[h].name===i){u=u.slice(),u.splice(h,1);break}}o.tween=u}}function sw(n,i,r){var u,o;if(typeof r!="function")throw new Error;return function(){var c=bn(this,n),h=c.tween;if(h!==u){o=(u=h).slice();for(var g={name:i,value:r},y=0,p=o.length;y<p;++y)if(o[y].name===i){o[y]=g;break}y===p&&o.push(g)}c.tween=o}}function ow(n,i){var r=this._id;if(n+="",arguments.length<2){for(var u=sn(this.node(),r).tween,o=0,c=u.length,h;o<c;++o)if((h=u[o]).name===n)return h.value;return null}return this.each((i==null?uw:sw)(r,n,i))}function $f(n,i,r){var u=n._id;return n.each(function(){var o=bn(this,u);(o.value||(o.value={}))[i]=r.apply(this,arguments)}),function(o){return sn(o,u).value[i]}}function dm(n,i){var r;return(typeof i=="number"?xi:i instanceof ml?Tp:(r=ml(i))?(i=r,Tp):X2)(n,i)}function cw(n){return function(){this.removeAttribute(n)}}function fw(n){return function(){this.removeAttributeNS(n.space,n.local)}}function hw(n,i,r){var u,o=r+"",c;return function(){var h=this.getAttribute(n);return h===o?null:h===u?c:c=i(u=h,r)}}function dw(n,i,r){var u,o=r+"",c;return function(){var h=this.getAttributeNS(n.space,n.local);return h===o?null:h===u?c:c=i(u=h,r)}}function gw(n,i,r){var u,o,c;return function(){var h,g=r(this),y;return g==null?void this.removeAttribute(n):(h=this.getAttribute(n),y=g+"",h===y?null:h===u&&y===o?c:(o=y,c=i(u=h,g)))}}function pw(n,i,r){var u,o,c;return function(){var h,g=r(this),y;return g==null?void this.removeAttributeNS(n.space,n.local):(h=this.getAttributeNS(n.space,n.local),y=g+"",h===y?null:h===u&&y===o?c:(o=y,c=i(u=h,g)))}}function yw(n,i){var r=ys(n),u=r==="transform"?K2:dm;return this.attrTween(n,typeof i=="function"?(r.local?pw:gw)(r,u,$f(this,"attr."+n,i)):i==null?(r.local?fw:cw)(r):(r.local?dw:hw)(r,u,i))}function mw(n,i){return function(r){this.setAttribute(n,i.call(this,r))}}function vw(n,i){return function(r){this.setAttributeNS(n.space,n.local,i.call(this,r))}}function _w(n,i){var r,u;function o(){var c=i.apply(this,arguments);return c!==u&&(r=(u=c)&&vw(n,c)),r}return o._value=i,o}function bw(n,i){var r,u;function o(){var c=i.apply(this,arguments);return c!==u&&(r=(u=c)&&mw(n,c)),r}return o._value=i,o}function xw(n,i){var r="attr."+n;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(i==null)return this.tween(r,null);if(typeof i!="function")throw new Error;var u=ys(n);return this.tween(r,(u.local?_w:bw)(u,i))}function ww(n,i){return function(){Zf(this,n).delay=+i.apply(this,arguments)}}function Sw(n,i){return i=+i,function(){Zf(this,n).delay=i}}function Aw(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?ww:Sw)(i,n)):sn(this.node(),i).delay}function Tw(n,i){return function(){bn(this,n).duration=+i.apply(this,arguments)}}function Ew(n,i){return i=+i,function(){bn(this,n).duration=i}}function Ow(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?Tw:Ew)(i,n)):sn(this.node(),i).duration}function Mw(n,i){if(typeof i!="function")throw new Error;return function(){bn(this,n).ease=i}}function Cw(n){var i=this._id;return arguments.length?this.each(Mw(i,n)):sn(this.node(),i).ease}function Nw(n,i){return function(){var r=i.apply(this,arguments);if(typeof r!="function")throw new Error;bn(this,n).ease=r}}function zw(n){if(typeof n!="function")throw new Error;return this.each(Nw(this._id,n))}function Rw(n){typeof n!="function"&&(n=Zy(n));for(var i=this._groups,r=i.length,u=new Array(r),o=0;o<r;++o)for(var c=i[o],h=c.length,g=u[o]=[],y,p=0;p<h;++p)(y=c[p])&&n.call(y,y.__data__,p,c)&&g.push(y);return new Fn(u,this._parents,this._name,this._id)}function Dw(n){if(n._id!==this._id)throw new Error;for(var i=this._groups,r=n._groups,u=i.length,o=r.length,c=Math.min(u,o),h=new Array(u),g=0;g<c;++g)for(var y=i[g],p=r[g],v=y.length,m=h[g]=new Array(v),b,x=0;x<v;++x)(b=y[x]||p[x])&&(m[x]=b);for(;g<u;++g)h[g]=i[g];return new Fn(h,this._parents,this._name,this._id)}function jw(n){return(n+"").trim().split(/^|\s+/).every(function(i){var r=i.indexOf(".");return r>=0&&(i=i.slice(0,r)),!i||i==="start"})}function kw(n,i,r){var u,o,c=jw(i)?Zf:bn;return function(){var h=c(this,n),g=h.on;g!==u&&(o=(u=g).copy()).on(i,r),h.on=o}}function Uw(n,i){var r=this._id;return arguments.length<2?sn(this.node(),r).on.on(n):this.each(kw(r,n,i))}function qw(n){return function(){var i=this.parentNode;for(var r in this.__transition)if(+r!==n)return;i&&i.removeChild(this)}}function Hw(){return this.on("end.remove",qw(this._id))}function Lw(n){var i=this._name,r=this._id;typeof n!="function"&&(n=Gf(n));for(var u=this._groups,o=u.length,c=new Array(o),h=0;h<o;++h)for(var g=u[h],y=g.length,p=c[h]=new Array(y),v,m,b=0;b<y;++b)(v=g[b])&&(m=n.call(v,v.__data__,b,g))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,vs(p[b],i,r,b,p,sn(v,r)));return new Fn(c,this._parents,i,r)}function Bw(n){var i=this._name,r=this._id;typeof n!="function"&&(n=Vy(n));for(var u=this._groups,o=u.length,c=[],h=[],g=0;g<o;++g)for(var y=u[g],p=y.length,v,m=0;m<p;++m)if(v=y[m]){for(var b=n.call(v,v.__data__,m,y),x,A=sn(v,r),M=0,T=b.length;M<T;++M)(x=b[M])&&vs(x,i,r,M,b,A);c.push(b),h.push(v)}return new Fn(c,h,i,r)}var Gw=wl.prototype.constructor;function Qw(){return new Gw(this._groups,this._parents)}function Yw(n,i){var r,u,o;return function(){var c=Ka(this,n),h=(this.style.removeProperty(n),Ka(this,n));return c===h?null:c===r&&h===u?o:o=i(r=c,u=h)}}function gm(n){return function(){this.style.removeProperty(n)}}function Xw(n,i,r){var u,o=r+"",c;return function(){var h=Ka(this,n);return h===o?null:h===u?c:c=i(u=h,r)}}function Vw(n,i,r){var u,o,c;return function(){var h=Ka(this,n),g=r(this),y=g+"";return g==null&&(y=g=(this.style.removeProperty(n),Ka(this,n))),h===y?null:h===u&&y===o?c:(o=y,c=i(u=h,g))}}function Zw(n,i){var r,u,o,c="style."+i,h="end."+c,g;return function(){var y=bn(this,n),p=y.on,v=y.value[c]==null?g||(g=gm(i)):void 0;(p!==r||o!==v)&&(u=(r=p).copy()).on(h,o=v),y.on=u}}function $w(n,i,r){var u=(n+="")=="transform"?$2:dm;return i==null?this.styleTween(n,Yw(n,u)).on("end.style."+n,gm(n)):typeof i=="function"?this.styleTween(n,Vw(n,u,$f(this,"style."+n,i))).each(Zw(this._id,n)):this.styleTween(n,Xw(n,u,i),r).on("end.style."+n,null)}function Kw(n,i,r){return function(u){this.style.setProperty(n,i.call(this,u),r)}}function Fw(n,i,r){var u,o;function c(){var h=i.apply(this,arguments);return h!==o&&(u=(o=h)&&Kw(n,h,r)),u}return c._value=i,c}function Pw(n,i,r){var u="style."+(n+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(i==null)return this.tween(u,null);if(typeof i!="function")throw new Error;return this.tween(u,Fw(n,i,r??""))}function Jw(n){return function(){this.textContent=n}}function Ww(n){return function(){var i=n(this);this.textContent=i??""}}function Iw(n){return this.tween("text",typeof n=="function"?Ww($f(this,"text",n)):Jw(n==null?"":n+""))}function tS(n){return function(i){this.textContent=n.call(this,i)}}function eS(n){var i,r;function u(){var o=n.apply(this,arguments);return o!==r&&(i=(r=o)&&tS(o)),i}return u._value=n,u}function nS(n){var i="text";if(arguments.length<1)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;return this.tween(i,eS(n))}function iS(){for(var n=this._name,i=this._id,r=pm(),u=this._groups,o=u.length,c=0;c<o;++c)for(var h=u[c],g=h.length,y,p=0;p<g;++p)if(y=h[p]){var v=sn(y,i);vs(y,n,r,p,h,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Fn(u,this._parents,n,r)}function aS(){var n,i,r=this,u=r._id,o=r.size();return new Promise(function(c,h){var g={value:h},y={value:function(){--o===0&&c()}};r.each(function(){var p=bn(this,u),v=p.on;v!==n&&(i=(n=v).copy(),i._.cancel.push(g),i._.interrupt.push(g),i._.end.push(y)),p.on=i}),o===0&&c()})}var rS=0;function Fn(n,i,r,u){this._groups=n,this._parents=i,this._name=r,this._id=u}function pm(){return++rS}var Gn=wl.prototype;Fn.prototype={constructor:Fn,select:Lw,selectAll:Bw,selectChild:Gn.selectChild,selectChildren:Gn.selectChildren,filter:Rw,merge:Dw,selection:Qw,transition:iS,call:Gn.call,nodes:Gn.nodes,node:Gn.node,size:Gn.size,empty:Gn.empty,each:Gn.each,on:Uw,attr:yw,attrTween:xw,style:$w,styleTween:Pw,text:Iw,textTween:nS,remove:Hw,tween:ow,delay:Aw,duration:Ow,ease:Cw,easeVarying:zw,end:aS,[Symbol.iterator]:Gn[Symbol.iterator]};function lS(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var uS={time:null,delay:0,duration:250,ease:lS};function sS(n,i){for(var r;!(r=n.__transition)||!(r=r[i]);)if(!(n=n.parentNode))throw new Error(`transition ${i} not found`);return r}function oS(n){var i,r;n instanceof Fn?(i=n._id,n=n._name):(i=pm(),(r=uS).time=Xf(),n=n==null?null:n+"");for(var u=this._groups,o=u.length,c=0;c<o;++c)for(var h=u[c],g=h.length,y,p=0;p<g;++p)(y=h[p])&&vs(y,n,i,p,h,r||sS(y,i));return new Fn(u,this._parents,n,i)}wl.prototype.interrupt=lw;wl.prototype.transition=oS;const $u=n=>()=>n;function cS(n,{sourceEvent:i,target:r,transform:u,dispatch:o}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:u,enumerable:!0,configurable:!0},_:{value:o}})}function Zn(n,i,r){this.k=n,this.x=i,this.y=r}Zn.prototype={constructor:Zn,scale:function(n){return n===1?this:new Zn(this.k*n,this.x,this.y)},translate:function(n,i){return n===0&i===0?this:new Zn(this.k,this.x+this.k*n,this.y+this.k*i)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Kf=new Zn(1,0,0);pn.prototype=Zn.prototype;function pn(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Kf;return n.__zoom}function Ic(n){n.stopImmediatePropagation()}function Wr(n){n.preventDefault(),n.stopImmediatePropagation()}function fS(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function hS(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function Rp(){return this.__zoom||Kf}function dS(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function gS(){return navigator.maxTouchPoints||"ontouchstart"in this}function pS(n,i,r){var u=n.invertX(i[0][0])-r[0][0],o=n.invertX(i[1][0])-r[1][0],c=n.invertY(i[0][1])-r[0][1],h=n.invertY(i[1][1])-r[1][1];return n.translate(o>u?(u+o)/2:Math.min(0,u)||Math.max(0,o),h>c?(c+h)/2:Math.min(0,c)||Math.max(0,h))}function yS(){var n=fS,i=hS,r=pS,u=dS,o=gS,c=[0,1/0],h=[[-1/0,-1/0],[1/0,1/0]],g=250,y=W2,p=Sl("start","zoom","end"),v,m,b,x=500,A=150,M=0,T=10;function w(G){G.property("__zoom",Rp).on("wheel.zoom",B,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",W).filter(o).on("touchstart.zoom",et).on("touchmove.zoom",lt).on("touchend.zoom touchcancel.zoom",ft).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(G,I,z,$){var nt=G.selection?G.selection():G;nt.property("__zoom",Rp),G!==nt?C(G,I,z,$):nt.interrupt().each(function(){H(this,arguments).event($).start().zoom(null,typeof I=="function"?I.apply(this,arguments):I).end()})},w.scaleBy=function(G,I,z,$){w.scaleTo(G,function(){var nt=this.__zoom.k,ut=typeof I=="function"?I.apply(this,arguments):I;return nt*ut},z,$)},w.scaleTo=function(G,I,z,$){w.transform(G,function(){var nt=i.apply(this,arguments),ut=this.__zoom,E=z==null?R(nt):typeof z=="function"?z.apply(this,arguments):z,Z=ut.invert(E),tt=typeof I=="function"?I.apply(this,arguments):I;return r(q(D(ut,tt),E,Z),nt,h)},z,$)},w.translateBy=function(G,I,z,$){w.transform(G,function(){return r(this.__zoom.translate(typeof I=="function"?I.apply(this,arguments):I,typeof z=="function"?z.apply(this,arguments):z),i.apply(this,arguments),h)},null,$)},w.translateTo=function(G,I,z,$,nt){w.transform(G,function(){var ut=i.apply(this,arguments),E=this.__zoom,Z=$==null?R(ut):typeof $=="function"?$.apply(this,arguments):$;return r(Kf.translate(Z[0],Z[1]).scale(E.k).translate(typeof I=="function"?-I.apply(this,arguments):-I,typeof z=="function"?-z.apply(this,arguments):-z),ut,h)},$,nt)};function D(G,I){return I=Math.max(c[0],Math.min(c[1],I)),I===G.k?G:new Zn(I,G.x,G.y)}function q(G,I,z){var $=I[0]-z[0]*G.k,nt=I[1]-z[1]*G.k;return $===G.x&&nt===G.y?G:new Zn(G.k,$,nt)}function R(G){return[(+G[0][0]+ +G[1][0])/2,(+G[0][1]+ +G[1][1])/2]}function C(G,I,z,$){G.on("start.zoom",function(){H(this,arguments).event($).start()}).on("interrupt.zoom end.zoom",function(){H(this,arguments).event($).end()}).tween("zoom",function(){var nt=this,ut=arguments,E=H(nt,ut).event($),Z=i.apply(nt,ut),tt=z==null?R(Z):typeof z=="function"?z.apply(nt,ut):z,it=Math.max(Z[1][0]-Z[0][0],Z[1][1]-Z[0][1]),st=nt.__zoom,yt=typeof I=="function"?I.apply(nt,ut):I,ht=y(st.invert(tt).concat(it/st.k),yt.invert(tt).concat(it/yt.k));return function(Ct){if(Ct===1)Ct=yt;else{var At=ht(Ct),pe=it/At[2];Ct=new Zn(pe,tt[0]-At[0]*pe,tt[1]-At[1]*pe)}E.zoom(null,Ct)}})}function H(G,I,z){return!z&&G.__zooming||new U(G,I)}function U(G,I){this.that=G,this.args=I,this.active=0,this.sourceEvent=null,this.extent=i.apply(G,I),this.taps=0}U.prototype={event:function(G){return G&&(this.sourceEvent=G),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(G,I){return this.mouse&&G!=="mouse"&&(this.mouse[1]=I.invert(this.mouse[0])),this.touch0&&G!=="touch"&&(this.touch0[1]=I.invert(this.touch0[0])),this.touch1&&G!=="touch"&&(this.touch1[1]=I.invert(this.touch1[0])),this.that.__zoom=I,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(G){var I=Je(this.that).datum();p.call(G,this.that,new cS(G,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:p}),I)}};function B(G,...I){if(!n.apply(this,arguments))return;var z=H(this,I).event(G),$=this.__zoom,nt=Math.max(c[0],Math.min(c[1],$.k*Math.pow(2,u.apply(this,arguments)))),ut=yn(G);if(z.wheel)(z.mouse[0][0]!==ut[0]||z.mouse[0][1]!==ut[1])&&(z.mouse[1]=$.invert(z.mouse[0]=ut)),clearTimeout(z.wheel);else{if($.k===nt)return;z.mouse=[ut,$.invert(ut)],Iu(this),z.start()}Wr(G),z.wheel=setTimeout(E,A),z.zoom("mouse",r(q(D($,nt),z.mouse[0],z.mouse[1]),z.extent,h));function E(){z.wheel=null,z.end()}}function J(G,...I){if(b||!n.apply(this,arguments))return;var z=G.currentTarget,$=H(this,I,!0).event(G),nt=Je(G.view).on("mousemove.zoom",tt,!0).on("mouseup.zoom",it,!0),ut=yn(G,z),E=G.clientX,Z=G.clientY;nm(G.view),Ic(G),$.mouse=[ut,this.__zoom.invert(ut)],Iu(this),$.start();function tt(st){if(Wr(st),!$.moved){var yt=st.clientX-E,ht=st.clientY-Z;$.moved=yt*yt+ht*ht>M}$.event(st).zoom("mouse",r(q($.that.__zoom,$.mouse[0]=yn(st,z),$.mouse[1]),$.extent,h))}function it(st){nt.on("mousemove.zoom mouseup.zoom",null),im(st.view,$.moved),Wr(st),$.event(st).end()}}function W(G,...I){if(n.apply(this,arguments)){var z=this.__zoom,$=yn(G.changedTouches?G.changedTouches[0]:G,this),nt=z.invert($),ut=z.k*(G.shiftKey?.5:2),E=r(q(D(z,ut),$,nt),i.apply(this,I),h);Wr(G),g>0?Je(this).transition().duration(g).call(C,E,$,G):Je(this).call(w.transform,E,$,G)}}function et(G,...I){if(n.apply(this,arguments)){var z=G.touches,$=z.length,nt=H(this,I,G.changedTouches.length===$).event(G),ut,E,Z,tt;for(Ic(G),E=0;E<$;++E)Z=z[E],tt=yn(Z,this),tt=[tt,this.__zoom.invert(tt),Z.identifier],nt.touch0?!nt.touch1&&nt.touch0[2]!==tt[2]&&(nt.touch1=tt,nt.taps=0):(nt.touch0=tt,ut=!0,nt.taps=1+!!v);v&&(v=clearTimeout(v)),ut&&(nt.taps<2&&(m=tt[0],v=setTimeout(function(){v=null},x)),Iu(this),nt.start())}}function lt(G,...I){if(this.__zooming){var z=H(this,I).event(G),$=G.changedTouches,nt=$.length,ut,E,Z,tt;for(Wr(G),ut=0;ut<nt;++ut)E=$[ut],Z=yn(E,this),z.touch0&&z.touch0[2]===E.identifier?z.touch0[0]=Z:z.touch1&&z.touch1[2]===E.identifier&&(z.touch1[0]=Z);if(E=z.that.__zoom,z.touch1){var it=z.touch0[0],st=z.touch0[1],yt=z.touch1[0],ht=z.touch1[1],Ct=(Ct=yt[0]-it[0])*Ct+(Ct=yt[1]-it[1])*Ct,At=(At=ht[0]-st[0])*At+(At=ht[1]-st[1])*At;E=D(E,Math.sqrt(Ct/At)),Z=[(it[0]+yt[0])/2,(it[1]+yt[1])/2],tt=[(st[0]+ht[0])/2,(st[1]+ht[1])/2]}else if(z.touch0)Z=z.touch0[0],tt=z.touch0[1];else return;z.zoom("touch",r(q(E,Z,tt),z.extent,h))}}function ft(G,...I){if(this.__zooming){var z=H(this,I).event(G),$=G.changedTouches,nt=$.length,ut,E;for(Ic(G),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),ut=0;ut<nt;++ut)E=$[ut],z.touch0&&z.touch0[2]===E.identifier?delete z.touch0:z.touch1&&z.touch1[2]===E.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),z.taps===2&&(E=yn(E,this),Math.hypot(m[0]-E[0],m[1]-E[1])<T)){var Z=Je(this).on("dblclick.zoom");Z&&Z.apply(this,arguments)}}}return w.wheelDelta=function(G){return arguments.length?(u=typeof G=="function"?G:$u(+G),w):u},w.filter=function(G){return arguments.length?(n=typeof G=="function"?G:$u(!!G),w):n},w.touchable=function(G){return arguments.length?(o=typeof G=="function"?G:$u(!!G),w):o},w.extent=function(G){return arguments.length?(i=typeof G=="function"?G:$u([[+G[0][0],+G[0][1]],[+G[1][0],+G[1][1]]]),w):i},w.scaleExtent=function(G){return arguments.length?(c[0]=+G[0],c[1]=+G[1],w):[c[0],c[1]]},w.translateExtent=function(G){return arguments.length?(h[0][0]=+G[0][0],h[1][0]=+G[1][0],h[0][1]=+G[0][1],h[1][1]=+G[1][1],w):[[h[0][0],h[0][1]],[h[1][0],h[1][1]]]},w.constrain=function(G){return arguments.length?(r=G,w):r},w.duration=function(G){return arguments.length?(g=+G,w):g},w.interpolate=function(G){return arguments.length?(y=G,w):y},w.on=function(){var G=p.on.apply(p,arguments);return G===p?w:G},w.clickDistance=function(G){return arguments.length?(M=(G=+G)*G,w):Math.sqrt(M)},w.tapDistance=function(G){return arguments.length?(T=+G,w):T},w}class Dp extends Map{constructor(i,r=_S){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),i!=null)for(const[u,o]of i)this.set(u,o)}get(i){return super.get(jp(this,i))}has(i){return super.has(jp(this,i))}set(i,r){return super.set(mS(this,i),r)}delete(i){return super.delete(vS(this,i))}}function jp({_intern:n,_key:i},r){const u=i(r);return n.has(u)?n.get(u):r}function mS({_intern:n,_key:i},r){const u=i(r);return n.has(u)?n.get(u):(n.set(u,r),r)}function vS({_intern:n,_key:i},r){const u=i(r);return n.has(u)&&(r=n.get(u),n.delete(u)),r}function _S(n){return n!==null&&typeof n=="object"?n.valueOf():n}function kp(n,i){let r;if(i===void 0)for(const u of n)u!=null&&(r<u||r===void 0&&u>=u)&&(r=u);else{let u=-1;for(let o of n)(o=i(o,++u,n))!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}return r}function Up(n,i){let r;if(i===void 0)for(const u of n)u!=null&&(r>u||r===void 0&&u>=u)&&(r=u);else{let u=-1;for(let o of n)(o=i(o,++u,n))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function bS(n,i){let r=0;for(let u of n)(u=+u)&&(r+=u);return r}var xS=typeof global=="object"&&global&&global.Object===Object&&global,wS=typeof self=="object"&&self&&self.Object===Object&&self,ym=xS||wS||Function("return this")(),os=ym.Symbol,mm=Object.prototype,SS=mm.hasOwnProperty,AS=mm.toString,Ir=os?os.toStringTag:void 0;function TS(n){var i=SS.call(n,Ir),r=n[Ir];try{n[Ir]=void 0;var u=!0}catch{}var o=AS.call(n);return u&&(i?n[Ir]=r:delete n[Ir]),o}var ES=Object.prototype,OS=ES.toString;function MS(n){return OS.call(n)}var CS="[object Null]",NS="[object Undefined]",qp=os?os.toStringTag:void 0;function zS(n){return n==null?n===void 0?NS:CS:qp&&qp in Object(n)?TS(n):MS(n)}function RS(n){return n!=null&&typeof n=="object"}var DS="[object Symbol]";function jS(n){return typeof n=="symbol"||RS(n)&&zS(n)==DS}var kS=/\s/;function US(n){for(var i=n.length;i--&&kS.test(n.charAt(i)););return i}var qS=/^\s+/;function HS(n){return n&&n.slice(0,US(n)+1).replace(qS,"")}function cs(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}var Hp=NaN,LS=/^[-+]0x[0-9a-f]+$/i,BS=/^0b[01]+$/i,GS=/^0o[0-7]+$/i,QS=parseInt;function Lp(n){if(typeof n=="number")return n;if(jS(n))return Hp;if(cs(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=cs(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=HS(n);var r=BS.test(n);return r||GS.test(n)?QS(n.slice(2),r?2:8):LS.test(n)?Hp:+n}var tf=function(){return ym.Date.now()},YS="Expected a function",XS=Math.max,VS=Math.min;function vm(n,i,r){var u,o,c,h,g,y,p=0,v=!1,m=!1,b=!0;if(typeof n!="function")throw new TypeError(YS);i=Lp(i)||0,cs(r)&&(v=!!r.leading,m="maxWait"in r,c=m?XS(Lp(r.maxWait)||0,i):c,b="trailing"in r?!!r.trailing:b);function x(H){var U=u,B=o;return u=o=void 0,p=H,h=n.apply(B,U),h}function A(H){return p=H,g=setTimeout(w,i),v?x(H):h}function M(H){var U=H-y,B=H-p,J=i-U;return m?VS(J,c-B):J}function T(H){var U=H-y,B=H-p;return y===void 0||U>=i||U<0||m&&B>=c}function w(){var H=tf();if(T(H))return D(H);g=setTimeout(w,M(H))}function D(H){return g=void 0,b&&u?x(H):(u=o=void 0,h)}function q(){g!==void 0&&clearTimeout(g),p=0,u=y=o=g=void 0}function R(){return g===void 0?h:D(tf())}function C(){var H=tf(),U=T(H);if(u=arguments,o=this,y=H,U){if(g===void 0)return A(y);if(m)return clearTimeout(g),g=setTimeout(w,i),x(y)}return g===void 0&&(g=setTimeout(w,i)),h}return C.cancel=q,C.flush=R,C}var ZS="Expected a function";function $S(n,i,r){var u=!0,o=!0;if(typeof n!="function")throw new TypeError(ZS);return cs(r)&&(u="leading"in r?!!r.leading:u,o="trailing"in r?!!r.trailing:o),vm(n,i,{leading:u,maxWait:i,trailing:o})}var Fi=Object.freeze({Linear:Object.freeze({None:function(n){return n},In:function(n){return n},Out:function(n){return n},InOut:function(n){return n}}),Quadratic:Object.freeze({In:function(n){return n*n},Out:function(n){return n*(2-n)},InOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)}}),Cubic:Object.freeze({In:function(n){return n*n*n},Out:function(n){return--n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)}}),Quartic:Object.freeze({In:function(n){return n*n*n*n},Out:function(n){return 1- --n*n*n*n},InOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)}}),Quintic:Object.freeze({In:function(n){return n*n*n*n*n},Out:function(n){return--n*n*n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)}}),Sinusoidal:Object.freeze({In:function(n){return 1-Math.sin((1-n)*Math.PI/2)},Out:function(n){return Math.sin(n*Math.PI/2)},InOut:function(n){return .5*(1-Math.sin(Math.PI*(.5-n)))}}),Exponential:Object.freeze({In:function(n){return n===0?0:Math.pow(1024,n-1)},Out:function(n){return n===1?1:1-Math.pow(2,-10*n)},InOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)}}),Circular:Object.freeze({In:function(n){return 1-Math.sqrt(1-n*n)},Out:function(n){return Math.sqrt(1- --n*n)},InOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)}}),Elastic:Object.freeze({In:function(n){return n===0?0:n===1?1:-Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI)},Out:function(n){return n===0?0:n===1?1:Math.pow(2,-10*n)*Math.sin((n-.1)*5*Math.PI)+1},InOut:function(n){return n===0?0:n===1?1:(n*=2,n<1?-.5*Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI):.5*Math.pow(2,-10*(n-1))*Math.sin((n-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(n){var i=1.70158;return n===1?1:n*n*((i+1)*n-i)},Out:function(n){var i=1.70158;return n===0?0:--n*n*((i+1)*n+i)+1},InOut:function(n){var i=2.5949095;return(n*=2)<1?.5*(n*n*((i+1)*n-i)):.5*((n-=2)*n*((i+1)*n+i)+2)}}),Bounce:Object.freeze({In:function(n){return 1-Fi.Bounce.Out(1-n)},Out:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},InOut:function(n){return n<.5?Fi.Bounce.In(n*2)*.5:Fi.Bounce.Out(n*2-1)*.5+.5}}),generatePow:function(n){return n===void 0&&(n=4),n=n<Number.EPSILON?Number.EPSILON:n,n=n>1e4?1e4:n,{In:function(i){return Math.pow(i,n)},Out:function(i){return 1-Math.pow(1-i,n)},InOut:function(i){return i<.5?Math.pow(i*2,n)/2:(1-Math.pow(2-i*2,n))/2+.5}}}}),sl=function(){return performance.now()},_m=function(){function n(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,i)}return n.prototype.getAll=function(){var i=this;return Object.keys(this._tweens).map(function(r){return i._tweens[r]})},n.prototype.removeAll=function(){this._tweens={}},n.prototype.add=function(){for(var i,r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];for(var o=0,c=r;o<c.length;o++){var h=c[o];(i=h._group)===null||i===void 0||i.remove(h),h._group=this,this._tweens[h.getId()]=h,this._tweensAddedDuringUpdate[h.getId()]=h}},n.prototype.remove=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];for(var u=0,o=i;u<o.length;u++){var c=o[u];c._group=void 0,delete this._tweens[c.getId()],delete this._tweensAddedDuringUpdate[c.getId()]}},n.prototype.allStopped=function(){return this.getAll().every(function(i){return!i.isPlaying()})},n.prototype.update=function(i,r){i===void 0&&(i=sl()),r===void 0&&(r=!0);var u=Object.keys(this._tweens);if(u.length!==0)for(;u.length>0;){this._tweensAddedDuringUpdate={};for(var o=0;o<u.length;o++){var c=this._tweens[u[o]],h=!r;c&&c.update(i,h)===!1&&!r&&this.remove(c)}u=Object.keys(this._tweensAddedDuringUpdate)}},n}(),Tf={Linear:function(n,i){var r=n.length-1,u=r*i,o=Math.floor(u),c=Tf.Utils.Linear;return i<0?c(n[0],n[1],u):i>1?c(n[r],n[r-1],r-u):c(n[o],n[o+1>r?r:o+1],u-o)},Utils:{Linear:function(n,i,r){return(i-n)*r+n}}},bm=function(){function n(){}return n.nextId=function(){return n._nextId++},n._nextId=0,n}(),Ef=new _m,Bp=function(){function n(i,r){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Fi.Linear.None,this._interpolationFunction=Tf.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=bm.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=i,typeof r=="object"?(this._group=r,r.add(this)):r===!0&&(this._group=Ef,Ef.add(this))}return n.prototype.getId=function(){return this._id},n.prototype.isPlaying=function(){return this._isPlaying},n.prototype.isPaused=function(){return this._isPaused},n.prototype.getDuration=function(){return this._duration},n.prototype.to=function(i,r){if(r===void 0&&(r=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=i,this._propertiesAreSetUp=!1,this._duration=r<0?0:r,this},n.prototype.duration=function(i){return i===void 0&&(i=1e3),this._duration=i<0?0:i,this},n.prototype.dynamic=function(i){return i===void 0&&(i=!1),this._isDynamic=i,this},n.prototype.start=function(i,r){if(i===void 0&&(i=sl()),r===void 0&&(r=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var u in this._valuesStartRepeat)this._swapEndStartRepeatValues(u),this._valuesStart[u]=this._valuesStartRepeat[u]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=i,this._startTime+=this._delayTime,!this._propertiesAreSetUp||r){if(this._propertiesAreSetUp=!0,!this._isDynamic){var o={};for(var c in this._valuesEnd)o[c]=this._valuesEnd[c];this._valuesEnd=o}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,r)}return this},n.prototype.startFromCurrentValues=function(i){return this.start(i,!0)},n.prototype._setupProperties=function(i,r,u,o,c){for(var h in u){var g=i[h],y=Array.isArray(g),p=y?"array":typeof g,v=!y&&Array.isArray(u[h]);if(!(p==="undefined"||p==="function")){if(v){var m=u[h];if(m.length===0)continue;for(var b=[g],x=0,A=m.length;x<A;x+=1){var M=this._handleRelativeValue(g,m[x]);if(isNaN(M)){v=!1,console.warn("Found invalid interpolation list. Skipping.");break}b.push(M)}v&&(u[h]=b)}if((p==="object"||y)&&g&&!v){r[h]=y?[]:{};var T=g;for(var w in T)r[h][w]=T[w];o[h]=y?[]:{};var m=u[h];if(!this._isDynamic){var D={};for(var w in m)D[w]=m[w];u[h]=m=D}this._setupProperties(T,r[h],m,o[h],c)}else(typeof r[h]>"u"||c)&&(r[h]=g),y||(r[h]*=1),v?o[h]=u[h].slice().reverse():o[h]=r[h]||0}}},n.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},n.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},n.prototype.pause=function(i){return i===void 0&&(i=sl()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=i,this)},n.prototype.resume=function(i){return i===void 0&&(i=sl()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=i-this._pauseStart,this._pauseStart=0,this)},n.prototype.stopChainedTweens=function(){for(var i=0,r=this._chainedTweens.length;i<r;i++)this._chainedTweens[i].stop();return this},n.prototype.group=function(i){return i?(i.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},n.prototype.remove=function(){var i;return(i=this._group)===null||i===void 0||i.remove(this),this},n.prototype.delay=function(i){return i===void 0&&(i=0),this._delayTime=i,this},n.prototype.repeat=function(i){return i===void 0&&(i=0),this._initialRepeat=i,this._repeat=i,this},n.prototype.repeatDelay=function(i){return this._repeatDelayTime=i,this},n.prototype.yoyo=function(i){return i===void 0&&(i=!1),this._yoyo=i,this},n.prototype.easing=function(i){return i===void 0&&(i=Fi.Linear.None),this._easingFunction=i,this},n.prototype.interpolation=function(i){return i===void 0&&(i=Tf.Linear),this._interpolationFunction=i,this},n.prototype.chain=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return this._chainedTweens=i,this},n.prototype.onStart=function(i){return this._onStartCallback=i,this},n.prototype.onEveryStart=function(i){return this._onEveryStartCallback=i,this},n.prototype.onUpdate=function(i){return this._onUpdateCallback=i,this},n.prototype.onRepeat=function(i){return this._onRepeatCallback=i,this},n.prototype.onComplete=function(i){return this._onCompleteCallback=i,this},n.prototype.onStop=function(i){return this._onStopCallback=i,this},n.prototype.update=function(i,r){var u=this,o;if(i===void 0&&(i=sl()),r===void 0&&(r=n.autoStartOnUpdate),this._isPaused)return!0;var c;if(!this._goToEnd&&!this._isPlaying)if(r)this.start(i,!0);else return!1;if(this._goToEnd=!1,i<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 h=i-this._startTime,g=this._duration+((o=this._repeatDelayTime)!==null&&o!==void 0?o:this._delayTime),y=this._duration+this._repeat*g,p=function(){if(u._duration===0||h>y)return 1;var M=Math.trunc(h/g),T=h-M*g,w=Math.min(T/u._duration,1);return w===0&&h===u._duration?1:w},v=p(),m=this._easingFunction(v);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,m),this._onUpdateCallback&&this._onUpdateCallback(this._object,v),this._duration===0||h>=this._duration)if(this._repeat>0){var b=Math.min(Math.trunc((h-this._duration)/g)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=b);for(c in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[c]=="string"&&(this._valuesStartRepeat[c]=this._valuesStartRepeat[c]+parseFloat(this._valuesEnd[c])),this._yoyo&&this._swapEndStartRepeatValues(c),this._valuesStart[c]=this._valuesStartRepeat[c];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=g*b,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var x=0,A=this._chainedTweens.length;x<A;x++)this._chainedTweens[x].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},n.prototype._updateProperties=function(i,r,u,o){for(var c in u)if(r[c]!==void 0){var h=r[c]||0,g=u[c],y=Array.isArray(i[c]),p=Array.isArray(g),v=!y&&p;v?i[c]=this._interpolationFunction(g,o):typeof g=="object"&&g?this._updateProperties(i[c],h,g,o):(g=this._handleRelativeValue(h,g),typeof g=="number"&&(i[c]=h+(g-h)*o))}},n.prototype._handleRelativeValue=function(i,r){return typeof r!="string"?r:r.charAt(0)==="+"||r.charAt(0)==="-"?i+parseFloat(r):parseFloat(r)},n.prototype._swapEndStartRepeatValues=function(i){var r=this._valuesStartRepeat[i],u=this._valuesEnd[i];typeof u=="string"?this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(u):this._valuesStartRepeat[i]=this._valuesEnd[i],this._valuesEnd[i]=r},n.autoStartOnUpdate=!1,n}();bm.nextId;var _n=Ef;_n.getAll.bind(_n);_n.removeAll.bind(_n);_n.add.bind(_n);_n.remove.bind(_n);_n.update.bind(_n);function Gp(n,i){(i==null||i>n.length)&&(i=n.length);for(var r=0,u=Array(i);r<i;r++)u[r]=n[r];return u}function KS(n){if(Array.isArray(n))return n}function FS(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function PS(n,i,r){return Object.defineProperty(n,"prototype",{writable:!1}),n}function JS(n,i){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var u,o,c,h,g=[],y=!0,p=!1;try{if(c=(r=r.call(n)).next,i!==0)for(;!(y=(u=c.call(r)).done)&&(g.push(u.value),g.length!==i);y=!0);}catch(v){p=!0,o=v}finally{try{if(!y&&r.return!=null&&(h=r.return(),Object(h)!==h))return}finally{if(p)throw o}}return g}}function WS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
129
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IS(n,i){return KS(n)||JS(n,i)||t3(n,i)||WS()}function t3(n,i){if(n){if(typeof n=="string")return Gp(n,i);var r={}.toString.call(n).slice(8,-1);return r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set"?Array.from(n):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gp(n,i):void 0}}var e3=PS(function n(i,r){var u=r.default,o=u===void 0?null:u,c=r.triggerUpdate,h=c===void 0?!0:c,g=r.onChange,y=g===void 0?function(p,v){}:g;FS(this,n),this.name=i,this.defaultVal=o,this.triggerUpdate=h,this.onChange=y});function Ff(n){var i=n.stateInit,r=i===void 0?function(){return{}}:i,u=n.props,o=u===void 0?{}:u,c=n.methods,h=c===void 0?{}:c,g=n.aliases,y=g===void 0?{}:g,p=n.init,v=p===void 0?function(){}:p,m=n.update,b=m===void 0?function(){}:m,x=Object.keys(o).map(function(A){return new e3(A,o[A])});return function A(){for(var M=arguments.length,T=new Array(M),w=0;w<M;w++)T[w]=arguments[w];var D=!!(this instanceof A&&this.constructor),q=D?T.shift():void 0,R=T[0],C=R===void 0?{}:R,H=Object.assign({},r instanceof Function?r(C):r,{initialised:!1}),U={};function B(et){return J(et,C),W(),B}var J=function(lt,ft){v.call(B,lt,H,ft),H.initialised=!0},W=vm(function(){H.initialised&&(b.call(B,H,U),U={})},1);return x.forEach(function(et){B[et.name]=lt(et);function lt(ft){var G=ft.name,I=ft.triggerUpdate,z=I===void 0?!1:I,$=ft.onChange,nt=$===void 0?function(Z,tt){}:$,ut=ft.defaultVal,E=ut===void 0?null:ut;return function(Z){var tt=H[G];if(!arguments.length)return tt;var it=Z===void 0?E:Z;return H[G]=it,nt.call(B,it,H,tt),!U.hasOwnProperty(G)&&(U[G]=tt),z&&W(),B}}}),Object.keys(h).forEach(function(et){B[et]=function(){for(var lt,ft=arguments.length,G=new Array(ft),I=0;I<ft;I++)G[I]=arguments[I];return(lt=h[et]).call.apply(lt,[B,H].concat(G))}}),Object.entries(y).forEach(function(et){var lt=IS(et,2),ft=lt[0],G=lt[1];return B[ft]=B[G]}),B.resetProps=function(){return x.forEach(function(et){B[et.name](et.defaultVal)}),B},B.resetProps(),H._rerender=W,D&&q&&B(q),B}}var Dt=function(n){return typeof n=="function"?n:typeof n=="string"?function(i){return i[n]}:function(i){return n}};function fs(n){"@babel/helpers - typeof";return fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},fs(n)}var n3=/^\s+/,i3=/\s+$/;function gt(n,i){if(n=n||"",i=i||{},n instanceof gt)return n;if(!(this instanceof gt))return new gt(n,i);var r=a3(n);this._originalInput=n,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||r.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}gt.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 i=this.toRgb();return(i.r*299+i.g*587+i.b*114)/1e3},getLuminance:function(){var i=this.toRgb(),r,u,o,c,h,g;return r=i.r/255,u=i.g/255,o=i.b/255,r<=.03928?c=r/12.92:c=Math.pow((r+.055)/1.055,2.4),u<=.03928?h=u/12.92:h=Math.pow((u+.055)/1.055,2.4),o<=.03928?g=o/12.92:g=Math.pow((o+.055)/1.055,2.4),.2126*c+.7152*h+.0722*g},setAlpha:function(i){return this._a=xm(i),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var i=Yp(this._r,this._g,this._b);return{h:i.h*360,s:i.s,v:i.v,a:this._a}},toHsvString:function(){var i=Yp(this._r,this._g,this._b),r=Math.round(i.h*360),u=Math.round(i.s*100),o=Math.round(i.v*100);return this._a==1?"hsv("+r+", "+u+"%, "+o+"%)":"hsva("+r+", "+u+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var i=Qp(this._r,this._g,this._b);return{h:i.h*360,s:i.s,l:i.l,a:this._a}},toHslString:function(){var i=Qp(this._r,this._g,this._b),r=Math.round(i.h*360),u=Math.round(i.s*100),o=Math.round(i.l*100);return this._a==1?"hsl("+r+", "+u+"%, "+o+"%)":"hsla("+r+", "+u+"%, "+o+"%, "+this._roundA+")"},toHex:function(i){return Xp(this._r,this._g,this._b,i)},toHexString:function(i){return"#"+this.toHex(i)},toHex8:function(i){return s3(this._r,this._g,this._b,this._a,i)},toHex8String:function(i){return"#"+this.toHex8(i)},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(Yt(this._r,255)*100)+"%",g:Math.round(Yt(this._g,255)*100)+"%",b:Math.round(Yt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Yt(this._r,255)*100)+"%, "+Math.round(Yt(this._g,255)*100)+"%, "+Math.round(Yt(this._b,255)*100)+"%)":"rgba("+Math.round(Yt(this._r,255)*100)+"%, "+Math.round(Yt(this._g,255)*100)+"%, "+Math.round(Yt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:b3[Xp(this._r,this._g,this._b,!0)]||!1},toFilter:function(i){var r="#"+Vp(this._r,this._g,this._b,this._a),u=r,o=this._gradientType?"GradientType = 1, ":"";if(i){var c=gt(i);u="#"+Vp(c._r,c._g,c._b,c._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+u+")"},toString:function(i){var r=!!i;i=i||this._format;var u=!1,o=this._a<1&&this._a>=0,c=!r&&o&&(i==="hex"||i==="hex6"||i==="hex3"||i==="hex4"||i==="hex8"||i==="name");return c?i==="name"&&this._a===0?this.toName():this.toRgbString():(i==="rgb"&&(u=this.toRgbString()),i==="prgb"&&(u=this.toPercentageRgbString()),(i==="hex"||i==="hex6")&&(u=this.toHexString()),i==="hex3"&&(u=this.toHexString(!0)),i==="hex4"&&(u=this.toHex8String(!0)),i==="hex8"&&(u=this.toHex8String()),i==="name"&&(u=this.toName()),i==="hsl"&&(u=this.toHslString()),i==="hsv"&&(u=this.toHsvString()),u||this.toHexString())},clone:function(){return gt(this.toString())},_applyModification:function(i,r){var u=i.apply(null,[this].concat([].slice.call(r)));return this._r=u._r,this._g=u._g,this._b=u._b,this.setAlpha(u._a),this},lighten:function(){return this._applyModification(h3,arguments)},brighten:function(){return this._applyModification(d3,arguments)},darken:function(){return this._applyModification(g3,arguments)},desaturate:function(){return this._applyModification(o3,arguments)},saturate:function(){return this._applyModification(c3,arguments)},greyscale:function(){return this._applyModification(f3,arguments)},spin:function(){return this._applyModification(p3,arguments)},_applyCombination:function(i,r){return i.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(v3,arguments)},complement:function(){return this._applyCombination(y3,arguments)},monochromatic:function(){return this._applyCombination(_3,arguments)},splitcomplement:function(){return this._applyCombination(m3,arguments)},triad:function(){return this._applyCombination(Zp,[3])},tetrad:function(){return this._applyCombination(Zp,[4])}};gt.fromRatio=function(n,i){if(fs(n)=="object"){var r={};for(var u in n)n.hasOwnProperty(u)&&(u==="a"?r[u]=n[u]:r[u]=ol(n[u]));n=r}return gt(n,i)};function a3(n){var i={r:0,g:0,b:0},r=1,u=null,o=null,c=null,h=!1,g=!1;return typeof n=="string"&&(n=A3(n)),fs(n)=="object"&&(Qn(n.r)&&Qn(n.g)&&Qn(n.b)?(i=r3(n.r,n.g,n.b),h=!0,g=String(n.r).substr(-1)==="%"?"prgb":"rgb"):Qn(n.h)&&Qn(n.s)&&Qn(n.v)?(u=ol(n.s),o=ol(n.v),i=u3(n.h,u,o),h=!0,g="hsv"):Qn(n.h)&&Qn(n.s)&&Qn(n.l)&&(u=ol(n.s),c=ol(n.l),i=l3(n.h,u,c),h=!0,g="hsl"),n.hasOwnProperty("a")&&(r=n.a)),r=xm(r),{ok:h,format:n.format||g,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:r}}function r3(n,i,r){return{r:Yt(n,255)*255,g:Yt(i,255)*255,b:Yt(r,255)*255}}function Qp(n,i,r){n=Yt(n,255),i=Yt(i,255),r=Yt(r,255);var u=Math.max(n,i,r),o=Math.min(n,i,r),c,h,g=(u+o)/2;if(u==o)c=h=0;else{var y=u-o;switch(h=g>.5?y/(2-u-o):y/(u+o),u){case n:c=(i-r)/y+(i<r?6:0);break;case i:c=(r-n)/y+2;break;case r:c=(n-i)/y+4;break}c/=6}return{h:c,s:h,l:g}}function l3(n,i,r){var u,o,c;n=Yt(n,360),i=Yt(i,100),r=Yt(r,100);function h(p,v,m){return m<0&&(m+=1),m>1&&(m-=1),m<1/6?p+(v-p)*6*m:m<1/2?v:m<2/3?p+(v-p)*(2/3-m)*6:p}if(i===0)u=o=c=r;else{var g=r<.5?r*(1+i):r+i-r*i,y=2*r-g;u=h(y,g,n+1/3),o=h(y,g,n),c=h(y,g,n-1/3)}return{r:u*255,g:o*255,b:c*255}}function Yp(n,i,r){n=Yt(n,255),i=Yt(i,255),r=Yt(r,255);var u=Math.max(n,i,r),o=Math.min(n,i,r),c,h,g=u,y=u-o;if(h=u===0?0:y/u,u==o)c=0;else{switch(u){case n:c=(i-r)/y+(i<r?6:0);break;case i:c=(r-n)/y+2;break;case r:c=(n-i)/y+4;break}c/=6}return{h:c,s:h,v:g}}function u3(n,i,r){n=Yt(n,360)*6,i=Yt(i,100),r=Yt(r,100);var u=Math.floor(n),o=n-u,c=r*(1-i),h=r*(1-o*i),g=r*(1-(1-o)*i),y=u%6,p=[r,h,c,c,g,r][y],v=[g,r,r,h,c,c][y],m=[c,c,g,r,r,h][y];return{r:p*255,g:v*255,b:m*255}}function Xp(n,i,r,u){var o=[ln(Math.round(n).toString(16)),ln(Math.round(i).toString(16)),ln(Math.round(r).toString(16))];return u&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function s3(n,i,r,u,o){var c=[ln(Math.round(n).toString(16)),ln(Math.round(i).toString(16)),ln(Math.round(r).toString(16)),ln(wm(u))];return o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1)?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}function Vp(n,i,r,u){var o=[ln(wm(u)),ln(Math.round(n).toString(16)),ln(Math.round(i).toString(16)),ln(Math.round(r).toString(16))];return o.join("")}gt.equals=function(n,i){return!n||!i?!1:gt(n).toRgbString()==gt(i).toRgbString()};gt.random=function(){return gt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function o3(n,i){i=i===0?0:i||10;var r=gt(n).toHsl();return r.s-=i/100,r.s=_s(r.s),gt(r)}function c3(n,i){i=i===0?0:i||10;var r=gt(n).toHsl();return r.s+=i/100,r.s=_s(r.s),gt(r)}function f3(n){return gt(n).desaturate(100)}function h3(n,i){i=i===0?0:i||10;var r=gt(n).toHsl();return r.l+=i/100,r.l=_s(r.l),gt(r)}function d3(n,i){i=i===0?0:i||10;var r=gt(n).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(i/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(i/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(i/100)))),gt(r)}function g3(n,i){i=i===0?0:i||10;var r=gt(n).toHsl();return r.l-=i/100,r.l=_s(r.l),gt(r)}function p3(n,i){var r=gt(n).toHsl(),u=(r.h+i)%360;return r.h=u<0?360+u:u,gt(r)}function y3(n){var i=gt(n).toHsl();return i.h=(i.h+180)%360,gt(i)}function Zp(n,i){if(isNaN(i)||i<=0)throw new Error("Argument to polyad must be a positive number");for(var r=gt(n).toHsl(),u=[gt(n)],o=360/i,c=1;c<i;c++)u.push(gt({h:(r.h+c*o)%360,s:r.s,l:r.l}));return u}function m3(n){var i=gt(n).toHsl(),r=i.h;return[gt(n),gt({h:(r+72)%360,s:i.s,l:i.l}),gt({h:(r+216)%360,s:i.s,l:i.l})]}function v3(n,i,r){i=i||6,r=r||30;var u=gt(n).toHsl(),o=360/r,c=[gt(n)];for(u.h=(u.h-(o*i>>1)+720)%360;--i;)u.h=(u.h+o)%360,c.push(gt(u));return c}function _3(n,i){i=i||6;for(var r=gt(n).toHsv(),u=r.h,o=r.s,c=r.v,h=[],g=1/i;i--;)h.push(gt({h:u,s:o,v:c})),c=(c+g)%1;return h}gt.mix=function(n,i,r){r=r===0?0:r||50;var u=gt(n).toRgb(),o=gt(i).toRgb(),c=r/100,h={r:(o.r-u.r)*c+u.r,g:(o.g-u.g)*c+u.g,b:(o.b-u.b)*c+u.b,a:(o.a-u.a)*c+u.a};return gt(h)};gt.readability=function(n,i){var r=gt(n),u=gt(i);return(Math.max(r.getLuminance(),u.getLuminance())+.05)/(Math.min(r.getLuminance(),u.getLuminance())+.05)};gt.isReadable=function(n,i,r){var u=gt.readability(n,i),o,c;switch(c=!1,o=T3(r),o.level+o.size){case"AAsmall":case"AAAlarge":c=u>=4.5;break;case"AAlarge":c=u>=3;break;case"AAAsmall":c=u>=7;break}return c};gt.mostReadable=function(n,i,r){var u=null,o=0,c,h,g,y;r=r||{},h=r.includeFallbackColors,g=r.level,y=r.size;for(var p=0;p<i.length;p++)c=gt.readability(n,i[p]),c>o&&(o=c,u=gt(i[p]));return gt.isReadable(n,u,{level:g,size:y})||!h?u:(r.includeFallbackColors=!1,gt.mostReadable(n,["#fff","#000"],r))};var Of=gt.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"},b3=gt.hexNames=x3(Of);function x3(n){var i={};for(var r in n)n.hasOwnProperty(r)&&(i[n[r]]=r);return i}function xm(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function Yt(n,i){w3(n)&&(n="100%");var r=S3(n);return n=Math.min(i,Math.max(0,parseFloat(n))),r&&(n=parseInt(n*i,10)/100),Math.abs(n-i)<1e-6?1:n%i/parseFloat(i)}function _s(n){return Math.min(1,Math.max(0,n))}function qe(n){return parseInt(n,16)}function w3(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function S3(n){return typeof n=="string"&&n.indexOf("%")!=-1}function ln(n){return n.length==1?"0"+n:""+n}function ol(n){return n<=1&&(n=n*100+"%"),n}function wm(n){return Math.round(parseFloat(n)*255).toString(16)}function $p(n){return qe(n)/255}var nn=function(){var n="[-\\+]?\\d+%?",i="[-\\+]?\\d*\\.\\d+%?",r="(?:"+i+")|(?:"+n+")",u="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+u),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+u),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+u),hsva:new RegExp("hsva"+o),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 Qn(n){return!!nn.CSS_UNIT.exec(n)}function A3(n){n=n.replace(n3,"").replace(i3,"").toLowerCase();var i=!1;if(Of[n])n=Of[n],i=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=nn.rgb.exec(n))?{r:r[1],g:r[2],b:r[3]}:(r=nn.rgba.exec(n))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=nn.hsl.exec(n))?{h:r[1],s:r[2],l:r[3]}:(r=nn.hsla.exec(n))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=nn.hsv.exec(n))?{h:r[1],s:r[2],v:r[3]}:(r=nn.hsva.exec(n))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=nn.hex8.exec(n))?{r:qe(r[1]),g:qe(r[2]),b:qe(r[3]),a:$p(r[4]),format:i?"name":"hex8"}:(r=nn.hex6.exec(n))?{r:qe(r[1]),g:qe(r[2]),b:qe(r[3]),format:i?"name":"hex"}:(r=nn.hex4.exec(n))?{r:qe(r[1]+""+r[1]),g:qe(r[2]+""+r[2]),b:qe(r[3]+""+r[3]),a:$p(r[4]+""+r[4]),format:i?"name":"hex8"}:(r=nn.hex3.exec(n))?{r:qe(r[1]+""+r[1]),g:qe(r[2]+""+r[2]),b:qe(r[3]+""+r[3]),format:i?"name":"hex"}:!1}function T3(n){var i,r;return n=n||{level:"AA",size:"small"},i=(n.level||"AA").toUpperCase(),r=(n.size||"small").toLowerCase(),i!=="AA"&&i!=="AAA"&&(i="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:i,size:r}}function Mf(n,i){(i==null||i>n.length)&&(i=n.length);for(var r=0,u=Array(i);r<i;r++)u[r]=n[r];return u}function E3(n){if(Array.isArray(n))return Mf(n)}function Sm(n,i,r){if(typeof n=="function"?n===i:n.has(i))return arguments.length<3?i:r;throw new TypeError("Private element is not present on this object")}function O3(n,i){if(i.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function M3(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function Fe(n,i){return n.get(Sm(n,i))}function Kp(n,i,r){O3(n,i),i.set(n,r)}function Fp(n,i,r){return n.set(Sm(n,i),r),r}function C3(n,i){for(var r=0;r<i.length;r++){var u=i[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,k3(u.key),u)}}function N3(n,i,r){return i&&C3(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function z3(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function R3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
130
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D3(n){return E3(n)||z3(n)||U3(n)||R3()}function j3(n,i){if(typeof n!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var u=r.call(n,i);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function k3(n){var i=j3(n,"string");return typeof i=="symbol"?i:i+""}function U3(n,i){if(n){if(typeof n=="string")return Mf(n,i);var r={}.toString.call(n).slice(8,-1);return r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set"?Array.from(n):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mf(n,i):void 0}}var q3=123,H3=function(i){return"#".concat(Math.min(i,Math.pow(2,24)).toString(16).padStart(6,"0"))},Am=function(i,r,u){return(i<<16)+(r<<8)+u},L3=function(i){var r=gt(i).toRgb(),u=r.r,o=r.g,c=r.b;return Am(u,o,c)},Pp=function(i,r){return i*q3%Math.pow(2,r)},Vi=new WeakMap,Yn=new WeakMap,B3=function(){function n(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6;M3(this,n),Kp(this,Vi,void 0),Kp(this,Yn,void 0),Fp(Yn,this,i),this.reset()}return N3(n,[{key:"reset",value:function(){Fp(Vi,this,["__reserved for background__"])}},{key:"register",value:function(r){if(Fe(Vi,this).length>=Math.pow(2,24-Fe(Yn,this)))return null;var u=Fe(Vi,this).length,o=Pp(u,Fe(Yn,this)),c=H3(u+(o<<24-Fe(Yn,this)));return Fe(Vi,this).push(r),c}},{key:"lookup",value:function(r){if(!r)return null;var u=typeof r=="string"?L3(r):Am.apply(void 0,D3(r));if(!u)return null;var o=u&Math.pow(2,24-Fe(Yn,this))-1,c=u>>24-Fe(Yn,this)&Math.pow(2,Fe(Yn,this))-1;return Pp(o,Fe(Yn,this))!==c||o>=Fe(Vi,this).length?null:Fe(Vi,this)[o]}}])}(),Tl,Xt,Tm,Em,Zi,Jp,Om,Mm,Cm,Pf,Cf,Nf,_l={},Nm=[],G3=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,bs=Array.isArray;function mn(n,i){for(var r in i)n[r]=i[r];return n}function Jf(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function Q3(n,i,r){var u,o,c,h={};for(c in i)c=="key"?u=i[c]:c=="ref"?o=i[c]:h[c]=i[c];if(arguments.length>2&&(h.children=arguments.length>3?Tl.call(arguments,2):r),typeof n=="function"&&n.defaultProps!=null)for(c in n.defaultProps)h[c]===void 0&&(h[c]=n.defaultProps[c]);return cl(n,h,u,o,null)}function cl(n,i,r,u,o){var c={type:n,props:i,key:r,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Tm,__i:-1,__u:0};return o==null&&Xt.vnode!=null&&Xt.vnode(c),c}function xs(n){return n.children}function ts(n,i){this.props=n,this.context=i}function Pa(n,i){if(i==null)return n.__?Pa(n.__,n.__i+1):null;for(var r;i<n.__k.length;i++)if((r=n.__k[i])!=null&&r.__e!=null)return r.__e;return typeof n.type=="function"?Pa(n):null}function zm(n){var i,r;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,i=0;i<n.__k.length;i++)if((r=n.__k[i])!=null&&r.__e!=null){n.__e=n.__c.base=r.__e;break}return zm(n)}}function Wp(n){(!n.__d&&(n.__d=!0)&&Zi.push(n)&&!hs.__r++||Jp!=Xt.debounceRendering)&&((Jp=Xt.debounceRendering)||Om)(hs)}function hs(){for(var n,i,r,u,o,c,h,g=1;Zi.length;)Zi.length>g&&Zi.sort(Mm),n=Zi.shift(),g=Zi.length,n.__d&&(r=void 0,o=(u=(i=n).__v).__e,c=[],h=[],i.__P&&((r=mn({},u)).__v=u.__v+1,Xt.vnode&&Xt.vnode(r),Wf(i.__P,r,u,i.__n,i.__P.namespaceURI,32&u.__u?[o]:null,c,o??Pa(u),!!(32&u.__u),h),r.__v=u.__v,r.__.__k[r.__i]=r,jm(c,r,h),r.__e!=o&&zm(r)));hs.__r=0}function Rm(n,i,r,u,o,c,h,g,y,p,v){var m,b,x,A,M,T,w=u&&u.__k||Nm,D=i.length;for(y=Y3(r,i,w,y,D),m=0;m<D;m++)(x=r.__k[m])!=null&&(b=x.__i==-1?_l:w[x.__i]||_l,x.__i=m,T=Wf(n,x,b,o,c,h,g,y,p,v),A=x.__e,x.ref&&b.ref!=x.ref&&(b.ref&&If(b.ref,null,x),v.push(x.ref,x.__c||A,x)),M==null&&A!=null&&(M=A),4&x.__u||b.__k===x.__k?y=Dm(x,y,n):typeof x.type=="function"&&T!==void 0?y=T:A&&(y=A.nextSibling),x.__u&=-7);return r.__e=M,y}function Y3(n,i,r,u,o){var c,h,g,y,p,v=r.length,m=v,b=0;for(n.__k=new Array(o),c=0;c<o;c++)(h=i[c])!=null&&typeof h!="boolean"&&typeof h!="function"?(y=c+b,(h=n.__k[c]=typeof h=="string"||typeof h=="number"||typeof h=="bigint"||h.constructor==String?cl(null,h,null,null,null):bs(h)?cl(xs,{children:h},null,null,null):h.constructor==null&&h.__b>0?cl(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h).__=n,h.__b=n.__b+1,g=null,(p=h.__i=X3(h,r,y,m))!=-1&&(m--,(g=r[p])&&(g.__u|=2)),g==null||g.__v==null?(p==-1&&(o>v?b--:o<v&&b++),typeof h.type!="function"&&(h.__u|=4)):p!=y&&(p==y-1?b--:p==y+1?b++:(p>y?b--:b++,h.__u|=4))):n.__k[c]=null;if(m)for(c=0;c<v;c++)(g=r[c])!=null&&(2&g.__u)==0&&(g.__e==u&&(u=Pa(g)),Um(g,g));return u}function Dm(n,i,r){var u,o;if(typeof n.type=="function"){for(u=n.__k,o=0;u&&o<u.length;o++)u[o]&&(u[o].__=n,i=Dm(u[o],i,r));return i}n.__e!=i&&(i&&n.type&&!r.contains(i)&&(i=Pa(n)),r.insertBefore(n.__e,i||null),i=n.__e);do i=i&&i.nextSibling;while(i!=null&&i.nodeType==8);return i}function X3(n,i,r,u){var o,c,h=n.key,g=n.type,y=i[r];if(y===null&&n.key==null||y&&h==y.key&&g==y.type&&(2&y.__u)==0)return r;if(u>(y!=null&&(2&y.__u)==0?1:0))for(o=r-1,c=r+1;o>=0||c<i.length;){if(o>=0){if((y=i[o])&&(2&y.__u)==0&&h==y.key&&g==y.type)return o;o--}if(c<i.length){if((y=i[c])&&(2&y.__u)==0&&h==y.key&&g==y.type)return c;c++}}return-1}function Ip(n,i,r){i[0]=="-"?n.setProperty(i,r??""):n[i]=r==null?"":typeof r!="number"||G3.test(i)?r:r+"px"}function Ku(n,i,r,u,o){var c,h;t:if(i=="style")if(typeof r=="string")n.style.cssText=r;else{if(typeof u=="string"&&(n.style.cssText=u=""),u)for(i in u)r&&i in r||Ip(n.style,i,"");if(r)for(i in r)u&&r[i]==u[i]||Ip(n.style,i,r[i])}else if(i[0]=="o"&&i[1]=="n")c=i!=(i=i.replace(Cm,"$1")),h=i.toLowerCase(),i=h in n||i=="onFocusOut"||i=="onFocusIn"?h.slice(2):i.slice(2),n.l||(n.l={}),n.l[i+c]=r,r?u?r.u=u.u:(r.u=Pf,n.addEventListener(i,c?Nf:Cf,c)):n.removeEventListener(i,c?Nf:Cf,c);else{if(o=="http://www.w3.org/2000/svg")i=i.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(i!="width"&&i!="height"&&i!="href"&&i!="list"&&i!="form"&&i!="tabIndex"&&i!="download"&&i!="rowSpan"&&i!="colSpan"&&i!="role"&&i!="popover"&&i in n)try{n[i]=r??"";break t}catch{}typeof r=="function"||(r==null||r===!1&&i[4]!="-"?n.removeAttribute(i):n.setAttribute(i,i=="popover"&&r==1?"":r))}}function ty(n){return function(i){if(this.l){var r=this.l[i.type+n];if(i.t==null)i.t=Pf++;else if(i.t<r.u)return;return r(Xt.event?Xt.event(i):i)}}}function Wf(n,i,r,u,o,c,h,g,y,p){var v,m,b,x,A,M,T,w,D,q,R,C,H,U,B,J,W,et=i.type;if(i.constructor!=null)return null;128&r.__u&&(y=!!(32&r.__u),c=[g=i.__e=r.__e]),(v=Xt.__b)&&v(i);t:if(typeof et=="function")try{if(w=i.props,D="prototype"in et&&et.prototype.render,q=(v=et.contextType)&&u[v.__c],R=v?q?q.props.value:v.__:u,r.__c?T=(m=i.__c=r.__c).__=m.__E:(D?i.__c=m=new et(w,R):(i.__c=m=new ts(w,R),m.constructor=et,m.render=Z3),q&&q.sub(m),m.props=w,m.state||(m.state={}),m.context=R,m.__n=u,b=m.__d=!0,m.__h=[],m._sb=[]),D&&m.__s==null&&(m.__s=m.state),D&&et.getDerivedStateFromProps!=null&&(m.__s==m.state&&(m.__s=mn({},m.__s)),mn(m.__s,et.getDerivedStateFromProps(w,m.__s))),x=m.props,A=m.state,m.__v=i,b)D&&et.getDerivedStateFromProps==null&&m.componentWillMount!=null&&m.componentWillMount(),D&&m.componentDidMount!=null&&m.__h.push(m.componentDidMount);else{if(D&&et.getDerivedStateFromProps==null&&w!==x&&m.componentWillReceiveProps!=null&&m.componentWillReceiveProps(w,R),!m.__e&&m.shouldComponentUpdate!=null&&m.shouldComponentUpdate(w,m.__s,R)===!1||i.__v==r.__v){for(i.__v!=r.__v&&(m.props=w,m.state=m.__s,m.__d=!1),i.__e=r.__e,i.__k=r.__k,i.__k.some(function(lt){lt&&(lt.__=i)}),C=0;C<m._sb.length;C++)m.__h.push(m._sb[C]);m._sb=[],m.__h.length&&h.push(m);break t}m.componentWillUpdate!=null&&m.componentWillUpdate(w,m.__s,R),D&&m.componentDidUpdate!=null&&m.__h.push(function(){m.componentDidUpdate(x,A,M)})}if(m.context=R,m.props=w,m.__P=n,m.__e=!1,H=Xt.__r,U=0,D){for(m.state=m.__s,m.__d=!1,H&&H(i),v=m.render(m.props,m.state,m.context),B=0;B<m._sb.length;B++)m.__h.push(m._sb[B]);m._sb=[]}else do m.__d=!1,H&&H(i),v=m.render(m.props,m.state,m.context),m.state=m.__s;while(m.__d&&++U<25);m.state=m.__s,m.getChildContext!=null&&(u=mn(mn({},u),m.getChildContext())),D&&!b&&m.getSnapshotBeforeUpdate!=null&&(M=m.getSnapshotBeforeUpdate(x,A)),J=v,v!=null&&v.type===xs&&v.key==null&&(J=km(v.props.children)),g=Rm(n,bs(J)?J:[J],i,r,u,o,c,h,g,y,p),m.base=i.__e,i.__u&=-161,m.__h.length&&h.push(m),T&&(m.__E=m.__=null)}catch(lt){if(i.__v=null,y||c!=null)if(lt.then){for(i.__u|=y?160:128;g&&g.nodeType==8&&g.nextSibling;)g=g.nextSibling;c[c.indexOf(g)]=null,i.__e=g}else for(W=c.length;W--;)Jf(c[W]);else i.__e=r.__e,i.__k=r.__k;Xt.__e(lt,i,r)}else c==null&&i.__v==r.__v?(i.__k=r.__k,i.__e=r.__e):g=i.__e=V3(r.__e,i,r,u,o,c,h,y,p);return(v=Xt.diffed)&&v(i),128&i.__u?void 0:g}function jm(n,i,r){for(var u=0;u<r.length;u++)If(r[u],r[++u],r[++u]);Xt.__c&&Xt.__c(i,n),n.some(function(o){try{n=o.__h,o.__h=[],n.some(function(c){c.call(o)})}catch(c){Xt.__e(c,o.__v)}})}function km(n){return typeof n!="object"||n==null||n.__b&&n.__b>0?n:bs(n)?n.map(km):mn({},n)}function V3(n,i,r,u,o,c,h,g,y){var p,v,m,b,x,A,M,T=r.props,w=i.props,D=i.type;if(D=="svg"?o="http://www.w3.org/2000/svg":D=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),c!=null){for(p=0;p<c.length;p++)if((x=c[p])&&"setAttribute"in x==!!D&&(D?x.localName==D:x.nodeType==3)){n=x,c[p]=null;break}}if(n==null){if(D==null)return document.createTextNode(w);n=document.createElementNS(o,D,w.is&&w),g&&(Xt.__m&&Xt.__m(i,c),g=!1),c=null}if(D==null)T===w||g&&n.data==w||(n.data=w);else{if(c=c&&Tl.call(n.childNodes),T=r.props||_l,!g&&c!=null)for(T={},p=0;p<n.attributes.length;p++)T[(x=n.attributes[p]).name]=x.value;for(p in T)if(x=T[p],p!="children"){if(p=="dangerouslySetInnerHTML")m=x;else if(!(p in w)){if(p=="value"&&"defaultValue"in w||p=="checked"&&"defaultChecked"in w)continue;Ku(n,p,null,x,o)}}for(p in w)x=w[p],p=="children"?b=x:p=="dangerouslySetInnerHTML"?v=x:p=="value"?A=x:p=="checked"?M=x:g&&typeof x!="function"||T[p]===x||Ku(n,p,x,T[p],o);if(v)g||m&&(v.__html==m.__html||v.__html==n.innerHTML)||(n.innerHTML=v.__html),i.__k=[];else if(m&&(n.innerHTML=""),Rm(i.type=="template"?n.content:n,bs(b)?b:[b],i,r,u,D=="foreignObject"?"http://www.w3.org/1999/xhtml":o,c,h,c?c[0]:r.__k&&Pa(r,0),g,y),c!=null)for(p=c.length;p--;)Jf(c[p]);g||(p="value",D=="progress"&&A==null?n.removeAttribute("value"):A!=null&&(A!==n[p]||D=="progress"&&!A||D=="option"&&A!=T[p])&&Ku(n,p,A,T[p],o),p="checked",M!=null&&M!=n[p]&&Ku(n,p,M,T[p],o))}return n}function If(n,i,r){try{if(typeof n=="function"){var u=typeof n.__u=="function";u&&n.__u(),u&&i==null||(n.__u=n(i))}else n.current=i}catch(o){Xt.__e(o,r)}}function Um(n,i,r){var u,o;if(Xt.unmount&&Xt.unmount(n),(u=n.ref)&&(u.current&&u.current!=n.__e||If(u,null,i)),(u=n.__c)!=null){if(u.componentWillUnmount)try{u.componentWillUnmount()}catch(c){Xt.__e(c,i)}u.base=u.__P=null}if(u=n.__k)for(o=0;o<u.length;o++)u[o]&&Um(u[o],i,r||typeof n.type!="function");r||Jf(n.__e),n.__c=n.__=n.__e=void 0}function Z3(n,i,r){return this.constructor(n,r)}function $3(n,i,r){var u,o,c,h;i==document&&(i=document.documentElement),Xt.__&&Xt.__(n,i),o=(u=!1)?null:i.__k,c=[],h=[],Wf(i,n=i.__k=Q3(xs,null,[n]),o||_l,_l,i.namespaceURI,o?null:i.firstChild?Tl.call(i.childNodes):null,c,o?o.__e:i.firstChild,u,h),jm(c,n,h)}function qm(n,i,r){var u,o,c,h,g=mn({},n.props);for(c in n.type&&n.type.defaultProps&&(h=n.type.defaultProps),i)c=="key"?u=i[c]:c=="ref"?o=i[c]:g[c]=i[c]===void 0&&h!=null?h[c]:i[c];return arguments.length>2&&(g.children=arguments.length>3?Tl.call(arguments,2):r),cl(n.type,g,u||n.key,o||n.ref,null)}Tl=Nm.slice,Xt={__e:function(n,i,r,u){for(var o,c,h;i=i.__;)if((o=i.__c)&&!o.__)try{if((c=o.constructor)&&c.getDerivedStateFromError!=null&&(o.setState(c.getDerivedStateFromError(n)),h=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(n,u||{}),h=o.__d),h)return o.__E=o}catch(g){n=g}throw n}},Tm=0,Em=function(n){return n!=null&&n.constructor==null},ts.prototype.setState=function(n,i){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=mn({},this.state),typeof n=="function"&&(n=n(mn({},r),this.props)),n&&mn(r,n),n!=null&&this.__v&&(i&&this._sb.push(i),Wp(this))},ts.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Wp(this))},ts.prototype.render=xs,Zi=[],Om=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Mm=function(n,i){return n.__v.__b-i.__v.__b},hs.__r=0,Cm=/(PointerCapture)$|Capture$/i,Pf=0,Cf=ty(!1),Nf=ty(!0);function ey(n,i){(i==null||i>n.length)&&(i=n.length);for(var r=0,u=Array(i);r<i;r++)u[r]=n[r];return u}function K3(n){if(Array.isArray(n))return n}function F3(n,i,r){return(i=e4(i))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n}function P3(n,i){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var u,o,c,h,g=[],y=!0,p=!1;try{if(c=(r=r.call(n)).next,i!==0)for(;!(y=(u=c.call(r)).done)&&(g.push(u.value),g.length!==i);y=!0);}catch(v){p=!0,o=v}finally{try{if(!y&&r.return!=null&&(h=r.return(),Object(h)!==h))return}finally{if(p)throw o}}return g}}function J3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
131
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ny(n,i){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);i&&(u=u.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.push.apply(r,u)}return r}function W3(n){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?ny(Object(r),!0).forEach(function(u){F3(n,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach(function(u){Object.defineProperty(n,u,Object.getOwnPropertyDescriptor(r,u))})}return n}function I3(n,i){return K3(n)||P3(n,i)||n4(n,i)||J3()}function t4(n,i){if(typeof n!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var u=r.call(n,i);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}function e4(n){var i=t4(n,"string");return typeof i=="symbol"?i:i+""}function ds(n){"@babel/helpers - typeof";return ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ds(n)}function n4(n,i){if(n){if(typeof n=="string")return ey(n,i);var r={}.toString.call(n).slice(8,-1);return r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set"?Array.from(n):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ey(n,i):void 0}}var zf=function(i){if(ds(i)!=="object")return i;var r=qm(i);if(r.props){var u;r.props=W3({},r.props),r!=null&&(u=r.props)!==null&&u!==void 0&&u.children&&(r.props.children=Array.isArray(r.props.children)?r.props.children.map(zf):zf(r.props.children))}return r},i4=function(i){return Em(qm(i))},a4=function(i,r){delete r.__k,$3(zf(i),r)};function r4(n,i){i===void 0&&(i={});var r=i.insertAt;if(!(typeof document>"u")){var u=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&u.firstChild?u.insertBefore(o,u.firstChild):u.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}}var l4=`.float-tooltip-kap {
|
|
132
|
+
position: absolute;
|
|
133
|
+
width: max-content; /* prevent shrinking near right edge */
|
|
134
|
+
max-width: max(50%, 150px);
|
|
135
|
+
padding: 3px 5px;
|
|
136
|
+
border-radius: 3px;
|
|
137
|
+
font: 12px sans-serif;
|
|
138
|
+
color: #eee;
|
|
139
|
+
background: rgba(0,0,0,0.6);
|
|
140
|
+
pointer-events: none;
|
|
141
|
+
}
|
|
142
|
+
`;r4(l4);var u4=Ff({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(i,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=u.style,c=o===void 0?{}:o,h=!!i&&ds(i)==="object"&&!!i.node&&typeof i.node=="function",g=Je(h?i.node():i);g.style("position")==="static"&&g.style("position","relative"),r.tooltipEl=g.append("div").attr("class","float-tooltip-kap"),Object.entries(c).forEach(function(p){var v=I3(p,2),m=v[0],b=v[1];return r.tooltipEl.style(m,b)}),r.tooltipEl.style("left","-10000px").style("display","none");var y="tooltip-".concat(Math.round(Math.random()*1e12));r.mouseInside=!1,g.on("mousemove.".concat(y),function(p){r.mouseInside=!0;var v=yn(p),m=g.node(),b=m.offsetWidth,x=m.offsetHeight,A=[r.offsetX===null||r.offsetX===void 0?"-".concat(v[0]/b*100,"%"):typeof r.offsetX=="number"?"calc(-50% + ".concat(r.offsetX,"px)"):r.offsetX,r.offsetY===null||r.offsetY===void 0?x>130&&x-v[1]<100?"calc(-100% - 6px)":"21px":typeof r.offsetY=="number"?r.offsetY<0?"calc(-100% - ".concat(Math.abs(r.offsetY),"px)"):"".concat(r.offsetY,"px"):r.offsetY];r.tooltipEl.style("left",v[0]+"px").style("top",v[1]+"px").style("transform","translate(".concat(A.join(","),")")),r.content&&r.tooltipEl.style("display","inline")}),g.on("mouseover.".concat(y),function(){r.mouseInside=!0,r.content&&r.tooltipEl.style("display","inline")}),g.on("mouseout.".concat(y),function(){r.mouseInside=!1,r.tooltipEl.style("display","none")})},update:function(i){i.tooltipEl.style("display",i.content&&i.mouseInside?"inline":"none"),i.content?i.content instanceof HTMLElement?(i.tooltipEl.text(""),i.tooltipEl.append(function(){return i.content})):typeof i.content=="string"?i.tooltipEl.html(i.content):i4(i.content)?(i.tooltipEl.text(""),a4(i.content,i.tooltipEl.node())):(i.tooltipEl.style("display","none"),console.warn("Tooltip content is invalid, skipping.",i.content,i.content.toString())):i.tooltipEl.text("")}});function s4(n,i,r){var u,o=1;n==null&&(n=0),i==null&&(i=0),r==null&&(r=0);function c(){var h,g=u.length,y,p=0,v=0,m=0;for(h=0;h<g;++h)y=u[h],p+=y.x||0,v+=y.y||0,m+=y.z||0;for(p=(p/g-n)*o,v=(v/g-i)*o,m=(m/g-r)*o,h=0;h<g;++h)y=u[h],p&&(y.x-=p),v&&(y.y-=v),m&&(y.z-=m)}return c.initialize=function(h){u=h},c.x=function(h){return arguments.length?(n=+h,c):n},c.y=function(h){return arguments.length?(i=+h,c):i},c.z=function(h){return arguments.length?(r=+h,c):r},c.strength=function(h){return arguments.length?(o=+h,c):o},c}function o4(n){const i=+this._x.call(null,n);return Hm(this.cover(i),i,n)}function Hm(n,i,r){if(isNaN(i))return n;var u,o=n._root,c={data:r},h=n._x0,g=n._x1,y,p,v,m,b;if(!o)return n._root=c,n;for(;o.length;)if((v=i>=(y=(h+g)/2))?h=y:g=y,u=o,!(o=o[m=+v]))return u[m]=c,n;if(p=+n._x.call(null,o.data),i===p)return c.next=o,u?u[m]=c:n._root=c,n;do u=u?u[m]=new Array(2):n._root=new Array(2),(v=i>=(y=(h+g)/2))?h=y:g=y;while((m=+v)==(b=+(p>=y)));return u[b]=o,u[m]=c,n}function c4(n){Array.isArray(n)||(n=Array.from(n));const i=n.length,r=new Float64Array(i);let u=1/0,o=-1/0;for(let c=0,h;c<i;++c)isNaN(h=+this._x.call(null,n[c]))||(r[c]=h,h<u&&(u=h),h>o&&(o=h));if(u>o)return this;this.cover(u).cover(o);for(let c=0;c<i;++c)Hm(this,r[c],n[c]);return this}function f4(n){if(isNaN(n=+n))return this;var i=this._x0,r=this._x1;if(isNaN(i))r=(i=Math.floor(n))+1;else{for(var u=r-i||1,o=this._root,c,h;i>n||n>=r;)switch(h=+(n<i),c=new Array(2),c[h]=o,o=c,u*=2,h){case 0:r=i+u;break;case 1:i=r-u;break}this._root&&this._root.length&&(this._root=o)}return this._x0=i,this._x1=r,this}function h4(){var n=[];return this.visit(function(i){if(!i.length)do n.push(i.data);while(i=i.next)}),n}function d4(n){return arguments.length?this.cover(+n[0][0]).cover(+n[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function Kn(n,i,r){this.node=n,this.x0=i,this.x1=r}function g4(n,i){var r,u=this._x0,o,c,h=this._x1,g=[],y=this._root,p,v;for(y&&g.push(new Kn(y,u,h)),i==null?i=1/0:(u=n-i,h=n+i);p=g.pop();)if(!(!(y=p.node)||(o=p.x0)>h||(c=p.x1)<u))if(y.length){var m=(o+c)/2;g.push(new Kn(y[1],m,c),new Kn(y[0],o,m)),(v=+(n>=m))&&(p=g[g.length-1],g[g.length-1]=g[g.length-1-v],g[g.length-1-v]=p)}else{var b=Math.abs(n-+this._x.call(null,y.data));b<i&&(i=b,u=n-b,h=n+b,r=y.data)}return r}function p4(n){if(isNaN(y=+this._x.call(null,n)))return this;var i,r=this._root,u,o,c,h=this._x0,g=this._x1,y,p,v,m,b;if(!r)return this;if(r.length)for(;;){if((v=y>=(p=(h+g)/2))?h=p:g=p,i=r,!(r=r[m=+v]))return this;if(!r.length)break;i[m+1&1]&&(u=i,b=m)}for(;r.data!==n;)if(o=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,o?(c?o.next=c:delete o.next,this):i?(c?i[m]=c:delete i[m],(r=i[0]||i[1])&&r===(i[1]||i[0])&&!r.length&&(u?u[b]=r:this._root=r),this):(this._root=c,this)}function y4(n){for(var i=0,r=n.length;i<r;++i)this.remove(n[i]);return this}function m4(){return this._root}function v4(){var n=0;return this.visit(function(i){if(!i.length)do++n;while(i=i.next)}),n}function _4(n){var i=[],r,u=this._root,o,c,h;for(u&&i.push(new Kn(u,this._x0,this._x1));r=i.pop();)if(!n(u=r.node,c=r.x0,h=r.x1)&&u.length){var g=(c+h)/2;(o=u[1])&&i.push(new Kn(o,g,h)),(o=u[0])&&i.push(new Kn(o,c,g))}return this}function b4(n){var i=[],r=[],u;for(this._root&&i.push(new Kn(this._root,this._x0,this._x1));u=i.pop();){var o=u.node;if(o.length){var c,h=u.x0,g=u.x1,y=(h+g)/2;(c=o[0])&&i.push(new Kn(c,h,y)),(c=o[1])&&i.push(new Kn(c,y,g))}r.push(u)}for(;u=r.pop();)n(u.node,u.x0,u.x1);return this}function x4(n){return n[0]}function w4(n){return arguments.length?(this._x=n,this):this._x}function Lm(n,i){var r=new th(i??x4,NaN,NaN);return n==null?r:r.addAll(n)}function th(n,i,r){this._x=n,this._x0=i,this._x1=r,this._root=void 0}function iy(n){for(var i={data:n.data},r=i;n=n.next;)r=r.next={data:n.data};return i}var Ce=Lm.prototype=th.prototype;Ce.copy=function(){var n=new th(this._x,this._x0,this._x1),i=this._root,r,u;if(!i)return n;if(!i.length)return n._root=iy(i),n;for(r=[{source:i,target:n._root=new Array(2)}];i=r.pop();)for(var o=0;o<2;++o)(u=i.source[o])&&(u.length?r.push({source:u,target:i.target[o]=new Array(2)}):i.target[o]=iy(u));return n};Ce.add=o4;Ce.addAll=c4;Ce.cover=f4;Ce.data=h4;Ce.extent=d4;Ce.find=g4;Ce.remove=p4;Ce.removeAll=y4;Ce.root=m4;Ce.size=v4;Ce.visit=_4;Ce.visitAfter=b4;Ce.x=w4;function S4(n){const i=+this._x.call(null,n),r=+this._y.call(null,n);return Bm(this.cover(i,r),i,r,n)}function Bm(n,i,r,u){if(isNaN(i)||isNaN(r))return n;var o,c=n._root,h={data:u},g=n._x0,y=n._y0,p=n._x1,v=n._y1,m,b,x,A,M,T,w,D;if(!c)return n._root=h,n;for(;c.length;)if((M=i>=(m=(g+p)/2))?g=m:p=m,(T=r>=(b=(y+v)/2))?y=b:v=b,o=c,!(c=c[w=T<<1|M]))return o[w]=h,n;if(x=+n._x.call(null,c.data),A=+n._y.call(null,c.data),i===x&&r===A)return h.next=c,o?o[w]=h:n._root=h,n;do o=o?o[w]=new Array(4):n._root=new Array(4),(M=i>=(m=(g+p)/2))?g=m:p=m,(T=r>=(b=(y+v)/2))?y=b:v=b;while((w=T<<1|M)===(D=(A>=b)<<1|x>=m));return o[D]=c,o[w]=h,n}function A4(n){var i,r,u=n.length,o,c,h=new Array(u),g=new Array(u),y=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<u;++r)isNaN(o=+this._x.call(null,i=n[r]))||isNaN(c=+this._y.call(null,i))||(h[r]=o,g[r]=c,o<y&&(y=o),o>v&&(v=o),c<p&&(p=c),c>m&&(m=c));if(y>v||p>m)return this;for(this.cover(y,p).cover(v,m),r=0;r<u;++r)Bm(this,h[r],g[r],n[r]);return this}function T4(n,i){if(isNaN(n=+n)||isNaN(i=+i))return this;var r=this._x0,u=this._y0,o=this._x1,c=this._y1;if(isNaN(r))o=(r=Math.floor(n))+1,c=(u=Math.floor(i))+1;else{for(var h=o-r||1,g=this._root,y,p;r>n||n>=o||u>i||i>=c;)switch(p=(i<u)<<1|n<r,y=new Array(4),y[p]=g,g=y,h*=2,p){case 0:o=r+h,c=u+h;break;case 1:r=o-h,c=u+h;break;case 2:o=r+h,u=c-h;break;case 3:r=o-h,u=c-h;break}this._root&&this._root.length&&(this._root=g)}return this._x0=r,this._y0=u,this._x1=o,this._y1=c,this}function E4(){var n=[];return this.visit(function(i){if(!i.length)do n.push(i.data);while(i=i.next)}),n}function O4(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function be(n,i,r,u,o){this.node=n,this.x0=i,this.y0=r,this.x1=u,this.y1=o}function M4(n,i,r){var u,o=this._x0,c=this._y0,h,g,y,p,v=this._x1,m=this._y1,b=[],x=this._root,A,M;for(x&&b.push(new be(x,o,c,v,m)),r==null?r=1/0:(o=n-r,c=i-r,v=n+r,m=i+r,r*=r);A=b.pop();)if(!(!(x=A.node)||(h=A.x0)>v||(g=A.y0)>m||(y=A.x1)<o||(p=A.y1)<c))if(x.length){var T=(h+y)/2,w=(g+p)/2;b.push(new be(x[3],T,w,y,p),new be(x[2],h,w,T,p),new be(x[1],T,g,y,w),new be(x[0],h,g,T,w)),(M=(i>=w)<<1|n>=T)&&(A=b[b.length-1],b[b.length-1]=b[b.length-1-M],b[b.length-1-M]=A)}else{var D=n-+this._x.call(null,x.data),q=i-+this._y.call(null,x.data),R=D*D+q*q;if(R<r){var C=Math.sqrt(r=R);o=n-C,c=i-C,v=n+C,m=i+C,u=x.data}}return u}function C4(n){if(isNaN(v=+this._x.call(null,n))||isNaN(m=+this._y.call(null,n)))return this;var i,r=this._root,u,o,c,h=this._x0,g=this._y0,y=this._x1,p=this._y1,v,m,b,x,A,M,T,w;if(!r)return this;if(r.length)for(;;){if((A=v>=(b=(h+y)/2))?h=b:y=b,(M=m>=(x=(g+p)/2))?g=x:p=x,i=r,!(r=r[T=M<<1|A]))return this;if(!r.length)break;(i[T+1&3]||i[T+2&3]||i[T+3&3])&&(u=i,w=T)}for(;r.data!==n;)if(o=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,o?(c?o.next=c:delete o.next,this):i?(c?i[T]=c:delete i[T],(r=i[0]||i[1]||i[2]||i[3])&&r===(i[3]||i[2]||i[1]||i[0])&&!r.length&&(u?u[w]=r:this._root=r),this):(this._root=c,this)}function N4(n){for(var i=0,r=n.length;i<r;++i)this.remove(n[i]);return this}function z4(){return this._root}function R4(){var n=0;return this.visit(function(i){if(!i.length)do++n;while(i=i.next)}),n}function D4(n){var i=[],r,u=this._root,o,c,h,g,y;for(u&&i.push(new be(u,this._x0,this._y0,this._x1,this._y1));r=i.pop();)if(!n(u=r.node,c=r.x0,h=r.y0,g=r.x1,y=r.y1)&&u.length){var p=(c+g)/2,v=(h+y)/2;(o=u[3])&&i.push(new be(o,p,v,g,y)),(o=u[2])&&i.push(new be(o,c,v,p,y)),(o=u[1])&&i.push(new be(o,p,h,g,v)),(o=u[0])&&i.push(new be(o,c,h,p,v))}return this}function j4(n){var i=[],r=[],u;for(this._root&&i.push(new be(this._root,this._x0,this._y0,this._x1,this._y1));u=i.pop();){var o=u.node;if(o.length){var c,h=u.x0,g=u.y0,y=u.x1,p=u.y1,v=(h+y)/2,m=(g+p)/2;(c=o[0])&&i.push(new be(c,h,g,v,m)),(c=o[1])&&i.push(new be(c,v,g,y,m)),(c=o[2])&&i.push(new be(c,h,m,v,p)),(c=o[3])&&i.push(new be(c,v,m,y,p))}r.push(u)}for(;u=r.pop();)n(u.node,u.x0,u.y0,u.x1,u.y1);return this}function k4(n){return n[0]}function U4(n){return arguments.length?(this._x=n,this):this._x}function q4(n){return n[1]}function H4(n){return arguments.length?(this._y=n,this):this._y}function Gm(n,i,r){var u=new eh(i??k4,r??q4,NaN,NaN,NaN,NaN);return n==null?u:u.addAll(n)}function eh(n,i,r,u,o,c){this._x=n,this._y=i,this._x0=r,this._y0=u,this._x1=o,this._y1=c,this._root=void 0}function ay(n){for(var i={data:n.data},r=i;n=n.next;)r=r.next={data:n.data};return i}var xe=Gm.prototype=eh.prototype;xe.copy=function(){var n=new eh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root,r,u;if(!i)return n;if(!i.length)return n._root=ay(i),n;for(r=[{source:i,target:n._root=new Array(4)}];i=r.pop();)for(var o=0;o<4;++o)(u=i.source[o])&&(u.length?r.push({source:u,target:i.target[o]=new Array(4)}):i.target[o]=ay(u));return n};xe.add=S4;xe.addAll=A4;xe.cover=T4;xe.data=E4;xe.extent=O4;xe.find=M4;xe.remove=C4;xe.removeAll=N4;xe.root=z4;xe.size=R4;xe.visit=D4;xe.visitAfter=j4;xe.x=U4;xe.y=H4;function L4(n){const i=+this._x.call(null,n),r=+this._y.call(null,n),u=+this._z.call(null,n);return Qm(this.cover(i,r,u),i,r,u,n)}function Qm(n,i,r,u,o){if(isNaN(i)||isNaN(r)||isNaN(u))return n;var c,h=n._root,g={data:o},y=n._x0,p=n._y0,v=n._z0,m=n._x1,b=n._y1,x=n._z1,A,M,T,w,D,q,R,C,H,U,B;if(!h)return n._root=g,n;for(;h.length;)if((R=i>=(A=(y+m)/2))?y=A:m=A,(C=r>=(M=(p+b)/2))?p=M:b=M,(H=u>=(T=(v+x)/2))?v=T:x=T,c=h,!(h=h[U=H<<2|C<<1|R]))return c[U]=g,n;if(w=+n._x.call(null,h.data),D=+n._y.call(null,h.data),q=+n._z.call(null,h.data),i===w&&r===D&&u===q)return g.next=h,c?c[U]=g:n._root=g,n;do c=c?c[U]=new Array(8):n._root=new Array(8),(R=i>=(A=(y+m)/2))?y=A:m=A,(C=r>=(M=(p+b)/2))?p=M:b=M,(H=u>=(T=(v+x)/2))?v=T:x=T;while((U=H<<2|C<<1|R)===(B=(q>=T)<<2|(D>=M)<<1|w>=A));return c[B]=h,c[U]=g,n}function B4(n){Array.isArray(n)||(n=Array.from(n));const i=n.length,r=new Float64Array(i),u=new Float64Array(i),o=new Float64Array(i);let c=1/0,h=1/0,g=1/0,y=-1/0,p=-1/0,v=-1/0;for(let m=0,b,x,A,M;m<i;++m)isNaN(x=+this._x.call(null,b=n[m]))||isNaN(A=+this._y.call(null,b))||isNaN(M=+this._z.call(null,b))||(r[m]=x,u[m]=A,o[m]=M,x<c&&(c=x),x>y&&(y=x),A<h&&(h=A),A>p&&(p=A),M<g&&(g=M),M>v&&(v=M));if(c>y||h>p||g>v)return this;this.cover(c,h,g).cover(y,p,v);for(let m=0;m<i;++m)Qm(this,r[m],u[m],o[m],n[m]);return this}function G4(n,i,r){if(isNaN(n=+n)||isNaN(i=+i)||isNaN(r=+r))return this;var u=this._x0,o=this._y0,c=this._z0,h=this._x1,g=this._y1,y=this._z1;if(isNaN(u))h=(u=Math.floor(n))+1,g=(o=Math.floor(i))+1,y=(c=Math.floor(r))+1;else{for(var p=h-u||1,v=this._root,m,b;u>n||n>=h||o>i||i>=g||c>r||r>=y;)switch(b=(r<c)<<2|(i<o)<<1|n<u,m=new Array(8),m[b]=v,v=m,p*=2,b){case 0:h=u+p,g=o+p,y=c+p;break;case 1:u=h-p,g=o+p,y=c+p;break;case 2:h=u+p,o=g-p,y=c+p;break;case 3:u=h-p,o=g-p,y=c+p;break;case 4:h=u+p,g=o+p,c=y-p;break;case 5:u=h-p,g=o+p,c=y-p;break;case 6:h=u+p,o=g-p,c=y-p;break;case 7:u=h-p,o=g-p,c=y-p;break}this._root&&this._root.length&&(this._root=v)}return this._x0=u,this._y0=o,this._z0=c,this._x1=h,this._y1=g,this._z1=y,this}function Q4(){var n=[];return this.visit(function(i){if(!i.length)do n.push(i.data);while(i=i.next)}),n}function Y4(n){return arguments.length?this.cover(+n[0][0],+n[0][1],+n[0][2]).cover(+n[1][0],+n[1][1],+n[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}function Ht(n,i,r,u,o,c,h){this.node=n,this.x0=i,this.y0=r,this.z0=u,this.x1=o,this.y1=c,this.z1=h}function X4(n,i,r,u){var o,c=this._x0,h=this._y0,g=this._z0,y,p,v,m,b,x,A=this._x1,M=this._y1,T=this._z1,w=[],D=this._root,q,R;for(D&&w.push(new Ht(D,c,h,g,A,M,T)),u==null?u=1/0:(c=n-u,h=i-u,g=r-u,A=n+u,M=i+u,T=r+u,u*=u);q=w.pop();)if(!(!(D=q.node)||(y=q.x0)>A||(p=q.y0)>M||(v=q.z0)>T||(m=q.x1)<c||(b=q.y1)<h||(x=q.z1)<g))if(D.length){var C=(y+m)/2,H=(p+b)/2,U=(v+x)/2;w.push(new Ht(D[7],C,H,U,m,b,x),new Ht(D[6],y,H,U,C,b,x),new Ht(D[5],C,p,U,m,H,x),new Ht(D[4],y,p,U,C,H,x),new Ht(D[3],C,H,v,m,b,U),new Ht(D[2],y,H,v,C,b,U),new Ht(D[1],C,p,v,m,H,U),new Ht(D[0],y,p,v,C,H,U)),(R=(r>=U)<<2|(i>=H)<<1|n>=C)&&(q=w[w.length-1],w[w.length-1]=w[w.length-1-R],w[w.length-1-R]=q)}else{var B=n-+this._x.call(null,D.data),J=i-+this._y.call(null,D.data),W=r-+this._z.call(null,D.data),et=B*B+J*J+W*W;if(et<u){var lt=Math.sqrt(u=et);c=n-lt,h=i-lt,g=r-lt,A=n+lt,M=i+lt,T=r+lt,o=D.data}}return o}const V4=(n,i,r,u,o,c)=>Math.sqrt((n-u)**2+(i-o)**2+(r-c)**2);function Z4(n,i,r,u){const o=[],c=n-u,h=i-u,g=r-u,y=n+u,p=i+u,v=r+u;return this.visit((m,b,x,A,M,T,w)=>{if(!m.length)do{const D=m.data;V4(n,i,r,this._x(D),this._y(D),this._z(D))<=u&&o.push(D)}while(m=m.next);return b>y||x>p||A>v||M<c||T<h||w<g}),o}function $4(n){if(isNaN(b=+this._x.call(null,n))||isNaN(x=+this._y.call(null,n))||isNaN(A=+this._z.call(null,n)))return this;var i,r=this._root,u,o,c,h=this._x0,g=this._y0,y=this._z0,p=this._x1,v=this._y1,m=this._z1,b,x,A,M,T,w,D,q,R,C,H;if(!r)return this;if(r.length)for(;;){if((D=b>=(M=(h+p)/2))?h=M:p=M,(q=x>=(T=(g+v)/2))?g=T:v=T,(R=A>=(w=(y+m)/2))?y=w:m=w,i=r,!(r=r[C=R<<2|q<<1|D]))return this;if(!r.length)break;(i[C+1&7]||i[C+2&7]||i[C+3&7]||i[C+4&7]||i[C+5&7]||i[C+6&7]||i[C+7&7])&&(u=i,H=C)}for(;r.data!==n;)if(o=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,o?(c?o.next=c:delete o.next,this):i?(c?i[C]=c:delete i[C],(r=i[0]||i[1]||i[2]||i[3]||i[4]||i[5]||i[6]||i[7])&&r===(i[7]||i[6]||i[5]||i[4]||i[3]||i[2]||i[1]||i[0])&&!r.length&&(u?u[H]=r:this._root=r),this):(this._root=c,this)}function K4(n){for(var i=0,r=n.length;i<r;++i)this.remove(n[i]);return this}function F4(){return this._root}function P4(){var n=0;return this.visit(function(i){if(!i.length)do++n;while(i=i.next)}),n}function J4(n){var i=[],r,u=this._root,o,c,h,g,y,p,v;for(u&&i.push(new Ht(u,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));r=i.pop();)if(!n(u=r.node,c=r.x0,h=r.y0,g=r.z0,y=r.x1,p=r.y1,v=r.z1)&&u.length){var m=(c+y)/2,b=(h+p)/2,x=(g+v)/2;(o=u[7])&&i.push(new Ht(o,m,b,x,y,p,v)),(o=u[6])&&i.push(new Ht(o,c,b,x,m,p,v)),(o=u[5])&&i.push(new Ht(o,m,h,x,y,b,v)),(o=u[4])&&i.push(new Ht(o,c,h,x,m,b,v)),(o=u[3])&&i.push(new Ht(o,m,b,g,y,p,x)),(o=u[2])&&i.push(new Ht(o,c,b,g,m,p,x)),(o=u[1])&&i.push(new Ht(o,m,h,g,y,b,x)),(o=u[0])&&i.push(new Ht(o,c,h,g,m,b,x))}return this}function W4(n){var i=[],r=[],u;for(this._root&&i.push(new Ht(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));u=i.pop();){var o=u.node;if(o.length){var c,h=u.x0,g=u.y0,y=u.z0,p=u.x1,v=u.y1,m=u.z1,b=(h+p)/2,x=(g+v)/2,A=(y+m)/2;(c=o[0])&&i.push(new Ht(c,h,g,y,b,x,A)),(c=o[1])&&i.push(new Ht(c,b,g,y,p,x,A)),(c=o[2])&&i.push(new Ht(c,h,x,y,b,v,A)),(c=o[3])&&i.push(new Ht(c,b,x,y,p,v,A)),(c=o[4])&&i.push(new Ht(c,h,g,A,b,x,m)),(c=o[5])&&i.push(new Ht(c,b,g,A,p,x,m)),(c=o[6])&&i.push(new Ht(c,h,x,A,b,v,m)),(c=o[7])&&i.push(new Ht(c,b,x,A,p,v,m))}r.push(u)}for(;u=r.pop();)n(u.node,u.x0,u.y0,u.z0,u.x1,u.y1,u.z1);return this}function I4(n){return n[0]}function tA(n){return arguments.length?(this._x=n,this):this._x}function eA(n){return n[1]}function nA(n){return arguments.length?(this._y=n,this):this._y}function iA(n){return n[2]}function aA(n){return arguments.length?(this._z=n,this):this._z}function Ym(n,i,r,u){var o=new nh(i??I4,r??eA,u??iA,NaN,NaN,NaN,NaN,NaN,NaN);return n==null?o:o.addAll(n)}function nh(n,i,r,u,o,c,h,g,y){this._x=n,this._y=i,this._z=r,this._x0=u,this._y0=o,this._z0=c,this._x1=h,this._y1=g,this._z1=y,this._root=void 0}function ry(n){for(var i={data:n.data},r=i;n=n.next;)r=r.next={data:n.data};return i}var fe=Ym.prototype=nh.prototype;fe.copy=function(){var n=new nh(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),i=this._root,r,u;if(!i)return n;if(!i.length)return n._root=ry(i),n;for(r=[{source:i,target:n._root=new Array(8)}];i=r.pop();)for(var o=0;o<8;++o)(u=i.source[o])&&(u.length?r.push({source:u,target:i.target[o]=new Array(8)}):i.target[o]=ry(u));return n};fe.add=L4;fe.addAll=B4;fe.cover=G4;fe.data=Q4;fe.extent=Y4;fe.find=X4;fe.findAllWithinRadius=Z4;fe.remove=$4;fe.removeAll=K4;fe.root=F4;fe.size=P4;fe.visit=J4;fe.visitAfter=W4;fe.x=tA;fe.y=nA;fe.z=aA;function $n(n){return function(){return n}}function Vn(n){return(n()-.5)*1e-6}function rA(n){return n.index}function ly(n,i){var r=n.get(i);if(!r)throw new Error("node not found: "+i);return r}function lA(n){var i=rA,r=b,u,o=$n(30),c,h,g,y,p,v,m=1;n==null&&(n=[]);function b(w){return 1/Math.min(y[w.source.index],y[w.target.index])}function x(w){for(var D=0,q=n.length;D<m;++D)for(var R=0,C,H,U,B=0,J=0,W=0,et,lt;R<q;++R)C=n[R],H=C.source,U=C.target,B=U.x+U.vx-H.x-H.vx||Vn(v),g>1&&(J=U.y+U.vy-H.y-H.vy||Vn(v)),g>2&&(W=U.z+U.vz-H.z-H.vz||Vn(v)),et=Math.sqrt(B*B+J*J+W*W),et=(et-c[R])/et*w*u[R],B*=et,J*=et,W*=et,U.vx-=B*(lt=p[R]),g>1&&(U.vy-=J*lt),g>2&&(U.vz-=W*lt),H.vx+=B*(lt=1-lt),g>1&&(H.vy+=J*lt),g>2&&(H.vz+=W*lt)}function A(){if(h){var w,D=h.length,q=n.length,R=new Map(h.map((H,U)=>[i(H,U,h),H])),C;for(w=0,y=new Array(D);w<q;++w)C=n[w],C.index=w,typeof C.source!="object"&&(C.source=ly(R,C.source)),typeof C.target!="object"&&(C.target=ly(R,C.target)),y[C.source.index]=(y[C.source.index]||0)+1,y[C.target.index]=(y[C.target.index]||0)+1;for(w=0,p=new Array(q);w<q;++w)C=n[w],p[w]=y[C.source.index]/(y[C.source.index]+y[C.target.index]);u=new Array(q),M(),c=new Array(q),T()}}function M(){if(h)for(var w=0,D=n.length;w<D;++w)u[w]=+r(n[w],w,n)}function T(){if(h)for(var w=0,D=n.length;w<D;++w)c[w]=+o(n[w],w,n)}return x.initialize=function(w,...D){h=w,v=D.find(q=>typeof q=="function")||Math.random,g=D.find(q=>[1,2,3].includes(q))||2,A()},x.links=function(w){return arguments.length?(n=w,A(),x):n},x.id=function(w){return arguments.length?(i=w,x):i},x.iterations=function(w){return arguments.length?(m=+w,x):m},x.strength=function(w){return arguments.length?(r=typeof w=="function"?w:$n(+w),M(),x):r},x.distance=function(w){return arguments.length?(o=typeof w=="function"?w:$n(+w),T(),x):o},x}const uA=1664525,sA=1013904223,uy=4294967296;function oA(){let n=1;return()=>(n=(uA*n+sA)%uy)/uy}var sy=3;function ef(n){return n.x}function oy(n){return n.y}function cA(n){return n.z}var fA=10,hA=Math.PI*(3-Math.sqrt(5)),dA=Math.PI*20/(9+Math.sqrt(221));function gA(n,i){i=i||2;var r=Math.min(sy,Math.max(1,Math.round(i))),u,o=1,c=.001,h=1-Math.pow(c,1/300),g=0,y=.6,p=new Map,v=Vf(x),m=Sl("tick","end"),b=oA();n==null&&(n=[]);function x(){A(),m.call("tick",u),o<c&&(v.stop(),m.call("end",u))}function A(w){var D,q=n.length,R;w===void 0&&(w=1);for(var C=0;C<w;++C)for(o+=(g-o)*h,p.forEach(function(H){H(o)}),D=0;D<q;++D)R=n[D],R.fx==null?R.x+=R.vx*=y:(R.x=R.fx,R.vx=0),r>1&&(R.fy==null?R.y+=R.vy*=y:(R.y=R.fy,R.vy=0)),r>2&&(R.fz==null?R.z+=R.vz*=y:(R.z=R.fz,R.vz=0));return u}function M(){for(var w=0,D=n.length,q;w<D;++w){if(q=n[w],q.index=w,q.fx!=null&&(q.x=q.fx),q.fy!=null&&(q.y=q.fy),q.fz!=null&&(q.z=q.fz),isNaN(q.x)||r>1&&isNaN(q.y)||r>2&&isNaN(q.z)){var R=fA*(r>2?Math.cbrt(.5+w):r>1?Math.sqrt(.5+w):w),C=w*hA,H=w*dA;r===1?q.x=R:r===2?(q.x=R*Math.cos(C),q.y=R*Math.sin(C)):(q.x=R*Math.sin(C)*Math.cos(H),q.y=R*Math.cos(C),q.z=R*Math.sin(C)*Math.sin(H))}(isNaN(q.vx)||r>1&&isNaN(q.vy)||r>2&&isNaN(q.vz))&&(q.vx=0,r>1&&(q.vy=0),r>2&&(q.vz=0))}}function T(w){return w.initialize&&w.initialize(n,b,r),w}return M(),u={tick:A,restart:function(){return v.restart(x),u},stop:function(){return v.stop(),u},numDimensions:function(w){return arguments.length?(r=Math.min(sy,Math.max(1,Math.round(w))),p.forEach(T),u):r},nodes:function(w){return arguments.length?(n=w,M(),p.forEach(T),u):n},alpha:function(w){return arguments.length?(o=+w,u):o},alphaMin:function(w){return arguments.length?(c=+w,u):c},alphaDecay:function(w){return arguments.length?(h=+w,u):+h},alphaTarget:function(w){return arguments.length?(g=+w,u):g},velocityDecay:function(w){return arguments.length?(y=1-w,u):1-y},randomSource:function(w){return arguments.length?(b=w,p.forEach(T),u):b},force:function(w,D){return arguments.length>1?(D==null?p.delete(w):p.set(w,T(D)),u):p.get(w)},find:function(){var w=Array.prototype.slice.call(arguments),D=w.shift()||0,q=(r>1?w.shift():null)||0,R=(r>2?w.shift():null)||0,C=w.shift()||1/0,H=0,U=n.length,B,J,W,et,lt,ft;for(C*=C,H=0;H<U;++H)lt=n[H],B=D-lt.x,J=q-(lt.y||0),W=R-(lt.z||0),et=B*B+J*J+W*W,et<C&&(ft=lt,C=et);return ft},on:function(w,D){return arguments.length>1?(m.on(w,D),u):m.on(w)}}}function pA(){var n,i,r,u,o,c=$n(-30),h,g=1,y=1/0,p=.81;function v(A){var M,T=n.length,w=(i===1?Lm(n,ef):i===2?Gm(n,ef,oy):i===3?Ym(n,ef,oy,cA):null).visitAfter(b);for(o=A,M=0;M<T;++M)r=n[M],w.visit(x)}function m(){if(n){var A,M=n.length,T;for(h=new Array(M),A=0;A<M;++A)T=n[A],h[T.index]=+c(T,A,n)}}function b(A){var M=0,T,w,D=0,q,R,C,H,U=A.length;if(U){for(q=R=C=H=0;H<U;++H)(T=A[H])&&(w=Math.abs(T.value))&&(M+=T.value,D+=w,q+=w*(T.x||0),R+=w*(T.y||0),C+=w*(T.z||0));M*=Math.sqrt(4/U),A.x=q/D,i>1&&(A.y=R/D),i>2&&(A.z=C/D)}else{T=A,T.x=T.data.x,i>1&&(T.y=T.data.y),i>2&&(T.z=T.data.z);do M+=h[T.data.index];while(T=T.next)}A.value=M}function x(A,M,T,w,D){if(!A.value)return!0;var q=[T,w,D][i-1],R=A.x-r.x,C=i>1?A.y-r.y:0,H=i>2?A.z-r.z:0,U=q-M,B=R*R+C*C+H*H;if(U*U/p<B)return B<y&&(R===0&&(R=Vn(u),B+=R*R),i>1&&C===0&&(C=Vn(u),B+=C*C),i>2&&H===0&&(H=Vn(u),B+=H*H),B<g&&(B=Math.sqrt(g*B)),r.vx+=R*A.value*o/B,i>1&&(r.vy+=C*A.value*o/B),i>2&&(r.vz+=H*A.value*o/B)),!0;if(A.length||B>=y)return;(A.data!==r||A.next)&&(R===0&&(R=Vn(u),B+=R*R),i>1&&C===0&&(C=Vn(u),B+=C*C),i>2&&H===0&&(H=Vn(u),B+=H*H),B<g&&(B=Math.sqrt(g*B)));do A.data!==r&&(U=h[A.data.index]*o/B,r.vx+=R*U,i>1&&(r.vy+=C*U),i>2&&(r.vz+=H*U));while(A=A.next)}return v.initialize=function(A,...M){n=A,u=M.find(T=>typeof T=="function")||Math.random,i=M.find(T=>[1,2,3].includes(T))||2,m()},v.strength=function(A){return arguments.length?(c=typeof A=="function"?A:$n(+A),m(),v):c},v.distanceMin=function(A){return arguments.length?(g=A*A,v):Math.sqrt(g)},v.distanceMax=function(A){return arguments.length?(y=A*A,v):Math.sqrt(y)},v.theta=function(A){return arguments.length?(p=A*A,v):Math.sqrt(p)},v}function yA(n,i,r,u){var o,c,h=$n(.1),g,y;typeof n!="function"&&(n=$n(+n)),i==null&&(i=0),r==null&&(r=0),u==null&&(u=0);function p(m){for(var b=0,x=o.length;b<x;++b){var A=o[b],M=A.x-i||1e-6,T=(A.y||0)-r||1e-6,w=(A.z||0)-u||1e-6,D=Math.sqrt(M*M+T*T+w*w),q=(y[b]-D)*g[b]*m/D;A.vx+=M*q,c>1&&(A.vy+=T*q),c>2&&(A.vz+=w*q)}}function v(){if(o){var m,b=o.length;for(g=new Array(b),y=new Array(b),m=0;m<b;++m)y[m]=+n(o[m],m,o),g[m]=isNaN(y[m])?0:+h(o[m],m,o)}}return p.initialize=function(m,...b){o=m,c=b.find(x=>[1,2,3].includes(x))||2,v()},p.strength=function(m){return arguments.length?(h=typeof m=="function"?m:$n(+m),v(),p):h},p.radius=function(m){return arguments.length?(n=typeof m=="function"?m:$n(+m),v(),p):n},p.x=function(m){return arguments.length?(i=+m,p):i},p.y=function(m){return arguments.length?(r=+m,p):r},p.z=function(m){return arguments.length?(u=+m,p):u},p}const{abs:tl,cos:Xn,sin:Xa,acos:mA,atan2:el,sqrt:_i,pow:Pe}=Math;function nl(n){return n<0?-Pe(-n,1/3):Pe(n,1/3)}const Xm=Math.PI,Fu=2*Xm,bi=Xm/2,vA=1e-6,nf=Number.MAX_SAFE_INTEGER||9007199254740991,af=Number.MIN_SAFE_INTEGER||-9007199254740991,_A={x:0,y:0,z:0},rt={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(n,i){const r=i(n);let u=r.x*r.x+r.y*r.y;return typeof r.z<"u"&&(u+=r.z*r.z),_i(u)},compute:function(n,i,r){if(n===0)return i[0].t=0,i[0];const u=i.length-1;if(n===1)return i[u].t=1,i[u];const o=1-n;let c=i;if(u===0)return i[0].t=n,i[0];if(u===1){const g={x:o*c[0].x+n*c[1].x,y:o*c[0].y+n*c[1].y,t:n};return r&&(g.z=o*c[0].z+n*c[1].z),g}if(u<4){let g=o*o,y=n*n,p,v,m,b=0;u===2?(c=[c[0],c[1],c[2],_A],p=g,v=o*n*2,m=y):u===3&&(p=g*o,v=g*n*3,m=o*y*3,b=n*y);const x={x:p*c[0].x+v*c[1].x+m*c[2].x+b*c[3].x,y:p*c[0].y+v*c[1].y+m*c[2].y+b*c[3].y,t:n};return r&&(x.z=p*c[0].z+v*c[1].z+m*c[2].z+b*c[3].z),x}const h=JSON.parse(JSON.stringify(i));for(;h.length>1;){for(let g=0;g<h.length-1;g++)h[g]={x:h[g].x+(h[g+1].x-h[g].x)*n,y:h[g].y+(h[g+1].y-h[g].y)*n},typeof h[g].z<"u"&&(h[g].z=h[g].z+(h[g+1].z-h[g].z)*n);h.splice(h.length-1,1)}return h[0].t=n,h[0]},computeWithRatios:function(n,i,r,u){const o=1-n,c=r,h=i;let g=c[0],y=c[1],p=c[2],v=c[3],m;if(g*=o,y*=n,h.length===2)return m=g+y,{x:(g*h[0].x+y*h[1].x)/m,y:(g*h[0].y+y*h[1].y)/m,z:u?(g*h[0].z+y*h[1].z)/m:!1,t:n};if(g*=o,y*=2*o,p*=n*n,h.length===3)return m=g+y+p,{x:(g*h[0].x+y*h[1].x+p*h[2].x)/m,y:(g*h[0].y+y*h[1].y+p*h[2].y)/m,z:u?(g*h[0].z+y*h[1].z+p*h[2].z)/m:!1,t:n};if(g*=o,y*=1.5*o,p*=3*o,v*=n*n*n,h.length===4)return m=g+y+p+v,{x:(g*h[0].x+y*h[1].x+p*h[2].x+v*h[3].x)/m,y:(g*h[0].y+y*h[1].y+p*h[2].y+v*h[3].y)/m,z:u?(g*h[0].z+y*h[1].z+p*h[2].z+v*h[3].z)/m:!1,t:n}},derive:function(n,i){const r=[];for(let u=n,o=u.length,c=o-1;o>1;o--,c--){const h=[];for(let g=0,y;g<c;g++)y={x:c*(u[g+1].x-u[g].x),y:c*(u[g+1].y-u[g].y)},i&&(y.z=c*(u[g+1].z-u[g].z)),h.push(y);r.push(h),u=h}return r},between:function(n,i,r){return i<=n&&n<=r||rt.approximately(n,i)||rt.approximately(n,r)},approximately:function(n,i,r){return tl(n-i)<=(r||vA)},length:function(n){const r=rt.Tvalues.length;let u=0;for(let o=0,c;o<r;o++)c=.5*rt.Tvalues[o]+.5,u+=rt.Cvalues[o]*rt.arcfn(c,n);return .5*u},map:function(n,i,r,u,o){const c=r-i,h=o-u,g=n-i,y=g/c;return u+h*y},lerp:function(n,i,r){const u={x:i.x+n*(r.x-i.x),y:i.y+n*(r.y-i.y)};return i.z!==void 0&&r.z!==void 0&&(u.z=i.z+n*(r.z-i.z)),u},pointToString:function(n){let i=n.x+"/"+n.y;return typeof n.z<"u"&&(i+="/"+n.z),i},pointsToString:function(n){return"["+n.map(rt.pointToString).join(", ")+"]"},copy:function(n){return JSON.parse(JSON.stringify(n))},angle:function(n,i,r){const u=i.x-n.x,o=i.y-n.y,c=r.x-n.x,h=r.y-n.y,g=u*h-o*c,y=u*c+o*h;return el(g,y)},round:function(n,i){const r=""+n,u=r.indexOf(".");return parseFloat(r.substring(0,u+1+i))},dist:function(n,i){const r=n.x-i.x,u=n.y-i.y;return _i(r*r+u*u)},closest:function(n,i){let r=Pe(2,63),u,o;return n.forEach(function(c,h){o=rt.dist(i,c),o<r&&(r=o,u=h)}),{mdist:r,mpos:u}},abcratio:function(n,i){if(i!==2&&i!==3)return!1;if(typeof n>"u")n=.5;else if(n===0||n===1)return n;const r=Pe(n,i)+Pe(1-n,i),u=r-1;return tl(u/r)},projectionratio:function(n,i){if(i!==2&&i!==3)return!1;if(typeof n>"u")n=.5;else if(n===0||n===1)return n;const r=Pe(1-n,i),u=Pe(n,i)+r;return r/u},lli8:function(n,i,r,u,o,c,h,g){const y=(n*u-i*r)*(o-h)-(n-r)*(o*g-c*h),p=(n*u-i*r)*(c-g)-(i-u)*(o*g-c*h),v=(n-r)*(c-g)-(i-u)*(o-h);return v==0?!1:{x:y/v,y:p/v}},lli4:function(n,i,r,u){const o=n.x,c=n.y,h=i.x,g=i.y,y=r.x,p=r.y,v=u.x,m=u.y;return rt.lli8(o,c,h,g,y,p,v,m)},lli:function(n,i){return rt.lli4(n,n.c,i,i.c)},makeline:function(n,i){return new Bt(n.x,n.y,(n.x+i.x)/2,(n.y+i.y)/2,i.x,i.y)},findbbox:function(n){let i=nf,r=nf,u=af,o=af;return n.forEach(function(c){const h=c.bbox();i>h.x.min&&(i=h.x.min),r>h.y.min&&(r=h.y.min),u<h.x.max&&(u=h.x.max),o<h.y.max&&(o=h.y.max)}),{x:{min:i,mid:(i+u)/2,max:u,size:u-i},y:{min:r,mid:(r+o)/2,max:o,size:o-r}}},shapeintersections:function(n,i,r,u,o){if(!rt.bboxoverlap(i,u))return[];const c=[],h=[n.startcap,n.forward,n.back,n.endcap],g=[r.startcap,r.forward,r.back,r.endcap];return h.forEach(function(y){y.virtual||g.forEach(function(p){if(p.virtual)return;const v=y.intersects(p,o);v.length>0&&(v.c1=y,v.c2=p,v.s1=n,v.s2=r,c.push(v))})}),c},makeshape:function(n,i,r){const u=i.points.length,o=n.points.length,c=rt.makeline(i.points[u-1],n.points[0]),h=rt.makeline(n.points[o-1],i.points[0]),g={startcap:c,forward:n,back:i,endcap:h,bbox:rt.findbbox([c,n,i,h])};return g.intersections=function(y){return rt.shapeintersections(g,g.bbox,y,y.bbox,r)},g},getminmax:function(n,i,r){if(!r)return{min:0,max:0};let u=nf,o=af,c,h;r.indexOf(0)===-1&&(r=[0].concat(r)),r.indexOf(1)===-1&&r.push(1);for(let g=0,y=r.length;g<y;g++)c=r[g],h=n.get(c),h[i]<u&&(u=h[i]),h[i]>o&&(o=h[i]);return{min:u,mid:(u+o)/2,max:o,size:o-u}},align:function(n,i){const r=i.p1.x,u=i.p1.y,o=-el(i.p2.y-u,i.p2.x-r),c=function(h){return{x:(h.x-r)*Xn(o)-(h.y-u)*Xa(o),y:(h.x-r)*Xa(o)+(h.y-u)*Xn(o)}};return n.map(c)},roots:function(n,i){i=i||{p1:{x:0,y:0},p2:{x:1,y:0}};const r=n.length-1,u=rt.align(n,i),o=function(U){return 0<=U&&U<=1};if(r===2){const U=u[0].y,B=u[1].y,J=u[2].y,W=U-2*B+J;if(W!==0){const et=-_i(B*B-U*J),lt=-U+B,ft=-(et+lt)/W,G=-(-et+lt)/W;return[ft,G].filter(o)}else if(B!==J&&W===0)return[(2*B-J)/(2*B-2*J)].filter(o);return[]}const c=u[0].y,h=u[1].y,g=u[2].y,y=u[3].y;let p=-c+3*h-3*g+y,v=3*c-6*h+3*g,m=-3*c+3*h,b=c;if(rt.approximately(p,0)){if(rt.approximately(v,0))return rt.approximately(m,0)?[]:[-b/m].filter(o);const U=_i(m*m-4*v*b),B=2*v;return[(U-m)/B,(-m-U)/B].filter(o)}v/=p,m/=p,b/=p;const x=(3*m-v*v)/3,A=x/3,M=(2*v*v*v-9*v*m+27*b)/27,T=M/2,w=T*T+A*A*A;let D,q,R,C,H;if(w<0){const U=-x/3,B=U*U*U,J=_i(B),W=-M/(2*J),et=W<-1?-1:W>1?1:W,lt=mA(et),ft=nl(J),G=2*ft;return R=G*Xn(lt/3)-v/3,C=G*Xn((lt+Fu)/3)-v/3,H=G*Xn((lt+2*Fu)/3)-v/3,[R,C,H].filter(o)}else{if(w===0)return D=T<0?nl(-T):-nl(T),R=2*D-v/3,C=-D-v/3,[R,C].filter(o);{const U=_i(w);return D=nl(-T+U),q=nl(T+U),[D-q-v/3].filter(o)}}},droots:function(n){if(n.length===3){const i=n[0],r=n[1],u=n[2],o=i-2*r+u;if(o!==0){const c=-_i(r*r-i*u),h=-i+r,g=-(c+h)/o,y=-(-c+h)/o;return[g,y]}else if(r!==u&&o===0)return[(2*r-u)/(2*(r-u))];return[]}if(n.length===2){const i=n[0],r=n[1];return i!==r?[i/(i-r)]:[]}return[]},curvature:function(n,i,r,u,o){let c,h,g,y,p=0,v=0;const m=rt.compute(n,i),b=rt.compute(n,r),x=m.x*m.x+m.y*m.y;if(u?(c=_i(Pe(m.y*b.z-b.y*m.z,2)+Pe(m.z*b.x-b.z*m.x,2)+Pe(m.x*b.y-b.x*m.y,2)),h=Pe(x+m.z*m.z,3/2)):(c=m.x*b.y-m.y*b.x,h=Pe(x,3/2)),c===0||h===0)return{k:0,r:0};if(p=c/h,v=h/c,!o){const A=rt.curvature(n-.001,i,r,u,!0).k,M=rt.curvature(n+.001,i,r,u,!0).k;y=(M-p+(p-A))/2,g=(tl(M-p)+tl(p-A))/2}return{k:p,r:v,dk:y,adk:g}},inflections:function(n){if(n.length<4)return[];const i=rt.align(n,{p1:n[0],p2:n.slice(-1)[0]}),r=i[2].x*i[1].y,u=i[3].x*i[1].y,o=i[1].x*i[2].y,c=i[3].x*i[2].y,h=18*(-3*r+2*u+3*o-c),g=18*(3*r-u-3*o),y=18*(o-r);if(rt.approximately(h,0)){if(!rt.approximately(g,0)){let b=-y/g;if(0<=b&&b<=1)return[b]}return[]}const p=2*h;if(rt.approximately(p,0))return[];const v=g*g-4*h*y;if(v<0)return[];const m=Math.sqrt(v);return[(m-g)/p,-(g+m)/p].filter(function(b){return 0<=b&&b<=1})},bboxoverlap:function(n,i){const r=["x","y"],u=r.length;for(let o=0,c,h,g,y;o<u;o++)if(c=r[o],h=n[c].mid,g=i[c].mid,y=(n[c].size+i[c].size)/2,tl(h-g)>=y)return!1;return!0},expandbox:function(n,i){i.x.min<n.x.min&&(n.x.min=i.x.min),i.y.min<n.y.min&&(n.y.min=i.y.min),i.z&&i.z.min<n.z.min&&(n.z.min=i.z.min),i.x.max>n.x.max&&(n.x.max=i.x.max),i.y.max>n.y.max&&(n.y.max=i.y.max),i.z&&i.z.max>n.z.max&&(n.z.max=i.z.max),n.x.mid=(n.x.min+n.x.max)/2,n.y.mid=(n.y.min+n.y.max)/2,n.z&&(n.z.mid=(n.z.min+n.z.max)/2),n.x.size=n.x.max-n.x.min,n.y.size=n.y.max-n.y.min,n.z&&(n.z.size=n.z.max-n.z.min)},pairiteration:function(n,i,r){const u=n.bbox(),o=i.bbox(),c=1e5,h=r||.5;if(u.x.size+u.y.size<h&&o.x.size+o.y.size<h)return[(c*(n._t1+n._t2)/2|0)/c+"/"+(c*(i._t1+i._t2)/2|0)/c];let g=n.split(.5),y=i.split(.5),p=[{left:g.left,right:y.left},{left:g.left,right:y.right},{left:g.right,right:y.right},{left:g.right,right:y.left}];p=p.filter(function(m){return rt.bboxoverlap(m.left.bbox(),m.right.bbox())});let v=[];return p.length===0||(p.forEach(function(m){v=v.concat(rt.pairiteration(m.left,m.right,h))}),v=v.filter(function(m,b){return v.indexOf(m)===b})),v},getccenter:function(n,i,r){const u=i.x-n.x,o=i.y-n.y,c=r.x-i.x,h=r.y-i.y,g=u*Xn(bi)-o*Xa(bi),y=u*Xa(bi)+o*Xn(bi),p=c*Xn(bi)-h*Xa(bi),v=c*Xa(bi)+h*Xn(bi),m=(n.x+i.x)/2,b=(n.y+i.y)/2,x=(i.x+r.x)/2,A=(i.y+r.y)/2,M=m+g,T=b+y,w=x+p,D=A+v,q=rt.lli8(m,b,M,T,x,A,w,D),R=rt.dist(q,n);let C=el(n.y-q.y,n.x-q.x),H=el(i.y-q.y,i.x-q.x),U=el(r.y-q.y,r.x-q.x),B;return C<U?((C>H||H>U)&&(C+=Fu),C>U&&(B=U,U=C,C=B)):U<H&&H<C?(B=U,U=C,C=B):U+=Fu,q.s=C,q.e=U,q.r=R,q},numberSort:function(n,i){return n-i}};class fl{constructor(i){this.curves=[],this._3d=!1,i&&(this.curves=i,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map(function(i){return rt.pointsToString(i.points)}).join(", ")+"]"}addCurve(i){this.curves.push(i),this._3d=this._3d||i._3d}length(){return this.curves.map(function(i){return i.length()}).reduce(function(i,r){return i+r})}curve(i){return this.curves[i]}bbox(){const i=this.curves;for(var r=i[0].bbox(),u=1;u<i.length;u++)rt.expandbox(r,i[u].bbox());return r}offset(i){const r=[];return this.curves.forEach(function(u){r.push(...u.offset(i))}),new fl(r)}}const{abs:il,min:cy,max:fy,cos:bA,sin:xA,acos:wA,sqrt:al}=Math,SA=Math.PI;class Bt{constructor(i){let r=i&&i.forEach?i:Array.from(arguments).slice(),u=!1;if(typeof r[0]=="object"){u=r.length;const x=[];r.forEach(function(A){["x","y","z"].forEach(function(M){typeof A[M]<"u"&&x.push(A[M])})}),r=x}let o=!1;const c=r.length;if(u){if(u>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");o=!0}}else if(c!==6&&c!==8&&c!==9&&c!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const h=this._3d=!o&&(c===9||c===12)||i&&i[0]&&typeof i[0].z<"u",g=this.points=[];for(let x=0,A=h?3:2;x<c;x+=A){var y={x:r[x],y:r[x+1]};h&&(y.z=r[x+2]),g.push(y)}const p=this.order=g.length-1,v=this.dims=["x","y"];h&&v.push("z"),this.dimlen=v.length;const m=rt.align(g,{p1:g[0],p2:g[p]}),b=rt.dist(g[0],g[p]);this._linear=m.reduce((x,A)=>x+il(A.y),0)<b/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(i,r,u,o){if(typeof o>"u"&&(o=.5),o===0)return new Bt(r,r,u);if(o===1)return new Bt(i,r,r);const c=Bt.getABC(2,i,r,u,o);return new Bt(i,c.A,u)}static cubicFromPoints(i,r,u,o,c){typeof o>"u"&&(o=.5);const h=Bt.getABC(3,i,r,u,o);typeof c>"u"&&(c=rt.dist(r,h.C));const g=c*(1-o)/o,y=rt.dist(i,u),p=(u.x-i.x)/y,v=(u.y-i.y)/y,m=c*p,b=c*v,x=g*p,A=g*v,M={x:r.x-m,y:r.y-b},T={x:r.x+x,y:r.y+A},w=h.A,D={x:w.x+(M.x-w.x)/(1-o),y:w.y+(M.y-w.y)/(1-o)},q={x:w.x+(T.x-w.x)/o,y:w.y+(T.y-w.y)/o},R={x:i.x+(D.x-i.x)/o,y:i.y+(D.y-i.y)/o},C={x:u.x+(q.x-u.x)/(1-o),y:u.y+(q.y-u.y)/(1-o)};return new Bt(i,R,C,u)}static getUtils(){return rt}getUtils(){return Bt.getUtils()}static get PolyBezier(){return fl}valueOf(){return this.toString()}toString(){return rt.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const i=this.points,r=i[0].x,u=i[0].y,o=["M",r,u,this.order===2?"Q":"C"];for(let c=1,h=i.length;c<h;c++)o.push(i[c].x),o.push(i[c].y);return o.join(" ")}setRatios(i){if(i.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=i,this._lut=[]}verify(){const i=this.coordDigest();i!==this._print&&(this._print=i,this.update())}coordDigest(){return this.points.map(function(i,r){return""+r+i.x+i.y+(i.z?i.z:0)}).join("")}update(){this._lut=[],this.dpoints=rt.derive(this.points,this._3d),this.computedirection()}computedirection(){const i=this.points,r=rt.angle(i[0],i[this.order],i[1]);this.clockwise=r>0}length(){return rt.length(this.derivative.bind(this))}static getABC(i=2,r,u,o,c=.5){const h=rt.projectionratio(c,i),g=1-h,y={x:h*r.x+g*o.x,y:h*r.y+g*o.y},p=rt.abcratio(c,i);return{A:{x:u.x+(u.x-y.x)/p,y:u.y+(u.y-y.y)/p},B:u,C:y,S:r,E:o}}getABC(i,r){r=r||this.get(i);let u=this.points[0],o=this.points[this.order];return Bt.getABC(this.order,u,r,o,i)}getLUT(i){if(this.verify(),i=i||100,this._lut.length===i+1)return this._lut;this._lut=[],i++,this._lut=[];for(let r=0,u,o;r<i;r++)o=r/(i-1),u=this.compute(o),u.t=o,this._lut.push(u);return this._lut}on(i,r){r=r||5;const u=this.getLUT(),o=[];for(let c=0,h,g=0;c<u.length;c++)h=u[c],rt.dist(h,i)<r&&(o.push(h),g+=c/u.length);return o.length?t/=o.length:!1}project(i){const r=this.getLUT(),u=r.length-1,o=rt.closest(r,i),c=o.mpos,h=(c-1)/u,g=(c+1)/u,y=.1/u;let p=o.mdist,v=h,m=v,b;p+=1;for(let x;v<g+y;v+=y)b=this.compute(v),x=rt.dist(i,b),x<p&&(p=x,m=v);return m=m<0?0:m>1?1:m,b=this.compute(m),b.t=m,b.d=p,b}get(i){return this.compute(i)}point(i){return this.points[i]}compute(i){return this.ratios?rt.computeWithRatios(i,this.points,this.ratios,this._3d):rt.compute(i,this.points,this._3d,this.ratios)}raise(){const i=this.points,r=[i[0]],u=i.length;for(let o=1,c,h;o<u;o++)c=i[o],h=i[o-1],r[o]={x:(u-o)/u*c.x+o/u*h.x,y:(u-o)/u*c.y+o/u*h.y};return r[u]=i[u-1],new Bt(r)}derivative(i){return rt.compute(i,this.dpoints[0],this._3d)}dderivative(i){return rt.compute(i,this.dpoints[1],this._3d)}align(){let i=this.points;return new Bt(rt.align(i,{p1:i[0],p2:i[i.length-1]}))}curvature(i){return rt.curvature(i,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return rt.inflections(this.points)}normal(i){return this._3d?this.__normal3(i):this.__normal2(i)}__normal2(i){const r=this.derivative(i),u=al(r.x*r.x+r.y*r.y);return{t:i,x:-r.y/u,y:r.x/u}}__normal3(i){const r=this.derivative(i),u=this.derivative(i+.01),o=al(r.x*r.x+r.y*r.y+r.z*r.z),c=al(u.x*u.x+u.y*u.y+u.z*u.z);r.x/=o,r.y/=o,r.z/=o,u.x/=c,u.y/=c,u.z/=c;const h={x:u.y*r.z-u.z*r.y,y:u.z*r.x-u.x*r.z,z:u.x*r.y-u.y*r.x},g=al(h.x*h.x+h.y*h.y+h.z*h.z);h.x/=g,h.y/=g,h.z/=g;const y=[h.x*h.x,h.x*h.y-h.z,h.x*h.z+h.y,h.x*h.y+h.z,h.y*h.y,h.y*h.z-h.x,h.x*h.z-h.y,h.y*h.z+h.x,h.z*h.z];return{t:i,x:y[0]*r.x+y[1]*r.y+y[2]*r.z,y:y[3]*r.x+y[4]*r.y+y[5]*r.z,z:y[6]*r.x+y[7]*r.y+y[8]*r.z}}hull(i){let r=this.points,u=[],o=[],c=0;for(o[c++]=r[0],o[c++]=r[1],o[c++]=r[2],this.order===3&&(o[c++]=r[3]);r.length>1;){u=[];for(let h=0,g,y=r.length-1;h<y;h++)g=rt.lerp(i,r[h],r[h+1]),o[c++]=g,u.push(g);r=u}return o}split(i,r){if(i===0&&r)return this.split(r).left;if(r===1)return this.split(i).right;const u=this.hull(i),o={left:this.order===2?new Bt([u[0],u[3],u[5]]):new Bt([u[0],u[4],u[7],u[9]]),right:this.order===2?new Bt([u[5],u[4],u[2]]):new Bt([u[9],u[8],u[6],u[3]]),span:u};return o.left._t1=rt.map(0,0,1,this._t1,this._t2),o.left._t2=rt.map(i,0,1,this._t1,this._t2),o.right._t1=rt.map(i,0,1,this._t1,this._t2),o.right._t2=rt.map(1,0,1,this._t1,this._t2),r?(r=rt.map(r,i,1,0,1),o.right.split(r).left):o}extrema(){const i={};let r=[];return this.dims.forEach((function(u){let o=function(h){return h[u]},c=this.dpoints[0].map(o);i[u]=rt.droots(c),this.order===3&&(c=this.dpoints[1].map(o),i[u]=i[u].concat(rt.droots(c))),i[u]=i[u].filter(function(h){return h>=0&&h<=1}),r=r.concat(i[u].sort(rt.numberSort))}).bind(this)),i.values=r.sort(rt.numberSort).filter(function(u,o){return r.indexOf(u)===o}),i}bbox(){const i=this.extrema(),r={};return this.dims.forEach((function(u){r[u]=rt.getminmax(this,u,i[u])}).bind(this)),r}overlaps(i){const r=this.bbox(),u=i.bbox();return rt.bboxoverlap(r,u)}offset(i,r){if(typeof r<"u"){const u=this.get(i),o=this.normal(i),c={c:u,n:o,x:u.x+o.x*r,y:u.y+o.y*r};return this._3d&&(c.z=u.z+o.z*r),c}if(this._linear){const u=this.normal(0),o=this.points.map(function(c){const h={x:c.x+i*u.x,y:c.y+i*u.y};return c.z&&u.z&&(h.z=c.z+i*u.z),h});return[new Bt(o)]}return this.reduce().map(function(u){return u._linear?u.offset(i)[0]:u.scale(i)})}simple(){if(this.order===3){const o=rt.angle(this.points[0],this.points[3],this.points[1]),c=rt.angle(this.points[0],this.points[3],this.points[2]);if(o>0&&c<0||o<0&&c>0)return!1}const i=this.normal(0),r=this.normal(1);let u=i.x*r.x+i.y*r.y;return this._3d&&(u+=i.z*r.z),il(wA(u))<SA/3}reduce(){let i,r=0,u=0,o=.01,c,h=[],g=[],y=this.extrema().values;for(y.indexOf(0)===-1&&(y=[0].concat(y)),y.indexOf(1)===-1&&y.push(1),r=y[0],i=1;i<y.length;i++)u=y[i],c=this.split(r,u),c._t1=r,c._t2=u,h.push(c),r=u;return h.forEach(function(p){for(r=0,u=0;u<=1;)for(u=r+o;u<=1+o;u+=o)if(c=p.split(r,u),!c.simple()){if(u-=o,il(r-u)<o)return[];c=p.split(r,u),c._t1=rt.map(r,0,1,p._t1,p._t2),c._t2=rt.map(u,0,1,p._t1,p._t2),g.push(c),r=u;break}r<1&&(c=p.split(r,1),c._t1=rt.map(r,0,1,p._t1,p._t2),c._t2=p._t2,g.push(c))}),g}translate(i,r,u){u=typeof u=="number"?u:r;const o=this.order;let c=this.points.map((h,g)=>(1-g/o)*r+g/o*u);return new Bt(this.points.map((h,g)=>({x:h.x+i.x*c[g],y:h.y+i.y*c[g]})))}scale(i){const r=this.order;let u=!1;if(typeof i=="function"&&(u=i),u&&r===2)return this.raise().scale(u);const o=this.clockwise,c=this.points;if(this._linear)return this.translate(this.normal(0),u?u(0):i,u?u(1):i);const h=u?u(0):i,g=u?u(1):i,y=[this.offset(0,10),this.offset(1,10)],p=[],v=rt.lli4(y[0],y[0].c,y[1],y[1].c);if(!v)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(m){const b=p[m*r]=rt.copy(c[m*r]);b.x+=(m?g:h)*y[m].n.x,b.y+=(m?g:h)*y[m].n.y}),u?([0,1].forEach(function(m){if(!(r===2&&m)){var b=c[m+1],x={x:b.x-v.x,y:b.y-v.y},A=u?u((m+1)/r):i;u&&!o&&(A=-A);var M=al(x.x*x.x+x.y*x.y);x.x/=M,x.y/=M,p[m+1]={x:b.x+A*x.x,y:b.y+A*x.y}}}),new Bt(p)):([0,1].forEach(m=>{if(r===2&&m)return;const b=p[m*r],x=this.derivative(m),A={x:b.x+x.x,y:b.y+x.y};p[m+1]=rt.lli4(b,A,v,c[m+1])}),new Bt(p))}outline(i,r,u,o){if(r=r===void 0?i:r,this._linear){const C=this.normal(0),H=this.points[0],U=this.points[this.points.length-1];let B,J,W;u===void 0&&(u=i,o=r),B={x:H.x+C.x*i,y:H.y+C.y*i},W={x:U.x+C.x*u,y:U.y+C.y*u},J={x:(B.x+W.x)/2,y:(B.y+W.y)/2};const et=[B,J,W];B={x:H.x-C.x*r,y:H.y-C.y*r},W={x:U.x-C.x*o,y:U.y-C.y*o},J={x:(B.x+W.x)/2,y:(B.y+W.y)/2};const lt=[W,J,B],ft=rt.makeline(lt[2],et[0]),G=rt.makeline(et[2],lt[0]),I=[ft,new Bt(et),G,new Bt(lt)];return new fl(I)}const c=this.reduce(),h=c.length,g=[];let y=[],p,v=0,m=this.length();const b=typeof u<"u"&&typeof o<"u";function x(C,H,U,B,J){return function(W){const et=B/U,lt=(B+J)/U,ft=H-C;return rt.map(W,0,1,C+et*ft,C+lt*ft)}}c.forEach(function(C){const H=C.length();b?(g.push(C.scale(x(i,u,m,v,H))),y.push(C.scale(x(-r,-o,m,v,H)))):(g.push(C.scale(i)),y.push(C.scale(-r))),v+=H}),y=y.map(function(C){return p=C.points,p[3]?C.points=[p[3],p[2],p[1],p[0]]:C.points=[p[2],p[1],p[0]],C}).reverse();const A=g[0].points[0],M=g[h-1].points[g[h-1].points.length-1],T=y[h-1].points[y[h-1].points.length-1],w=y[0].points[0],D=rt.makeline(T,A),q=rt.makeline(M,w),R=[D].concat(g).concat([q]).concat(y);return new fl(R)}outlineshapes(i,r,u){r=r||i;const o=this.outline(i,r).curves,c=[];for(let h=1,g=o.length;h<g/2;h++){const y=rt.makeshape(o[h],o[g-h],u);y.startcap.virtual=h>1,y.endcap.virtual=h<g/2-1,c.push(y)}return c}intersects(i,r){return i?i.p1&&i.p2?this.lineIntersects(i):(i instanceof Bt&&(i=i.reduce()),this.curveintersects(this.reduce(),i,r)):this.selfintersects(r)}lineIntersects(i){const r=cy(i.p1.x,i.p2.x),u=cy(i.p1.y,i.p2.y),o=fy(i.p1.x,i.p2.x),c=fy(i.p1.y,i.p2.y);return rt.roots(this.points,i).filter(h=>{var g=this.get(h);return rt.between(g.x,r,o)&&rt.between(g.y,u,c)})}selfintersects(i){const r=this.reduce(),u=r.length-2,o=[];for(let c=0,h,g,y;c<u;c++)g=r.slice(c,c+1),y=r.slice(c+2),h=this.curveintersects(g,y,i),o.push(...h);return o}curveintersects(i,r,u){const o=[];i.forEach(function(h){r.forEach(function(g){h.overlaps(g)&&o.push({left:h,right:g})})});let c=[];return o.forEach(function(h){const g=rt.pairiteration(h.left,h.right,u);g.length>0&&(c=c.concat(g))}),c}arcs(i){return i=i||.5,this._iterate(i,[])}_error(i,r,u,o){const c=(o-u)/4,h=this.get(u+c),g=this.get(o-c),y=rt.dist(i,r),p=rt.dist(i,h),v=rt.dist(i,g);return il(p-y)+il(v-y)}_iterate(i,r){let u=0,o=1,c;do{c=0,o=1;let h=this.get(u),g,y,p,v,m=!1,b=!1,x,A=o,M=1;do if(b=m,v=p,A=(u+o)/2,g=this.get(A),y=this.get(o),p=rt.getccenter(h,g,y),p.interval={start:u,end:o},m=this._error(p,h,u,o)<=i,x=b&&!m,x||(M=o),m){if(o>=1){if(p.interval.end=M=1,v=p,o>1){let w={x:p.x+p.r*bA(p.e),y:p.y+p.r*xA(p.e)};p.e+=rt.angle({x:p.x,y:p.y},w,this.get(1))}break}o=o+(o-u)/2}else o=A;while(!x&&c++<100);if(c>=100)break;v=v||p,r.push(v),u=M}while(o<1);return r}}function Rf(n,i){(i==null||i>n.length)&&(i=n.length);for(var r=0,u=Array(i);r<i;r++)u[r]=n[r];return u}function AA(n){if(Array.isArray(n))return n}function TA(n){if(Array.isArray(n))return Rf(n)}function EA(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function OA(n,i){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var u,o,c,h,g=[],y=!0,p=!1;try{if(c=(r=r.call(n)).next,i!==0)for(;!(y=(u=c.call(r)).done)&&(g.push(u.value),g.length!==i);y=!0);}catch(v){p=!0,o=v}finally{try{if(!y&&r.return!=null&&(h=r.return(),Object(h)!==h))return}finally{if(p)throw o}}return g}}function MA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
143
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
144
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NA(n,i){if(n==null)return{};var r,u,o=zA(n,i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);for(u=0;u<c.length;u++)r=c[u],i.includes(r)||{}.propertyIsEnumerable.call(n,r)&&(o[r]=n[r])}return o}function zA(n,i){if(n==null)return{};var r={};for(var u in n)if({}.hasOwnProperty.call(n,u)){if(i.includes(u))continue;r[u]=n[u]}return r}function RA(n,i){return AA(n)||OA(n,i)||Vm(n,i)||MA()}function DA(n){return TA(n)||EA(n)||Vm(n)||CA()}function jA(n,i){if(typeof n!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var u=r.call(n,i);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function kA(n){var i=jA(n,"string");return typeof i=="symbol"?i:i+""}function Vm(n,i){if(n){if(typeof n=="string")return Rf(n,i);var r={}.toString.call(n).slice(8,-1);return r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set"?Array.from(n):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rf(n,i):void 0}}var UA=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=(i instanceof Array?i.length?i:[void 0]:[i]).map(function(g){return{keyAccessor:g,isProp:!(g instanceof Function)}}),c=n.reduce(function(g,y){var p=g,v=y;return o.forEach(function(m,b){var x=m.keyAccessor,A=m.isProp,M;if(A){var T=v,w=T[x],D=NA(T,[x].map(kA));M=w,v=D}else M=x(v,b);b+1<o.length?(p.hasOwnProperty(M)||(p[M]={}),p=p[M]):r?(p.hasOwnProperty(M)||(p[M]=[]),p[M].push(v)):p[M]=v}),g},{});r instanceof Function&&function g(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;p===o.length?Object.keys(y).forEach(function(v){return y[v]=r(y[v])}):Object.values(y).forEach(function(v){return g(v,p+1)})}(c);var h=c;return u&&(h=[],function g(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];p.length===o.length?h.push({keys:p,vals:y}):Object.entries(y).forEach(function(v){var m=RA(v,2),b=m[0],x=m[1];return g(x,[].concat(DA(p),[b]))})}(c),i instanceof Array&&i.length===0&&h.length===1&&(h[0].keys=[])),h};function qA(n,i){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(i).domain(n);break}return this}const hy=Symbol("implicit");function Zm(){var n=new Dp,i=[],r=[],u=hy;function o(c){let h=n.get(c);if(h===void 0){if(u!==hy)return u;n.set(c,h=i.push(c)-1)}return r[h%r.length]}return o.domain=function(c){if(!arguments.length)return i.slice();i=[],n=new Dp;for(const h of c)n.has(h)||n.set(h,i.push(h)-1);return o},o.range=function(c){return arguments.length?(r=Array.from(c),o):r.slice()},o.unknown=function(c){return arguments.length?(u=c,o):u},o.copy=function(){return Zm(i,r).unknown(u)},qA.apply(o,arguments),o}function HA(n){for(var i=n.length/6|0,r=new Array(i),u=0;u<i;)r[u]="#"+n.slice(u*6,++u*6);return r}const LA=HA("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");function BA(n,i){i===void 0&&(i={});var r=i.insertAt;if(!(typeof document>"u")){var u=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&u.firstChild?u.insertBefore(o,u.firstChild):u.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}}var GA=`.force-graph-container canvas {
|
|
145
|
+
display: block;
|
|
146
|
+
user-select: none;
|
|
147
|
+
outline: none;
|
|
148
|
+
-webkit-tap-highlight-color: transparent;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.force-graph-container .clickable {
|
|
152
|
+
cursor: pointer;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.force-graph-container .grabbable {
|
|
156
|
+
cursor: move;
|
|
157
|
+
cursor: grab;
|
|
158
|
+
cursor: -moz-grab;
|
|
159
|
+
cursor: -webkit-grab;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.force-graph-container .grabbable:active {
|
|
163
|
+
cursor: grabbing;
|
|
164
|
+
cursor: -moz-grabbing;
|
|
165
|
+
cursor: -webkit-grabbing;
|
|
166
|
+
}
|
|
167
|
+
`;BA(GA);function Df(n,i){(i==null||i>n.length)&&(i=n.length);for(var r=0,u=Array(i);r<i;r++)u[r]=n[r];return u}function QA(n){if(Array.isArray(n))return n}function YA(n){if(Array.isArray(n))return Df(n)}function dy(n,i,r){if($m())return Reflect.construct.apply(null,arguments);var u=[null];u.push.apply(u,i);var o=new(n.bind.apply(n,u));return o}function bl(n,i,r){return(i=FA(i))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n}function $m(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($m=function(){return!!n})()}function XA(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function VA(n,i){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var u,o,c,h,g=[],y=!0,p=!1;try{if(c=(r=r.call(n)).next,i!==0)for(;!(y=(u=c.call(r)).done)&&(g.push(u.value),g.length!==i);y=!0);}catch(v){p=!0,o=v}finally{try{if(!y&&r.return!=null&&(h=r.return(),Object(h)!==h))return}finally{if(p)throw o}}return g}}function ZA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
168
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $A(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
169
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gy(n,i){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);i&&(u=u.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.push.apply(r,u)}return r}function Va(n){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?gy(Object(r),!0).forEach(function(u){bl(n,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):gy(Object(r)).forEach(function(u){Object.defineProperty(n,u,Object.getOwnPropertyDescriptor(r,u))})}return n}function hl(n,i){return QA(n)||VA(n,i)||Km(n,i)||ZA()}function We(n){return YA(n)||XA(n)||Km(n)||$A()}function KA(n,i){if(typeof n!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var u=r.call(n,i);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}function FA(n){var i=KA(n,"string");return typeof i=="symbol"?i:i+""}function jf(n){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},jf(n)}function Km(n,i){if(n){if(typeof n=="string")return Df(n,i);var r={}.toString.call(n).slice(8,-1);return r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set"?Array.from(n):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Df(n,i):void 0}}var PA=Zm(LA);function py(n,i,r){!i||typeof r!="string"||n.filter(function(u){return!u[r]}).forEach(function(u){u[r]=PA(i(u))})}function JA(n,i){var r=n.nodes,u=n.links,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=o.nodeFilter,h=c===void 0?function(){return!0}:c,g=o.onLoopError,y=g===void 0?function(x){throw"Invalid DAG structure! Found cycle in node path: ".concat(x.join(" -> "),".")}:g,p={};r.forEach(function(x){return p[i(x)]={data:x,out:[],depth:-1,skip:!h(x)}}),u.forEach(function(x){var A=x.source,M=x.target,T=R(A),w=R(M);if(!p.hasOwnProperty(T))throw"Missing source node with id: ".concat(T);if(!p.hasOwnProperty(w))throw"Missing target node with id: ".concat(w);var D=p[T],q=p[w];D.out.push(q);function R(C){return jf(C)==="object"?i(C):C}});var v=[];b(Object.values(p));var m=Object.assign.apply(Object,[{}].concat(We(Object.entries(p).filter(function(x){var A=hl(x,2),M=A[1];return!M.skip}).map(function(x){var A=hl(x,2),M=A[0],T=A[1];return bl({},M,T.depth)}))));return m;function b(x){for(var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,T=function(){var R=x[w];if(A.indexOf(R)!==-1){var C=[].concat(We(A.slice(A.indexOf(R))),[R]).map(function(H){return i(H.data)});return v.some(function(H){return H.length===C.length&&H.every(function(U,B){return U===C[B]})})||(v.push(C),y(C)),1}M>R.depth&&(R.depth=M,b(R.out,[].concat(We(A),[R]),M+(R.skip?0:1)))},w=0,D=x.length;w<D;w++)T()}}var WA=2,ge=function(i,r){return r.onNeedsRedraw&&r.onNeedsRedraw()},yy=function(i,r){if(!r.isShadow){var u=Dt(r.linkDirectionalParticles);r.graphData.links.forEach(function(o){var c=Math.round(Math.abs(u(o)));c?o.__photons=We(Array(c)).map(function(){return{}}):delete o.__photons})}},gs=Ff({props:{graphData:{default:{nodes:[],links:[]},onChange:function(i,r){r.engineRunning=!1,yy(i,r)}},dagMode:{onChange:function(i,r){!i&&(r.graphData.nodes||[]).forEach(function(u){return u.fx=u.fy=void 0})}},dagLevelDistance:{},dagNodeFilter:{default:function(i){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:ge},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:ge},nodeColor:{default:"color",triggerUpdate:!1,onChange:ge},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:ge},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:ge},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:ge},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:ge},linkColor:{default:"color",triggerUpdate:!1,onChange:ge},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:ge},linkWidth:{default:1,triggerUpdate:!1,onChange:ge},linkCurvature:{default:0,triggerUpdate:!1,onChange:ge},linkCanvasObject:{triggerUpdate:!1,onChange:ge},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:ge},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:ge},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:ge},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:ge},linkDirectionalParticles:{default:0,triggerUpdate:!1,onChange:yy},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleOffset:{default:0,triggerUpdate:!1},linkDirectionalParticleWidth:{default:4,triggerUpdate:!1},linkDirectionalParticleColor:{triggerUpdate:!1},linkDirectionalParticleCanvasObject:{triggerUpdate:!1},globalScale:{default:1,triggerUpdate:!1},d3AlphaMin:{default:0,triggerUpdate:!1},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(i,r){r.forceLayout.alphaDecay(i)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(i,r){r.forceLayout.alphaTarget(i)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(i,r){r.forceLayout.velocityDecay(i)}},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(i,r,u){return u===void 0?i.forceLayout.force(r):(i.forceLayout.force(r,u),this)},d3ReheatSimulation:function(i){return i.forceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(i){return i.cntTicks=0,i.startTickTime=new Date,i.engineRunning=!0,this},isEngineRunning:function(i){return!!i.engineRunning},tickFrame:function(i){return!i.isShadow&&r(),o(),!i.isShadow&&c(),!i.isShadow&&h(),u(),this;function r(){i.engineRunning&&(++i.cntTicks>i.cooldownTicks||new Date-i.startTickTime>i.cooldownTime||i.d3AlphaMin>0&&i.forceLayout.alpha()<i.d3AlphaMin?(i.engineRunning=!1,i.onEngineStop()):(i.forceLayout.tick(),i.onEngineTick()))}function u(){var g=Dt(i.nodeVisibility),y=Dt(i.nodeVal),p=Dt(i.nodeColor),v=Dt(i.nodeCanvasObjectMode),m=i.ctx,b=i.isShadow/i.globalScale,x=i.graphData.nodes.filter(g);m.save(),x.forEach(function(A){var M=v(A);if(i.nodeCanvasObject&&(M==="before"||M==="replace")&&(i.nodeCanvasObject(A,m,i.globalScale),M==="replace")){m.restore();return}var T=Math.sqrt(Math.max(0,y(A)||1))*i.nodeRelSize+b;m.beginPath(),m.arc(A.x,A.y,T,0,2*Math.PI,!1),m.fillStyle=p(A)||"rgba(31, 120, 180, 0.92)",m.fill(),i.nodeCanvasObject&&M==="after"&&i.nodeCanvasObject(A,i.ctx,i.globalScale)}),m.restore()}function o(){var g=Dt(i.linkVisibility),y=Dt(i.linkColor),p=Dt(i.linkWidth),v=Dt(i.linkLineDash),m=Dt(i.linkCurvature),b=Dt(i.linkCanvasObjectMode),x=i.ctx,A=i.isShadow*2,M=i.graphData.links.filter(g);M.forEach(H);var T=[],w=[],D=M;if(i.linkCanvasObject){var q=[],R=[];M.forEach(function(U){return({before:T,after:w,replace:q}[b(U)]||R).push(U)}),D=[].concat(We(T),w,R),T=T.concat(q)}x.save(),T.forEach(function(U){return i.linkCanvasObject(U,x,i.globalScale)}),x.restore();var C=UA(D,[y,p,v]);x.save(),Object.entries(C).forEach(function(U){var B=hl(U,2),J=B[0],W=B[1],et=!J||J==="undefined"?"rgba(0,0,0,0.15)":J;Object.entries(W).forEach(function(lt){var ft=hl(lt,2),G=ft[0],I=ft[1],z=(G||1)/i.globalScale+A;Object.entries(I).forEach(function($){var nt=hl($,2);nt[0];var ut=nt[1],E=v(ut[0]);x.beginPath(),ut.forEach(function(Z){var tt=Z.source,it=Z.target;if(!(!tt||!it||!tt.hasOwnProperty("x")||!it.hasOwnProperty("x"))){x.moveTo(tt.x,tt.y);var st=Z.__controlPoints;st?x[st.length===2?"quadraticCurveTo":"bezierCurveTo"].apply(x,We(st).concat([it.x,it.y])):x.lineTo(it.x,it.y)}}),x.strokeStyle=et,x.lineWidth=z,x.setLineDash(E||[]),x.stroke()})})}),x.restore(),x.save(),w.forEach(function(U){return i.linkCanvasObject(U,x,i.globalScale)}),x.restore();function H(U){var B=m(U);if(!B){U.__controlPoints=null;return}var J=U.source,W=U.target;if(!(!J||!W||!J.hasOwnProperty("x")||!W.hasOwnProperty("x"))){var et=Math.sqrt(Math.pow(W.x-J.x,2)+Math.pow(W.y-J.y,2));if(et>0){var lt=Math.atan2(W.y-J.y,W.x-J.x),ft=et*B,G={x:(J.x+W.x)/2+ft*Math.cos(lt-Math.PI/2),y:(J.y+W.y)/2+ft*Math.sin(lt-Math.PI/2)};U.__controlPoints=[G.x,G.y]}else{var I=B*70;U.__controlPoints=[W.x,W.y-I,W.x+I,W.y]}}}}function c(){var g=1.6,y=.2,p=Dt(i.linkDirectionalArrowLength),v=Dt(i.linkDirectionalArrowRelPos),m=Dt(i.linkVisibility),b=Dt(i.linkDirectionalArrowColor||i.linkColor),x=Dt(i.nodeVal),A=i.ctx;A.save(),i.graphData.links.filter(m).forEach(function(M){var T=p(M);if(!(!T||T<0)){var w=M.source,D=M.target;if(!(!w||!D||!w.hasOwnProperty("x")||!D.hasOwnProperty("x"))){var q=Math.sqrt(Math.max(0,x(w)||1))*i.nodeRelSize,R=Math.sqrt(Math.max(0,x(D)||1))*i.nodeRelSize,C=Math.min(1,Math.max(0,v(M))),H=b(M)||"rgba(0,0,0,0.28)",U=T/g/2,B=M.__controlPoints&&dy(Bt,[w.x,w.y].concat(We(M.__controlPoints),[D.x,D.y])),J=B?function(z){return B.get(z)}:function(z){return{x:w.x+(D.x-w.x)*z||0,y:w.y+(D.y-w.y)*z||0}},W=B?B.length():Math.sqrt(Math.pow(D.x-w.x,2)+Math.pow(D.y-w.y,2)),et=q+T+(W-q-R-T)*C,lt=J(et/W),ft=J((et-T)/W),G=J((et-T*(1-y))/W),I=Math.atan2(lt.y-ft.y,lt.x-ft.x)-Math.PI/2;A.beginPath(),A.moveTo(lt.x,lt.y),A.lineTo(ft.x+U*Math.cos(I),ft.y+U*Math.sin(I)),A.lineTo(G.x,G.y),A.lineTo(ft.x-U*Math.cos(I),ft.y-U*Math.sin(I)),A.fillStyle=H,A.fill()}}}),A.restore()}function h(){var g=Dt(i.linkDirectionalParticles),y=Dt(i.linkDirectionalParticleSpeed),p=Dt(i.linkDirectionalParticleOffset),v=Dt(i.linkDirectionalParticleWidth),m=Dt(i.linkVisibility),b=Dt(i.linkDirectionalParticleColor||i.linkColor),x=i.ctx;x.save(),i.graphData.links.filter(m).forEach(function(A){var M=g(A);if(!(!A.hasOwnProperty("__photons")||!A.__photons.length)){var T=A.source,w=A.target;if(!(!T||!w||!T.hasOwnProperty("x")||!w.hasOwnProperty("x"))){var D=y(A),q=Math.abs(p(A)),R=A.__photons||[],C=Math.max(0,v(A)/2)/Math.sqrt(i.globalScale),H=b(A)||"rgba(0,0,0,0.28)";x.fillStyle=H;var U=A.__controlPoints?dy(Bt,[T.x,T.y].concat(We(A.__controlPoints),[w.x,w.y])):null,B=0,J=!1;R.forEach(function(W){var et=!!W.__singleHop;if(W.hasOwnProperty("__progressRatio")||(W.__progressRatio=et?0:(B+q)/M),!et&&B++,W.__progressRatio+=D,W.__progressRatio>=1)if(!et)W.__progressRatio=W.__progressRatio%1;else{J=!0;return}var lt=W.__progressRatio,ft=U?U.get(lt):{x:T.x+(w.x-T.x)*lt||0,y:T.y+(w.y-T.y)*lt||0};i.linkDirectionalParticleCanvasObject?i.linkDirectionalParticleCanvasObject(ft.x,ft.y,A,x,i.globalScale):(x.beginPath(),x.arc(ft.x,ft.y,C,0,2*Math.PI,!1),x.fill())}),J&&(A.__photons=A.__photons.filter(function(W){return!W.__singleHop||W.__progressRatio<=1}))}}}),x.restore()}},emitParticle:function(i,r){return r&&(!r.__photons&&(r.__photons=[]),r.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:gA().force("link",lA()).force("charge",pA()).force("center",s4()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(i,r){r.ctx=i},update:function(i,r){i.engineRunning=!1,i.onUpdate(),i.nodeAutoColorBy!==null&&py(i.graphData.nodes,Dt(i.nodeAutoColorBy),i.nodeColor),i.linkAutoColorBy!==null&&py(i.graphData.links,Dt(i.linkAutoColorBy),i.linkColor),i.graphData.links.forEach(function(b){b.source=b[i.linkSource],b.target=b[i.linkTarget]}),i.forceLayout.stop().alpha(1).nodes(i.graphData.nodes);var u=i.forceLayout.force("link");u&&u.id(function(b){return b[i.nodeId]}).links(i.graphData.links);var o=i.dagMode&&JA(i.graphData,function(b){return b[i.nodeId]},{nodeFilter:i.dagNodeFilter,onLoopError:i.onDagError||void 0}),c=Math.max.apply(Math,We(Object.values(o||[]))),h=i.dagLevelDistance||i.graphData.nodes.length/(c||1)*WA*(["radialin","radialout"].indexOf(i.dagMode)!==-1?.7:1);if(["lr","rl","td","bu"].includes(r.dagMode)){var g=["lr","rl"].includes(r.dagMode)?"fx":"fy";i.graphData.nodes.filter(i.dagNodeFilter).forEach(function(b){return delete b[g]})}if(["lr","rl","td","bu"].includes(i.dagMode)){var y=["rl","bu"].includes(i.dagMode),p=function(x){return(o[x[i.nodeId]]-c/2)*h*(y?-1:1)},v=["lr","rl"].includes(i.dagMode)?"fx":"fy";i.graphData.nodes.filter(i.dagNodeFilter).forEach(function(b){return b[v]=p(b)})}i.forceLayout.force("dagRadial",["radialin","radialout"].indexOf(i.dagMode)!==-1?yA(function(b){var x=o[b[i.nodeId]]||-1;return(i.dagMode==="radialin"?c-x:x)*h}).strength(function(b){return i.dagNodeFilter(b)?1:0}):null);for(var m=0;m<i.warmupTicks&&!(i.d3AlphaMin>0&&i.forceLayout.alpha()<i.d3AlphaMin);m++)i.forceLayout.tick();this.resetCountdown(),i.onFinishUpdate()}});function Fm(n,i){var r=n instanceof Array?n:[n],u=new i;return u._destructor&&u._destructor(),{linkProp:function(c){return{default:u[c](),onChange:function(g,y){r.forEach(function(p){return y[p][c](g)})},triggerUpdate:!1}},linkMethod:function(c){return function(h){for(var g=arguments.length,y=new Array(g>1?g-1:0),p=1;p<g;p++)y[p-1]=arguments[p];var v=[];return r.forEach(function(m){var b=h[m],x=b[c].apply(b,y);x!==b&&v.push(x)}),v.length?v[0]:this}}}}var IA=800,tT=4,eT=5,Pm=Fm("forceGraph",gs),nT=Fm(["forceGraph","shadowGraph"],gs),iT=Object.assign.apply(Object,We(["nodeColor","nodeAutoColorBy","nodeCanvasObject","nodeCanvasObjectMode","linkColor","linkAutoColorBy","linkLineDash","linkWidth","linkCanvasObject","linkCanvasObjectMode","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleOffset","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleCanvasObject","dagMode","dagLevelDistance","dagNodeFilter","onDagError","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map(function(n){return bl({},n,Pm.linkProp(n))})).concat(We(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map(function(n){return bl({},n,nT.linkProp(n))})))),aT=Object.assign.apply(Object,We(["d3Force","d3ReheatSimulation","emitParticle"].map(function(n){return bl({},n,Pm.linkMethod(n))})));function rf(n){if(n.canvas){var i=n.canvas.width,r=n.canvas.height;i===300&&r===150&&(i=r=0);var u=window.devicePixelRatio;i/=u,r/=u,[n.canvas,n.shadowCanvas].forEach(function(c){c.style.width="".concat(n.width,"px"),c.style.height="".concat(n.height,"px"),c.width=n.width*u,c.height=n.height*u,!i&&!r&&c.getContext("2d").scale(u,u)});var o=pn(n.canvas).k;n.zoom.translateBy(n.zoom.__baseElem,(n.width-i)/2/o,(n.height-r)/2/o),n.needsRedraw=!0}}function Jm(n){var i=window.devicePixelRatio;n.setTransform(i,0,0,i,0,0)}function my(n,i,r){n.save(),Jm(n),n.clearRect(0,0,i,r),n.restore()}var rT=Ff({props:Va({width:{default:window.innerWidth,onChange:function(i,r){return rf(r)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(i,r){return rf(r)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(i,r){[i.nodes,i.links].every(function(o){return(o||[]).every(function(c){return!c.hasOwnProperty("__indexColor")})})&&r.colorTracker.reset(),[{type:"Node",objs:i.nodes},{type:"Link",objs:i.links}].forEach(u),r.forceGraph.graphData(i),r.shadowGraph.graphData(i);function u(o){var c=o.type,h=o.objs;h.filter(function(g){if(!g.hasOwnProperty("__indexColor"))return!0;var y=r.colorTracker.lookup(g.__indexColor);return!y||!y.hasOwnProperty("d")||y.d!==g}).forEach(function(g){g.__indexColor=r.colorTracker.register({type:c,d:g})})}},triggerUpdate:!1},backgroundColor:{onChange:function(i,r){r.canvas&&i&&(r.canvas.style.background=i)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(i,r){r.shadowGraph.nodeCanvasObject(i?function(u,o,c){return i(u,u.__indexColor,o,c)}:null),r.flushShadowCanvas&&r.flushShadowCanvas()},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(i,r){r.shadowGraph.linkCanvasObject(i?function(u,o,c){return i(u,u.__indexColor,o,c)}:null),r.flushShadowCanvas&&r.flushShadowCanvas()},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(i,r){r.zoom.scaleExtent([i,r.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(i,r){r.zoom.scaleExtent([r.zoom.scaleExtent()[0],i])},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(i,r){r.hoverObj=null},triggerUpdate:!1},autoPauseRedraw:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1},onZoom:{triggerUpdate:!1},onZoomEnd:{triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},iT),aliases:{stopAnimation:"pauseAnimation"},methods:Va({graph2ScreenCoords:function(i,r,u){var o=pn(i.canvas);return{x:r*o.k+o.x,y:u*o.k+o.y}},screen2GraphCoords:function(i,r,u){var o=pn(i.canvas);return{x:(r-o.x)/o.k,y:(u-o.y)/o.k}},centerAt:function(i,r,u,o){if(!i.canvas)return null;if(r!==void 0||u!==void 0){var c=Object.assign({},r!==void 0?{x:r}:{},u!==void 0?{y:u}:{});return o?i.tweenGroup.add(new Bp(h()).to(c,o).easing(Fi.Quadratic.Out).onUpdate(g).start()):g(c),this}return h();function h(){var y=pn(i.canvas);return{x:(i.width/2-y.x)/y.k,y:(i.height/2-y.y)/y.k}}function g(y){var p=y.x,v=y.y;i.zoom.translateTo(i.zoom.__baseElem,p===void 0?h().x:p,v===void 0?h().y:v),i.needsRedraw=!0}},zoom:function(i,r,u){if(!i.canvas)return null;if(r!==void 0)return u?i.tweenGroup.add(new Bp({k:o()}).to({k:r},u).easing(Fi.Quadratic.Out).onUpdate(function(h){var g=h.k;return c(g)}).start()):c(r),this;return o();function o(){return pn(i.canvas).k}function c(h){i.zoom.scaleTo(i.zoom.__baseElem,h),i.needsRedraw=!0}},zoomToFit:function(i){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,o=arguments.length,c=new Array(o>3?o-3:0),h=3;h<o;h++)c[h-3]=arguments[h];var g=this.getGraphBbox.apply(this,c);if(g){var y={x:(g.x[0]+g.x[1])/2,y:(g.y[0]+g.y[1])/2},p=Math.max(1e-12,Math.min(1e12,(i.width-u*2)/(g.x[1]-g.x[0]),(i.height-u*2)/(g.y[1]-g.y[0])));this.centerAt(y.x,y.y,r),this.zoom(p,r)}return this},getGraphBbox:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},u=Dt(i.nodeVal),o=function(g){return Math.sqrt(Math.max(0,u(g)||1))*i.nodeRelSize},c=i.graphData.nodes.filter(r).map(function(h){return{x:h.x,y:h.y,r:o(h)}});return c.length?{x:[Up(c,function(h){return h.x-h.r}),kp(c,function(h){return h.x+h.r})],y:[Up(c,function(h){return h.y-h.r}),kp(c,function(h){return h.y+h.r})]}:null},pauseAnimation:function(i){return i.animationFrameRequestId&&(cancelAnimationFrame(i.animationFrameRequestId),i.animationFrameRequestId=null),this},resumeAnimation:function(i){return i.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},aT),stateInit:function(){return{lastSetZoom:1,zoom:yS(),forceGraph:new gs,shadowGraph:new gs().cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new B3,tweenGroup:new _m}},init:function(i,r){var u=this;i.innerHTML="";var o=document.createElement("div");o.classList.add("force-graph-container"),o.style.position="relative",i.appendChild(o),r.canvas=document.createElement("canvas"),r.backgroundColor&&(r.canvas.style.background=r.backgroundColor),o.appendChild(r.canvas),r.shadowCanvas=document.createElement("canvas");var c=r.canvas.getContext("2d"),h=r.shadowCanvas.getContext("2d",{willReadFrequently:!0}),g={x:-1e12,y:-1e12},y=function(){var m=null,b=window.devicePixelRatio,x=g.x>0&&g.y>0?h.getImageData(g.x*b,g.y*b,1,1):null;return x&&(m=r.colorTracker.lookup(x.data)),m};Je(r.canvas).call(E2().subject(function(){if(!r.enableNodeDrag)return null;var v=y();return v&&v.type==="Node"?v.d:null}).on("start",function(v){var m=v.subject;m.__initialDragPos={x:m.x,y:m.y,fx:m.fx,fy:m.fy},v.active||(m.fx=m.x,m.fy=m.y),r.canvas.classList.add("grabbable")}).on("drag",function(v){var m=v.subject,b=m.__initialDragPos,x=v,A=pn(r.canvas).k,M={x:b.x+(x.x-b.x)/A-m.x,y:b.y+(x.y-b.y)/A-m.y};["x","y"].forEach(function(T){return m["f".concat(T)]=m[T]=b[T]+(x[T]-b[T])/A}),!(!m.__dragged&&eT>=Math.sqrt(bS(["x","y"].map(function(T){return Math.pow(v[T]-b[T],2)}))))&&(r.forceGraph.d3AlphaTarget(.3).resetCountdown(),r.isPointerDragging=!0,m.__dragged=!0,r.onNodeDrag(m,M))}).on("end",function(v){var m=v.subject,b=m.__initialDragPos,x={x:m.x-b.x,y:m.y-b.y};b.fx===void 0&&(m.fx=void 0),b.fy===void 0&&(m.fy=void 0),delete m.__initialDragPos,r.forceGraph.d3AlphaTarget()&&r.forceGraph.d3AlphaTarget(0).resetCountdown(),r.canvas.classList.remove("grabbable"),r.isPointerDragging=!1,m.__dragged&&(delete m.__dragged,r.onNodeDragEnd(m,x))})),r.zoom(r.zoom.__baseElem=Je(r.canvas)),r.zoom.__baseElem.on("dblclick.zoom",null),r.zoom.filter(function(v){return!v.button&&r.enableZoomPanInteraction&&(v.type!=="wheel"||Dt(r.enableZoomInteraction)(v))&&(v.type==="wheel"||Dt(r.enablePanInteraction)(v))}).on("zoom",function(v){var m=v.transform;[c,h].forEach(function(b){Jm(b),b.translate(m.x,m.y),b.scale(m.k,m.k)}),r.isPointerDragging=!0,r.onZoom&&r.onZoom(Va(Va({},m),u.centerAt())),r.needsRedraw=!0}).on("end",function(v){r.isPointerDragging=!1,r.onZoomEnd&&r.onZoomEnd(Va(Va({},v.transform),u.centerAt()))}),rf(r),r.forceGraph.onNeedsRedraw(function(){return r.needsRedraw=!0}).onFinishUpdate(function(){pn(r.canvas).k===r.lastSetZoom&&r.graphData.nodes.length&&(r.zoom.scaleTo(r.zoom.__baseElem,r.lastSetZoom=tT/Math.cbrt(r.graphData.nodes.length)),r.needsRedraw=!0)}),r.tooltip=new u4(o),["pointermove","pointerdown"].forEach(function(v){return o.addEventListener(v,function(m){v==="pointerdown"&&(r.isPointerPressed=!0,r.pointerDownEvent=m),!r.isPointerDragging&&m.type==="pointermove"&&r.onBackgroundClick&&(m.pressure>0||r.isPointerPressed)&&(m.pointerType==="mouse"||m.movementX===void 0||[m.movementX,m.movementY].some(function(A){return Math.abs(A)>1}))&&(r.isPointerDragging=!0);var b=x(o);g.x=m.pageX-b.left,g.y=m.pageY-b.top;function x(A){var M=A.getBoundingClientRect(),T=window.pageXOffset||document.documentElement.scrollLeft,w=window.pageYOffset||document.documentElement.scrollTop;return{top:M.top+w,left:M.left+T}}},{passive:!0})}),o.addEventListener("pointerup",function(v){if(r.isPointerPressed){if(r.isPointerPressed=!1,r.isPointerDragging){r.isPointerDragging=!1;return}var m=[v,r.pointerDownEvent];requestAnimationFrame(function(){if(v.button===0)if(r.hoverObj){var b=r["on".concat(r.hoverObj.type,"Click")];b&&b.apply(void 0,[r.hoverObj.d].concat(m))}else r.onBackgroundClick&&r.onBackgroundClick.apply(r,m);if(v.button===2)if(r.hoverObj){var x=r["on".concat(r.hoverObj.type,"RightClick")];x&&x.apply(void 0,[r.hoverObj.d].concat(m))}else r.onBackgroundRightClick&&r.onBackgroundRightClick.apply(r,m)})}},{passive:!0}),o.addEventListener("contextmenu",function(v){return!r.onBackgroundRightClick&&!r.onNodeRightClick&&!r.onLinkRightClick?!0:(v.preventDefault(),!1)}),r.forceGraph(c),r.shadowGraph(h);var p=$S(function(){my(h,r.width,r.height),r.shadowGraph.linkWidth(function(m){return Dt(r.linkWidth)(m)+r.linkHoverPrecision});var v=pn(r.canvas);r.shadowGraph.globalScale(v.k).tickFrame()},IA);r.flushShadowCanvas=p.flush,(this._animationCycle=function v(){var m=!r.autoPauseRedraw||!!r.needsRedraw||r.forceGraph.isEngineRunning()||r.graphData.links.some(function(q){return q.__photons&&q.__photons.length});if(r.needsRedraw=!1,r.enablePointerInteraction){var b=r.isPointerDragging?null:y();if(b!==r.hoverObj){var x=r.hoverObj,A=x?x.type:null,M=b?b.type:null;if(A&&A!==M){var T=r["on".concat(A,"Hover")];T&&T(null,x.d)}if(M){var w=r["on".concat(M,"Hover")];w&&w(b.d,A===M?x.d:null)}r.tooltip.content(b&&Dt(r["".concat(b.type.toLowerCase(),"Label")])(b.d)||null),r.canvas.classList[b&&r["on".concat(M,"Click")]||!b&&r.onBackgroundClick?"add":"remove"]("clickable"),r.hoverObj=b}m&&p()}if(m){my(c,r.width,r.height);var D=pn(r.canvas).k;r.onRenderFramePre&&r.onRenderFramePre(c,D),r.forceGraph.globalScale(D).tickFrame(),r.onRenderFramePost&&r.onRenderFramePost(c,D)}r.tweenGroup.update(),r.animationFrameRequestId=requestAnimationFrame(v)})()},update:function(i){}}),lf={exports:{}},uf,vy;function lT(){if(vy)return uf;vy=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return uf=n,uf}var sf,_y;function uT(){if(_y)return sf;_y=1;var n=lT();function i(){}function r(){}return r.resetWarningCache=i,sf=function(){function u(h,g,y,p,v,m){if(m!==n){var b=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 b.name="Invariant Violation",b}}u.isRequired=u;function o(){return u}var c={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:o,element:u,elementType:u,instanceOf:o,node:u,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:i};return c.PropTypes=c,c},sf}var by;function sT(){return by||(by=1,lf.exports=uT()()),lf.exports}var oT=sT();const k=My(oT),ws={width:k.number,height:k.number,graphData:k.shape({nodes:k.arrayOf(k.object).isRequired,links:k.arrayOf(k.object).isRequired}),backgroundColor:k.string,nodeRelSize:k.number,nodeId:k.string,nodeLabel:k.oneOfType([k.string,k.func]),nodeVal:k.oneOfType([k.number,k.string,k.func]),nodeVisibility:k.oneOfType([k.bool,k.string,k.func]),nodeColor:k.oneOfType([k.string,k.func]),nodeAutoColorBy:k.oneOfType([k.string,k.func]),onNodeHover:k.func,onNodeClick:k.func,linkSource:k.string,linkTarget:k.string,linkLabel:k.oneOfType([k.string,k.func]),linkVisibility:k.oneOfType([k.bool,k.string,k.func]),linkColor:k.oneOfType([k.string,k.func]),linkAutoColorBy:k.oneOfType([k.string,k.func]),linkWidth:k.oneOfType([k.number,k.string,k.func]),linkCurvature:k.oneOfType([k.number,k.string,k.func]),linkDirectionalArrowLength:k.oneOfType([k.number,k.string,k.func]),linkDirectionalArrowColor:k.oneOfType([k.string,k.func]),linkDirectionalArrowRelPos:k.oneOfType([k.number,k.string,k.func]),linkDirectionalParticles:k.oneOfType([k.number,k.string,k.func]),linkDirectionalParticleSpeed:k.oneOfType([k.number,k.string,k.func]),linkDirectionalParticleOffset:k.oneOfType([k.number,k.string,k.func]),linkDirectionalParticleWidth:k.oneOfType([k.number,k.string,k.func]),linkDirectionalParticleColor:k.oneOfType([k.string,k.func]),onLinkHover:k.func,onLinkClick:k.func,dagMode:k.oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:k.number,dagNodeFilter:k.func,onDagError:k.func,d3AlphaMin:k.number,d3AlphaDecay:k.number,d3VelocityDecay:k.number,warmupTicks:k.number,cooldownTicks:k.number,cooldownTime:k.number,onEngineTick:k.func,onEngineStop:k.func,getGraphBbox:k.func},Wm={zoomToFit:k.func,onNodeRightClick:k.func,onNodeDrag:k.func,onNodeDragEnd:k.func,onLinkRightClick:k.func,linkHoverPrecision:k.number,onBackgroundClick:k.func,onBackgroundRightClick:k.func,enablePointerInteraction:k.bool,enableNodeDrag:k.bool},ih={showNavInfo:k.bool,nodeOpacity:k.number,nodeResolution:k.number,nodeThreeObject:k.oneOfType([k.object,k.string,k.func]),nodeThreeObjectExtend:k.oneOfType([k.bool,k.string,k.func]),nodePositionUpdate:k.func,linkOpacity:k.number,linkResolution:k.number,linkCurveRotation:k.oneOfType([k.number,k.string,k.func]),linkMaterial:k.oneOfType([k.object,k.string,k.func]),linkThreeObject:k.oneOfType([k.object,k.string,k.func]),linkThreeObjectExtend:k.oneOfType([k.bool,k.string,k.func]),linkPositionUpdate:k.func,linkDirectionalArrowResolution:k.number,linkDirectionalParticleResolution:k.number,linkDirectionalParticleThreeObject:k.oneOfType([k.object,k.string,k.func]),forceEngine:k.oneOf(["d3","ngraph"]),ngraphPhysics:k.object,numDimensions:k.oneOf([1,2,3])},cT=Object.assign({},ws,Wm,{linkLineDash:k.oneOfType([k.arrayOf(k.number),k.string,k.func]),nodeCanvasObjectMode:k.oneOfType([k.string,k.func]),nodeCanvasObject:k.func,nodePointerAreaPaint:k.func,linkCanvasObjectMode:k.oneOfType([k.string,k.func]),linkCanvasObject:k.func,linkPointerAreaPaint:k.func,linkDirectionalParticleCanvasObject:k.func,autoPauseRedraw:k.bool,minZoom:k.number,maxZoom:k.number,enableZoomInteraction:k.oneOfType([k.bool,k.func]),enablePanInteraction:k.oneOfType([k.bool,k.func]),onZoom:k.func,onZoomEnd:k.func,onRenderFramePre:k.func,onRenderFramePost:k.func});Object.assign({},ws,Wm,ih,{enableNavigationControls:k.bool,controlType:k.oneOf(["trackball","orbit","fly"]),rendererConfig:k.object,extraRenderers:k.arrayOf(k.shape({render:k.func.isRequired}))});Object.assign({},ws,ih,{nodeDesc:k.oneOfType([k.string,k.func]),linkDesc:k.oneOfType([k.string,k.func])});Object.assign({},ws,ih,{markerAttrs:k.object,yOffset:k.number,glScale:k.number});const ah=Hb(rT,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});ah.displayName="ForceGraph2D";ah.propTypes=cT;const fT=n=>{const i=[],r=[],u=new Map;n.forEach(h=>{const g=h.metadata;if(g?.type==="fragment"&&g.documentId){const y=u.get(g.documentId)||0;u.set(g.documentId,y+1)}}),n.forEach(h=>{const g=h.metadata;if(!h.id||!g||typeof g!="object")return;const y=()=>{let v="";if(g.title?v=g.title:g.filename?v=g.filename:g.originalFilename?v=g.originalFilename:g.path?v=g.path.split("/").pop()||g.path:v=`${(g.type||"").toLowerCase()==="document"?"Doc":"Fragment"} ${h.id?h.id.substring(0,8):"Unknown"}`,g.type==="document"&&h.id){const m=u.get(h.id)||0;m>0&&(v+=` (${m} fragments)`)}return v},p={id:h.id,name:y(),memory:h,val:3,type:(g.type||"").toLowerCase()==="document"?"document":"fragment"};(g.type||"").toLowerCase()==="document"?(p.val=5,i.push(p)):(g.type||"").toLowerCase()==="fragment"||g.documentId&&(g.type||"").toLowerCase()!=="document"?(p.val=3,r.push(p)):i.push(p)});const o=[];return r.forEach(h=>{const g=h.memory.metadata;if(g.documentId){const y=i.find(p=>p.id===g.documentId);y&&o.push({source:y.id,target:h.id,value:1})}}),{nodes:[...i,...r],links:o}};function hT({memories:n,onNodeClick:i,selectedMemoryId:r}){const u=ot.useRef(null),[o,c]=ot.useState(!1),[h,g]=ot.useState(!0),[y,p]=ot.useState({nodes:[],links:[]}),v=ot.useRef(null),[m,b]=ot.useState({width:800,height:600}),x=4;ot.useEffect(()=>{if(n.length>0){const T=fT(n);p(T)}},[n]),ot.useEffect(()=>()=>{u.current=null,c(!1),g(!1)},[]),ot.useEffect(()=>{const T=()=>{if(v.current){const{offsetWidth:w,offsetHeight:D}=v.current;b({width:w,height:D})}};return T(),window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[]),ot.useEffect(()=>{if(o&&u.current&&r){const T=y.nodes.find(w=>w.id===r);T&&(u.current.centerAt(T.x,T.y,1e3),u.current.zoom(2.5,1e3))}},[r,o,y.nodes]);const A=ot.useCallback(T=>{if(u.current=T,T){const w=T.d3Force("charge");w&&w.strength(-120);const D=T.d3Force("link");D&&D.distance(50),T.zoomToFit(400),c(!0)}},[]),M=()=>O.jsxs("div",{className:"absolute top-4 right-4 p-3 bg-card/90 text-card-foreground border border-border rounded-md shadow-sm text-xs backdrop-blur-sm",children:[O.jsx("div",{className:"font-medium mb-2 text-xs",children:"Legend"}),O.jsxs("div",{className:"flex items-center mb-2",children:[O.jsx("div",{className:"w-3 h-3 rounded-full bg-orange-500/90 mr-2 border border-orange-600/60"}),O.jsx("span",{children:"Document"})]}),O.jsxs("div",{className:"flex items-center",children:[O.jsx("div",{className:"w-3 h-3 rounded-full bg-gray-400/90 mr-2 border border-gray-500/60"}),O.jsx("span",{children:"Fragment"})]})]});return O.jsxs("div",{ref:v,className:"w-full h-full relative",children:[M(),h&&O.jsx(ah,{ref:T=>{u.current=T,T&&!o&&A(T)},graphData:y,width:m.width,height:m.height,backgroundColor:"hsla(var(--background), 0.8)",linkColor:()=>"hsla(var(--muted-foreground), 0.2)",linkWidth:1,linkDirectionalParticles:1,linkDirectionalParticleWidth:1,linkDirectionalParticleSpeed:.003,nodeRelSize:x,nodeVal:T=>T.val||3,nodeColor:T=>T.type==="document"?"hsl(30, 100%, 50%)":"hsl(210, 10%, 70%)",nodeLabel:T=>{const w=T.memory.metadata;return`${T.type==="document"?"Document":"Fragment"}: ${w.title||T.id.substring(0,8)}`},onNodeClick:T=>{i(T.memory)},onNodeDragEnd:T=>{T.fx=T.x,T.fy=T.y},cooldownTicks:100,nodeCanvasObjectMode:T=>r===T.id?"after":"replace",nodeCanvasObject:(T,w,D)=>{const{x:q,y:R}=T,C=(T.val||3)*x,H=10/D,U=r===T.id,B=T.type==="document";if(w.beginPath(),w.arc(q||0,R||0,C,0,2*Math.PI),w.fillStyle=B?"hsl(30, 100%, 50%)":"hsl(210, 10%, 70%)",w.fill(),w.strokeStyle=B?"hsl(30, 100%, 35%)":"hsl(210, 10%, 45%)",w.lineWidth=U?2:1,w.stroke(),D>=1.4||U){const J=T.name||T.id.substring(0,6),W=T.memory.metadata,et=B?J:W.position!==void 0?`#${W.position}`:J;w.font=`${U?"bold ":""}${H}px Arial`,w.textAlign="center",w.textBaseline="middle",w.strokeStyle="hsla(var(--background), 0.8)",w.lineWidth=3,w.strokeText(et,q||0,R||0),w.fillStyle="hsla(var(--foreground), 0.9)",w.fillText(et,q||0,R||0)}if(U){w.beginPath(),w.arc(q||0,R||0,C*1.4,0,2*Math.PI),w.strokeStyle=B?"hsla(30, 100%, 60%, 0.8)":"hsla(210, 10%, 80%, 0.8)",w.lineWidth=1.5,w.stroke();const J=w.createRadialGradient(q||0,R||0,C,q||0,R||0,C*2);J.addColorStop(0,B?"hsla(30, 100%, 60%, 0.3)":"hsla(210, 10%, 80%, 0.3)"),J.addColorStop(1,"hsla(0, 0%, 0%, 0)"),w.fillStyle=J,w.beginPath(),w.arc(q||0,R||0,C*2,0,2*Math.PI),w.fill()}}})]})}const El=(...n)=>n.filter(Boolean).join(" "),dT=()=>({toast:({title:n,description:i,variant:r})=>{console.log(`Toast: ${n} - ${i} (${r||"default"})`)}}),xy=({open:n,onOpenChange:i,children:r})=>n?O.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm flex items-center justify-center p-4",onClick:()=>i(!1),children:O.jsx("div",{className:"bg-card text-card-foreground rounded-lg shadow-lg max-w-full max-h-full flex flex-col border border-border",onClick:u=>u.stopPropagation(),children:r})}):null,wy=({className:n,children:i})=>O.jsx("div",{className:El("p-6 flex flex-col border-border",n),children:i}),Sy=({className:n,children:i})=>O.jsx("div",{className:El("mb-4",n),children:i}),Ay=({className:n,children:i})=>O.jsx("h2",{className:El("text-lg font-semibold",n),children:i}),Ty=({className:n,children:i})=>O.jsx("p",{className:El("text-sm text-muted-foreground",n),children:i}),Ey=({className:n,children:i})=>O.jsx("div",{className:El("flex justify-end gap-2 mt-4",n),children:i}),rl=10,Im=n=>{const r=n.name.toLowerCase().split(".").pop()||"",u=["ts","tsx","js","jsx","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","lua","pl","pm","dart","hs","elm","ml","fs","fsx","vb","pas","d","nim","zig","jl","tcl","awk","sed","vue","svelte","astro","gitignore","dockerignore","editorconfig","env","cfg","conf","ini","log","txt"],o=["md","markdown"],c=["json"],h=["xml"],g=["html","htm"],y=["css","scss","sass","less"],p=["csv","tsv"],v=["yaml","yml"];return u.includes(r)?"text/plain":o.includes(r)?"text/markdown":c.includes(r)?"application/json":h.includes(r)?"application/xml":g.includes(r)?"text/html":y.includes(r)?"text/css":p.includes(r)?"text/csv":v.includes(r)?"text/yaml":r==="pdf"?"application/pdf":r==="doc"?"application/msword":r==="docx"?"application/vnd.openxmlformats-officedocument.wordprocessingml.document":n.type||"application/octet-stream"},xl={getKnowledgeDocuments:async(n,i)=>{const r=new URLSearchParams;r.append("agentId",n),i?.limit&&r.append("limit",i.limit.toString()),i?.before&&r.append("before",i.before.toString()),i?.includeEmbedding&&r.append("includeEmbedding","true");const u=await fetch(`/api/documents?${r.toString()}`);if(!u.ok){const o=await u.text();throw new Error(`Failed to fetch knowledge documents: ${u.status} ${o}`)}return await u.json()},getKnowledgeChunks:async(n,i)=>{const r=new URLSearchParams;r.append("agentId",n),i?.limit&&r.append("limit",i.limit.toString()),i?.before&&r.append("before",i.before.toString()),i?.documentId&&r.append("documentId",i.documentId),i?.documentsOnly&&r.append("documentsOnly","true");const u=await fetch(`/api/knowledges?${r.toString()}`);if(!u.ok){const o=await u.text();throw new Error(`Failed to fetch knowledge chunks: ${u.status} ${o}`)}return await u.json()},deleteKnowledgeDocument:async(n,i)=>{const r=new URLSearchParams;r.append("agentId",n);const u=await fetch(`/api/documents/${i}?${r.toString()}`,{method:"DELETE"});if(!u.ok){const o=await u.text();throw new Error(`Failed to delete knowledge document: ${u.status} ${o}`)}if(u.status!==204)return await u.json()},uploadKnowledge:async(n,i)=>{const r=new FormData;for(const o of i){const c=Im(o),h=new Blob([o],{type:c});r.append("files",h,o.name)}r.append("agentId",n);const u=await fetch("/api/documents",{method:"POST",body:r});if(!u.ok){const o=await u.text();throw new Error(`Failed to upload knowledge: ${u.status} ${o}`)}return await u.json()},searchKnowledge:async(n,i,r=.5,u=20)=>{const o=new URLSearchParams;o.append("agentId",n),o.append("q",i),o.append("threshold",r.toString()),o.append("limit",u.toString());const c=await fetch(`/api/search?${o.toString()}`);if(!c.ok){const h=await c.text();throw new Error(`Failed to search knowledge: ${c.status} ${h}`)}return await c.json()}},gT=(n,i=!0,r=!1)=>gf({queryKey:["agents",n,"knowledge","documents",{includeEmbedding:r}],queryFn:async()=>(await xl.getKnowledgeDocuments(n,{includeEmbedding:r})).data.memories||[],enabled:i}),pT=(n,i=!0,r)=>{const{data:u=[],isLoading:o,error:c}=gf({queryKey:["agents",n,"knowledge","documents-graph"],queryFn:async()=>(await xl.getKnowledgeDocuments(n,{includeEmbedding:!1})).data.memories||[],enabled:i&&!r}),{data:h=[],isLoading:g,error:y}=gf({queryKey:["agents",n,"knowledge","document-fragments",r],queryFn:async()=>r?(await xl.getKnowledgeChunks(n,{documentId:r})).data.chunks||[]:[],enabled:i&&!!r}),p=r?h:u;return{data:p,isLoading:o||g,error:c||y,documents:r?u:p,fragments:r?h.filter(b=>b.metadata?.type==="fragment"):[],mode:r?"document-fragments":"documents-only"}},yT=n=>{const i=ps();return V_({mutationFn:async({knowledgeId:r})=>{await xl.deleteKnowledgeDocument(n,r)},onSuccess:()=>{i.invalidateQueries({queryKey:["agents",n,"knowledge","documents"]})}})};function mT({agentId:n}){const[i,r]=ot.useState(null),[u,o]=ot.useState(!1),[c,h]=ot.useState(rl),[g,y]=ot.useState(!1),[p,v]=ot.useState("list"),[m,b]=ot.useState(null),[x,A]=ot.useState(1),[M,T]=ot.useState(!1),[w,D]=ot.useState(""),[q,R]=ot.useState(!1),[C,H]=ot.useState(null),[U,B]=ot.useState([]),[J,W]=ot.useState(!1),[et,lt]=ot.useState(""),[ft,G]=ot.useState(.5),[I,z]=ot.useState([]),[$,nt]=ot.useState(!1),[ut,E]=ot.useState(null),[Z,tt]=ot.useState(""),[it,st]=ot.useState(void 0),yt=ot.useRef(null),ht=ot.useRef(null),{toast:Ct}=dT(),At=ps(),{data:pe=[],isLoading:Wa,error:Ii}=gT(n,p==="list"&&!J,!1),{data:ta=[],isLoading:ea,error:Ia,documents:Ss=[],fragments:As=[]}=pT(n,p==="graph"&&!J,it),Le=p==="list"?Wa:ea,Ol=p==="list"?Ii:Ia,xn=p==="list"?pe:ta,Si=p==="list"?pe.length:Ss.length,Ai=p==="graph"?As.length:0,{mutate:Ts}=yT(n),wn=Bf.useMemo(()=>p!=="list"||!Z.trim()?xn:xn.filter(at=>{const _t=at.metadata||{};return(_t.filename||_t.originalFilename||_t.path||"").toLowerCase().includes(Z.toLowerCase())}),[xn,Z,p]),Es=wn.slice(0,c),Os=c<wn.length,Sn=ot.useCallback(()=>{if(!ht.current||g||c>=wn.length)return;const{scrollTop:at,scrollHeight:_t,clientHeight:bt}=ht.current;at+bt>=_t-100&&(y(!0),setTimeout(()=>{h(Se=>Math.min(Se+rl,wn.length)),y(!1)},300))},[g,c,wn.length]);if(ot.useEffect(()=>{h(rl)},[]),ot.useEffect(()=>{h(rl)},[Z]),ot.useEffect(()=>{const at=_t=>{_t.key==="Escape"&&i&&(r(null),A(1))};if(i)return document.addEventListener("keydown",at),()=>document.removeEventListener("keydown",at)},[i]),ot.useEffect(()=>{const at=ht.current;if(at)return at.addEventListener("scroll",Sn),()=>at.removeEventListener("scroll",Sn)},[Sn]),Le&&(!xn||xn.length===0)&&!J)return O.jsx("div",{className:"flex items-center justify-center h-40",children:"Loading knowledge documents..."});if(Ol&&!J)return O.jsxs("div",{className:"flex items-center justify-center h-40 text-destructive",children:["Error loading knowledge documents: ",Ol.message]});const ye=at=>{const _t=new Date(at);return`${_t.toLocaleDateString()} ${_t.toLocaleTimeString()}`},on=at=>{switch(at.split(".").pop()?.toLowerCase()){case"md":return O.jsx(Zc,{className:"h-5 w-5 text-blue-500"});case"js":case"ts":case"jsx":case"tsx":return O.jsx(Zc,{className:"h-5 w-5 text-yellow-500"});case"json":return O.jsx(Zc,{className:"h-5 w-5 text-green-500"});case"pdf":return O.jsx(op,{className:"h-5 w-5 text-red-500"});default:return O.jsx(op,{className:"h-5 w-5 text-gray-500"})}},me=at=>{at&&window.confirm("Are you sure you want to delete this document?")&&(Ts({knowledgeId:at}),r(null))},Ml=()=>{yt.current&&yt.current.click()},Ms=()=>{T(!0),D(""),B([]),H(null)},Cl=()=>{try{if(!new URL(w).protocol.startsWith("http")){H("URL must start with http:// or https://");return}if(U.includes(w)){H("This URL is already in the list");return}B([...U,w]),D(""),H(null)}catch{H("Invalid URL")}},na=at=>{B(U.filter(_t=>_t!==at))},Ti=async()=>{if(!et.trim()){E("Please enter a search query");return}nt(!0),E(null),z([]);try{const at=await xl.searchKnowledge(n,et,ft);z(at.data.results||[]),at.data.results.length===0&&E("No results found. Try adjusting your search query or lowering the similarity threshold.")}catch(at){E(at.message||"Failed to search knowledge"),z([])}finally{nt(!1)}},An=async()=>{if(w.trim())try{new URL(w).protocol.startsWith("http")&&!U.includes(w)&&B([...U,w])}catch{}if(U.length===0){H("Please add at least one valid URL");return}R(!0),H(null);try{const at=await fetch("/api/documents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileUrls:U,agentId:n})});if(!at.ok){const bt=await at.text();throw new Error(bt)}const _t=await at.json();_t.success?(Ct({title:"URLs imported",description:`Successfully imported ${U.length} document(s)`}),T(!1),At.invalidateQueries({queryKey:["agents",n,"knowledge","documents"]})):H(_t.error?.message||"Error importing documents from URLs")}catch(at){H(at.message||"Error importing documents from URLs"),Ct({title:"Error",description:"Failed to import documents from URLs",variant:"destructive"})}finally{R(!1)}},ia=async at=>{const _t=at.target.files;if(!(!_t||_t.length===0)){o(!0);try{const bt=Array.from(_t),we=new FormData;for(const te of bt){const Gt=Im(te),Vt=new Blob([te],{type:Gt});we.append("files",Vt,te.name)}we.append("agentId",n);const Se=await fetch("/api/documents",{method:"POST",body:we});if(!Se.ok)throw new Error(`Upload failed: ${Se.statusText}`);const Pn=(await Se.json()).data||[];if(Array.isArray(Pn)&&Pn.every(te=>te.status==="success"))Ct({title:"Knowledge Uploaded",description:`Successfully uploaded ${bt.length} file(s)`}),At.invalidateQueries({queryKey:["agents",n,"knowledge","documents"]});else{const te=Pn.filter(Vt=>Vt.status==="success").length,Gt=bt.length-te;Ct({title:Gt>0?"Upload Partially Failed":"Upload Issues",description:`Uploaded ${te} file(s). ${Gt} file(s) failed. Check console for details.`,variant:Gt>0?"destructive":"default"}),console.error("Upload results:",Pn)}}catch(bt){Ct({title:"Upload Failed",description:bt instanceof Error?bt.message:"Failed to upload knowledge files",variant:"destructive"}),console.error("Upload error:",bt)}finally{o(!1),yt.current&&(yt.current.value="")}}},Ei=()=>O.jsx("div",{className:"flex justify-center p-4",children:g?O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(Ya,{className:"h-4 w-4 animate-spin"}),O.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading more..."})]}):O.jsx(Jt,{variant:"ghost",size:"sm",onClick:()=>{y(!0),setTimeout(()=>{h(at=>Math.min(at+rl,wn.length)),y(!1)},100)},className:"text-xs",children:"Show more"})}),Cs=()=>O.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:[O.jsx(ub,{className:"h-12 w-12 text-muted-foreground opacity-20"}),O.jsx("h3",{className:"text-lg font-medium",children:"No Knowledge Documents"}),O.jsx("p",{className:"max-w-md text-sm",children:"No Knowledge Documents found."}),O.jsxs(Jt,{variant:"outline",onClick:Ml,children:[O.jsx(cp,{className:"h-4 w-4 mr-2"}),"Upload Documents"]})]}),Nl=()=>Tn?O.jsxs(O.Fragment,{children:[O.jsxs(Jt,{variant:"outline",size:"sm",onClick:()=>v("list"),className:"flex-shrink-0",title:"Switch to List view to see documents only",children:[O.jsx($c,{className:"h-4 w-4 mr-2"}),O.jsx("span",{children:"List View"})]}),O.jsxs(Jt,{variant:"outline",size:"sm",onClick:()=>{st(void 0),b(null)},className:"flex-shrink-0",children:[O.jsx(rb,{className:"h-4 w-4 mr-2"}),O.jsx("span",{children:"Overview Graph"})]})]}):J?O.jsxs(Jt,{variant:"outline",size:"sm",onClick:()=>{W(!1),lt(""),z([]),E(null),v("list")},className:"flex-shrink-0",title:"Exit search and return to List view",children:[O.jsx($c,{className:"h-4 w-4 mr-2"}),O.jsx("span",{className:"hidden md:inline",children:"List View"}),O.jsx("span",{className:"md:hidden",children:"List"})]}):p==="graph"?O.jsxs(Jt,{variant:"outline",size:"sm",onClick:()=>v("list"),className:"flex-shrink-0",title:"Switch to List view to see documents only",children:[O.jsx($c,{className:"h-4 w-4 mr-2"}),O.jsx("span",{className:"hidden md:inline",children:"List View"}),O.jsx("span",{className:"md:hidden",children:"List"})]}):O.jsxs(O.Fragment,{children:[O.jsxs(Jt,{variant:"outline",size:"sm",onClick:()=>v("graph"),className:"flex-shrink-0",title:"Switch to Graph view to see documents and fragments",children:[O.jsx(pb,{className:"h-4 w-4 mr-2"}),O.jsx("span",{className:"hidden md:inline",children:"Graph View"}),O.jsx("span",{className:"md:hidden",children:"Graph"})]}),O.jsxs("div",{className:"flex gap-2 ml-auto sm:ml-0",children:[O.jsxs(Jt,{variant:"outline",onClick:()=>W(!0),size:"sm",className:"flex-shrink-0",children:[O.jsx(Kc,{className:"h-4 w-4 sm:mr-2"}),O.jsx("span",{className:"hidden sm:inline",children:"Search"})]}),O.jsxs(Jt,{variant:"outline",onClick:Ms,size:"sm",className:"flex-shrink-0",children:[O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 sm:mr-2",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),O.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]}),O.jsx("span",{className:"hidden sm:inline",children:"URL"})]}),O.jsxs(Jt,{onClick:Ml,disabled:u,size:"sm",className:"flex-shrink-0",children:[u?O.jsx(Ya,{className:"h-4 w-4 animate-spin sm:mr-2"}):O.jsx(cp,{className:"h-4 w-4 sm:mr-2"}),O.jsx("span",{className:"hidden sm:inline",children:"Upload"})]})]})]}),zl=({memory:at,index:_t})=>{const bt=at.metadata||{},we=()=>bt.title?bt.title:bt.filename?bt.filename:bt.originalFilename?bt.originalFilename:bt.path?bt.path.split("/").pop()||bt.path:at.id?`Document ${at.id.substring(0,8)}`:`Document ${_t+1}`,Se=()=>bt.fileExt?bt.fileExt.toLowerCase():(bt.filename||bt.originalFilename||bt.path||"").split(".").pop()?.toLowerCase()||"doc",Oi=()=>bt.path?bt.path:bt.filename?bt.filename:bt.originalFilename?bt.originalFilename:bt.source?`Source: ${bt.source}`:"Knowledge Document",Pn=we(),te=Oi(),Gt=Se();return O.jsx("button",{type:"button",className:"w-full text-left hover:bg-accent/5 transition-colors group border-b border-border/30 cursor-pointer",onClick:()=>r(at),children:O.jsxs("div",{className:"flex items-center px-1 py-2 min-h-[2rem]",children:[O.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[O.jsx("div",{className:"flex-shrink-0",children:on(Pn)}),O.jsxs("div",{className:"flex-1 min-w-0",children:[O.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[O.jsx("span",{className:"text-xs font-medium truncate",children:te}),O.jsx(fp,{variant:"outline",className:"px-1 py-0 h-4 text-xs flex-shrink-0",children:Gt||"doc"})]}),O.jsx("div",{className:"text-xs text-muted-foreground",children:new Date(at.createdAt||0).toLocaleString(void 0,{month:"numeric",day:"numeric",year:"2-digit",hour:"numeric",minute:"numeric"})})]})]}),O.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:at.id&&O.jsx(Jt,{variant:"ghost",size:"icon",className:"size-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:Vt=>{Vt&&(Vt.stopPropagation(),Vt.preventDefault()),me(at.id||"")},title:"Delete knowledge",children:O.jsx(vb,{className:"h-3 w-3 text-destructive"})})})]})},at.id||_t)},tr=({memory:at})=>{const _t=at.metadata,bt=_t?.type==="fragment";return O.jsxs("div",{className:"border-t border-border bg-card text-card-foreground h-full flex flex-col",children:[O.jsxs("div",{className:"p-4 flex justify-between items-start flex-shrink-0",children:[O.jsxs("div",{className:"space-y-1",children:[O.jsxs("h3",{className:"text-sm font-medium flex items-center gap-2",children:[bt?O.jsxs("span",{className:"flex items-center",children:[O.jsx("div",{className:"h-3 w-3 rounded-full bg-accent mr-1.5"}),"Fragment"]}):O.jsxs("span",{className:"flex items-center",children:[O.jsx("div",{className:"h-3 w-3 rounded-full bg-primary mr-1.5"}),"Document"]}),O.jsx("span",{className:"text-muted-foreground ml-2",children:_t?.title||at.id?.substring(0,8)})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[O.jsxs("div",{className:"col-span-2",children:["ID: ",O.jsx("span",{className:"font-mono",children:at.id})]}),bt&&_t.documentId&&O.jsxs("div",{className:"col-span-2",children:["Parent Document:"," ",O.jsx("span",{className:"font-mono text-primary/80",children:_t.documentId})]}),bt&&_t.position!==void 0&&O.jsxs("div",{children:["Position: ",_t.position]}),_t.source&&O.jsxs("div",{children:["Source: ",_t.source]}),O.jsxs("div",{children:["Created on: ",ye(at.createdAt||0)]})]})]}),O.jsx(Jt,{variant:"ghost",size:"sm",onClick:()=>b(null),className:"text-xs h-7 px-2",children:"Close"})]}),O.jsxs("div",{className:"px-4 pb-4 flex-1 flex flex-col",children:[O.jsx("div",{className:"bg-background rounded border border-border p-3 text-sm overflow-auto flex-1",children:O.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs h-full",children:at.content?.text||"No content available"})}),at.embedding&&O.jsxs("div",{className:"mt-2 flex items-center text-xs text-muted-foreground flex-shrink-0",children:[O.jsx("span",{className:"bg-accent/20 text-accent-foreground px-1.5 py-0.5 rounded text-[10px] font-medium mr-1.5",children:"EMBEDDING"}),O.jsxs("span",{children:["Vector with ",at.embedding.length," dimensions"]})]})]})]})},Tn=p==="graph"&&it&&!J;return O.jsxs("div",{className:"flex flex-col h-full",children:[O.jsxs("div",{className:`flex flex-col sm:flex-row items-start sm:items-center justify-between border-b gap-3 ${Tn?"p-6 pb-4":"p-4"}`,children:[O.jsxs("div",{className:"flex flex-col gap-1",children:[O.jsx("h2",{className:"text-lg font-semibold",children:"Knowledge"}),O.jsx("p",{className:"text-xs text-muted-foreground",children:J?"Searching knowledge fragments":p==="list"?`Viewing ${Si} document${Si!==1?"s":""}`:Tn?`Inspecting document with ${Ai} fragment${Ai!==1?"s":""}`:`Viewing ${Si} document${Si!==1?"s":""}`})]}),O.jsx("div",{className:"flex items-center gap-3 w-full sm:w-auto",children:O.jsx(Nl,{})})]}),J&&O.jsx("div",{className:"border-b border-border bg-muted/30 p-4",children:O.jsxs("div",{className:"space-y-4",children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(fb,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),O.jsx("p",{className:"text-xs text-muted-foreground",children:"Search your knowledge base using semantic vector search. Adjust the similarity threshold to control how closely results must match your query."})]}),O.jsxs("div",{className:"space-y-3",children:[O.jsxs("div",{className:"flex gap-2",children:[O.jsx(Fc,{placeholder:"Enter your search query...",value:et,onChange:at=>lt(at.target.value),onKeyDown:at=>{at.key==="Enter"&&et.trim()&&(at.preventDefault(),Ti())},className:"flex-1"}),O.jsx(Jt,{onClick:Ti,disabled:$||!et.trim(),size:"sm",className:"px-6",children:$?O.jsx(Ya,{className:"h-4 w-4 animate-spin"}):O.jsx(Kc,{className:"h-4 w-4"})})]}),O.jsxs("div",{className:"space-y-2",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-sm font-medium",children:"Similarity Threshold"}),O.jsxs("span",{className:"text-sm text-muted-foreground",children:[ft.toFixed(2)," (",Math.round(ft*100),"% match)"]})]}),O.jsx("input",{type:"range",min:"0",max:"1",step:"0.05",value:ft,onChange:at=>G(parseFloat(at.target.value)),className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"}),O.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[O.jsx("span",{children:"0% (least similar)"}),O.jsx("span",{children:"100% (exact match)"})]})]})]})]})}),M&&O.jsx(xy,{open:M,onOpenChange:T,children:O.jsxs(wy,{className:"max-w-md w-full",children:[O.jsxs(Sy,{children:[O.jsx(Ay,{className:"text-xl font-bold",children:"Import from URL"}),O.jsx(Ty,{children:"Enter one or more URLs of PDF, text, or other files to import into the knowledge base."})]}),O.jsxs("div",{className:"mt-6 space-y-4",children:[O.jsxs("div",{className:"flex gap-2",children:[O.jsx(Fc,{placeholder:"https://example.com/document.pdf",value:w,onChange:at=>D(at.target.value),disabled:q,className:"flex-1",onKeyDown:at=>{at.key==="Enter"&&w.trim()&&(at.preventDefault(),Cl())}}),O.jsx(Jt,{variant:"outline",size:"sm",onClick:Cl,disabled:q||!w.trim(),children:"Add"})]}),C&&O.jsx("div",{className:"text-sm text-destructive bg-destructive/10 p-2 rounded-md",children:C}),U.length>0&&O.jsxs("div",{className:"border border-border rounded-md bg-card/50 p-3 mt-2",children:[O.jsxs("h4",{className:"text-sm font-medium mb-2",children:["URLs to import (",U.length,")"]}),O.jsx("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:U.map((at,_t)=>O.jsxs("div",{className:"flex items-center justify-between text-sm bg-background p-2 rounded border border-border",children:[O.jsx("span",{className:"truncate flex-1",children:at}),O.jsx(Jt,{variant:"ghost",size:"icon",className:"h-6 w-6 hover:bg-destructive/10 hover:text-destructive",onClick:()=>na(at),disabled:q,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},_t))})]})]}),O.jsxs(Ey,{className:"mt-6 pt-4 border-t border-border",children:[O.jsx(Jt,{variant:"outline",onClick:()=>T(!1),disabled:q,children:"Cancel"}),O.jsx(Jt,{onClick:An,disabled:q||U.length===0&&!w.trim(),children:q?O.jsxs(O.Fragment,{children:[O.jsx(Ya,{className:"h-4 w-4 animate-spin mr-2"}),"Importing..."]}):"Import"})]})]})}),O.jsx("input",{ref:yt,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:ia,className:"hidden"}),O.jsx("div",{className:"flex-1 overflow-hidden",children:J?O.jsxs("div",{className:"h-full overflow-y-auto p-4",children:[$&&O.jsx("div",{className:"flex items-center justify-center h-full",children:O.jsx(Ya,{className:"h-8 w-8 animate-spin text-muted-foreground"})}),ut&&!$&&O.jsx("div",{className:"flex items-center justify-center h-full text-center",children:O.jsx("div",{className:"p-4 bg-destructive/10 text-destructive rounded-md",children:ut})}),I.length>0&&!$&&O.jsxs("div",{className:"space-y-3",children:[O.jsxs("h3",{className:"text-sm font-medium",children:["Found ",I.length," result",I.length!==1?"s":""]}),O.jsx("div",{className:"space-y-2",children:I.map((at,_t)=>O.jsxs("div",{className:"border border-border rounded-md p-3 bg-card hover:bg-accent/10 transition-colors cursor-pointer",onClick:()=>r(at),children:[O.jsx("div",{className:"flex items-start justify-between mb-2",children:O.jsx("div",{className:"flex items-center gap-2",children:O.jsxs(fp,{variant:"outline",className:"text-xs",children:[(at.similarity*100).toFixed(1),"% match"]})})}),O.jsx("p",{className:"text-sm line-clamp-4 mb-2",children:at.content?.text||"No content"}),O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:at.metadata?.position!==void 0&&O.jsxs("span",{children:["Fragment #",at.metadata.position]})}),O.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),O.jsx("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})]}),O.jsx("span",{children:"Read more"})]})]})]},at.id||_t))})]}),!$&&I.length===0&&!ut&&O.jsx("div",{className:"flex items-center justify-center h-full text-center text-muted-foreground",children:O.jsxs("div",{className:"flex flex-col items-center gap-2",children:[O.jsx(Kc,{className:"h-10 w-10 opacity-30"}),O.jsx("p",{children:"Enter a query to search your knowledge base."})]})})]}):xn.length===0?O.jsx(Cs,{}):p==="graph"?O.jsxs("div",{className:"flex flex-col h-full",children:[O.jsxs("div",{className:`p-4 overflow-hidden ${m?"h-1/3":"flex-1"} transition-all duration-300`,children:[O.jsx(hT,{memories:ta,onNodeClick:at=>{b(at),at.metadata?.type==="document"&&st(at.id)},selectedMemoryId:m?.id}),p==="graph"&&ea&&it&&O.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-card/90 backdrop-blur-sm p-4 rounded-lg shadow-lg border border-border",children:O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(Ya,{className:"h-5 w-5 animate-spin"}),O.jsx("span",{children:"Loading document fragments..."})]})})]}),m&&O.jsx("div",{className:"h-2/3 overflow-hidden flex-1 transition-all duration-300",children:O.jsx(tr,{memory:m})})]}):O.jsxs("div",{className:"h-full flex flex-col",children:[O.jsx("div",{className:"flex-shrink-0 p-4 pb-2 border-b border-border/30",children:O.jsx(Fc,{placeholder:"Filter by filename...",value:Z,onChange:at=>tt(at.target.value),className:"w-full text-sm"})}),O.jsxs("div",{ref:ht,className:"flex-1 overflow-y-auto p-4 pt-2",children:[O.jsx("div",{className:"grid gap-1.5",children:Es.map((at,_t)=>O.jsx(zl,{memory:at,index:_t},at.id||_t))}),Os&&O.jsx(Ei,{})]})]})}),i&&O.jsx(xy,{open:!!i,onOpenChange:()=>r(null),children:O.jsxs(wy,{className:"max-w-[95vw] w-full max-h-[95vh] h-full overflow-hidden flex flex-col p-0",children:[O.jsx(Sy,{className:"flex-shrink-0 p-6 pb-2",children:O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("div",{children:[O.jsx(Ay,{className:"text-xl",children:i.metadata?.title||"Document Content"}),O.jsx(Ty,{children:i.metadata?.filename||"Knowledge document"})]}),(()=>{const at=i.metadata,_t=at?.contentType||"",bt=at?.fileExt?.toLowerCase()||"";return _t==="application/pdf"||bt==="pdf"?O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(Jt,{variant:"outline",size:"sm",onClick:()=>A(Math.max(.5,x-.25)),disabled:x<=.5,children:O.jsx("span",{className:"text-lg",children:"−"})}),O.jsxs("span",{className:"text-sm font-medium min-w-[60px] text-center",children:[Math.round(x*100),"%"]}),O.jsx(Jt,{variant:"outline",size:"sm",onClick:()=>A(Math.min(3,x+.25)),disabled:x>=3,children:O.jsx("span",{className:"text-lg",children:"+"})}),O.jsx(Jt,{variant:"outline",size:"sm",onClick:()=>A(1),children:"Reset"})]}):null})()]})}),O.jsx("div",{className:"flex-1 overflow-auto px-6 pb-2",children:(()=>{const at=i.metadata,_t=at?.contentType||"",bt=at?.fileExt?.toLowerCase()||"",we=_t==="application/pdf"||bt==="pdf";if(we&&i.content?.text){const Se=i.content.text.trim();if(!Se)return O.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6 flex items-center justify-center",children:O.jsxs("div",{className:"text-center text-muted-foreground",children:[O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-12 w-12 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.314 18.5c-.77.833.192 2.5 1.732 2.5z"})}),O.jsx("p",{className:"text-lg font-medium",children:"PDF Content Unavailable"}),O.jsx("p",{className:"text-sm",children:"The PDF content could not be loaded."})]})});const Oi=`data:application/pdf;base64,${Se}`;return O.jsx("div",{className:"w-full h-full rounded-lg overflow-auto bg-card border border-border",children:O.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:O.jsx("iframe",{src:Oi,className:"w-full border-0 shadow-md",style:{height:"90vh",maxWidth:"1200px",backgroundColor:"var(--background)"},title:"PDF Document",onError:()=>{console.error("Failed to load PDF in iframe")}})})})}else return we&&!i.content?.text?O.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6 flex items-center justify-center",children:O.jsxs("div",{className:"text-center text-muted-foreground",children:[O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-12 w-12 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:O.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),O.jsx("p",{className:"text-lg font-medium",children:"PDF Not Available"}),O.jsx("p",{className:"text-sm",children:"This PDF document has no content to display."})]})}):O.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6",children:O.jsx("pre",{className:"whitespace-pre-wrap text-sm font-mono leading-relaxed text-foreground",children:i.content?.text||"No content available"})})})()}),O.jsx(Ey,{className:"flex-shrink-0 p-6 pt-4 border-t border-border",children:O.jsx(Jt,{variant:"outline",onClick:()=>{r(null),A(1)},children:"Close"})})]})})]})}const vT=new O_;function _T(){const i=window.ELIZA_CONFIG?.agentId;return Bf.useEffect(()=>{document.documentElement.classList.add("dark")},[]),i?O.jsx(bT,{agentId:i}):O.jsxs("div",{className:"p-4 text-center",children:[O.jsx("div",{className:"text-red-600 font-medium",children:"Error: Agent ID not found"}),O.jsx("div",{className:"text-sm text-gray-600 mt-2",children:"The server should inject the agent ID configuration."})]})}function bT({agentId:n}){return O.jsx(D_,{client:vT,children:O.jsx(mT,{agentId:n})})}const Oy=document.getElementById("root");Oy&&W_.createRoot(Oy).render(O.jsx(_T,{}));
|