@ltm-blueverse/alpha-hub-studio 0.7.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 +22 -0
- package/package.json +23 -0
- package/static/apple-touch-icon.png +0 -0
- package/static/assets/DecisionWorkspace-DG6zPNls.js +1 -0
- package/static/assets/DiffMergeWorkspace-C8yIdDC7.js +1 -0
- package/static/assets/EntityResolutionTab-RBysMLhB.js +6 -0
- package/static/assets/GraphInspectorPanel-Bbrbhd03.js +1 -0
- package/static/assets/GraphWorkspace-AxTFEhNP.js +1116 -0
- package/static/assets/ImportExportWorkspace-BK3TofDv.js +6 -0
- package/static/assets/KGOverviewTab-D9EWKL_n.js +1 -0
- package/static/assets/LineageDiagram-XxBVa1Ij.js +27 -0
- package/static/assets/MarkdownContentViewer-Chx4ysCK.js +45 -0
- package/static/assets/MemoryWorkspace-CIjaTN_S.js +6 -0
- package/static/assets/OntologySummaryTab-NJ3ZrkoJ.js +1 -0
- package/static/assets/ReasoningWorkspace-B127Rd-S.js +19 -0
- package/static/assets/RegistryTab-BE2-yKLC.js +11 -0
- package/static/assets/SparqlWorkspace-RwPj2YK7.js +26 -0
- package/static/assets/TimelinePanel-DmtiXgmN.js +36 -0
- package/static/assets/VocabularyWorkspace-YF9waL5N.js +44 -0
- package/static/assets/book-open-BqEIxx1e.js +6 -0
- package/static/assets/chevron-right-CiEuNwKq.js +11 -0
- package/static/assets/circle-check-BToWKwbO.js +6 -0
- package/static/assets/copy-BfQXGhHP.js +6 -0
- package/static/assets/download-gQOgYz3q.js +6 -0
- package/static/assets/external-link-DqNu6T-f.js +6 -0
- package/static/assets/file-text-Bbz-r0FQ.js +6 -0
- package/static/assets/git-branch-B8yDcUSY.js +6 -0
- package/static/assets/graph-vendor-CUDaIrp7.js +312 -0
- package/static/assets/graphTheme-DNKLxzKZ.js +6 -0
- package/static/assets/hero-B5GXDCBc.png +0 -0
- package/static/assets/index-Bt8w1Tz_.css +1 -0
- package/static/assets/index-C00aFykz.js +9 -0
- package/static/assets/index-DHWWI-uw.js +1730 -0
- package/static/assets/index-Dli_3Iwd.js +22 -0
- package/static/assets/index-DtC_GayB.js +16 -0
- package/static/assets/index-MVDNL3vw.js +127 -0
- package/static/assets/info-vaffNQOD.js +6 -0
- package/static/assets/layers-Cct6D_wK.js +6 -0
- package/static/assets/loader-circle-C8NUmtFx.js +6 -0
- package/static/assets/neighborhoodPanelPlugin-w1yJlm0A.js +1 -0
- package/static/assets/pencil-DYlEC6ri.js +6 -0
- package/static/assets/play-G1gyOk2a.js +6 -0
- package/static/assets/queries-CYtdSB4H.js +1 -0
- package/static/assets/query-vendor-BqVbYexz.js +34 -0
- package/static/assets/refresh-cw-CL9OXZ89.js +6 -0
- package/static/assets/registryStore-MVt_NgVV.js +1 -0
- package/static/assets/style-BZV40eAE.css +1 -0
- package/static/assets/style-D8TqSrGs.js +15 -0
- package/static/assets/temporalOverlayPlugin-CRhLa1FU.js +1 -0
- package/static/assets/timeline-vendor-WyY-t3YQ.js +97 -0
- package/static/assets/timeline-vendor-lG7zfUUF.css +1 -0
- package/static/assets/trash-2-DiZNV6Gj.js +6 -0
- package/static/assets/x-DpqMYq96.js +6 -0
- package/static/favicon-32.png +0 -0
- package/static/favicon.svg +13 -0
- package/static/icons.svg +24 -0
- package/static/index.html +18 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as o}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const c=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],t=o("info",c);export{t as I};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as a}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],t=a("layers",e);export{t as L};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as e}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const o=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],a=e("loader-circle",o);export{a as L};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as n}from"./index-DHWWI-uw.js";import"./query-vendor-BqVbYexz.js";const s="neighborhood-panel",m=10;function c(e,r,t){let i=0;return e.forEachDirectedEdge(r,t,(d,a)=>{i=Math.max(i,Number(a.weight??0))}),i}function b(e){const r=[e.nodeType,`degree ${e.degree}`];return e.weight>0&&r.push(`weight ${e.weight.toFixed(2)}`),r.join(" · ")}const D={id:"neighborhood-panel",mount:()=>{},unmount:()=>{},onStateChange:()=>{},toolbarItems:e=>[{id:"neighborhood-toggle",label:"Neighbors",title:"Toggle neighborhood panel",active:e.isPanelOpen(s),order:30,onClick:()=>e.dispatchAction({type:"togglePanel",panelId:s})}],renderPanel:e=>{if(!e.isPanelOpen(s))return null;const r=e.getSelectedNodeState(),t=e.getDisplayState();if(!r)return{id:s,title:"Neighborhood",placement:"bottom",order:20,defaultOpen:!1,preferredWidth:360,preferredHeight:260,content:n.jsxDEV("div",{style:h,children:"Select a node to inspect its local neighborhood."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:56,columnNumber:18},void 0)};const i=e.graph.neighbors(r.id).map(o=>{const l=e.graph.getNodeAttributes(o),g=Math.max(c(e.graph,r.id,o),c(e.graph,o,r.id));return{id:o,label:String(l.label||o),nodeType:String(l.nodeType||"Entity"),color:String(l.baseColor||l.color||e.theme.palette.semantic[0]),weight:g,degree:e.graph.degree(o)}}).sort((o,l)=>l.weight!==o.weight?l.weight-o.weight:l.degree!==o.degree?l.degree-o.degree:o.label.localeCompare(l.label)).slice(0,m),d=t.selectedCollapsedNeighborIds.length,a=e.displayGraph.edges().map(o=>e.displayGraph.getEdgeAttributes(o)).filter(o=>o.isAggregated).length;return{id:s,title:"Neighborhood",placement:"bottom",order:20,defaultOpen:!1,preferredWidth:360,preferredHeight:260,content:n.jsxDEV("div",{style:f,children:[n.jsxDEV("div",{style:N,children:r.label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:92,columnNumber:11},void 0),n.jsxDEV("div",{style:p,children:[r.neighborCount.toLocaleString()," direct neighbors in the full graph"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:93,columnNumber:11},void 0),n.jsxDEV("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[n.jsxDEV("button",{type:"button",onClick:()=>e.dispatchAction({type:"collapseNeighborhood"}),disabled:!r.canCollapseNeighborhood||r.isNeighborhoodCollapsed,style:u,children:"Collapse Neighborhood"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:101,columnNumber:13},void 0),n.jsxDEV("button",{type:"button",onClick:()=>e.dispatchAction({type:"expandNeighborhood"}),disabled:!r.isNeighborhoodCollapsed,style:u,children:"Expand Neighborhood"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:106,columnNumber:13},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:96,columnNumber:11},void 0),d>0?n.jsxDEV("div",{style:p,children:[d.toLocaleString()," lower-priority neighbors are collapsed in the current view."]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:112,columnNumber:38},void 0):null,a>0?n.jsxDEV("div",{style:p,children:[a.toLocaleString()," aggregated structural bundle",a===1?"":"s"," visible."]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:115,columnNumber:38},void 0):null,i.length?n.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:i.map(o=>n.jsxDEV("button",{type:"button",onClick:()=>e.dispatchAction({type:"selectNode",nodeId:o.id}),style:y,children:[n.jsxDEV("span",{style:{...x,background:o.color,boxShadow:`0 0 16px ${o.color}40`}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:127,columnNumber:19},void 0),n.jsxDEV("div",{style:{minWidth:0,flex:1,textAlign:"left"},children:[n.jsxDEV("div",{style:S,children:o.label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:137,columnNumber:21},void 0),n.jsxDEV("div",{style:A,children:b(o)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:138,columnNumber:21},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:132,columnNumber:19},void 0)]},o.id,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:123,columnNumber:42},void 0))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:118,columnNumber:31},void 0):n.jsxDEV("div",{style:h,children:"No direct neighbors are available for this node."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:141,columnNumber:22},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/plugins/neighborhoodPanelPlugin.tsx",lineNumber:91,columnNumber:16},void 0)}}},f={display:"flex",flexDirection:"column",gap:12},N={color:"#fff1f3",fontSize:14,fontWeight:700},p={color:"#c99aa3",fontSize:12,lineHeight:1.5},y={display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",background:"rgba(255,255,255,0.025)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:12,cursor:"pointer"},u={padding:"7px 10px",background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:10,color:"#dce7f4",cursor:"pointer",fontSize:12},x={width:10,height:10,borderRadius:999,flexShrink:0},S={color:"#fff1f3",fontSize:13,fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},A={color:"#c99aa3",fontSize:12},h={color:"#c99aa3",fontSize:12,lineHeight:1.5};export{D as neighborhoodPanelPlugin};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as a}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],c=a("pencil",e);export{c as P};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as a}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const o=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],e=a("play",o);export{e as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as s}from"./index-DHWWI-uw.js";import{c as f,u as i,d}from"./query-vendor-BqVbYexz.js";const l=async()=>{const c=await fetch("/api/vocabulary/schemes");if(!c.ok)throw new Error("Failed to fetch vocabularies");return c.json()},u=async c=>{const e=await fetch(`/api/vocabulary/hierarchy?scheme=${encodeURIComponent(c)}`);if(!e.ok)throw new Error("Failed to fetch hierarchy");return e.json()},b=async c=>{const e=new FormData;e.append("file",c);const a=await fetch("/api/vocabulary/import",{method:"POST",body:e});if(!a.ok)throw new Error("Failed to import vocabulary");return a.json()},h=()=>{const c=s.c(2);if(c[0]!=="dacc9948ba1ccf90364f0756857d0c28acd0b8cdfe06424bc6ae45443d07a0e9"){for(let a=0;a<2;a+=1)c[a]=Symbol.for("react.memo_cache_sentinel");c[0]="dacc9948ba1ccf90364f0756857d0c28acd0b8cdfe06424bc6ae45443d07a0e9"}let e;return c[1]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["vocabularies"],queryFn:l},c[1]=e):e=c[1],f(e)},p=c=>{const e=s.c(8);if(e[0]!=="dacc9948ba1ccf90364f0756857d0c28acd0b8cdfe06424bc6ae45443d07a0e9"){for(let n=0;n<8;n+=1)e[n]=Symbol.for("react.memo_cache_sentinel");e[0]="dacc9948ba1ccf90364f0756857d0c28acd0b8cdfe06424bc6ae45443d07a0e9"}let a,t;e[1]!==c?(a=["hierarchy",c],t=()=>u(c),e[1]=c,e[2]=a,e[3]=t):(a=e[2],t=e[3]);const r=!!c;let o;return e[4]!==a||e[5]!==t||e[6]!==r?(o={queryKey:a,queryFn:t,enabled:r},e[4]=a,e[5]=t,e[6]=r,e[7]=o):o=e[7],f(o)},w=()=>{const c=s.c(3);if(c[0]!=="dacc9948ba1ccf90364f0756857d0c28acd0b8cdfe06424bc6ae45443d07a0e9"){for(let t=0;t<3;t+=1)c[t]=Symbol.for("react.memo_cache_sentinel");c[0]="dacc9948ba1ccf90364f0756857d0c28acd0b8cdfe06424bc6ae45443d07a0e9"}const e=i();let a;return c[1]!==e?(a={mutationFn:b,onSuccess:()=>{e.invalidateQueries({queryKey:["vocabularies"]})}},c[1]=e,c[2]=a):a=c[2],d(a)};export{h as a,p as b,w as u};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
function Dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ae={exports:{}},me={exports:{}};me.exports;var st;function It(){return st||(st=1,(function(e,t){/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.development.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
|
+
*/(function(){function s(r,n){Object.defineProperty(l.prototype,r,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1])}})}function i(r){return r===null||typeof r!="object"?null:(r=Ye&&r[Ye]||r["@@iterator"],typeof r=="function"?r:null)}function a(r,n){r=(r=r.constructor)&&(r.displayName||r.name)||"ReactClass";var u=r+"."+n;He[u]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",n,r),He[u]=!0)}function l(r,n,u){this.props=r,this.context=n,this.refs=Ce,this.updater=u||We}function f(){}function c(r,n,u){this.props=r,this.context=n,this.refs=Ce,this.updater=u||We}function v(){}function O(r){return""+r}function p(r){try{O(r);var n=!1}catch{n=!0}if(n){n=console;var u=n.error,h=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return u.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",h),O(r)}}function P(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===At?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case o:return"Fragment";case C:return"Profiler";case y:return"StrictMode";case M:return"Suspense";case $:return"SuspenseList";case Ke:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case de:return"Portal";case ee:return r.displayName||"Context";case k:return(r._context.displayName||"Context")+".Consumer";case le:var n=r.render;return r=r.displayName,r||(r=n.displayName||n.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case te:return n=r.displayName||null,n!==null?n:P(r.type)||"Memo";case re:n=r._payload,r=r._init;try{return P(r(n))}catch{}}return null}function E(r){if(r===o)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===re)return"<...>";try{var n=P(r);return n?"<"+n+">":"<...>"}catch{return"<...>"}}function A(){var r=g.A;return r===null?null:r.getOwner()}function _(){return Error("react-stack-top-frame")}function R(r){if(be.call(r,"key")){var n=Object.getOwnPropertyDescriptor(r,"key").get;if(n&&n.isReactWarning)return!1}return r.key!==void 0}function j(r,n){function u(){$e||($e=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}u.isReactWarning=!0,Object.defineProperty(r,"key",{get:u,configurable:!0})}function D(){var r=P(this.type);return Xe[r]||(Xe[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),r=this.props.ref,r!==void 0?r:null}function Q(r,n,u,h,d,b){var m=u.ref;return r={$$typeof:ce,type:r,key:n,props:u,_owner:h},(m!==void 0?m:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:D}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:d}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:b}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function K(r,n){return n=Q(r.type,n,r.props,r._owner,r._debugStack,r._debugTask),r._store&&(n._store.validated=r._store.validated),n}function Y(r){q(r)?r._store&&(r._store.validated=1):typeof r=="object"&&r!==null&&r.$$typeof===re&&(r._payload.status==="fulfilled"?q(r._payload.value)&&r._payload.value._store&&(r._payload.value._store.validated=1):r._store&&(r._store.validated=1))}function q(r){return typeof r=="object"&&r!==null&&r.$$typeof===ce}function Z(r){var n={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(u){return n[u]})}function x(r,n){return typeof r=="object"&&r!==null&&r.key!=null?(p(r.key),Z(""+r.key)):n.toString(36)}function N(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(v,v):(r.status="pending",r.then(function(n){r.status==="pending"&&(r.status="fulfilled",r.value=n)},function(n){r.status==="pending"&&(r.status="rejected",r.reason=n)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function U(r,n,u,h,d){var b=typeof r;(b==="undefined"||b==="boolean")&&(r=null);var m=!1;if(r===null)m=!0;else switch(b){case"bigint":case"string":case"number":m=!0;break;case"object":switch(r.$$typeof){case ce:case de:m=!0;break;case re:return m=r._init,U(m(r._payload),n,u,h,d)}}if(m){m=r,d=d(m);var T=h===""?"."+x(m,0):h;return Ge(d)?(u="",T!=null&&(u=T.replace(Je,"$&/")+"/"),U(d,n,u,"",function(V){return V})):d!=null&&(q(d)&&(d.key!=null&&(m&&m.key===d.key||p(d.key)),u=K(d,u+(d.key==null||m&&m.key===d.key?"":(""+d.key).replace(Je,"$&/")+"/")+T),h!==""&&m!=null&&q(m)&&m.key==null&&m._store&&!m._store.validated&&(u._store.validated=2),d=u),n.push(d)),1}if(m=0,T=h===""?".":h+":",Ge(r))for(var w=0;w<r.length;w++)h=r[w],b=T+x(h,w),m+=U(h,n,u,b,d);else if(w=i(r),typeof w=="function")for(w===r.entries&&(Ze||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ze=!0),r=w.call(r),w=0;!(h=r.next()).done;)h=h.value,b=T+x(h,w++),m+=U(h,n,u,b,d);else if(b==="object"){if(typeof r.then=="function")return U(N(r),n,u,h,d);throw n=String(r),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return m}function z(r,n,u){if(r==null)return r;var h=[],d=0;return U(r,h,"","",function(b){return n.call(u,b,d++)}),h}function ie(r){if(r._status===-1){var n=r._ioInfo;n!=null&&(n.start=n.end=performance.now()),n=r._result;var u=n();if(u.then(function(d){if(r._status===0||r._status===-1){r._status=1,r._result=d;var b=r._ioInfo;b!=null&&(b.end=performance.now()),u.status===void 0&&(u.status="fulfilled",u.value=d)}},function(d){if(r._status===0||r._status===-1){r._status=2,r._result=d;var b=r._ioInfo;b!=null&&(b.end=performance.now()),u.status===void 0&&(u.status="rejected",u.reason=d)}}),n=r._ioInfo,n!=null){n.value=u;var h=u.displayName;typeof h=="string"&&(n.name=h)}r._status===-1&&(r._status=0,r._result=u)}if(r._status===1)return n=r._result,n===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
10
|
+
|
|
11
|
+
Your code should look like:
|
|
12
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
13
|
+
|
|
14
|
+
Did you accidentally put curly braces around the import?`,n),"default"in n||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
15
|
+
|
|
16
|
+
Your code should look like:
|
|
17
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,n),n.default;throw r._result}function S(){var r=g.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
18
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
19
|
+
2. You might be breaking the Rules of Hooks
|
|
20
|
+
3. You might have more than one copy of React in the same app
|
|
21
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r}function G(){g.asyncTransitions--}function ae(r){if(we===null)try{var n=("require"+Math.random()).slice(0,7);we=(e&&e[n]).call(e,"timers").setImmediate}catch{we=function(h){tt===!1&&(tt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var d=new MessageChannel;d.port1.onmessage=h,d.port2.postMessage(void 0)}}return we(r)}function B(r){return 1<r.length&&typeof AggregateError=="function"?new AggregateError(r):r[0]}function J(r,n){n!==Ee-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ee=n}function oe(r,n,u){var h=g.actQueue;if(h!==null)if(h.length!==0)try{ue(h),ae(function(){return oe(r,n,u)});return}catch(d){g.thrownErrors.push(d)}else g.actQueue=null;0<g.thrownErrors.length?(h=B(g.thrownErrors),g.thrownErrors.length=0,u(h)):n(r)}function ue(r){if(!Pe){Pe=!0;var n=0;try{for(;n<r.length;n++){var u=r[n];do{g.didUsePromise=!1;var h=u(!1);if(h!==null){if(g.didUsePromise){r[n]=u,r.splice(0,n);return}u=h}else break}while(!0)}r.length=0}catch(d){r.splice(0,n+1),g.thrownErrors.push(d)}finally{Pe=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ce=Symbol.for("react.transitional.element"),de=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),Ke=Symbol.for("react.activity"),Ye=Symbol.iterator,He={},We={isMounted:function(){return!1},enqueueForceUpdate:function(r){a(r,"forceUpdate")},enqueueReplaceState:function(r){a(r,"replaceState")},enqueueSetState:function(r){a(r,"setState")}},ze=Object.assign,Ce={};Object.freeze(Ce),l.prototype.isReactComponent={},l.prototype.setState=function(r,n){if(typeof r!="object"&&typeof r!="function"&&r!=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,r,n,"setState")},l.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};var H={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(pe in H)H.hasOwnProperty(pe)&&s(pe,H[pe]);f.prototype=l.prototype,H=c.prototype=new f,H.constructor=c,ze(H,l.prototype),H.isPureReactComponent=!0;var Ge=Array.isArray,At=Symbol.for("react.client.reference"),g={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},be=Object.prototype.hasOwnProperty,Be=console.createTask?console.createTask:function(){return null};H={react_stack_bottom_frame:function(r){return r()}};var $e,Ve,Xe={},kt=H.react_stack_bottom_frame.bind(H,_)(),Mt=Be(E(_)),Ze=!1,Je=/\/+/g,et=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},tt=!1,we=null,Ee=0,Oe=!1,Pe=!1,rt=typeof queueMicrotask=="function"?function(r){queueMicrotask(function(){return queueMicrotask(r)})}:ae;H=Object.freeze({__proto__:null,c:function(r){return S().useMemoCache(r)}});var pe={map:z,forEach:function(r,n,u){z(r,function(){n.apply(this,arguments)},u)},count:function(r){var n=0;return z(r,function(){n++}),n},toArray:function(r){return z(r,function(n){return n})||[]},only:function(r){if(!q(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};t.Activity=Ke,t.Children=pe,t.Component=l,t.Fragment=o,t.Profiler=C,t.PureComponent=c,t.StrictMode=y,t.Suspense=M,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=g,t.__COMPILER_RUNTIME=H,t.act=function(r){var n=g.actQueue,u=Ee;Ee++;var h=g.actQueue=n!==null?n:[],d=!1;try{var b=r()}catch(w){g.thrownErrors.push(w)}if(0<g.thrownErrors.length)throw J(n,u),r=B(g.thrownErrors),g.thrownErrors.length=0,r;if(b!==null&&typeof b=="object"&&typeof b.then=="function"){var m=b;return rt(function(){d||Oe||(Oe=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(w,V){d=!0,m.then(function(he){if(J(n,u),u===0){try{ue(h),ae(function(){return oe(he,w,V)})}catch(Ft){g.thrownErrors.push(Ft)}if(0<g.thrownErrors.length){var jt=B(g.thrownErrors);g.thrownErrors.length=0,V(jt)}}else w(he)},function(he){J(n,u),0<g.thrownErrors.length&&(he=B(g.thrownErrors),g.thrownErrors.length=0),V(he)})}}}var T=b;if(J(n,u),u===0&&(ue(h),h.length!==0&&rt(function(){d||Oe||(Oe=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),g.actQueue=null),0<g.thrownErrors.length)throw r=B(g.thrownErrors),g.thrownErrors.length=0,r;return{then:function(w,V){d=!0,u===0?(g.actQueue=h,ae(function(){return oe(T,w,V)})):w(T)}}},t.cache=function(r){return function(){return r.apply(null,arguments)}},t.cacheSignal=function(){return null},t.captureOwnerStack=function(){var r=g.getCurrentStack;return r===null?null:r()},t.cloneElement=function(r,n,u){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var h=ze({},r.props),d=r.key,b=r._owner;if(n!=null){var m;e:{if(be.call(n,"ref")&&(m=Object.getOwnPropertyDescriptor(n,"ref").get)&&m.isReactWarning){m=!1;break e}m=n.ref!==void 0}m&&(b=A()),R(n)&&(p(n.key),d=""+n.key);for(T in n)!be.call(n,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&n.ref===void 0||(h[T]=n[T])}var T=arguments.length-2;if(T===1)h.children=u;else if(1<T){m=Array(T);for(var w=0;w<T;w++)m[w]=arguments[w+2];h.children=m}for(h=Q(r.type,d,h,b,r._debugStack,r._debugTask),d=2;d<arguments.length;d++)Y(arguments[d]);return h},t.createContext=function(r){return r={$$typeof:ee,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:k,_context:r},r._currentRenderer=null,r._currentRenderer2=null,r},t.createElement=function(r,n,u){for(var h=2;h<arguments.length;h++)Y(arguments[h]);h={};var d=null;if(n!=null)for(w in Ve||!("__self"in n)||"key"in n||(Ve=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),R(n)&&(p(n.key),d=""+n.key),n)be.call(n,w)&&w!=="key"&&w!=="__self"&&w!=="__source"&&(h[w]=n[w]);var b=arguments.length-2;if(b===1)h.children=u;else if(1<b){for(var m=Array(b),T=0;T<b;T++)m[T]=arguments[T+2];Object.freeze&&Object.freeze(m),h.children=m}if(r&&r.defaultProps)for(w in b=r.defaultProps,b)h[w]===void 0&&(h[w]=b[w]);d&&j(h,typeof r=="function"?r.displayName||r.name||"Unknown":r);var w=1e4>g.recentlyCreatedOwnerStacks++;return Q(r,d,h,A(),w?Error("react-stack-top-frame"):kt,w?Be(E(r)):Mt)},t.createRef=function(){var r={current:null};return Object.seal(r),r},t.forwardRef=function(r){r!=null&&r.$$typeof===te?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof r!="function"?console.error("forwardRef requires a render function but was given %s.",r===null?"null":typeof r):r.length!==0&&r.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",r.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),r!=null&&r.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var n={$$typeof:le,render:r},u;return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(h){u=h,r.name||r.displayName||(Object.defineProperty(r,"name",{value:h}),r.displayName=h)}}),n},t.isValidElement=q,t.lazy=function(r){r={_status:-1,_result:r};var n={$$typeof:re,_payload:r,_init:ie},u={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return r._ioInfo=u,n._debugInfo=[{awaited:u}],n},t.memo=function(r,n){r==null&&console.error("memo: The first argument must be a component. Instead received: %s",r===null?"null":typeof r),n={$$typeof:te,type:r,compare:n===void 0?null:n};var u;return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(h){u=h,r.name||r.displayName||(Object.defineProperty(r,"name",{value:h}),r.displayName=h)}}),n},t.startTransition=function(r){var n=g.T,u={};u._updatedFibers=new Set,g.T=u;try{var h=r(),d=g.S;d!==null&&d(u,h),typeof h=="object"&&h!==null&&typeof h.then=="function"&&(g.asyncTransitions++,h.then(G,G),h.then(v,et))}catch(b){et(b)}finally{n===null&&u._updatedFibers&&(r=u._updatedFibers.size,u._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),n!==null&&u.types!==null&&(n.types!==null&&n.types!==u.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),n.types=u.types),g.T=n}},t.unstable_useCacheRefresh=function(){return S().useCacheRefresh()},t.use=function(r){return S().use(r)},t.useActionState=function(r,n,u){return S().useActionState(r,n,u)},t.useCallback=function(r,n){return S().useCallback(r,n)},t.useContext=function(r){var n=S();return r.$$typeof===k&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),n.useContext(r)},t.useDebugValue=function(r,n){return S().useDebugValue(r,n)},t.useDeferredValue=function(r,n){return S().useDeferredValue(r,n)},t.useEffect=function(r,n){return r==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),S().useEffect(r,n)},t.useEffectEvent=function(r){return S().useEffectEvent(r)},t.useId=function(){return S().useId()},t.useImperativeHandle=function(r,n,u){return S().useImperativeHandle(r,n,u)},t.useInsertionEffect=function(r,n){return r==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),S().useInsertionEffect(r,n)},t.useLayoutEffect=function(r,n){return r==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),S().useLayoutEffect(r,n)},t.useMemo=function(r,n){return S().useMemo(r,n)},t.useOptimistic=function(r,n){return S().useOptimistic(r,n)},t.useReducer=function(r,n,u){return S().useReducer(r,n,u)},t.useRef=function(r){return S().useRef(r)},t.useState=function(r){return S().useState(r)},t.useSyncExternalStore=function(r,n,u){return S().useSyncExternalStore(r,n,u)},t.useTransition=function(){return S().useTransition()},t.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(me,me.exports)),me.exports}var nt;function gt(){return nt||(nt=1,Ae.exports=It()),Ae.exports}var I=gt();const wr=Dt(I);var fe=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qt=class extends fe{#e;#t;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ne=new Qt,qt={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Nt=class{#e=qt;#t=!1;setTimeoutProvider(e){this.#t&&e!==this.#e&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#e,provider:e}),this.#e=e,this.#t=!1}setTimeout(e,t){return this.#t=!0,this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#t=!0,this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},se=new Nt;function Ut(e){setTimeout(e,0)}var Lt=typeof window>"u"||"Deno"in globalThis;function L(){}function xt(e,t){return typeof e=="function"?e(t):e}function Me(e){return typeof e=="number"&&e>=0&&e!==1/0}function bt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function X(e,t){return typeof e=="function"?e(t):e}function W(e,t){return typeof e=="function"?e(t):e}function it(e,t){const{type:s="all",exact:i,fetchStatus:a,predicate:l,queryKey:f,stale:c}=e;if(f){if(i){if(t.queryHash!==Ue(f,t.options))return!1}else if(!ve(t.queryKey,f))return!1}if(s!=="all"){const v=t.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||l&&!l(t))}function at(e,t){const{exact:s,status:i,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(s){if(ne(t.options.mutationKey)!==ne(l))return!1}else if(!ve(t.options.mutationKey,l))return!1}return!(i&&t.state.status!==i||a&&!a(t))}function Ue(e,t){return(t?.queryKeyHashFn||ne)(e)}function ne(e){return JSON.stringify(e,(t,s)=>Fe(s)?Object.keys(s).sort().reduce((i,a)=>(i[a]=s[a],i),{}):s)}function ve(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(s=>ve(e[s],t[s])):!1}var Kt=Object.prototype.hasOwnProperty;function je(e,t,s=0){if(e===t)return e;if(s>500)return t;const i=ot(e)&&ot(t);if(!i&&!(Fe(e)&&Fe(t)))return t;const l=(i?e:Object.keys(e)).length,f=i?t:Object.keys(t),c=f.length,v=i?new Array(c):{};let O=0;for(let p=0;p<c;p++){const P=i?p:f[p],E=e[P],A=t[P];if(E===A){v[P]=E,(i?p<l:Kt.call(e,P))&&O++;continue}if(E===null||A===null||typeof E!="object"||typeof A!="object"){v[P]=A;continue}const _=je(E,A,s+1);v[P]=_,_===E&&O++}return l===c&&O===l?e:v}function Se(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function ot(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fe(e){if(!ut(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!ut(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ut(e){return Object.prototype.toString.call(e)==="[object Object]"}function Yt(e){return new Promise(t=>{se.setTimeout(t,e)})}function De(e,t,s){if(typeof s.structuralSharing=="function")return s.structuralSharing(e,t);if(s.structuralSharing!==!1){try{return je(e,t)}catch(i){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${s.queryHash}]: ${i}`),i}return je(e,t)}return t}function Ht(e,t,s=0){const i=[...e,t];return s&&i.length>s?i.slice(1):i}function Wt(e,t,s=0){const i=[t,...e];return s&&i.length>s?i.slice(0,-1):i}var _e=Symbol();function wt(e,t){return e.queryFn===_e&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===_e?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Le(e,t){return typeof e=="function"?e(...t):!!e}function zt(e,t,s){let i=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),i||(i=!0,a.aborted?s():a.addEventListener("abort",s,{once:!0})),a)}),e}var ge=(()=>{let e=()=>Lt;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ie(){let e,t;const s=new Promise((a,l)=>{e=a,t=l});s.status="pending",s.catch(()=>{});function i(a){Object.assign(s,a),delete s.resolve,delete s.reject}return s.resolve=a=>{i({status:"fulfilled",value:a}),e(a)},s.reject=a=>{i({status:"rejected",reason:a}),t(a)},s}var Gt=Ut;function Bt(){let e=[],t=0,s=c=>{c()},i=c=>{c()},a=Gt;const l=c=>{t?e.push(c):a(()=>{s(c)})},f=()=>{const c=e;e=[],c.length&&a(()=>{i(()=>{c.forEach(v=>{s(v)})})})};return{batch:c=>{let v;t++;try{v=c()}finally{t--,t||f()}return v},batchCalls:c=>(...v)=>{l(()=>{c(...v)})},schedule:l,setNotifyFunction:c=>{s=c},setBatchNotifyFunction:c=>{i=c},setScheduler:c=>{a=c}}}var F=Bt(),$t=class extends fe{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#e}},Te=new $t;function Vt(e){return Math.min(1e3*2**e,3e4)}function Et(e){return(e??"online")==="online"?Te.isOnline():!0}var Qe=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Ot(e){let t=!1,s=0,i;const a=Ie(),l=()=>a.status!=="pending",f=R=>{if(!l()){const j=new Qe(R);E(j),e.onCancel?.(j)}},c=()=>{t=!0},v=()=>{t=!1},O=()=>Ne.isFocused()&&(e.networkMode==="always"||Te.isOnline())&&e.canRun(),p=()=>Et(e.networkMode)&&e.canRun(),P=R=>{l()||(i?.(),a.resolve(R))},E=R=>{l()||(i?.(),a.reject(R))},A=()=>new Promise(R=>{i=j=>{(l()||O())&&R(j)},e.onPause?.()}).then(()=>{i=void 0,l()||e.onContinue?.()}),_=()=>{if(l())return;let R;const j=s===0?e.initialPromise:void 0;try{R=j??e.fn()}catch(D){R=Promise.reject(D)}Promise.resolve(R).then(P).catch(D=>{if(l())return;const Q=e.retry??(ge.isServer()?0:3),K=e.retryDelay??Vt,Y=typeof K=="function"?K(s,D):K,q=Q===!0||typeof Q=="number"&&s<Q||typeof Q=="function"&&Q(s,D);if(t||!q){E(D);return}s++,e.onFail?.(s,D),Yt(Y).then(()=>O()?void 0:A()).then(()=>{t?E(D):_()})})};return{promise:a,status:()=>a.status,cancel:f,continue:()=>(i?.(),a),cancelRetry:c,continueRetry:v,canStart:p,start:()=>(p()?_():A().then(_),a)}}var Rt=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Me(this.gcTime)&&(this.#e=se.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ge.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(se.clearTimeout(this.#e),this.#e=void 0)}},Xt=class extends Rt{#e;#t;#r;#n;#s;#i;#a;constructor(e){super(),this.#a=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#r=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=lt(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=lt(this.options);t.data!==void 0&&(this.setState(ct(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const s=De(this.state.data,e,this.options);return this.#u({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e,t){this.#u({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(L).catch(L):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>W(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_e||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>X(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!bt(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#a||this.#o()?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#o(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(v=>v.options.queryFn);c&&this.setOptions(c.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const s=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#a=!0,s.signal)})},a=()=>{const c=wt(this.options,t),O=(()=>{const p={client:this.#n,queryKey:this.queryKey,meta:this.meta};return i(p),p})();return this.#a=!1,this.options.persister?this.options.persister(c,O,this):c(O)},f=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:a};return i(c),c})();this.options.behavior?.onFetch(f,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#u({type:"fetch",meta:f.fetchOptions?.meta}),this.#s=Ot({initialPromise:t?.initialPromise,fn:f.fetchFn,onCancel:c=>{c instanceof Qe&&c.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(c,v)=>{this.#u({type:"failed",failureCount:c,error:v})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0});try{const c=await this.#s.start();if(c===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#r.config.onSuccess?.(c,this),this.#r.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof Qe){if(c.silent)return this.#s.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#u({type:"error",error:c}),this.#r.config.onError?.(c,this),this.#r.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#u(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...St(s.data,this.options),fetchMeta:e.meta??null};case"success":const i={...s,...ct(e.data,e.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const a=e.error;return{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),F.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function St(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Et(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ct(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function lt(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,i=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Zt=class extends fe{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#a=Ie(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#r=void 0;#n=void 0;#s;#i;#a;#o;#u;#d;#p;#l;#h;#c;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),ht(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qe(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qe(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#E(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof W(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#t.setOptions(this.options),t._defaulted&&!Se(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&ft(this.#t,s,this.options,t)&&this.#f(),this.updateResult(),i&&(this.#t!==s||W(this.options.enabled,this.#t)!==W(t.enabled,this.#t)||X(this.options.staleTime,this.#t)!==X(t.staleTime,this.#t))&&this.#m();const a=this.#v();i&&(this.#t!==s||W(this.options.enabled,this.#t)!==W(t.enabled,this.#t)||a!==this.#c)&&this.#g(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),s=this.createResult(t,e);return er(this,s)&&(this.#n=s,this.#i=this.options,this.#s=this.#t.state),s}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(s,i)=>(this.trackProp(i),t?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,i))})}trackProp(e){this.#y.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),s=this.#e.getQueryCache().build(this.#e,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(e){this.#O();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(L)),t}#m(){this.#w();const e=X(this.options.staleTime,this.#t);if(ge.isServer()||this.#n.isStale||!Me(e))return;const s=bt(this.#n.dataUpdatedAt,e)+1;this.#l=se.setTimeout(()=>{this.#n.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(e){this.#E(),this.#c=e,!(ge.isServer()||W(this.options.enabled,this.#t)===!1||!Me(this.#c)||this.#c===0)&&(this.#h=se.setInterval(()=>{(this.options.refetchIntervalInBackground||Ne.isFocused())&&this.#f()},this.#c))}#b(){this.#m(),this.#g(this.#v())}#w(){this.#l!==void 0&&(se.clearTimeout(this.#l),this.#l=void 0)}#E(){this.#h!==void 0&&(se.clearInterval(this.#h),this.#h=void 0)}createResult(e,t){const s=this.#t,i=this.options,a=this.#n,l=this.#s,f=this.#i,v=e!==s?e.state:this.#r,{state:O}=e;let p={...O},P=!1,E;if(t._optimisticResults){const N=this.hasListeners(),U=!N&&ht(e,t),z=N&&ft(e,s,t,i);(U||z)&&(p={...p,...St(O.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:A,errorUpdatedAt:_,status:R}=p;E=p.data;let j=!1;if(t.placeholderData!==void 0&&E===void 0&&R==="pending"){let N;a?.isPlaceholderData&&t.placeholderData===f?.placeholderData?(N=a.data,j=!0):N=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,N!==void 0&&(R="success",E=De(a?.data,N,t),P=!0)}if(t.select&&E!==void 0&&!j)if(a&&E===l?.data&&t.select===this.#u)E=this.#d;else try{this.#u=t.select,E=t.select(E),E=De(a?.data,E,t),this.#d=E,this.#o=null}catch(N){this.#o=N}this.#o&&(A=this.#o,E=this.#d,_=Date.now(),R="error");const D=p.fetchStatus==="fetching",Q=R==="pending",K=R==="error",Y=Q&&D,q=E!==void 0,x={status:R,fetchStatus:p.fetchStatus,isPending:Q,isSuccess:R==="success",isError:K,isInitialLoading:Y,isLoading:Y,data:E,dataUpdatedAt:p.dataUpdatedAt,error:A,errorUpdatedAt:_,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:p.dataUpdateCount>v.dataUpdateCount||p.errorUpdateCount>v.errorUpdateCount,isFetching:D,isRefetching:D&&!Q,isLoadingError:K&&!q,isPaused:p.fetchStatus==="paused",isPlaceholderData:P,isRefetchError:K&&q,isStale:xe(e,t),refetch:this.refetch,promise:this.#a,isEnabled:W(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const N=x.data!==void 0,U=x.status==="error"&&!N,z=G=>{U?G.reject(x.error):N&&G.resolve(x.data)},ie=()=>{const G=this.#a=x.promise=Ie();z(G)},S=this.#a;switch(S.status){case"pending":e.queryHash===s.queryHash&&z(S);break;case"fulfilled":(U||x.data!==S.value)&&ie();break;case"rejected":(!U||x.error!==S.reason)&&ie();break}}return x}updateResult(){const e=this.#n,t=this.createResult(this.#t,this.options);if(this.#s=this.#t.state,this.#i=this.options,this.#s.data!==void 0&&(this.#p=this.#t),Se(t,e))return;this.#n=t;const s=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!this.#y.size)return!0;const l=new Set(a??this.#y);return this.options.throwOnError&&l.add("error"),Object.keys(this.#n).some(f=>{const c=f;return this.#n[c]!==e[c]&&l.has(c)})};this.#R({listeners:s()})}#O(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#R(e){F.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Jt(e,t){return W(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ht(e,t){return Jt(e,t)||e.state.data!==void 0&&qe(e,t,t.refetchOnMount)}function qe(e,t,s){if(W(t.enabled,e)!==!1&&X(t.staleTime,e)!=="static"){const i=typeof s=="function"?s(e):s;return i==="always"||i!==!1&&xe(e,t)}return!1}function ft(e,t,s,i){return(e!==t||W(i.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&xe(e,s)}function xe(e,t){return W(t.enabled,e)!==!1&&e.isStaleByTime(X(t.staleTime,e))}function er(e,t){return!Se(e.getCurrentResult(),t)}function dt(e){return{onFetch:(t,s)=>{const i=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],f=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},v=0;const O=async()=>{let p=!1;const P=_=>{zt(_,()=>t.signal,()=>p=!0)},E=wt(t.options,t.fetchOptions),A=async(_,R,j)=>{if(p)return Promise.reject();if(R==null&&_.pages.length)return Promise.resolve(_);const Q=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:R,direction:j?"backward":"forward",meta:t.options.meta};return P(Z),Z})(),K=await E(Q),{maxPages:Y}=t.options,q=j?Wt:Ht;return{pages:q(_.pages,K,Y),pageParams:q(_.pageParams,R,Y)}};if(a&&l.length){const _=a==="backward",R=_?tr:pt,j={pages:l,pageParams:f},D=R(i,j);c=await A(j,D,_)}else{const _=e??l.length;do{const R=v===0?f[0]??i.initialPageParam:pt(i,c);if(v>0&&R==null)break;c=await A(c,R),v++}while(v<_)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(O,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=O}}}function pt(e,{pages:t,pageParams:s}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,s[i],s):void 0}function tr(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}var rr=class extends Rt{#e;#t;#r;#n;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||_t(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=Ot({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(l,f)=>{this.#s({type:"failed",failureCount:l,error:f})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const i=this.state.status==="pending",a=!this.#n.canStart();try{if(i)t();else{this.#s({type:"pending",variables:e,isPaused:a}),this.#r.config.onMutate&&await this.#r.config.onMutate(e,this,s);const f=await this.options.onMutate?.(e,s);f!==this.state.context&&this.#s({type:"pending",context:f,variables:e,isPaused:a})}const l=await this.#n.start();return await this.#r.config.onSuccess?.(l,e,this.state.context,this,s),await this.options.onSuccess?.(l,e,this.state.context,s),await this.#r.config.onSettled?.(l,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(l,null,e,this.state.context,s),this.#s({type:"success",data:l}),l}catch(l){try{await this.#r.config.onError?.(l,e,this.state.context,this,s)}catch(f){Promise.reject(f)}try{await this.options.onError?.(l,e,this.state.context,s)}catch(f){Promise.reject(f)}try{await this.#r.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,s)}catch(f){Promise.reject(f)}try{await this.options.onSettled?.(void 0,l,e,this.state.context,s)}catch(f){Promise.reject(f)}throw this.#s({type:"error",error:l}),l}finally{this.#r.runNext(this)}}#s(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),F.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function _t(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var sr=class extends fe{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(e,t,s){const i=new rr({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:s});return this.add(i),i}add(e){this.#e.add(e);const t=Re(e);if(typeof t=="string"){const s=this.#t.get(t);s?s.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Re(e);if(typeof t=="string"){const s=this.#t.get(t);if(s)if(s.length>1){const i=s.indexOf(e);i!==-1&&s.splice(i,1)}else s[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Re(e);if(typeof t=="string"){const i=this.#t.get(t)?.find(a=>a.state.status==="pending");return!i||i===e}else return!0}runNext(e){const t=Re(e);return typeof t=="string"?this.#t.get(t)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){F.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(s=>at(t,s))}findAll(e={}){return this.getAll().filter(t=>at(e,t))}notify(e){F.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return F.batch(()=>Promise.all(e.map(t=>t.continue().catch(L))))}};function Re(e){return e.options.scope?.id}var nr=class extends fe{#e;#t=void 0;#r;#n;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),Se(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&ne(t.mutationKey)!==ne(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#s(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#s(),this.#i()}mutate(e,t){return this.#n=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#s(){const e=this.#r?.state??_t();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#i(e){F.batch(()=>{if(this.#n&&this.hasListeners()){const t=this.#t.variables,s=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#n.onSuccess?.(e.data,t,s,i)}catch(a){Promise.reject(a)}try{this.#n.onSettled?.(e.data,null,t,s,i)}catch(a){Promise.reject(a)}}else if(e?.type==="error"){try{this.#n.onError?.(e.error,t,s,i)}catch(a){Promise.reject(a)}try{this.#n.onSettled?.(void 0,e.error,t,s,i)}catch(a){Promise.reject(a)}}}this.listeners.forEach(t=>{t(this.#t)})})}},ir=class extends fe{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,s){const i=t.queryKey,a=t.queryHash??Ue(i,t);let l=this.get(a);return l||(l=new Xt({client:e,queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(i)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){F.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(s=>it(t,s))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(s=>it(e,s)):t}notify(e){F.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){F.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){F.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Er=class{#e;#t;#r;#n;#s;#i;#a;#o;constructor(e={}){this.#e=e.queryCache||new ir,this.#t=e.mutationCache||new sr,this.#r=e.defaultOptions||{},this.#n=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=Ne.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=Te.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),s=this.#e.build(this,t),i=s.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(X(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:s})=>{const i=s.data;return[t,i]})}setQueryData(e,t,s){const i=this.defaultQueryOptions({queryKey:e}),l=this.#e.get(i.queryHash)?.state.data,f=xt(t,l);if(f!==void 0)return this.#e.build(this,i).setData(f,{...s,manual:!0})}setQueriesData(e,t,s){return F.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,s)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;F.batch(()=>{t.findAll(e).forEach(s=>{t.remove(s)})})}resetQueries(e,t){const s=this.#e;return F.batch(()=>(s.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const s={revert:!0,...t},i=F.batch(()=>this.#e.findAll(e).map(a=>a.cancel(s)));return Promise.all(i).then(L).catch(L)}invalidateQueries(e,t={}){return F.batch(()=>(this.#e.findAll(e).forEach(s=>{s.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const s={...t,cancelRefetch:t.cancelRefetch??!0},i=F.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,s);return s.throwOnError||(l=l.catch(L)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(L)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=this.#e.build(this,t);return s.isStaleByTime(X(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(L).catch(L)}fetchInfiniteQuery(e){return e.behavior=dt(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(L).catch(L)}ensureInfiniteQueryData(e){return e.behavior=dt(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Te.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#n.set(ne(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()],s={};return t.forEach(i=>{ve(e,i.queryKey)&&Object.assign(s,i.defaultOptions)}),s}setMutationDefaults(e,t){this.#s.set(ne(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],s={};return t.forEach(i=>{ve(e,i.mutationKey)&&Object.assign(s,i.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ue(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===_e&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},ke={exports:{}},ye={},yt;function ar(){if(yt)return ye;yt=1;/**
|
|
22
|
+
* @license React
|
|
23
|
+
* react-jsx-runtime.development.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/return(function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===ie?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case j:return"Fragment";case Q:return"Profiler";case D:return"StrictMode";case Z:return"Suspense";case x:return"SuspenseList";case z:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case R:return"Portal";case Y:return o.displayName||"Context";case K:return(o._context.displayName||"Context")+".Consumer";case q:var y=o.render;return o=o.displayName,o||(o=y.displayName||y.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case N:return y=o.displayName||null,y!==null?y:e(o.type)||"Memo";case U:y=o._payload,o=o._init;try{return e(o(y))}catch{}}return null}function t(o){return""+o}function s(o){try{t(o);var y=!1}catch{y=!0}if(y){y=console;var C=y.error,k=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return C.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k),t(o)}}function i(o){if(o===j)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===U)return"<...>";try{var y=e(o);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function a(){var o=S.A;return o===null?null:o.getOwner()}function l(){return Error("react-stack-top-frame")}function f(o){if(G.call(o,"key")){var y=Object.getOwnPropertyDescriptor(o,"key").get;if(y&&y.isReactWarning)return!1}return o.key!==void 0}function c(o,y){function C(){J||(J=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}C.isReactWarning=!0,Object.defineProperty(o,"key",{get:C,configurable:!0})}function v(){var o=e(this.type);return oe[o]||(oe[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function O(o,y,C,k,ee,le){var M=C.ref;return o={$$typeof:_,type:o,key:y,props:C,_owner:k},(M!==void 0?M:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:v}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function p(o,y,C,k,ee,le){var M=y.children;if(M!==void 0)if(k)if(ae(M)){for(k=0;k<M.length;k++)P(M[k]);Object.freeze&&Object.freeze(M)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else P(M);if(G.call(y,"key")){M=e(o);var $=Object.keys(y).filter(function(re){return re!=="key"});k=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",de[M+k]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
30
|
+
let props = %s;
|
|
31
|
+
<%s {...props} />
|
|
32
|
+
React keys must be passed directly to JSX without using spread:
|
|
33
|
+
let props = %s;
|
|
34
|
+
<%s key={someKey} {...props} />`,k,M,$,M),de[M+k]=!0)}if(M=null,C!==void 0&&(s(C),M=""+C),f(y)&&(s(y.key),M=""+y.key),"key"in y){C={};for(var te in y)te!=="key"&&(C[te]=y[te])}else C=y;return M&&c(C,typeof o=="function"?o.displayName||o.name||"Unknown":o),O(o,M,C,a(),ee,le)}function P(o){E(o)?o._store&&(o._store.validated=1):typeof o=="object"&&o!==null&&o.$$typeof===U&&(o._payload.status==="fulfilled"?E(o._payload.value)&&o._payload.value._store&&(o._payload.value._store.validated=1):o._store&&(o._store.validated=1))}function E(o){return typeof o=="object"&&o!==null&&o.$$typeof===_}var A=gt(),_=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),ie=Symbol.for("react.client.reference"),S=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,ae=Array.isArray,B=console.createTask?console.createTask:function(){return null};A={react_stack_bottom_frame:function(o){return o()}};var J,oe={},ue=A.react_stack_bottom_frame.bind(A,l)(),ce=B(i(l)),de={};ye.Fragment=j,ye.jsx=function(o,y,C){var k=1e4>S.recentlyCreatedOwnerStacks++;return p(o,y,C,!1,k?Error("react-stack-top-frame"):ue,k?B(i(o)):ce)},ye.jsxs=function(o,y,C){var k=1e4>S.recentlyCreatedOwnerStacks++;return p(o,y,C,!0,k?Error("react-stack-top-frame"):ue,k?B(i(o)):ce)}})(),ye}var mt;function or(){return mt||(mt=1,ke.exports=ar()),ke.exports}var ur=or(),Tt=I.createContext(void 0),Ct=e=>{const t=I.useContext(Tt);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Or=({client:e,children:t})=>(I.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ur.jsx(Tt.Provider,{value:e,children:t})),Pt=I.createContext(!1),cr=()=>I.useContext(Pt);Pt.Provider;function lr(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var hr=I.createContext(lr()),fr=()=>I.useContext(hr),dr=(e,t,s)=>{const i=s?.state.error&&typeof e.throwOnError=="function"?Le(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(t.isReset()||(e.retryOnMount=!1))},pr=e=>{I.useEffect(()=>{e.clearReset()},[e])},yr=({result:e,errorResetBoundary:t,throwOnError:s,query:i,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(a&&e.data===void 0||Le(s,[e.error,i])),mr=e=>{if(e.suspense){const s=a=>a==="static"?a:Math.max(a??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...a)=>s(i(...a)):s(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},vr=(e,t)=>e.isLoading&&e.isFetching&&!t,gr=(e,t)=>e?.suspense&&t.isPending,vt=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function br(e,t,s){if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const i=cr(),a=fr(),l=Ct(),f=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(f);const c=l.getQueryCache().get(f.queryHash);f.queryFn||console.error(`[${f.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),f._optimisticResults=i?"isRestoring":"optimistic",mr(f),dr(f,a,c),pr(a);const v=!l.getQueryCache().get(f.queryHash),[O]=I.useState(()=>new t(l,f)),p=O.getOptimisticResult(f),P=!i&&e.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(E=>{const A=P?O.subscribe(F.batchCalls(E)):L;return O.updateResult(),A},[O,P]),()=>O.getCurrentResult(),()=>O.getCurrentResult()),I.useEffect(()=>{O.setOptions(f)},[f,O]),gr(f,p))throw vt(f,O,a);if(yr({result:p,errorResetBoundary:a,throwOnError:f.throwOnError,query:c,suspense:f.suspense}))throw p.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(f,p),f.experimental_prefetchInRender&&!ge.isServer()&&vr(p,i)&&(v?vt(f,O,a):c?.promise)?.catch(L).finally(()=>{O.updateResult()}),f.notifyOnChangeProps?p:O.trackResult(p)}function Rr(e,t){return br(e,Zt)}function Sr(e,t){const s=Ct(),[i]=I.useState(()=>new nr(s,e));I.useEffect(()=>{i.setOptions(e)},[i,e]);const a=I.useSyncExternalStore(I.useCallback(f=>i.subscribe(F.batchCalls(f)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=I.useCallback((f,c)=>{i.mutate(f,c).catch(L)},[i]);if(a.error&&Le(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}export{Er as Q,wr as R,I as a,Or as b,Rr as c,Sr as d,Dt as g,ur as j,gt as r,Ct as u};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as e}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const t=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],c=e("refresh-cw",t);export{c as R};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as d}from"./index-DHWWI-uw.js";import{a as i}from"./query-vendor-BqVbYexz.js";let t=[];const r=new Set,l=500;function f(){r.forEach(e=>e(t))}function p(e,o,c){t=[{id:`${Date.now()}-${Math.random().toString(36).slice(2,7)}`,op:e,timestamp:new Date,summary:o,detail:c},...t].slice(0,l),f()}function _(){t=[],f()}function y(){const e=d.c(3);if(e[0]!=="4766410e4a8ec4e44eb61766c75ed62c2aa2dcad007bd72ce0d95e57f0d29f9a"){for(let s=0;s<3;s+=1)e[s]=Symbol.for("react.memo_cache_sentinel");e[0]="4766410e4a8ec4e44eb61766c75ed62c2aa2dcad007bd72ce0d95e57f0d29f9a"}const[o,c]=i.useState(t);let n,a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>(c(t),r.add(c),()=>{r.delete(c)}),a=[],e[1]=n,e[2]=a):(n=e[1],a=e[2]),i.useEffect(n,a),o}export{_ as c,p as l,y as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}
|