This commit is contained in:
1 parent
b9655a5ab1
commit
e292824161
122 files changed
+90002
-69
No files matched your search
@@ -0,0 +1,69 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Crbd1Tvi.js","assets/features-animation-BkV7kg8P.js","assets/gestures-BHfQC-M8.js","assets/react-vendor-jWT2yUdV.js","assets/qface-BZLvZXJ8.js","assets/react-hot-toast-cGcFZPSt.js","assets/react-router-dom-C6k78GT4.js","assets/web_login-CMycqFcX.js","assets/chunk-5PILOUBS-KHYNqMZE.js","assets/chunk-D5XJWRAV-DVN21qSw.js","assets/chunk-MLPFQTYO-DSnBqIsb.js","assets/index-BsnVex0g.js","assets/chunk-2QAN2V2R-B2qCPZrG.js","assets/chunk-SLABUSGS-Cmz8sGrU.js","assets/useFocusable-DA5Croun.js","assets/chunk-M3MASYO7-B4fjH-eW.js","assets/index-FvTxWQTZ.js","assets/iconBase-B7bT1FlI.js","assets/logo-kBMoCJob.js","assets/pure-XNiwTrk_.js","assets/chunk-EN4B57RQ-Ief8qCCd.js","assets/chunk-UX7UMZL5-CMHjUaC_.js","assets/useToggle-B3ZYBe5S.js","assets/usePress-BrNwsdVw.js","assets/icons-C0t6aNgu.js","assets/chunk-OPTZHMJX-CY9g90YL.js","assets/chunk-6LIX6LVT-B246pOuK.js","assets/chunk-WQVQ7P2I-BJd1EiqP.js","assets/useHover-DC1o5-bm.js","assets/proxy-BsRmjYPH.js","assets/layout-Buao20KT.js","assets/index-Dx1G_OVB.js","assets/chunk-B75B6XQK-aFCr8AK6.js","assets/chunk-FGM523TA-CgSvUh2a.js","assets/chunk-NAV3ZXLI-ChbUTMf0.js","assets/index-DE7yoXMZ.js","assets/chunk-IHO36JMK-DJPUeGG0.js","assets/chunk-RJKRL3AU-CjtrMR1U.js","assets/chunk-AXSF7SRE-Cr4elNVq.js","assets/index-DvErMbt6.js","assets/use-dialog-CRIMuzeE.js","assets/process_utils-Bjmp-2dU.js","assets/index-BBhZPeTB.js","assets/qq_manager-BfRTEAby.js","assets/qq_login-CEQa75PR.js","assets/chunk-ML27DD5T-ZFWrMOn-.js","assets/index-BV9-YCKp.js","assets/SelectionManager-Dl9uHsLK.js","assets/Item-D8Sud-UP.js","assets/index-D6HfLP9Q.js","assets/chunk-KVDW62ZT-CGYYmJoP.js","assets/DOMLayoutDelegate-DOgfSALU.js","assets/chunk-SXMLSBOY-NckgDZ9w.js","assets/chunk-KQ5CH2X7-DgF-_fDD.js","assets/chunk-2QQAR2RD-YG5LNmAk.js","assets/index-j_lE0ff_.js","assets/useRequest-B1BwPztr.js","assets/index-DPx4wqle.js","assets/chunk-J6JGI6RM-Djlxjgjl.js","assets/chunk-APIAPHLK-nGgOe_Nr.js","assets/index-_HIxriDC.js","assets/mirror_selector_modal-CyjkhfUx.js","assets/index-Bz8pD9tN.js","assets/use-config-Cu0QvgCe.js","assets/about-hJDPu37V.js","assets/index-BMgeCmqo.js","assets/react-hook-form-DTbqnRcd.js","assets/switch_card-5j4Yjx-K.js","assets/codemirror-core-782AVq39.js","assets/file_manager-BG19iFYW.js","assets/index-Mx73Ba53.js","assets/index-B7sEHDC8.js","assets/code_editor-TFSnOENo.js","assets/codemirror-lang-DFaD5e7G.js","assets/modal-CW_tV9ed.js","assets/modal-DqW0R8N9.css","assets/index-CNcy_3u9.js","assets/file_manager-DG9T_SkS.js","assets/index-CVa9XolR.js","assets/empty_state-BmDJmEaB.js","assets/logs-FVKktap5.js","assets/xterm-m1lN6Krd.js","assets/xterm-CFbL2ovg.css","assets/network-CV3GIG8e.js","assets/chunk-TE6SZS6W-DGowl7ka.js","assets/page_header-Dr2OAQrb.js","assets/terminal-RrXWbdeN.js","assets/plugin-y4YoZhit.js","assets/plugin_manager-OIjldREQ.js","assets/plugin_store-DB9s3Pf8.js","assets/extension-BuyZL8L1.js"])))=>i.map(i=>d[i]);
|
||||
var Pu=Object.defineProperty;var ku=(e,t,r)=>t in e?Pu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var fi=(e,t,r)=>ku(e,typeof t!="symbol"?t+"":t,r);import{a as Ru,r as C,j as I,R as ae,$ as y0,b as Ou}from"./react-vendor-jWT2yUdV.js";import{F as Nu}from"./react-hot-toast-cGcFZPSt.js";import{u as E0,R as Lu,a as Me,B as Mu}from"./react-router-dom-C6k78GT4.js";import{a as Iu,c as To,g as Hu}from"./qface-BZLvZXJ8.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();const ju="modulepreload",zu=function(e){return"/webui/"+e},di={},Pe=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let i=function(c){return Promise.all(c.map(l=>Promise.resolve(l).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),u=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=i(r.map(c=>{if(c=zu(c),c in di)return;di[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":ju,l||(f.as="script"),f.crossOrigin="",f.href=c,u&&f.setAttribute("nonce",u),document.head.appendChild(f),l)return new Promise((p,x)=>{f.addEventListener("load",p),f.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return o.then(i=>{for(const s of i||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};var Po={exports:{}},ko={};/**
|
||||
* @license React
|
||||
* use-sync-external-store-with-selector.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var xi;function Uu(){if(xi)return ko;xi=1;var e=Ru();function t(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,a=e.useEffect,i=e.useMemo,s=e.useDebugValue;return ko.useSyncExternalStoreWithSelector=function(u,c,l,d,f){var p=o(null);if(p.current===null){var x={hasValue:!1,value:null};p.current=x}else x=p.current;p=i(function(){function h(A){if(!w){if(w=!0,m=A,A=d(A),f!==void 0&&x.hasValue){var _=x.value;if(f(_,A))return g=_}return g=A}if(_=g,r(m,A))return _;var D=d(A);return f!==void 0&&f(_,D)?(m=A,_):(m=A,g=D)}var w=!1,m,g,y=l===void 0?null:l;return[function(){return h(c())},y===null?void 0:function(){return h(y())}]},[c,l,d,f]);var v=n(u,p[0],p[1]);return a(function(){x.hasValue=!0,x.value=v},[v]),s(v),v},ko}var pi;function Wu(){return pi||(pi=1,Po.exports=Uu()),Po.exports}var qu=Wu();function Vu(e){e()}function Ku(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Vu(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var hi={notify(){},get:()=>[]};function Gu(e,t){let r,n=hi,o=0,a=!1;function i(v){l();const h=n.subscribe(v);let w=!1;return()=>{w||(w=!0,h(),d())}}function s(){n.notify()}function u(){x.onStateChange&&x.onStateChange()}function c(){return a}function l(){o++,r||(r=e.subscribe(u),n=Ku())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=hi)}function f(){a||(a=!0,l())}function p(){a&&(a=!1,d())}const x={addNestedSub:i,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>n};return x}var Xu=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yu=Xu(),Zu=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Ju=Zu(),Qu=()=>Yu||Ju?C.useLayoutEffect:C.useEffect,ef=Qu(),Ro=Symbol.for("react-redux-context"),Oo=typeof globalThis<"u"?globalThis:{};function tf(){if(!C.createContext)return{};const e=Oo[Ro]??(Oo[Ro]=new Map);let t=e.get(C.createContext);return t||(t=C.createContext(null),e.set(C.createContext,t)),t}var _t=tf();function rf(e){const{children:t,context:r,serverState:n,store:o}=e,a=C.useMemo(()=>{const u=Gu(o);return{store:o,subscription:u,getServerState:n?()=>n:void 0}},[o,n]),i=C.useMemo(()=>o.getState(),[o]);ef(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),i!==o.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,i]);const s=r||_t;return C.createElement(s.Provider,{value:a},t)}var nf=rf;function La(e=_t){return function(){return C.useContext(e)}}var w0=La();function C0(e=_t){const t=e===_t?w0:La(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var of=C0();function af(e=_t){const t=e===_t?of:C0(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var Lm=af(),sf=(e,t)=>e===t;function cf(e=_t){const t=e===_t?w0:La(e),r=(n,o={})=>{const{equalityFn:a=sf}=typeof o=="function"?{equalityFn:o}:o,i=t(),{store:s,subscription:u,getServerState:c}=i;C.useRef(!0);const l=C.useCallback({[n.name](f){return n(f)}}[n.name],[n]),d=qu.useSyncExternalStoreWithSelector(u.addNestedSub,s.getState,c||s.getState,l,a);return C.useDebugValue(d),d};return Object.assign(r,{withTypes:()=>r}),r}var Mm=cf();const lf=()=>I.jsxs("div",{className:"fixed inset-0 w-full h-full -z-10 overflow-hidden bg-gradient-to-br from-[#fffafc] via-white to-[#f3f9fd] dark:from-[#0b0b12] dark:via-[#101019] dark:to-[#0a1015]",children:[I.jsx("div",{className:"sc-float-slow absolute -top-[14%] -left-[8%] w-[520px] h-[520px] rounded-full bg-primary-200/25 blur-[110px]"}),I.jsx("div",{className:"sc-float-slower absolute top-[16%] -right-[10%] w-[440px] h-[440px] rounded-full bg-secondary-200/25 blur-[100px]"}),I.jsx("div",{className:"sc-float-slow absolute -bottom-[16%] left-[22%] w-[600px] h-[600px] rounded-full bg-pink-200/20 blur-[120px] dark:bg-primary-900/20"}),I.jsx("div",{className:"absolute inset-0 opacity-[0.35] dark:opacity-[0.18]",style:{backgroundImage:"linear-gradient(to right, rgba(148,163,184,0.10) 1px, transparent 1px), linear-gradient(to bottom, rgba(148,163,184,0.10) 1px, transparent 1px)",backgroundSize:"44px 44px",maskImage:"radial-gradient(circle at 50% 30%, black 0%, transparent 78%)",WebkitMaskImage:"radial-gradient(circle at 50% 30%, black 0%, transparent 78%)"}}),I.jsx("div",{className:"absolute inset-x-0 top-0 h-40 bg-gradient-to-b from-white/70 to-transparent dark:from-white/[0.04]"})]});function sr(e){return C.forwardRef(e)}var $0=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,a)=>a in e?{...o,[a]:e[a]}:o,{});return r?[Object.keys(e).filter(a=>!t.includes(a)).reduce((a,i)=>({...a,[i]:e[i]}),{}),n]:[e,n]},Wr=["small","medium","large"],vi={theme:{opacLine truncated
|
||||
* @license React
|
||||
* react.development.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*//**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/function fd(e,t,r){return Math.min(Math.max(e,t),r)}function dd(e){const[t,r]=$0(e,Ci.variantKeys),{children:n,className:o,classNames:a,label:i,...s}=t,u=C.useMemo(()=>Ci({...r}),[z0(r)]),c=nr(a==null?void 0:a.base,o),l=i||n,d=C.useMemo(()=>l&&typeof l=="string"?l:s["aria-label"]?"":"Loading",[n,l,s["aria-label"]]),f=C.useCallback(()=>({"aria-label":d,className:u.base({class:c}),...s}),[d,u,c,s]);return{label:l,slots:u,classNames:a,getSpinnerProps:f}}var U0=sr((e,t)=>{const{slots:r,classNames:n,label:o,getSpinnerProps:a}=dd({...e});return I.jsxs("div",{ref:t,...a(),children:[I.jsxs("div",{className:r.wrapper({class:n==null?void 0:n.wrapper}),children:[I.jsx("i",{className:r.circle1({class:n==null?void 0:n.circle1})}),I.jsx("i",{className:r.circle2({class:n==null?void 0:n.circle2})})]}),o&&I.jsx("span",{className:r.label({class:n==null?void 0:n.label}),children:o})]})});U0.displayName="HeroUI.Spinner";var W0=U0;function q0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=q0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ha(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=q0(e))&&(n&&(n+=" "),n+=t);return n}const xd=({loading:e})=>I.jsx("div",{className:Ha("absolute inset-0 z-30 flex justify-center items-center rounded-2xl","bg-white/40 dark:bg-black/30 backdrop-blur-md",{hidden:!e}),children:I.jsxs("div",{className:"px-6 py-5 rounded-2xl bg-white/80 dark:bg-white/[0.06] border border-white/70 dark:border-white/10 shadow-lg flex flex-col items-center gap-3",children:[I.jsx(W0,{size:"lg",color:"primary"}),I.jsx("span",{className:"text-[10px] text-default-500 tracking-[0.25em] uppercase",children:"Loading"})]})});function V0(e,t){window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}function Xm(e,t){const[r,n]=C.useState(e);return C.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}const Si=(e,t)=>{const r=JSON.stringify(t);window.localStorage.setItem(e,r),V0(e,r)},pd=e=>{window.localStorage.removeItem(e),V0(e,null)},Bi=e=>window.localStorage.getItem(e),hd=e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)),vd=()=>{throw Error("useLocalStorage is a client-only hook")};function K0(e,t){const r=()=>Bi(e),n=C.useSyncExternalStore(hd,r,vd),o=C.useCallback(a=>{try{const i=typeof a=="function"?a(JSON.parse(n)):a;i==null?pd(e):Si(e,i)}catch(i){console.warn(i)}},[e,n]);return C.useEffect(()=>{Bi(e)===null&&typeof t<"u"&&Si(e,t)},[e,t]),[n?JSON.parse(n):t,o]}const Et={key:"theme",light:"light",dark:"dark"},bd=e=>{const[t,r]=K0(Et.key,e),n=C.useMemo(()=>t===Et.dark,[t]),o=C.useMemo(()=>t===Et.light,[t]),a=c=>{r(c),document.documentElement.classList.remove(Et.light,Et.dark),document.documentElement.classList.add(c)},i=()=>a(Et.light),s=()=>a(Et.dark),u=()=>t===Et.dark?i():s();return C.useEffect(()=>{a(t)}),{theme:t,isDark:n,isLight:o,setLightTheme:i,setDarkTheme:s,toggleTheme:u}},gd=()=>{const{isDark:e}=bd();return I.jsx(Nu,{toastOptions:{style:{borderRadius:"20px",background:e?"#333":"#fff",color:e?"#fff":"#333",maxWidth:"400px",wordBreak:"break-word"}}})};function ja(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=C.createContext(void 0);o.displayName=n;function a(){var i;const s=C.useContext(o);if(!s&&t){const u=new Error(r);throw u.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,u,a),u}return s}return[o.Provider,a,o]}function Ym(e){return{UNSAFE_getDOMNode(){return e.current}}}function Or(e){const t=C.useRef(null);return C.useImperativeHandle(e,()=>t.current),t}var md=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","steLine truncated
|
||||
[data-motion-pop-id="${o}"] {
|
||||
position: absolute !important;
|
||||
width: ${c}px !important;
|
||||
height: ${l}px !important;
|
||||
${x}px !important;
|
||||
top: ${d}px !important;
|
||||
}
|
||||
`),()=>{h.contains(v)&&h.removeChild(v)}},[t]),I.jsx(Yp,{isPresent:t,childRef:a,sizeRef:i,children:C.cloneElement(e,{ref:u})})}const Jp=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:a,mode:i,anchorX:s,root:u})=>{const c=ho(Qp),l=C.useId();let d=!0,f=C.useMemo(()=>(d=!1,{id:l,initial:t,isPresent:r,custom:o,onExitComplete:p=>{c.set(p,!0);for(const x of c.values())if(!x)return;n&&n()},register:p=>(c.set(p,!1),()=>c.delete(p))}),[r,c,n]);return a&&d&&(f={...f}),C.useMemo(()=>{c.forEach((p,x)=>c.set(x,!1))},[r]),C.useEffect(()=>{!r&&!c.size&&n&&n()},[r]),i==="popLayout"&&(e=I.jsx(Zp,{isPresent:r,anchorX:s,root:u,children:e})),I.jsx(vo.Provider,{value:f,children:e})};function Qp(){return new Map}function eh(e=!0){const t=C.useContext(vo);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,a=C.useId();C.useEffect(()=>{if(e)return o(a)},[e]);const i=C.useCallback(()=>e&&n&&n(a),[a,n,e]);return!r&&n?[!1,i]:[!0]}const Zr=e=>e.key||"";function Ji(e){const t=[];return C.Children.forEach(e,r=>{C.isValidElement(r)&&t.push(r)}),t}const gl=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:a="sync",propagate:i=!1,anchorX:s="left",root:u})=>{const[c,l]=eh(i),d=C.useMemo(()=>Ji(e),[e]),f=i&&!c?[]:d.map(Zr),p=C.useRef(!0),x=C.useRef(d),v=ho(()=>new Map),[h,w]=C.useState(d),[m,g]=C.useState(d);dl(()=>{p.current=!1,x.current=d;for(let _=0;_<m.length;_++){const D=Zr(m[_]);f.includes(D)?v.delete(D):v.get(D)!==!0&&v.set(D,!1)}},[m,f.length,f.join("-")]);const y=[];if(d!==h){let _=[...d];for(let D=0;D<m.length;D++){const b=m[D],k=Zr(b);f.includes(k)||(_.splice(D,0,b),y.push(b))}return a==="wait"&&y.length&&(_=y),g(Ji(_)),w(d),null}const{forceRender:A}=C.useContext(ul);return I.jsx(I.Fragment,{children:m.map(_=>{const D=Zr(_),b=i&&!c?!1:d===m||f.includes(D),k=()=>{if(v.has(D))v.set(D,!0);else return;let F=!0;v.forEach(S=>{S||(F=!1)}),F&&(A==null||A(),g(x.current),i&&(l==null||l()),n&&n())};return I.jsx(Jp,{isPresent:b,initial:!p.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:a,root:u,onExitComplete:b?void 0:k,anchorX:s,children:_},D)})})},Ja=C.createContext({strict:!1}),Qi={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Zn={};for(const e in Qi)Zn[e]={isEnabled:t=>Qi[e].some(r=>!!t[r])};function ma(e){for(const t in e)Zn[t]={...Zn[t],...e[t]}}function ya({children:e,features:t,strict:r=!1}){const[,n]=C.useState(!zo(t)),o=C.useRef(void 0);if(!zo(t)){const{renderer:a,...i}=t;o.current=a,ma(i)}return C.useEffect(()=>{zo(t)&&t().then(({renderer:a,...i})=>{ma(i),o.current=a,n(!0)})},[]),I.jsx(Ja.Provider,{value:{renderer:o.current,strict:r},children:e})}function zo(e){return typeof e=="function"}const th=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Jn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||th.has(e)}let ml=e=>!Jn(e);function yl(e){typeof e=="function"&&(ml=t=>t.startsWith("on")?!Jn(t):e(t))}try{yl(require("@emotion/is-prop-valid").default)}catch{}function rh(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(ml(o)||r===!0&&Jn(o)||!t&&!Jn(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function nh({children:e,isValidProp:t,...r}){t&&yl(t),r={...C.useContext(Tr),...r},r.isStatic=ho(()=>r.isStatic);const n=C.useMemo(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return I.jsx(Tr.Provider,{value:n,children:e})}const go=C.createContext({});function El(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ea(e){return typeof e=="string"||Array.isArray(e)}const oh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ah=["initial",...oh];function Qa(e){return El(e.animate)||ah.some(t=>Ea(e[t]))}function ih(e){return!!(Qa(e)||e.variants)}function sh(e,t){if(Qa(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Ea(r)?r:void 0,animate:Ea(n)?n:void 0}}return e.inherit!==!1?t:{}}function ch(e){const{initial:t,animate:r}=sh(e,C.useContext(go));return C.useMemo(()=>({initial:t,animate:r}),[es(t),es(r)])}function es(e){return Array.isArray(e)
Line truncated
|
||||
(c) 2012 by Cédric Mesnil. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/return(function(n){var o=r,a=o.lib,i=a.WordArray,s=a.Hasher,u=o.algo,c=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=i.create([0,1518500249,1859775393,2400959708,2840853838]),x=i.create([1352829926,1548603684,1836072691,2053994217,0]),v=u.RIPEMD160=s.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(_,D){for(var b=0;b<16;b++){var k=D+b,F=_[k];_[k]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360}var S=this._hash.words,B=p.words,$=x.words,O=c.words,P=l.words,H=d.words,W=f.words,j,q,Z,E,T,R,L,V,Y,ie;R=j=S[0],L=q=S[1],V=Z=S[2],Y=E=S[3],ie=T=S[4];for(var K,b=0;b<80;b+=1)K=j+_[D+O[b]]|0,b<16?K+=h(q,Z,E)+B[0]:b<32?K+=w(q,Z,E)+B[1]:b<48?K+=m(q,Z,E)+B[2]:b<64?K+=g(q,Z,E)+B[3]:K+=y(q,Z,E)+B[4],K=K|0,K=A(K,H[b]),K=K+T|0,j=T,T=E,E=A(Z,10),Z=q,q=K,K=R+_[D+P[b]]|0,b<16?K+=y(L,V,Y)+$[0]:b<32?K+=g(L,V,Y)+$[1]:b<48?K+=m(L,V,Y)+$[2]:b<64?K+=w(L,V,Y)+$[3]:K+=h(L,V,Y)+$[4],K=K|0,K=A(K,W[b]),K=K+ie|0,R=ie,ie=Y,Y=A(V,10),V=L,L=K;K=S[1]+Z+Y|0,S[1]=S[2]+E+ie|0,S[2]=S[3]+T+R|0,S[3]=S[4]+j+L|0,S[4]=S[0]+q+V|0,S[0]=K},_doFinalize:function(){var _=this._data,D=_.words,b=this._nDataBytes*8,k=_.sigBytes*8;D[k>>>5]|=128<<24-k%32,D[(k+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,_.sigBytes=(D.length+1)*4,this._process();for(var F=this._hash,S=F.words,B=0;B<5;B++){var $=S[B];S[B]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}return F},clone:function(){var _=s.clone.call(this);return _._hash=this._hash.clone(),_}});function h(_,D,b){return _^D^b}function w(_,D,b){return _&D|~_&b}function m(_,D,b){return(_|~D)^b}function g(_,D,b){return _&b|D&~b}function y(_,D,b){return _^(D|~b)}function A(_,D){return _<<D|_>>>32-D}o.RIPEMD160=s._createHelper(v),o.HmacRIPEMD160=s._createHmacHelper(v)})(),r.RIPEMD160})})(En)),En.exports}var wn={exports:{}},lb=wn.exports,Rs;function ii(){return Rs||(Rs=1,(function(e,t){(function(r,n){e.exports=n(ue())})(lb,function(r){(function(){var n=r,o=n.lib,a=o.Base,i=n.enc,s=i.Utf8,u=n.algo;u.HMAC=a.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=s.parse(l));var d=c.blockSize,f=d*4;l.sigBytes>f&&(l=c.finalize(l)),l.clamp();for(var p=this._oKey=l.clone(),x=this._iKey=l.clone(),v=p.words,h=x.words,w=0;w<d;w++)v[w]^=1549556828,h[w]^=909522486;p.sigBytes=x.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var l=this._hasher,d=l.finalize(c);l.reset();var f=l.finalize(this._oKey.clone().concat(d));return f}})})()})})(wn)),wn.exports}var Cn={exports:{}},ub=Cn.exports,Os;function fb(){return Os||(Os=1,(function(e,t){(function(r,n,o){e.exports=n(ue(),ai(),ii())})(ub,function(r){return(function(){var n=r,o=n.lib,a=o.Base,i=o.WordArray,s=n.algo,u=s.SHA256,c=s.HMAC,l=s.PBKDF2=a.extend({cfg:a.extend({keySize:128/32,hasher:u,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,f){for(var p=this.cfg,x=c.create(p.hasher,d),v=i.create(),h=i.create([1]),w=v.words,m=h.words,g=p.keySize,y=p.iterations;w.length<g;){var A=x.update(f).finalize(h);x.reset();for(var _=A.words,D=_.length,b=A,k=1;k<y;k++){b=x.finalize(b),x.reset();for(var F=b.words,S=0;S<D;S++)_[S]^=F[S]}v.concat(A),m[0]++}return v.sigBytes=g*4,v}});n.PBKDF2=function(d,f,p){return l.create(p).compute(d,f)}})(),r.PBKDF2})})(Cn)),Cn.exports}var $n={exports:{}},db=$n.exports,Ns;function Dt(){return Ns||(Ns=1,(function(e,t){(function(r,n,o){e.exports=n(ue(),nu(),ii())})(db,function(r){return(function(){var n=r,o=n.lib,a=o.Base,i=o.WordArray,s=n.algo,u=s.MD5,c=s.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:u,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,d){for(var f,p=this.cfg,x=p.hasher.create(),v=i.create(),h=v.words,w=p.keySize,m=p.iterations;h.length<w;){f&&x.update(f),f=x.update(l).finalize(d),x.reset();for(var g=1;g<m;g++)f=x.finalize(f),x.reset();v.concat(f)}return v.sigBytes=w*4,v}});n.EvpKDF=function(l,d,f){return c.create(f).compute(l,d)}})(),r.EvpKDF})})($n)),$n.exports}var An={exports:{}},xb=An.exports,Ls;function ke(){return Ls||(Ls=1,(function(e,t){(function(r,n,o){e.exports=n(Line truncated
|
||||
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
||||
* derived from CryptoJS.mode.CTR
|
||||
* Jan Hruby jhruby.web@gmail.com
|
||||
*/return r.mode.CTRGladman=(function(){var n=r.lib.BlockCipherMode.extend();function o(s){if((s>>24&255)===255){var u=s>>16&255,c=s>>8&255,l=s&255;u===255?(u=0,c===255?(c=0,l===255?l=0:++l):++c):++u,s=0,s+=u<<16,s+=c<<8,s+=l}else s+=1<<24;return s}function a(s){return(s[0]=o(s[0]))===0&&(s[1]=o(s[1])),s}var i=n.Encryptor=n.extend({processBlock:function(s,u){var c=this._cipher,l=c.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),a(f);var p=f.slice(0);c.encryptBlock(p,0);for(var x=0;x<l;x++)s[u+x]^=p[x]}});return n.Decryptor=i,n})(),r.mode.CTRGladman})})(_n)),_n.exports}var Fn={exports:{}},yb=Fn.exports,js;function Eb(){return js||(js=1,(function(e,t){(function(r,n,o){e.exports=n(ue(),ke())})(yb,function(r){return r.mode.OFB=(function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(a,i){var s=this._cipher,u=s.blockSize,c=this._iv,l=this._keystream;c&&(l=this._keystream=c.slice(0),this._iv=void 0),s.encryptBlock(l,0);for(var d=0;d<u;d++)a[i+d]^=l[d]}});return n.Decryptor=o,n})(),r.mode.OFB})})(Fn)),Fn.exports}var Dn={exports:{}},wb=Dn.exports,zs;function Cb(){return zs||(zs=1,(function(e,t){(function(r,n,o){e.exports=n(ue(),ke())})(wb,function(r){return r.mode.ECB=(function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(o,a){this._cipher.encryptBlock(o,a)}}),n.Decryptor=n.extend({processBlock:function(o,a){this._cipher.decryptBlock(o,a)}}),n})(),r.mode.ECB})})(Dn)),Dn.exports}var Tn={exports:{}},$b=Tn.exports,Us;function Ab(){return Us||(Us=1,(function(e,t){(function(r,n,o){e.exports=n(ue(),ke())})($b,function(r){return r.pad.AnsiX923={pad:function(n,o){var a=n.sigBytes,i=o*4,s=i-a%i,u=a+s-1;n.clamp(),n.words[u>>>2]|=s<<24-u%4*8,n.sigBytes+=s},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Ansix923})})(Tn)),Tn.exports}var Pn={exports:{}},Sb=Pn.exports,Ws;function Bb(){return Ws||(Ws=1,(function(e,t){(function(r,n,o){e.exports=n(ue(),ke())})(Sb,function(r){return r.pad.Iso10126={pad:function(n,o){var a=o*4,i=a-n.sigBytes%a;n.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Iso10126})})(Pn)),Pn.exports}var kn={exports:{}},_b=kn.exports,qs;function Fb(){return qs||(qs=1,(function(e,t){(function(r,n,o){e.exports=n(ue(),ke())})(_b,function(r){return r.pad.Iso97971={pad:function(n,o){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,o)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})})(kn)),kn.exports}var Rn={exports:{}},Db=Rn.exports,Vs;function Tb(){return Vs||(Vs=1,(function(e,t){(function(r,n,o){e.exports=n(ue(),ke())})(Db,function(r){return r.pad.ZeroPadding={pad:function(n,o){var a=o*4;n.clamp(),n.sigBytes+=a-(n.sigBytes%a||a)},unpad:function(n){for(var o=n.words,a=n.sigBytes-1,a=n.sigBytes-1;a>=0;a--)if(o[a>>>2]>>>24-a%4*8&255){n.sigBytes=a+1;break}}},r.pad.ZeroPadding})})(Rn)),Rn.exports}var On={exports:{}},Pb=On.exports,Ks;function kb(){return Ks||(Ks=1,(function(e,t){(function(r,n,o){e.exports=n(ue(),ke())})(Pb,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})})(On)),On.exports}var Nn={exports:{}},Rb=Nn.exports,Gs;function Ob(){return Gs||(Gs=1,(function(e,t){(function(r,n,o){e.exports=n(ue(),ke())})(Rb,function(r){return(function(n){var o=r,a=o.lib,i=a.CipherParams,s=o.enc,u=s.Hex,c=o.format;c.Hex={stringify:function(l){return l.ciphertext.toString(u)},parse:function(l){var d=u.parse(l);return i.create({ciphertext:d})}}})(),r.format.Hex})})(Nn)),Nn.exports}var Ln={exports:{}},Nb=Ln.exports,Xs;function Lb(){return Xs||(Xs=1,(function(e,t){(function(r,n,o){e.exports=n(ue(),Kt(),Gt(),Dt(),ke())})(Nb,function(r){return(function(){var n=r,o=n.lib,a=o.BlockCipher,i=n.algo,s=[],u=[],c=[],l=[],d=[],f=[],p=[],x=[],v=[],h=[];(function(){for(var g=[],y=0;y<256;y++)y<128?g[y]=y<<1:g[y]=y<<1^283;for(var A=0,_=0,y=0;y<256;y++){var D=_^_<<1^_<<2^_<<3^_<<4;D=D>>>8^D&255^99,s[A]=D,u[D]=A;var b=g[A],k=g[b],F=g[k],S=g[D]*257^D*16843008;c[A]=S<<24|S>>>8,l[A]=S<<16|S>>>16,d[A]=S<<8|S>>>24,f[A]=S;var S=F*16843009^k*65537^b*257^A*16843008;p[D]=S<<24|S>>>8,x[D]=S<<16|S>>>16,v[D]=S<<8|S>>>24,h[D]=S,A?(A=b^g[g[g[F^b]]],_^=g[g[_]]):A=_=1}})();var w=[0,1,2,4,8,16,32,64,128,27,54],m=i.AES=a.extend({_doReset:function(){var g;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,A=y.words,_=y.sigBytes/4,D=this._nRounds=_+6,b=(D+1)*4,k=this._keySchedule=[],F=0;F<b;F++)F<_?k[F]=A[F]:(g=k[F-1],F%_?_>6&&F%_==4&&(g=s[g>>>24]<<24|s[g>>>16&255]<<16|s[g>>>8&255]<<8|s[g&255]):(g=g<<8|g>>>24,g=s[g>>>24]<<24|s[g>>>16&255]<<16|s[g>>>8&255]<<8|s[g&255],g^=w[F/_|0]<<24),k[F]=k[F-_]^g);for(var S=this._invKeySchedule=[],B=0;B<b;B++){var F=b-B;if(B%4)var g=k[F];else var g=k[F-4];B<4||F<=4?S[B]=g:S[B]=p[s[g>>>24]]^x[s[g>>>16&255]]^v[s[g>>>8&255]]^h[s[g&255]]}}},encryptBlock:Line truncated
|
||||
* eventsource.js
|
||||
* Available under MIT License (MIT)
|
||||
* https://github.com/Yaffle/EventSource/
|
||||
*/var Jb=Cr.exports,r0;function Qb(){return r0||(r0=1,(function(e,t){(function(r){var n=r.setTimeout,o=r.clearTimeout,a=r.XMLHttpRequest,i=r.XDomainRequest,s=r.ActiveXObject,u=r.EventSource,c=r.document,l=r.Promise,d=r.fetch,f=r.Response,p=r.TextDecoder,x=r.TextEncoder,v=r.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(M){c.readyState="complete"},!1)),a==null&&s!=null&&(a=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(M){function z(){}return z.prototype=M,new z}),Date.now||(Date.now=function(){return new Date().getTime()}),v==null){var h=d;d=function(M,z){var G=z.signal;return h(M,{headers:z.headers,credentials:z.credentials,cache:z.cache}).then(function(U){var Q=U.body.getReader();return G._reader=Q,G._aborted&&G._reader.cancel(),{status:U.status,statusText:U.statusText,headers:U.headers,body:{getReader:function(){return Q}}}})},v=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function w(){this.bitsNeeded=0,this.codePoint=0}w.prototype.decode=function(M){function z(xe,fe,ee){if(ee===1)return xe>=128>>fe&&xe<<fe<=2047;if(ee===2)return xe>=2048>>fe&&xe<<fe<=55295||xe>=57344>>fe&&xe<<fe<=65535;if(ee===3)return xe>=65536>>fe&&xe<<fe<=1114111;throw new Error}function G(xe,fe){if(xe===6)return fe>>6>15?3:fe>31?2:1;if(xe===12)return fe>15?3:2;if(xe===18)return 3;throw new Error}for(var U=65533,Q="",X=this.bitsNeeded,J=this.codePoint,de=0;de<M.length;de+=1){var se=M[de];X!==0&&(se<128||se>191||!z(J<<6|se&63,X-6,G(X,J)))&&(X=0,J=U,Q+=String.fromCharCode(J)),X===0?(se>=0&&se<=127?(X=0,J=se):se>=192&&se<=223?(X=6,J=se&31):se>=224&&se<=239?(X=12,J=se&15):se>=240&&se<=247?(X=18,J=se&7):(X=0,J=U),X!==0&&!z(J,X,G(X,J))&&(X=0,J=U)):(X-=6,J=J<<6|se&63),X===0&&(J<=65535?Q+=String.fromCharCode(J):(Q+=String.fromCharCode(55296+(J-65535-1>>10)),Q+=String.fromCharCode(56320+(J-65535-1&1023))))}return this.bitsNeeded=X,this.codePoint=J,Q};var m=function(){try{return new p().decode(new x().encode("test"),{stream:!0})==="test"}catch(M){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+M)}return!1};(p==null||x==null||!m())&&(p=w);var g=function(){};function y(M){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=g,this.onload=g,this.onerror=g,this.onreadystatechange=g,this._contentType="",this._xhr=M,this._sendTimeout=0,this._abort=g}y.prototype.open=function(M,z){this._abort(!0);var G=this,U=this._xhr,Q=1,X=0;this._abort=function(ee){G._sendTimeout!==0&&(o(G._sendTimeout),G._sendTimeout=0),(Q===1||Q===2||Q===3)&&(Q=4,U.onload=g,U.onerror=g,U.onabort=g,U.onprogress=g,U.onreadystatechange=g,U.abort(),X!==0&&(o(X),X=0),ee||(G.readyState=4,G.onabort(null),G.onreadystatechange())),Q=0};var J=function(){if(Q===1){var ee=0,be="",Ke=void 0;if("contentType"in U)ee=200,be="OK",Ke=U.contentType;else try{ee=U.status,be=U.statusText,Ke=U.getResponseHeader("Content-Type")}catch{ee=0,be="",Ke=void 0}ee!==0&&(Q=2,G.readyState=2,G.status=ee,G.statusText=be,G._contentType=Ke,G.onreadystatechange())}},de=function(){if(J(),Q===2||Q===3){Q=3;var ee="";try{ee=U.responseText}catch{}G.readyState=3,G.responseText=ee,G.onprogress()}},se=function(ee,be){if((be==null||be.preventDefault==null)&&(be={preventDefault:g}),de(),Q===1||Q===2||Q===3){if(Q=4,X!==0&&(o(X),X=0),G.readyState=4,ee==="load")G.onload(be);else if(ee==="error")G.onerror(be);else if(ee==="abort")G.onabort(be);else throw new TypeError;G.onreadystatechange()}},xe=function(ee){U!=null&&(U.readyState===4?(!("onload"in U)||!("onerror"in U)||!("onabort"in U))&&se(U.responseText===""?"error":"load",ee):U.readyState===3?"onprogress"in U||de():U.readyState===2&&J())},fe=function(){X=n(function(){fe()},500),U.readyState===3&&de()};"onload"in U&&(U.onload=function(ee){se("load",ee)}),"onerror"in U&&(U.onerror=function(ee){se("error",ee)}),"onabort"in U&&(U.onabort=function(ee){se("abort",ee)}),"onprogress"in U&&(U.onprogress=de),"onreadystatechange"in U&&(U.onreadystatechange=function(ee){xe(ee)}),("contentType"in U||!("ontimeout"in a.prototype))&&(z+=(z.indexOf("?")===-1?"?":"&")+"padding=true"),U.open(M,z,!0),"readyState"in U&&(X=n(function(){fe()},0))},y.prototype.abort=function(){this._abort(!1)},y.prototype.getResponseHeader=function(M){return this._contentType},y.prototype.setRequestHeader=function(M,z){var G=this._xhr;"setRequestHeader"in G&&G.setRequestHeader(M,z)},y.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},y.prototype.send=function(){if((!("ontimeout"in a.prototype)||!("sendAsBinary"in a.prototype)&&!("mozAnon"in a.prototype))&&c!=null&&c.readyState!=null&&c.readyState!=="complete"){var M=this;M._sendTimeout=n(function(){M._sendTimeout=0,M.send()},4);return}vLine truncated
|
||||
`),U=0;U<G.length;U+=1){var Q=G[U],X=Q.split(": "),J=X.shift(),de=X.join(": ");z[A(J)]=de}this._map=z}_.prototype.get=function(M){return this._map[A(M)]},a!=null&&a.HEADERS_RECEIVED==null&&(a.HEADERS_RECEIVED=2);function D(){}D.prototype.open=function(M,z,G,U,Q,X,J){M.open("GET",Q);var de=0;M.onprogress=function(){var xe=M.responseText,fe=xe.slice(de);de+=fe.length,G(fe)},M.onerror=function(xe){xe.preventDefault(),U(new Error("NetworkError"))},M.onload=function(){U(null)},M.onabort=function(){U(null)},M.onreadystatechange=function(){if(M.readyState===a.HEADERS_RECEIVED){var xe=M.status,fe=M.statusText,ee=M.getResponseHeader("Content-Type"),be=M.getAllResponseHeaders();z(xe,fe,ee,new _(be))}},M.withCredentials=X;for(var se in J)Object.prototype.hasOwnProperty.call(J,se)&&M.setRequestHeader(se,J[se]);return M.send(),M};function b(M){this._headers=M}b.prototype.get=function(M){return this._headers.get(M)};function k(){}k.prototype.open=function(M,z,G,U,Q,X,J){var de=null,se=new v,xe=se.signal,fe=new p;return d(Q,{headers:J,credentials:X?"include":"same-origin",signal:xe,cache:"no-store"}).then(function(ee){return de=ee.body.getReader(),z(ee.status,ee.statusText,ee.headers.get("Content-Type"),new b(ee.headers)),new l(function(be,Ke){var mt=function(){de.read().then(function(Ae){if(Ae.done)be(void 0);else{var Ee=fe.decode(Ae.value,{stream:!0});G(Ee),mt()}}).catch(function(Ae){Ke(Ae)})};mt()})}).catch(function(ee){if(ee.name!=="AbortError")return ee}).then(function(ee){U(ee)}),{abort:function(){de!=null&&de.cancel(),se.abort()}}};function F(){this._listeners=Object.create(null)}function S(M){n(function(){throw M},0)}F.prototype.dispatchEvent=function(M){M.target=this;var z=this._listeners[M.type];if(z!=null)for(var G=z.length,U=0;U<G;U+=1){var Q=z[U];try{typeof Q.handleEvent=="function"?Q.handleEvent(M):Q.call(this,M)}catch(X){S(X)}}},F.prototype.addEventListener=function(M,z){M=String(M);var G=this._listeners,U=G[M];U==null&&(U=[],G[M]=U);for(var Q=!1,X=0;X<U.length;X+=1)U[X]===z&&(Q=!0);Q||U.push(z)},F.prototype.removeEventListener=function(M,z){M=String(M);var G=this._listeners,U=G[M];if(U!=null){for(var Q=[],X=0;X<U.length;X+=1)U[X]!==z&&Q.push(U[X]);Q.length===0?delete G[M]:G[M]=Q}};function B(M){this.type=M,this.target=void 0}function $(M,z){B.call(this,M),this.data=z.data,this.lastEventId=z.lastEventId}$.prototype=Object.create(B.prototype);function O(M,z){B.call(this,M),this.status=z.status,this.statusText=z.statusText,this.headers=z.headers}O.prototype=Object.create(B.prototype);function P(M,z){B.call(this,M),this.error=z.error}P.prototype=Object.create(B.prototype);var H=-1,W=0,j=1,q=2,Z=-1,E=0,T=1,R=2,L=3,V=/^text\/event\-stream(;.*)?$/i,Y=1e3,ie=18e6,K=function(M,z){var G=M==null?z:parseInt(M,10);return G!==G&&(G=z),re(G)},re=function(M){return Math.min(Math.max(M,Y),ie)},pe=function(M,z,G){try{typeof z=="function"&&z.call(M,G)}catch(U){S(U)}};function $e(M,z){F.call(this),z=z||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,Fe(this,M,z)}function nt(){return a!=null&&"withCredentials"in a.prototype||i==null?new a:new i}var Ne=d!=null&&f!=null&&"body"in f.prototype;function Fe(M,z,G){z=String(z);var U=!!G.withCredentials,Q=G.lastEventIdQueryParameterName||"lastEventId",X=re(1e3),J=K(G.heartbeatTimeout,45e3),de="",se=X,xe=!1,fe=0,ee=G.headers||{},be=G.Transport,Ke=Ne&&be==null?void 0:new y(be!=null?new be:nt()),mt=be!=null&&typeof be!="string"?new be:Ke==null?new k:new D,Ae=void 0,Ee=0,We=H,ut="",Tt="",Je="",Xt="",De=E,ur=0,at=0,Do=function(we,Ce,He,Le){if(We===W)if(we===200&&He!=null&&V.test(He)){We=j,xe=Date.now(),se=X,M.readyState=j;var Re=new O("open",{status:we,statusText:Ce,headers:Le});M.dispatchEvent(Re),pe(M,M.onopen,Re)}else{var Se="";we!==200?(Ce&&(Ce=Ce.replace(/\s+/g," ")),Se="EventSource's response has a status "+we+" "+Ce+" that is not 200. Aborting the connection."):Se="EventSource's response has a Content-Type specifying an unsupported type: "+(He==null?"-":He.replace(/\s+/g," "))+". Aborting the connection.",fr();var Re=new O("error",{status:we,statusText:Ce,headers:Le});M.dispatchEvent(Re),pe(M,M.onerror,Re),console.error(Se)}},zr=function(we){if(We===j){for(var Ce=-1,He=0;He<we.length;He+=1){var Le=we.charCodeAt(He);(Le===10||Le===13)&&(Ce=He)}var Re=(Ce!==-1?Xt:"")+we.slice(0,Ce+1);Xt=(Ce===-1?Xt:"")+we.slice(Ce+1),we!==""&&(xe=Date.now(),fe+=we.length);for(var Se=0;Se<Re.length;Se+=1){var Le=Re.charCodeAt(Se);if(De===Z&&Le===10)De=E;else if(De===Z&&(De=E),Le===13||Le===10){if(De!==E){De===T&&(at=Se+1);var me=Re.slice(ur,at-1),Te=Re.slice(at+(at<Se&&Re.charCodeAt(at)===32?1:0),Se);me==="data"?(ut+=`
|
||||
`,ut+=Te):me==="id"?Tt=Te:me==="event"?Je=Te:me==="retry"?(X=K(Te,X),se=X):me==="heartbeatTimeout"&&(J=K(Te,J),Ee!==0&&(o(Ee),Ee=n(function(){Pt()},J)))}if(De===E){if(ut!==""){de=Tt,Je===""&&(Je="message");var ft=new $(Je,{data:ut.slice(1),lastEventId:Tt});if(M.dispatchEvent(ft),Je==="open"?pe(M,M.onopen,ft):Je==="message"?pe(M,M.onmessage,ft):Je==="error"&&pe(M,M.onerror,ft),We===q)return}ut="",Je=""}De=Le===13?Z:E}else De===E&&(ur=Se,De=T),De===T?Le===58&&(at=Se+1,De=R):De===R&&(De=L)}}},Ur=function(we){if(We===j||We===W){We=H,Ee!==0&&(o(Ee),Ee=0),Ee=n(function(){Pt()},se),se=re(Math.min(X*16,se*2)),M.readyState=W;var Ce=new P("error",{error:we});M.dispatchEvent(Ce),pe(M,M.onerror,Ce),we!=null&&console.error(we)}},fr=function(){We=q,Ae!=null&&(Ae.abort(),Ae=void 0),Ee!==0&&(o(Ee),Ee=0),M.readyState=q},Pt=function(){if(Ee=0,We!==H){if(!xe&&Ae!=null)Ur(new Error("No activity within "+J+" milliseconds. "+(We===W?"No response received.":fe+" chars received.")+" Reconnecting.")),Ae!=null&&(Ae.abort(),Ae=void 0);else{var we=Math.max((xe||Date.now())+J-Date.now(),1);xe=!1,Ee=n(function(){Pt()},we)}return}xe=!1,fe=0,Ee=n(function(){Pt()},J),We=W,ut="",Je="",Tt=de,Xt="",ur=0,at=0,De=E;var Ce=z;if(z.slice(0,5)!=="data:"&&z.slice(0,5)!=="blob:"&&de!==""){var He=z.indexOf("?");Ce=He===-1?z:z.slice(0,He+1)+z.slice(He+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Te,ft){return ft===Q?"":Te}),Ce+=(z.indexOf("?")===-1?"?":"&")+Q+"="+encodeURIComponent(de)}var Le=M.withCredentials,Re={};Re.Accept="text/event-stream";var Se=M.headers;if(Se!=null)for(var me in Se)Object.prototype.hasOwnProperty.call(Se,me)&&(Re[me]=Se[me]);try{Ae=mt.open(Ke,Do,zr,Ur,Ce,Le,Re)}catch(Te){throw fr(),Te}};M.url=z,M.readyState=W,M.withCredentials=U,M.headers=ee,M._close=fr,Pt()}$e.prototype=Object.create(F.prototype),$e.prototype.CONNECTING=W,$e.prototype.OPEN=j,$e.prototype.CLOSED=q,$e.prototype.close=function(){this._close()},$e.CONNECTING=W,$e.OPEN=j,$e.CLOSED=q,$e.prototype.withCredentials=void 0;var ot=u;a!=null&&(u==null||!("withCredentials"in u.prototype))&&(ot=$e),(function(M){{var z=M(t);z!==void 0&&(e.exports=z)}})(function(M){M.EventSourcePolyfill=$e,M.NativeEventSource=u,M.EventSource=ot})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Jb:globalThis)})(Cr,Cr.exports)),Cr.exports}var n0=Qb();function au(e,t){return function(){return e.apply(t,arguments)}}const{toString:eg}=Object.prototype,{getPrototypeOf:si}=Object,{iterator:$o,toStringTag:iu}=Symbol,Ao=(e=>t=>{const r=eg.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),rt=e=>(e=e.toLowerCase(),t=>Ao(t)===e),So=e=>t=>typeof t===e,{isArray:cr}=Array,ir=So("undefined");function Mr(e){return e!==null&&!ir(e)&&e.constructor!==null&&!ir(e.constructor)&&ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const su=rt("ArrayBuffer");function tg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&su(e.buffer),t}const rg=So("string"),ze=So("function"),cu=So("number"),Ir=e=>e!==null&&typeof e=="object",ng=e=>e===!0||e===!1,Un=e=>{if(Ao(e)!=="object")return!1;const t=si(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(iu in e)&&!($o in e)},og=e=>{if(!Ir(e)||Mr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ag=rt("Date"),ig=rt("File"),sg=rt("Blob"),cg=rt("FileList"),lg=e=>Ir(e)&&ze(e.pipe),ug=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ze(e.append)&&((t=Ao(e))==="formdata"||t==="object"&&ze(e.toString)&&e.toString()==="[object FormData]"))},fg=rt("URLSearchParams"),[dg,xg,pg,hg]=["ReadableStream","Request","Response","Headers"].map(rt),vg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),cr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Mr(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let s;for(n=0;n<i;n++)s=a[n],t.call(null,e[s],s,e)}}function lu(e,t){if(Mr(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Lt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uu=e=>!ir(e)&&e!==Lt;function ka(){const{caseless:e,skipUndefined:t}=uu(this)&&this||{},r={},n=(o,a)=>{const i=e&&lu(r,a)||a;Un(r[i])&&Un(o)?r[i]=ka(r[i],o):Un(o)?r[i]=ka({},o):cr(o)?r[i]=o.slice():(!t||!ir(o))&&(r[i]=o)};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&Hr(arguments[o],n);return r}const bg=(e,t,r,{allOwnKeys:n}={})=>(Hr(t,(o,a)=>{r&&ze(o)?e[a]=au(o,r):e[a]=o},{allOwnKeys:n}),e),gg=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mg=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},yg=(e,t,r
Line truncated
|
||||
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&tm[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},c0=Symbol("internals");function br(e){return e&&String(e).trim().toLowerCase()}function Wn(e){return e===!1||e==null?e:N.isArray(e)?e.map(Wn):String(e)}function nm(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const om=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yo(e,t,r,n,o){if(N.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!N.isString(t)){if(N.isString(n))return t.indexOf(n)!==-1;if(N.isRegExp(n))return n.test(t)}}function am(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function im(e,t){const r=N.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let Ue=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(s,u,c){const l=br(u);if(!l)throw new Error("header name must be a non-empty string");const d=N.findKey(o,l);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||u]=Wn(s))}const i=(s,u)=>N.forEach(s,(c,l)=>a(c,l,u));if(N.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(N.isString(t)&&(t=t.trim())&&!om(t))i(rm(t),r);else if(N.isObject(t)&&N.isIterable(t)){let s={},u,c;for(const l of t){if(!N.isArray(l))throw TypeError("Object iterator must return a key-value pair");s[c=l[0]]=(u=s[c])?N.isArray(u)?[...u,l[1]]:[u,l[1]]:l[1]}i(s,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=br(t),t){const n=N.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return nm(o);if(N.isFunction(r))return r.call(this,o,n);if(N.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=br(t),t){const n=N.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Yo(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=br(i),i){const s=N.findKey(n,i);s&&(!r||Yo(n,n[s],s,r))&&(delete n[s],o=!0)}}return N.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||Yo(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return N.forEach(this,(o,a)=>{const i=N.findKey(n,a);if(i){r[i]=Wn(o),delete r[a];return}const s=t?am(a):String(a).trim();s!==a&&delete r[a],r[s]=Wn(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return N.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&N.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
||||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[c0]=this[c0]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=br(i);n[s]||(im(o,i),n[s]=!0)}return N.isArray(t)?t.forEach(a):a(t),this}};Ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(Ue.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});N.freezeMethods(Ue);function Zo(e,t){const r=this||jr,n=t||r,o=Ue.from(n.headers);let a=n.data;return N.forEach(e,function(s){a=s.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function yu(e){return!!(e&&e.__CANCEL__)}function lr(e,t,r){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,r),this.name="CanceledError"}N.inherits(lr,oe,{__CANCEL__:!0});function Eu(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new oe("Request failed with status code "+r.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function sm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cm(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),l=n[a];i||(i=c),r[o]=u,n[o]=c;let d=a,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;const p=l&&c-l;return p?Math.round(f*1e3/p):void 0}}function lm(e,t){let r=0,n=1e3/t,o,a;const i=(c,l=Date.now())=>{r=l,o=null,a&&(clearTimeout(a),a=null),e(...c)};return[(...c)=>{const l=Date.now(),d=l-r;d>=n?i(c,l):(o=c,a||(a=setTimeout(()=>{a=null,i(o)},n-d)))},()=>o&&i(o)]}const ao=(e,t,r=3)=>{let n=0;const o=cm(50,250);return lm(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,u=i-n,c=o(u),l=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&l?(s-i)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},r)},l0=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},u0=e=>(...t)=>N.asap(()=>e(...t)),um=Ie.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ie.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ie.origin),Ie.navigator&&/(msie|trident)/i.test(Ie.navigator.userAgent)):()=>!0,fm=Ie.hasStandardBrowserEnv?{write(e,t,r,n,o,a,i){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];N.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),N.isString(n)&&s.push(`path=${n}`),N.isString(o)&&s.push(`domain=${o}`),a===!0&&s.push("secure"),N.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function dm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xm(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wu(e,t,r){let n=!dm(t);return e&&(n||r==!1)?xm(e,t):t}const f0=e=>e instanceof Ue?{...e}:e;function Wt(e,t){t=t||{};const r={};function n(c,l,d,f){return N.isPlainObject(c)&&N.isPlainObject(l)?N.merge.call({caseless:f},c,l):N.isPlainObject(l)?N.merge({},l):N.isArray(l)?l.slice():l}function o(c,l,d,f){if(N.isUndefined(l)){if(!N.isUndefined(c))return n(void 0,c,d,f)}else return n(c,l,d,f)}function a(c,l){if(!N.isUndefined(l))return n(void 0,l)}function i(c,l){if(N.isUndefined(l)){if(!N.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function s(c,l,d){if(d in t)return n(c,l);if(d in e)return n(void 0,c)}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(c,l,d)=>o(f0(c),f0(l),d,!0)};return N.forEach(Object.keys({...e,...t}),function(l){const d=u[l]||o,f=d(e[l],t[l],l);N.isUndefined(f)&&d!==s||(r[l]=f)}),r}const Cu=e=>{const t=Wt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=Ue.from(i),t.url=bu(wu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),N.isFormData(r)){if(Ie.hasStandardBrowserEnv||Ie.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(N.isFunction(r.getHeaders)){const u=r.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([l,d])=>{c.inclu
Line truncated
|
||||
`+i.map(b0).join(`
|
||||
`):" "+b0(i[0]):"as no adapter specified";throw new oe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const Au={getAdapter:$m,adapters:ui};function Jo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lr(null,e)}function g0(e){return Jo(e),e.headers=Ue.from(e.headers),e.data=Zo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Au.getAdapter(e.adapter||jr.adapter,e)(e).then(function(n){return Jo(e),n.data=Zo.call(e,e.transformResponse,n),n.headers=Ue.from(n.headers),n},function(n){return yu(n)||(Jo(e),n&&n.response&&(n.response.data=Zo.call(e,e.transformResponse,n.response),n.response.headers=Ue.from(n.response.headers))),Promise.reject(n)})}const Su="1.13.2",_o={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const m0={};_o.transitional=function(t,r,n){function o(a,i){return"[Axios v"+Su+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(t===!1)throw new oe(o(i," has been removed"+(r?" in "+r:"")),oe.ERR_DEPRECATED);return r&&!m0[i]&&(m0[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,s):!0}};_o.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Am(e,t,r){if(typeof e!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const s=e[a],u=s===void 0||i(s,a,e);if(u!==!0)throw new oe("option "+a+" must be "+u,oe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new oe("Unknown option "+a,oe.ERR_BAD_OPTION)}}const qn={assertOptions:Am,validators:_o},it=qn.validators;let Mt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new s0,response:new s0}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
||||
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Wt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&qn.assertOptions(n,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean)},!1),o!=null&&(N.isFunction(o)?r.paramsSerializer={serialize:o}:qn.assertOptions(o,{encode:it.function,serialize:it.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),qn.assertOptions(r,{baseUrl:it.spelling("baseURL"),withXsrfToken:it.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&N.merge(a.common,a[r.method]);a&&N.forEach(["delete","get","head","post","put","patch","common"],x=>{delete a[x]}),r.headers=Ue.concat(i,a);const s=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(u=u&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let l,d=0,f;if(!u){const x=[g0.bind(this),void 0];for(x.unshift(...s),x.push(...c),f=x.length,l=Promise.resolve(r);d<f;)l=l.then(x[d++],x[d++]);return l}f=s.length;let p=r;for(;d<f;){const x=s[d++],v=s[d++];try{p=x(p)}catch(h){v.call(this,h);break}}try{l=g0.call(this,p)}catch(x){return Promise.reject(x)}for(d=0,f=c.length;d<f;)l=l.then(c[d++],c[d++]);return l}getUri(t){t=Wt(this.defaults,t);const r=wu(t.baseURL,t.url,t.allowAbsoluteUrls);return bu(r,t.params,t.paramsSerializer)}};N.forEach(["delete","get","head","options"],function(t){Mt.prototype[t]=function(r,n){return this.request(Wt(n||{},{method:t,url:r,data:(n||{}).data}))}});N.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,s){return this.request(Wt(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Mt.prototype[t]=r(),Mt.prototype[t+"Form"]=r(!0)});let Sm=class Bu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{n.subscribe(s),a=s}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,s){n.reason||(n.reason=new lr(a,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Bu(function(o){t=o}),cancel:t}}};function Bm(e){return function(r){return e.apply(null,r)}}function _m(e){return N.isObject(e)&&e.isAxiosError===!0}const Na={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Na).forEach(([e,t])=>{Na[t]=e});function _u(e){const t=new Mt(e),r=au(Mt.prototype.request,t);return N.extend(r,Mt.prototype,t,{allOwnKeys:!0}),N.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return _u(Wt(e,o))},r}const ye=_u(jr);ye.Axios=Mt;ye.CanceledError=lr;ye.CancelToken=Sm;ye.isCancel=yu;ye.VERSION=Su;ye.toFormData=Bo;ye.AxiosError=oe;ye.Cancel=ye.CanceledError;ye.all=function(t){return Promise.all(t)};ye.spread=Bm;ye.isAxiosError=_m;ye.mergeConfig=Wt;ye.AxiosH
Line truncated
|
||||
`),t([i])}catch(i){console.error(i)}},o.onerror=a=>{console.error("SSE连接出错:",a),o.close()},o}static getSystemStatus(t){const r=localStorage.getItem("token");if(!r)throw new Error("未登录");const n=JSON.parse(r),o=new n0.EventSourcePolyfill("/api/base/GetSysStatusRealTime",{headers:{Authorization:`Bearer ${n}`,Accept:"text/event-stream"},withCredentials:!0});return o.onmessage=a=>{try{const i=JSON.parse(a.data);t(i)}catch(i){console.error(i)}},o.onerror=a=>{console.error("SSE连接出错:",a),o.close()},o}static async getWebUIConfig(){const{data:t}=await le.get("/WebUIConfig/GetConfig");return t.data}static async updateWebUIConfig(t){const{data:r}=await le.post("/WebUIConfig/UpdateConfig",t);return r.data}static async getDisableWebUI(){const{data:t}=await le.get("/WebUIConfig/GetDisableWebUI");return t.data}static async updateDisableWebUI(t){const{data:r}=await le.post("/WebUIConfig/UpdateDisableWebUI",{disable:t});return r.data}static async getClientIP(){const{data:t}=await le.get("/WebUIConfig/GetClientIP");return t.data}static async getSSLStatus(){const{data:t}=await le.get("/WebUIConfig/GetSSLStatus");return t.data}static async saveSSLCert(t,r){const{data:n}=await le.post("/WebUIConfig/UploadSSLCert",{cert:t,key:r});return n.data}static async deleteSSLCert(){const{data:t}=await le.post("/WebUIConfig/DeleteSSLCert");return t.data}static async generatePasskeyRegistrationOptions(){const{data:t}=await le.post("/auth/passkey/generate-registration-options");return t.data}static async verifyPasskeyRegistration(t){const{data:r}=await le.post("/auth/passkey/verify-registration",{response:t});return r.data}static async generatePasskeyAuthenticationOptions(){const{data:t}=await le.post("/auth/passkey/generate-authentication-options");return t.data}static async verifyPasskeyAuthentication(t){const{data:r}=await le.post("/auth/passkey/verify-authentication",{response:t});return r.data}static async GetSnowCatFileHash(){const{data:t}=await le.get("/base/GetSnowCatFileHash");return t.data}}fi(Fu,"VersionTypes",{RELEASE:"release",PRERELEASE:"prerelease",ACTION:"action"});const Du=document.createElement("style");document.head.appendChild(Du);const Fo=document.createElement("style");Fo.id="font-preview-style";document.head.appendChild(Fo);function Dm(){Fm("/files/theme.css?_t="+Date.now()).then(e=>e.data).then(e=>{Du.innerHTML=e,Fo.innerHTML="",document.documentElement.style.removeProperty("--font-family-base")}).catch(()=>{console.error("Failed to load theme.css")})}const Tm=e=>{let t="";e==="aacute"?t=`
|
||||
@font-face {
|
||||
font-family: 'Aa偷吃可爱长大的';
|
||||
src: url('/webui/fonts/AaCute.woff') format('woff');
|
||||
font-display: swap;
|
||||
}`:e==="custom"&&(t=`
|
||||
@font-face {
|
||||
font-family: 'CustomFont';
|
||||
src: url('/webui/fonts/CustomFont.woff') format('woff');
|
||||
font-display: swap;
|
||||
}`),Fo.innerHTML=t},Oy=["--heroui-background","--heroui-foreground-50","--heroui-foreground-100","--heroui-foreground-200","--heroui-foreground-300","--heroui-foreground-400","--heroui-foreground-500","--heroui-foreground-600","--heroui-foreground-700","--heroui-foreground-800","--heroui-foreground-900","--heroui-foreground","--heroui-content1","--heroui-content1-foreground","--heroui-content2","--heroui-content2-foreground","--heroui-content3","--heroui-content3-foreground","--heroui-content4","--heroui-content4-foreground","--heroui-default-50","--heroui-default-100","--heroui-default-200","--heroui-default-300","--heroui-default-400","--heroui-default-500","--heroui-default-600","--heroui-default-700","--heroui-default-800","--heroui-default-900","--heroui-default-foreground","--heroui-default","--heroui-danger-50","--heroui-danger-100","--heroui-danger-200","--heroui-danger-300","--heroui-danger-400","--heroui-danger-500","--heroui-danger-600","--heroui-danger-700","--heroui-danger-800","--heroui-danger-900","--heroui-danger-foreground","--heroui-danger","--heroui-primary-50","--heroui-primary-100","--heroui-primary-200","--heroui-primary-300","--heroui-primary-400","--heroui-primary-500","--heroui-primary-600","--heroui-primary-700","--heroui-primary-800","--heroui-primary-900","--heroui-primary-foreground","--heroui-primary","--heroui-secondary-50","--heroui-secondary-100","--heroui-secondary-200","--heroui-secondary-300","--heroui-secondary-400","--heroui-secondary-500","--heroui-secondary-600","--heroui-secondary-700","--heroui-secondary-800","--heroui-secondary-900","--heroui-secondary-foreground","--heroui-secondary","--heroui-success-50","--heroui-success-100","--heroui-success-200","--heroui-success-300","--heroui-success-400","--heroui-success-500","--heroui-success-600","--heroui-success-700","--heroui-success-800","--heroui-success-900","--heroui-success-foreground","--heroui-success","--heroui-warning-50","--heroui-warning-100","--heroui-warning-200","--heroui-warning-300","--heroui-warning-400","--heroui-warning-500","--heroui-warning-600","--heroui-warning-700","--heroui-warning-800","--heroui-warning-900","--heroui-warning-foreground","--heroui-warning","--heroui-focus","--heroui-overlay","--heroui-divider","--heroui-code-background","--heroui-strong","--heroui-code-mdx"],Ny=(e,t)=>{let r=`:root ${t?`.${t}`:""}, .light ${t?`.${t}`:""}, [data-theme="light"] ${t?`.${t}`:""} {`;for(const n in e.light){const o=n;r+=`${o}: ${e.light[o]};`}r+="}",r+=`.dark ${t?`.${t}`:""}, [data-theme="dark"] ${t?`.${t}`:""} {`;for(const n in e.dark){const o=n;r+=`${o}: ${e.dark[o]};`}return r+="}",r},Ly=e=>{const t=document.documentElement;Tm(e),e==="aacute"?(t.style.setProperty("--font-family-base","'Aa偷吃可爱长大的', var(--font-family-fallbacks)","important"),t.style.setProperty("--font-family-mono","'Aa偷吃可爱长大的', var(--font-family-fallbacks)","important")):e==="custom"?(t.style.setProperty("--font-family-base","'CustomFont', var(--font-family-fallbacks)","important"),t.style.setProperty("--font-family-mono","'CustomFont', var(--font-family-fallbacks)","important")):(t.style.setProperty("--font-family-base","var(--font-family-fallbacks)","important"),t.style.setProperty("--font-family-mono",'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',"important"))},My=e=>{};Fu.checkWebUiLogined();const Qo=localStorage.getItem(lt.token),ea=localStorage.getItem(lt.theme);Qo&&!Qo.startsWith('"')&&localStorage.setItem(lt.token,JSON.stringify(Qo));ea&&!ea.startsWith('"')&&localStorage.setItem(lt.theme,JSON.stringify(ea));Dm();Ou.createRoot(document.getElementById("root")).render(I.jsx(Mu,{basename:"/webui/",children:I.jsx(Lv,{children:I.jsx(Rv,{})})}));"serviceWorker"in navigator&&window.addEventListener("load",()=>{const e="/webui/",t=`${e}sw.js`;navigator.serviceWorker.register(t,{scope:e}).then(r=>{console.log("SW registered: ",r)}).catch(r=>{console.log("SW registration failed: ",r)})});export{Rp as $,gl as A,z0 as B,Zb as C,st as D,sr as E,Ly as F,My as G,Dm as H,Ny as I,Oy as J,Ry as K,le as L,Ul as M,Gt as N,y1 as O,xd as P,p1 as Q,v1 as R,s1 as S,h1 as T,C1 as U,ne as V,Fu as W,nr as X,Fi as Y,zm as Z,Im as _,bd as a,xp as a$,Um as a0,xy as a1,np as a2,ct as a3,sy as a4,ep as a5,rc as a6,nx as a7,_r as a8,Br as a9,x1 as aA,Gi as aB,ya as aC,Pe as aD,Ca as aE,c1 as aF,Ol as aG,Ip as aH,n0 as aI,w1 as aJ,Zm as aK,$x as aL,la as aM,or as aN,Oi as aO,Xa as aP,cx as aQ,Wm as aR,Vm as aS,Ap as aT,g1 as aU,Bp as aV,Bx as aW,Np as aX,hx as aY,ny as aZ,iy as a_,Bt as aa,xa as ab,Cc as ac,cc as ad,Jm as ae,Ua as af,ey as ag,Cx as ah,ac as ai,ty as aj,ry as ak,fo as al,jh as am,Ye as an,_e as ao,he as ap,Wh as aq,ja as ar,qd as as,pp as at,$c as au,t1 as av,Km as aw,Mm as ax,Lm as ay,hy as az,ss as b,_h as b$,jm as b0,Ga as b1,Ym as b2,cy as b3,E1 as b4,$1 as b5,sc as b6,o1 as b7,n1 as b8,Hm as b9,$t as bA,vx as bB,ay as bC,bc as bD,Ii as bE,ip as bF,Hd a
Line truncated
|
||||
Reference in new issue
Block a user