libre-webui 0.14.0 → 0.14.1

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.
Files changed (20) hide show
  1. package/backend/package.json +1 -1
  2. package/frontend/dist/assets/{index-Cp8PdlFo.js → index-CJtBJBKm.js} +3 -3
  3. package/frontend/dist/index.html +2 -2
  4. package/frontend/dist/js/{ArtifactContainer-Blx2e3aj.js → ArtifactContainer-KLW7Y93B.js} +1 -1
  5. package/frontend/dist/js/{ArtifactDemoPage-ChIM17kG.js → ArtifactDemoPage-C1nixmDD.js} +1 -1
  6. package/frontend/dist/js/{ArtifactSlideOutPanel-BypEW58A.js → ArtifactSlideOutPanel-D1zbtCz7.js} +1 -1
  7. package/frontend/dist/js/{ChatPage-gNqQdhRe.js → ChatPage-CVMDKGGt.js} +1 -1
  8. package/frontend/dist/js/{FirstTimeSetup-DS5-kf4m.js → FirstTimeSetup-CracKPdJ.js} +1 -1
  9. package/frontend/dist/js/{GalleryPage-vdXO-QSc.js → GalleryPage-K04Gja8a.js} +1 -1
  10. package/frontend/dist/js/{LibreClawPage-CA7LgGj7.js → LibreClawPage--dGXnz0E.js} +1 -1
  11. package/frontend/dist/js/{ModelsPage-Bxig1vZN.js → ModelsPage-D4cRN4xT.js} +1 -1
  12. package/frontend/dist/js/{PersonasPage-BMm3MuVw.js → PersonasPage-DX-wAO88.js} +1 -1
  13. package/frontend/dist/js/{RichMessageContent-COEmecOd.js → RichMessageContent-Bd8RKJ_L.js} +1 -1
  14. package/frontend/dist/js/{SettingsModal-DvFcpdVU.js → SettingsModal-DmY_Vl5p.js} +1 -1
  15. package/frontend/dist/js/{UserManagementPage-C6ZvMO_V.js → UserManagementPage-D3J6HlOk.js} +1 -1
  16. package/frontend/dist/js/{api-BNnUZaFX.js → api-Bi8_fX7j.js} +2 -2
  17. package/frontend/dist/js/{useBaseQuery-EKJwyGqK.js → useBaseQuery-DqEqZpjx.js} +1 -1
  18. package/frontend/dist/js/useQuery-nuZnD_6g.js +1 -0
  19. package/package.json +1 -1
  20. package/frontend/dist/js/useQuery-CCuhLVjf.js +0 -1
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{d as t,f as n}from"./markdown-core-fkbHPd-g.js";import{$ as r,G as i,J as a,Q as o,U as s,W as c,X as l,Y as u,Z as d,at as f,ct as p,dt as m,et as h,it as g,lt as _,nt as v,ot as y,rt as b,st as x,tt as S,ut as C}from"../assets/index-Cp8PdlFo.js";var w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,ee=(w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,A=new WeakMap,j=new WeakMap,M=new WeakMap,N=new WeakMap,P=new WeakMap,F=new WeakMap,I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakSet,class extends d{constructor(e,t){super(),i(this,z),m(this,w,void 0),m(this,T,void 0),m(this,E,void 0),m(this,D,void 0),m(this,O,void 0),m(this,k,void 0),m(this,A,void 0),m(this,j,void 0),m(this,M,void 0),m(this,N,void 0),m(this,P,void 0),m(this,F,void 0),m(this,I,void 0),m(this,L,void 0),m(this,R,new Set),this.options=t,p(w,this,e),p(j,this,null),p(A,this,a()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(T,this).addObserver(this),J(_(T,this),this.options)?C(z,this,B).call(this):this.updateResult(),C(z,this,W).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Y(_(T,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Y(_(T,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,C(z,this,G).call(this),C(z,this,K).call(this),_(T,this).removeObserver(this)}setOptions(e){let t=this.options,n=_(T,this);if(this.options=_(w,this).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof v(this.options.enabled,_(T,this))!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);C(z,this,q).call(this),_(T,this).setOptions(this.options),t._defaulted&&!g(this.options,t)&&_(w,this).getQueryCache().notify({type:`observerOptionsUpdated`,query:_(T,this),observer:this});let r=this.hasListeners();r&&X(_(T,this),n,this.options,t)&&C(z,this,B).call(this),this.updateResult(),r&&(_(T,this)!==n||v(this.options.enabled,_(T,this))!==v(t.enabled,_(T,this))||b(this.options.staleTime,_(T,this))!==b(t.staleTime,_(T,this)))&&C(z,this,V).call(this);let i=C(z,this,H).call(this);r&&(_(T,this)!==n||v(this.options.enabled,_(T,this))!==v(t.enabled,_(T,this))||i!==_(L,this))&&C(z,this,U).call(this,i)}getOptimisticResult(e){let t=_(w,this).getQueryCache().build(_(w,this),e),n=this.createResult(t,e);return re(this,n)&&(p(D,this,n),p(k,this,this.options),p(O,this,_(T,this).state)),n}getCurrentResult(){return _(D,this)}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&_(A,this).status===`pending`&&_(A,this).reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){_(R,this).add(e)}getCurrentQuery(){return _(T,this)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=_(w,this).defaultQueryOptions(e),n=_(w,this).getQueryCache().build(_(w,this),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return C(z,this,B).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),_(D,this)))}createResult(e,t){let n=_(T,this),r=this.options,i=_(D,this),o=_(O,this),s=_(k,this),l=e===n?_(E,this):e.state,{state:u}=e,d={...u},f=!1,m;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&J(e,t),o=i&&X(e,n,t,r);(a||o)&&(d={...d,...c(u.data,e.options)}),t._optimisticResults===`isRestoring`&&(d.fetchStatus=`idle`)}let{error:h,errorUpdatedAt:g,status:y}=d;m=d.data;let b=!1;if(t.placeholderData!==void 0&&m===void 0&&y===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=i.data,b=!0):e=typeof t.placeholderData==`function`?t.placeholderData(_(P,this)?.state.data,_(P,this)):t.placeholderData,e!==void 0&&(y=`success`,m=S(i?.data,e,t),f=!0)}if(t.select&&m!==void 0&&!b)if(i&&m===o?.data&&t.select===_(M,this))m=_(N,this);else try{p(M,this,t.select),m=t.select(m),m=S(i?.data,m,t),p(N,this,m),p(j,this,null)}catch(e){p(j,this,e)}_(j,this)&&(h=_(j,this),m=_(N,this),g=Date.now(),y=`error`);let x=d.fetchStatus===`fetching`,C=y===`pending`,w=y===`error`,F=C&&x,I=m!==void 0,L={status:y,fetchStatus:d.fetchStatus,isPending:C,isSuccess:y===`success`,isError:w,isInitialLoading:F,isLoading:F,data:m,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!C,isLoadingError:w&&!I,isPaused:d.fetchStatus===`paused`,isPlaceholderData:f,isRefetchError:w&&I,isStale:Z(e,t),refetch:this.refetch,promise:_(A,this),isEnabled:v(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=L.data!==void 0,r=L.status===`error`&&!t,i=e=>{r?e.reject(L.error):t&&e.resolve(L.data)},o=()=>{i(p(A,this,L.promise=a()))},s=_(A,this);switch(s.status){case`pending`:e.queryHash===n.queryHash&&i(s);break;case`fulfilled`:(r||L.data!==s.value)&&o();break;case`rejected`:(!r||L.error!==s.reason)&&o();break}}return L}updateResult(){let e=_(D,this),t=this.createResult(_(T,this),this.options);p(O,this,_(T,this).state),p(k,this,this.options),_(O,this).data!==void 0&&p(P,this,_(T,this)),!g(t,e)&&(p(D,this,t),C(z,this,te).call(this,{listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!_(R,this).size)return!0;let r=new Set(n??_(R,this));return this.options.throwOnError&&r.add(`error`),Object.keys(_(D,this)).some(t=>{let n=t;return _(D,this)[n]!==e[n]&&r.has(n)})})()}))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&C(z,this,W).call(this)}});function B(e){C(z,this,q).call(this);let t=_(T,this).fetch(this.options,e);return e?.throwOnError||(t=t.catch(h)),t}function V(){C(z,this,G).call(this);let e=b(this.options.staleTime,_(T,this));if(o.isServer()||_(D,this).isStale||!r(e))return;let t=y(_(D,this).dataUpdatedAt,e)+1;p(F,this,x.setTimeout(()=>{_(D,this).isStale||this.updateResult()},t))}function H(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(_(T,this)):this.options.refetchInterval)??!1}function U(e){C(z,this,K).call(this),p(L,this,e),!(o.isServer()||v(this.options.enabled,_(T,this))===!1||!r(_(L,this))||_(L,this)===0)&&p(I,this,x.setInterval(()=>{(this.options.refetchIntervalInBackground||l.isFocused())&&C(z,this,B).call(this)},_(L,this)))}function W(){C(z,this,V).call(this),C(z,this,U).call(this,C(z,this,H).call(this))}function G(){_(F,this)!==void 0&&(x.clearTimeout(_(F,this)),p(F,this,void 0))}function K(){_(I,this)!==void 0&&(x.clearInterval(_(I,this)),p(I,this,void 0))}function q(){let e=_(w,this).getQueryCache().build(_(w,this),this.options);if(e===_(T,this))return;let t=_(T,this);p(T,this,e),p(E,this,e.state),this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function te(e){u.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(_(D,this))}),_(w,this).getQueryCache().notify({query:_(T,this),type:`observerResultsUpdated`})})}function ne(e,t){return v(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&v(t.retryOnMount,e)===!1)}function J(e,t){return ne(e,t)||e.state.data!==void 0&&Y(e,t,t.refetchOnMount)}function Y(e,t,n){if(v(t.enabled,e)!==!1&&b(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Z(e,t)}return!1}function X(e,t,n,r){return(e!==t||v(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Z(e,n)}function Z(e,t){return v(t.enabled,e)!==!1&&e.isStaleByTime(b(t.staleTime,e))}function re(e,t){return!g(e.getCurrentResult(),t)}var Q=e(n(),1);t();function ie(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ae=Q.createContext(ie()),oe=()=>Q.useContext(ae),se=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?f(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ce=e=>{Q.useEffect(()=>{e.clearReset()},[e])},le=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||f(n,[e.error,r])),$=Q.createContext(!1),ue=()=>Q.useContext($);$.Provider;var de=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},fe=(e,t)=>e.isLoading&&e.isFetching&&!t,pe=(e,t)=>e?.suspense&&t.isPending,me=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function he(e,t,n){let r=ue(),i=oe(),a=s(n),c=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let l=a.getQueryCache().get(c.queryHash),d=e.subscribed!==!1;c._optimisticResults=r?`isRestoring`:d?`optimistic`:void 0,de(c),se(c,i,l),ce(i);let f=!a.getQueryCache().get(c.queryHash),[p]=Q.useState(()=>new t(a,c)),m=p.getOptimisticResult(c),g=!r&&d;if(Q.useSyncExternalStore(Q.useCallback(e=>{let t=g?p.subscribe(u.batchCalls(e)):h;return p.updateResult(),t},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),Q.useEffect(()=>{p.setOptions(c)},[c,p]),pe(c,m))throw me(c,p,i);if(le({result:m,errorResetBoundary:i,throwOnError:c.throwOnError,query:l,suspense:c.suspense}))throw m.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(c,m),c.experimental_prefetchInRender&&!o.isServer()&&fe(m,r)&&(f?me(c,p,i):l?.promise)?.catch(h).finally(()=>{p.updateResult()}),c.notifyOnChangeProps?m:p.trackResult(m)}export{ee as n,he as t};
1
+ import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{d as t,f as n}from"./markdown-core-fkbHPd-g.js";import{$ as r,G as i,J as a,Q as o,U as s,W as c,X as l,Y as u,Z as d,at as f,ct as p,dt as m,et as h,it as g,lt as _,nt as v,ot as y,rt as b,st as x,tt as S,ut as C}from"../assets/index-CJtBJBKm.js";var w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,ee=(w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,A=new WeakMap,j=new WeakMap,M=new WeakMap,N=new WeakMap,P=new WeakMap,F=new WeakMap,I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakSet,class extends d{constructor(e,t){super(),i(this,z),m(this,w,void 0),m(this,T,void 0),m(this,E,void 0),m(this,D,void 0),m(this,O,void 0),m(this,k,void 0),m(this,A,void 0),m(this,j,void 0),m(this,M,void 0),m(this,N,void 0),m(this,P,void 0),m(this,F,void 0),m(this,I,void 0),m(this,L,void 0),m(this,R,new Set),this.options=t,p(w,this,e),p(j,this,null),p(A,this,a()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(T,this).addObserver(this),J(_(T,this),this.options)?C(z,this,B).call(this):this.updateResult(),C(z,this,W).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Y(_(T,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Y(_(T,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,C(z,this,G).call(this),C(z,this,K).call(this),_(T,this).removeObserver(this)}setOptions(e){let t=this.options,n=_(T,this);if(this.options=_(w,this).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof v(this.options.enabled,_(T,this))!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);C(z,this,q).call(this),_(T,this).setOptions(this.options),t._defaulted&&!g(this.options,t)&&_(w,this).getQueryCache().notify({type:`observerOptionsUpdated`,query:_(T,this),observer:this});let r=this.hasListeners();r&&X(_(T,this),n,this.options,t)&&C(z,this,B).call(this),this.updateResult(),r&&(_(T,this)!==n||v(this.options.enabled,_(T,this))!==v(t.enabled,_(T,this))||b(this.options.staleTime,_(T,this))!==b(t.staleTime,_(T,this)))&&C(z,this,V).call(this);let i=C(z,this,H).call(this);r&&(_(T,this)!==n||v(this.options.enabled,_(T,this))!==v(t.enabled,_(T,this))||i!==_(L,this))&&C(z,this,U).call(this,i)}getOptimisticResult(e){let t=_(w,this).getQueryCache().build(_(w,this),e),n=this.createResult(t,e);return re(this,n)&&(p(D,this,n),p(k,this,this.options),p(O,this,_(T,this).state)),n}getCurrentResult(){return _(D,this)}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&_(A,this).status===`pending`&&_(A,this).reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){_(R,this).add(e)}getCurrentQuery(){return _(T,this)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=_(w,this).defaultQueryOptions(e),n=_(w,this).getQueryCache().build(_(w,this),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return C(z,this,B).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),_(D,this)))}createResult(e,t){let n=_(T,this),r=this.options,i=_(D,this),o=_(O,this),s=_(k,this),l=e===n?_(E,this):e.state,{state:u}=e,d={...u},f=!1,m;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&J(e,t),o=i&&X(e,n,t,r);(a||o)&&(d={...d,...c(u.data,e.options)}),t._optimisticResults===`isRestoring`&&(d.fetchStatus=`idle`)}let{error:h,errorUpdatedAt:g,status:y}=d;m=d.data;let b=!1;if(t.placeholderData!==void 0&&m===void 0&&y===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=i.data,b=!0):e=typeof t.placeholderData==`function`?t.placeholderData(_(P,this)?.state.data,_(P,this)):t.placeholderData,e!==void 0&&(y=`success`,m=S(i?.data,e,t),f=!0)}if(t.select&&m!==void 0&&!b)if(i&&m===o?.data&&t.select===_(M,this))m=_(N,this);else try{p(M,this,t.select),m=t.select(m),m=S(i?.data,m,t),p(N,this,m),p(j,this,null)}catch(e){p(j,this,e)}_(j,this)&&(h=_(j,this),m=_(N,this),g=Date.now(),y=`error`);let x=d.fetchStatus===`fetching`,C=y===`pending`,w=y===`error`,F=C&&x,I=m!==void 0,L={status:y,fetchStatus:d.fetchStatus,isPending:C,isSuccess:y===`success`,isError:w,isInitialLoading:F,isLoading:F,data:m,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!C,isLoadingError:w&&!I,isPaused:d.fetchStatus===`paused`,isPlaceholderData:f,isRefetchError:w&&I,isStale:Z(e,t),refetch:this.refetch,promise:_(A,this),isEnabled:v(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=L.data!==void 0,r=L.status===`error`&&!t,i=e=>{r?e.reject(L.error):t&&e.resolve(L.data)},o=()=>{i(p(A,this,L.promise=a()))},s=_(A,this);switch(s.status){case`pending`:e.queryHash===n.queryHash&&i(s);break;case`fulfilled`:(r||L.data!==s.value)&&o();break;case`rejected`:(!r||L.error!==s.reason)&&o();break}}return L}updateResult(){let e=_(D,this),t=this.createResult(_(T,this),this.options);p(O,this,_(T,this).state),p(k,this,this.options),_(O,this).data!==void 0&&p(P,this,_(T,this)),!g(t,e)&&(p(D,this,t),C(z,this,te).call(this,{listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!_(R,this).size)return!0;let r=new Set(n??_(R,this));return this.options.throwOnError&&r.add(`error`),Object.keys(_(D,this)).some(t=>{let n=t;return _(D,this)[n]!==e[n]&&r.has(n)})})()}))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&C(z,this,W).call(this)}});function B(e){C(z,this,q).call(this);let t=_(T,this).fetch(this.options,e);return e?.throwOnError||(t=t.catch(h)),t}function V(){C(z,this,G).call(this);let e=b(this.options.staleTime,_(T,this));if(o.isServer()||_(D,this).isStale||!r(e))return;let t=y(_(D,this).dataUpdatedAt,e)+1;p(F,this,x.setTimeout(()=>{_(D,this).isStale||this.updateResult()},t))}function H(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(_(T,this)):this.options.refetchInterval)??!1}function U(e){C(z,this,K).call(this),p(L,this,e),!(o.isServer()||v(this.options.enabled,_(T,this))===!1||!r(_(L,this))||_(L,this)===0)&&p(I,this,x.setInterval(()=>{(this.options.refetchIntervalInBackground||l.isFocused())&&C(z,this,B).call(this)},_(L,this)))}function W(){C(z,this,V).call(this),C(z,this,U).call(this,C(z,this,H).call(this))}function G(){_(F,this)!==void 0&&(x.clearTimeout(_(F,this)),p(F,this,void 0))}function K(){_(I,this)!==void 0&&(x.clearInterval(_(I,this)),p(I,this,void 0))}function q(){let e=_(w,this).getQueryCache().build(_(w,this),this.options);if(e===_(T,this))return;let t=_(T,this);p(T,this,e),p(E,this,e.state),this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function te(e){u.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(_(D,this))}),_(w,this).getQueryCache().notify({query:_(T,this),type:`observerResultsUpdated`})})}function ne(e,t){return v(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&v(t.retryOnMount,e)===!1)}function J(e,t){return ne(e,t)||e.state.data!==void 0&&Y(e,t,t.refetchOnMount)}function Y(e,t,n){if(v(t.enabled,e)!==!1&&b(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Z(e,t)}return!1}function X(e,t,n,r){return(e!==t||v(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Z(e,n)}function Z(e,t){return v(t.enabled,e)!==!1&&e.isStaleByTime(b(t.staleTime,e))}function re(e,t){return!g(e.getCurrentResult(),t)}var Q=e(n(),1);t();function ie(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ae=Q.createContext(ie()),oe=()=>Q.useContext(ae),se=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?f(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ce=e=>{Q.useEffect(()=>{e.clearReset()},[e])},le=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||f(n,[e.error,r])),$=Q.createContext(!1),ue=()=>Q.useContext($);$.Provider;var de=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},fe=(e,t)=>e.isLoading&&e.isFetching&&!t,pe=(e,t)=>e?.suspense&&t.isPending,me=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function he(e,t,n){let r=ue(),i=oe(),a=s(n),c=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let l=a.getQueryCache().get(c.queryHash),d=e.subscribed!==!1;c._optimisticResults=r?`isRestoring`:d?`optimistic`:void 0,de(c),se(c,i,l),ce(i);let f=!a.getQueryCache().get(c.queryHash),[p]=Q.useState(()=>new t(a,c)),m=p.getOptimisticResult(c),g=!r&&d;if(Q.useSyncExternalStore(Q.useCallback(e=>{let t=g?p.subscribe(u.batchCalls(e)):h;return p.updateResult(),t},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),Q.useEffect(()=>{p.setOptions(c)},[c,p]),pe(c,m))throw me(c,p,i);if(le({result:m,errorResetBoundary:i,throwOnError:c.throwOnError,query:l,suspense:c.suspense}))throw m.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(c,m),c.experimental_prefetchInRender&&!o.isServer()&&fe(m,r)&&(f?me(c,p,i):l?.promise)?.catch(h).finally(()=>{p.updateResult()}),c.notifyOnChangeProps?m:p.trackResult(m)}export{ee as n,he as t};
@@ -0,0 +1 @@
1
+ import{n as e,t}from"./useBaseQuery-DqEqZpjx.js";function n(n,r){return t(n,e,r)}export{n as t};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libre-webui",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Privacy-first AI chat interface. Self-hosted, open source, extensible.",
5
5
  "main": "electron/main.js",
6
6
  "bin": {
@@ -1 +0,0 @@
1
- import{n as e,t}from"./useBaseQuery-EKJwyGqK.js";function n(n,r){return t(n,e,r)}export{n as t};