libre-webui 0.14.1 → 0.14.3
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 +2 -2
- package/backend/dist/services/pluginService.d.ts +1 -2
- package/backend/dist/services/pluginService.d.ts.map +1 -1
- package/backend/dist/services/pluginService.js +31 -52
- package/backend/dist/services/pluginService.js.map +1 -1
- package/backend/dist/utils/pluginChatAdapter.d.ts.map +1 -1
- package/backend/dist/utils/pluginChatAdapter.js +23 -2
- package/backend/dist/utils/pluginChatAdapter.js.map +1 -1
- package/backend/dist/utils/pluginStreamAdapter.d.ts +1 -0
- package/backend/dist/utils/pluginStreamAdapter.d.ts.map +1 -1
- package/backend/dist/utils/pluginStreamAdapter.js +119 -0
- package/backend/dist/utils/pluginStreamAdapter.js.map +1 -1
- package/backend/dist/utils/pluginValidation.d.ts +2 -0
- package/backend/dist/utils/pluginValidation.d.ts.map +1 -1
- package/backend/dist/utils/pluginValidation.js +39 -0
- package/backend/dist/utils/pluginValidation.js.map +1 -1
- package/backend/package.json +1 -1
- package/frontend/dist/assets/index-BKzwVaAM.js +16 -0
- package/frontend/dist/index.html +10 -10
- package/frontend/dist/js/{ArtifactContainer-KLW7Y93B.js → ArtifactContainer-CuvIIoHC.js} +1 -1
- package/frontend/dist/js/{ArtifactDemoPage-C1nixmDD.js → ArtifactDemoPage-DI0QzAee.js} +1 -1
- package/frontend/dist/js/ArtifactSlideOutPanel-BzBemzHy.js +1 -0
- package/frontend/dist/js/{Button-BZBnLKRn.js → Button-DBk-AREB.js} +1 -1
- package/frontend/dist/js/ChatPage-DqpXctC2.js +16 -0
- package/frontend/dist/js/FirstTimeSetup-DRWeCsVI.js +1 -0
- package/frontend/dist/js/GalleryPage-CgD8fVx0.js +1 -0
- package/frontend/dist/js/LibreClawPage-B_Yon2fQ.js +1 -0
- package/frontend/dist/js/{ModelManagerModals-D1_k_AKo.js → ModelManagerModals-DfgizeSq.js} +1 -1
- package/frontend/dist/js/ModelsPage-CAKQ7J-b.js +2 -0
- package/frontend/dist/js/{OptimizedSyntaxHighlighter-BR97Z7hi.js → OptimizedSyntaxHighlighter-Ci9sRc78.js} +1 -1
- package/frontend/dist/js/PersonasPage-Dj6Bka4I.js +13 -0
- package/frontend/dist/js/{RichMessageContent-Bd8RKJ_L.js → RichMessageContent-DP7XoxIa.js} +2 -2
- package/frontend/dist/js/SettingsModal-BFyYhZYE.js +1 -0
- package/frontend/dist/js/UserManagementPage-CGMnhZr1.js +1 -0
- package/frontend/dist/js/logger-DbNs3-DK.js +1 -0
- package/frontend/dist/js/{markdown-core-fkbHPd-g.js → markdown-core-GI9BPwrB.js} +1 -1
- package/frontend/dist/js/{markdown-math-Ci4QOsf-.js → markdown-math-E4O1gcxj.js} +1 -1
- package/frontend/dist/js/react-vendor-DyG_ODzn.js +9 -0
- package/frontend/dist/js/router-vendor-Bbvzv1ZC.js +1 -0
- package/frontend/dist/js/{syntax-highlight-B8OiKBhG.js → syntax-highlight-pM1xnNpY.js} +1 -1
- package/frontend/dist/js/{ui-vendor-njo77ljx.js → ui-vendor-CurEAeCe.js} +1 -1
- package/frontend/dist/js/useBaseQuery-B1on3xcz.js +1 -0
- package/frontend/dist/js/useQuery-CXvo2RBT.js +1 -0
- package/frontend/dist/js/{useTranslation-CP6Cg-EI.js → useTranslation-Cs6iTP4m.js} +1 -1
- package/frontend/dist/js/{utils-D0l9J3P-.js → utils-pTFqSV8c.js} +1 -1
- package/frontend/dist/js/{utils-vendor-BX3ZwoIK.js → utils-vendor-Cbaj0BC5.js} +1 -1
- package/package.json +16 -7
- package/plugins/anthropic.json +6 -24
- package/plugins/kimi-code.json +73 -0
- package/frontend/dist/assets/index-CJtBJBKm.js +0 -5
- package/frontend/dist/js/ArtifactSlideOutPanel-D1zbtCz7.js +0 -1
- package/frontend/dist/js/ChatPage-CVMDKGGt.js +0 -16
- package/frontend/dist/js/FirstTimeSetup-CracKPdJ.js +0 -1
- package/frontend/dist/js/GalleryPage-K04Gja8a.js +0 -1
- package/frontend/dist/js/LibreClawPage--dGXnz0E.js +0 -1
- package/frontend/dist/js/ModelsPage-D4cRN4xT.js +0 -2
- package/frontend/dist/js/PersonasPage-DX-wAO88.js +0 -13
- package/frontend/dist/js/SettingsModal-DmY_Vl5p.js +0 -1
- package/frontend/dist/js/UserManagementPage-D3J6HlOk.js +0 -1
- package/frontend/dist/js/api-Bi8_fX7j.js +0 -15
- package/frontend/dist/js/logger-BmpKNkls.js +0 -1
- package/frontend/dist/js/react-vendor-Co1u1rWb.js +0 -8
- package/frontend/dist/js/useBaseQuery-DqEqZpjx.js +0 -1
- package/frontend/dist/js/useQuery-nuZnD_6g.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{f as t}from"./markdown-core-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{f as t}from"./markdown-core-GI9BPwrB.js";var n=e(t(),1),r={data:``},i=e=>{if(typeof window==`object`){let t=(e?e.querySelector(`#_goober`):window._goober)||Object.assign(document.createElement(`style`),{innerHTML:` `,id:`_goober`});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||r},a=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,o=/\/\*[^]*?\*\/| +/g,s=/\n+/g,c=(e,t)=>{let n=``,r=``,i=``;for(let a in e){let o=e[a];a[0]==`@`?a[1]==`i`?n=a+` `+o+`;`:r+=a[1]==`f`?c(o,a):a+`{`+c(o,a[1]==`k`?``:t)+`}`:typeof o==`object`?r+=c(o,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+` `+t:t)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,`-$&`).toLowerCase(),i+=c.p?c.p(a,o):a+`:`+o+`;`)}return n+(t&&i?t+`{`+i+`}`:i)+r},l={},u=e=>{if(typeof e==`object`){let t=``;for(let n in e)t+=n+u(e[n]);return t}return e},d=(e,t,n,r,i)=>{let d=u(e),f=l[d]||(l[d]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return`go`+n})(d));if(!l[f]){let t=d===e?(e=>{let t,n,r=[{}];for(;t=a.exec(e.replace(o,``));)t[4]?r.shift():t[3]?(n=t[3].replace(s,` `).trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(s,` `).trim();return r[0]})(e):e;l[f]=c(i?{[`@keyframes `+f]:t}:t,n?``:`.`+f)}let p=n&&l.g?l.g:null;return n&&(l.g=l[f]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):t.data.indexOf(e)===-1&&(t.data=n?e+t.data:t.data+e)})(l[f],t,r,p),f},f=(e,t,n)=>e.reduce((e,r,i)=>{let a=t[i];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?`.`+t:e&&typeof e==`object`?e.props?``:c(e,``):!1===e?``:e}return e+r+(a??``)},``);function p(e){let t=this||{},n=e.call?e(t.p):e;return d(n.unshift?n.raw?f(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,i(t.target),t.g,t.o,t.k)}var m,h,g;p.bind({g:1});var _=p.bind({k:1});function ee(e,t,n,r){c.p=t,m=e,h=n,g=r}function v(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),c=s.className||i.className;n.p=Object.assign({theme:h&&h()},s),n.o=/ *go\d+/.test(c),s.className=p.apply(n,r)+(c?` `+c:``),t&&(s.ref=o);let l=e;return e[0]&&(l=s.as||e,delete s.as),g&&l[0]&&g(s),m(l,s)}return t?t(i):i}}var te=e=>typeof e==`function`,y=(e,t)=>te(e)?e(t):e,b=(()=>{let e=0;return()=>(++e).toString()})(),x=(()=>{let e;return()=>{if(e===void 0&&typeof window<`u`){let t=matchMedia(`(prefers-reduced-motion: reduce)`);e=!t||t.matches}return e}})(),ne=20,S=`default`,C=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return C(e,{type:+!!e.toasts.find(e=>e.id===r.id),toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(e=>e.id===i||i===void 0?{...e,dismissed:!0,visible:!1}:e)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+a}))}}},w=[],T={toasts:[],pausedAt:void 0,settings:{toastLimit:ne}},E={},D=(e,t=S)=>{E[t]=C(E[t]||T,e),w.forEach(([e,n])=>{e===t&&n(E[t])})},O=e=>Object.keys(E).forEach(t=>D(e,t)),re=e=>Object.keys(E).find(t=>E[t].toasts.some(t=>t.id===e)),k=(e=S)=>t=>{D(t,e)},ie={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ae=(e={},t=S)=>{let[r,i]=(0,n.useState)(E[t]||T),a=(0,n.useRef)(E[t]);(0,n.useEffect)(()=>(a.current!==E[t]&&i(E[t]),w.push([t,i]),()=>{let e=w.findIndex(([e])=>e===t);e>-1&&w.splice(e,1)}),[t]);let o=r.toasts.map(t=>({...e,...e[t.type],...t,removeDelay:t.removeDelay||e[t.type]?.removeDelay||e?.removeDelay,duration:t.duration||e[t.type]?.duration||e?.duration||ie[t.type],style:{...e.style,...e[t.type]?.style,...t.style}}));return{...r,toasts:o}},oe=(e,t=`blank`,n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:`status`,"aria-live":`polite`},message:e,pauseDuration:0,...n,id:n?.id||b()}),A=e=>(t,n)=>{let r=oe(t,e,n);return k(r.toasterId||re(r.id))({type:2,toast:r}),r.id},j=(e,t)=>A(`blank`)(e,t);j.error=A(`error`),j.success=A(`success`),j.loading=A(`loading`),j.custom=A(`custom`),j.dismiss=(e,t)=>{let n={type:3,toastId:e};t?k(t)(n):O(n)},j.dismissAll=e=>j.dismiss(void 0,e),j.remove=(e,t)=>{let n={type:4,toastId:e};t?k(t)(n):O(n)},j.removeAll=e=>j.remove(void 0,e),j.promise=(e,t,n)=>{let r=j.loading(t.loading,{...n,...n?.loading});return typeof e==`function`&&(e=e()),e.then(e=>{let i=t.success?y(t.success,e):void 0;return i?j.success(i,{id:r,...n,...n?.success}):j.dismiss(r),e}).catch(e=>{let i=t.error?y(t.error,e):void 0;i?j.error(i,{id:r,...n,...n?.error}):j.dismiss(r)}),e};var M=1e3,N=(e,t=`default`)=>{let{toasts:r,pausedAt:i}=ae(e,t),a=(0,n.useRef)(new Map).current,o=(0,n.useCallback)((e,t=M)=>{if(a.has(e))return;let n=setTimeout(()=>{a.delete(e),s({type:4,toastId:e})},t);a.set(e,n)},[]);(0,n.useEffect)(()=>{if(i)return;let e=Date.now(),n=r.map(n=>{if(n.duration===1/0)return;let r=(n.duration||0)+n.pauseDuration-(e-n.createdAt);if(r<0){n.visible&&j.dismiss(n.id);return}return setTimeout(()=>j.dismiss(n.id,t),r)});return()=>{n.forEach(e=>e&&clearTimeout(e))}},[r,i,t]);let s=(0,n.useCallback)(k(t),[t]),c=(0,n.useCallback)(()=>{s({type:5,time:Date.now()})},[s]),l=(0,n.useCallback)((e,t)=>{s({type:1,toast:{id:e,height:t}})},[s]),u=(0,n.useCallback)(()=>{i&&s({type:6,time:Date.now()})},[i,s]),d=(0,n.useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:i=8,defaultPosition:a}=t||{},o=r.filter(t=>(t.position||a)===(e.position||a)&&t.height),s=o.findIndex(t=>t.id===e.id),c=o.filter((e,t)=>t<s&&e.visible).length;return o.filter(e=>e.visible).slice(...n?[c+1]:[0,c]).reduce((e,t)=>e+(t.height||0)+i,0)},[r]);return(0,n.useEffect)(()=>{r.forEach(e=>{if(e.dismissed)o(e.id,e.removeDelay);else{let t=a.get(e.id);t&&(clearTimeout(t),a.delete(e.id))}})},[r,o]),{toasts:r,handlers:{updateHeight:l,startPause:c,endPause:u,calculateOffset:d}}},P=_`
|
|
2
2
|
from {
|
|
3
3
|
transform: scale(0) rotate(45deg);
|
|
4
4
|
opacity: 0;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{d as t,f as n}from"./markdown-core-GI9BPwrB.js";import{f as r,h as i,m as a,p as o}from"./router-vendor-Bbvzv1ZC.js";import{_t as s,at as c,bt as l,ct as u,dt as d,ft as f,gt as p,ht as m,it as ee,lt as h,mt as g,pt as _,rt as v,ut as y,vt as b,xt as x,yt as S}from"../assets/index-BKzwVaAM.js";var C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,te=(C=new WeakMap,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 WeakSet,class extends d{constructor(e,t){super(),c(this,R),i(this,C,void 0),i(this,w,void 0),i(this,T,void 0),i(this,E,void 0),i(this,D,void 0),i(this,O,void 0),i(this,k,void 0),i(this,A,void 0),i(this,j,void 0),i(this,M,void 0),i(this,N,void 0),i(this,P,void 0),i(this,F,void 0),i(this,I,void 0),i(this,L,new Set),this.options=t,r(C,this,e),r(A,this,null),r(k,this,u()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(o(w,this).addObserver(this),q(o(w,this),this.options)?a(R,this,z).call(this):this.updateResult(),a(R,this,U).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return J(o(w,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return J(o(w,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,a(R,this,W).call(this),a(R,this,G).call(this),o(w,this).removeObserver(this)}setOptions(e){let t=this.options,n=o(w,this);if(this.options=o(C,this).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof p(this.options.enabled,o(w,this))!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);a(R,this,K).call(this),o(w,this).setOptions(this.options),t._defaulted&&!b(this.options,t)&&o(C,this).getQueryCache().notify({type:`observerOptionsUpdated`,query:o(w,this),observer:this});let r=this.hasListeners();r&&Y(o(w,this),n,this.options,t)&&a(R,this,z).call(this),this.updateResult(),r&&(o(w,this)!==n||p(this.options.enabled,o(w,this))!==p(t.enabled,o(w,this))||s(this.options.staleTime,o(w,this))!==s(t.staleTime,o(w,this)))&&a(R,this,B).call(this);let i=a(R,this,V).call(this);r&&(o(w,this)!==n||p(this.options.enabled,o(w,this))!==p(t.enabled,o(w,this))||i!==o(I,this))&&a(R,this,H).call(this,i)}getOptimisticResult(e){let t=o(C,this).getQueryCache().build(o(C,this),e),n=this.createResult(t,e);return ie(this,n)&&(r(E,this,n),r(O,this,this.options),r(D,this,o(w,this).state)),n}getCurrentResult(){return o(E,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&&o(k,this).status===`pending`&&o(k,this).reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){o(L,this).add(e)}getCurrentQuery(){return o(w,this)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=o(C,this).defaultQueryOptions(e),n=o(C,this).getQueryCache().build(o(C,this),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return a(R,this,z).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),o(E,this)))}createResult(e,t){let n=o(w,this),i=this.options,a=o(E,this),s=o(D,this),c=o(O,this),l=e===n?o(T,this):e.state,{state:d}=e,f={...d},h=!1,g;if(t._optimisticResults){let r=this.hasListeners(),a=!r&&q(e,t),o=r&&Y(e,n,t,i);(a||o)&&(f={...f,...ee(d.data,e.options)}),t._optimisticResults===`isRestoring`&&(f.fetchStatus=`idle`)}let{error:_,errorUpdatedAt:v,status:y}=f;g=f.data;let b=!1;if(t.placeholderData!==void 0&&g===void 0&&y===`pending`){let e;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=a.data,b=!0):e=typeof t.placeholderData==`function`?t.placeholderData(o(N,this)?.state.data,o(N,this)):t.placeholderData,e!==void 0&&(y=`success`,g=m(a?.data,e,t),h=!0)}if(t.select&&g!==void 0&&!b)if(a&&g===s?.data&&t.select===o(j,this))g=o(M,this);else try{r(j,this,t.select),g=t.select(g),g=m(a?.data,g,t),r(M,this,g),r(A,this,null)}catch(e){r(A,this,e)}o(A,this)&&(_=o(A,this),g=o(M,this),v=Date.now(),y=`error`);let x=f.fetchStatus===`fetching`,S=y===`pending`,C=y===`error`,P=S&&x,F=g!==void 0,I={status:y,fetchStatus:f.fetchStatus,isPending:S,isSuccess:y===`success`,isError:C,isInitialLoading:P,isLoading:P,data:g,dataUpdatedAt:f.dataUpdatedAt,error:_,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:C&&!F,isPaused:f.fetchStatus===`paused`,isPlaceholderData:h,isRefetchError:C&&F,isStale:X(e,t),refetch:this.refetch,promise:o(k,this),isEnabled:p(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=I.data!==void 0,i=I.status===`error`&&!t,a=e=>{i?e.reject(I.error):t&&e.resolve(I.data)},s=()=>{a(r(k,this,I.promise=u()))},c=o(k,this);switch(c.status){case`pending`:e.queryHash===n.queryHash&&a(c);break;case`fulfilled`:(i||I.data!==c.value)&&s();break;case`rejected`:(!i||I.error!==c.reason)&&s();break}}return I}updateResult(){let e=o(E,this),t=this.createResult(o(w,this),this.options);r(D,this,o(w,this).state),r(O,this,this.options),o(D,this).data!==void 0&&r(N,this,o(w,this)),!b(t,e)&&(r(E,this,t),a(R,this,ne).call(this,{listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!o(L,this).size)return!0;let r=new Set(n??o(L,this));return this.options.throwOnError&&r.add(`error`),Object.keys(o(E,this)).some(t=>{let n=t;return o(E,this)[n]!==e[n]&&r.has(n)})})()}))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&a(R,this,U).call(this)}});function z(e){a(R,this,K).call(this);let t=o(w,this).fetch(this.options,e);return e?.throwOnError||(t=t.catch(g)),t}function B(){a(R,this,W).call(this);let e=s(this.options.staleTime,o(w,this));if(f.isServer()||o(E,this).isStale||!_(e))return;let t=l(o(E,this).dataUpdatedAt,e)+1;r(P,this,x.setTimeout(()=>{o(E,this).isStale||this.updateResult()},t))}function V(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(o(w,this)):this.options.refetchInterval)??!1}function H(e){a(R,this,G).call(this),r(I,this,e),!(f.isServer()||p(this.options.enabled,o(w,this))===!1||!_(o(I,this))||o(I,this)===0)&&r(F,this,x.setInterval(()=>{(this.options.refetchIntervalInBackground||y.isFocused())&&a(R,this,z).call(this)},o(I,this)))}function U(){a(R,this,B).call(this),a(R,this,H).call(this,a(R,this,V).call(this))}function W(){o(P,this)!==void 0&&(x.clearTimeout(o(P,this)),r(P,this,void 0))}function G(){o(F,this)!==void 0&&(x.clearInterval(o(F,this)),r(F,this,void 0))}function K(){let e=o(C,this).getQueryCache().build(o(C,this),this.options);if(e===o(w,this))return;let t=o(w,this);r(w,this,e),r(T,this,e.state),this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function ne(e){h.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(o(E,this))}),o(C,this).getQueryCache().notify({query:o(w,this),type:`observerResultsUpdated`})})}function re(e,t){return p(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&p(t.retryOnMount,e)===!1)}function q(e,t){return re(e,t)||e.state.data!==void 0&&J(e,t,t.refetchOnMount)}function J(e,t,n){if(p(t.enabled,e)!==!1&&s(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&X(e,t)}return!1}function Y(e,t,n,r){return(e!==t||p(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&X(e,n)}function X(e,t){return p(t.enabled,e)!==!1&&e.isStaleByTime(s(t.staleTime,e))}function ie(e,t){return!b(e.getCurrentResult(),t)}var Z=e(n(),1);t();function ae(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var oe=Z.createContext(ae()),se=()=>Z.useContext(oe),ce=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?S(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},le=e=>{Z.useEffect(()=>{e.clearReset()},[e])},ue=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||S(n,[e.error,r])),Q=Z.createContext(!1),de=()=>Z.useContext(Q);Q.Provider;var fe=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))}},pe=(e,t)=>e.isLoading&&e.isFetching&&!t,me=(e,t)=>e?.suspense&&t.isPending,$=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function he(e,t,n){let r=de(),i=se(),a=v(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,fe(o),ce(o,i,s),le(i);let l=!a.getQueryCache().get(o.queryHash),[u]=Z.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),p=!r&&c;if(Z.useSyncExternalStore(Z.useCallback(e=>{let t=p?u.subscribe(h.batchCalls(e)):g;return u.updateResult(),t},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),Z.useEffect(()=>{u.setOptions(o)},[o,u]),me(o,d))throw $(o,u,i);if(ue({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!f.isServer()&&pe(d,r)&&(l?$(o,u,i):s?.promise)?.catch(g).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}export{te as n,he as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./useBaseQuery-B1on3xcz.js";function n(n,r){return t(n,e,r)}export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-QTnfLwEv.js";import{f as n}from"./markdown-core-
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-QTnfLwEv.js";import{f as n}from"./markdown-core-GI9BPwrB.js";var r=e(n()),i=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);d(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},a={},o=(e,t,n,r)=>{d(n)&&a[n]||(d(n)&&(a[n]=new Date),i(e,t,n,r))},s=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},c=(e,t,n)=>{e.loadNamespaces(t,s(e,n))},l=(e,t,n,r)=>{if(d(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return c(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,s(e,r))},u=(e,t,n={})=>!t.languages||!t.languages.length?(o(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),d=e=>typeof e==`string`,f=e=>typeof e==`object`&&!!e,p=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,m={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},h=e=>m[e],g=e=>e.replace(p,h),_={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:g,transDefaultProps:void 0},v=(e={})=>{_={..._,...e}},y=()=>_,b,x=e=>{b=e},S=()=>b,C={type:`3rdParty`,init(e){v(e.options.react),x(e)}},w=(0,r.createContext)(),T=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},E=t((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),D=t(((e,t)=>{t.exports=E()}))(),O={t:(e,t)=>{if(d(t))return t;if(f(t)&&d(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},k=()=>()=>{},A=(e,t={})=>{let{i18n:n}=t,{i18n:i,defaultNS:a}=(0,r.useContext)(w)||{},s=n||i||S();s&&!s.reportNamespaces&&(s.reportNamespaces=new T),s||o(s,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next`);let f=(0,r.useMemo)(()=>({...y(),...s?.options?.react,...t}),[s,t]),{useSuspense:p,keyPrefix:m}=f,h=e||a||s?.options?.defaultNS,g=d(h)?[h]:h||[`translation`],_=(0,r.useMemo)(()=>g,g);s?.reportNamespaces?.addUsedNamespaces?.(_);let v=(0,r.useRef)(0),b=(0,r.useCallback)(e=>{if(!s)return k;let{bindI18n:t,bindI18nStore:n}=f,r=()=>{v.current+=1,e()};return t&&s.on(t,r),n&&s.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>s.off(e,r)),n&&n.split(` `).forEach(e=>s.store.off(e,r))}},[s,f]),x=(0,r.useRef)(),C=(0,r.useCallback)(()=>{if(!s)return O;let e=!!(s.isInitialized||s.initializedStoreOnce)&&_.every(e=>u(e,s,f)),n=t.lng||s.language,r=v.current,i=x.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===m&&i.revision===r)return i;let a={t:s.getFixedT(n,f.nsMode===`fallback`?_:_[0],m,{scopeNs:_}),ready:e,lng:n,keyPrefix:m,revision:r};return x.current=a,a},[s,_,m,f,t.lng]),[E,A]=(0,r.useState)(0),{t:j,ready:M}=(0,D.useSyncExternalStore)(b,C,C);(0,r.useEffect)(()=>{if(s&&!M&&!p){let e=()=>A(e=>e+1);t.lng?l(s,t.lng,_,e):c(s,_,e)}},[s,t.lng,_,M,p,E]);let N=s||{},P=(0,r.useRef)(null),F=(0,r.useRef)(),I=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},L=(0,r.useMemo)(()=>{let e=N,t=e?.language,n=e;e&&(P.current&&P.current.__original===e&&F.current===t?n=P.current:(n=I(e),P.current=n,F.current=t));let r=!M&&!p?(...e)=>(o(s,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),j(...e)):j,i=[r,n,M];return i.t=r,i.i18n=n,i.ready=M,i},[j,N,M,N.resolvedLanguage,N.language,N.languages]);if(s&&p&&!M)throw new Promise(e=>{let n=()=>e();t.lng?l(s,t.lng,_,n):c(s,_,n)});return L};export{y as a,d as c,S as i,i as l,w as n,g as o,C as r,f as s,A as t,o as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t}from"./utils-vendor-
|
|
1
|
+
import{n as e,r as t}from"./utils-vendor-Cbaj0BC5.js";function n(...n){return e(t(n))}var r=new Map,i=new Map,a=e=>{let t=r.get(e);return t||(t=new Intl.RelativeTimeFormat(e,{numeric:`auto`,style:`narrow`}),r.set(e,t)),t},o=e=>{let t=i.get(e);return t||(t=new Intl.DateTimeFormat(e),i.set(e,t)),t};function s(e,t=`en`){let n=new Date(e),r=Math.max(0,new Date().getTime()-n.getTime()),i=Math.floor(r/(1e3*60)),s=Math.floor(r/(1e3*60*60)),c=Math.floor(r/(1e3*60*60*24));if(t.toLowerCase().split(`-`)[0]===`en`)return i<1?`Just now`:i<60?`${i}m ago`:s<24?`${s}h ago`:c<7?`${c}d ago`:o(t).format(n);let l=a(t);return i<1?l.format(0,`second`):i<60?l.format(-i,`minute`):s<24?l.format(-s,`hour`):c<7?l.format(-c,`day`):o(t).format(n)}function c(){return Math.random().toString(36).substring(2)+Date.now().toString(36)}function l(e,t){return e.length<=t?e:e.substring(0,t)+`...`}function u(e){let t=/^\[Thinking:\s*([\s\S]*?)\]\s*/i,n=/^<thinking>([\s\S]*?)<\/thinking>\s*/i,r=e.match(t);if(r)return{thinking:r[1].trim(),content:e.slice(r[0].length).trim()};let i=e.match(n);return i?{thinking:i[1].trim(),content:e.slice(i[0].length).trim()}:{thinking:null,content:e}}export{l as a,u as i,s as n,c as r,n as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t}from"./rolldown-runtime-QTnfLwEv.js";import{f as n}from"./markdown-core-
|
|
1
|
+
import{n as e,r as t}from"./rolldown-runtime-QTnfLwEv.js";import{f as n}from"./markdown-core-GI9BPwrB.js";var r=t(n(),1),i=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},a=(e=>e?i(e):i),o=e=>e;function s(e,t=o){let n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n}var c=e=>{let t=a(e),n=e=>s(t,e);return Object.assign(n,t),n},l=(e=>e?c(e):c);function u(e,t){return function(){return e.apply(t,arguments)}}var{toString:d}=Object.prototype,{getPrototypeOf:f}=Object,{iterator:p,toStringTag:m}=Symbol,h=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),g=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),h(n,t))return!0;n=f(n)}return!1},_=(e,t)=>e!=null&&g(e,t)?e[t]:void 0,v=(e=>t=>{let n=d.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),y=e=>(e=e.toLowerCase(),t=>v(t)===e),b=e=>t=>typeof t===e,{isArray:x}=Array,S=b(`undefined`);function C(e){return e!==null&&!S(e)&&e.constructor!==null&&!S(e.constructor)&&D(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var w=y(`ArrayBuffer`);function T(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&w(e.buffer),t}var E=b(`string`),D=b(`function`),ee=b(`number`),O=e=>typeof e==`object`&&!!e,k=e=>e===!0||e===!1,A=e=>{if(!O(e))return!1;let t=f(e);return(t===null||t===Object.prototype||f(t)===null)&&!g(e,m)&&!g(e,p)},j=e=>{if(!O(e)||C(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},M=y(`Date`),N=y(`File`),te=e=>!!(e&&e.uri!==void 0),P=e=>e&&e.getParts!==void 0,ne=y(`Blob`),F=y(`FileList`),re=e=>O(e)&&D(e.pipe);function ie(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var I=ie(),L=I.FormData===void 0?void 0:I.FormData,ae=e=>{if(!e)return!1;if(L&&e instanceof L)return!0;let t=f(e);if(!t||t===Object.prototype||!D(e.append))return!1;let n=v(e);return n===`formdata`||n===`object`&&D(e.toString)&&e.toString()===`[object FormData]`},oe=y(`URLSearchParams`),[R,se,ce,le]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(y),ue=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function z(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),x(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(C(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function de(e,t){if(C(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var fe=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,pe=e=>!S(e)&&e!==fe;function me(...e){let{caseless:t,skipUndefined:n}=pe(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&de(r,i)||i,o=h(r,a)?r[a]:void 0;A(o)&&A(e)?r[a]=me(o,e):A(e)?r[a]=me({},e):x(e)?r[a]=e.slice():(!n||!S(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||C(n)||(z(n,i),typeof n!=`object`||x(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];Ee.call(n,t)&&i(n[t],t)}}return r}var he=(e,t,n,{allOwnKeys:r}={})=>(z(t,(t,r)=>{n&&D(t)?Object.defineProperty(e,r,{__proto__:null,value:u(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),ge=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},ve=(e,t,n,r)=>{let i,a,o,s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&f(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ye=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},be=e=>{if(!e)return null;if(x(e))return e;let t=e.length;if(!ee(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},xe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&f(Uint8Array)),Se=(e,t)=>{let n=(e&&e[p]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Ce=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},we=y(`HTMLFormElement`),Te=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:Ee}=Object.prototype,De=y(`RegExp`),Oe=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};z(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},ke=e=>{Oe(e,(t,n)=>{if(D(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(D(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)})}})},Ae=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return x(e)?r(e):r(String(e).split(t)),n},je=()=>{},Me=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ne(e){return!!(e&&D(e.append)&&e[m]===`FormData`&&e[p])}var Pe=e=>{let t=new WeakSet,n=e=>{if(O(e)){if(t.has(e))return;if(C(e))return e;if(!(`toJSON`in e)){t.add(e);let r=x(e)?[]:{};return z(e,(e,t)=>{let i=n(e);!S(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},Fe=y(`AsyncFunction`),Ie=e=>e&&(O(e)||D(e))&&D(e.then)&&D(e.catch),Le=((e,t)=>e?setImmediate:t?((e,t)=>(fe.addEventListener(`message`,({source:n,data:r})=>{n===fe&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),fe.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,D(fe.postMessage)),Re=typeof queueMicrotask<`u`?queueMicrotask.bind(fe):typeof process<`u`&&process.nextTick||Le,ze=e=>e!=null&&D(e[p]),B={isArray:x,isArrayBuffer:w,isBuffer:C,isFormData:ae,isArrayBufferView:T,isString:E,isNumber:ee,isBoolean:k,isObject:O,isPlainObject:A,isEmptyObject:j,isReadableStream:R,isRequest:se,isResponse:ce,isHeaders:le,isUndefined:S,isDate:M,isFile:N,isReactNativeBlob:te,isReactNative:P,isBlob:ne,isRegExp:De,isFunction:D,isStream:re,isURLSearchParams:oe,isTypedArray:xe,isFileList:F,forEach:z,merge:me,extend:he,trim:ue,stripBOM:ge,inherits:_e,toFlatObject:ve,kindOf:v,kindOfTest:y,endsWith:ye,toArray:be,forEachEntry:Se,matchAll:Ce,isHTMLForm:we,hasOwnProperty:h,hasOwnProp:h,hasOwnInPrototypeChain:g,getSafeProp:_,reduceDescriptors:Oe,freezeMethods:ke,toObjectSet:Ae,toCamelCase:Te,noop:je,toFiniteNumber:Me,findKey:de,global:fe,isContextDefined:pe,isSpecCompliantForm:Ne,toJSONObject:Pe,isAsyncFn:Fe,isThenable:Ie,setImmediate:Le,asap:Re,isIterable:ze,isSafeIterable:e=>e!=null&&g(e,p)&&ze(e)},Be=B.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Ve=e=>{let t={},n,r,i;return e&&e.split(`
|
|
2
2
|
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Be[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function He(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Ue=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),We=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Ge(e,t){return B.isArray(e)?e.map(e=>Ge(e,t)):He(String(e).replace(t,``))}var Ke=e=>Ge(e,Ue),qe=e=>Ge(e,We);function Je(e){let t=Object.create(null);return B.forEach(e.toJSON(),(e,n)=>{t[n]=qe(e)}),t}var Ye=Symbol(`internals`);function Xe(e){return e&&String(e).trim().toLowerCase()}function Ze(e){return e===!1||e==null?e:B.isArray(e)?e.map(Ze):Ke(String(e))}function Qe(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var $e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function et(e,t,n,r,i){if(B.isFunction(r))return r.call(this,t,n);if(i&&(t=n),B.isString(t)){if(B.isString(r))return t.indexOf(r)!==-1;if(B.isRegExp(r))return r.test(t)}}function tt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function nt(e,t){let n=B.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var V=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Xe(t);if(!i)return;let a=B.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Ze(e))}let a=(e,t)=>B.forEach(e,(e,n)=>i(e,n,t));if(B.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(B.isString(e)&&(e=e.trim())&&!$e(e))a(Ve(e),t);else if(B.isObject(e)&&B.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!B.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],B.hasOwnProp(n,i)?(r=n[i],n[i]=B.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Xe(e),e){let n=B.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Qe(e);if(B.isFunction(t))return t.call(this,e,n);if(B.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Xe(e),e){let n=B.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||et(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Xe(e),e){let i=B.findKey(n,e);i&&(!t||et(n,n[i],i,t))&&(delete n[i],r=!0)}}return B.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||et(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return B.forEach(this,(r,i)=>{let a=B.findKey(n,i);if(a){t[a]=Ze(r),delete t[i];return}let o=e?tt(i):String(i).trim();o!==i&&delete t[i],t[o]=Ze(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return B.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&B.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
|
3
3
|
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Ye]=this[Ye]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Xe(e);t[r]||(nt(n,e),t[r]=!0)}return B.isArray(e)?e.forEach(r):r(e),this}};V.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),B.reduceDescriptors(V.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),B.freezeMethods(V);var rt=`[REDACTED ****]`;function it(e){if(B.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(B.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function at(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||B.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof V&&(e=e.toJSON()),r.push(e);let t;if(B.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);B.isUndefined(r)||(t[n]=r)});else{if(!B.isPlainObject(e)&&it(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?rt:i(a);B.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var H=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return Object.defineProperty(s,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&B.hasOwnProp(e,`redact`)?e.redact:void 0,n=B.isArray(t)&&t.length>0?at(e,t):B.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};H.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,H.ERR_BAD_OPTION=`ERR_BAD_OPTION`,H.ECONNABORTED=`ECONNABORTED`,H.ETIMEDOUT=`ETIMEDOUT`,H.ECONNREFUSED=`ECONNREFUSED`,H.ERR_NETWORK=`ERR_NETWORK`,H.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,H.ERR_DEPRECATED=`ERR_DEPRECATED`,H.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,H.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,H.ERR_CANCELED=`ERR_CANCELED`,H.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,H.ERR_INVALID_URL=`ERR_INVALID_URL`,H.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function ot(e){return B.isPlainObject(e)||B.isArray(e)}function st(e){return B.endsWith(e,`[]`)?e.slice(0,-2):e}function ct(e,t,n){return e?e.concat(t).map(function(e,t){return e=st(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function lt(e){return B.isArray(e)&&!e.some(ot)}var ut=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function dt(e,t,n){if(!B.isObject(e))throw TypeError(`target must be an object`);t=t||new FormData,n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!B.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&B.isSpecCompliantForm(t),u=[];if(!B.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(B.isDate(e))return e.toISOString();if(B.isBoolean(e))return e.toString();if(!l&&B.isBlob(e))throw new H(`Blob is not supported. Use a Buffer instead.`);if(B.isArrayBuffer(e)||B.isTypedArray(e)){if(l&&typeof s==`function`)return new s([e]);if(typeof Buffer<`u`)return Buffer.from(e);throw new H(`Blob is not supported. Use a Buffer instead.`,H.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new H(`Object is too deeply nested (`+e+` levels). Max depth: `+c,H.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!B.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(B.isReactNative(t)&&B.isReactNativeBlob(e))return t.append(ct(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(B.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(B.isArray(e)&<(e)||(B.isFileList(e)||B.endsWith(n,`[]`))&&(s=B.toArray(e)))return n=st(n),s.forEach(function(e,r){!(B.isUndefined(e)||e===null)&&t.append(o===!0?ct([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return ot(e)?!0:(t.append(ct(i,n,a),d(e)),!1)}let h=Object.assign(ut,{defaultVisitor:m,convertValue:d,isVisitable:ot});function g(e,n,r=0){if(!B.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),B.forEach(e,function(e,a){(!(B.isUndefined(e)||e===null)&&i.call(t,e,B.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!B.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function ft(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function pt(e,t){this._pairs=[],e&&dt(e,this,t)}var mt=pt.prototype;mt.append=function(e,t){this._pairs.push([e,t])},mt.toString=function(e){let t=e?t=>e.call(this,t,ft):ft;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function ht(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function gt(e,t,n){if(!t)return e;e=e||``;let r=B.isFunction(n)?{serialize:n}:n,i=B.getSafeProp(r,`encode`)||ht,a=B.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):B.isURLSearchParams(t)?t.toString():new pt(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var _t=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,function(t){t!==null&&e(t)})}},vt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},yt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:pt,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},bt=e({hasBrowserEnv:()=>xt,hasStandardBrowserEnv:()=>Ct,hasStandardBrowserWebWorkerEnv:()=>wt,navigator:()=>St,origin:()=>Tt}),xt=typeof window<`u`&&typeof document<`u`,St=typeof navigator==`object`&&navigator||void 0,Ct=xt&&(!St||[`ReactNative`,`NativeScript`,`NS`].indexOf(St.product)<0),wt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Tt=xt&&window.location.href||`http://localhost`,U={...bt,...yt};function Et(e,t){return dt(e,new U.classes.URLSearchParams,{visitor:function(e,t,n,r){return U.isNode&&B.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var Dt=100;function Ot(e){if(e>Dt)throw new H(`FormData field is too deeply nested (`+e+` levels). Max depth: `+Dt,H.ERR_FORM_DATA_DEPTH_EXCEEDED)}function kt(e){let t=[],n=/\w+|\[(\w*)]/g,r;for(;(r=n.exec(e))!==null;)Ot(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function At(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function jt(e){function t(e,n,r,i){Ot(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&B.isArray(r)?r.length:a,s?(B.hasOwnProp(r,a)?r[a]=B.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!B.hasOwnProp(r,a)||!B.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&B.isArray(r[a])&&(r[a]=At(r[a])),!o)}if(B.isFormData(e)&&B.isFunction(e.entries)){let n={};return B.forEachEntry(e,(e,r)=>{t(kt(e),r,n,0)}),n}return null}var Mt=(e,t)=>e!=null&&B.hasOwnProp(e,t)?e[t]:void 0;function Nt(e,t,n){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Pt={transitional:vt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=B.isObject(e);if(i&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return r?JSON.stringify(jt(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e)||B.isReadableStream(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Mt(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Et(e,t).toString();if((a=B.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Mt(this,`env`),r=n&&n.FormData;return dt(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Nt(e)):e}],transformResponse:[function(e){let t=Mt(this,`transitional`)||Pt.transitional,n=t&&t.forcedJSONParsing,r=Mt(this,`responseType`),i=r===`json`;if(B.isResponse(e)||B.isReadableStream(e))return e;if(e&&B.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Mt(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?H.from(e,H.ERR_BAD_RESPONSE,this,null,Mt(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};B.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{Pt.headers[e]={}});function Ft(e,t){let n=this||Pt,r=t||n,i=V.from(r.headers),a=r.data;return B.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function It(e){return!!(e&&e.__CANCEL__)}var Lt=class extends H{constructor(e,t,n){super(e??`canceled`,H.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Rt(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new H(`Request failed with status code `+n.status,n.status>=400&&n.status<500?H.ERR_BAD_REQUEST:H.ERR_BAD_RESPONSE,n.config,n.request,n))}function zt(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Bt(e,t){e=e||10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Vt(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&(clearTimeout(a),a=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||(a=setTimeout(()=>{a=null,o(i)},r-s)))},()=>i&&o(i)]}var Ht=(e,t,n=3)=>{let r=0,i=Bt(50,250);return Vt(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Ut=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Wt=e=>(...t)=>B.asap(()=>e(...t)),Gt=U.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,U.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0,Kt=U.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];B.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),B.isString(r)&&s.push(`path=${r}`),B.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),B.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function qt(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Jt(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}var Yt=/^https?:(?!\/\/)/i,Xt=/[\t\n\r]/g;function Zt(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Qt(e){return Zt(e).replace(Xt,``)}function $t(e,t){if(typeof e==`string`&&Yt.test(Qt(e)))throw new H(`Invalid URL: missing "//" after protocol`,H.ERR_INVALID_URL,t)}function en(e,t,n,r){$t(t,r);let i=!qt(t);return e&&(i||n===!1)?($t(e,r),Jt(e,t)):t}var tn=e=>e instanceof V?{...e}:e;function nn(e,t){e=e||{},t=t||{};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return B.isPlainObject(e)&&B.isPlainObject(t)?B.merge.call({caseless:r},e,t):B.isPlainObject(t)?B.merge({},t):B.isArray(t)?t.slice():t}function i(e,t,n,i){if(!B.isUndefined(t))return r(e,t,n,i);if(!B.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!B.isUndefined(t))return r(void 0,t)}function o(e,t){if(!B.isUndefined(t))return r(void 0,t);if(!B.isUndefined(e))return r(void 0,e)}function s(n){let r=B.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!B.isUndefined(r))if(B.isPlainObject(r)){if(B.hasOwnProp(r,n))return r[n]}else return;let i=B.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(B.isPlainObject(i)&&B.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(B.hasOwnProp(t,a))return r(n,i);if(B.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(tn(e),tn(t),n,!0)};return B.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=B.hasOwnProp(l,r)?l[r]:i,o=a(B.hasOwnProp(e,r)?e[r]:void 0,B.hasOwnProp(t,r)?t[r]:void 0,r);B.isUndefined(o)&&a!==c||(n[r]=o)}),B.hasOwnProp(t,`validateStatus`)&&B.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(B.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var rn=[`content-type`,`content-length`];function an(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{rn.includes(t.toLowerCase())&&e.set(t,n)})}var on=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function sn(e){let t=nn({},e),n=e=>B.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=V.from(s),t.url=gt(en(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=B.getSafeProp(c,`username`)||``,n=B.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?on(n):``)))}catch(t){throw H.from(t,H.ERR_BAD_OPTION_VALUE,e)}}if(B.isFormData(r)&&(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv||B.isReactNative(r)?s.setContentType(void 0):B.isFunction(r.getHeaders)&&an(s,r.getHeaders(),n(`formDataHeaderPolicy`))),U.hasStandardBrowserEnv&&(B.isFunction(i)&&(i=i(t)),i===!0||i==null&&Gt(t.url))){let e=a&&o&&Kt.read(o);e&&s.set(a,e)}return t}var cn=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=sn(e),i=r.data,a=V.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=V.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());Rt(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&(n(new H(`Request aborted`,H.ECONNABORTED,e,h)),m(),h=null)},h.onerror=function(t){let r=new H(t&&t.message?t.message:`Network Error`,H.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||vt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new H(t,i.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&B.forEach(Je(a),function(e,t){h.setRequestHeader(t,e)}),B.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Ht(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Ht(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&(n(!t||t.type?new Lt(null,e,h):t),h.abort(),m(),h=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=zt(r.url);if(_&&!U.protocols.includes(_)){n(new H(`Unsupported protocol `+_+`:`,H.ERR_BAD_REQUEST,e)),m();return}h.send(i||null)})},ln=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof H?t:new Lt(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new H(`timeout of ${t}ms exceeded`,H.ETIMEDOUT))},t),o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),e=null)};e.forEach(e=>e.addEventListener(`abort`,i,{once:!0}));let{signal:s}=n;return s.unsubscribe=()=>B.asap(o),s},un=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},dn=async function*(e,t){for await(let n of fn(e))yield*un(n,t)},fn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},pn=(e,t,n,r)=>{let i=dn(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},mn=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,hn=(e,t,n)=>t+2<n&&mn(e.charCodeAt(t+1))&&mn(e.charCodeAt(t+2));function gn(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);mn(t)&&mn(i)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n===37&&hn(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var _n=`1.18.1`,vn=64*1024,{isFunction:yn}=B,bn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),xn=e=>{if(!B.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Sn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Cn=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},wn=e=>{let t=B.global!==void 0&&B.global!==null?B.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=B.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?yn(i):typeof fetch==`function`,c=yn(a),l=yn(o);if(!s)return!1;let u=s&&yn(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&Sn(()=>{let e=!1,t=new a(U.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&Sn(()=>B.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new H(`Response type '${e}' is not supported`,H.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(B.isBlob(e))return e.size;if(B.isSpecCompliantForm(e))return(await new a(U.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(B.isArrayBufferView(e)||B.isArrayBuffer(e))return e.byteLength;if(B.isURLSearchParams(e)&&(e+=``),B.isString(e))return(await d(e)).byteLength},g=async(e,t)=>B.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T}=sn(e),E=B.isNumber(w)&&w>-1,D=B.isNumber(T)&&T>-1,ee=t=>B.hasOwnProp(e,t)?e[t]:void 0,O=i||fetch;b=b?(b+``).toLowerCase():`text`;let k=ln([l,d&&d.toAbortSignal()],_),A=null,j=k&&k.unsubscribe&&(()=>{k.unsubscribe()}),M,N=null,te=()=>new H(`Request body larger than maxBodyLength limit`,H.ERR_BAD_REQUEST,e,A);try{let i,l=ee(`auth`);if(l&&(i={username:B.getSafeProp(l,`username`)||``,password:B.getSafeProp(l,`password`)||``}),Cn(t)){let e=new URL(t,U.origin);!i&&(e.username||e.password)&&(i={username:xn(e.username),password:xn(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(bn((i.username||``)+`:`+(i.password||``))))),E&&typeof t==`string`&&t.startsWith(`data:`)&&gn(t)>w)throw new H(`maxContentLength size of `+w+` exceeded`,H.ERR_BAD_RESPONSE,e,A);if(D&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(M=e,e>T))throw te()}let d=D&&(B.isReadableStream(s)||B.isStream(s)),_=(e,t,n)=>pn(e,vn,e=>{if(D&&e>T)throw N=te();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(M=M??await g(x,s),M!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(B.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&Ut(M,Ht(Wt(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new H(`Stream request bodies are not supported by the current fetch implementation`,H.ERR_NOT_SUPPORT,e,A);B.isString(S)||(S=S?`include`:`omit`);let P=c&&`credentials`in a.prototype;if(B.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+_n,!1);let ne={...C,signal:k,method:n.toUpperCase(),headers:Je(x.normalize()),body:s,duplex:`half`,credentials:P?S:void 0};A=c&&new a(t,ne);let F=await(c?O(A,C):O(t,ne)),re=V.from(F.headers);if(E){let t=B.toFiniteNumber(re.getContentLength());if(t!=null&&t>w)throw new H(`maxContentLength size of `+w+` exceeded`,H.ERR_BAD_RESPONSE,e,A)}let ie=p&&(b===`stream`||b===`response`);if(p&&F.body&&(v||E||ie&&j)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=F[e]});let n=B.toFiniteNumber(re.getContentLength()),[r,i]=v&&Ut(n,Ht(Wt(v),!0))||[],a=0;F=new o(pn(F.body,vn,t=>{if(E&&(a=t,a>w))throw new H(`maxContentLength size of `+w+` exceeded`,H.ERR_BAD_RESPONSE,e,A);r&&r(t)},()=>{i&&i(),j&&j()}),t)}b=b||`text`;let I=await m[B.findKey(m,b)||`text`](F,e);if(E&&!p&&!ie){let t;if(I!=null&&(typeof I.byteLength==`number`?t=I.byteLength:typeof I.size==`number`?t=I.size:typeof I==`string`&&(t=typeof r==`function`?new r().encode(I).byteLength:I.length)),typeof t==`number`&&t>w)throw new H(`maxContentLength size of `+w+` exceeded`,H.ERR_BAD_RESPONSE,e,A)}return!ie&&j&&j(),await new Promise((t,n)=>{Rt(t,n,{data:I,headers:V.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:A})})}catch(t){if(j&&j(),k&&k.aborted&&k.reason instanceof H){let n=k.reason;throw n.config=e,A&&(n.request=A),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(N)throw A&&!N.request&&(N.request=A),N;if(t instanceof H)throw A&&!t.request&&(t.request=A),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new H(`Network Error`,H.ERR_NETWORK,e,A,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw H.from(t,t&&t.code,e,A,t&&t.response)}}},Tn=new Map,En=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Tn;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:wn(t)),l=c;return c};En();var Dn={http:null,xhr:cn,fetch:{get:En}};B.forEach(Dn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var On=e=>`- ${e}`,kn=e=>B.isFunction(e)||e===null||e===!1;function An(e,t){e=B.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!kn(r)&&(i=Dn[(n=String(r)).toLowerCase()],i===void 0))throw new H(`Unknown adapter '${n}'`);if(i&&(B.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new H(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
4
4
|
`+e.map(On).join(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libre-webui",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.3",
|
|
4
4
|
"description": "Privacy-first AI chat interface. Self-hosted, open source, extensible.",
|
|
5
5
|
"main": "electron/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"build": "npm run build:frontend && npm run build:backend",
|
|
29
29
|
"build:frontend": "cd frontend && npm run build",
|
|
30
30
|
"build:backend": "cd backend && npm run build",
|
|
31
|
-
"test:package": "node --test scripts/test-deprecated-dependencies.mjs && npm run build && node --test scripts/test-chat-context.mjs && node --test scripts/test-tts-routing.mjs && node --test scripts/test-package-layout.mjs && node --test scripts/test-release-notes.mjs && node --test scripts/test-release-status.mjs && node --test scripts/test-docker-layout.mjs && node --test scripts/test-electron-macos-signing.mjs",
|
|
31
|
+
"test:package": "node --test scripts/test-deprecated-dependencies.mjs && node --test scripts/test-helm-versioning.mjs && node --test scripts/test-tts-example-security.mjs && npm run build && node --test scripts/test-chat-context.mjs && node --test scripts/test-tts-routing.mjs && node --test scripts/test-package-layout.mjs && node --test scripts/test-release-notes.mjs && node --test scripts/test-release-status.mjs && node --test scripts/test-docker-layout.mjs && node --test scripts/test-electron-macos-signing.mjs && node --test scripts/test-homebrew-publishing.mjs",
|
|
32
32
|
"test:e2e": "npm run e2e --workspace=frontend",
|
|
33
33
|
"security:audit": "npm audit --audit-level=moderate",
|
|
34
34
|
"release:check": "npm run format:check && npm run lint && npm run security:audit && npm run test:package && npm run npm:publish:dry-run",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"homepage": "https://librewebui.org",
|
|
73
73
|
"engines": {
|
|
74
|
-
"node": ">=22.
|
|
74
|
+
"node": ">=22.22.0"
|
|
75
75
|
},
|
|
76
76
|
"overrides": {
|
|
77
77
|
"@electron/asar": "4.2.0",
|
|
@@ -79,8 +79,10 @@
|
|
|
79
79
|
"@electron/universal": "3.0.6",
|
|
80
80
|
"prismjs": "^1.30.0",
|
|
81
81
|
"@isaacs/brace-expansion": ">=5.0.1",
|
|
82
|
-
"react": "
|
|
83
|
-
"react-dom": "
|
|
82
|
+
"react": "19.2.8",
|
|
83
|
+
"react-dom": "19.2.8",
|
|
84
|
+
"@types/react": "19.2.17",
|
|
85
|
+
"@types/react-dom": "19.2.3",
|
|
84
86
|
"lodash": "^4.18.1",
|
|
85
87
|
"refractor": {
|
|
86
88
|
"prismjs": "^1.30.0"
|
|
@@ -91,10 +93,15 @@
|
|
|
91
93
|
"prismjs": "^1.30.0"
|
|
92
94
|
}
|
|
93
95
|
},
|
|
94
|
-
"minimatch": ">=10.2.1"
|
|
96
|
+
"minimatch": ">=10.2.1",
|
|
97
|
+
"brace-expansion": "5.0.8",
|
|
98
|
+
"js-yaml": "4.3.0",
|
|
99
|
+
"shell-quote": "1.10.0"
|
|
95
100
|
},
|
|
96
101
|
"devDependencies": {
|
|
97
102
|
"@eslint/js": "^9.39.4",
|
|
103
|
+
"@types/react": "19.2.17",
|
|
104
|
+
"@types/react-dom": "19.2.3",
|
|
98
105
|
"@typescript-eslint/eslint-plugin": "^8.51.0",
|
|
99
106
|
"@typescript-eslint/parser": "^8.34.0",
|
|
100
107
|
"concurrently": "^10.0.1",
|
|
@@ -129,9 +136,11 @@
|
|
|
129
136
|
"morgan": "^1.10.0",
|
|
130
137
|
"multer": "^2.2.0",
|
|
131
138
|
"pdfjs-dist": "^6.0.227",
|
|
139
|
+
"react": "19.2.8",
|
|
140
|
+
"react-dom": "19.2.8",
|
|
132
141
|
"sanitize-filename": "^1.6.3",
|
|
133
142
|
"sonner": "^2.0.7",
|
|
134
|
-
"tar": "
|
|
143
|
+
"tar": "7.5.22",
|
|
135
144
|
"uuid": "^14.0.0",
|
|
136
145
|
"ws": "^8.14.2"
|
|
137
146
|
}
|
package/plugins/anthropic.json
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"model_map": [
|
|
12
12
|
"claude-fable-5",
|
|
13
13
|
"claude-haiku-4-5-20251001",
|
|
14
|
-
"claude-opus-4-1-20250805",
|
|
15
14
|
"claude-opus-4-5-20251101",
|
|
16
15
|
"claude-opus-4-6",
|
|
17
16
|
"claude-opus-4-7",
|
|
18
17
|
"claude-opus-4-8",
|
|
18
|
+
"claude-opus-5",
|
|
19
19
|
"claude-sonnet-4-5-20250929",
|
|
20
20
|
"claude-sonnet-4-6",
|
|
21
21
|
"claude-sonnet-5"
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"name": "temperature",
|
|
33
33
|
"type": "number",
|
|
34
34
|
"label": "Temperature",
|
|
35
|
-
"description": "Controls randomness
|
|
35
|
+
"description": "Controls randomness on compatible legacy Claude models. Current models use their default sampling behavior.",
|
|
36
36
|
"default": 0.7,
|
|
37
37
|
"min": 0,
|
|
38
|
-
"max":
|
|
38
|
+
"max": 1
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"name": "max_tokens",
|
|
42
42
|
"type": "number",
|
|
43
43
|
"label": "Max Tokens",
|
|
44
|
-
"description": "Maximum
|
|
45
|
-
"default":
|
|
44
|
+
"description": "Maximum combined thinking and response tokens. Current Claude models may use part of this budget for adaptive thinking.",
|
|
45
|
+
"default": 16384,
|
|
46
46
|
"min": 1,
|
|
47
47
|
"max": 128000
|
|
48
48
|
},
|
|
@@ -50,29 +50,11 @@
|
|
|
50
50
|
"name": "top_p",
|
|
51
51
|
"type": "number",
|
|
52
52
|
"label": "Top P",
|
|
53
|
-
"description": "Nucleus sampling.
|
|
53
|
+
"description": "Nucleus sampling for compatible legacy Claude models. Current models use their default sampling behavior.",
|
|
54
54
|
"default": 1,
|
|
55
55
|
"min": 0,
|
|
56
56
|
"max": 1
|
|
57
57
|
},
|
|
58
|
-
{
|
|
59
|
-
"name": "frequency_penalty",
|
|
60
|
-
"type": "number",
|
|
61
|
-
"label": "Frequency Penalty",
|
|
62
|
-
"description": "Reduces repetition of frequent tokens.",
|
|
63
|
-
"default": 0,
|
|
64
|
-
"min": -2,
|
|
65
|
-
"max": 2
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"name": "presence_penalty",
|
|
69
|
-
"type": "number",
|
|
70
|
-
"label": "Presence Penalty",
|
|
71
|
-
"description": "Encourages the model to talk about new topics.",
|
|
72
|
-
"default": 0,
|
|
73
|
-
"min": -2,
|
|
74
|
-
"max": 2
|
|
75
|
-
},
|
|
76
58
|
{
|
|
77
59
|
"name": "stream",
|
|
78
60
|
"type": "boolean",
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "kimi-code",
|
|
3
|
+
"name": "Kimi Code (Moonshot AI)",
|
|
4
|
+
"type": "completion",
|
|
5
|
+
"endpoint": "https://api.kimi.com/coding/v1/chat/completions",
|
|
6
|
+
"auth": {
|
|
7
|
+
"header": "Authorization",
|
|
8
|
+
"prefix": "Bearer ",
|
|
9
|
+
"key_env": "KIMI_API_KEY"
|
|
10
|
+
},
|
|
11
|
+
"model_map": ["k3", "kimi-for-coding", "kimi-for-coding-highspeed"],
|
|
12
|
+
"variables": [
|
|
13
|
+
{
|
|
14
|
+
"name": "endpoint",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"label": "API Endpoint",
|
|
17
|
+
"description": "Override the Kimi Code OpenAI-compatible endpoint.",
|
|
18
|
+
"default": "https://api.kimi.com/coding/v1/chat/completions"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "temperature",
|
|
22
|
+
"type": "number",
|
|
23
|
+
"label": "Temperature",
|
|
24
|
+
"description": "Controls randomness. Lower values are more focused, higher values more creative.",
|
|
25
|
+
"default": 0.7,
|
|
26
|
+
"min": 0,
|
|
27
|
+
"max": 2
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "max_tokens",
|
|
31
|
+
"type": "number",
|
|
32
|
+
"label": "Max Output Tokens",
|
|
33
|
+
"description": "Maximum number of tokens to generate in the response.",
|
|
34
|
+
"default": 8192,
|
|
35
|
+
"min": 1,
|
|
36
|
+
"max": 128000
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "top_p",
|
|
40
|
+
"type": "number",
|
|
41
|
+
"label": "Top P",
|
|
42
|
+
"description": "Nucleus sampling. Lower values make output more focused.",
|
|
43
|
+
"default": 1,
|
|
44
|
+
"min": 0,
|
|
45
|
+
"max": 1
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "frequency_penalty",
|
|
49
|
+
"type": "number",
|
|
50
|
+
"label": "Frequency Penalty",
|
|
51
|
+
"description": "Reduces repetition of frequent tokens.",
|
|
52
|
+
"default": 0,
|
|
53
|
+
"min": -2,
|
|
54
|
+
"max": 2
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "presence_penalty",
|
|
58
|
+
"type": "number",
|
|
59
|
+
"label": "Presence Penalty",
|
|
60
|
+
"description": "Encourages the model to introduce new topics.",
|
|
61
|
+
"default": 0,
|
|
62
|
+
"min": -2,
|
|
63
|
+
"max": 2
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "stream",
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"label": "Stream Response",
|
|
69
|
+
"description": "Stream the response token by token.",
|
|
70
|
+
"default": true
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|