| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122 |
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-OKDRZEBW-BMDlW8JO.js","assets/graph-D9X3xKfw.js","assets/_baseUniq-DNaAmc8t.js","assets/layout-BNKMYpru.js","assets/_basePickBy-BjvQfryj.js","assets/clone-DIMeDKCo.js","assets/semi-ui-SYqiqOBN.js","assets/react-core-DtMAePju.js","assets/semi-ui-yRXI6evF.css","assets/tools-_urh1evK.js","assets/react-components-XvIrFW7f.js","assets/i18n-CVqrn-QJ.js","assets/c4Diagram-VJAJSXHY-D8DoYWsl.js","assets/chunk-D6G4REZN-5gXxEC3W.js","assets/flowDiagram-4HSFHLVR-DWbLVzMd.js","assets/chunk-RZ5BOZE2-9hZELTz7.js","assets/channel-yJuXeHgP.js","assets/erDiagram-Q7BY3M3F-CwcDAdIe.js","assets/gitGraphDiagram-7IBYFJ6S-BhvWlkhT.js","assets/chunk-4BMEZGHF-ZMJx_j4v.js","assets/chunk-XZIHB7SX-CUL8PxT1.js","assets/radar-MK3ICKWK-DXSCYkdN.js","assets/ganttDiagram-APWFNJXF-CjtJEltt.js","assets/linear-BNfAn0uU.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-PH2N3AL5-MMNHexMC.js","assets/pieDiagram-IB7DONF6-DuwrasQh.js","assets/arc-BX3pUljB.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-7GDLP6J5-CzRbyCp3.js","assets/xychartDiagram-VJFVF3MP-CGsQPmUp.js","assets/requirementDiagram-KVF5MWMF-DAneazJG.js","assets/sequenceDiagram-X6HHIX6F-B83GaRbX.js","assets/classDiagram-GIVACNV2-CpYo__Ph.js","assets/chunk-A2AXSNBT-BI6YYZw3.js","assets/classDiagram-v2-COTLJTTW-CpYo__Ph.js","assets/stateDiagram-DGXRK772-ChiZuLhI.js","assets/chunk-AEK57VVT-BDxKqEyN.js","assets/stateDiagram-v2-YXO3MK2T-BicCbhVg.js","assets/journeyDiagram-U35MCT3I-CY34TFju.js","assets/timeline-definition-BDJGKUSR-CEJDFitP.js","assets/mindmap-definition-ALO5MXBD-DStiJmwb.js","assets/cytoscape.esm-BY7v1xhs.js","assets/kanban-definition-NDS4AKOZ-Dxq8y1uI.js","assets/sankeyDiagram-QLVOVGJD-C8o7_799.js","assets/diagram-VNBRO52H-DlV3rtTt.js","assets/diagram-SSKATNLV-DYdAMFSr.js","assets/blockDiagram-JOT3LUYC-B7WvxssV.js","assets/architectureDiagram-IEHRJDOE-Q7__Zjfc.js","assets/index-BIXxJ3Bt.js","assets/index-COpLGRnI.js","assets/visactor-C6yu58Ir.js","assets/IllustrationConstruction-h2fiJesH.js","assets/index-B9kzuYWM.js"])))=>i.map(i=>d[i]);
- var VD=Object.defineProperty;var GD=(e,t,r)=>t in e?VD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var rr=(e,t,r)=>GD(e,typeof t!="symbol"?t+"":t,r);import{j as a,J as Mt,K as KD,L as X4,N as J4,O as YD,Q as ZD,R as Ri,U as XD,V as JD,W as QD,X as eB,Y as tB,Z as Uv,$ as z3,a0 as rB,a1 as nB,a2 as iB,a3 as aB,a4 as sB,a5 as oB,a6 as Q4,a7 as U3,a8 as H3,a9 as lB,aa as uB,ab as cB,ac as dB,ad as hB,ae as fB,af as pB,ag as mB,ah as Dd,ai as Hs,H as Ie,o as ye,M as Je,T as Pn,m as Zr,B as X,E as Rr,p as q3,aj as ls,ak as W3,S as Br,al as er,am as gB,an as w5,ao as yB,ap as bB,aq as xB,ar as vB,as as pa,at as e6,au as wB,A as dr,av as E5,aw as Bd,D as Ar,t as Dt,ax as Nl,ay as pt,az as ys,F as M,C as Le,aA as Hv,aB as Ge,aC as _e,aD as Js,aE as EB,r as Ph,aF as qv,aG as ga,aH as Gt,aI as t6,aJ as Mr,k as Cr,aK as Q1,aL as Ns,aM as ts,z as r6,aN as Si,aO as Ca,aP as oi,aQ as CB,aR as cr,aS as Jn,aT as n6,aU as SB,u as Lt,aV as FB,aW as lh,aX as Ln,aY as C5,aZ as Ui,a_ as S5,a$ as jB,b0 as vn,b1 as F5,b2 as ln,x as I2,b3 as _B,b4 as kB,b5 as Wv,b6 as i6,b7 as a6,b8 as OB,b9 as j5,ba as _5,bb as AB,P as s6,bc as DB,bd as o6,be as BB,bf as TB,bg as l6,bh as $f,bi as u6,bj as PB,bk as Vv,l as Nh,bl as Lf,bm as NB,bn as Gv,bo as Td,G as MB,bp as IB,bq as V3,br as G3,bs as $B,bt as LB,bu as RB,bv as K3}from"./semi-ui-SYqiqOBN.js";import{a as zB,R as Bt,r as m,N as Kv,c as UB,g as Yv,u as go,e as Ml,L as ji,f as $2,h as HB,i as qB,j as $t,B as WB}from"./react-core-DtMAePju.js";import{c as VB,a as c6,m as uh}from"./tools-_urh1evK.js";import{Q as GB,f as Rf,_ as tl,T as Zv,k as KB}from"./react-components-XvIrFW7f.js";import{i as ct,u as Ze,B as YB,a as ZB}from"./i18n-CVqrn-QJ.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var k5={},Y3=zB;k5.createRoot=Y3.createRoot,k5.hydrateRoot=Y3.hydrateRoot;const XB=(e,t)=>{switch(t.type){case"login":return{...e,user:t.payload};case"logout":return{...e,user:void 0};default:return e}},Xv={user:void 0},Xi=Bt.createContext({state:Xv,dispatch:()=>null}),JB=({children:e})=>{const[t,r]=Bt.useReducer(XB,Xv);return a.jsx(Xi.Provider,{value:[t,r],children:e})},QB=(e,t)=>{switch(t.type){case"set":return{...e,status:t.payload};case"unset":return{...e,status:void 0};default:return e}},Jv={status:void 0},Ji=Bt.createContext({state:Jv,dispatch:()=>null}),eT=({children:e})=>{const[t,r]=Bt.useReducer(QB,Jv);return a.jsx(Ji.Provider,{value:[t,r],children:e})},Qv=m.createContext(null),d6=()=>m.useContext(Qv),ew=m.createContext(null),tT=()=>m.useContext(ew),rT=({children:e})=>{const[t,r]=m.useState(()=>{try{return localStorage.getItem("theme-mode")||null}catch{return null}}),n=m.useCallback(i=>{r(i?"dark":"light");const s=document.body;i?(s.setAttribute("theme-mode","dark"),localStorage.setItem("theme-mode","dark")):(s.removeAttribute("theme-mode"),localStorage.setItem("theme-mode","light"))},[]);return a.jsx(ew.Provider,{value:n,children:a.jsx(Qv.Provider,{value:t,children:e})})},nT=VB(),Z3=({children:e})=>localStorage.getItem("user")?a.jsx(Kv,{to:"/console",replace:!0}):e;function gn({children:e}){return localStorage.getItem("user")?e:a.jsx(Kv,{to:"/login",state:{from:nT.location}})}const ku=[{value:1,color:"green",label:"OpenAI"},{value:2,color:"light-blue",label:"Midjourney Proxy"},{value:5,color:"blue",label:"Midjourney Proxy Plus"},{value:36,color:"purple",label:"Suno API"},{value:4,color:"grey",label:"Ollama"},{value:14,color:"indigo",label:"Anthropic Claude"},{value:33,color:"indigo",label:"AWS Claude"},{value:41,color:"blue",label:"Vertex AI"},{value:3,color:"teal",label:"Azure OpenAI"},{value:34,color:"purple",label:"Cohere"},{value:39,color:"grey",label:"Cloudflare"},{value:43,color:"blue",label:"DeepSeek"},{value:15,color:"blue",label:"百度文心千帆"},{value:46,color:"blue",label:"百度文心千帆V2"},{value:17,color:"orange",label:"阿里通义千问"},{value:18,color:"blue",label:"讯飞星火认知"},{value:16,color:"violet",label:"智谱 ChatGLM"},{value:26,color:"purple",label:"智谱 GLM-4V"},{value:24,color:"orange",label:"Google Gemini"},{value:11,color:"orange",label:"Google PaLM2"},{value:47,color:"blue",label:"Xinference"},{value:25,color:"green",label:"Moonshot"},{value:20,color:"green",label:"OpenRouter"},{value:19,color:"blue",label:"360 智脑"},{value:23,color:"teal",label:"腾讯混元"},{value:31,color:"green",label:"零一万物"},{value:35,color:"green",label:"MiniMax"},{value:37,color:"teal",label:"Dify"},{value:38,color:"blue",label:"Jina"},{value:40,color:"purple",label:"SiliconCloud"},{value:42,color:"blue",label:"Mistral AI"},{value:8,color:"pink",label:"自定义渠道"},{value:22,color:"blue",label:"知识库:FastGPT"},{value:21,color:"purple",label:"知识库:AI Proxy"},{value:44,color:"purple",label:"嵌入模型:MokaAI M3E"},{value:45,color:"blue",label:"字节火山方舟、豆包通用"},{value:48,color:"blue",label:"xAI"},{value:49,color:"blue",label:"Coze"},{value:50,color:"green",label:"可灵"},{value:51,color:"blue",label:"即梦"}],cu=10,un=10,X3="/api/ratio_config",h6="table_compact_modes",pbe=["/v1/chat/completions","/v1/responses","/v1/messages","/v1beta/models","/v1/embeddings","/v1/rerank","/v1/images/generations","/v1/images/edits","/v1/images/variations","/v1/audio/speech","/v1/audio/transcriptions","/v1/audio/translations"],J3="generate",Q3="textGenerate",gr={LOADING:"loading",INCOMPLETE:"incomplete",COMPLETE:"complete",ERROR:"error"},li={USER:"user",ASSISTANT:"assistant",SYSTEM:"system"},e7=[{role:li.USER,id:"2",createAt:1715676751919,content:"你好"},{role:li.ASSISTANT,id:"3",createAt:1715676751919,content:"你好,请问有什么可以帮助您的吗?",reasoningContent:"",isReasoningExpanded:!1}],xi={PREVIEW:"preview",REQUEST:"request",RESPONSE:"response"},Mh={CHAT_COMPLETIONS:"/pg/chat/completions",USER_MODELS:"/api/user/models",USER_GROUPS:"/api/user/self/groups"},on={inputs:{model:"gpt-4o",group:"",temperature:.7,top_p:1,max_tokens:4096,frequency_penalty:0,presence_penalty:0,seed:null,stream:!0,imageEnabled:!1,imageUrls:[""]},parameterEnabled:{temperature:!0,top_p:!0,max_tokens:!1,frequency_penalty:!0,presence_penalty:!0,seed:!1},systemPrompt:"",showDebugPanel:!1,customRequestMode:!1,customRequestBody:""},t7=/<think>([\s\S]*?)<\/think>/g,Ou={NO_TEXT_CONTENT:"此消息没有可复制的文本内容",INVALID_MESSAGE_TYPE:"无法复制此类型的消息内容",COPY_FAILED:"复制失败,请手动选择文本复制",COPY_HTTPS_REQUIRED:"复制功能需要 HTTPS 环境,请手动复制",BROWSER_NOT_SUPPORTED:"浏览器不支持复制功能,请手动复制",JSON_PARSE_ERROR:"自定义请求体格式错误,请检查JSON格式",API_REQUEST_ERROR:"请求发生错误",NETWORK_ERROR:"网络连接失败或服务器无响应"},us={CONFIG:"playground_config",MESSAGES:"playground_messages"},tw=768,mi=()=>{const e=`(max-width: ${tw-1}px)`;return m.useSyncExternalStore(t=>{const r=window.matchMedia(e);return r.addEventListener("change",t),()=>r.removeEventListener("change",t)},()=>window.matchMedia(e).matches,()=>!1)},iT=({htmlContent:e})=>a.jsx("div",{dangerouslySetInnerHTML:{__html:e}});function Nr(){let e=localStorage.getItem("user");return console.log("===user info==",e),e?(e=JSON.parse(e),console.log("===user.role==",e.role,e.role>=10),e.role>=10):!1}function Ih(){let e=localStorage.getItem("user");return e?(e=JSON.parse(e),e.role>=100):!1}function yo(){let e=localStorage.getItem("system_name");return e||"New API"}function Sa(){let e=localStorage.getItem("logo");return e||"/logo.png"}function $h(){let e=localStorage.getItem("user");return e?(e=JSON.parse(e),e.id):-1}function aT(){return localStorage.getItem("footer_html")}async function Qr(e){let t=!0;try{await navigator.clipboard.writeText(e)}catch{try{var r=window.document.createElement("input");r.value=e,window.document.body.appendChild(r),r.select(),window.document.execCommand("Copy"),window.document.body.removeChild(r)}catch(i){t=!1,console.error(i)}}return t}let rw={autoClose:!1};const sT=window.matchMedia(`(max-width: ${tw-1}px)`).matches;sT&&(rw.position="top-center");function q(e){if(console.error(e),e.message){if(e.name==="AxiosError"){switch(e.response.status){case 401:localStorage.removeItem("user"),window.location.href="/login?expired=true";break;case 429:Mt.error("错误:请求次数过多,请稍后再试!");break;case 500:Mt.error("错误:服务器内部错误,请联系管理员!");break;case 405:Mt.info("本站仅作演示之用,无服务端!");break;default:Mt.error("错误:"+e.message)}return}Mt.error("错误:"+e.message)}else Mt.error("错误:"+e)}function en(e){Mt.warning(e)}function Pe(e){Mt.success(e)}function nr(e){Mt.info(e)}function O5(e,t=!1){t?GB(a.jsx(iT,{htmlContent:e}),rw):Mt.info(e)}function rl(e){return e?e.endsWith("/")?e.slice(0,-1):e:""}function r7(){var e=new Date;return e.setHours(0,0,0,0),Math.floor(e.getTime()/1e3)}function _r(e){let t=new Date(e*1e3),r=t.getFullYear().toString(),n=(t.getMonth()+1).toString(),i=t.getDate().toString(),s=t.getHours().toString(),o=t.getMinutes().toString(),l=t.getSeconds().toString();return n.length===1&&(n="0"+n),i.length===1&&(i="0"+i),s.length===1&&(s="0"+s),o.length===1&&(o="0"+o),l.length===1&&(l="0"+l),r+"-"+n+"-"+i+" "+s+":"+o+":"+l}function mbe(e,t="hour"){let r=new Date(e*1e3),n=(r.getMonth()+1).toString(),i=r.getDate().toString(),s=r.getHours().toString();i==="24"&&console.log("timestamp",e),n.length===1&&(n="0"+n),i.length===1&&(i="0"+i),s.length===1&&(s="0"+s);let o=n+"-"+i;if(t==="hour")o+=" "+s+":00";else if(t==="week"){let l=new Date(e*1e3+5184e5),u=(l.getMonth()+1).toString(),c=l.getDate().toString();u.length===1&&(u="0"+u),c.length===1&&(c="0"+c),o+=" - "+u+"-"+c}return o}function oT(e,t){let r=new Blob([e],{type:"text/plain;charset=utf-8"}),n=URL.createObjectURL(r),i=document.createElement("a");i.href=n,i.download=t,i.click()}const Vr=e=>{try{JSON.parse(e)}catch{return!1}return!0};function zn(e,t){const r=[];for(const n in e)e.hasOwnProperty(n)&&t.hasOwnProperty(n)&&e[n]!==t[n]&&r.push({key:n,oldValue:e[n],newValue:t[n]});return r}let lT=4;const uT=()=>`${lT++}`,Lu=e=>{if(!e||!e.content)return"";if(Array.isArray(e.content)){const t=e.content.find(r=>r.type==="text");return(t==null?void 0:t.text)||""}return typeof e.content=="string"?e.content:""},ch=(e,t="")=>{if(!e||!e.includes("<think>"))return{content:e,reasoningContent:t};const r=[],n=[];let i=0,s;for(t7.lastIndex=0;(s=t7.exec(e))!==null;)n.push(e.substring(i,s.index)),r.push(s[1]),i=s.index+s[0].length;n.push(e.substring(i));const o=n.join("").replace(/<\/?think>/g,"").trim(),l=r.join(`
- ---
- `),u=t&&l?`${t}
- ---
- ${l}`:t||l;return{content:o,reasoningContent:u}},nw=(e,t="")=>{if(!e)return{content:"",reasoningContent:t};const r=e.lastIndexOf("<think>");if(r===-1)return ch(e,t);const n=e.substring(r);if(!n.includes("</think>")){const i=n.substring(7).trim(),s=e.substring(0,r),o=i?t?`${t}
- ---
- ${i}`:i:t;return ch(s,o)}return ch(e,t)},n7=(e,t=[],r=!1)=>{if(!e&&(!t||t.length===0))return"";const n=t.filter(i=>i&&i.trim()!=="");return r&&n.length>0?[{type:"text",text:e||""},...n.map(i=>({type:"image_url",image_url:{url:i.trim()}}))]:e||""},A5=(e,t,r={})=>({role:e,content:t,createAt:Date.now(),id:uT(),...r}),iw=()=>A5(li.ASSISTANT,"",{reasoningContent:"",isReasoningExpanded:!0,isThinkingComplete:!1,hasAutoCollapsed:!1,status:"loading"}),cT=e=>e?{role:e.role,content:e.content}:null,dT=e=>e&&e.role&&(e.content||e.content===""),aw=e=>{if(!e)return"";const t=new Date,r=new Date(e);if(isNaN(r.getTime()))return e;const n=t.getTime()-r.getTime(),i=Math.floor(n/1e3),s=Math.floor(i/60),o=Math.floor(s/60),l=Math.floor(o/24),u=Math.floor(l/7),c=Math.floor(l/30),d=Math.floor(l/365);return n<0?i7(r):i<60?"刚刚":s<60?`${s} 分钟前`:o<24?`${o} 小时前`:l<7?`${l} 天前`:u<4?`${u} 周前`:c<12?`${c} 个月前`:d<2?"1 年前":i7(r)},i7=e=>{const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`},hT=e=>{const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0");return`${t}-${r}-${n} ${i}:${s}`};function sw(){try{const e=localStorage.getItem(h6);return e?JSON.parse(e):{}}catch{return{}}}function fT(e){try{localStorage.setItem(h6,JSON.stringify(e))}catch{}}function pT(e="global"){return!!sw()[e]}function mT(e,t="global"){const r=sw();r[t]=e,fT(r)}let Se=c6.create({baseURL:"",headers:{"New-API-User":$h(),"Cache-Control":"no-store"}});function ow(e){const t=e.get.bind(e),r=new Map,n=(i,s={})=>{const o=s.params?JSON.stringify(s.params):"{}";return`${i}?${o}`};e.get=(i,s={})=>{if(s!=null&&s.disableDuplicate)return t(i,s);const o=n(i,s);if(r.has(o))return r.get(o);const l=t(i,s).finally(()=>{r.delete(o)});return r.set(o,l),l}}ow(Se);function nl(){Se=c6.create({baseURL:"",headers:{"New-API-User":$h(),"Cache-Control":"no-store"}}),ow(Se)}Se.interceptors.response.use(e=>e,e=>(e.config&&e.config.skipErrorHandler||q(e),Promise.reject(e)));const D5=(e,t,r,n)=>{const i=e.filter(dT).map(cT).filter(Boolean),s={model:r.model,group:r.group,messages:i,group:r.group,stream:r.stream};return Object.entries({temperature:"temperature",top_p:"top_p",max_tokens:"max_tokens",frequency_penalty:"frequency_penalty",presence_penalty:"presence_penalty",seed:"seed"}).forEach(([l,u])=>{n[l]&&r[u]!==void 0&&r[u]!==null&&(s[u]=r[u])}),s},du=(e,t=null)=>{const r={error:e.message||"未知错误",timestamp:new Date().toISOString(),stack:e.stack};return t&&(r.status=t.status,r.statusText=t.statusText),e.message.includes("HTTP error")?r.details="服务器返回了错误状态码":e.message.includes("Failed to fetch")&&(r.details="网络连接失败或服务器无响应"),r},gT=(e,t)=>{var s;const r=e.map(o=>({label:o,value:o})),i=r.some(o=>o.value===t)&&r.length>0?t:(s=r[0])==null?void 0:s.value;return{modelOptions:r,selectedModel:i}},yT=(e,t)=>{let r=Object.entries(e).map(([n,i])=>({label:i.desc.length>20?i.desc.substring(0,20)+"...":i.desc,value:n,ratio:i.ratio,fullLabel:i.desc}));if(r.length===0)r=[{label:"用户分组",value:"",ratio:1}];else if(t){const n=r.findIndex(i=>i.value===t);if(n>-1){const i=r.splice(n,1)[0];r.unshift(i)}}return r};async function f6(){let e="/api/oauth/state",t=localStorage.getItem("aff");t&&t.length>0&&(e+=`?aff=${t}`);const r=await Se.get(e),{success:n,message:i,data:s}=r.data;return n?s:(q(i),"")}async function p6(e,t,r=!1){const n=await f6();if(!n)return;const i=`${window.location.origin}/oauth/oidc`,l=`${e}?client_id=${t}&redirect_uri=${i}&response_type=code&scope=openid profile email&state=${n}`;r?window.open(l):window.location.href=l}async function m6(e){const t=await f6();t&&window.open(`https://github.com/login/oauth/authorize?client_id=${e}&state=${t}&scope=user:email`)}async function g6(e){const t=await f6();t&&window.open(`https://connect.linux.do/oauth2/authorize?response_type=code&client_id=${e}&state=${t}`)}let Xa;async function bT(){const e=await Se.get("/api/models"),{success:t,data:r}=e.data;t&&(Xa=r,localStorage.setItem("channel_models",JSON.stringify(r)))}function dh(e){if(Xa!==void 0&&e in Xa)return Xa[e]?Xa[e]:[];let t=localStorage.getItem("channel_models");return t?(Xa=JSON.parse(t),e in Xa?Xa[e]:[]):[]}function xT(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function vT(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var wT=function(){function e(r){var n=this;this._insertTag=function(i){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,s),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(vT(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=xT(i);try{s.insertRule(n,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),nn="-ms-",Lh="-moz-",zt="-webkit-",lw="comm",y6="rule",b6="decl",ET="@import",uw="@keyframes",CT="@layer",ST=Math.abs,L2=String.fromCharCode,FT=Object.assign;function jT(e,t){return Xr(e,0)^45?(((t<<2^Xr(e,0))<<2^Xr(e,1))<<2^Xr(e,2))<<2^Xr(e,3):0}function cw(e){return e.trim()}function _T(e,t){return(e=t.exec(e))?e[0]:e}function Ut(e,t,r){return e.replace(t,r)}function B5(e,t){return e.indexOf(t)}function Xr(e,t){return e.charCodeAt(t)|0}function Ku(e,t,r){return e.slice(t,r)}function $i(e){return e.length}function x6(e){return e.length}function Pd(e,t){return t.push(e),e}function kT(e,t){return e.map(t).join("")}var R2=1,vl=1,dw=0,Rn=0,Tr=0,Il="";function z2(e,t,r,n,i,s,o){return{value:e,root:t,parent:r,type:n,props:i,children:s,line:R2,column:vl,length:o,return:""}}function hu(e,t){return FT(z2("",null,null,"",null,null,0),e,{length:-e.length},t)}function OT(){return Tr}function AT(){return Tr=Rn>0?Xr(Il,--Rn):0,vl--,Tr===10&&(vl=1,R2--),Tr}function Qn(){return Tr=Rn<dw?Xr(Il,Rn++):0,vl++,Tr===10&&(vl=1,R2++),Tr}function Wi(){return Xr(Il,Rn)}function hh(){return Rn}function ed(e,t){return Ku(Il,e,t)}function Yu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hw(e){return R2=vl=1,dw=$i(Il=e),Rn=0,[]}function fw(e){return Il="",e}function fh(e){return cw(ed(Rn-1,T5(e===91?e+2:e===40?e+1:e)))}function DT(e){for(;(Tr=Wi())&&Tr<33;)Qn();return Yu(e)>2||Yu(Tr)>3?"":" "}function BT(e,t){for(;--t&&Qn()&&!(Tr<48||Tr>102||Tr>57&&Tr<65||Tr>70&&Tr<97););return ed(e,hh()+(t<6&&Wi()==32&&Qn()==32))}function T5(e){for(;Qn();)switch(Tr){case e:return Rn;case 34:case 39:e!==34&&e!==39&&T5(Tr);break;case 40:e===41&&T5(e);break;case 92:Qn();break}return Rn}function TT(e,t){for(;Qn()&&e+Tr!==57;)if(e+Tr===84&&Wi()===47)break;return"/*"+ed(t,Rn-1)+"*"+L2(e===47?e:Qn())}function PT(e){for(;!Yu(Wi());)Qn();return ed(e,Rn)}function NT(e){return fw(ph("",null,null,null,[""],e=hw(e),0,[0],e))}function ph(e,t,r,n,i,s,o,l,u){for(var c=0,d=0,h=o,f=0,p=0,g=0,y=1,b=1,x=1,v=0,E="",_=i,j=s,F=n,k=E;b;)switch(g=v,v=Qn()){case 40:if(g!=108&&Xr(k,h-1)==58){B5(k+=Ut(fh(v),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:k+=fh(v);break;case 9:case 10:case 13:case 32:k+=DT(g);break;case 92:k+=BT(hh()-1,7);continue;case 47:switch(Wi()){case 42:case 47:Pd(MT(TT(Qn(),hh()),t,r),u);break;default:k+="/"}break;case 123*y:l[c++]=$i(k)*x;case 125*y:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:x==-1&&(k=Ut(k,/\f/g,"")),p>0&&$i(k)-h&&Pd(p>32?s7(k+";",n,r,h-1):s7(Ut(k," ","")+";",n,r,h-2),u);break;case 59:k+=";";default:if(Pd(F=a7(k,t,r,c,d,i,l,E,_=[],j=[],h),s),v===123)if(d===0)ph(k,t,F,F,_,s,h,l,j);else switch(f===99&&Xr(k,3)===110?100:f){case 100:case 108:case 109:case 115:ph(e,F,F,n&&Pd(a7(e,F,F,0,0,i,l,E,i,_=[],h),j),i,j,h,l,n?_:j);break;default:ph(k,F,F,F,[""],j,0,l,j)}}c=d=p=0,y=x=1,E=k="",h=o;break;case 58:h=1+$i(k),p=g;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&AT()==125)continue}switch(k+=L2(v),v*y){case 38:x=d>0?1:(k+="\f",-1);break;case 44:l[c++]=($i(k)-1)*x,x=1;break;case 64:Wi()===45&&(k+=fh(Qn())),f=Wi(),d=h=$i(E=k+=PT(hh())),v++;break;case 45:g===45&&$i(k)==2&&(y=0)}}return s}function a7(e,t,r,n,i,s,o,l,u,c,d){for(var h=i-1,f=i===0?s:[""],p=x6(f),g=0,y=0,b=0;g<n;++g)for(var x=0,v=Ku(e,h+1,h=ST(y=o[g])),E=e;x<p;++x)(E=cw(y>0?f[x]+" "+v:Ut(v,/&\f/g,f[x])))&&(u[b++]=E);return z2(e,t,r,i===0?y6:l,u,c,d)}function MT(e,t,r){return z2(e,t,r,lw,L2(OT()),Ku(e,2,-2),0)}function s7(e,t,r,n){return z2(e,t,r,b6,Ku(e,0,n),Ku(e,n+1,-1),n)}function il(e,t){for(var r="",n=x6(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function IT(e,t,r,n){switch(e.type){case CT:if(e.children.length)break;case ET:case b6:return e.return=e.return||e.value;case lw:return"";case uw:return e.return=e.value+"{"+il(e.children,n)+"}";case y6:e.value=e.props.join(",")}return $i(r=il(e.children,n))?e.return=e.value+"{"+r+"}":""}function $T(e){var t=x6(e);return function(r,n,i,s){for(var o="",l=0;l<t;l++)o+=e[l](r,n,i,s)||"";return o}}function LT(e){return function(t){t.root||(t=t.return)&&e(t)}}function RT(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var zT=function(t,r,n){for(var i=0,s=0;i=s,s=Wi(),i===38&&s===12&&(r[n]=1),!Yu(s);)Qn();return ed(t,Rn)},UT=function(t,r){var n=-1,i=44;do switch(Yu(i)){case 0:i===38&&Wi()===12&&(r[n]=1),t[n]+=zT(Rn-1,r,n);break;case 2:t[n]+=fh(i);break;case 4:if(i===44){t[++n]=Wi()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=L2(i)}while(i=Qn());return t},HT=function(t,r){return fw(UT(hw(t),r))},o7=new WeakMap,qT=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!o7.get(n))&&!i){o7.set(t,!0);for(var s=[],o=HT(r,s),l=n.props,u=0,c=0;u<o.length;u++)for(var d=0;d<l.length;d++,c++)t.props[c]=s[u]?o[u].replace(/&\f/g,l[d]):l[d]+" "+o[u]}}},WT=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function pw(e,t){switch(jT(e,t)){case 5103:return zt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zt+e+Lh+e+nn+e+e;case 6828:case 4268:return zt+e+nn+e+e;case 6165:return zt+e+nn+"flex-"+e+e;case 5187:return zt+e+Ut(e,/(\w+).+(:[^]+)/,zt+"box-$1$2"+nn+"flex-$1$2")+e;case 5443:return zt+e+nn+"flex-item-"+Ut(e,/flex-|-self/,"")+e;case 4675:return zt+e+nn+"flex-line-pack"+Ut(e,/align-content|flex-|-self/,"")+e;case 5548:return zt+e+nn+Ut(e,"shrink","negative")+e;case 5292:return zt+e+nn+Ut(e,"basis","preferred-size")+e;case 6060:return zt+"box-"+Ut(e,"-grow","")+zt+e+nn+Ut(e,"grow","positive")+e;case 4554:return zt+Ut(e,/([^-])(transform)/g,"$1"+zt+"$2")+e;case 6187:return Ut(Ut(Ut(e,/(zoom-|grab)/,zt+"$1"),/(image-set)/,zt+"$1"),e,"")+e;case 5495:case 3959:return Ut(e,/(image-set\([^]*)/,zt+"$1$`$1");case 4968:return Ut(Ut(e,/(.+:)(flex-)?(.*)/,zt+"box-pack:$3"+nn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zt+e+e;case 4095:case 3583:case 4068:case 2532:return Ut(e,/(.+)-inline(.+)/,zt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if($i(e)-1-t>6)switch(Xr(e,t+1)){case 109:if(Xr(e,t+4)!==45)break;case 102:return Ut(e,/(.+:)(.+)-([^]+)/,"$1"+zt+"$2-$3$1"+Lh+(Xr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~B5(e,"stretch")?pw(Ut(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xr(e,t+1)!==115)break;case 6444:switch(Xr(e,$i(e)-3-(~B5(e,"!important")&&10))){case 107:return Ut(e,":",":"+zt)+e;case 101:return Ut(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zt+(Xr(e,14)===45?"inline-":"")+"box$3$1"+zt+"$2$3$1"+nn+"$2box$3")+e}break;case 5936:switch(Xr(e,t+11)){case 114:return zt+e+nn+Ut(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zt+e+nn+Ut(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zt+e+nn+Ut(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return zt+e+nn+e+e}return e}var VT=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case b6:t.return=pw(t.value,t.length);break;case uw:return il([hu(t,{value:Ut(t.value,"@","@"+zt)})],i);case y6:if(t.length)return kT(t.props,function(s){switch(_T(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return il([hu(t,{props:[Ut(s,/:(read-\w+)/,":"+Lh+"$1")]})],i);case"::placeholder":return il([hu(t,{props:[Ut(s,/:(plac\w+)/,":"+zt+"input-$1")]}),hu(t,{props:[Ut(s,/:(plac\w+)/,":"+Lh+"$1")]}),hu(t,{props:[Ut(s,/:(plac\w+)/,nn+"input-$1")]})],i)}return""})}},GT=[VT],KT=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||GT,s={},o,l=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),x=1;x<b.length;x++)s[b[x]]=!0;l.push(y)});var u,c=[qT,WT];{var d,h=[IT,LT(function(y){d.insert(y)})],f=$T(c.concat(i,h)),p=function(b){return il(NT(b),f)};u=function(b,x,v,E){d=v,p(b?b+"{"+x.styles+"}":x.styles),E&&(g.inserted[x.name]=!0)}}var g={key:r,sheet:new wT({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return g.sheet.hydrate(l),g};function YT(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ZT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},XT=/[A-Z]|^ms/g,JT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mw=function(t){return t.charCodeAt(1)===45},l7=function(t){return t!=null&&typeof t!="boolean"},zf=RT(function(e){return mw(e)?e:e.replace(XT,"-$&").toLowerCase()}),u7=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(JT,function(n,i,s){return rs={name:i,styles:s,next:rs},i})}return ZT[t]!==1&&!mw(t)&&typeof r=="number"&&r!==0?r+"px":r};function Rh(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return rs={name:i.name,styles:i.styles,next:rs},i.name;var s=r;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)rs={name:o.name,styles:o.styles,next:rs},o=o.next;var l=s.styles+";";return l}return QT(e,t,r)}}var u=r;if(t==null)return u;var c=t[u];return c!==void 0?c:u}function QT(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Rh(e,t,r[i])+";";else for(var s in r){var o=r[s];if(typeof o!="object"){var l=o;t!=null&&t[l]!==void 0?n+=s+"{"+t[l]+"}":l7(l)&&(n+=zf(s)+":"+u7(s,l)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var u=0;u<o.length;u++)l7(o[u])&&(n+=zf(s)+":"+u7(s,o[u])+";");else{var c=Rh(e,t,o);switch(s){case"animation":case"animationName":{n+=zf(s)+":"+c+";";break}default:n+=s+"{"+c+"}"}}}return n}var c7=/label:\s*([^\s;{]+)\s*(;|$)/g,rs;function Uf(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";rs=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,i+=Rh(r,t,s);else{var o=s;i+=o[0]}for(var l=1;l<e.length;l++)if(i+=Rh(r,t,e[l]),n){var u=s;i+=u[l]}c7.lastIndex=0;for(var c="",d;(d=c7.exec(i))!==null;)c+="-"+d[1];var h=YT(i)+c;return{name:h,styles:i,next:rs}}function gw(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var eP=function(t,r,n){var i=t.key+"-"+r.name;t.registered[i]===void 0&&(t.registered[i]=r.styles)},tP=function(t,r,n){eP(t,r);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function d7(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function h7(e,t,r){var n=[],i=gw(e,n,r);return n.length<2?r:i+t(n)}var rP=function(t){var r=KT(t);r.sheet.speedy=function(l){this.isSpeedy=l},r.compat=!0;var n=function(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var h=Uf(c,r.registered,void 0);return tP(r,h),r.key+"-"+h.name},i=function(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var h=Uf(c,r.registered),f="animation-"+h.name;return d7(r,{name:h.name,styles:"@keyframes "+f+"{"+h.styles+"}"}),f},s=function(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var h=Uf(c,r.registered);d7(r,h)},o=function(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return h7(r.registered,n,nP(c))};return{css:n,cx:o,injectGlobal:s,keyframes:i,hydrate:function(u){u.forEach(function(c){r.inserted[c]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:gw.bind(null,r.registered),merge:h7.bind(null,r.registered,n)}},nP=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var s=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))s=e(i);else{s="";for(var o in i)i[o]&&o&&(s&&(s+=" "),s+=o)}break}default:s=i}s&&(r&&(r+=" "),r+=s)}}return r},yw=rP({key:"css"}),iP=yw.cx,aP=yw.css;function v6(e,t){if(e==null)return{};var r,n,i=KD(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var bw="comm",xw="rule",vw="decl",sP="@import",oP="@namespace",lP="@keyframes",uP="@layer",ww=Math.abs,w6=String.fromCharCode;function Ew(e){return e.trim()}function mh(e,t,r){return e.replace(t,r)}function cP(e,t,r){return e.indexOf(t,r)}function al(e,t){return e.charCodeAt(t)|0}function wl(e,t,r){return e.slice(t,r)}function Ii(e){return e.length}function dP(e){return e.length}function Nd(e,t){return t.push(e),e}var U2=1,El=1,Cw=0,ci=0,Pr=0,$l="";function E6(e,t,r,n,i,s,o,l){return{value:e,root:t,parent:r,type:n,props:i,children:s,line:U2,column:El,length:o,return:"",siblings:l}}function hP(){return Pr}function fP(){return Pr=ci>0?al($l,--ci):0,El--,Pr===10&&(El=1,U2--),Pr}function ki(){return Pr=ci<Cw?al($l,ci++):0,El++,Pr===10&&(El=1,U2++),Pr}function ns(){return al($l,ci)}function gh(){return ci}function H2(e,t){return wl($l,e,t)}function Zu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pP(e){return U2=El=1,Cw=Ii($l=e),ci=0,[]}function mP(e){return $l="",e}function Hf(e){return Ew(H2(ci-1,P5(e===91?e+2:e===40?e+1:e)))}function gP(e){for(;(Pr=ns())&&Pr<33;)ki();return Zu(e)>2||Zu(Pr)>3?"":" "}function yP(e,t){for(;--t&&ki()&&!(Pr<48||Pr>102||Pr>57&&Pr<65||Pr>70&&Pr<97););return H2(e,gh()+(t<6&&ns()==32&&ki()==32))}function P5(e){for(;ki();)switch(Pr){case e:return ci;case 34:case 39:e!==34&&e!==39&&P5(Pr);break;case 40:e===41&&P5(e);break;case 92:ki();break}return ci}function bP(e,t){for(;ki()&&e+Pr!==57;)if(e+Pr===84&&ns()===47)break;return"/*"+H2(t,ci-1)+"*"+w6(e===47?e:ki())}function xP(e){for(;!Zu(ns());)ki();return H2(e,ci)}function vP(e){return mP(yh("",null,null,null,[""],e=pP(e),0,[0],e))}function yh(e,t,r,n,i,s,o,l,u){for(var c=0,d=0,h=o,f=0,p=0,g=0,y=1,b=1,x=1,v=0,E="",_=i,j=s,F=n,k=E;b;)switch(g=v,v=ki()){case 40:if(g!=108&&al(k,h-1)==58){cP(k+=mh(Hf(v),"&","&\f"),"&\f",ww(c?l[c-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:k+=Hf(v);break;case 9:case 10:case 13:case 32:k+=gP(g);break;case 92:k+=yP(gh()-1,7);continue;case 47:switch(ns()){case 42:case 47:Nd(wP(bP(ki(),gh()),t,r,u),u),(Zu(g||1)==5||Zu(ns()||1)==5)&&Ii(k)&&wl(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*y:l[c++]=Ii(k)*x;case 125*y:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:x==-1&&(k=mh(k,/\f/g,"")),p>0&&(Ii(k)-h||y===0&&g===47)&&Nd(p>32?p7(k+";",n,r,h-1,u):p7(mh(k," ","")+";",n,r,h-2,u),u);break;case 59:k+=";";default:if(Nd(F=f7(k,t,r,c,d,i,l,E,_=[],j=[],h,s),s),v===123)if(d===0)yh(k,t,F,F,_,s,h,l,j);else{switch(f){case 99:if(al(k,3)===110)break;case 108:if(al(k,2)===97)break;default:d=0;case 100:case 109:case 115:}d?yh(e,F,F,n&&Nd(f7(e,F,F,0,0,i,l,E,i,_=[],h,j),j),i,j,h,l,n?_:j):yh(k,F,F,F,[""],j,0,l,j)}}c=d=p=0,y=x=1,E=k="",h=o;break;case 58:h=1+Ii(k),p=g;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&fP()==125)continue}switch(k+=w6(v),v*y){case 38:x=d>0?1:(k+="\f",-1);break;case 44:l[c++]=(Ii(k)-1)*x,x=1;break;case 64:ns()===45&&(k+=Hf(ki())),f=ns(),d=h=Ii(E=k+=xP(gh())),v++;break;case 45:g===45&&Ii(k)==2&&(y=0)}}return s}function f7(e,t,r,n,i,s,o,l,u,c,d,h){for(var f=i-1,p=i===0?s:[""],g=dP(p),y=0,b=0,x=0;y<n;++y)for(var v=0,E=wl(e,f+1,f=ww(b=o[y])),_=e;v<g;++v)(_=Ew(b>0?p[v]+" "+E:mh(E,/&\f/g,p[v])))&&(u[x++]=_);return E6(e,t,r,i===0?xw:l,u,c,d,h)}function wP(e,t,r,n){return E6(e,t,r,bw,w6(hP()),wl(e,2,-2),0,n)}function p7(e,t,r,n,i){return E6(e,t,r,vw,wl(e,0,n),wl(e,n+1,-1),n,i)}function N5(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function EP(e,t,r,n){switch(e.type){case uP:if(e.children.length)break;case sP:case oP:case vw:return e.return=e.return||e.value;case bw:return"";case lP:return e.return=e.value+"{"+N5(e.children,n)+"}";case xw:if(!Ii(e.value=e.props.join(",")))return""}return Ii(r=N5(e.children,n))?e.return=e.value+"{"+r+"}":""}var Sw={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(UB,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",l="minute",u="hour",c="day",d="week",h="month",f="quarter",p="year",g="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var H=["th","st","nd","rd"],B=z%100;return"["+z+(H[(B-20)%10]||H[B]||H[0])+"]"}},E=function(z,H,B){var Y=String(z);return!Y||Y.length>=H?z:""+Array(H+1-Y.length).join(B)+z},_={s:E,z:function(z){var H=-z.utcOffset(),B=Math.abs(H),Y=Math.floor(B/60),P=B%60;return(H<=0?"+":"-")+E(Y,2,"0")+":"+E(P,2,"0")},m:function z(H,B){if(H.date()<B.date())return-z(B,H);var Y=12*(B.year()-H.year())+(B.month()-H.month()),P=H.clone().add(Y,h),le=B-P<0,be=H.clone().add(Y+(le?-1:1),h);return+(-(Y+(B-P)/(le?P-be:be-P))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:h,y:p,w:d,d:c,D:g,h:u,m:l,s:o,ms:s,Q:f}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},j="en",F={};F[j]=v;var k="$isDayjsObject",U=function(z){return z instanceof O||!(!z||!z[k])},W=function z(H,B,Y){var P;if(!H)return j;if(typeof H=="string"){var le=H.toLowerCase();F[le]&&(P=le),B&&(F[le]=B,P=le);var be=H.split("-");if(!P&&be.length>1)return z(be[0])}else{var V=H.name;F[V]=H,P=V}return!Y&&P&&(j=P),P||!Y&&j},K=function(z,H){if(U(z))return z.clone();var B=typeof H=="object"?H:{};return B.date=z,B.args=arguments,new O(B)},$=_;$.l=W,$.i=U,$.w=function(z,H){return K(z,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var O=function(){function z(B){this.$L=W(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[k]=!0}var H=z.prototype;return H.parse=function(B){this.$d=function(Y){var P=Y.date,le=Y.utc;if(P===null)return new Date(NaN);if($.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var be=P.match(b);if(be){var V=be[2]-1||0,te=(be[7]||"0").substring(0,3);return le?new Date(Date.UTC(be[1],V,be[3]||1,be[4]||0,be[5]||0,be[6]||0,te)):new Date(be[1],V,be[3]||1,be[4]||0,be[5]||0,be[6]||0,te)}}return new Date(P)}(B),this.init()},H.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},H.$utils=function(){return $},H.isValid=function(){return this.$d.toString()!==y},H.isSame=function(B,Y){var P=K(B);return this.startOf(Y)<=P&&P<=this.endOf(Y)},H.isAfter=function(B,Y){return K(B)<this.startOf(Y)},H.isBefore=function(B,Y){return this.endOf(Y)<K(B)},H.$g=function(B,Y,P){return $.u(B)?this[Y]:this.set(P,B)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(B,Y){var P=this,le=!!$.u(Y)||Y,be=$.p(B),V=function(T,J){var ve=$.w(P.$u?Date.UTC(P.$y,J,T):new Date(P.$y,J,T),P);return le?ve:ve.endOf(c)},te=function(T,J){return $.w(P.toDate()[T].apply(P.toDate("s"),(le?[0,0,0,0]:[23,59,59,999]).slice(J)),P)},de=this.$W,ee=this.$M,ie=this.$D,G="set"+(this.$u?"UTC":"");switch(be){case p:return le?V(1,0):V(31,11);case h:return le?V(1,ee):V(0,ee+1);case d:var N=this.$locale().weekStart||0,I=(de<N?de+7:de)-N;return V(le?ie-I:ie+(6-I),ee);case c:case g:return te(G+"Hours",0);case u:return te(G+"Minutes",1);case l:return te(G+"Seconds",2);case o:return te(G+"Milliseconds",3);default:return this.clone()}},H.endOf=function(B){return this.startOf(B,!1)},H.$set=function(B,Y){var P,le=$.p(B),be="set"+(this.$u?"UTC":""),V=(P={},P[c]=be+"Date",P[g]=be+"Date",P[h]=be+"Month",P[p]=be+"FullYear",P[u]=be+"Hours",P[l]=be+"Minutes",P[o]=be+"Seconds",P[s]=be+"Milliseconds",P)[le],te=le===c?this.$D+(Y-this.$W):Y;if(le===h||le===p){var de=this.clone().set(g,1);de.$d[V](te),de.init(),this.$d=de.set(g,Math.min(this.$D,de.daysInMonth())).$d}else V&&this.$d[V](te);return this.init(),this},H.set=function(B,Y){return this.clone().$set(B,Y)},H.get=function(B){return this[$.p(B)]()},H.add=function(B,Y){var P,le=this;B=Number(B);var be=$.p(Y),V=function(ee){var ie=K(le);return $.w(ie.date(ie.date()+Math.round(ee*B)),le)};if(be===h)return this.set(h,this.$M+B);if(be===p)return this.set(p,this.$y+B);if(be===c)return V(1);if(be===d)return V(7);var te=(P={},P[l]=n,P[u]=i,P[o]=r,P)[be]||1,de=this.$d.getTime()+B*te;return $.w(de,this)},H.subtract=function(B,Y){return this.add(-1*B,Y)},H.format=function(B){var Y=this,P=this.$locale();if(!this.isValid())return P.invalidDate||y;var le=B||"YYYY-MM-DDTHH:mm:ssZ",be=$.z(this),V=this.$H,te=this.$m,de=this.$M,ee=P.weekdays,ie=P.months,G=P.meridiem,N=function(J,ve,Z,ge){return J&&(J[ve]||J(Y,le))||Z[ve].slice(0,ge)},I=function(J){return $.s(V%12||12,J,"0")},T=G||function(J,ve,Z){var ge=J<12?"AM":"PM";return Z?ge.toLowerCase():ge};return le.replace(x,function(J,ve){return ve||function(Z){switch(Z){case"YY":return String(Y.$y).slice(-2);case"YYYY":return $.s(Y.$y,4,"0");case"M":return de+1;case"MM":return $.s(de+1,2,"0");case"MMM":return N(P.monthsShort,de,ie,3);case"MMMM":return N(ie,de);case"D":return Y.$D;case"DD":return $.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return N(P.weekdaysMin,Y.$W,ee,2);case"ddd":return N(P.weekdaysShort,Y.$W,ee,3);case"dddd":return ee[Y.$W];case"H":return String(V);case"HH":return $.s(V,2,"0");case"h":return I(1);case"hh":return I(2);case"a":return T(V,te,!0);case"A":return T(V,te,!1);case"m":return String(te);case"mm":return $.s(te,2,"0");case"s":return String(Y.$s);case"ss":return $.s(Y.$s,2,"0");case"SSS":return $.s(Y.$ms,3,"0");case"Z":return be}return null}(J)||be.replace(":","")})},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(B,Y,P){var le,be=this,V=$.p(Y),te=K(B),de=(te.utcOffset()-this.utcOffset())*n,ee=this-te,ie=function(){return $.m(be,te)};switch(V){case p:le=ie()/12;break;case h:le=ie();break;case f:le=ie()/3;break;case d:le=(ee-de)/6048e5;break;case c:le=(ee-de)/864e5;break;case u:le=ee/i;break;case l:le=ee/n;break;case o:le=ee/r;break;default:le=ee}return P?le:$.a(le)},H.daysInMonth=function(){return this.endOf(h).$D},H.$locale=function(){return F[this.$L]},H.locale=function(B,Y){if(!B)return this.$L;var P=this.clone(),le=W(B,Y,!0);return le&&(P.$L=le),P},H.clone=function(){return $.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},z}(),R=O.prototype;return K.prototype=R,[["$ms",s],["$s",o],["$m",l],["$H",u],["$W",c],["$M",h],["$y",p],["$D",g]].forEach(function(z){R[z[1]]=function(H){return this.$g(H,z[0],z[1])}}),K.extend=function(z,H){return z.$i||(z(H,O,K),z.$i=!0),K},K.locale=W,K.isDayjs=U,K.unix=function(z){return K(1e3*z)},K.en=F[j],K.Ls=F,K.p={},K})})(Sw);var CP=Sw.exports;const Fw=Yv(CP);var SP=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}},qf,FP=m.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(qf=SP("dark"))!==null&&qf!==void 0&&qf.matches?"dark":"light"}),q2=function(){return m.useContext(FP)};function jP(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var jw=function(t){return t||"layoutkit"},_w=function(t,r){if(r)return"row";switch(t){case"horizontal":return"row";case"horizontal-reverse":return"row-reverse";case"vertical":default:return"column";case"vertical-reverse":return"column-reverse"}},_P=function(t){if(t)return["space-between","space-around","space-evenly"].includes(t)},kP=function(t,r){return _w(t,r)==="row"},zo=function(t){return typeof t=="number"?"".concat(t,"px"):t},m7,OP=["visible","flex","gap","direction","horizontal","align","justify","distribution","height","width","padding","paddingInline","paddingBlock","as","internalClassName","className","children","wrap"];function g7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function y7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g7(Object(r),!0).forEach(function(n){X4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var C6=m.forwardRef(function(e,t){var r=e.visible,n=e.flex,i=e.gap,s=e.direction,o=e.horizontal,l=e.align,u=e.justify,c=e.distribution,d=e.height,h=e.width,f=e.padding,p=e.paddingInline,g=e.paddingBlock,y=e.as,b=y===void 0?"div":y,x=e.internalClassName,v=e.className,E=e.children,_=e.wrap,j=v6(e,OP),F=u||c,k=m.useMemo(function(){return kP(s,o)&&!h&&_P(F)?"100%":zo(h)},[s,o,F,h]);return a.jsx(b,y7(y7({ref:t},j),{},{className:iP(x,aP(m7||(m7=jP([`
- // 是否显示
- display: `,`;
- flex: `,`;
- flex-direction: `,`;
- flex-wrap: `,`;
- justify-content: `,`;
- align-items: `,`;
- width: `,`;
- height: `,`;
- padding: `,`;
- padding-inline: `,`;
- padding-block: `,`;
- gap: `,`;
- `])),r===!1?"none":"flex",n,_w(s,o),_,F,l,k,zo(d),zo(f),zo(p),zo(g),zo(i)),v),children:E}))});C6.displayName="FlexBasic";var AP=["children","className","prefixCls"];function b7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function x7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b7(Object(r),!0).forEach(function(n){X4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var kw=m.forwardRef(function(e,t){var r=e.children,n=e.className,i=e.prefixCls,s=v6(e,AP);return a.jsx(C6,x7(x7({ref:t,internalClassName:"".concat(jw(i),"-center"),className:n},s),{},{align:"center",justify:"center",children:r}))});kw.displayName="Center";var DP=["className","prefixCls","children"];function v7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function w7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v7(Object(r),!0).forEach(function(n){X4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Ow=m.forwardRef(function(e,t){var r=e.className,n=e.prefixCls,i=e.children,s=v6(e,DP);return a.jsx(C6,w7(w7({ref:t},s),{},{internalClassName:"".concat(jw(n),"-flexbox"),className:r,children:i}))});Ow.displayName="Flexbox";var BP=function(t){return t%2===0?t:t-1},TP=function(t,r){if(r){if(t&&r==="#000")return"0 0 0 1px rgba(255,255,255,0.1) inset";if(!t&&r==="#fff")return"0 0 0 1px rgba(0,0,0,0.05) inset"}};function Xu(e){"@babel/helpers - typeof";return Xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xu(e)}var PP=["shape","color","background","size","style","iconMultiple","Icon","iconStyle","iconClassName"];function E7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E7(Object(r),!0).forEach(function(n){NP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NP(e,t,r){return t=MP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MP(e){var t=IP(e,"string");return Xu(t)=="symbol"?t:String(t)}function IP(e,t){if(Xu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $P(e,t){if(e==null)return{};var r=LP(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LP(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Zt=m.memo(function(e){var t=e.shape,r=t===void 0?"circle":t,n=e.color,i=n===void 0?"#fff":n,s=e.background,o=e.size,l=e.style,u=e.iconMultiple,c=u===void 0?.75:u,d=e.Icon,h=e.iconStyle,f=e.iconClassName,p=$P(e,PP),g=q2(),y=g.isDarkMode;return a.jsx(kw,Wf(Wf({flex:"none",style:Wf({background:s,borderRadius:r==="circle"?"50%":Math.floor(o*.1),boxShadow:TP(y,s),color:i,height:o,width:o},l)},p),{},{children:d&&a.jsx(d,{className:f,color:i,size:BP(o*c),style:h})}))});function Ju(e){"@babel/helpers - typeof";return Ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ju(e)}var RP=["Icon","style","Text","color","size","spaceMultiple","textMultiple","extra","extraStyle","showText","showLogo","extraClassName","iconProps","inverse"];function C7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ga(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C7(Object(r),!0).forEach(function(n){zP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zP(e,t,r){return t=UP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UP(e){var t=HP(e,"string");return Ju(t)=="symbol"?t:String(t)}function HP(e,t){if(Ju(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ju(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qP(e,t){if(e==null)return{};var r=WP(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WP(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Jt=m.memo(function(e){var t=e.Icon,r=e.style,n=e.Text,i=e.color,s=e.size,o=s===void 0?24:s,l=e.spaceMultiple,u=l===void 0?1:l,c=e.textMultiple,d=c===void 0?1:c,h=e.extra,f=e.extraStyle,p=e.showText,g=p===void 0?!0:p,y=e.showLogo,b=y===void 0?!0:y,x=e.extraClassName,v=e.iconProps,E=e.inverse,_=qP(e,RP),j=t&&b&&a.jsx(t,Ga(Ga({size:o},v),{},{style:Ga(E?{marginLeft:o*u}:{marginRight:o*u},v==null?void 0:v.style)})),F=g&&n&&a.jsx(n,{size:o*d});return a.jsxs(Ow,Ga(Ga({align:"center",flex:"none",horizontal:!0,justify:"flex-start",style:Ga({color:i},r)},_),{},{children:[E?a.jsxs(a.Fragment,{children:[F,j]}):a.jsxs(a.Fragment,{children:[j,F]}),h&&a.jsx("span",{className:x,style:Ga({fontSize:o*d*.95,lineHeight:1},f),children:h})]}))}),Qs="AI360",VP=.7,GP=.2,KP="#006ffb",Aw="linear-gradient(to bottom, #12B7FA, #006ffb)";function Qu(e){"@babel/helpers - typeof";return Qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}var YP=["size","style"];function S7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S7(Object(r),!0).forEach(function(n){ZP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZP(e,t,r){return t=XP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XP(e){var t=JP(e,"string");return Qu(t)=="symbol"?t:String(t)}function JP(e,t){if(Qu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QP(e,t){if(e==null)return{};var r=eN(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var S6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=QP(e,YP);return a.jsxs("svg",Vf(Vf({fill:"currentColor",fillRule:"evenodd",height:r,style:Vf({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Qs}),a.jsx("path",{clipRule:"evenodd",d:"M12 0h.018c1.473-.002 2.88.261 4.179.754C20.755 2.456 24 6.85 24 12c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zm8.604 18.967A11.024 11.024 0 0023.07 12c0-1.717-.39-3.344-1.089-4.794a2.59 2.59 0 01-3.214.62 6.278 6.278 0 01-1.333-.992C16.283 5.73 15.109 4.66 13.696 3.9c-3.211-1.729-6.825-1.501-9.695.447A11.033 11.033 0 00.93 12c0 1.663.367 3.241 1.024 4.657.75-.973 2.131-1.346 3.232-.71.667.384 1.257.92 1.837 1.447l.176.16c1.365 1.234 2.794 2.355 4.558 2.965 3.053 1.053 6.356.437 8.847-1.552z"}),a.jsx("path",{d:"M5.643 10.312c-.83.11-1.401.766-1.408 1.618a1.715 1.715 0 001.45 1.72c.805.128 1.64-.426 1.87-1.26.046-.167.076-.338.106-.51.025-.14.05-.282.084-.42.318-1.317 1.237-1.95 2.788-1.93 1.086.013 1.318.271 1.68 1.855.017.076.043.151.07.226.26.714.976 1.17 1.67 1.065a1.647 1.647 0 001.38-1.438c.083-.729-.348-1.264-1.122-1.575-.34-.136-.664-.158-.995-.141-.726.037-1.121-.36-1.339-.977a3.359 3.359 0 01-.134-.65c-.014-.093-.027-.186-.043-.278-.156-.887-.835-1.51-1.669-1.532-.791-.02-1.464.551-1.665 1.418l-.06.27-.025.117c-.355 1.636-.974 2.205-2.638 2.422z"}),a.jsx("path",{d:"M18.059 13.644c.989-.206 1.577-.838 1.592-1.697.015-.83-.624-1.582-1.46-1.724-.77-.13-1.599.383-1.844 1.18-.069.22-.117.448-.165.676-.06.29-.122.58-.225.854-.367.986-1.593 1.546-2.926 1.394-.824-.095-1.106-.446-1.342-1.674-.18-.938-.864-1.535-1.681-1.467-.85.07-1.515.829-1.468 1.673.05.892.678 1.44 1.705 1.489 1.375.064 1.75.396 1.926 1.787.067.531.267.967.685 1.288 1.02.783 2.407.208 2.66-1.108l.022-.114c.152-.796.3-1.577 1.04-2.101.36-.255.761-.326 1.166-.397.105-.019.21-.037.315-.06z"}),a.jsx("path",{d:"M13.83 7.961a.755.755 0 11-1.51 0 .755.755 0 011.51 0z"}),a.jsx("path",{d:"M10.809 16.678a.755.755 0 100-1.511.755.755 0 000 1.51z"})]}))});function ec(e){"@babel/helpers - typeof";return ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ec(e)}var tN=["background"];function F7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F7(Object(r),!0).forEach(function(n){nN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nN(e,t,r){return t=iN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iN(e){var t=aN(e,"string");return ec(t)=="symbol"?t:String(t)}function aN(e,t){if(ec(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ec(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sN(e,t){if(e==null)return{};var r=oN(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var lN=m.memo(function(e){var t=e.background,r=sN(e,tN);return a.jsx(Zt,rN({Icon:S6,"aria-label":Qs,background:t||Aw,color:"#fff"},r))}),bo=function(t){var r="lobe-icons-".concat(t.toLowerCase(),"-fill");return m.useMemo(function(){return{fill:"url(#".concat(r,")"),id:r}},[t])},td=function(t,r){return m.useMemo(function(){var n=Array.from({length:r},function(i,s){var o="lobe-icons-".concat(t.toLowerCase(),"-fill-").concat(s);return{fill:"url(#".concat(o,")"),id:o}});return n},[t,r])};function tc(e){"@babel/helpers - typeof";return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(e)}var uN=["size","style"];function j7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j7(Object(r),!0).forEach(function(n){cN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cN(e,t,r){return t=dN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dN(e){var t=hN(e,"string");return tc(t)=="symbol"?t:String(t)}function hN(e,t){if(tc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fN(e,t){return yN(e)||gN(e,t)||mN(e,t)||pN()}function pN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mN(e,t){if(e){if(typeof e=="string")return _7(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _7(e,t)}}function _7(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,o,l=[],u=!0,c=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(u=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(d){c=!0,i=d}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function yN(e){if(Array.isArray(e))return e}function bN(e,t){if(e==null)return{};var r=xN(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Dw=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=bN(e,uN),s=td(Qs,5),o=fN(s,5),l=o[0],u=o[1],c=o[2],d=o[3],h=o[4];return a.jsxs("svg",Gf(Gf({height:r,style:Gf({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Qs}),a.jsxs("g",{children:[a.jsx("path",{clipRule:"evenodd",d:"M12 0h.018c1.473-.002 2.88.261 4.179.754C20.755 2.456 24 6.85 24 12c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zm8.604 18.967A11.024 11.024 0 0023.07 12c0-1.717-.39-3.344-1.089-4.794a2.59 2.59 0 01-3.214.62 6.278 6.278 0 01-1.333-.992C16.283 5.73 15.109 4.66 13.696 3.9c-3.211-1.729-6.825-1.501-9.695.447A11.033 11.033 0 00.93 12c0 1.663.367 3.241 1.024 4.657.75-.973 2.131-1.346 3.232-.71.667.384 1.257.92 1.837 1.447l.176.16c1.365 1.234 2.794 2.355 4.558 2.965 3.053 1.053 6.356.437 8.847-1.552z",fill:l.fill,fillRule:"evenodd"}),a.jsx("path",{d:"M5.643 10.312c-.83.11-1.401.766-1.408 1.618a1.715 1.715 0 001.45 1.72c.805.128 1.64-.426 1.87-1.26.046-.167.076-.338.106-.51.025-.14.05-.282.084-.42.318-1.317 1.237-1.95 2.788-1.93 1.086.013 1.318.271 1.68 1.855.017.076.043.151.07.226.26.714.976 1.17 1.67 1.065a1.647 1.647 0 001.38-1.438c.083-.729-.348-1.264-1.122-1.575-.34-.136-.664-.158-.995-.141-.726.037-1.121-.36-1.339-.977a3.359 3.359 0 01-.134-.65c-.014-.093-.027-.186-.043-.278-.156-.887-.835-1.51-1.669-1.532-.791-.02-1.464.551-1.665 1.418l-.06.27-.025.117c-.355 1.636-.974 2.205-2.638 2.422z",fill:u.fill}),a.jsx("path",{d:"M18.059 13.644c.989-.206 1.577-.838 1.592-1.697.015-.83-.624-1.582-1.46-1.724-.77-.13-1.599.383-1.844 1.18-.069.22-.117.448-.165.676-.06.29-.122.58-.225.854-.367.986-1.593 1.546-2.926 1.394-.824-.095-1.106-.446-1.342-1.674-.18-.938-.864-1.535-1.681-1.467-.85.07-1.515.829-1.468 1.673.05.892.678 1.44 1.705 1.489 1.375.064 1.75.396 1.926 1.787.067.531.267.967.685 1.288 1.02.783 2.407.208 2.66-1.108l.022-.114c.152-.796.3-1.577 1.04-2.101.36-.255.761-.326 1.166-.397.105-.019.21-.037.315-.06z",fill:c.fill}),a.jsx("path",{d:"M13.83 7.961a.755.755 0 11-1.51 0 .755.755 0 011.51 0z",fill:d.fill}),a.jsx("path",{d:"M10.809 16.678a.755.755 0 100-1.511.755.755 0 000 1.51z",fill:h.fill})]}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:l.id,x1:"12",x2:"12",y1:"0",y2:"24",children:[a.jsx("stop",{stopColor:"#12B7FA"}),a.jsx("stop",{offset:"1",stopColor:"#006ffb"})]}),a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:u.id,x1:"11.943",x2:"11.943",y1:"6.085",y2:"17.778",children:[a.jsx("stop",{stopColor:"#006ffb"}),a.jsx("stop",{offset:"1",stopColor:"#12B7FA"})]}),a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:c.id,x1:"11.943",x2:"11.943",y1:"6.085",y2:"17.778",children:[a.jsx("stop",{stopColor:"#006ffb"}),a.jsx("stop",{offset:"1",stopColor:"#12B7FA"})]}),a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:d.id,x1:"11.943",x2:"11.943",y1:"6.085",y2:"17.778",children:[a.jsx("stop",{stopColor:"#006ffb"}),a.jsx("stop",{offset:"1",stopColor:"#12B7FA"})]}),a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:h.id,x1:"11.943",x2:"11.943",y1:"6.085",y2:"17.778",children:[a.jsx("stop",{stopColor:"#006ffb"}),a.jsx("stop",{offset:"1",stopColor:"#12B7FA"})]})]})]}))});function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}var vN=["size","style"];function k7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k7(Object(r),!0).forEach(function(n){wN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wN(e,t,r){return t=EN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EN(e){var t=CN(e,"string");return rc(t)=="symbol"?t:String(t)}function CN(e,t){if(rc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SN(e,t){if(e==null)return{};var r=FN(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Bw=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=SN(e,vN);return a.jsxs("svg",Kf(Kf({fill:"currentColor",fillRule:"evenodd",height:r,style:Kf({flex:"none",lineHeight:1},n),viewBox:"0 0 78 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Qs}),a.jsx("path",{d:"M17.978 2H2v1.196c0 1.02.827 1.847 1.848 1.847h14.565a3.913 3.913 0 013.913 3.914v1.304H3.956v3.043h18.37v1.848a3.913 3.913 0 01-3.913 3.913H3.848c-1.02 0-1.848.827-1.848 1.848V22h15.978a7.391 7.391 0 007.392-7.391V9.39A7.391 7.391 0 0017.978 2z"}),a.jsx("path",{clipRule:"evenodd",d:"M27.978 8.957A6.956 6.956 0 0134.935 2h15.87v1.304c0 .96-.78 1.74-1.74 1.74H34.826a3.913 3.913 0 00-3.913 3.913v1.304h15a4.783 4.783 0 014.783 4.783v2.173A4.783 4.783 0 0145.913 22H34.935a6.956 6.956 0 01-6.957-6.957V8.957zm2.935 4.239v1.848c0 2.22 1.8 4.021 4.022 4.021h10.76c1.201 0 2.175-.973 2.175-2.174V15.37c0-1.201-.974-2.174-2.174-2.174H30.913zM60.26 2.109a6.848 6.848 0 00-6.847 6.848v6.195A6.848 6.848 0 0060.261 22h9.13a6.848 6.848 0 006.848-6.848V8.957a6.848 6.848 0 00-6.848-6.848h-9.13zm0 2.934a3.913 3.913 0 00-3.912 3.914v6.195a3.913 3.913 0 003.913 3.913h9.13a3.913 3.913 0 003.913-3.913V8.957a3.913 3.913 0 00-3.913-3.914h-9.13z"})]}))});function nc(e){"@babel/helpers - typeof";return nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nc(e)}var jN=["type"];function O7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _N(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O7(Object(r),!0).forEach(function(n){kN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kN(e,t,r){return t=ON(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ON(e){var t=AN(e,"string");return nc(t)=="symbol"?t:String(t)}function AN(e,t){if(nc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DN(e,t){if(e==null)return{};var r=BN(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var TN=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=DN(e,jN),i=r==="color"?Dw:S6;return a.jsx(Jt,_N({Icon:i,Text:Bw,"aria-label":Qs,spaceMultiple:GP,textMultiple:VP},n))}),Ba=S6;Ba.Color=Dw;Ba.Text=Bw;Ba.Combine=TN;Ba.Avatar=lN;Ba.colorPrimary=KP;Ba.colorGradient=Aw;Ba.title=Qs;var Ll="Claude",PN=.8,NN=.1,Tw="#D97757";function ic(e){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ic(e)}var MN=["size","style"];function A7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A7(Object(r),!0).forEach(function(n){IN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IN(e,t,r){return t=$N(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $N(e){var t=LN(e,"string");return ic(t)=="symbol"?t:String(t)}function LN(e,t){if(ic(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ic(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RN(e,t){if(e==null)return{};var r=zN(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var F6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=RN(e,MN);return a.jsxs("svg",Yf(Yf({fill:"currentColor",fillRule:"evenodd",height:r,style:Yf({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Ll}),a.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})]}))});function ac(e){"@babel/helpers - typeof";return ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ac(e)}var UN=["background"];function D7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function HN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D7(Object(r),!0).forEach(function(n){qN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qN(e,t,r){return t=WN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WN(e){var t=VN(e,"string");return ac(t)=="symbol"?t:String(t)}function VN(e,t){if(ac(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ac(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GN(e,t){if(e==null)return{};var r=KN(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var YN=m.memo(function(e){var t=e.background,r=GN(e,UN);return a.jsx(Zt,HN({Icon:F6,"aria-label":Ll,background:t||Tw},r))});function sc(e){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sc(e)}var ZN=["size","style"];function B7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B7(Object(r),!0).forEach(function(n){XN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XN(e,t,r){return t=JN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JN(e){var t=QN(e,"string");return sc(t)=="symbol"?t:String(t)}function QN(e,t){if(sc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(sc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eM(e,t){if(e==null)return{};var r=tM(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Pw=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=eM(e,ZN);return a.jsxs("svg",Zf(Zf({height:r,style:Zf({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Ll}),a.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z",fill:"#D97757",fillRule:"nonzero"})]}))});function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oc(e)}var rM=["size","style"];function T7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T7(Object(r),!0).forEach(function(n){nM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nM(e,t,r){return t=iM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iM(e){var t=aM(e,"string");return oc(t)=="symbol"?t:String(t)}function aM(e,t){if(oc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(oc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sM(e,t){if(e==null)return{};var r=oM(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Nw=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=sM(e,rM);return a.jsxs("svg",Xf(Xf({fill:"currentColor",fillRule:"nonzero",height:r,style:Xf({flex:"none",lineHeight:1},n),viewBox:"0 0 97 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Ll}),a.jsx("path",{d:"M13.623 20.222c-3.417 0-5.753-1.901-6.855-4.827a12.992 12.992 0 01-.838-4.772c0-4.907 2.206-8.315 7.08-8.315 3.275 0 5.297 1.425 6.448 4.826h1.402l-.19-4.69C18.709 1.18 16.258.543 13.276.543c-4.2 0-7.775 1.874-9.763 5.254a11.357 11.357 0 00-1.511 5.872c0 3.753 1.777 7.08 5.113 8.926a11.95 11.95 0 005.943 1.398c3.254 0 5.835-.617 8.122-1.697l.593-5.172h-1.43c-.858 2.362-1.88 3.78-3.574 4.534-.831.373-1.88.564-3.146.564zm14.74-17.914L28.499 0h-.967L23.23 1.29v.699l1.907.882v16.142c0 1.1-.565 1.344-2.043 1.528v1.18h7.319v-1.18c-1.484-.184-2.042-.428-2.042-1.528V2.315l-.007-.007zm29.104 19.685h.565l4.95-.937v-1.208l-.695-.054c-1.157-.109-1.457-.346-1.457-1.29V9.897l.137-2.763h-.783l-4.678.672v1.181l.457.082c1.266.183 1.64.536 1.64 1.419v7.67c-1.212.937-2.369 1.527-3.744 1.527-1.525 0-2.471-.774-2.471-2.58V9.905l.136-2.763h-.804l-4.684.672v1.181l.484.082c1.266.183 1.64.536 1.64 1.418v7.08c0 3 1.703 4.426 4.412 4.426 2.07 0 3.765-1.1 5.038-2.627L57.474 22l-.007-.007zm-13.602-9.55c0-3.836-2.043-5.309-5.733-5.309-3.254 0-5.616 1.344-5.616 3.57 0 .666.238 1.175.721 1.528l2.478-.326c-.109-.746-.163-1.201-.163-1.391 0-1.263.674-1.901 2.042-1.901 2.022 0 3.044 1.419 3.044 3.7v.746l-5.106 1.527c-1.702.462-2.67.863-3.316 1.8a3.386 3.386 0 00-.476 1.9c0 2.172 1.497 3.706 4.057 3.706 1.852 0 3.493-.835 4.922-2.416.51 1.581 1.294 2.416 2.69 2.416 1.13 0 2.15-.455 3.063-1.344l-.272-.937a4.363 4.363 0 01-1.178.163c-.783 0-1.157-.617-1.157-1.826v-5.607zm-6.536 7.378c-1.396 0-2.26-.808-2.26-2.226 0-.964.456-1.528 1.43-1.854l4.139-1.31v3.965c-1.321.997-2.097 1.425-3.31 1.425zm43.095 1.235v-1.208l-.701-.054c-1.158-.109-1.45-.346-1.45-1.29V2.308L78.409 0h-.974l-4.302 1.29v.699l1.906.882V8.18a6.024 6.024 0 00-3.656-1.046c-4.276 0-7.612 3.245-7.612 8.098 0 3.998 2.397 6.761 6.346 6.761 2.042 0 3.819-.99 4.922-2.525l-.136 2.525h.571l4.95-.937zm-8.96-12.313c2.043 0 3.575 1.181 3.575 3.353v6.11a4.91 4.91 0 01-3.547 1.425c-2.928 0-4.412-2.308-4.412-5.39 0-3.462 1.695-5.498 4.385-5.498zm19.424 3.055c-.381-1.792-1.484-2.81-3.016-2.81-2.288 0-3.874 1.717-3.874 4.18 0 3.646 1.934 6.008 5.059 6.008a5.858 5.858 0 005.03-2.953l.913.245c-.408 3.163-3.281 5.525-6.808 5.525-4.14 0-6.992-3.054-6.992-7.399 0-4.378 3.098-7.46 7.237-7.46 3.09 0 5.27 1.853 5.97 5.07l-10.783 3.3V14.05l7.264-2.247v-.006z"})]}))});function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}var lM=["type"];function P7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P7(Object(r),!0).forEach(function(n){cM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cM(e,t,r){return t=dM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dM(e){var t=hM(e,"string");return lc(t)=="symbol"?t:String(t)}function hM(e,t){if(lc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fM(e,t){if(e==null)return{};var r=pM(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var mM=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=fM(e,lM),i=r==="color"?Pw:F6;return a.jsx(Jt,uM({Icon:i,Text:Nw,"aria-label":Ll,spaceMultiple:NN,textMultiple:PN},n))}),bs=F6;bs.Color=Pw;bs.Text=Nw;bs.Combine=mM;bs.Avatar=YN;bs.colorPrimary=Tw;bs.title=Ll;var Rl="Cohere",gM=.75,yM=.3,Mw="#39594D";function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}var bM=["size","style"];function N7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N7(Object(r),!0).forEach(function(n){xM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xM(e,t,r){return t=vM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vM(e){var t=wM(e,"string");return uc(t)=="symbol"?t:String(t)}function wM(e,t){if(uc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(uc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EM(e,t){if(e==null)return{};var r=CM(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var j6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=EM(e,bM);return a.jsxs("svg",Jf(Jf({fill:"currentColor",fillRule:"evenodd",height:r,style:Jf({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Rl}),a.jsx("path",{clipRule:"evenodd",d:"M8.128 14.099c.592 0 1.77-.033 3.398-.703 1.897-.781 5.672-2.2 8.395-3.656 1.905-1.018 2.74-2.366 2.74-4.18A4.56 4.56 0 0018.1 1H7.549A6.55 6.55 0 001 7.55c0 3.617 2.745 6.549 7.128 6.549z"}),a.jsx("path",{clipRule:"evenodd",d:"M9.912 18.61a4.387 4.387 0 012.705-4.052l3.323-1.38c3.361-1.394 7.06 1.076 7.06 4.715a5.104 5.104 0 01-5.105 5.104l-3.597-.001a4.386 4.386 0 01-4.386-4.387z"}),a.jsx("path",{d:"M4.776 14.962A3.775 3.775 0 001 18.738v.489a3.776 3.776 0 007.551 0v-.49a3.775 3.775 0 00-3.775-3.775z"})]}))});function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}var SM=["background"];function M7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function FM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M7(Object(r),!0).forEach(function(n){jM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jM(e,t,r){return t=_M(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _M(e){var t=kM(e,"string");return cc(t)=="symbol"?t:String(t)}function kM(e,t){if(cc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(cc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OM(e,t){if(e==null)return{};var r=AM(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var DM=m.memo(function(e){var t=e.background,r=OM(e,SM);return a.jsx(Zt,FM({Icon:j6,"aria-label":Rl,background:t||Mw},r))});function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}var BM=["size","style"];function I7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I7(Object(r),!0).forEach(function(n){TM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TM(e,t,r){return t=PM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PM(e){var t=NM(e,"string");return dc(t)=="symbol"?t:String(t)}function NM(e,t){if(dc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MM(e,t){if(e==null)return{};var r=IM(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Iw=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=MM(e,BM);return a.jsxs("svg",Qf(Qf({height:r,style:Qf({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Rl}),a.jsx("path",{clipRule:"evenodd",d:"M8.128 14.099c.592 0 1.77-.033 3.398-.703 1.897-.781 5.672-2.2 8.395-3.656 1.905-1.018 2.74-2.366 2.74-4.18A4.56 4.56 0 0018.1 1H7.549A6.55 6.55 0 001 7.55c0 3.617 2.745 6.549 7.128 6.549z",fill:"#39594D",fillRule:"evenodd"}),a.jsx("path",{clipRule:"evenodd",d:"M9.912 18.61a4.387 4.387 0 012.705-4.052l3.323-1.38c3.361-1.394 7.06 1.076 7.06 4.715a5.104 5.104 0 01-5.105 5.104l-3.597-.001a4.386 4.386 0 01-4.386-4.387z",fill:"#D18EE2",fillRule:"evenodd"}),a.jsx("path",{d:"M4.776 14.962A3.775 3.775 0 001 18.738v.489a3.776 3.776 0 007.551 0v-.49a3.775 3.775 0 00-3.775-3.775z",fill:"#FF7759"})]}))});function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}var $M=["size","style"];function $7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ep(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$7(Object(r),!0).forEach(function(n){LM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LM(e,t,r){return t=RM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RM(e){var t=zM(e,"string");return hc(t)=="symbol"?t:String(t)}function zM(e,t){if(hc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UM(e,t){if(e==null)return{};var r=HM(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var $w=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=UM(e,$M);return a.jsxs("svg",ep(ep({fill:"currentColor",fillRule:"evenodd",height:r,style:ep({flex:"none",lineHeight:1},n),viewBox:"0 0 102 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Rl}),a.jsx("path",{d:"M9.589 21.996c3.12 0 5.85-1.56 6.929-4.709.21-.63-.091-1.05-.69-1.05h-1.17c-.54 0-.9.24-1.141.75-.93 1.83-2.22 2.488-3.839 2.488-2.88 0-4.65-2.01-4.65-5.369 0-3.358 1.831-5.369 4.589-5.369 1.68 0 3.06.72 3.93 2.43.27.51.598.749 1.14.749h1.17c.6 0 .9-.39.69-.96-1.259-3.42-4.08-4.74-6.958-4.74C5.24 6.217 2 9.428 2 14.107c0 4.68 3.09 7.89 7.589 7.89zm78.496-9.27c.389-2.55 2.129-4.14 4.499-4.14 2.37 0 4.14 1.62 4.349 4.14h-8.848zm4.62 9.27c2.76 0 5.519-1.29 6.869-4.199.33-.69.03-1.17-.57-1.17h-1.109c-.539 0-.87.239-1.14.72-.9 1.589-2.46 2.249-4.048 2.249-2.73 0-4.5-1.86-4.71-4.889h11.01c.6 0 .99-.33.99-.96-.12-4.71-3.178-7.528-7.409-7.528-4.23 0-7.589 3.06-7.589 7.89 0 4.829 3.27 7.889 7.71 7.889l-.005-.002zm-17.458-7.498h.99c.6 0 .93-.33 1.02-.961.572-4.053 2.944-4.59 5.467-4.47.54.026.982-.39.982-.93v-.93c0-.599-.3-.96-.9-.99-2.232-.085-4.224.681-5.375 2.85-.063.119-.241.087-.256-.046l-.186-1.636c-.06-.599-.39-.9-.99-.9h-4.53c-.529 0-.96.43-.96.961v.51c0 .53.43.961.96.961h1.86c.53 0 .962.43.962.96v3.66c0 .529.43.96.96.96h-.004zm-4.048 7.2h9.387c.6 0 .961-.36.961-.962v-.51c0-.598-.36-.96-.96-.96h-2.4c-.6 0-.961-.36-.961-.961v-1.65c0-.6-.36-.962-.961-.962h-1.02c-.599 0-.96.36-.96.961v1.651c0 .599-.36.96-.962.96h-2.129c-.599 0-.96.36-.96.962v.51c0 .599.36.96.96.96h.005zm-14.489-8.97c.39-2.55 2.13-4.139 4.5-4.139s4.14 1.619 4.349 4.14H56.71zm4.62 9.27c2.76 0 5.52-1.289 6.87-4.199.33-.69.03-1.17-.57-1.17h-1.108c-.54 0-.87.239-1.141.72-.9 1.589-2.46 2.249-4.049 2.249-2.73 0-4.499-1.86-4.708-4.889h11.009c.599 0 .99-.33.99-.96-.12-4.71-3.178-7.528-7.41-7.528-4.23 0-7.588 3.06-7.588 7.89 0 4.829 3.27 7.889 7.71 7.889l-.005-.002zm-34.703 0c4.5 0 7.71-3.33 7.71-7.89s-3.21-7.89-7.71-7.89c-4.499 0-7.71 3.391-7.71 7.89 0 1.05.18 2.22.72 3.51.271.63.781.719 1.32.33l.87-.631c.451-.33.57-.72.42-1.29-.24-.748-.301-1.409-.301-1.978 0-3.149 1.89-5.31 4.68-5.31 2.788 0 4.678 2.13 4.678 5.37s-1.86 5.368-4.62 5.368c-.96 0-1.86-.18-2.94-.99-.45-.36-.869-.42-1.35-.06l-.66.481c-.54.39-.598.93-.09 1.35 1.56 1.26 3.358 1.74 4.98 1.74h.003zm11.517-.3h.99c.53 0 .962-.43.962-.962V13.57c0-3.029 1.618-4.83 4.139-4.83 2.28 0 3.6 1.5 3.6 4.26v7.74c0 .529.43.96.96.96h1.02c.53 0 .961-.43.961-.96v-8.22c0-4.048-2.07-6.298-5.578-6.298-2.39 0-3.801.978-4.855 2.338a.136.136 0 01-.243-.082V1.96A.97.97 0 0039.135 1h-.99c-.53 0-.962.43-.962.96v18.777c0 .529.43.96.961.96z"})]}))});function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}var qM=["type","extraStyle"];function L7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function R7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L7(Object(r),!0).forEach(function(n){WM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WM(e,t,r){return t=VM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VM(e){var t=GM(e,"string");return fc(t)=="symbol"?t:String(t)}function GM(e,t){if(fc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KM(e,t){if(e==null)return{};var r=YM(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var ZM=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=e.extraStyle,i=KM(e,qM),s=r==="color"?Iw:j6;return a.jsx(Jt,R7({Icon:s,Text:$w,"aria-label":Rl,extraStyle:R7({fontWeight:500},n),spaceMultiple:yM,textMultiple:gM},i))}),xs=j6;xs.Color=Iw;xs.Text=$w;xs.Combine=ZM;xs.Avatar=DM;xs.colorPrimary=Mw;xs.title=Rl;var rd="OpenAI",XM=.75,JM=.1,Lw="#000",Rw="#19C37D",zw="#AB68FF",Uw="#F9C322";function pc(e){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pc(e)}var QM=["size","style"];function z7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z7(Object(r),!0).forEach(function(n){eI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eI(e,t,r){return t=tI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tI(e){var t=rI(e,"string");return pc(t)=="symbol"?t:String(t)}function rI(e,t){if(pc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nI(e,t){if(e==null)return{};var r=iI(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var _6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=nI(e,QM);return a.jsxs("svg",tp(tp({fill:"currentColor",fillRule:"evenodd",height:r,style:tp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:rd}),a.jsx("path",{d:"M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z"})]}))}),zl="DeepSeek",aI=.65,sI=.2,Hw="#4D6BFE";function mc(e){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mc(e)}var oI=["size","style"];function U7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U7(Object(r),!0).forEach(function(n){lI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lI(e,t,r){return t=uI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uI(e){var t=cI(e,"string");return mc(t)=="symbol"?t:String(t)}function cI(e,t){if(mc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dI(e,t){if(e==null)return{};var r=hI(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var k6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=dI(e,oI);return a.jsxs("svg",rp(rp({fill:"currentColor",fillRule:"evenodd",height:r,style:rp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:zl}),a.jsx("path",{d:"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z"})]}))});function gc(e){"@babel/helpers - typeof";return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(e)}var fI=["background"];function H7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H7(Object(r),!0).forEach(function(n){mI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mI(e,t,r){return t=gI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gI(e){var t=yI(e,"string");return gc(t)=="symbol"?t:String(t)}function yI(e,t){if(gc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bI(e,t){if(e==null)return{};var r=xI(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var vI=m.memo(function(e){var t=e.background,r=bI(e,fI);return a.jsx(Zt,pI({Icon:k6,"aria-label":zl,background:t||Hw},r))});function yc(e){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yc(e)}var wI=["size","style"];function q7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function np(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q7(Object(r),!0).forEach(function(n){EI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EI(e,t,r){return t=CI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CI(e){var t=SI(e,"string");return yc(t)=="symbol"?t:String(t)}function SI(e,t){if(yc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FI(e,t){if(e==null)return{};var r=jI(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var qw=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=FI(e,wI);return a.jsxs("svg",np(np({height:r,style:np({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:zl}),a.jsx("path",{d:"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z",fill:"#4D6BFE"})]}))});function bc(e){"@babel/helpers - typeof";return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bc(e)}var _I=["size","style"];function W7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ip(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W7(Object(r),!0).forEach(function(n){kI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kI(e,t,r){return t=OI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OI(e){var t=AI(e,"string");return bc(t)=="symbol"?t:String(t)}function AI(e,t){if(bc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DI(e,t){if(e==null)return{};var r=BI(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ww=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=DI(e,_I);return a.jsxs("svg",ip(ip({fill:"currentColor",fillRule:"evenodd",height:r,style:ip({flex:"none",lineHeight:1},n),viewBox:"0 0 131 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:zl}),a.jsx("path",{d:"M117.986 0h-3.21v19.404h3.21V0zM8.7 5.215h1.83v2.838H8.7c-1.135 0-2.28.282-3.019 1.068-.738.785-1.016 1.99-1.016 3.194s.267 2.408 1.016 3.193c.75.786 1.884 1.068 3.018 1.068 1.135 0 2.28-.282 3.018-1.068.739-.785 1.017-1.99 1.017-3.193V.649h3.21v18.755h-3.21V18.21h-.589a3.498 3.498 0 01-.192.199c-.803.733-2.034.995-3.243.995-1.894 0-3.788-.472-5.03-1.78C2.44 16.314 2 14.303 2 12.303c0-2 .45-4 1.68-5.32 1.242-1.308 3.136-1.77 5.02-1.77zM57.564 18.9h-1.83v-2.837h1.83c1.134 0 2.28-.283 3.017-1.068.739-.785 1.017-1.99 1.017-3.194s-.267-2.408-1.017-3.194c-.749-.785-1.883-1.068-3.017-1.068s-2.28.283-3.018 1.068c-.738.786-1.017 1.99-1.017 3.194v11.655h-3.21V4.712h3.21v1.194h.59a3.42 3.42 0 01.186-.194l.005-.005c.803-.733 2.034-.995 3.243-.995 1.895 0 3.788.471 5.03 1.78 1.241 1.31 1.68 3.32 1.68 5.32 0 2-.45 4-1.68 5.319-1.23 1.32-3.135 1.77-5.019 1.77zM32.05 13.204v-1.14c0-2.064-.46-4.137-1.754-5.498-1.285-1.362-3.264-1.843-5.223-1.843-1.958 0-3.928.492-5.222 1.843-1.295 1.35-1.755 3.434-1.755 5.497 0 2.063.47 4.136 1.755 5.498 1.284 1.36 3.264 1.843 5.222 1.843 1.959 0 3.938-.493 5.223-1.843.663-.692 1.102-1.582 1.38-2.566h-3.168a5.026 5.026 0 01-.3.367c-.77.816-1.958 1.11-3.135 1.11-1.177 0-2.365-.304-3.136-1.11-.77-.807-1.048-2.063-1.048-3.299 0-1.236.278-2.482 1.049-3.298.77-.817 1.958-1.11 3.135-1.11 1.177 0 2.365.293 3.136 1.11.535.565.834 1.34.963 2.167H23.5v2.272h8.55zM48.168 12.063v1.141h-8.55v-2.272h5.671c-.129-.827-.428-1.602-.963-2.167-.77-.817-1.959-1.11-3.136-1.11s-2.365.293-3.136 1.11c-.77.816-1.049 2.063-1.049 3.298 0 1.236.279 2.492 1.05 3.299.77.806 1.958 1.11 3.135 1.11 1.177 0 2.365-.294 3.136-1.11.107-.116.203-.241.299-.367h3.168c-.278.985-.717 1.874-1.38 2.566-1.285 1.35-3.264 1.843-5.223 1.843s-3.938-.482-5.222-1.843c-1.285-1.362-1.756-3.435-1.756-5.498s.46-4.147 1.755-5.497c1.296-1.351 3.264-1.843 5.223-1.843s3.938.481 5.222 1.843c1.296 1.36 1.756 3.434 1.756 5.497zM78.635 18.315c-1.284.806-3.263 1.089-5.222 1.089-1.958 0-3.917-.294-5.212-1.09-1.295-.795-1.755-2.03-1.755-3.246h3.767c0 .472.225.953.824 1.257.6.304 1.54.419 2.462.419.92 0 1.851-.115 2.46-.42.611-.303.825-.784.825-1.256 0-.47-.214-.952-.824-1.256-.61-.304-1.627-.419-2.547-.419-1.777 0-3.563-.293-4.73-1.09-1.167-.795-1.584-2.03-1.584-3.245 0-1.215.417-2.44 1.584-3.246 1.167-.807 2.953-1.09 4.73-1.09 1.776 0 3.564.294 4.73 1.09 1.167.795 1.584 2.031 1.584 3.246h-3.264c0-.471-.203-.942-.749-1.257-.546-.303-1.391-.419-2.226-.419s-1.68.105-2.226.42c-.556.303-.75.785-.75 1.256 0 .47.204.942.75 1.256.545.304 1.316.42 2.151.42 1.959 0 3.938.292 5.222 1.088 1.295.796 1.756 2.032 1.756 3.246 0 1.215-.471 2.44-1.756 3.247zM96.507 12.063v1.141h-8.55v-2.272h5.672c-.129-.827-.429-1.602-.963-2.167-.771-.817-1.959-1.11-3.136-1.11s-2.366.293-3.136 1.11c-.77.816-1.048 2.063-1.048 3.298 0 1.236.278 2.492 1.048 3.299.77.806 1.959 1.11 3.135 1.11 1.178 0 2.366-.294 3.137-1.11.106-.116.203-.241.3-.367h3.167c-.279.985-.717 1.874-1.38 2.566-1.284 1.35-3.265 1.843-5.224 1.843-1.957 0-3.938-.482-5.222-1.843-1.284-1.362-1.754-3.435-1.754-5.498s.46-4.147 1.754-5.497c1.296-1.351 3.265-1.843 5.222-1.843 1.96 0 3.94.481 5.224 1.843 1.294 1.36 1.754 3.434 1.754 5.497zM112.624 13.204v-1.14c0-2.064-.46-4.137-1.754-5.498-1.285-1.362-3.265-1.843-5.223-1.843-1.959 0-3.928.492-5.222 1.843-1.296 1.35-1.756 3.434-1.756 5.497 0 2.063.471 4.136 1.756 5.498 1.284 1.36 3.263 1.843 5.222 1.843 1.958 0 3.938-.493 5.223-1.843.663-.692 1.102-1.582 1.38-2.566h-3.168l-.012.016c-.093.12-.185.24-.288.35-.77.817-1.957 1.11-3.135 1.11-1.177 0-2.365-.303-3.136-1.11-.77-.806-1.049-2.062-1.049-3.298 0-1.236.279-2.482 1.049-3.298.771-.817 1.959-1.11 3.136-1.11 1.178 0 2.365.293 3.135 1.11.536.565.836 1.34.964 2.167h-5.672v2.272h8.55zM128.73 19.404l-5.264-7.78 5.264-6.252h-3.97l-5.265 6.251 5.265 7.78h3.97z"})]}))});function xc(e){"@babel/helpers - typeof";return xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xc(e)}var TI=["type"];function V7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V7(Object(r),!0).forEach(function(n){NI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NI(e,t,r){return t=MI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MI(e){var t=II(e,"string");return xc(t)=="symbol"?t:String(t)}function II(e,t){if(xc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $I(e,t){if(e==null)return{};var r=LI(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var RI=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=$I(e,TI),i=r==="color"?qw:k6;return a.jsx(Jt,PI({Icon:i,Text:Ww,"aria-label":zl,spaceMultiple:sI,textMultiple:aI},n))}),vs=k6;vs.Color=qw;vs.Text=Ww;vs.Combine=RI;vs.Avatar=vI;vs.colorPrimary=Hw;vs.title=zl;var Ul="Doubao",zI=.8,UI=.15,Vw="#FFF";function vc(e){"@babel/helpers - typeof";return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vc(e)}var HI=["size","style"];function G7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ap(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G7(Object(r),!0).forEach(function(n){qI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qI(e,t,r){return t=WI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WI(e){var t=VI(e,"string");return vc(t)=="symbol"?t:String(t)}function VI(e,t){if(vc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GI(e,t){if(e==null)return{};var r=KI(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var O6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=GI(e,HI);return a.jsxs("svg",ap(ap({height:r,style:ap({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Ul}),a.jsx("path",{d:"M5.31 15.756c.172-3.75 1.883-5.999 2.549-6.739-3.26 2.058-5.425 5.658-6.358 8.308v1.12C1.501 21.513 4.226 24 7.59 24a6.59 6.59 0 002.2-.375c.353-.12.7-.248 1.039-.378.913-.899 1.65-1.91 2.243-2.992-4.877 2.431-7.974.072-7.763-4.5l.002.001z",fill:"#1E37FC"}),a.jsx("path",{d:"M22.57 10.283c-1.212-.901-4.109-2.404-7.397-2.8.295 3.792.093 8.766-2.1 12.773a12.782 12.782 0 01-2.244 2.992c3.764-1.448 6.746-3.457 8.596-5.219 2.82-2.683 3.353-5.178 3.361-6.66a2.737 2.737 0 00-.216-1.084v-.002z",fill:"#37E1BE"}),a.jsx("path",{d:"M14.303 1.867C12.955.7 11.248 0 9.39 0 7.532 0 5.883.677 4.545 1.807 2.791 3.29 1.627 5.557 1.5 8.125v9.201c.932-2.65 3.097-6.25 6.357-8.307.5-.318 1.025-.595 1.569-.829 1.883-.801 3.878-.932 5.746-.706-.222-2.83-.718-5.002-.87-5.617h.001z",fill:"#A569FF"}),a.jsx("path",{d:"M17.305 4.961a199.47 199.47 0 01-1.08-1.094c-.202-.213-.398-.419-.586-.622l-1.333-1.378c.151.615.648 2.786.869 5.617 3.288.395 6.185 1.898 7.396 2.8-1.306-1.275-3.475-3.487-5.266-5.323z",fill:"#1E37FC"})]}))});function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}var YI=["background"];function K7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ZI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K7(Object(r),!0).forEach(function(n){XI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XI(e,t,r){return t=JI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JI(e){var t=QI(e,"string");return wc(t)=="symbol"?t:String(t)}function QI(e,t){if(wc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e$(e,t){if(e==null)return{};var r=t$(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function t$(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var r$=m.memo(function(e){var t=e.background,r=e$(e,YI);return a.jsx(Zt,ZI({Icon:O6,"aria-label":Ul,background:t||Vw},r))});function Ec(e){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ec(e)}var n$=["size","style"];function Y7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y7(Object(r),!0).forEach(function(n){i$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i$(e,t,r){return t=a$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a$(e){var t=s$(e,"string");return Ec(t)=="symbol"?t:String(t)}function s$(e,t){if(Ec(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ec(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o$(e,t){if(e==null)return{};var r=l$(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l$(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Gw=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=o$(e,n$);return a.jsxs("svg",sp(sp({fill:"currentColor",fillRule:"evenodd",height:r,style:sp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Ul}),a.jsx("path",{d:"M5.31 15.756c.172-3.75 1.883-5.999 2.549-6.739-3.26 2.058-5.425 5.658-6.358 8.308v1.12C1.501 21.513 4.226 24 7.59 24a6.59 6.59 0 002.2-.375c.353-.12.7-.248 1.039-.378.913-.899 1.65-1.91 2.243-2.992-4.877 2.431-7.974.072-7.763-4.5l.002.001z",fillOpacity:".5"}),a.jsx("path",{d:"M22.57 10.283c-1.212-.901-4.109-2.404-7.397-2.8.295 3.792.093 8.766-2.1 12.773a12.782 12.782 0 01-2.244 2.992c3.764-1.448 6.746-3.457 8.596-5.219 2.82-2.683 3.353-5.178 3.361-6.66a2.737 2.737 0 00-.216-1.084v-.002zM14.303 1.867C12.955.7 11.248 0 9.39 0 7.532 0 5.883.677 4.545 1.807 2.791 3.29 1.627 5.557 1.5 8.125v9.201c.932-2.65 3.097-6.25 6.357-8.307.5-.318 1.025-.595 1.569-.829 1.883-.801 3.878-.932 5.746-.706-.222-2.83-.718-5.002-.87-5.617h.001z"}),a.jsx("path",{d:"M17.305 4.961a199.47 199.47 0 01-1.08-1.094c-.202-.213-.398-.419-.586-.622l-1.333-1.378c.151.615.648 2.786.869 5.617 3.288.395 6.185 1.898 7.396 2.8-1.306-1.275-3.475-3.487-5.266-5.323z",fillOpacity:".5"})]}))});function Cc(e){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cc(e)}var u$=["size","style"];function Z7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function op(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z7(Object(r),!0).forEach(function(n){c$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c$(e,t,r){return t=d$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d$(e){var t=h$(e,"string");return Cc(t)=="symbol"?t:String(t)}function h$(e,t){if(Cc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f$(e,t){if(e==null)return{};var r=p$(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p$(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Kw=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=f$(e,u$);return a.jsxs("svg",op(op({fill:"currentColor",fillRule:"evenodd",height:r,style:op({flex:"none",lineHeight:1},n),viewBox:"0 0 105 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Ul}),a.jsx("path",{clipRule:"evenodd",d:"M84.677 2.935h10.245V4.89h-1.956v2.573h2.423v2.04h-2.423v4.442h-2.125V9.503h-2.21c-.256 2.082-1.042 3.634-2.317 4.697l-1.68-1.467c.978-.744 1.573-1.828 1.829-3.23h-2.338v-2.04h2.465V4.89h-1.913V2.935zm4.06 1.955v2.573h2.104V4.89h-2.104zm7.46-1.253H98.3v7.268h-2.104V3.638zM85.23 15.603h7.205v-1.424h2.21v1.424h7.057v2.04h-7.057v1.764h8.226v2.02H84.04v-2.02h8.395v-1.764H85.23v-2.04zm14.92-1.382h-2.848l-.489-2.083c.914.085 1.786.149 2.593.149.404 0 .617-.34.617-1.02v-8.8h2.146v9.331c0 1.616-.68 2.423-2.019 2.423zM68.928 3.785h2.784v-1.53h2.062v1.53h2.784v-1.53h2.083v1.53h3.06v1.956h-3.06v1.254h-2.083V5.74h-2.784v1.254h-2.062V5.74h-2.784V3.785zm6.079 14.07c-.224.366-.465.72-.723 1.063-.978 1.254-2.72 2.232-5.186 2.954l-.765-1.827c2.019-.553 3.486-1.36 4.378-2.38a3.77 3.77 0 00.191-.256H68.44v-1.998h5.484c.106-.36.19-.744.276-1.126h-4.314V7.463h10.541v6.822h-4.272c-.063.382-.127.765-.212 1.126h5.802v1.998h-4.676c1.148 1.106 2.784 2.04 4.953 2.763l-1.51 1.786c-2.508-1.105-4.357-2.466-5.504-4.102zm-7.822-6.12v10.053h-2.083v-9.225c-.553 1.552-1.19 2.997-1.955 4.336l-.957-2.465c1.318-1.786 2.296-3.805 2.912-6.058v-.191h-2.231v-2.02h2.231V2.32h2.083v3.847h1.998v2.019h-1.998V9.29a60.294 60.294 0 012.636 3.316l-1.17 1.764a68.99 68.99 0 00-1.466-2.635zm11.243.892v-.935h-6.567v.935h6.567zm-6.567-2.55h6.567v-.914h-6.567v.913zm-29.33-2.55h8.055a35.1 35.1 0 00.233-3.423V2.191h2.254v1.403c0 1.382-.086 2.7-.234 3.932h8.523v2.168h-8.013c1.53 4.442 4.357 7.864 8.501 10.287l-1.402 1.828c-3.996-2.466-6.823-5.888-8.438-10.266-1.445 4.74-4.294 8.225-8.544 10.457l-1.424-1.87c4.293-2.083 7.014-5.569 8.161-10.436H42.53V7.526zm-7.694.934v6.972h-7.502v3.273c0 .531.297.807.935.807h9.65c.424-.042.7-.212.85-.53.106-.235.233-.979.36-2.211l2.105.701c-.15 1.275-.319 2.168-.51 2.7-.298.892-.978 1.36-2.083 1.402H27.335c-1.488 0-2.232-.659-2.232-1.976V9.439c-.425.468-.829.914-1.254 1.34l-1.573-1.871C24.104 7.292 25.677 4.976 27.037 2l2.253.51c-.255.595-.531 1.17-.786 1.722h11.52c0 5.653-.128 9.139-.34 10.457-.213 1.317-1.106 1.997-2.679 1.997-.255 0-.722-.042-1.36-.106l-.531-1.976c.595.063 1.105.106 1.53.106.51 0 .808-.34.893-1.02.127-.723.191-3.167.233-7.354H27.335c-.443.73-.918 1.439-1.424 2.125h8.926zm-7.502 4.974h5.27v-2.976h-5.27v2.976zM2.808 3.212h17.64v2.082H2.808V3.212zM2 19.024h5.483a30.518 30.518 0 00-1.636-3.932l1.913-.637c.637 1.254 1.169 2.593 1.636 4.017l-1.211.552h5.207c.68-1.275 1.275-2.826 1.786-4.612l2.167.596a23.133 23.133 0 01-1.764 4.016h5.527v2.169H2v-2.169zM4.805 6.74H18.43v7.375H4.805V6.74zm11.478 5.335V8.78H6.952v3.295h9.33z"})]}))});function Sc(e){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(e)}var m$=["type"];function X7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function g$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X7(Object(r),!0).forEach(function(n){y$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y$(e,t,r){return t=b$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b$(e){var t=x$(e,"string");return Sc(t)=="symbol"?t:String(t)}function x$(e,t){if(Sc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v$(e,t){if(e==null)return{};var r=w$(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function w$(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var E$=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=v$(e,m$),i=r==="color"?O6:Gw;return a.jsx(Jt,g$({Icon:i,Text:Kw,"aria-label":Ul,spaceMultiple:UI,textMultiple:zI},n))}),ws=Gw;ws.Color=O6;ws.Text=Kw;ws.Combine=E$;ws.Avatar=r$;ws.colorPrimary=Vw;ws.title=Ul;var Ki="Gemini",C$=.8,S$=.2,F$="#1C69FF",Yw="linear-gradient(45deg, #1C69FF 40%, #F0DCD6 100%)";function Fc(e){"@babel/helpers - typeof";return Fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fc(e)}var j$=["size","style"];function J7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J7(Object(r),!0).forEach(function(n){_$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _$(e,t,r){return t=k$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k$(e){var t=O$(e,"string");return Fc(t)=="symbol"?t:String(t)}function O$(e,t){if(Fc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A$(e,t){if(e==null)return{};var r=D$(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function D$(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var A6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=A$(e,j$);return a.jsxs("svg",lp(lp({fill:"currentColor",fillRule:"evenodd",height:r,style:lp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Ki}),a.jsx("path",{d:"M12 24A14.304 14.304 0 000 12 14.304 14.304 0 0012 0a14.305 14.305 0 0012 12 14.305 14.305 0 00-12 12"})]}))});function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}var B$=["background"];function Q7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function T$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q7(Object(r),!0).forEach(function(n){P$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q7(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P$(e,t,r){return t=N$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N$(e){var t=M$(e,"string");return jc(t)=="symbol"?t:String(t)}function M$(e,t){if(jc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I$(e,t){if(e==null)return{};var r=$$(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $$(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var L$=m.memo(function(e){var t=e.background,r=I$(e,B$);return a.jsx(Zt,T$({Icon:A6,"aria-label":Ki,background:t||Yw,iconMultiple:.6},r))});function _c(e){"@babel/helpers - typeof";return _c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_c(e)}var R$=["size","style"];function e8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function up(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e8(Object(r),!0).forEach(function(n){z$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z$(e,t,r){return t=U$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U$(e){var t=H$(e,"string");return _c(t)=="symbol"?t:String(t)}function H$(e,t){if(_c(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(_c(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q$(e,t){if(e==null)return{};var r=W$(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function W$(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var V$=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=q$(e,R$),s=bo("".concat(Ki,"-brand")),o=s.id,l=s.fill;return a.jsxs("svg",up(up({height:r,style:up({flex:"none",lineHeight:1},n),viewBox:"0 0 64 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Ki}),a.jsx("defs",{children:a.jsxs("radialGradient",{cx:"67.977%",cy:"18.976%",fx:"67.977%",fy:"18.976%",gradientTransform:"scale(-.3667 -1) rotate(-20.122 -1.657 7.14)",id:o,r:"192.358%",children:[a.jsx("stop",{offset:"0%",stopColor:"#1C69FF"}),a.jsx("stop",{offset:"100%",stopColor:"#94BCFE"})]})}),a.jsx("path",{d:"M16.759 14.825c0 2.037-.605 3.66-1.815 4.868-1.359 1.439-3.146 2.158-5.36 2.158-2.12 0-3.915-.733-5.383-2.2C2.734 18.187 2 16.38 2 14.236c0-2.145.734-3.95 2.201-5.417C5.67 7.352 7.463 6.62 9.583 6.62c1.074 0 2.086.19 3.037.57.952.38 1.733.917 2.345 1.609l-1.346 1.344c-.448-.543-1.03-.967-1.743-1.273a5.763 5.763 0 00-2.293-.458c-1.59 0-2.935.55-4.036 1.65-1.087 1.113-1.63 2.504-1.63 4.174 0 1.67.543 3.061 1.63 4.175 1.1 1.1 2.446 1.65 4.036 1.65 1.454 0 2.664-.408 3.629-1.223.964-.814 1.522-1.934 1.671-3.36h-5.3v-1.751h7.074c.068.38.102.747.102 1.1m5.886-3.563c1.496 0 2.687.483 3.572 1.45.886.967 1.329 2.32 1.329 4.062l-.021.206h-7.928c.028.987.357 1.783.989 2.386a3.164 3.164 0 002.265.905c1.208 0 2.155-.603 2.841-1.81l1.689.823a5.03 5.03 0 01-1.884 1.995c-.803.48-1.713.72-2.729.72-1.482 0-2.704-.507-3.665-1.522-.96-1.015-1.441-2.297-1.441-3.847 0-1.536.467-2.814 1.4-3.836.934-1.022 2.128-1.532 3.583-1.532m-.041 1.727c-.714 0-1.328.22-1.843.659-.515.438-.855 1.028-1.02 1.769h5.787a2.508 2.508 0 00-.855-1.738c-.515-.46-1.204-.69-2.07-.69m8.049 8.65h-1.89V11.59h1.807v1.395h.083c.287-.492.728-.902 1.324-1.23.595-.328 1.187-.492 1.775-.492.74 0 1.39.17 1.95.512.562.342.972.814 1.232 1.415.835-1.285 1.991-1.927 3.47-1.927 1.163 0 2.06.355 2.689 1.066.63.71.944 1.723.944 3.035v6.275h-1.889v-5.988c0-.943-.17-1.623-.513-2.04-.342-.417-.917-.626-1.724-.626-.726 0-1.334.308-1.827.923-.493.615-.74 1.34-.74 2.174v5.557h-1.888v-5.988c0-.943-.17-1.623-.513-2.04-.342-.417-.917-.626-1.724-.626-.726 0-1.335.308-1.827.923-.493.615-.74 1.34-.74 2.174v5.557zM46.749 6.767c.37 0 .685.13.946.39.26.26.39.575.39.945s-.13.685-.39.945c-.26.26-.576.39-.946.39s-.685-.13-.946-.39c-.26-.26-.39-.575-.39-.945s.13-.685.39-.945c.26-.26.576-.39.946-.39zM42.825 0a5.08 5.08 0 004.263 4.259 5.08 5.08 0 00-4.263 4.259 5.08 5.08 0 00-4.263-4.26A5.08 5.08 0 0042.825 0zm5.176 11.574V21.64h-2.198V11.574h2.198zM62 8.103c0 .37-.13.685-.39.945-.261.26-.576.39-.946.39s-.686-.13-.946-.39c-.26-.26-.391-.575-.391-.945s.13-.685.39-.945c.261-.26.576-.39.946-.39s.686.13.946.39c.26.26.391.575.391.945m-.085 3.471V21.64h-2.197V11.574h2.197zm-12.57.017h1.806v1.394h.082c.287-.492.729-.902 1.324-1.23a3.797 3.797 0 011.858-.492c1.231 0 2.179.352 2.843 1.056.664.704.995 1.705.995 3.004v6.316h-1.888v-6.193c-.041-1.64-.87-2.46-2.484-2.46-.753 0-1.382.303-1.889.912-.506.608-.76 1.336-.76 2.184v5.557h-1.888V11.591z",fill:l,fillRule:"nonzero"})]}))});function kc(e){"@babel/helpers - typeof";return kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kc(e)}var G$=["size","style"];function t8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t8(Object(r),!0).forEach(function(n){K$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K$(e,t,r){return t=Y$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y$(e){var t=Z$(e,"string");return kc(t)=="symbol"?t:String(t)}function Z$(e,t){if(kc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(kc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X$(e,t){if(e==null)return{};var r=J$(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function J$(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Q$=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=X$(e,G$);return a.jsxs("svg",cp(cp({fill:"currentColor",fillRule:"evenodd",height:r,style:cp({flex:"none",lineHeight:1},n),viewBox:"0 0 64 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Ki}),a.jsx("path",{d:"M16.759 14.825c0 2.037-.605 3.66-1.815 4.868-1.359 1.439-3.146 2.158-5.36 2.158-2.12 0-3.915-.733-5.383-2.2C2.734 18.187 2 16.38 2 14.236c0-2.145.734-3.95 2.201-5.417C5.67 7.352 7.463 6.62 9.583 6.62c1.074 0 2.086.19 3.037.57.952.38 1.733.917 2.345 1.609l-1.346 1.344c-.448-.543-1.03-.967-1.743-1.273a5.763 5.763 0 00-2.293-.458c-1.59 0-2.935.55-4.036 1.65-1.087 1.113-1.63 2.504-1.63 4.174 0 1.67.543 3.061 1.63 4.175 1.1 1.1 2.446 1.65 4.036 1.65 1.454 0 2.664-.408 3.629-1.223.964-.814 1.522-1.934 1.671-3.36h-5.3v-1.751h7.074c.068.38.102.747.102 1.1m5.886-3.563c1.496 0 2.687.483 3.572 1.45.886.967 1.329 2.32 1.329 4.062l-.021.206h-7.928c.028.987.357 1.783.989 2.386a3.164 3.164 0 002.265.905c1.208 0 2.155-.603 2.841-1.81l1.689.823a5.03 5.03 0 01-1.884 1.995c-.803.48-1.713.72-2.729.72-1.482 0-2.704-.507-3.665-1.522-.96-1.015-1.441-2.297-1.441-3.847 0-1.536.467-2.814 1.4-3.836.934-1.022 2.128-1.532 3.583-1.532m-.041 1.727c-.714 0-1.328.22-1.843.659-.515.438-.855 1.028-1.02 1.769h5.787a2.508 2.508 0 00-.855-1.738c-.515-.46-1.204-.69-2.07-.69m8.049 8.65h-1.89V11.59h1.807v1.395h.083c.287-.492.728-.902 1.324-1.23.595-.328 1.187-.492 1.775-.492.74 0 1.39.17 1.95.512.562.342.972.814 1.232 1.415.835-1.285 1.991-1.927 3.47-1.927 1.163 0 2.06.355 2.689 1.066.63.71.944 1.723.944 3.035v6.275h-1.889v-5.988c0-.943-.17-1.623-.513-2.04-.342-.417-.917-.626-1.724-.626-.726 0-1.334.308-1.827.923-.493.615-.74 1.34-.74 2.174v5.557h-1.888v-5.988c0-.943-.17-1.623-.513-2.04-.342-.417-.917-.626-1.724-.626-.726 0-1.335.308-1.827.923-.493.615-.74 1.34-.74 2.174v5.557zM46.749 6.767c.37 0 .685.13.946.39.26.26.39.575.39.945s-.13.685-.39.945c-.26.26-.576.39-.946.39s-.685-.13-.946-.39c-.26-.26-.39-.575-.39-.945s.13-.685.39-.945c.26-.26.576-.39.946-.39zM42.825 0a5.08 5.08 0 004.263 4.259 5.08 5.08 0 00-4.263 4.259 5.08 5.08 0 00-4.263-4.26A5.08 5.08 0 0042.825 0zm5.176 11.574V21.64h-2.198V11.574h2.198zM62 8.103c0 .37-.13.685-.39.945-.261.26-.576.39-.946.39s-.686-.13-.946-.39c-.26-.26-.391-.575-.391-.945s.13-.685.39-.945c.261-.26.576-.39.946-.39s.686.13.946.39c.26.26.391.575.391.945m-.085 3.471V21.64h-2.197V11.574h2.197zm-12.57.017h1.806v1.394h.082c.287-.492.729-.902 1.324-1.23a3.797 3.797 0 011.858-.492c1.231 0 2.179.352 2.843 1.056.664.704.995 1.705.995 3.004v6.316h-1.888v-6.193c-.041-1.64-.87-2.46-2.484-2.46-.753 0-1.382.303-1.889.912-.506.608-.76 1.336-.76 2.184v5.557h-1.888V11.591z"})]}))});function Oc(e){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oc(e)}var eL=["size","style"];function r8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?r8(Object(r),!0).forEach(function(n){tL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tL(e,t,r){return t=rL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rL(e){var t=nL(e,"string");return Oc(t)=="symbol"?t:String(t)}function nL(e,t){if(Oc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Oc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iL(e,t){if(e==null)return{};var r=aL(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aL(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Zw=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=iL(e,eL),s=bo(Ki),o=s.id,l=s.fill;return a.jsxs("svg",dp(dp({height:r,style:dp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Ki}),a.jsx("defs",{children:a.jsxs("linearGradient",{id:o,x1:"0%",x2:"68.73%",y1:"100%",y2:"30.395%",children:[a.jsx("stop",{offset:"0%",stopColor:"#1C7DFF"}),a.jsx("stop",{offset:"52.021%",stopColor:"#1C69FF"}),a.jsx("stop",{offset:"100%",stopColor:"#F0DCD6"})]})}),a.jsx("path",{d:"M12 24A14.304 14.304 0 000 12 14.304 14.304 0 0012 0a14.305 14.305 0 0012 12 14.305 14.305 0 00-12 12",fill:l,fillRule:"nonzero"})]}))});function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}var sL=["size","style"];function n8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?n8(Object(r),!0).forEach(function(n){oL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oL(e,t,r){return t=lL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lL(e){var t=uL(e,"string");return Ac(t)=="symbol"?t:String(t)}function uL(e,t){if(Ac(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ac(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cL(e,t){if(e==null)return{};var r=dL(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dL(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Xw=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=cL(e,sL);return a.jsxs("svg",hp(hp({fill:"currentColor",fillRule:"evenodd",height:r,style:hp({flex:"none",lineHeight:1},n),viewBox:"0 0 98 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Ki}),a.jsx("path",{d:"M21.186 12.67c0 2.649-.786 4.759-2.359 6.33-1.766 1.87-4.09 2.806-6.969 2.806-2.756 0-5.088-.953-6.996-2.86C2.954 17.04 2 14.693 2 11.904c0-2.789.954-5.137 2.862-7.043C6.77 2.953 9.102 2 11.858 2c1.396 0 2.712.247 3.949.741 1.236.495 2.252 1.192 3.047 2.092l-1.749 1.748c-.583-.706-1.338-1.258-2.266-1.655a7.49 7.49 0 00-2.981-.596c-2.067 0-3.816.715-5.247 2.145-1.413 1.448-2.12 3.257-2.12 5.428s.707 3.98 2.12 5.428c1.431 1.43 3.18 2.145 5.247 2.145 1.89 0 3.463-.53 4.717-1.588 1.254-1.06 1.979-2.516 2.173-4.37h-6.89v-2.277h9.196c.088.495.132.971.132 1.43m7.652-4.633c1.946 0 3.494.629 4.645 1.886 1.15 1.257 1.726 3.018 1.726 5.282l-.027.268H24.877c.036 1.284.464 2.318 1.285 3.102.82.785 1.802 1.177 2.944 1.177 1.57 0 2.802-.784 3.694-2.354l2.195 1.07a6.54 6.54 0 01-2.45 2.595C31.503 21.688 30.32 22 29 22c-1.927 0-3.516-.66-4.765-1.98-1.249-1.319-1.873-2.986-1.873-5.001 0-1.997.606-3.66 1.82-4.988 1.213-1.329 2.766-1.993 4.657-1.993m-.053 2.247c-.928 0-1.727.285-2.396.856-.67.57-1.11 1.337-1.325 2.3h7.522c-.071-.91-.442-1.663-1.111-2.26-.67-.598-1.566-.896-2.69-.896M39.247 21.53h-2.455V8.465h2.348v1.813h.107c.374-.64.947-1.173 1.721-1.6.774-.427 1.544-.64 2.309-.64.96 0 1.806.222 2.535.667a3.931 3.931 0 011.601 1.84c1.085-1.671 2.589-2.507 4.51-2.507 1.513 0 2.678.462 3.496 1.387.819.924 1.228 2.24 1.228 3.946v8.16h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.192-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.191-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227zM61.911 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zM80 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zm-16.343.022h2.349v1.813h.107c.373-.64.947-1.173 1.721-1.6a4.935 4.935 0 012.415-.64c1.601 0 2.833.458 3.696 1.373.863.916 1.294 2.218 1.294 3.907v8.213h-2.455v-8.053c-.053-2.133-1.13-3.2-3.229-3.2-.978 0-1.797.395-2.455 1.187-.658.79-.987 1.737-.987 2.84v7.226h-2.456V8.465z"})]}))});function Dc(e){"@babel/helpers - typeof";return Dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}var hL=["type"];function i8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i8(Object(r),!0).forEach(function(n){pL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pL(e,t,r){return t=mL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mL(e){var t=gL(e,"string");return Dc(t)=="symbol"?t:String(t)}function gL(e,t){if(Dc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yL(e,t){if(e==null)return{};var r=bL(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bL(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var xL=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=yL(e,hL),i=r==="color"?Zw:A6;return a.jsx(Jt,fL({Icon:i,Text:Xw,"aria-label":Ki,spaceMultiple:S$,textMultiple:C$},n))}),di=A6;di.Color=Zw;di.Text=Xw;di.Combine=xL;di.Avatar=L$;di.Brand=Q$;di.BrandColor=V$;di.colorPrimary=F$;di.colorGradient=Yw;di.title=Ki;var Hl="Hunyuan",vL=.75,wL=.2,Jw="#0053e0";function Bc(e){"@babel/helpers - typeof";return Bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bc(e)}var EL=["size","style"];function a8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a8(Object(r),!0).forEach(function(n){CL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CL(e,t,r){return t=SL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SL(e){var t=FL(e,"string");return Bc(t)=="symbol"?t:String(t)}function FL(e,t){if(Bc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jL(e,t){if(e==null)return{};var r=_L(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _L(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var D6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=jL(e,EL);return a.jsxs("svg",fp(fp({fill:"currentColor",fillRule:"evenodd",height:r,style:fp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Hl}),a.jsx("path",{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zm1.652 1.123l-.01-.001c.533.097 1.023.233 1.41.404 6.084 2.683 7.396 9.214 1.601 14.338a3.781 3.781 0 01-5.337-.328 3.654 3.654 0 01-.884-3.044c-1.934.6-3.295 2.305-3.524 4.45-.204 1.912.324 4.044 2.056 5.634l.245.067C10.1 22.876 11.036 23 12 23c6.075 0 11-4.925 11-11 0-5.513-4.056-10.08-9.348-10.877zM2.748 6.21c-.178.269-.348.536-.51.803l-.235.394.078-.167A10.957 10.957 0 001 12c0 4.919 3.228 9.083 7.682 10.49l.214.065C3.523 18.528 2.84 14.149 6.47 8.68A2.234 2.234 0 102.748 6.21zm10.157-5.172c4.408 1.33 3.61 5.41 2.447 6.924-.86 1.117-2.922 1.46-3.708 2.238-.666.657-1.077 1.462-1.212 2.291A5.303 5.303 0 0112 12.258a5.672 5.672 0 001.404-11.169 10.51 10.51 0 00-.5-.052z"})]}))});function Tc(e){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(e)}var kL=["background"];function s8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function OL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s8(Object(r),!0).forEach(function(n){AL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AL(e,t,r){return t=DL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DL(e){var t=BL(e,"string");return Tc(t)=="symbol"?t:String(t)}function BL(e,t){if(Tc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TL(e,t){if(e==null)return{};var r=PL(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function PL(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var NL=m.memo(function(e){var t=e.background,r=TL(e,kL);return a.jsx(Zt,OL({Icon:D6,"aria-label":Hl,background:t||Jw},r))});function Pc(e){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pc(e)}var ML=["size","style"];function o8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o8(Object(r),!0).forEach(function(n){IL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IL(e,t,r){return t=$L(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $L(e){var t=LL(e,"string");return Pc(t)=="symbol"?t:String(t)}function LL(e,t){if(Pc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RL(e,t){if(e==null)return{};var r=zL(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zL(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Qw=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=RL(e,ML);return a.jsxs("svg",pp(pp({height:r,style:pp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Hl}),a.jsxs("g",{fill:"none",fillRule:"evenodd",children:[a.jsx("circle",{cx:"12",cy:"12",fill:"#0055E9",r:"12"}),a.jsx("path",{d:"M12 0c.518 0 1.028.033 1.528.096A6.188 6.188 0 0112.12 12.28l-.12.001c-2.99 0-5.242 2.179-5.554 5.11-.223 2.086.353 4.412 2.242 6.146C3.672 22.1 0 17.479 0 12 0 5.373 5.373 0 12 0z",fill:"#A8DFF5"}),a.jsx("path",{d:"M5.286 5a2.438 2.438 0 01.682 3.38c-3.962 5.966-3.215 10.743 2.648 15.136C3.636 22.056 0 17.452 0 12c0-1.787.39-3.482 1.09-5.006.253-.435.525-.872.817-1.311A2.438 2.438 0 015.286 5z",fill:"#0055E9"}),a.jsx("path",{d:"M12.98.04c.272.021.543.053.81.093.583.106 1.117.254 1.538.44 6.638 2.927 8.07 10.052 1.748 15.642a4.125 4.125 0 01-5.822-.358c-1.51-1.706-1.3-4.184.357-5.822.858-.848 3.108-1.223 4.045-2.441 1.257-1.634 2.122-6.009-2.523-7.506L12.98.039z",fill:"#00BCFF"}),a.jsx("path",{d:"M13.528.096A6.187 6.187 0 0112 12.281a5.75 5.75 0 00-1.71.255c.147-.905.595-1.784 1.321-2.501.858-.848 3.108-1.223 4.045-2.441 1.27-1.651 2.14-6.104-2.676-7.554.184.014.367.033.548.056z",fill:"#ECECEE"})]})]}))});function Nc(e){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nc(e)}var UL=["size","style"];function l8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l8(Object(r),!0).forEach(function(n){HL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HL(e,t,r){return t=qL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qL(e){var t=WL(e,"string");return Nc(t)=="symbol"?t:String(t)}function WL(e,t){if(Nc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VL(e,t){if(e==null)return{};var r=GL(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GL(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var eE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=VL(e,UL);return a.jsxs("svg",mp(mp({fill:"currentColor",fillRule:"evenodd",height:r,style:mp({flex:"none",lineHeight:1},n),viewBox:"0 0 92 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Hl}),a.jsx("path",{d:"M20.222 9.566c.267.472.774.919 1.522 1.339.749.42 1.463.712 2.145.874l-.578 1.947a8.034 8.034 0 01-1.278-.388 8.589 8.589 0 01-1.522-.785l-.533 2.345h1.089c.548 0 .892.096 1.033.288.14.192.181.45.122.774-.133.87-.3 1.855-.5 2.954l-.544 2.998h-6.022l-.4-1.793h4.31l.623-3.03c.06-.295-.067-.443-.378-.443h-7.578l.711-3.628c-.133.059-.396.162-.788.31-.393.147-.849.28-1.367.398l.467-2.213a9.862 9.862 0 002.077-.807c.66-.347 1.211-.727 1.656-1.14h-3.356l.356-1.725h4.178c.163-.28.318-.62.466-1.018h-4.466l.355-1.77h1.534l-.534-2.655h2.334c.088.487.266 1.372.533 2.655h.8a20.69 20.69 0 00.4-3.03h2.355c-.074 1.194-.207 2.204-.4 3.03h.867a22.19 22.19 0 001.045-2.655h2.333a23.519 23.519 0 01-1.133 2.655H23.8l-.422 1.77H18.51c-.015.074-.148.413-.4 1.018h5.956l-.423 1.725h-3.422zM10.2 2.597c.444 0 .778.045 1 .133.222.089.356.236.4.443.044.206.044.442 0 .708L8.378 21.91H6.11l1.311-6.924h-1.51a81.747 81.747 0 01-.568 2.6 89.375 89.375 0 01-1.122 4.325H2a71.239 71.239 0 001.778-7.058l2.2-12.257H10.2zm-.889 2.301c.03-.162.011-.273-.055-.332-.067-.059-.182-.088-.345-.088H7.8L7.2 7.84h1.556l.555-2.943zm8.6 4.668h-.822a8.103 8.103 0 01-1.578 1.615h3.445a7.048 7.048 0 01-.578-.774 6.104 6.104 0 01-.467-.84zM7.756 13.173l.666-3.54H6.867l-.623 3.54h1.512zm6.644 1.725h3.289l.444-2.035H13.6l1.044.708-.244 1.327zm3.956 2.633l-.4 1.726h-7.667l-.311-1.726h8.378zM32.267 6.823h-2.423l-.822-4.646h2.311l.934 4.646zm11.777-4.447c.652 0 1.07.11 1.256.332.185.221.226.612.122 1.173L42.6 19.677h2.756l-.8 2.058h-4.8a1112.951 1112.951 0 001.777-10.111h-3.555L36.2 21.734h-2.444l1.777-10.11H32.49l.378-1.88h3l.844-4.735 2.156 1.593-.556 3.141h3.556c.34-2.006.63-3.598.866-4.778.045-.207.034-.365-.033-.476-.067-.11-.27-.166-.611-.166h-8.2l-.445-1.947h10.6zm-12.488 5.62l-1.69 9.446c.46-.339 1.438-1.098 2.934-2.278l-.533 2.876a47.11 47.11 0 01-2.778 2.035A66.226 66.226 0 0126.51 22l2.245-12.058h-2.29l.334-1.946h4.756zM54.444 6.535h-2.866c-.563-1.165-1.23-2.677-2-4.535h2.644a55.019 55.019 0 002.222 4.535zm11.49-4.093c.459 0 .807.037 1.044.111.237.074.4.221.489.443.089.22.096.59.022 1.106l-1 7.102H54.533l1.134-8.762h10.266zm-1.178 1.815h-6.89l-.2 1.593h7.156L65 4.61c.044-.235-.037-.353-.244-.353zm-11.312 8.03h-2.822a66.97 66.97 0 01-1.755-4.734H51.4a69.069 69.069 0 002.044 4.735zm3.778-2.898h7.067l.267-1.747h-7.112l-.222 1.747zm2.111 7.213H56.09l-.511 3.363h3.689l-.711 1.947h-5.712l1.534-9.868h2.4l-.4 2.633H59.6l-.267 1.925zm7.49-.93c-.993.355-2.438.812-4.334 1.372l-.4 2.92h4.867l-.69 1.948H59.4l1.4-9.868h2.4l-.4 2.92c1.852-.619 3.281-1.15 4.289-1.592l-.267 2.3zm-16.156-1.747h2.622c-1.304 3.186-2.511 5.848-3.622 7.987h-2.89a92.754 92.754 0 003.89-7.987zM89.4 3.15l-.333 2.036H73.91l.333-2.036H89.4zm.289 8.01h-4.911l-1.2 8.628h5.933l-.778 2.124h-8.2l1.6-10.753h-3.089a20.92 20.92 0 01-1.155 4.016 15.946 15.946 0 01-1.922 3.462c-.778 1.062-1.826 2.154-3.145 3.275h-3.8c1.215-.93 2.197-1.76 2.945-2.49a16.46 16.46 0 001.977-2.311 14.29 14.29 0 001.478-2.7c.415-.988.734-2.072.956-3.252h-5l.31-2.035H90l-.311 2.035z"})]}))});function Mc(e){"@babel/helpers - typeof";return Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mc(e)}var KL=["type"];function u8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u8(Object(r),!0).forEach(function(n){ZL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZL(e,t,r){return t=XL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XL(e){var t=JL(e,"string");return Mc(t)=="symbol"?t:String(t)}function JL(e,t){if(Mc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QL(e,t){if(e==null)return{};var r=eR(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eR(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var tR=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=QL(e,KL),i=r==="color"?Qw:D6;return a.jsx(Jt,YL({Icon:i,Text:eE,"aria-label":Hl,spaceMultiple:wL,textMultiple:vL},n))}),Es=D6;Es.Color=Qw;Es.Text=eE;Es.Combine=tR;Es.Avatar=NL;Es.colorPrimary=Jw;Es.title=Hl;var W2="Jina",tE="#000";function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}var rR=["size","style"];function c8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?c8(Object(r),!0).forEach(function(n){nR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nR(e,t,r){return t=iR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iR(e){var t=aR(e,"string");return Ic(t)=="symbol"?t:String(t)}function aR(e,t){if(Ic(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ic(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sR(e,t){if(e==null)return{};var r=oR(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oR(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var rE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=sR(e,rR);return a.jsxs("svg",gp(gp({fill:"currentColor",fillRule:"evenodd",height:r,style:gp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:W2}),a.jsx("path",{d:"M6.608 21.416a4.608 4.608 0 100-9.217 4.608 4.608 0 000 9.217zM20.894 2.015c.614 0 1.106.492 1.106 1.106v9.002c0 5.13-4.148 9.309-9.217 9.37v-9.355l-.03-9.032c0-.614.491-1.106 1.106-1.106h7.158l-.123.015z"})]}))});function $c(e){"@babel/helpers - typeof";return $c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$c(e)}var lR=["background"];function d8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d8(Object(r),!0).forEach(function(n){cR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cR(e,t,r){return t=dR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dR(e){var t=hR(e,"string");return $c(t)=="symbol"?t:String(t)}function hR(e,t){if($c(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($c(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fR(e,t){if(e==null)return{};var r=pR(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pR(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var mR=m.memo(function(e){var t=e.background,r=fR(e,lR);return a.jsx(Zt,uR({Icon:rE,"aria-label":W2,background:t||tE},r))});function Lc(e){"@babel/helpers - typeof";return Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(e)}var gR=["size","style"];function h8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h8(Object(r),!0).forEach(function(n){yR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yR(e,t,r){return t=bR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bR(e){var t=xR(e,"string");return Lc(t)=="symbol"?t:String(t)}function xR(e,t){if(Lc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Lc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vR(e,t){if(e==null)return{};var r=wR(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wR(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var ER=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=vR(e,gR);return a.jsxs("svg",yp(yp({fill:"currentColor",fillRule:"evenodd",height:r,style:yp({flex:"none",lineHeight:1},n),viewBox:"0 0 56 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:W2}),a.jsx("path",{d:"M3.67936 23.9993C5.71141 23.9993 7.35872 22.352 7.35872 20.32C7.35872 18.2879 5.71141 16.6406 3.67936 16.6406C1.64731 16.6406 0 18.2879 0 20.32C0 22.352 1.64731 23.9993 3.67936 23.9993Z"}),a.jsx("path",{d:"M15.2706 8.73059C15.7515 8.73059 16.1363 9.11536 16.1363 9.59632L16.0882 16.6424C16.0882 20.6584 12.8658 23.929 8.84973 24.0011H8.72949V16.6665H8.75354L8.77759 9.62037C8.77759 9.13941 9.16236 8.75464 9.64332 8.75464H15.2706V8.73059ZM26.5732 8.73059C27.0541 8.73059 27.4389 9.11536 27.4389 9.59632V19.456C27.4389 19.937 27.0541 20.3218 26.5732 20.3218H20.9459C20.465 20.3218 20.0802 19.937 20.0802 19.456V9.59632C20.0802 9.11536 20.465 8.73059 20.9459 8.73059H26.5732ZM35.4229 8.70654H35.5431C39.1503 8.75464 42.0842 11.6645 42.1804 15.2717V19.432C42.1804 19.913 41.7956 20.2977 41.3147 20.2977H32.2245C31.7435 20.2977 31.3588 19.913 31.3588 19.432V9.57228C31.3588 9.09131 31.7435 8.70654 32.2245 8.70654H35.4229ZM50.3086 20.2015C47.2786 20.0091 44.8497 17.4841 44.8497 14.4059C44.8497 11.2075 47.4469 8.61035 50.6453 8.61035C53.7235 8.61035 56.2485 11.0152 56.4409 14.0693V19.3358C56.4409 19.8168 56.0561 20.2015 55.5752 20.2015H50.3086Z"}),a.jsx("path",{d:"M23.7477 7.35872C25.7798 7.35872 27.4271 5.71141 27.4271 3.67936C27.4271 1.64731 25.7798 0 23.7477 0C21.7157 0 20.0684 1.64731 20.0684 3.67936C20.0684 5.71141 21.7157 7.35872 23.7477 7.35872Z"})]}))}),ql=rE;ql.Text=ER;ql.Avatar=mR;ql.colorPrimary=tE;ql.title=W2;var eo="Minimax",CR=.45,SR=.15,FR="#F23F5D",nE="linear-gradient(to right, #E2167E, #FE603C)";function Rc(e){"@babel/helpers - typeof";return Rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rc(e)}var jR=["size","style"];function f8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f8(Object(r),!0).forEach(function(n){_R(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _R(e,t,r){return t=kR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kR(e){var t=OR(e,"string");return Rc(t)=="symbol"?t:String(t)}function OR(e,t){if(Rc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AR(e,t){if(e==null)return{};var r=DR(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DR(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var B6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=AR(e,jR);return a.jsxs("svg",bp(bp({fill:"currentColor",fillRule:"evenodd",height:r,style:bp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:eo}),a.jsx("path",{d:"M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z"})]}))});function zc(e){"@babel/helpers - typeof";return zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}var BR=["background","size"];function p8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p8(Object(r),!0).forEach(function(n){PR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PR(e,t,r){return t=NR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NR(e){var t=MR(e,"string");return zc(t)=="symbol"?t:String(t)}function MR(e,t){if(zc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IR(e,t){if(e==null)return{};var r=$R(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $R(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var LR=m.memo(function(e){var t=e.background,r=e.size,n=IR(e,BR);return a.jsx(Zt,TR({Icon:B6,"aria-label":eo,background:t||nE,iconStyle:{marginLeft:-r*.05},size:r},n))});function Uc(e){"@babel/helpers - typeof";return Uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uc(e)}var RR=["size","style"];function m8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m8(Object(r),!0).forEach(function(n){zR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zR(e,t,r){return t=UR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UR(e){var t=HR(e,"string");return Uc(t)=="symbol"?t:String(t)}function HR(e,t){if(Uc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Uc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qR(e,t){if(e==null)return{};var r=WR(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WR(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var iE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=qR(e,RR),s=bo(eo),o=s.id,l=s.fill;return a.jsxs("svg",xp(xp({height:r,style:xp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:eo}),a.jsx("defs",{children:a.jsxs("linearGradient",{id:o,x1:"0%",x2:"100.182%",y1:"50.057%",y2:"50.057%",children:[a.jsx("stop",{offset:"0%",stopColor:"#E2167E"}),a.jsx("stop",{offset:"100%",stopColor:"#FE603C"})]})}),a.jsx("path",{d:"M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z",fill:l,fillRule:"nonzero"})]}))});function Hc(e){"@babel/helpers - typeof";return Hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hc(e)}var VR=["size","style"];function g8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g8(Object(r),!0).forEach(function(n){GR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GR(e,t,r){return t=KR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KR(e){var t=YR(e,"string");return Hc(t)=="symbol"?t:String(t)}function YR(e,t){if(Hc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Hc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZR(e,t){if(e==null)return{};var r=XR(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XR(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var aE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=ZR(e,VR);return a.jsxs("svg",vp(vp({fill:"currentColor",fillRule:"evenodd",height:r,style:vp({flex:"none",lineHeight:1},n),viewBox:"0 0 114 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:eo}),a.jsx("path",{d:"M2 22V2h4.23l4.41 6.828L14.93 2h3.988v20l-3.987-.06V9.25l-3.263 4.714H9.674L6.23 9.25V22H2zM26.471 2h-3.867v20h3.867V2zm3.565 0h4.049l7.492 12.387V2h3.988v20h-3.988L34.085 9.734V21.94h-4.049V2zm23.082 0h-4.109v20h4.109V2zm3.504 0v20h4.23V9.25l3.444 4.714h1.994l3.263-4.713V21.94l3.988.06V2h-3.988l-4.29 6.828L60.852 2h-4.23zm19.457 20l6.344-20h5.076l6.404 20h-4.471l-.89-3.021h-7.139L80.49 22h-4.411zm6.369-6.405h5.078l-2.505-8.338-2.573 8.338zM111.97 2h-4.774l-3.619 6.082L99.885 2h-4.592l5.961 9.985L95.294 22h4.591l3.698-6.113 3.613 6.053h4.774l-6.025-9.956L111.97 2z"})]}))});function qc(e){"@babel/helpers - typeof";return qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qc(e)}var JR=["type","extraStyle"];function y8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function b8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y8(Object(r),!0).forEach(function(n){QR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QR(e,t,r){return t=ez(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ez(e){var t=tz(e,"string");return qc(t)=="symbol"?t:String(t)}function tz(e,t){if(qc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rz(e,t){if(e==null)return{};var r=nz(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nz(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var iz=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=e.extraStyle,i=rz(e,JR),s=r==="color"?iE:B6;return a.jsx(Jt,b8({Icon:s,Text:aE,"aria-label":eo,extraStyle:b8({fontWeight:500},n),spaceMultiple:SR,textMultiple:CR},i))}),Ta=B6;Ta.Color=iE;Ta.Text=aE;Ta.Combine=iz;Ta.Avatar=LR;Ta.colorPrimary=FR;Ta.colorGradient=nE;Ta.title=eo;var Wl="Mistral",az=.6,sz=.2,sE="#FA520F";function Wc(e){"@babel/helpers - typeof";return Wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wc(e)}var oz=["size","style"];function x8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x8(Object(r),!0).forEach(function(n){lz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lz(e,t,r){return t=uz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uz(e){var t=cz(e,"string");return Wc(t)=="symbol"?t:String(t)}function cz(e,t){if(Wc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dz(e,t){if(e==null)return{};var r=hz(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hz(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var T6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=dz(e,oz);return a.jsxs("svg",wp(wp({fill:"currentColor",fillRule:"evenodd",height:r,style:wp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Wl}),a.jsx("path",{clipRule:"evenodd",d:"M3.428 3.4h3.429v3.428h3.429v3.429h-.002 3.431V6.828h3.427V3.4h3.43v13.714H24v3.429H13.714v-3.428h-3.428v-3.429h-3.43v3.428h3.43v3.429H0v-3.429h3.428V3.4zm10.286 13.715h3.428v-3.429h-3.427v3.429z"})]}))});function Vc(e){"@babel/helpers - typeof";return Vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vc(e)}var fz=["background"];function v8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v8(Object(r),!0).forEach(function(n){mz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mz(e,t,r){return t=gz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gz(e){var t=yz(e,"string");return Vc(t)=="symbol"?t:String(t)}function yz(e,t){if(Vc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bz(e,t){if(e==null)return{};var r=xz(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xz(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var vz=m.memo(function(e){var t=e.background,r=bz(e,fz);return a.jsx(Zt,pz({Icon:T6,"aria-label":Wl,background:t||sE,color:"#fff",iconMultiple:.7},r))});function Gc(e){"@babel/helpers - typeof";return Gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gc(e)}var wz=["size","style"];function w8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ep(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w8(Object(r),!0).forEach(function(n){Ez(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ez(e,t,r){return t=Cz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cz(e){var t=Sz(e,"string");return Gc(t)=="symbol"?t:String(t)}function Sz(e,t){if(Gc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fz(e,t){if(e==null)return{};var r=jz(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jz(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var oE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Fz(e,wz);return a.jsxs("svg",Ep(Ep({height:r,style:Ep({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Wl}),a.jsx("path",{d:"M3.428 3.4h3.429v3.428H3.428V3.4zm13.714 0h3.43v3.428h-3.43V3.4z",fill:"gold"}),a.jsx("path",{d:"M3.428 6.828h6.857v3.429H3.429V6.828zm10.286 0h6.857v3.429h-6.857V6.828z",fill:"#FFAF00"}),a.jsx("path",{d:"M3.428 10.258h17.144v3.428H3.428v-3.428z",fill:"#FF8205"}),a.jsx("path",{d:"M3.428 13.686h3.429v3.428H3.428v-3.428zm6.858 0h3.429v3.428h-3.429v-3.428zm6.856 0h3.43v3.428h-3.43v-3.428z",fill:"#FA500F"}),a.jsx("path",{d:"M0 17.114h10.286v3.429H0v-3.429zm13.714 0H24v3.429H13.714v-3.429z",fill:"#E10500"})]}))});function Kc(e){"@babel/helpers - typeof";return Kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kc(e)}var _z=["size","style"];function E8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E8(Object(r),!0).forEach(function(n){kz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kz(e,t,r){return t=Oz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oz(e){var t=Az(e,"string");return Kc(t)=="symbol"?t:String(t)}function Az(e,t){if(Kc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dz(e,t){if(e==null)return{};var r=Bz(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bz(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var lE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Dz(e,_z);return a.jsxs("svg",Cp(Cp({fill:"currentColor",fillRule:"evenodd",height:r,style:Cp({flex:"none",lineHeight:1},n),viewBox:"0 0 134 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Wl}),a.jsx("path",{d:"M2 22.638V1h6.55l3.933 14.76L16.37 1h6.565v21.638H18.87V5.605l-4.302 17.033h-4.214L6.066 5.605v17.033H2zm25.011-17.8V1.002h4.155V4.84h-4.155zm0 17.801V6.964h4.155V22.64h-4.155zm6.707-4.473l4.17-.635c.177.807.536 1.42 1.079 1.838.986.864 3.753.796 4.702.036.588-.404.753-1.367.25-1.89-.206-.196-.67-.378-1.389-.545-3.351-.738-5.475-1.412-6.372-2.022-2.418-1.526-2.465-5.18-.252-6.952 1.76-1.8 7.852-1.78 9.788-.34 1.045.699 1.764 1.732 2.159 3.1l-3.918.723c-.413-1.402-1.417-1.886-2.957-1.89-1.094 0-1.878.154-2.35.458-.591.383-.651 1.179-.06 1.595.374.275 1.668.664 3.88 1.165 2.213.502 3.759 1.117 4.636 1.845 1.993 1.694 1.615 5.13-.503 6.79-2.087 2.01-8.091 2.034-10.416.25-1.247-.865-2.063-2.04-2.447-3.527zm31.88 4.472h-4.154V6.963h3.86v2.229c.66-1.053 1.253-1.747 1.78-2.081 1.374-.857 3.144-.536 4.532.28l-1.286 3.617c-1.877-1.247-3.849-.81-4.384 1.535-.468 1.352-.329 7.76-.347 10.096zm10.67-10.892l-3.77-.679c1.014-3.408 3.08-4.43 6.801-4.457 2.81.037 4.804.362 6.055 2.324.37.674.554 1.912.554 3.713.013 1.729-.178 6.48.155 7.889.133.654.382 1.355.747 2.103H82.7c-.124-.272-.411-1.286-.547-1.712-1.378 1.335-2.97 2.066-4.865 2.067-2.945.058-5.22-1.756-5.219-4.635-.011-1.72.87-3.225 2.418-3.963.764-.37 1.865-.691 3.304-.967 1.942-.364 3.287-.703 4.037-1.018v-.413c0-.797-.197-1.366-.591-1.705-.57-.582-3.147-.744-3.963-.074-.414.29-.75.8-1.006 1.527zm5.56 3.365c-.757.315-4.139.86-4.79 1.358-1.077.707-1.038 2.141-.163 2.967 1.017.987 2.672.733 3.8-.103 1.374-.983 1.117-2.455 1.153-4.221zm7.933 7.527V1h4.155v21.638H89.76zm35.917 0h-4.761l-1.892-4.915h-8.665l-1.789 4.915h-4.643L112.371 1h4.627l8.679 21.638h.001zm-8.058-8.56l-2.987-8.03-2.927 8.03h5.914zm10.004 8.56V1H132v21.638h-4.376zM58.98 6.964v3.307H56.14v6.317l.081 2.236c.434 1.136 1.612.712 2.743.332l.355 3.218c-2.416 1.02-6.87 1.14-7.215-2.346-.096-.537-.123-1.89-.133-3.44v-6.317h-1.908V6.965h1.908V3.85l4.17-2.42v5.535h2.838z"})]}))});function Yc(e){"@babel/helpers - typeof";return Yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yc(e)}var Tz=["type"];function C8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C8(Object(r),!0).forEach(function(n){Nz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nz(e,t,r){return t=Mz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mz(e){var t=Iz(e,"string");return Yc(t)=="symbol"?t:String(t)}function Iz(e,t){if(Yc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $z(e,t){if(e==null)return{};var r=Lz(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lz(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Rz=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=$z(e,Tz),i=r==="color"?oE:T6;return a.jsx(Jt,Pz({Icon:i,Text:lE,"aria-label":Wl,spaceMultiple:sz,textMultiple:az},n))}),Cs=T6;Cs.Color=oE;Cs.Text=lE;Cs.Combine=Rz;Cs.Avatar=vz;Cs.colorPrimary=sE;Cs.title=Wl;var nd="MoonshotAI",zz=.75,Uz=.4,P6="#16191E";function Zc(e){"@babel/helpers - typeof";return Zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zc(e)}var Hz=["size","style"];function S8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S8(Object(r),!0).forEach(function(n){qz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qz(e,t,r){return t=Wz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wz(e){var t=Vz(e,"string");return Zc(t)=="symbol"?t:String(t)}function Vz(e,t){if(Zc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gz(e,t){if(e==null)return{};var r=Kz(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kz(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var N6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Gz(e,Hz);return a.jsxs("svg",Sp(Sp({fill:"currentColor",fillRule:"evenodd",height:r,style:Sp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:nd}),a.jsx("path",{d:"M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"})]}))});function Xc(e){"@babel/helpers - typeof";return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xc(e)}var Yz=["background"];function F8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F8(Object(r),!0).forEach(function(n){Xz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xz(e,t,r){return t=Jz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jz(e){var t=Qz(e,"string");return Xc(t)=="symbol"?t:String(t)}function Qz(e,t){if(Xc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eU(e,t){if(e==null)return{};var r=tU(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var rU=m.memo(function(e){var t=e.background,r=eU(e,Yz);return a.jsx(Zt,Zz({Icon:N6,"aria-label":nd,background:t||P6,color:"#fff"},r))});function Jc(e){"@babel/helpers - typeof";return Jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jc(e)}var nU=["size","style"];function j8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j8(Object(r),!0).forEach(function(n){iU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iU(e,t,r){return t=aU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aU(e){var t=sU(e,"string");return Jc(t)=="symbol"?t:String(t)}function sU(e,t){if(Jc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Jc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oU(e,t){if(e==null)return{};var r=lU(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var uE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=oU(e,nU);return a.jsxs("svg",Fp(Fp({fill:"currentColor",fillRule:"evenodd",height:r,style:Fp({flex:"none",lineHeight:1},n),viewBox:"0 0 171 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:nd}),a.jsx("path",{d:"M165.484 2H169v19.507h-3.516V2zm-35.707 0v5.26h3.186v3.507h-3.186v10.74h-3.516v-10.74h-2.966V7.26h2.966V2h3.516zm-24.598 11.023v8.498h-3.345v-8.804c.008-2.1-2.109-2.895-3.109-2.895l-.064.001c-1.073.026-3.521.694-3.54 3.863v7.835h-3.468V2.014L95.14 2v6.918c1.228-1.986 3.93-2.243 4.755-2.243.926 0 1.768.155 2.525.465.757.31 1.378.783 1.864 1.42.413.54.665 1.096.757 1.667.092.571.138 1.503.138 2.796zM89.29 9.507l-2.362 2.41c-2.911-2.41-6.647-2.136-7.196-.93-.55 1.205 2.444 1.484 4.734 1.98l.634.146c1.731.408 4.603 1.274 4.52 4.12-.11 3.78-4.23 4.767-6.867 4.767-2.637 0-5.933-1.808-7.636-3.342l2.527-2.63c2.582 2.63 7.142 2.958 7.856 1.534.714-1.425-1.263-1.48-4.834-1.973-3.175-.438-4.837-2.85-4.813-4.13.034-1.843 1.543-4.85 6.31-4.886 3.227-.025 5.425.961 7.127 2.934zm-22.617.386l-.033.001c-1.905.083-3.443 1.453-3.458 3.746v7.867h-3.83V7.185h3.702v2.061l.088-.12c.591-.8 2.07-2.555 4.796-2.523 2.675.032 5.696 1.95 5.696 5.17v9.734H69.69v-8.813c-.01-2.197-2.102-2.824-3.016-2.8zm-33.14-3.29c4.247 0 7.69 3.434 7.69 7.671s-3.443 7.671-7.69 7.671c-4.248 0-7.692-3.434-7.692-7.671s3.444-7.671 7.691-7.671zm0 3.726a3.95 3.95 0 00-3.956 3.945 3.95 3.95 0 003.955 3.945 3.95 3.95 0 003.956-3.945 3.95 3.95 0 00-3.956-3.945zm16.7-3.726c4.247 0 7.69 3.434 7.69 7.671s-3.443 7.671-7.69 7.671c-4.248 0-7.692-3.434-7.692-7.671s3.444-7.671 7.691-7.671zm0 3.726a3.95 3.95 0 00-3.956 3.945 3.95 3.95 0 003.955 3.945 3.95 3.95 0 003.956-3.945 3.95 3.95 0 00-3.956-3.945zm64.382-3.726c4.248 0 7.69 3.434 7.69 7.671s-3.442 7.671-7.69 7.671c-4.247 0-7.69-3.434-7.69-7.671s3.443-7.671 7.69-7.671zm0 3.726a3.95 3.95 0 00-3.955 3.945 3.95 3.95 0 003.955 3.945 3.95 3.95 0 003.955-3.945 3.95 3.95 0 00-3.955-3.945zM2 21.616V2l10.987 7.89L23.919 2v19.616h-3.79V9.452l-7.17 5.26-7.169-5.26v12.164H2zM153.344 2l10.492 19.507h-4.138l-1.833-3.288h-5.235l-1.789-3.46-3.632 6.748h-4.358L153.344 2zm0 8.11l-2.478 4.602h5.044l-2.566-4.602z"})]}))});function Qc(e){"@babel/helpers - typeof";return Qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qc(e)}var uU=["type","iconProps"];function _8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_8(Object(r),!0).forEach(function(n){cU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cU(e,t,r){return t=dU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dU(e){var t=hU(e,"string");return Qc(t)=="symbol"?t:String(t)}function hU(e,t){if(Qc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fU(e,t){if(e==null)return{};var r=pU(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var mU=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=e.iconProps,i=fU(e,uU),s=q2(),o=s.isDarkMode;return a.jsx(Jt,k8({Icon:N6,Text:uE,"aria-label":nd,iconProps:k8({color:r==="color"&&!o?P6:void 0},n),spaceMultiple:Uz,textMultiple:zz},i))}),xo=N6;xo.Text=uE;xo.Combine=mU;xo.Avatar=rU;xo.colorPrimary=P6;xo.title=nd;function e0(e){"@babel/helpers - typeof";return e0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e0(e)}var gU=["background","type"];function O8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O8(Object(r),!0).forEach(function(n){bU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bU(e,t,r){return t=xU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xU(e){var t=vU(e,"string");return e0(t)=="symbol"?t:String(t)}function vU(e,t){if(e0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(e0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wU(e,t){if(e==null)return{};var r=EU(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var CU=m.memo(function(e){var t=e.background,r=e.type,n=r===void 0?"normal":r,i=wU(e,gU),s;switch(n){case"gpt3":{s=Rw;break}case"gpt4":{s=zw;break}case"o3":case"o1":{s=Uw;break}default:s=t||Lw}return a.jsx(Zt,yU({Icon:_6,"aria-label":rd,background:s},i))});function t0(e){"@babel/helpers - typeof";return t0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t0(e)}var SU=["size","style"];function A8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A8(Object(r),!0).forEach(function(n){FU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FU(e,t,r){return t=jU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jU(e){var t=_U(e,"string");return t0(t)=="symbol"?t:String(t)}function _U(e,t){if(t0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(t0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kU(e,t){if(e==null)return{};var r=OU(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var cE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=kU(e,SU);return a.jsxs("svg",jp(jp({fill:"currentColor",fillRule:"evenodd",height:r,style:jp({flex:"none",lineHeight:1},n),viewBox:"0 0 84 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:rd}),a.jsx("path",{d:"M2 10.955c0 5.276 3.376 8.955 8.054 8.955 4.678 0 8.054-3.679 8.054-8.955S14.732 2 10.054 2C5.423 2 2.068 5.606 2 10.797L2 10.955zm13.021 0c0 3.775-2.05 6.22-4.967 6.22-2.918 0-4.968-2.445-4.968-6.22 0-3.776 2.05-6.22 4.968-6.22 2.917 0 4.967 2.444 4.967 6.22zm11.778 8.955c3.545 0 5.57-3.001 5.57-6.607 0-3.607-2.025-6.608-5.57-6.608-1.64 0-2.845.654-3.64 1.598V6.937h-2.894V24h2.893v-5.688c.796.944 2.002 1.598 3.641 1.598zm-3.713-6.97c0-2.397 1.35-3.703 3.135-3.703 2.097 0 3.23 1.645 3.23 4.066 0 2.42-1.133 4.066-3.23 4.066-1.785 0-3.135-1.332-3.135-3.68v-.75zM40.2 19.91c2.532 0 4.533-1.331 5.425-3.558l-2.483-.944c-.386 1.307-1.52 2.033-2.942 2.033-1.857 0-3.159-1.331-3.376-3.51h8.874v-.967c0-3.485-1.953-6.269-5.619-6.269-3.665 0-6.028 2.88-6.028 6.608 0 3.92 2.532 6.607 6.15 6.607zm-.145-10.77c1.833 0 2.701 1.21 2.725 2.614H36.97c.434-1.719 1.591-2.614 3.086-2.614zm7.814 10.504h2.894v-7.455c0-1.815 1.326-2.783 2.628-2.783 1.591 0 2.218 1.137 2.218 2.71v7.528h2.894V11.27c0-2.735-1.592-4.575-4.244-4.575-1.64 0-2.773.75-3.496 1.598V6.937h-2.894v12.707zM66.978 2.266l-6.56 17.378h3.063l1.471-3.97h7.475l1.495 3.97h3.11L70.475 2.266h-3.496zm1.687 3.437l2.75 7.26h-5.45l2.7-7.26zM82 2.317h-3.086v17.377H82V2.317z"})]}))});function r0(e){"@babel/helpers - typeof";return r0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r0(e)}var AU=["extraStyle"];function D8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function B8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D8(Object(r),!0).forEach(function(n){DU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DU(e,t,r){return t=BU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BU(e){var t=TU(e,"string");return r0(t)=="symbol"?t:String(t)}function TU(e,t){if(r0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(r0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PU(e,t){if(e==null)return{};var r=NU(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var MU=m.memo(function(e){var t=e.extraStyle,r=PU(e,AU);return a.jsx(Jt,B8({Icon:_6,Text:cE,"aria-label":rd,extraStyle:B8({fontWeight:600},t),spaceMultiple:JM,textMultiple:XM},r))}),Qi=_6;Qi.Text=cE;Qi.Combine=MU;Qi.Avatar=CU;Qi.colorPrimary=Lw;Qi.colorGpt3=Rw;Qi.colorGpt4=zw;Qi.colorO1=Uw;Qi.title=rd;var id="OpenRouter",IU=1,$U=.4,M6="#6566F1";function n0(e){"@babel/helpers - typeof";return n0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n0(e)}var LU=["size","style"];function T8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _p(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T8(Object(r),!0).forEach(function(n){RU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RU(e,t,r){return t=zU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zU(e){var t=UU(e,"string");return n0(t)=="symbol"?t:String(t)}function UU(e,t){if(n0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(n0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HU(e,t){if(e==null)return{};var r=qU(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var I6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=HU(e,LU);return a.jsxs("svg",_p(_p({fill:"currentColor",fillRule:"evenodd",height:r,style:_p({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:id}),a.jsx("path",{d:"M16.804 1.957l7.22 4.105v.087L16.73 10.21l.017-2.117-.821-.03c-1.059-.028-1.611.002-2.268.11-1.064.175-2.038.577-3.147 1.352L8.345 11.03c-.284.195-.495.336-.68.455l-.515.322-.397.234.385.23.53.338c.476.314 1.17.796 2.701 1.866 1.11.775 2.083 1.177 3.147 1.352l.3.045c.694.091 1.375.094 2.825.033l.022-2.159 7.22 4.105v.087L16.589 22l.014-1.862-.635.022c-1.386.042-2.137.002-3.138-.162-1.694-.28-3.26-.926-4.881-2.059l-2.158-1.5a21.997 21.997 0 00-.755-.498l-.467-.28a55.927 55.927 0 00-.76-.43C2.908 14.73.563 14.116 0 14.116V9.888l.14.004c.564-.007 2.91-.622 3.809-1.124l1.016-.58.438-.274c.428-.28 1.072-.726 2.686-1.853 1.621-1.133 3.186-1.78 4.881-2.059 1.152-.19 1.974-.213 3.814-.138l.02-1.907z"})]}))});function i0(e){"@babel/helpers - typeof";return i0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i0(e)}var WU=["background"];function P8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P8(Object(r),!0).forEach(function(n){GU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GU(e,t,r){return t=KU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KU(e){var t=YU(e,"string");return i0(t)=="symbol"?t:String(t)}function YU(e,t){if(i0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(i0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZU(e,t){if(e==null)return{};var r=XU(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var JU=m.memo(function(e){var t=e.background,r=ZU(e,WU);return a.jsx(Zt,VU({Icon:I6,"aria-label":id,background:t||M6,color:"#fff",iconMultiple:.7},r))});function a0(e){"@babel/helpers - typeof";return a0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a0(e)}var QU=["size","style"];function N8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N8(Object(r),!0).forEach(function(n){eH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eH(e,t,r){return t=tH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tH(e){var t=rH(e,"string");return a0(t)=="symbol"?t:String(t)}function rH(e,t){if(a0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(a0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nH(e,t){if(e==null)return{};var r=iH(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var dE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=nH(e,QU);return a.jsxs("svg",kp(kp({fill:"currentColor",fillRule:"evenodd",height:r,style:kp({flex:"none",lineHeight:1},n),viewBox:"0 0 143 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:id}),a.jsx("path",{d:"M9.623 2c1.46 0 2.763.35 3.91 1.05 1.149.699 2.053 1.7 2.714 3.002.66 1.303.991 2.861.991 4.675 0 1.814-.33 3.372-.991 4.675-.66 1.302-1.565 2.303-2.713 3.003-1.148.7-2.452 1.049-3.91 1.049-1.465 0-2.772-.35-3.92-1.05-1.148-.699-2.052-1.701-2.713-3.007-.66-1.305-.991-2.862-.991-4.67 0-1.814.33-3.372.991-4.675.66-1.302 1.565-2.303 2.713-3.003C6.852 2.35 8.16 2 9.624 2zm0 2.34c-.974 0-1.844.244-2.61.734-.765.489-1.37 1.208-1.813 2.156-.443.949-.664 2.114-.664 3.497s.221 2.548.664 3.497c.444.948 1.048 1.667 1.813 2.156.766.49 1.636.735 2.61.735.97 0 1.838-.245 2.606-.735.768-.489 1.374-1.208 1.817-2.156.443-.949.665-2.114.665-3.497s-.222-2.548-.665-3.497c-.443-.948-1.049-1.667-1.817-2.156-.768-.49-1.637-.735-2.606-.735zm16.32 1.974c1.024 0 1.938.26 2.742.78s1.436 1.269 1.896 2.248c.46.979.69 2.156.69 3.534 0 1.377-.23 2.556-.686 3.538-.457.981-1.085 1.736-1.883 2.264-.799.529-1.71.793-2.734.793-.771 0-1.4-.13-1.887-.39-.488-.26-.869-.564-1.144-.913a6.908 6.908 0 01-.636-.929h-.149V24h-2.47V6.48h2.412v2.065h.207c.143-.265.35-.572.62-.92.27-.349.643-.655 1.123-.917.479-.263 1.112-.394 1.9-.394zm-.528 2.107c-.716 0-1.32.185-1.813.556-.493.37-.866.887-1.12 1.55-.253.665-.38 1.439-.38 2.324 0 .896.13 1.68.389 2.356.259.674.633 1.201 1.123 1.58s1.09.568 1.8.568c.738 0 1.355-.198 1.85-.593.496-.395.872-.933 1.128-1.613.256-.68.384-1.447.384-2.298 0-.84-.125-1.596-.376-2.265-.25-.67-.625-1.197-1.123-1.584-.498-.388-1.12-.581-1.862-.581zm13.387-2.107c.716 0 1.41.119 2.082.356a5.037 5.037 0 011.809 1.12c.534.51.955 1.169 1.263 1.979.309.81.463 1.793.463 2.949v.88l-9.016-.001.002.105c.03.732.178 1.364.445 1.895.3.597.72 1.052 1.26 1.364.539.313 1.17.469 1.89.469.469 0 .895-.068 1.28-.203a2.716 2.716 0 001-.61c.281-.271.496-.606.644-1.004l2.338.423a4.247 4.247 0 01-1.004 1.813c-.482.517-1.084.918-1.808 1.203-.725.284-1.549.427-2.474.427-1.25 0-2.325-.27-3.225-.809-.9-.54-1.594-1.3-2.082-2.281-.487-.982-.73-2.134-.73-3.455 0-1.306.243-2.456.73-3.451.488-.996 1.17-1.773 2.049-2.331.878-.559 1.906-.838 3.084-.838zm.017 2.049c-.694 0-1.298.17-1.813.51-.515.34-.911.782-1.19 1.327a3.778 3.778 0 00-.39 1.303l-.02.236h6.593c0-.653-.132-1.232-.397-1.738a3.022 3.022 0 00-1.11-1.199c-.477-.293-1.034-.44-1.673-.44zm10.29 3.293v7.566H46.64V6.48h2.37v2.074h.158a3.63 3.63 0 011.375-1.626c.625-.41 1.413-.614 2.366-.614.864 0 1.622.18 2.271.543.65.362 1.154.9 1.512 1.614.358.713.537 1.595.537 2.646v8.105h-2.47v-7.806c0-.924-.24-1.647-.718-2.17-.48-.522-1.137-.784-1.974-.784-.573 0-1.081.125-1.524.374a2.65 2.65 0 00-1.05 1.09c-.255.479-.383 1.055-.383 1.73zm17.122-9.424c1.31 0 2.4.227 3.266.68.868.454 1.516 1.08 1.945 1.88.43.799.645 1.72.645 2.766 0 1.04-.216 1.954-.649 2.742-.432.788-1.082 1.4-1.949 1.837a5.1 5.1 0 01-.501.22l3.743 6.865h-2.907l-3.436-6.43h-3.634v6.43h-2.552V2.232h6.029zm-.273 2.199h-3.204v6.155h3.237c.826 0 1.5-.119 2.02-.357s.901-.583 1.144-1.037c.242-.453.363-.998.363-1.634 0-.641-.122-1.197-.367-1.667-.246-.47-.628-.831-1.148-1.083-.52-.252-1.202-.377-2.045-.377zM79.66 6.314c1.19 0 2.227.273 3.114.821.886.548 1.575 1.316 2.065 2.306s.735 2.146.735 3.468c0 1.316-.245 2.466-.735 3.45-.49.985-1.179 1.751-2.065 2.299-.887.547-1.924.82-3.114.82s-2.227-.273-3.113-.82c-.887-.548-1.575-1.314-2.065-2.298-.49-.985-.735-2.135-.735-3.451 0-1.322.245-2.478.735-3.468.49-.99 1.178-1.758 2.065-2.306.886-.548 1.924-.821 3.113-.821zm.008 2.074c-.776 0-1.419.207-1.928.622-.51.415-.887.963-1.132 1.646a6.602 6.602 0 00-.367 2.244c0 .819.122 1.568.367 2.249.245.68.623 1.225 1.132 1.634.51.41 1.152.614 1.928.614.771 0 1.41-.205 1.917-.614.506-.41.882-.954 1.127-1.634.245-.68.367-1.43.367-2.249 0-.813-.122-1.56-.367-2.244-.245-.683-.62-1.231-1.127-1.646-.507-.415-1.146-.622-1.917-.622zm16.164 5.55V6.48h2.477v12.742h-2.428v-2.207h-.132a3.956 3.956 0 01-1.4 1.697c-.641.45-1.438.676-2.391.676-.815 0-1.535-.181-2.16-.544-.625-.362-1.115-.9-1.47-1.613-.355-.714-.533-1.596-.533-2.647V6.48h2.47v7.806c0 .868.24 1.56.718 2.074.48.514 1.102.771 1.867.771.462 0 .924-.116 1.383-.348.46-.232.843-.584 1.148-1.054.306-.47.456-1.067.45-1.792zm8.58-10.511v3.052h2.602v1.992h-2.602v7.01c0 .48.072.841.215 1.082.144.24.33.404.558.49.228.085.478.128.747.128.199 0 .372-.014.52-.041l.348-.067.446 2.05a4.42 4.42 0 01-.612.17c-.264.057-.594.09-.99.095a4.331 4.331 0 01-1.818-.349 3.12 3.12 0 01-1.362-1.128c-.347-.509-.52-1.148-.52-1.916l-.002-7.525h-1.857V6.48h1.857l.001-3.053h2.47zm9.961 2.887c.716 0 1.41.119 2.081.356a5.037 5.037 0 011.81 1.12c.533.51.954 1.169 1.263 1.979.308.81.462 1.793.462 2.949v.88l-9.016-.001.003.105c.03.732.178 1.364.445 1.895.3.597.72 1.052 1.259 1.364.54.313 1.17.469 1.891.469.468 0 .895-.068 1.28-.203a2.716 2.716 0 001-.61c.28-.271.495-.606.644-1.004l2.337.423a4.247 4.247 0 01-1.003 1.813c-.482.517-1.085.918-1.809 1.203-.724.284-1.548.427-2.473.427-1.25 0-2.325-.27-3.226-.809-.9-.54-1.594-1.3-2.08-2.281-.488-.982-.732-2.134-.732-3.455 0-1.306.244-2.456.731-3.451.487-.996 1.17-1.773 2.048-2.331.879-.559 1.907-.838 3.085-.838zm.017 2.049c-.694 0-1.298.17-1.813.51-.515.34-.911.782-1.19 1.327a3.778 3.778 0 00-.39 1.303l-.02.236h6.592c0-.653-.132-1.232-.396-1.738a3.022 3.022 0 00-1.11-1.199c-.477-.293-1.035-.44-1.673-.44zm7.821 10.859V6.48h2.387v2.024h.132a3.092 3.092 0 011.227-1.622 3.485 3.485 0 011.994-.593l.396.01.153.006c.212.011.379.025.5.042v2.372c-.1-.027-.275-.059-.529-.095a5.4 5.4 0 00-.76-.054c-.583 0-1.102.123-1.556.37a2.799 2.799 0 00-1.078 1.02 2.79 2.79 0 00-.397 1.48v7.782h-2.469z"})]}))});function s0(e){"@babel/helpers - typeof";return s0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s0(e)}var aH=["type","iconProps"];function M8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M8(Object(r),!0).forEach(function(n){sH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sH(e,t,r){return t=oH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oH(e){var t=lH(e,"string");return s0(t)=="symbol"?t:String(t)}function lH(e,t){if(s0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(s0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uH(e,t){if(e==null)return{};var r=cH(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var dH=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=e.iconProps,i=uH(e,aH);return a.jsx(Jt,I8({Icon:I6,Text:dE,"aria-label":id,iconProps:I8({color:r==="color"?M6:void 0},n),spaceMultiple:$U,textMultiple:IU},i))}),Vl=I6;Vl.Text=dE;Vl.Combine=dH;Vl.Avatar=JU;Vl.colorPrimary=M6;Vl.title=id;var to="Qwen",hH=.7,fH=.2,$6="#615ced",pH="linear-gradient(to right, #00055F, #6F69F7)";function o0(e){"@babel/helpers - typeof";return o0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o0(e)}var mH=["size","style"];function $8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Op(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$8(Object(r),!0).forEach(function(n){gH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gH(e,t,r){return t=yH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yH(e){var t=bH(e,"string");return o0(t)=="symbol"?t:String(t)}function bH(e,t){if(o0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(o0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xH(e,t){if(e==null)return{};var r=vH(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var L6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=xH(e,mH);return a.jsxs("svg",Op(Op({fill:"currentColor",fillRule:"evenodd",height:r,style:Op({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:to}),a.jsx("path",{d:"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z"})]}))});function l0(e){"@babel/helpers - typeof";return l0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l0(e)}var wH=["background"];function L8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function EH(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L8(Object(r),!0).forEach(function(n){CH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CH(e,t,r){return t=SH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SH(e){var t=FH(e,"string");return l0(t)=="symbol"?t:String(t)}function FH(e,t){if(l0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(l0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jH(e,t){if(e==null)return{};var r=_H(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _H(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var kH=m.memo(function(e){var t=e.background,r=jH(e,wH);return a.jsx(Zt,EH({Icon:L6,"aria-label":to,background:t||$6},r))});function u0(e){"@babel/helpers - typeof";return u0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u0(e)}var OH=["size","style"];function R8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ap(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R8(Object(r),!0).forEach(function(n){AH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AH(e,t,r){return t=DH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DH(e){var t=BH(e,"string");return u0(t)=="symbol"?t:String(t)}function BH(e,t){if(u0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(u0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TH(e,t){if(e==null)return{};var r=PH(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function PH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var hE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=TH(e,OH),s=bo(to),o=s.id,l=s.fill;return a.jsxs("svg",Ap(Ap({height:r,style:Ap({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:to}),a.jsx("defs",{children:a.jsxs("linearGradient",{id:o,x1:"0%",x2:"100%",y1:"0%",y2:"0%",children:[a.jsx("stop",{offset:"0%",stopColor:"#00055F",stopOpacity:".84"}),a.jsx("stop",{offset:"100%",stopColor:"#6F69F7",stopOpacity:".84"})]})}),a.jsx("path",{d:"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z",fill:l,fillRule:"nonzero"})]}))});function c0(e){"@babel/helpers - typeof";return c0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c0(e)}var NH=["size","style"];function z8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z8(Object(r),!0).forEach(function(n){MH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MH(e,t,r){return t=IH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IH(e){var t=$H(e,"string");return c0(t)=="symbol"?t:String(t)}function $H(e,t){if(c0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(c0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LH(e,t){if(e==null)return{};var r=RH(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var fE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=LH(e,NH);return a.jsxs("svg",Dp(Dp({fill:"currentColor",fillRule:"evenodd",height:r,style:Dp({flex:"none",lineHeight:1},n),viewBox:"0 0 75 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:to}),a.jsx("path",{d:"M11.425 14.13h3.642l1.529 1.795a7.89 7.89 0 002.166-2.832 8.36 8.36 0 00.771-3.562c0-2.03-.624-3.664-1.874-4.905-1.24-1.25-2.884-1.874-4.931-1.874-1.028 0-1.99.186-2.885.558A6.99 6.99 0 007.45 4.932 8.576 8.576 0 005.656 7.67a8.354 8.354 0 00-.625 3.19c0 2.003.611 3.643 1.834 4.919 1.223 1.276 2.779 1.914 4.666 1.914.39 0 .793-.031 1.21-.093.425-.062.868-.16 1.329-.293l-2.645-3.177zM18.07 22l-2.127-2.46c-.753.293-1.48.51-2.18.652a9.84 9.84 0 01-2.073.226c-2.97 0-5.326-.85-7.072-2.552C2.873 16.164 2 13.865 2 10.966c0-1.577.28-3.052.837-4.426a10.148 10.148 0 012.406-3.576A10.427 10.427 0 018.713.758C10.025.253 11.429 0 12.927 0c2.915 0 5.25.86 7.005 2.579 1.755 1.72 2.632 4.01 2.632 6.872 0 1.764-.354 3.399-1.063 4.905a10.156 10.156 0 01-3.031 3.776L21.714 22H18.07zm5.743-14.675h2.884l2.047 6.433.054.16c.248.789.38 1.373.399 1.755.097-.302.221-.62.372-.958.16-.345.354-.713.585-1.103l4.227-7.218 2.06 7.43c.08.275.146.559.2.851.053.293.097.63.133 1.01.132-.372.265-.708.398-1.01.142-.3.28-.562.412-.784l3.816-6.567h3.243L36.097 20.71l-2.127-7.045a8.683 8.683 0 01-.213-.798 17.846 17.846 0 01-.146-.97 69.17 69.17 0 01-.519 1.063c-.15.302-.265.514-.345.638l-4.28 7.112-4.653-13.385zm24.392 4.785h6.5c-.026-.85-.292-1.52-.797-2.007-.496-.497-1.166-.745-2.008-.745-.957 0-1.768.248-2.432.745-.665.496-1.086 1.165-1.263 2.007zm6.34 3.948l2.061 1.608c-.735.966-1.533 1.67-2.392 2.114-.86.443-1.848.665-2.965.665-1.87 0-3.38-.563-4.533-1.689-1.152-1.134-1.728-2.623-1.728-4.466 0-2.162.66-3.935 1.98-5.317 1.33-1.391 3.018-2.087 5.066-2.087 1.71 0 3.07.532 4.08 1.595 1.02 1.055 1.53 2.473 1.53 4.254 0 .15-.01.345-.027.585-.01.23-.027.51-.054.837h-9.61c0 1.143.288 2.056.864 2.738.576.674 1.342 1.01 2.3 1.01.664 0 1.293-.159 1.887-.478a4.633 4.633 0 001.542-1.369zm14.317 3.868l.957-7.244c.018-.133.031-.27.04-.412.009-.151.013-.368.013-.652 0-.824-.2-1.453-.598-1.887-.399-.444-.98-.665-1.741-.665-1.188 0-2.118.385-2.792 1.156-.673.763-1.112 1.937-1.316 3.523l-.797 6.181H59.77l1.661-12.601h2.752l-.213 1.515c.727-.664 1.476-1.156 2.247-1.475a6.5 6.5 0 012.486-.479c1.293 0 2.3.341 3.017 1.024.727.673 1.09 1.622 1.09 2.845 0 .31-.018.673-.053 1.09-.036.407-.089.886-.16 1.435l-.877 6.647h-2.858z"})]}))});function d0(e){"@babel/helpers - typeof";return d0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d0(e)}var zH=["type","extraStyle","iconProps"];function U8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U8(Object(r),!0).forEach(function(n){UH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UH(e,t,r){return t=HH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HH(e){var t=qH(e,"string");return d0(t)=="symbol"?t:String(t)}function qH(e,t){if(d0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(d0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WH(e,t){if(e==null)return{};var r=VH(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var GH=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=e.extraStyle,i=e.iconProps,s=WH(e,zH),o=q2(),l=o.isDarkMode,u=r==="color"&&!l?hE:L6;return a.jsx(Jt,Bp({Icon:u,Text:fE,"aria-label":to,extraStyle:Bp({fontWeight:500},n),iconProps:Bp({color:r==="color"&&l?$6:void 0},i),spaceMultiple:fH,textMultiple:hH},s))}),Pa=L6;Pa.Color=hE;Pa.Text=fE;Pa.Combine=GH;Pa.Avatar=kH;Pa.colorPrimary=$6;Pa.colorGradient=pH;Pa.title=to;var Gl="Spark",KH=.75,YH=.2,pE="#0070f0";function h0(e){"@babel/helpers - typeof";return h0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h0(e)}var ZH=["size","style"];function H8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H8(Object(r),!0).forEach(function(n){XH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XH(e,t,r){return t=JH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JH(e){var t=QH(e,"string");return h0(t)=="symbol"?t:String(t)}function QH(e,t){if(h0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(h0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eq(e,t){if(e==null)return{};var r=tq(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var R6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=eq(e,ZH);return a.jsxs("svg",Tp(Tp({fill:"currentColor",fillRule:"evenodd",height:r,style:Tp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Gl}),a.jsx("path",{d:"M11.615 0l6.237 6.107c2.382 2.338 2.823 3.743 3.161 6.15-1.197-1.732-1.776-2.02-4.504-2.772C12.48 8.374 11.095 5.933 11.615 0z"}),a.jsx("path",{d:"M9.32 2.122C4.771 6.367 2 9.182 2 13.08c0 5.76 4.288 9.788 9.745 9.918 5.457.13 9.441-5.284 9.095-8.403-.347-3.118-4.418-3.81-4.418-3.81 1.69 3.16-.13 8.098-4.894 8.098-5.154 0-6.8-6.02-4.2-9.008.82 1.617 1.879 2.563 2.674 3.273.717.64 1.219 1.09 1.136 1.664-.173 1.213-1.385.866-1.385.866.346.607 3.6 1.473 4.59-1.342.613-1.741-.423-2.789-1.714-4.096-1.632-1.651-3.672-3.717-3.31-8.118z"})]}))});function f0(e){"@babel/helpers - typeof";return f0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f0(e)}var rq=["background"];function q8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q8(Object(r),!0).forEach(function(n){iq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iq(e,t,r){return t=aq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aq(e){var t=sq(e,"string");return f0(t)=="symbol"?t:String(t)}function sq(e,t){if(f0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(f0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oq(e,t){if(e==null)return{};var r=lq(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var uq=m.memo(function(e){var t=e.background,r=oq(e,rq);return a.jsx(Zt,nq({Icon:R6,"aria-label":Gl,background:t||pE},r))});function p0(e){"@babel/helpers - typeof";return p0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p0(e)}var cq=["size","style"];function W8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W8(Object(r),!0).forEach(function(n){dq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dq(e,t,r){return t=hq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hq(e){var t=fq(e,"string");return p0(t)=="symbol"?t:String(t)}function fq(e,t){if(p0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(p0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pq(e,t){if(e==null)return{};var r=mq(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var mE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=pq(e,cq);return a.jsxs("svg",Pp(Pp({height:r,style:Pp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Gl}),a.jsx("path",{d:"M2 13.08C2 9.182 4.772 6.367 9.32 2.122c-.65 7.883 6.41 8.272 5.023 12.214-.99 2.815-4.244 1.949-4.59 1.342 0 0 1.212.347 1.385-.866.174-1.213-2.252-1.862-3.81-4.937-2.6 2.988-.954 9.008 4.2 9.008 4.764 0 6.583-4.937 4.894-8.099 0 0 4.071.693 4.418 3.811.346 3.119-3.638 8.533-9.095 8.403C6.288 22.868 2 18.84 2 13.08z",fill:"#3DC8F9"}),a.jsx("path",{d:"M17.852 6.107L11.615 0c-.52 5.933.866 8.374 4.894 9.485 2.729.753 3.307 1.04 4.504 2.772-.338-2.407-.78-3.812-3.161-6.15z",fill:"#EA0100"}),a.jsx("path",{clipRule:"evenodd",d:"M9.033 18.323c.709.354 1.542.56 2.495.56 4.764 0 6.583-4.937 4.894-8.099 0 0 4.071.693 4.418 3.811.156 1.403-.565 3.27-1.902 4.89-3.458 1.57-7.29.84-9.905-1.162z",fill:"#1652D8",fillRule:"evenodd"})]}))});function m0(e){"@babel/helpers - typeof";return m0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m0(e)}var gq=["size","style"];function V8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Np(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V8(Object(r),!0).forEach(function(n){yq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yq(e,t,r){return t=bq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bq(e){var t=xq(e,"string");return m0(t)=="symbol"?t:String(t)}function xq(e,t){if(m0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(m0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vq(e,t){if(e==null)return{};var r=wq(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var gE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=vq(e,gq);return a.jsxs("svg",Np(Np({fill:"currentColor",fillRule:"evenodd",height:r,style:Np({flex:"none",lineHeight:1},n),viewBox:"0 0 93 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:Gl}),a.jsx("path",{d:"M33.212 2H25.15v2.283h4.616a.63.63 0 01.61.79l-4.128 15.742A.945.945 0 0027.162 22h16.255l1.26-2.205h-14.96l4.409-16.608A.945.945 0 0033.213 2z"}),a.jsx("path",{d:"M40.898 2h4.252l-6.615 6.457h-4.803L40.898 2zM39.244 11.134h-4.646l5.355 5.827h4.645l-5.354-5.827z"}),a.jsx("path",{clipRule:"evenodd",d:"M49.323 2.079h17.165c.522 0 .945.423.945.945v8.74h-7.638v1.417h7.638v1.732h-7.638v1.733h7.638v1.732h-7.638v1.417h7.638V22h-18.11v-2.205h7.323v-1.417h-7.323v-1.732h7.323v-1.733h-7.323l2.283-3.15h-1.338a.945.945 0 01-.945-.944v-8.74zm5.433 9.685h1.81v1.417h-2.913l1.103-1.417zm9.37-7.638H52.551v1.968h10.63l-1.023 1.89H52.55v1.733h11.575V4.126z"}),a.jsx("path",{d:"M79.087 2.079h3.307v9.842L90.66 22h-4.173l-5.67-7.087L75.072 22h-4.016l7.953-10.079.079-9.842z"}),a.jsx("path",{d:"M74.362 2.079h-3.228l2.44 9.685h3.23l-2.442-9.685zM90.425 2.079h-3.307l-2.283 9.685h3.15l2.44-9.685zM2 2.079h4.41V4.44H2V2.079zM9.087 2.079v2.283h1.968v6.457H8.93v2.283h2.126V22h3.15v-8.898h2.047V10.82h-2.047V4.362h2.913c.435 0 .788.353.788.788V22h3.543l1.102-2.126h-1.496V2.866a.787.787 0 00-.787-.787H9.087zM5.622 8.85H2v2.363h1.26v9.842c0 .522.423.945.945.945h2.913l1.024-2.284H6.409V9.639a.787.787 0 00-.787-.788z"})]}))});function g0(e){"@babel/helpers - typeof";return g0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g0(e)}var Eq=["type"];function G8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G8(Object(r),!0).forEach(function(n){Sq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sq(e,t,r){return t=Fq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fq(e){var t=jq(e,"string");return g0(t)=="symbol"?t:String(t)}function jq(e,t){if(g0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(g0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _q(e,t){if(e==null)return{};var r=kq(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Oq=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=_q(e,Eq),i=r==="color"?mE:R6;return a.jsx(Jt,Cq({Icon:i,Text:gE,"aria-label":Gl,spaceMultiple:YH,textMultiple:KH},n))}),Ss=R6;Ss.Color=mE;Ss.Text=gE;Ss.Combine=Oq;Ss.Avatar=uq;Ss.colorPrimary=pE;Ss.title=Gl;var ad="Suno",Aq=1,Dq=.2,yE="#000";function y0(e){"@babel/helpers - typeof";return y0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y0(e)}var Bq=["size","style"];function K8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K8(Object(r),!0).forEach(function(n){Tq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tq(e,t,r){return t=Pq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pq(e){var t=Nq(e,"string");return y0(t)=="symbol"?t:String(t)}function Nq(e,t){if(y0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(y0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mq(e,t){if(e==null)return{};var r=Iq(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Iq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var z6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Mq(e,Bq);return a.jsxs("svg",Mp(Mp({fill:"currentColor",fillRule:"evenodd",height:r,style:Mp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ad}),a.jsx("path",{d:"M16.5 0C20.642 0 24 5.373 24 12h-9c0 6.627-3.358 12-7.5 12C3.358 24 0 18.627 0 12h9c0-6.627 3.358-12 7.5-12z"})]}))});function b0(e){"@babel/helpers - typeof";return b0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b0(e)}var $q=["background"];function Y8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y8(Object(r),!0).forEach(function(n){Rq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rq(e,t,r){return t=zq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zq(e){var t=Uq(e,"string");return b0(t)=="symbol"?t:String(t)}function Uq(e,t){if(b0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(b0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hq(e,t){if(e==null)return{};var r=qq(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Wq=m.memo(function(e){var t=e.background,r=Hq(e,$q);return a.jsx(Zt,Lq({Icon:z6,"aria-label":ad,background:t||yE,color:"#fff",iconMultiple:.6},r))});function x0(e){"@babel/helpers - typeof";return x0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x0(e)}var Vq=["size","style"];function Z8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ip(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z8(Object(r),!0).forEach(function(n){Gq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gq(e,t,r){return t=Kq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kq(e){var t=Yq(e,"string");return x0(t)=="symbol"?t:String(t)}function Yq(e,t){if(x0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(x0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zq(e,t){if(e==null)return{};var r=Xq(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Xq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var bE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Zq(e,Vq);return a.jsxs("svg",Ip(Ip({fill:"currentColor",fillRule:"evenodd",height:r,style:Ip({flex:"none",lineHeight:1},n),viewBox:"0 0 65 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ad}),a.jsx("path",{d:"M55.626 7.475c1.402 0 2.663.316 3.785.95 1.122.633 2 1.499 2.636 2.597.635 1.099.953 2.337.953 3.715 0 1.378-.318 2.617-.953 3.716a6.913 6.913 0 01-2.636 2.597c-1.122.633-2.383.95-3.785.95-1.42 0-2.692-.317-3.814-.95-1.121-.633-2-1.499-2.635-2.597-.636-1.1-.953-2.338-.953-3.716 0-1.378.317-2.616.953-3.715a6.913 6.913 0 012.635-2.597c1.122-.634 2.393-.95 3.814-.95zm0 2.96c-.767 0-1.449.187-2.047.56a3.655 3.655 0 00-1.402 1.508c-.318.652-.477 1.396-.477 2.234 0 .838.16 1.583.477 2.235a3.85 3.85 0 001.402 1.536c.598.354 1.28.531 2.047.531.766 0 1.44-.177 2.019-.53a3.658 3.658 0 001.374-1.537c.336-.652.504-1.397.504-2.235 0-.838-.168-1.582-.504-2.234a3.479 3.479 0 00-1.374-1.509 3.74 3.74 0 00-2.02-.558zm-18.42-2.737h-3.449v14.079h3.449v-7.682c0-.689.14-1.304.42-1.844.281-.54.664-.959 1.15-1.257a3.101 3.101 0 011.683-.474c.878 0 1.588.307 2.13.921.561.596.842 1.378.842 2.347v7.989h3.42V13.06c0-1.098-.215-2.067-.645-2.905a4.641 4.641 0 00-1.85-1.983c-.804-.465-1.72-.698-2.748-.698-1.01 0-1.907.214-2.692.642a3.9 3.9 0 00-1.71 1.76V7.698zm-5.83 14.078h-3.421v-2.178a4.226 4.226 0 01-1.738 1.787c-.767.41-1.655.615-2.664.615-1.047 0-1.972-.233-2.776-.698a4.921 4.921 0 01-1.85-1.956c-.43-.856-.645-1.834-.645-2.933V7.698h3.448v7.99c0 .967.271 1.759.814 2.373.542.596 1.252.894 2.13.894.636 0 1.197-.149 1.683-.447a3.258 3.258 0 001.177-1.285c.28-.54.421-1.154.421-1.843V7.698h3.42v14.078zm-25.703-.614c1.122.559 2.42.838 3.898.838 1.439 0 2.71-.233 3.813-.698 1.103-.485 1.962-1.164 2.58-2.04.616-.875.925-1.908.925-3.1 0-1.36-.309-2.42-.926-3.184-.617-.782-1.355-1.341-2.215-1.676-.84-.336-1.944-.661-3.308-.978-.991-.223-1.767-.428-2.328-.615-.542-.204-1-.484-1.373-.837-.356-.373-.533-.848-.533-1.425 0-.69.28-1.238.841-1.648.56-.41 1.327-.615 2.3-.615 1.027 0 1.86.261 2.495.782.654.522 1.018 1.21 1.093 2.068h3.533c-.056-1.21-.392-2.272-1.01-3.185-.598-.912-1.43-1.61-2.495-2.095C11.916 2.251 10.711 2 9.346 2c-1.308 0-2.477.233-3.505.698-1.028.447-1.832 1.09-2.411 1.928-.56.82-.841 1.76-.841 2.82 0 1.323.299 2.375.897 3.157.617.782 1.346 1.35 2.187 1.704.86.354 1.963.699 3.309 1.034.953.242 1.7.465 2.243.67.56.205 1.019.484 1.374.838.355.335.532.792.532 1.369 0 .838-.327 1.48-.98 1.927-.637.447-1.496.67-2.58.67-1.178 0-2.122-.325-2.832-.977-.692-.652-1.085-1.527-1.178-2.626H2c.056 1.36.402 2.551 1.037 3.576a6.614 6.614 0 002.636 2.374z"})]}))});function v0(e){"@babel/helpers - typeof";return v0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v0(e)}function X8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X8(Object(r),!0).forEach(function(n){Qq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qq(e,t,r){return t=eW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eW(e){var t=tW(e,"string");return v0(t)=="symbol"?t:String(t)}function tW(e,t){if(v0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(v0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rW(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var nW=m.memo(function(e){var t=Object.assign({},(rW(e),e));return a.jsx(Jt,Jq({Icon:z6,Text:bE,"aria-label":ad,spaceMultiple:Dq,textMultiple:Aq},t))}),Kl=z6;Kl.Text=bE;Kl.Combine=nW;Kl.Avatar=Wq;Kl.colorPrimary=yE;Kl.title=ad;var ro="Wenxin",iW=.75,aW=.2,sW="#167ADF",xE="linear-gradient(to right, #0A51C3, #23A4FB)";function w0(e){"@babel/helpers - typeof";return w0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w0(e)}var oW=["size","style"];function J8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $p(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J8(Object(r),!0).forEach(function(n){lW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lW(e,t,r){return t=uW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uW(e){var t=cW(e,"string");return w0(t)=="symbol"?t:String(t)}function cW(e,t){if(w0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(w0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dW(e,t){if(e==null)return{};var r=hW(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hW(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var U6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=dW(e,oW);return a.jsxs("svg",$p($p({fill:"currentColor",fillRule:"evenodd",height:r,style:$p({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ro}),a.jsx("path",{d:"M11.32 1.176a1.4 1.4 0 011.36 0l8.64 4.843c.421.234.68.67.68 1.141v9.68c0 .472-.259.908-.68 1.143l-8.64 4.84a1.4 1.4 0 01-1.36 0l-8.64-4.84A1.31 1.31 0 012 16.84V7.159c0-.471.259-.907.68-1.142l8.64-4.84zm7.42 13.839V8.227L12.002 12 12 19.551l6.059-3.394a1.31 1.31 0 00.68-1.142zM12.68 4.833a1.393 1.393 0 00-1.36 0L5.944 7.846c-.421.235-.68.67-.68 1.142v6.027c0 .47.259.905.68 1.142l2.795 1.566V11.09a1.546 1.546 0 00.221.79 1.527 1.527 0 01-.216-.834l.004-.094.02-.15.018-.084.017-.062.039-.117.062-.142.035-.065.081-.13.094-.122.084-.091.08-.075.125-.1.071-.048.134-.076 5.87-3.29-2.796-1.566z"})]}))});function E0(e){"@babel/helpers - typeof";return E0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E0(e)}var fW=["background"];function Q8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pW(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q8(Object(r),!0).forEach(function(n){mW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mW(e,t,r){return t=gW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gW(e){var t=yW(e,"string");return E0(t)=="symbol"?t:String(t)}function yW(e,t){if(E0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(E0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bW(e,t){if(e==null)return{};var r=xW(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xW(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var vW=m.memo(function(e){var t=e.background,r=bW(e,fW);return a.jsx(Zt,pW({Icon:U6,"aria-label":ro,background:t||xE},r))});function C0(e){"@babel/helpers - typeof";return C0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C0(e)}var wW=["size","style"];function ey(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ey(Object(r),!0).forEach(function(n){EW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ey(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EW(e,t,r){return t=CW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CW(e){var t=SW(e,"string");return C0(t)=="symbol"?t:String(t)}function SW(e,t){if(C0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(C0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FW(e,t){if(e==null)return{};var r=jW(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jW(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var vE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=FW(e,wW),s=bo(ro),o=s.id,l=s.fill;return a.jsxs("svg",Lp(Lp({height:r,style:Lp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ro}),a.jsx("defs",{children:a.jsxs("linearGradient",{id:o,x1:"9.155%",x2:"90.531%",y1:"75.177%",y2:"25.028%",children:[a.jsx("stop",{offset:"0%",stopColor:"#0A51C3"}),a.jsx("stop",{offset:"100%",stopColor:"#23A4FB"})]})}),a.jsxs("g",{fill:"none",fillRule:"nonzero",children:[a.jsx("path",{d:"M11.32 1.176a1.4 1.4 0 011.36 0l8.64 4.843c.421.234.68.67.68 1.141v9.68c0 .472-.259.908-.68 1.143l-8.64 4.84a1.4 1.4 0 01-1.36 0l-8.64-4.84A1.31 1.31 0 012 16.84V7.159c0-.471.259-.907.68-1.142l8.64-4.84zm7.42 13.839V8.227L12.002 12 12 19.551l6.059-3.394a1.31 1.31 0 00.68-1.142zM12.68 4.833a1.393 1.393 0 00-1.36 0L5.944 7.846c-.421.235-.68.67-.68 1.142v6.027c0 .47.259.905.68 1.142l2.795 1.566V11.09a1.546 1.546 0 00.221.79 1.527 1.527 0 01-.216-.834l.004-.094.02-.15.018-.084.017-.062.039-.117.062-.142.035-.065.081-.13.094-.122.084-.091.08-.075.125-.1.071-.048.134-.076 5.87-3.29-2.796-1.566z",fill:l}),a.jsx("path",{d:"M12 11.088c0-.875-.73-1.584-1.631-1.584a1.66 1.66 0 00-.855.237c-.027.016-.055.033-.08.05a2.361 2.361 0 00-.123.093c-.022.02-.045.038-.066.059l-.048.045-.063.067c-.014.016-.028.031-.04.048a2.303 2.303 0 00-.094.125l-.042.069a1.7 1.7 0 00-.07.13l-.036.081a.764.764 0 00-.022.06c-.01.03-.02.058-.028.087l-.017.062a.883.883 0 00-.03.16c-.002.025-.007.05-.008.074a1.527 1.527 0 00.213.929c.302.508.85.792 1.414.792.277 0 .558-.068.814-.212l.815-.457v-.914L12 11.088z",fill:"#012F8D"})]})]}))});function S0(e){"@babel/helpers - typeof";return S0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S0(e)}var _W=["size","style"];function ty(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ty(Object(r),!0).forEach(function(n){kW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ty(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kW(e,t,r){return t=OW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OW(e){var t=AW(e,"string");return S0(t)=="symbol"?t:String(t)}function AW(e,t){if(S0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(S0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DW(e,t){if(e==null)return{};var r=BW(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BW(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var wE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=DW(e,_W);return a.jsxs("svg",Rp(Rp({fill:"currentColor",fillRule:"evenodd",height:r,style:Rp({flex:"none",lineHeight:1},n),viewBox:"0 0 47 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ro}),a.jsx("path",{d:"M14.205 2.235H10.59v1.878H2.149v2.28H4.75c1.415 4.332 3.262 7.642 5.478 10.077C8.038 17.998 5.307 19.063 2 19.635V22c3.878-.142 7.345-1.256 10.293-3.594 2.949 2.34 6.417 3.452 10.294 3.594v-2.365c-3.307-.572-6.038-1.637-8.229-3.165 2.217-2.435 4.064-5.745 5.478-10.076h2.75v-2.28h-8.382V2.234h.001zm-1.91 12.499c-2.137-2.165-3.541-4.958-4.26-8.339h8.522c-.718 3.38-2.123 6.174-4.26 8.339h-.002zm12.812-4.09c0 3.295-.491 7.58-.692 9.186h2.892c.227-1.867.67-5.916.67-9.186V6.173h-2.872v4.47h.002zm7.64-7.254v14.507c0 .804.436 1.377 1.396 1.377h1.244l6.023-.001v2.4h-7.202v-.026c-.338-.004-.74-.006-1.216-.006-2.554 0-3.313-.886-3.313-3.744V3.39h3.067zM43.89 6.06C44.453 9.666 45 14.418 45 19.275h-2.872c0-4.84-.582-9.655-1.153-13.213zM37.993 2c.36 2.315.733 5.556.733 9.034V16h-2.87v-4.967c0-3.5-.41-6.803-.774-9.034h2.911z"})]}))});function F0(e){"@babel/helpers - typeof";return F0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F0(e)}var TW=["type"];function ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PW(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ry(Object(r),!0).forEach(function(n){NW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NW(e,t,r){return t=MW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MW(e){var t=IW(e,"string");return F0(t)=="symbol"?t:String(t)}function IW(e,t){if(F0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(F0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $W(e,t){if(e==null)return{};var r=LW(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LW(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var RW=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=$W(e,TW),i=r==="color"?vE:U6;return a.jsx(Jt,PW({Icon:i,Text:wE,"aria-label":ro,spaceMultiple:aW,textMultiple:iW},n))}),Na=U6;Na.Color=vE;Na.Text=wE;Na.Combine=RW;Na.Avatar=vW;Na.colorPrimary=sW;Na.colorGradient=xE;Na.title=ro;var sd="Yi",zW=.8,UW=.2,EE="#003425";function j0(e){"@babel/helpers - typeof";return j0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j0(e)}var HW=["size","style"];function ny(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ny(Object(r),!0).forEach(function(n){qW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qW(e,t,r){return t=WW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WW(e){var t=VW(e,"string");return j0(t)=="symbol"?t:String(t)}function VW(e,t){if(j0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(j0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GW(e,t){if(e==null)return{};var r=KW(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KW(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var H6=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=GW(e,HW);return a.jsxs("svg",zp(zp({fill:"currentColor",fillRule:"evenodd",height:r,style:zp({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:sd}),a.jsxs("g",{children:[a.jsx("path",{d:"M18.62 13.927c.611 0 1.107.505 1.107 1.128v5.817c0 .623-.496 1.128-1.108 1.128a1.118 1.118 0 01-1.108-1.128v-5.817c0-.623.496-1.128 1.108-1.128zM16.59 3.052a1.094 1.094 0 011.562-.129c.466.404.522 1.116.126 1.59l-5.938 7.111v9.147c0 .624-.496 1.129-1.108 1.129a1.118 1.118 0 01-1.108-1.129v-9.477l.003-.088.01-.087c.015-.232.102-.462.261-.654l6.192-7.413zM2.906 2.256a1.094 1.094 0 011.559.157l4.387 5.45a1.142 1.142 0 01-.155 1.587 1.094 1.094 0 01-1.559-.157l-4.387-5.45a1.144 1.144 0 01.06-1.498l.095-.09z"}),a.jsx("ellipse",{cx:"20.146",cy:"10.692",fill:"#00FF25",rx:"1.354",ry:"1.379"})]})]}))});function _0(e){"@babel/helpers - typeof";return _0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_0(e)}var YW=["background"];function iy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ZW(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iy(Object(r),!0).forEach(function(n){XW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XW(e,t,r){return t=JW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JW(e){var t=QW(e,"string");return _0(t)=="symbol"?t:String(t)}function QW(e,t){if(_0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(_0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eV(e,t){if(e==null)return{};var r=tV(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tV(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var rV=m.memo(function(e){var t=e.background,r=eV(e,YW);return a.jsx(Zt,ZW({Icon:H6,"aria-label":sd,background:t||EE,color:"#fff"},r))});function k0(e){"@babel/helpers - typeof";return k0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k0(e)}var nV=["size","style"];function ay(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Up(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ay(Object(r),!0).forEach(function(n){iV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ay(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iV(e,t,r){return t=aV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aV(e){var t=sV(e,"string");return k0(t)=="symbol"?t:String(t)}function sV(e,t){if(k0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(k0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oV(e,t){if(e==null)return{};var r=lV(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lV(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var CE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=oV(e,nV);return a.jsxs("svg",Up(Up({fill:"currentColor",fillRule:"evenodd",height:r,style:Up({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:sd}),a.jsxs("g",{children:[a.jsx("path",{d:"M18.62 13.927c.611 0 1.107.505 1.107 1.128v5.817c0 .623-.496 1.128-1.108 1.128a1.118 1.118 0 01-1.108-1.128v-5.817c0-.623.496-1.128 1.108-1.128zM16.59 3.052a1.094 1.094 0 011.562-.129c.466.404.522 1.116.126 1.59l-5.938 7.111v9.147c0 .624-.496 1.129-1.108 1.129a1.118 1.118 0 01-1.108-1.129v-9.477l.003-.088.01-.087c.015-.232.102-.462.261-.654l6.192-7.413zM2.906 2.256a1.094 1.094 0 011.559.157l4.387 5.45a1.142 1.142 0 01-.155 1.587 1.094 1.094 0 01-1.559-.157l-4.387-5.45a1.144 1.144 0 01.06-1.498l.095-.09z"}),a.jsx("ellipse",{cx:"20.146",cy:"10.692",rx:"1.354",ry:"1.379"})]})]}))}),uV="01.AI";function O0(e){"@babel/helpers - typeof";return O0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O0(e)}var cV=["size","style"];function sy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sy(Object(r),!0).forEach(function(n){dV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dV(e,t,r){return t=hV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hV(e){var t=fV(e,"string");return O0(t)=="symbol"?t:String(t)}function fV(e,t){if(O0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(O0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pV(e,t){if(e==null)return{};var r=mV(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mV(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var SE=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=pV(e,cV);return a.jsxs("svg",Hp(Hp({fill:"currentColor",fillRule:"evenodd",height:r,style:Hp({flex:"none",lineHeight:1},n),viewBox:"0 0 88 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:uV}),a.jsx("path",{d:"M45.502 4.144h4.81l.014.448c.036 2.124-.12 11.282-5.306 15.896l1.409 1.4.186-.12.162-.115c1.146-.85 4.78-4.157 5.792-12.516h7.455l-.01 2.091-.024 1.855c-.03 1.85-.089 3.83-.199 4.663-.245 1.81-2.07 1.78-2.32 1.768l-2.473-.163.449 1.992c1.098.137 2.206.185 3.312.144 3.76-.086 3.72-4.137 3.72-4.137l.212-9.72h-9.975c.085-1.086.125-2.245.115-3.486h11.047V2.71H45.502v1.434zm-2.079 6.658H25.047v1.435h18.376v-1.435zM21.107 2v1.435h-7.501v.714h8.397l.022.227.014.206c.05.861.057 2.86-.713 4.752l-1.79-.323c.168-1.136.23-2.285.188-3.432h-6.118v3.634h-2.394V5.579H5.435a10.913 10.913 0 01-1.453 3.523L2.29 8.427c.5-1.383.833-2.82.993-4.283h7.929v-.71H3.71V2h17.396zM10.442 8.23v.983H5.753v-.984h4.689zm8.493 0v.983h-4.689v-.984h4.69zm-8.493-1.661v.983H5.753V6.57h4.689zm8.493 0v.983h-4.689V6.57h4.69zm-5.65 5.992l.185 1.654h4.08v1.44l-.087.17c-.28.516-1.294 2.13-3.772 3.856.385.332.752.685 1.1 1.056l-1.042 1.056a47.585 47.585 0 00-6-3.915l1.094-1.753.444.289a52.17 52.17 0 012.94 2.087 13.41 13.41 0 002.617-2.844H6.948V14.22h4.62l-.62-1.452 2.337-.207zm1.208-2.523c2.114 1.518 4.955 2.766 8.453 2.27l-.073 1.38-.156.042c-.859.213-5.163 1.043-9.935-2.21h-.617c-5.34 3.639-10.091 2.168-10.091 2.168L2 12.308c3.498.496 6.336-.752 8.454-2.27h4.039zm57.552-8.005v4.985h2.5v1.44h-2.5v3.708a20.898 20.898 0 012.385-1.056l.738 1.497-.942.544c-.557.327-1.32.785-2.18 1.325V22h-2.392v-5.955a46.133 46.133 0 00-2.19 1.598l-1.485-2.019 1.356-.824.51-.302c.54-.318 1.16-.677 1.813-1.043V8.453H68.52l-.11.648c-.189 1.073-.412 2.094-.665 2.84l-1.697-.348.093-.561c.201-1.27.658-4.485.658-7.502l2.329.063-.124 1.216-.098.859c-.05.416-.108.873-.173 1.35h.921V2.033h2.391zm3.422 0l2.334.065-.11 1.056-.094.795c-.037.29-.079.603-.125.93L86 4.878l-.215 12.684-.01.184c-.075.925-.557 3.78-3.707 3.851a20.348 20.348 0 01-2.743-.21l-.422-1.961 1.889.2h.152l.149-.007c.605-.046 1.806-.319 2.002-1.763l.022-.198.025-.31c.073-1.036.117-2.963.144-4.918l.034-3.794.007-2.278h-.682c-.69 10.837-5.617 14.292-6.25 14.693l-.067.04-.913-.963c4.115-3.658 5.065-10.17 5.264-13.77h-.692c-1.052 10.532-6.213 13.45-6.213 13.45l-.914-.964c3.66-3.255 4.814-8.774 5.164-12.486h-.79a20.988 20.988 0 01-.696 2.904l-1.696-.351c.417-2.269.626-4.571.625-6.878z"})]}))});function A0(e){"@babel/helpers - typeof";return A0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A0(e)}var gV=["type"];function oy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yV(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oy(Object(r),!0).forEach(function(n){bV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bV(e,t,r){return t=xV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xV(e){var t=vV(e,"string");return A0(t)=="symbol"?t:String(t)}function vV(e,t){if(A0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(A0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wV(e,t){if(e==null)return{};var r=EV(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EV(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var CV=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=wV(e,gV),i=r==="color"?H6:CE;return a.jsx(Jt,yV({Icon:i,Text:SE,"aria-label":sd,spaceMultiple:UW,textMultiple:zW},n))}),Fs=CE;Fs.Color=H6;Fs.Text=SE;Fs.Combine=CV;Fs.Avatar=rV;Fs.colorPrimary=EE;Fs.title=sd;function FE(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=FE(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function q6(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=FE(e))&&(n&&(n+=" "),n+=t);return n}var jE=typeof global=="object"&&global&&global.Object===Object&&global,SV=typeof self=="object"&&self&&self.Object===Object&&self,ea=jE||SV||Function("return this")(),zh=ea.Symbol,_E=Object.prototype,FV=_E.hasOwnProperty,jV=_E.toString,fu=zh?zh.toStringTag:void 0;function _V(e){var t=FV.call(e,fu),r=e[fu];try{e[fu]=void 0;var n=!0}catch{}var i=jV.call(e);return n&&(t?e[fu]=r:delete e[fu]),i}var kV=Object.prototype,OV=kV.toString;function AV(e){return OV.call(e)}var DV="[object Null]",BV="[object Undefined]",ly=zh?zh.toStringTag:void 0;function Yl(e){return e==null?e===void 0?BV:DV:ly&&ly in Object(e)?_V(e):AV(e)}function od(e){return e!=null&&typeof e=="object"}var Uh=Array.isArray;function vo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function kE(e){return e}var TV="[object AsyncFunction]",PV="[object Function]",NV="[object GeneratorFunction]",MV="[object Proxy]";function W6(e){if(!vo(e))return!1;var t=Yl(e);return t==PV||t==NV||t==TV||t==MV}var qp=ea["__core-js_shared__"],uy=function(){var e=/[^.]+$/.exec(qp&&qp.keys&&qp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function IV(e){return!!uy&&uy in e}var $V=Function.prototype,LV=$V.toString;function wo(e){if(e!=null){try{return LV.call(e)}catch{}try{return e+""}catch{}}return""}var RV=/[\\^$.*+?()[\]{}|]/g,zV=/^\[object .+?Constructor\]$/,UV=Function.prototype,HV=Object.prototype,qV=UV.toString,WV=HV.hasOwnProperty,VV=RegExp("^"+qV.call(WV).replace(RV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function GV(e){if(!vo(e)||IV(e))return!1;var t=W6(e)?VV:zV;return t.test(wo(e))}function KV(e,t){return e==null?void 0:e[t]}function Eo(e,t){var r=KV(e,t);return GV(r)?r:void 0}var M5=Eo(ea,"WeakMap"),cy=Object.create,YV=function(){function e(){}return function(t){if(!vo(t))return{};if(cy)return cy(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function ZV(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function XV(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var JV=800,QV=16,eG=Date.now;function tG(e){var t=0,r=0;return function(){var n=eG(),i=QV-(n-r);if(r=n,i>0){if(++t>=JV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function rG(e){return function(){return e}}var Hh=function(){try{var e=Eo(Object,"defineProperty");return e({},"",{}),e}catch{}}(),nG=Hh?function(e,t){return Hh(e,"toString",{configurable:!0,enumerable:!1,value:rG(t),writable:!0})}:kE,iG=tG(nG),aG=9007199254740991,sG=/^(?:0|[1-9]\d*)$/;function OE(e,t){var r=typeof e;return t=t??aG,!!t&&(r=="number"||r!="symbol"&&sG.test(e))&&e>-1&&e%1==0&&e<t}function V6(e,t,r){t=="__proto__"&&Hh?Hh(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function V2(e,t){return e===t||e!==e&&t!==t}var oG=Object.prototype,lG=oG.hasOwnProperty;function uG(e,t,r){var n=e[t];(!(lG.call(e,t)&&V2(n,r))||r===void 0&&!(t in e))&&V6(e,t,r)}function cG(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var l=t[s],u=void 0;u===void 0&&(u=e[l]),i?V6(r,l,u):uG(r,l,u)}return r}var dy=Math.max;function dG(e,t,r){return t=dy(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=dy(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(o),ZV(e,this,l)}}function hG(e,t){return iG(dG(e,t,kE),e+"")}var fG=9007199254740991;function AE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fG}function G2(e){return e!=null&&AE(e.length)&&!W6(e)}function pG(e,t,r){if(!vo(r))return!1;var n=typeof t;return(n=="number"?G2(r)&&OE(t,r.length):n=="string"&&t in r)?V2(r[t],e):!1}function mG(e){return hG(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&pG(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var l=r[n];l&&e(t,l,n,s)}return t})}var gG=Object.prototype;function K2(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||gG;return e===r}function yG(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var bG="[object Arguments]";function hy(e){return od(e)&&Yl(e)==bG}var DE=Object.prototype,xG=DE.hasOwnProperty,vG=DE.propertyIsEnumerable,qh=hy(function(){return arguments}())?hy:function(e){return od(e)&&xG.call(e,"callee")&&!vG.call(e,"callee")};function wG(){return!1}var BE=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fy=BE&&typeof module=="object"&&module&&!module.nodeType&&module,EG=fy&&fy.exports===BE,py=EG?ea.Buffer:void 0,CG=py?py.isBuffer:void 0,G6=CG||wG,SG="[object Arguments]",FG="[object Array]",jG="[object Boolean]",_G="[object Date]",kG="[object Error]",OG="[object Function]",AG="[object Map]",DG="[object Number]",BG="[object Object]",TG="[object RegExp]",PG="[object Set]",NG="[object String]",MG="[object WeakMap]",IG="[object ArrayBuffer]",$G="[object DataView]",LG="[object Float32Array]",RG="[object Float64Array]",zG="[object Int8Array]",UG="[object Int16Array]",HG="[object Int32Array]",qG="[object Uint8Array]",WG="[object Uint8ClampedArray]",VG="[object Uint16Array]",GG="[object Uint32Array]",ur={};ur[LG]=ur[RG]=ur[zG]=ur[UG]=ur[HG]=ur[qG]=ur[WG]=ur[VG]=ur[GG]=!0;ur[SG]=ur[FG]=ur[IG]=ur[jG]=ur[$G]=ur[_G]=ur[kG]=ur[OG]=ur[AG]=ur[DG]=ur[BG]=ur[TG]=ur[PG]=ur[NG]=ur[MG]=!1;function KG(e){return od(e)&&AE(e.length)&&!!ur[Yl(e)]}function YG(e){return function(t){return e(t)}}var TE=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ru=TE&&typeof module=="object"&&module&&!module.nodeType&&module,ZG=Ru&&Ru.exports===TE,Wp=ZG&&jE.process,my=function(){try{var e=Ru&&Ru.require&&Ru.require("util").types;return e||Wp&&Wp.binding&&Wp.binding("util")}catch{}}(),gy=my&&my.isTypedArray,K6=gy?YG(gy):KG,XG=Object.prototype,JG=XG.hasOwnProperty;function QG(e,t){var r=Uh(e),n=!r&&qh(e),i=!r&&!n&&G6(e),s=!r&&!n&&!i&&K6(e),o=r||n||i||s,l=o?yG(e.length,String):[],u=l.length;for(var c in e)(t||JG.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||OE(c,u)))&&l.push(c);return l}function PE(e,t){return function(r){return e(t(r))}}var eK=PE(Object.keys,Object),tK=Object.prototype,rK=tK.hasOwnProperty;function nK(e){if(!K2(e))return eK(e);var t=[];for(var r in Object(e))rK.call(e,r)&&r!="constructor"&&t.push(r);return t}function iK(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var aK=Object.prototype,sK=aK.hasOwnProperty;function oK(e){if(!vo(e))return iK(e);var t=K2(e),r=[];for(var n in e)n=="constructor"&&(t||!sK.call(e,n))||r.push(n);return r}function NE(e){return G2(e)?QG(e,!0):oK(e)}var D0=Eo(Object,"create");function lK(){this.__data__=D0?D0(null):{},this.size=0}function uK(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cK="__lodash_hash_undefined__",dK=Object.prototype,hK=dK.hasOwnProperty;function fK(e){var t=this.__data__;if(D0){var r=t[e];return r===cK?void 0:r}return hK.call(t,e)?t[e]:void 0}var pK=Object.prototype,mK=pK.hasOwnProperty;function gK(e){var t=this.__data__;return D0?t[e]!==void 0:mK.call(t,e)}var yK="__lodash_hash_undefined__";function bK(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=D0&&t===void 0?yK:t,this}function no(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}no.prototype.clear=lK;no.prototype.delete=uK;no.prototype.get=fK;no.prototype.has=gK;no.prototype.set=bK;function xK(){this.__data__=[],this.size=0}function Y2(e,t){for(var r=e.length;r--;)if(V2(e[r][0],t))return r;return-1}var vK=Array.prototype,wK=vK.splice;function EK(e){var t=this.__data__,r=Y2(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():wK.call(t,r,1),--this.size,!0}function CK(e){var t=this.__data__,r=Y2(t,e);return r<0?void 0:t[r][1]}function SK(e){return Y2(this.__data__,e)>-1}function FK(e,t){var r=this.__data__,n=Y2(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ma(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ma.prototype.clear=xK;Ma.prototype.delete=EK;Ma.prototype.get=CK;Ma.prototype.has=SK;Ma.prototype.set=FK;var B0=Eo(ea,"Map");function jK(){this.size=0,this.__data__={hash:new no,map:new(B0||Ma),string:new no}}function _K(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Z2(e,t){var r=e.__data__;return _K(t)?r[typeof t=="string"?"string":"hash"]:r.map}function kK(e){var t=Z2(this,e).delete(e);return this.size-=t?1:0,t}function OK(e){return Z2(this,e).get(e)}function AK(e){return Z2(this,e).has(e)}function DK(e,t){var r=Z2(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function js(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}js.prototype.clear=jK;js.prototype.delete=kK;js.prototype.get=OK;js.prototype.has=AK;js.prototype.set=DK;var BK="Expected a function";function ld(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(BK);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(ld.Cache||js),r}ld.Cache=js;var ME=PE(Object.getPrototypeOf,Object),TK="[object Object]",PK=Function.prototype,NK=Object.prototype,IE=PK.toString,MK=NK.hasOwnProperty,IK=IE.call(Object);function $K(e){if(!od(e)||Yl(e)!=TK)return!1;var t=ME(e);if(t===null)return!0;var r=MK.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&IE.call(r)==IK}function LK(){this.__data__=new Ma,this.size=0}function RK(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function zK(e){return this.__data__.get(e)}function UK(e){return this.__data__.has(e)}var HK=200;function qK(e,t){var r=this.__data__;if(r instanceof Ma){var n=r.__data__;if(!B0||n.length<HK-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new js(n)}return r.set(e,t),this.size=r.size,this}function Zl(e){var t=this.__data__=new Ma(e);this.size=t.size}Zl.prototype.clear=LK;Zl.prototype.delete=RK;Zl.prototype.get=zK;Zl.prototype.has=UK;Zl.prototype.set=qK;var $E=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yy=$E&&typeof module=="object"&&module&&!module.nodeType&&module,WK=yy&&yy.exports===$E,by=WK?ea.Buffer:void 0,xy=by?by.allocUnsafe:void 0;function VK(e,t){if(t)return e.slice();var r=e.length,n=xy?xy(r):new e.constructor(r);return e.copy(n),n}var I5=Eo(ea,"DataView"),$5=Eo(ea,"Promise"),L5=Eo(ea,"Set"),vy="[object Map]",GK="[object Object]",wy="[object Promise]",Ey="[object Set]",Cy="[object WeakMap]",Sy="[object DataView]",KK=wo(I5),YK=wo(B0),ZK=wo($5),XK=wo(L5),JK=wo(M5),Rs=Yl;(I5&&Rs(new I5(new ArrayBuffer(1)))!=Sy||B0&&Rs(new B0)!=vy||$5&&Rs($5.resolve())!=wy||L5&&Rs(new L5)!=Ey||M5&&Rs(new M5)!=Cy)&&(Rs=function(e){var t=Yl(e),r=t==GK?e.constructor:void 0,n=r?wo(r):"";if(n)switch(n){case KK:return Sy;case YK:return vy;case ZK:return wy;case XK:return Ey;case JK:return Cy}return t});var Fy=ea.Uint8Array;function QK(e){var t=new e.constructor(e.byteLength);return new Fy(t).set(new Fy(e)),t}function eY(e,t){var r=t?QK(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function tY(e){return typeof e.constructor=="function"&&!K2(e)?YV(ME(e)):{}}function rY(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),l=o.length;l--;){var u=o[++i];if(r(s[u],u,s)===!1)break}return t}}var nY=rY();function R5(e,t,r){(r!==void 0&&!V2(e[t],r)||r===void 0&&!(t in e))&&V6(e,t,r)}function iY(e){return od(e)&&G2(e)}function z5(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function aY(e){return cG(e,NE(e))}function sY(e,t,r,n,i,s,o){var l=z5(e,r),u=z5(t,r),c=o.get(u);if(c){R5(e,r,c);return}var d=s?s(l,u,r+"",e,t,o):void 0,h=d===void 0;if(h){var f=Uh(u),p=!f&&G6(u),g=!f&&!p&&K6(u);d=u,f||p||g?Uh(l)?d=l:iY(l)?d=XV(l):p?(h=!1,d=VK(u,!0)):g?(h=!1,d=eY(u,!0)):d=[]:$K(u)||qh(u)?(d=l,qh(l)?d=aY(l):(!vo(l)||W6(l))&&(d=tY(u))):h=!1}h&&(o.set(u,d),i(d,u,n,s,o),o.delete(u)),R5(e,r,d)}function LE(e,t,r,n,i){e!==t&&nY(t,function(s,o){if(i||(i=new Zl),vo(s))sY(e,t,o,r,LE,n,i);else{var l=n?n(z5(e,o),s,o+"",e,t,i):void 0;l===void 0&&(l=s),R5(e,o,l)}},NE)}var oY="[object Map]",lY="[object Set]",uY=Object.prototype,cY=uY.hasOwnProperty;function jy(e){if(e==null)return!0;if(G2(e)&&(Uh(e)||typeof e=="string"||typeof e.splice=="function"||G6(e)||K6(e)||qh(e)))return!e.length;var t=Rs(e);if(t==oY||t==lY)return!e.size;if(K2(e))return!nK(e).length;for(var r in e)if(cY.call(e,r))return!1;return!0}var dY=mG(function(e,t,r){LE(e,t,r)});const hY="modulepreload",fY=function(e){return"/"+e},_y={},qt=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(r.map(u=>{if(u=fY(u),u in _y)return;_y[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":hY,c||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),c)return new Promise((f,p)=>{h.addEventListener("load",f),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})},Y6={}.hasOwnProperty,pY=new Map,mY=/[A-Z]/g,gY=/-([a-z])/g,yY=new Set(["table","tbody","thead","tfoot","tr"]),bY=new Set(["td","th"]),RE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xY(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=_Y(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=jY(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?J4:YD,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=zE(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function zE(e,t,r){if(t.type==="element")return vY(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return wY(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return CY(e,t,r);if(t.type==="mdxjsEsm")return EY(e,t);if(t.type==="root")return SY(e,t,r);if(t.type==="text")return FY(e,t)}function vY(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=J4,e.schema=i),e.ancestors.push(t);const s=HE(e,t.tagName,!1),o=kY(e,t);let l=X6(e,t);return yY.has(t.tagName)&&(l=l.filter(function(u){return typeof u=="string"?!ZD(u):!0})),UE(e,o,s,t),Z6(o,l),e.ancestors.pop(),e.schema=n,e.create(t,s,o,r)}function wY(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return Ri(n.type==="ExpressionStatement"),e.evaluater.evaluateExpression(n.expression)}T0(e,t.position)}function EY(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);T0(e,t.position)}function CY(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=J4,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:HE(e,t.name,!0),o=OY(e,t),l=X6(e,t);return UE(e,o,s,t),Z6(o,l),e.ancestors.pop(),e.schema=n,e.create(t,s,o,r)}function SY(e,t,r){const n={};return Z6(n,X6(e,t)),e.create(t,e.Fragment,n,r)}function FY(e,t){return t.value}function UE(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function Z6(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function jY(e,t,r){return n;function n(i,s,o,l){const c=Array.isArray(o.children)?r:t;return l?c(s,o,l):c(s,o)}}function _Y(e,t){return r;function r(n,i,s,o){const l=Array.isArray(s.children),u=rB(n);return t(i,s,o,l,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function kY(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&Y6.call(t.properties,i)){const s=AY(e,i,t.properties[i]);if(s){const[o,l]=s;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&bY.has(t.tagName)?n=l:r[o]=l}}if(n){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function OY(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const s=n.data.estree.body[0];Ri(s.type==="ExpressionStatement");const o=s.expression;Ri(o.type==="ObjectExpression");const l=o.properties[0];Ri(l.type==="SpreadElement"),Object.assign(r,e.evaluater.evaluateExpression(l.argument))}else T0(e,t.position);else{const i=n.name;let s;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const l=n.value.data.estree.body[0];Ri(l.type==="ExpressionStatement"),s=e.evaluater.evaluateExpression(l.expression)}else T0(e,t.position);else s=n.value===null?!0:n.value;r[i]=s}return r}function X6(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:pY;for(;++n<t.children.length;){const s=t.children[n];let o;if(e.passKeys){const u=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(u){const c=i.get(u)||0;o=u+"-"+c,i.set(u,c+1)}}const l=zE(e,s,o);l!==void 0&&r.push(l)}return r}function AY(e,t,r){const n=XD(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?JD(r):QD(r)),n.property==="style"){let i=typeof r=="object"?r:DY(e,String(r));return e.stylePropertyNameCase==="css"&&(i=BY(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?eB[n.property]||n.property:n.attribute,r]}}function DY(e,t){const r={};try{tB(t,n)}catch(i){if(!e.ignoreInvalidStyle){const s=i,o=new Uv("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=RE+"#cannot-parse-style-attribute",o}}return r;function n(i,s){let o=i;o.slice(0,2)!=="--"&&(o.slice(0,4)==="-ms-"&&(o="ms-"+o.slice(4)),o=o.replace(gY,PY)),r[o]=s}}function HE(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,o;for(;++s<i.length;){const l=z3(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(s&&l.type==="Literal"),optional:!1}:l}n=o}else n=z3(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return Y6.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);T0(e)}function T0(e,t){const r=new Uv("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=RE+"#cannot-handle-mdx-estrees-without-createevaluater",r}function BY(e){const t={};let r;for(r in e)Y6.call(e,r)&&(t[TY(r)]=e[r]);return t}function TY(e){let t=e.replace(mY,NY);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function PY(e,t){return t.toUpperCase()}function NY(e){return"-"+e.toLowerCase()}const Vp={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},MY="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ky=[],Oy={allowDangerousHtml:!0},IY=/^(https?|ircs?|mailto|xmpp)$/i,$Y=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function LY(e){const t=RY(e),r=zY(e);return UY(t.runSync(t.parse(r),r),e)}function RY(e){const t=e.rehypePlugins||ky,r=e.remarkPlugins||ky,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Oy}:Oy;return nB().use(iB).use(r).use(aB,n).use(t)}function zY(e){const t=e.children||"",r=new sB;return typeof t=="string"&&(r.value=t),r}function UY(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,s=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||HY;for(const d of $Y)Object.hasOwn(t,d.from)&&oB("Unexpected `"+d.from+"` prop, "+(d.to?"use `"+d.to+"` instead":"remove it")+" (see <"+MY+"#"+d.id+"> for more info)");return Q4(e,c),xY(e,{Fragment:a.Fragment,components:i,ignoreInvalidStyle:!0,jsx:a.jsx,jsxs:a.jsxs,passKeys:!0,passNode:!0});function c(d,h,f){if(d.type==="raw"&&f&&typeof h=="number")return o?f.children.splice(h,1):f.children[h]={type:"text",value:d.value},h;if(d.type==="element"){let p;for(p in Vp)if(Object.hasOwn(Vp,p)&&Object.hasOwn(d.properties,p)){const g=d.properties[p],y=Vp[p];(y===null||y.includes(d.tagName))&&(d.properties[p]=u(String(g||""),p,d))}}if(d.type==="element"){let p=r?!r.includes(d.tagName):s?s.includes(d.tagName):!1;if(!p&&n&&typeof h=="number"&&(p=!n(d,h,f)),p&&f&&typeof h=="number")return l&&d.children?f.children.splice(h,1,...d.children):f.children.splice(h,1),h}}}function HY(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||n!==-1&&t>n||IY.test(e.slice(0,t))?e:""}class Yn{constructor(t,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new Yn(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}let Vi=class qE{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new qE(r,Yn.range(this,t))}};class He{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+t,i,s,o=r&&r.loc;if(o&&o.start<=o.end){var l=o.lexer.input;i=o.start,s=o.end,i===l.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var u=l.slice(i,s).replace(/[^]/g,"$&̲"),c;i>15?c="…"+l.slice(i-15,i):c=l.slice(0,i);var d;s+15<l.length?d=l.slice(s,s+15)+"…":d=l.slice(s),n+=c+u+d}var h=new Error(n);return h.name="ParseError",h.__proto__=He.prototype,h.position=i,i!=null&&s!=null&&(h.length=s-i),h.rawMessage=t,h}}He.prototype.__proto__=Error.prototype;var qY=function(t,r){return t.indexOf(r)!==-1},WY=function(t,r){return t===void 0?r:t},VY=/([A-Z])/g,GY=function(t){return t.replace(VY,"-$1").toLowerCase()},KY={"&":"&",">":">","<":"<",'"':""","'":"'"},YY=/[&><"']/g;function ZY(e){return String(e).replace(YY,t=>KY[t])}var WE=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},XY=function(t){var r=WE(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},JY=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},QY=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},gt={contains:qY,deflt:WY,escape:ZY,hyphenate:GY,getBaseElem:WE,isCharacterBox:XY,protocolFromUrl:QY},zu={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function eZ(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}let J6=class{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in zu)if(zu.hasOwnProperty(r)){var n=zu[r];this[r]=t[r]!==void 0?n.processor?n.processor(t[r]):t[r]:eZ(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new He("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=gt.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}};class Ka{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return Li[tZ[this.id]]}sub(){return Li[rZ[this.id]]}fracNum(){return Li[nZ[this.id]]}fracDen(){return Li[iZ[this.id]]}cramp(){return Li[aZ[this.id]]}text(){return Li[sZ[this.id]]}isTight(){return this.size>=2}}var Q6=0,Wh=1,sl=2,xa=3,P0=4,ui=5,Cl=6,wn=7,Li=[new Ka(Q6,0,!1),new Ka(Wh,0,!0),new Ka(sl,1,!1),new Ka(xa,1,!0),new Ka(P0,2,!1),new Ka(ui,2,!0),new Ka(Cl,3,!1),new Ka(wn,3,!0)],tZ=[P0,ui,P0,ui,Cl,wn,Cl,wn],rZ=[ui,ui,ui,ui,wn,wn,wn,wn],nZ=[sl,xa,P0,ui,Cl,wn,Cl,wn],iZ=[xa,xa,ui,ui,wn,wn,wn,wn],aZ=[Wh,Wh,xa,xa,ui,ui,wn,wn],sZ=[Q6,Wh,sl,xa,sl,xa,sl,xa],bt={DISPLAY:Li[Q6],TEXT:Li[sl],SCRIPT:Li[P0],SCRIPTSCRIPT:Li[Cl]},U5=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function oZ(e){for(var t=0;t<U5.length;t++)for(var r=U5[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var bh=[];U5.forEach(e=>e.blocks.forEach(t=>bh.push(...t)));function VE(e){for(var t=0;t<bh.length;t+=2)if(e>=bh[t]&&e<=bh[t+1])return!0;return!1}var Uo=80,lZ=function(t,r){return"M95,"+(622+t+r)+`
- c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
- c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
- c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
- s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
- c69,-144,104.5,-217.7,106.5,-221
- l`+t/2.075+" -"+t+`
- c5.3,-9.3,12,-14,20,-14
- H400000v`+(40+t)+`H845.2724
- s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
- c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
- M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},uZ=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
- c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
- c340,-704.7,510.7,-1060.3,512,-1067
- l`+t/2.084+" -"+t+`
- c4.7,-7.3,11,-11,19,-11
- H40000v`+(40+t)+`H1012.3
- s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
- c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
- s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
- c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
- M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},cZ=function(t,r){return"M983 "+(10+t+r)+`
- l`+t/3.13+" -"+t+`
- c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
- H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
- s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
- c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
- c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
- c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
- c53.7,-170.3,84.5,-266.8,92.5,-289.5z
- M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},dZ=function(t,r){return"M424,"+(2398+t+r)+`
- c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
- c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
- s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
- s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
- l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
- v`+(40+t)+`H1014.6
- s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
- c-2,6,-10,9,-24,9
- c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
- h400000v`+(40+t)+"h-400000z"},hZ=function(t,r){return"M473,"+(2713+t+r)+`
- c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
- c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
- s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
- c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
- c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
- s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
- 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},fZ=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},pZ=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
- H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
- h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
- c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
- 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},mZ=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=lZ(r,Uo);break;case"sqrtSize1":i=uZ(r,Uo);break;case"sqrtSize2":i=cZ(r,Uo);break;case"sqrtSize3":i=dZ(r,Uo);break;case"sqrtSize4":i=hZ(r,Uo);break;case"sqrtTall":i=pZ(r,Uo,n)}return i},gZ=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Ay={doubleleftarrow:`M262 157
- l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
- 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
- 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
- c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
- 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
- -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
- -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
- m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
- -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
- 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
- -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
- -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
- -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
- c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
- -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
- 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
- -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
- c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
- 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
- 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
- l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
- -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
- 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
- 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
- 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
- -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
- H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
- 435 0h399565z`,leftgroupunder:`M400000 262
- H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
- 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
- -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
- -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
- -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
- 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
- -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
- -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
- m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
- 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
- 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
- -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
- 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
- -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
- v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
- -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
- -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
- 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
- M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
- M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
- -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
- c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
- 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
- M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
- c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
- -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
- 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
- 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
- c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
- 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
- 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
- -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
- -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
- m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
- 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
- -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
- m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
- c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
- -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
- m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
- 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
- -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
- m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
- c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
- -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
- 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
- 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
- -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
- 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
- -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
- s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
- c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
- 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
- -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
- 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
- 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
- -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
- -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
- 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
- -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
- 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
- m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
- 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
- -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
- -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
- 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
- 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
- -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
- m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
- 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
- -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
- 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
- M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
- 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
- -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
- -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
- 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
- -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
- -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
- -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
- 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
- c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
- 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
- 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
- -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
- 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
- -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
- 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
- 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
- -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
- -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
- 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
- c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
- 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
- -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
- 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
- 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
- -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
- -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
- 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
- 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
- -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
- 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
- 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
- -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
- -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
- H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
- c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
- c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
- -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
- c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
- c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
- s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
- 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
- s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
- c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
- M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
- -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
- 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
- -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
- -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
- 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
- c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
- c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
- c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
- M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
- c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
- -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
- c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
- M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
- 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
- -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
- M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
- c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
- -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
- c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
- M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},yZ=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
- H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
- M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
- M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
- MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
- MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
- M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
- M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
- c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
- -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
- 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
- c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
- -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
- l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
- -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
- 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
- c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
- c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
- c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
- c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
- c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
- l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
- -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class ud{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return gt.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var Hi={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Md={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Dy={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function GE(e,t){Hi[e]=t}function eg(e,t,r){if(!Hi[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=Hi[t][n];if(!i&&e[0]in Dy&&(n=Dy[e[0]].charCodeAt(0),i=Hi[t][n]),!i&&r==="text"&&VE(n)&&(i=Hi[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Gp={};function bZ(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Gp[t]){var r=Gp[t]={cssEmPerMu:Md.quad[t]/18};for(var n in Md)Md.hasOwnProperty(n)&&(r[n]=Md[n][t])}return Gp[t]}var xZ=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],By=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ty=function(t,r){return r.size<2?t:xZ[t-1][r.size-1]};class ma{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||ma.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=By[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return new ma(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Ty(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:By[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Ty(ma.BASESIZE,t);return this.size===r&&this.textSize===ma.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==ma.BASESIZE?["sizing","reset-size"+this.size,"size"+ma.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=bZ(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ma.BASESIZE=6;var H5={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},vZ={ex:!0,em:!0,mu:!0},KE=function(t){return typeof t!="string"&&(t=t.unit),t in H5||t in vZ||t==="ex"},Er=function(t,r){var n;if(t.unit in H5)n=H5[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new He("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Ke=function(t){return+t.toFixed(4)+"em"},cs=function(t){return t.filter(r=>r).join(" ")},YE=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},ZE=function(t){var r=document.createElement(t);r.className=cs(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(var s=0;s<this.children.length;s++)r.appendChild(this.children[s].toNode());return r},wZ=/[\s"'>/=\x00-\x1f]/,XE=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+gt.escape(cs(this.classes))+'"');var n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=gt.hyphenate(i)+":"+this.style[i]+";");n&&(r+=' style="'+gt.escape(n)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(wZ.test(s))throw new He("Invalid attribute name '"+s+"'");r+=" "+s+'="'+gt.escape(this.attributes[s])+'"'}r+=">";for(var o=0;o<this.children.length;o++)r+=this.children[o].toMarkup();return r+="</"+t+">",r};class cd{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,YE.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return gt.contains(this.classes,t)}toNode(){return ZE.call(this,"span")}toMarkup(){return XE.call(this,"span")}}class tg{constructor(t,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,YE.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return gt.contains(this.classes,t)}toNode(){return ZE.call(this,"a")}toMarkup(){return XE.call(this,"a")}}class EZ{constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=n}hasClass(t){return gt.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t='<img src="'+gt.escape(this.src)+'"'+(' alt="'+gt.escape(this.alt)+'"'),r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=gt.hyphenate(n)+":"+this.style[n]+";");return r&&(t+=' style="'+gt.escape(r)+'"'),t+="'/>",t}}var CZ={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class hi{constructor(t,r,n,i,s,o,l,u){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=s||0,this.width=o||0,this.classes=l||[],this.style=u||{},this.maxFontSize=0;var c=oZ(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=CZ[this.text])}hasClass(t){return gt.contains(this.classes,t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Ke(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=cs(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=gt.escape(cs(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=gt.hyphenate(i)+":"+this.style[i]+";");n&&(t=!0,r+=' style="'+gt.escape(n)+'"');var s=gt.escape(this.text);return t?(r+=">",r+=s,r+="</span>",r):s}}class Fa{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+gt.escape(this.attributes[r])+'"');t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class ds{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Ay[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+gt.escape(this.alternate)+'"/>':'<path d="'+gt.escape(Ay[this.pathName])+'"/>'}}class q5{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+gt.escape(this.attributes[r])+'"');return t+="/>",t}}function Py(e){if(e instanceof hi)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function SZ(e){if(e instanceof cd)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var FZ={bin:1,close:1,inner:1,open:1,punct:1,rel:1},jZ={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},or={math:{},text:{}};function w(e,t,r,n,i,s){or[e][i]={font:t,group:r,replace:n},s&&n&&(or[e][n]=or[e][i])}var S="math",Re="text",A="main",re="ams",yr="accent-token",tt="bin",kn="close",Xl="inner",yt="mathord",Ir="op-token",ri="open",X2="punct",oe="rel",Ia="spacing",me="textord";w(S,A,oe,"≡","\\equiv",!0);w(S,A,oe,"≺","\\prec",!0);w(S,A,oe,"≻","\\succ",!0);w(S,A,oe,"∼","\\sim",!0);w(S,A,oe,"⊥","\\perp");w(S,A,oe,"⪯","\\preceq",!0);w(S,A,oe,"⪰","\\succeq",!0);w(S,A,oe,"≃","\\simeq",!0);w(S,A,oe,"∣","\\mid",!0);w(S,A,oe,"≪","\\ll",!0);w(S,A,oe,"≫","\\gg",!0);w(S,A,oe,"≍","\\asymp",!0);w(S,A,oe,"∥","\\parallel");w(S,A,oe,"⋈","\\bowtie",!0);w(S,A,oe,"⌣","\\smile",!0);w(S,A,oe,"⊑","\\sqsubseteq",!0);w(S,A,oe,"⊒","\\sqsupseteq",!0);w(S,A,oe,"≐","\\doteq",!0);w(S,A,oe,"⌢","\\frown",!0);w(S,A,oe,"∋","\\ni",!0);w(S,A,oe,"∝","\\propto",!0);w(S,A,oe,"⊢","\\vdash",!0);w(S,A,oe,"⊣","\\dashv",!0);w(S,A,oe,"∋","\\owns");w(S,A,X2,".","\\ldotp");w(S,A,X2,"⋅","\\cdotp");w(S,A,me,"#","\\#");w(Re,A,me,"#","\\#");w(S,A,me,"&","\\&");w(Re,A,me,"&","\\&");w(S,A,me,"ℵ","\\aleph",!0);w(S,A,me,"∀","\\forall",!0);w(S,A,me,"ℏ","\\hbar",!0);w(S,A,me,"∃","\\exists",!0);w(S,A,me,"∇","\\nabla",!0);w(S,A,me,"♭","\\flat",!0);w(S,A,me,"ℓ","\\ell",!0);w(S,A,me,"♮","\\natural",!0);w(S,A,me,"♣","\\clubsuit",!0);w(S,A,me,"℘","\\wp",!0);w(S,A,me,"♯","\\sharp",!0);w(S,A,me,"♢","\\diamondsuit",!0);w(S,A,me,"ℜ","\\Re",!0);w(S,A,me,"♡","\\heartsuit",!0);w(S,A,me,"ℑ","\\Im",!0);w(S,A,me,"♠","\\spadesuit",!0);w(S,A,me,"§","\\S",!0);w(Re,A,me,"§","\\S");w(S,A,me,"¶","\\P",!0);w(Re,A,me,"¶","\\P");w(S,A,me,"†","\\dag");w(Re,A,me,"†","\\dag");w(Re,A,me,"†","\\textdagger");w(S,A,me,"‡","\\ddag");w(Re,A,me,"‡","\\ddag");w(Re,A,me,"‡","\\textdaggerdbl");w(S,A,kn,"⎱","\\rmoustache",!0);w(S,A,ri,"⎰","\\lmoustache",!0);w(S,A,kn,"⟯","\\rgroup",!0);w(S,A,ri,"⟮","\\lgroup",!0);w(S,A,tt,"∓","\\mp",!0);w(S,A,tt,"⊖","\\ominus",!0);w(S,A,tt,"⊎","\\uplus",!0);w(S,A,tt,"⊓","\\sqcap",!0);w(S,A,tt,"∗","\\ast");w(S,A,tt,"⊔","\\sqcup",!0);w(S,A,tt,"◯","\\bigcirc",!0);w(S,A,tt,"∙","\\bullet",!0);w(S,A,tt,"‡","\\ddagger");w(S,A,tt,"≀","\\wr",!0);w(S,A,tt,"⨿","\\amalg");w(S,A,tt,"&","\\And");w(S,A,oe,"⟵","\\longleftarrow",!0);w(S,A,oe,"⇐","\\Leftarrow",!0);w(S,A,oe,"⟸","\\Longleftarrow",!0);w(S,A,oe,"⟶","\\longrightarrow",!0);w(S,A,oe,"⇒","\\Rightarrow",!0);w(S,A,oe,"⟹","\\Longrightarrow",!0);w(S,A,oe,"↔","\\leftrightarrow",!0);w(S,A,oe,"⟷","\\longleftrightarrow",!0);w(S,A,oe,"⇔","\\Leftrightarrow",!0);w(S,A,oe,"⟺","\\Longleftrightarrow",!0);w(S,A,oe,"↦","\\mapsto",!0);w(S,A,oe,"⟼","\\longmapsto",!0);w(S,A,oe,"↗","\\nearrow",!0);w(S,A,oe,"↩","\\hookleftarrow",!0);w(S,A,oe,"↪","\\hookrightarrow",!0);w(S,A,oe,"↘","\\searrow",!0);w(S,A,oe,"↼","\\leftharpoonup",!0);w(S,A,oe,"⇀","\\rightharpoonup",!0);w(S,A,oe,"↙","\\swarrow",!0);w(S,A,oe,"↽","\\leftharpoondown",!0);w(S,A,oe,"⇁","\\rightharpoondown",!0);w(S,A,oe,"↖","\\nwarrow",!0);w(S,A,oe,"⇌","\\rightleftharpoons",!0);w(S,re,oe,"≮","\\nless",!0);w(S,re,oe,"","\\@nleqslant");w(S,re,oe,"","\\@nleqq");w(S,re,oe,"⪇","\\lneq",!0);w(S,re,oe,"≨","\\lneqq",!0);w(S,re,oe,"","\\@lvertneqq");w(S,re,oe,"⋦","\\lnsim",!0);w(S,re,oe,"⪉","\\lnapprox",!0);w(S,re,oe,"⊀","\\nprec",!0);w(S,re,oe,"⋠","\\npreceq",!0);w(S,re,oe,"⋨","\\precnsim",!0);w(S,re,oe,"⪹","\\precnapprox",!0);w(S,re,oe,"≁","\\nsim",!0);w(S,re,oe,"","\\@nshortmid");w(S,re,oe,"∤","\\nmid",!0);w(S,re,oe,"⊬","\\nvdash",!0);w(S,re,oe,"⊭","\\nvDash",!0);w(S,re,oe,"⋪","\\ntriangleleft");w(S,re,oe,"⋬","\\ntrianglelefteq",!0);w(S,re,oe,"⊊","\\subsetneq",!0);w(S,re,oe,"","\\@varsubsetneq");w(S,re,oe,"⫋","\\subsetneqq",!0);w(S,re,oe,"","\\@varsubsetneqq");w(S,re,oe,"≯","\\ngtr",!0);w(S,re,oe,"","\\@ngeqslant");w(S,re,oe,"","\\@ngeqq");w(S,re,oe,"⪈","\\gneq",!0);w(S,re,oe,"≩","\\gneqq",!0);w(S,re,oe,"","\\@gvertneqq");w(S,re,oe,"⋧","\\gnsim",!0);w(S,re,oe,"⪊","\\gnapprox",!0);w(S,re,oe,"⊁","\\nsucc",!0);w(S,re,oe,"⋡","\\nsucceq",!0);w(S,re,oe,"⋩","\\succnsim",!0);w(S,re,oe,"⪺","\\succnapprox",!0);w(S,re,oe,"≆","\\ncong",!0);w(S,re,oe,"","\\@nshortparallel");w(S,re,oe,"∦","\\nparallel",!0);w(S,re,oe,"⊯","\\nVDash",!0);w(S,re,oe,"⋫","\\ntriangleright");w(S,re,oe,"⋭","\\ntrianglerighteq",!0);w(S,re,oe,"","\\@nsupseteqq");w(S,re,oe,"⊋","\\supsetneq",!0);w(S,re,oe,"","\\@varsupsetneq");w(S,re,oe,"⫌","\\supsetneqq",!0);w(S,re,oe,"","\\@varsupsetneqq");w(S,re,oe,"⊮","\\nVdash",!0);w(S,re,oe,"⪵","\\precneqq",!0);w(S,re,oe,"⪶","\\succneqq",!0);w(S,re,oe,"","\\@nsubseteqq");w(S,re,tt,"⊴","\\unlhd");w(S,re,tt,"⊵","\\unrhd");w(S,re,oe,"↚","\\nleftarrow",!0);w(S,re,oe,"↛","\\nrightarrow",!0);w(S,re,oe,"⇍","\\nLeftarrow",!0);w(S,re,oe,"⇏","\\nRightarrow",!0);w(S,re,oe,"↮","\\nleftrightarrow",!0);w(S,re,oe,"⇎","\\nLeftrightarrow",!0);w(S,re,oe,"△","\\vartriangle");w(S,re,me,"ℏ","\\hslash");w(S,re,me,"▽","\\triangledown");w(S,re,me,"◊","\\lozenge");w(S,re,me,"Ⓢ","\\circledS");w(S,re,me,"®","\\circledR");w(Re,re,me,"®","\\circledR");w(S,re,me,"∡","\\measuredangle",!0);w(S,re,me,"∄","\\nexists");w(S,re,me,"℧","\\mho");w(S,re,me,"Ⅎ","\\Finv",!0);w(S,re,me,"⅁","\\Game",!0);w(S,re,me,"‵","\\backprime");w(S,re,me,"▲","\\blacktriangle");w(S,re,me,"▼","\\blacktriangledown");w(S,re,me,"■","\\blacksquare");w(S,re,me,"⧫","\\blacklozenge");w(S,re,me,"★","\\bigstar");w(S,re,me,"∢","\\sphericalangle",!0);w(S,re,me,"∁","\\complement",!0);w(S,re,me,"ð","\\eth",!0);w(Re,A,me,"ð","ð");w(S,re,me,"╱","\\diagup");w(S,re,me,"╲","\\diagdown");w(S,re,me,"□","\\square");w(S,re,me,"□","\\Box");w(S,re,me,"◊","\\Diamond");w(S,re,me,"¥","\\yen",!0);w(Re,re,me,"¥","\\yen",!0);w(S,re,me,"✓","\\checkmark",!0);w(Re,re,me,"✓","\\checkmark");w(S,re,me,"ℶ","\\beth",!0);w(S,re,me,"ℸ","\\daleth",!0);w(S,re,me,"ℷ","\\gimel",!0);w(S,re,me,"ϝ","\\digamma",!0);w(S,re,me,"ϰ","\\varkappa");w(S,re,ri,"┌","\\@ulcorner",!0);w(S,re,kn,"┐","\\@urcorner",!0);w(S,re,ri,"└","\\@llcorner",!0);w(S,re,kn,"┘","\\@lrcorner",!0);w(S,re,oe,"≦","\\leqq",!0);w(S,re,oe,"⩽","\\leqslant",!0);w(S,re,oe,"⪕","\\eqslantless",!0);w(S,re,oe,"≲","\\lesssim",!0);w(S,re,oe,"⪅","\\lessapprox",!0);w(S,re,oe,"≊","\\approxeq",!0);w(S,re,tt,"⋖","\\lessdot");w(S,re,oe,"⋘","\\lll",!0);w(S,re,oe,"≶","\\lessgtr",!0);w(S,re,oe,"⋚","\\lesseqgtr",!0);w(S,re,oe,"⪋","\\lesseqqgtr",!0);w(S,re,oe,"≑","\\doteqdot");w(S,re,oe,"≓","\\risingdotseq",!0);w(S,re,oe,"≒","\\fallingdotseq",!0);w(S,re,oe,"∽","\\backsim",!0);w(S,re,oe,"⋍","\\backsimeq",!0);w(S,re,oe,"⫅","\\subseteqq",!0);w(S,re,oe,"⋐","\\Subset",!0);w(S,re,oe,"⊏","\\sqsubset",!0);w(S,re,oe,"≼","\\preccurlyeq",!0);w(S,re,oe,"⋞","\\curlyeqprec",!0);w(S,re,oe,"≾","\\precsim",!0);w(S,re,oe,"⪷","\\precapprox",!0);w(S,re,oe,"⊲","\\vartriangleleft");w(S,re,oe,"⊴","\\trianglelefteq");w(S,re,oe,"⊨","\\vDash",!0);w(S,re,oe,"⊪","\\Vvdash",!0);w(S,re,oe,"⌣","\\smallsmile");w(S,re,oe,"⌢","\\smallfrown");w(S,re,oe,"≏","\\bumpeq",!0);w(S,re,oe,"≎","\\Bumpeq",!0);w(S,re,oe,"≧","\\geqq",!0);w(S,re,oe,"⩾","\\geqslant",!0);w(S,re,oe,"⪖","\\eqslantgtr",!0);w(S,re,oe,"≳","\\gtrsim",!0);w(S,re,oe,"⪆","\\gtrapprox",!0);w(S,re,tt,"⋗","\\gtrdot");w(S,re,oe,"⋙","\\ggg",!0);w(S,re,oe,"≷","\\gtrless",!0);w(S,re,oe,"⋛","\\gtreqless",!0);w(S,re,oe,"⪌","\\gtreqqless",!0);w(S,re,oe,"≖","\\eqcirc",!0);w(S,re,oe,"≗","\\circeq",!0);w(S,re,oe,"≜","\\triangleq",!0);w(S,re,oe,"∼","\\thicksim");w(S,re,oe,"≈","\\thickapprox");w(S,re,oe,"⫆","\\supseteqq",!0);w(S,re,oe,"⋑","\\Supset",!0);w(S,re,oe,"⊐","\\sqsupset",!0);w(S,re,oe,"≽","\\succcurlyeq",!0);w(S,re,oe,"⋟","\\curlyeqsucc",!0);w(S,re,oe,"≿","\\succsim",!0);w(S,re,oe,"⪸","\\succapprox",!0);w(S,re,oe,"⊳","\\vartriangleright");w(S,re,oe,"⊵","\\trianglerighteq");w(S,re,oe,"⊩","\\Vdash",!0);w(S,re,oe,"∣","\\shortmid");w(S,re,oe,"∥","\\shortparallel");w(S,re,oe,"≬","\\between",!0);w(S,re,oe,"⋔","\\pitchfork",!0);w(S,re,oe,"∝","\\varpropto");w(S,re,oe,"◀","\\blacktriangleleft");w(S,re,oe,"∴","\\therefore",!0);w(S,re,oe,"∍","\\backepsilon");w(S,re,oe,"▶","\\blacktriangleright");w(S,re,oe,"∵","\\because",!0);w(S,re,oe,"⋘","\\llless");w(S,re,oe,"⋙","\\gggtr");w(S,re,tt,"⊲","\\lhd");w(S,re,tt,"⊳","\\rhd");w(S,re,oe,"≂","\\eqsim",!0);w(S,A,oe,"⋈","\\Join");w(S,re,oe,"≑","\\Doteq",!0);w(S,re,tt,"∔","\\dotplus",!0);w(S,re,tt,"∖","\\smallsetminus");w(S,re,tt,"⋒","\\Cap",!0);w(S,re,tt,"⋓","\\Cup",!0);w(S,re,tt,"⩞","\\doublebarwedge",!0);w(S,re,tt,"⊟","\\boxminus",!0);w(S,re,tt,"⊞","\\boxplus",!0);w(S,re,tt,"⋇","\\divideontimes",!0);w(S,re,tt,"⋉","\\ltimes",!0);w(S,re,tt,"⋊","\\rtimes",!0);w(S,re,tt,"⋋","\\leftthreetimes",!0);w(S,re,tt,"⋌","\\rightthreetimes",!0);w(S,re,tt,"⋏","\\curlywedge",!0);w(S,re,tt,"⋎","\\curlyvee",!0);w(S,re,tt,"⊝","\\circleddash",!0);w(S,re,tt,"⊛","\\circledast",!0);w(S,re,tt,"⋅","\\centerdot");w(S,re,tt,"⊺","\\intercal",!0);w(S,re,tt,"⋒","\\doublecap");w(S,re,tt,"⋓","\\doublecup");w(S,re,tt,"⊠","\\boxtimes",!0);w(S,re,oe,"⇢","\\dashrightarrow",!0);w(S,re,oe,"⇠","\\dashleftarrow",!0);w(S,re,oe,"⇇","\\leftleftarrows",!0);w(S,re,oe,"⇆","\\leftrightarrows",!0);w(S,re,oe,"⇚","\\Lleftarrow",!0);w(S,re,oe,"↞","\\twoheadleftarrow",!0);w(S,re,oe,"↢","\\leftarrowtail",!0);w(S,re,oe,"↫","\\looparrowleft",!0);w(S,re,oe,"⇋","\\leftrightharpoons",!0);w(S,re,oe,"↶","\\curvearrowleft",!0);w(S,re,oe,"↺","\\circlearrowleft",!0);w(S,re,oe,"↰","\\Lsh",!0);w(S,re,oe,"⇈","\\upuparrows",!0);w(S,re,oe,"↿","\\upharpoonleft",!0);w(S,re,oe,"⇃","\\downharpoonleft",!0);w(S,A,oe,"⊶","\\origof",!0);w(S,A,oe,"⊷","\\imageof",!0);w(S,re,oe,"⊸","\\multimap",!0);w(S,re,oe,"↭","\\leftrightsquigarrow",!0);w(S,re,oe,"⇉","\\rightrightarrows",!0);w(S,re,oe,"⇄","\\rightleftarrows",!0);w(S,re,oe,"↠","\\twoheadrightarrow",!0);w(S,re,oe,"↣","\\rightarrowtail",!0);w(S,re,oe,"↬","\\looparrowright",!0);w(S,re,oe,"↷","\\curvearrowright",!0);w(S,re,oe,"↻","\\circlearrowright",!0);w(S,re,oe,"↱","\\Rsh",!0);w(S,re,oe,"⇊","\\downdownarrows",!0);w(S,re,oe,"↾","\\upharpoonright",!0);w(S,re,oe,"⇂","\\downharpoonright",!0);w(S,re,oe,"⇝","\\rightsquigarrow",!0);w(S,re,oe,"⇝","\\leadsto");w(S,re,oe,"⇛","\\Rrightarrow",!0);w(S,re,oe,"↾","\\restriction");w(S,A,me,"‘","`");w(S,A,me,"$","\\$");w(Re,A,me,"$","\\$");w(Re,A,me,"$","\\textdollar");w(S,A,me,"%","\\%");w(Re,A,me,"%","\\%");w(S,A,me,"_","\\_");w(Re,A,me,"_","\\_");w(Re,A,me,"_","\\textunderscore");w(S,A,me,"∠","\\angle",!0);w(S,A,me,"∞","\\infty",!0);w(S,A,me,"′","\\prime");w(S,A,me,"△","\\triangle");w(S,A,me,"Γ","\\Gamma",!0);w(S,A,me,"Δ","\\Delta",!0);w(S,A,me,"Θ","\\Theta",!0);w(S,A,me,"Λ","\\Lambda",!0);w(S,A,me,"Ξ","\\Xi",!0);w(S,A,me,"Π","\\Pi",!0);w(S,A,me,"Σ","\\Sigma",!0);w(S,A,me,"Υ","\\Upsilon",!0);w(S,A,me,"Φ","\\Phi",!0);w(S,A,me,"Ψ","\\Psi",!0);w(S,A,me,"Ω","\\Omega",!0);w(S,A,me,"A","Α");w(S,A,me,"B","Β");w(S,A,me,"E","Ε");w(S,A,me,"Z","Ζ");w(S,A,me,"H","Η");w(S,A,me,"I","Ι");w(S,A,me,"K","Κ");w(S,A,me,"M","Μ");w(S,A,me,"N","Ν");w(S,A,me,"O","Ο");w(S,A,me,"P","Ρ");w(S,A,me,"T","Τ");w(S,A,me,"X","Χ");w(S,A,me,"¬","\\neg",!0);w(S,A,me,"¬","\\lnot");w(S,A,me,"⊤","\\top");w(S,A,me,"⊥","\\bot");w(S,A,me,"∅","\\emptyset");w(S,re,me,"∅","\\varnothing");w(S,A,yt,"α","\\alpha",!0);w(S,A,yt,"β","\\beta",!0);w(S,A,yt,"γ","\\gamma",!0);w(S,A,yt,"δ","\\delta",!0);w(S,A,yt,"ϵ","\\epsilon",!0);w(S,A,yt,"ζ","\\zeta",!0);w(S,A,yt,"η","\\eta",!0);w(S,A,yt,"θ","\\theta",!0);w(S,A,yt,"ι","\\iota",!0);w(S,A,yt,"κ","\\kappa",!0);w(S,A,yt,"λ","\\lambda",!0);w(S,A,yt,"μ","\\mu",!0);w(S,A,yt,"ν","\\nu",!0);w(S,A,yt,"ξ","\\xi",!0);w(S,A,yt,"ο","\\omicron",!0);w(S,A,yt,"π","\\pi",!0);w(S,A,yt,"ρ","\\rho",!0);w(S,A,yt,"σ","\\sigma",!0);w(S,A,yt,"τ","\\tau",!0);w(S,A,yt,"υ","\\upsilon",!0);w(S,A,yt,"ϕ","\\phi",!0);w(S,A,yt,"χ","\\chi",!0);w(S,A,yt,"ψ","\\psi",!0);w(S,A,yt,"ω","\\omega",!0);w(S,A,yt,"ε","\\varepsilon",!0);w(S,A,yt,"ϑ","\\vartheta",!0);w(S,A,yt,"ϖ","\\varpi",!0);w(S,A,yt,"ϱ","\\varrho",!0);w(S,A,yt,"ς","\\varsigma",!0);w(S,A,yt,"φ","\\varphi",!0);w(S,A,tt,"∗","*",!0);w(S,A,tt,"+","+");w(S,A,tt,"−","-",!0);w(S,A,tt,"⋅","\\cdot",!0);w(S,A,tt,"∘","\\circ",!0);w(S,A,tt,"÷","\\div",!0);w(S,A,tt,"±","\\pm",!0);w(S,A,tt,"×","\\times",!0);w(S,A,tt,"∩","\\cap",!0);w(S,A,tt,"∪","\\cup",!0);w(S,A,tt,"∖","\\setminus",!0);w(S,A,tt,"∧","\\land");w(S,A,tt,"∨","\\lor");w(S,A,tt,"∧","\\wedge",!0);w(S,A,tt,"∨","\\vee",!0);w(S,A,me,"√","\\surd");w(S,A,ri,"⟨","\\langle",!0);w(S,A,ri,"∣","\\lvert");w(S,A,ri,"∥","\\lVert");w(S,A,kn,"?","?");w(S,A,kn,"!","!");w(S,A,kn,"⟩","\\rangle",!0);w(S,A,kn,"∣","\\rvert");w(S,A,kn,"∥","\\rVert");w(S,A,oe,"=","=");w(S,A,oe,":",":");w(S,A,oe,"≈","\\approx",!0);w(S,A,oe,"≅","\\cong",!0);w(S,A,oe,"≥","\\ge");w(S,A,oe,"≥","\\geq",!0);w(S,A,oe,"←","\\gets");w(S,A,oe,">","\\gt",!0);w(S,A,oe,"∈","\\in",!0);w(S,A,oe,"","\\@not");w(S,A,oe,"⊂","\\subset",!0);w(S,A,oe,"⊃","\\supset",!0);w(S,A,oe,"⊆","\\subseteq",!0);w(S,A,oe,"⊇","\\supseteq",!0);w(S,re,oe,"⊈","\\nsubseteq",!0);w(S,re,oe,"⊉","\\nsupseteq",!0);w(S,A,oe,"⊨","\\models");w(S,A,oe,"←","\\leftarrow",!0);w(S,A,oe,"≤","\\le");w(S,A,oe,"≤","\\leq",!0);w(S,A,oe,"<","\\lt",!0);w(S,A,oe,"→","\\rightarrow",!0);w(S,A,oe,"→","\\to");w(S,re,oe,"≱","\\ngeq",!0);w(S,re,oe,"≰","\\nleq",!0);w(S,A,Ia," ","\\ ");w(S,A,Ia," ","\\space");w(S,A,Ia," ","\\nobreakspace");w(Re,A,Ia," ","\\ ");w(Re,A,Ia," "," ");w(Re,A,Ia," ","\\space");w(Re,A,Ia," ","\\nobreakspace");w(S,A,Ia,null,"\\nobreak");w(S,A,Ia,null,"\\allowbreak");w(S,A,X2,",",",");w(S,A,X2,";",";");w(S,re,tt,"⊼","\\barwedge",!0);w(S,re,tt,"⊻","\\veebar",!0);w(S,A,tt,"⊙","\\odot",!0);w(S,A,tt,"⊕","\\oplus",!0);w(S,A,tt,"⊗","\\otimes",!0);w(S,A,me,"∂","\\partial",!0);w(S,A,tt,"⊘","\\oslash",!0);w(S,re,tt,"⊚","\\circledcirc",!0);w(S,re,tt,"⊡","\\boxdot",!0);w(S,A,tt,"△","\\bigtriangleup");w(S,A,tt,"▽","\\bigtriangledown");w(S,A,tt,"†","\\dagger");w(S,A,tt,"⋄","\\diamond");w(S,A,tt,"⋆","\\star");w(S,A,tt,"◃","\\triangleleft");w(S,A,tt,"▹","\\triangleright");w(S,A,ri,"{","\\{");w(Re,A,me,"{","\\{");w(Re,A,me,"{","\\textbraceleft");w(S,A,kn,"}","\\}");w(Re,A,me,"}","\\}");w(Re,A,me,"}","\\textbraceright");w(S,A,ri,"{","\\lbrace");w(S,A,kn,"}","\\rbrace");w(S,A,ri,"[","\\lbrack",!0);w(Re,A,me,"[","\\lbrack",!0);w(S,A,kn,"]","\\rbrack",!0);w(Re,A,me,"]","\\rbrack",!0);w(S,A,ri,"(","\\lparen",!0);w(S,A,kn,")","\\rparen",!0);w(Re,A,me,"<","\\textless",!0);w(Re,A,me,">","\\textgreater",!0);w(S,A,ri,"⌊","\\lfloor",!0);w(S,A,kn,"⌋","\\rfloor",!0);w(S,A,ri,"⌈","\\lceil",!0);w(S,A,kn,"⌉","\\rceil",!0);w(S,A,me,"\\","\\backslash");w(S,A,me,"∣","|");w(S,A,me,"∣","\\vert");w(Re,A,me,"|","\\textbar",!0);w(S,A,me,"∥","\\|");w(S,A,me,"∥","\\Vert");w(Re,A,me,"∥","\\textbardbl");w(Re,A,me,"~","\\textasciitilde");w(Re,A,me,"\\","\\textbackslash");w(Re,A,me,"^","\\textasciicircum");w(S,A,oe,"↑","\\uparrow",!0);w(S,A,oe,"⇑","\\Uparrow",!0);w(S,A,oe,"↓","\\downarrow",!0);w(S,A,oe,"⇓","\\Downarrow",!0);w(S,A,oe,"↕","\\updownarrow",!0);w(S,A,oe,"⇕","\\Updownarrow",!0);w(S,A,Ir,"∐","\\coprod");w(S,A,Ir,"⋁","\\bigvee");w(S,A,Ir,"⋀","\\bigwedge");w(S,A,Ir,"⨄","\\biguplus");w(S,A,Ir,"⋂","\\bigcap");w(S,A,Ir,"⋃","\\bigcup");w(S,A,Ir,"∫","\\int");w(S,A,Ir,"∫","\\intop");w(S,A,Ir,"∬","\\iint");w(S,A,Ir,"∭","\\iiint");w(S,A,Ir,"∏","\\prod");w(S,A,Ir,"∑","\\sum");w(S,A,Ir,"⨂","\\bigotimes");w(S,A,Ir,"⨁","\\bigoplus");w(S,A,Ir,"⨀","\\bigodot");w(S,A,Ir,"∮","\\oint");w(S,A,Ir,"∯","\\oiint");w(S,A,Ir,"∰","\\oiiint");w(S,A,Ir,"⨆","\\bigsqcup");w(S,A,Ir,"∫","\\smallint");w(Re,A,Xl,"…","\\textellipsis");w(S,A,Xl,"…","\\mathellipsis");w(Re,A,Xl,"…","\\ldots",!0);w(S,A,Xl,"…","\\ldots",!0);w(S,A,Xl,"⋯","\\@cdots",!0);w(S,A,Xl,"⋱","\\ddots",!0);w(S,A,me,"⋮","\\varvdots");w(Re,A,me,"⋮","\\varvdots");w(S,A,yr,"ˊ","\\acute");w(S,A,yr,"ˋ","\\grave");w(S,A,yr,"¨","\\ddot");w(S,A,yr,"~","\\tilde");w(S,A,yr,"ˉ","\\bar");w(S,A,yr,"˘","\\breve");w(S,A,yr,"ˇ","\\check");w(S,A,yr,"^","\\hat");w(S,A,yr,"⃗","\\vec");w(S,A,yr,"˙","\\dot");w(S,A,yr,"˚","\\mathring");w(S,A,yt,"","\\@imath");w(S,A,yt,"","\\@jmath");w(S,A,me,"ı","ı");w(S,A,me,"ȷ","ȷ");w(Re,A,me,"ı","\\i",!0);w(Re,A,me,"ȷ","\\j",!0);w(Re,A,me,"ß","\\ss",!0);w(Re,A,me,"æ","\\ae",!0);w(Re,A,me,"œ","\\oe",!0);w(Re,A,me,"ø","\\o",!0);w(Re,A,me,"Æ","\\AE",!0);w(Re,A,me,"Œ","\\OE",!0);w(Re,A,me,"Ø","\\O",!0);w(Re,A,yr,"ˊ","\\'");w(Re,A,yr,"ˋ","\\`");w(Re,A,yr,"ˆ","\\^");w(Re,A,yr,"˜","\\~");w(Re,A,yr,"ˉ","\\=");w(Re,A,yr,"˘","\\u");w(Re,A,yr,"˙","\\.");w(Re,A,yr,"¸","\\c");w(Re,A,yr,"˚","\\r");w(Re,A,yr,"ˇ","\\v");w(Re,A,yr,"¨",'\\"');w(Re,A,yr,"˝","\\H");w(Re,A,yr,"◯","\\textcircled");var JE={"--":!0,"---":!0,"``":!0,"''":!0};w(Re,A,me,"–","--",!0);w(Re,A,me,"–","\\textendash");w(Re,A,me,"—","---",!0);w(Re,A,me,"—","\\textemdash");w(Re,A,me,"‘","`",!0);w(Re,A,me,"‘","\\textquoteleft");w(Re,A,me,"’","'",!0);w(Re,A,me,"’","\\textquoteright");w(Re,A,me,"“","``",!0);w(Re,A,me,"“","\\textquotedblleft");w(Re,A,me,"”","''",!0);w(Re,A,me,"”","\\textquotedblright");w(S,A,me,"°","\\degree",!0);w(Re,A,me,"°","\\degree");w(Re,A,me,"°","\\textdegree",!0);w(S,A,me,"£","\\pounds");w(S,A,me,"£","\\mathsterling",!0);w(Re,A,me,"£","\\pounds");w(Re,A,me,"£","\\textsterling",!0);w(S,re,me,"✠","\\maltese");w(Re,re,me,"✠","\\maltese");var Ny='0123456789/@."';for(var Kp=0;Kp<Ny.length;Kp++){var My=Ny.charAt(Kp);w(S,A,me,My,My)}var Iy='0123456789!@*()-=+";:?/.,';for(var Yp=0;Yp<Iy.length;Yp++){var $y=Iy.charAt(Yp);w(Re,A,me,$y,$y)}var Vh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Zp=0;Zp<Vh.length;Zp++){var Id=Vh.charAt(Zp);w(S,A,yt,Id,Id),w(Re,A,me,Id,Id)}w(S,re,me,"C","ℂ");w(Re,re,me,"C","ℂ");w(S,re,me,"H","ℍ");w(Re,re,me,"H","ℍ");w(S,re,me,"N","ℕ");w(Re,re,me,"N","ℕ");w(S,re,me,"P","ℙ");w(Re,re,me,"P","ℙ");w(S,re,me,"Q","ℚ");w(Re,re,me,"Q","ℚ");w(S,re,me,"R","ℝ");w(Re,re,me,"R","ℝ");w(S,re,me,"Z","ℤ");w(Re,re,me,"Z","ℤ");w(S,A,yt,"h","ℎ");w(Re,A,yt,"h","ℎ");var wt="";for(var yn=0;yn<Vh.length;yn++){var Fr=Vh.charAt(yn);wt=String.fromCharCode(55349,56320+yn),w(S,A,yt,Fr,wt),w(Re,A,me,Fr,wt),wt=String.fromCharCode(55349,56372+yn),w(S,A,yt,Fr,wt),w(Re,A,me,Fr,wt),wt=String.fromCharCode(55349,56424+yn),w(S,A,yt,Fr,wt),w(Re,A,me,Fr,wt),wt=String.fromCharCode(55349,56580+yn),w(S,A,yt,Fr,wt),w(Re,A,me,Fr,wt),wt=String.fromCharCode(55349,56684+yn),w(S,A,yt,Fr,wt),w(Re,A,me,Fr,wt),wt=String.fromCharCode(55349,56736+yn),w(S,A,yt,Fr,wt),w(Re,A,me,Fr,wt),wt=String.fromCharCode(55349,56788+yn),w(S,A,yt,Fr,wt),w(Re,A,me,Fr,wt),wt=String.fromCharCode(55349,56840+yn),w(S,A,yt,Fr,wt),w(Re,A,me,Fr,wt),wt=String.fromCharCode(55349,56944+yn),w(S,A,yt,Fr,wt),w(Re,A,me,Fr,wt),yn<26&&(wt=String.fromCharCode(55349,56632+yn),w(S,A,yt,Fr,wt),w(Re,A,me,Fr,wt),wt=String.fromCharCode(55349,56476+yn),w(S,A,yt,Fr,wt),w(Re,A,me,Fr,wt))}wt="𝕜";w(S,A,yt,"k",wt);w(Re,A,me,"k",wt);for(var Ms=0;Ms<10;Ms++){var Ya=Ms.toString();wt=String.fromCharCode(55349,57294+Ms),w(S,A,yt,Ya,wt),w(Re,A,me,Ya,wt),wt=String.fromCharCode(55349,57314+Ms),w(S,A,yt,Ya,wt),w(Re,A,me,Ya,wt),wt=String.fromCharCode(55349,57324+Ms),w(S,A,yt,Ya,wt),w(Re,A,me,Ya,wt),wt=String.fromCharCode(55349,57334+Ms),w(S,A,yt,Ya,wt),w(Re,A,me,Ya,wt)}var W5="ÐÞþ";for(var Xp=0;Xp<W5.length;Xp++){var $d=W5.charAt(Xp);w(S,A,yt,$d,$d),w(Re,A,me,$d,$d)}var Ld=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Ly=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],_Z=function(t,r){var n=t.charCodeAt(0),i=t.charCodeAt(1),s=(n-55296)*1024+(i-56320)+65536,o=r==="math"?0:1;if(119808<=s&&s<120484){var l=Math.floor((s-119808)/26);return[Ld[l][2],Ld[l][o]]}else if(120782<=s&&s<=120831){var u=Math.floor((s-120782)/10);return[Ly[u][2],Ly[u][o]]}else{if(s===120485||s===120486)return[Ld[0][2],Ld[0][o]];if(120486<s&&s<120782)return["",""];throw new He("Unsupported character: "+t)}},J2=function(t,r,n){return or[n][t]&&or[n][t].replace&&(t=or[n][t].replace),{value:t,metrics:eg(t,r,n)}},Ei=function(t,r,n,i,s){var o=J2(t,r,n),l=o.metrics;t=o.value;var u;if(l){var c=l.italic;(n==="text"||i&&i.font==="mathit")&&(c=0),u=new hi(t,l.height,l.depth,c,l.skew,l.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),u=new hi(t,0,0,0,0,0,s);if(i){u.maxFontSize=i.sizeMultiplier,i.style.isTight()&&u.classes.push("mtight");var d=i.getColor();d&&(u.style.color=d)}return u},kZ=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&J2(t,"Main-Bold",r).metrics?Ei(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||or[r][t].font==="main"?Ei(t,"Main-Regular",r,n,i):Ei(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},OZ=function(t,r,n,i,s){return s!=="textord"&&J2(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},AZ=function(t,r,n){var i=t.mode,s=t.text,o=["mord"],l=i==="math"||i==="text"&&r.font,u=l?r.font:r.fontFamily,c="",d="";if(s.charCodeAt(0)===55349&&([c,d]=_Z(s,i)),c.length>0)return Ei(s,c,i,r,o.concat(d));if(u){var h,f;if(u==="boldsymbol"){var p=OZ(s,i,r,o,n);h=p.fontName,f=[p.fontClass]}else l?(h=tC[u].fontName,f=[u]):(h=Rd(u,r.fontWeight,r.fontShape),f=[u,r.fontWeight,r.fontShape]);if(J2(s,h,i).metrics)return Ei(s,h,i,r,o.concat(f));if(JE.hasOwnProperty(s)&&h.slice(0,10)==="Typewriter"){for(var g=[],y=0;y<s.length;y++)g.push(Ei(s[y],h,i,r,o.concat(f)));return eC(g)}}if(n==="mathord")return Ei(s,"Math-Italic",i,r,o.concat(["mathnormal"]));if(n==="textord"){var b=or[i][s]&&or[i][s].font;if(b==="ams"){var x=Rd("amsrm",r.fontWeight,r.fontShape);return Ei(s,x,i,r,o.concat("amsrm",r.fontWeight,r.fontShape))}else if(b==="main"||!b){var v=Rd("textrm",r.fontWeight,r.fontShape);return Ei(s,v,i,r,o.concat(r.fontWeight,r.fontShape))}else{var E=Rd(b,r.fontWeight,r.fontShape);return Ei(s,E,i,r,o.concat(E,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},DZ=(e,t)=>{if(cs(e.classes)!==cs(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},BZ=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof hi&&n instanceof hi&&DZ(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},rg=function(t){for(var r=0,n=0,i=0,s=0;s<t.children.length;s++){var o=t.children[s];o.height>r&&(r=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},Tn=function(t,r,n,i){var s=new cd(t,r,n,i);return rg(s),s},QE=(e,t,r,n)=>new cd(e,t,r,n),TZ=function(t,r,n){var i=Tn([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=Ke(i.height),i.maxFontSize=1,i},PZ=function(t,r,n,i){var s=new tg(t,r,n,i);return rg(s),s},eC=function(t){var r=new ud(t);return rg(r),r},NZ=function(t,r){return t instanceof ud?Tn([],[t],r):t},MZ=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,s=i,o=1;o<r.length;o++){var l=-r[o].shift-s-r[o].elem.depth,u=l-(r[o-1].elem.height+r[o-1].elem.depth);s=s+l,n.push({type:"kern",size:u}),n.push(r[o])}return{children:n,depth:i}}var c;if(t.positionType==="top"){for(var d=t.positionData,h=0;h<t.children.length;h++){var f=t.children[h];d-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}c=d}else if(t.positionType==="bottom")c=-t.positionData;else{var p=t.children[0];if(p.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")c=-p.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")c=-p.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:c}},IZ=function(t,r){for(var{children:n,depth:i}=MZ(t),s=0,o=0;o<n.length;o++){var l=n[o];if(l.type==="elem"){var u=l.elem;s=Math.max(s,u.maxFontSize,u.height)}}s+=2;var c=Tn(["pstrut"],[]);c.style.height=Ke(s);for(var d=[],h=i,f=i,p=i,g=0;g<n.length;g++){var y=n[g];if(y.type==="kern")p+=y.size;else{var b=y.elem,x=y.wrapperClasses||[],v=y.wrapperStyle||{},E=Tn(x,[c,b],void 0,v);E.style.top=Ke(-s-p-b.depth),y.marginLeft&&(E.style.marginLeft=y.marginLeft),y.marginRight&&(E.style.marginRight=y.marginRight),d.push(E),p+=b.height+b.depth}h=Math.min(h,p),f=Math.max(f,p)}var _=Tn(["vlist"],d);_.style.height=Ke(f);var j;if(h<0){var F=Tn([],[]),k=Tn(["vlist"],[F]);k.style.height=Ke(-h);var U=Tn(["vlist-s"],[new hi("")]);j=[Tn(["vlist-r"],[_,U]),Tn(["vlist-r"],[k])]}else j=[Tn(["vlist-r"],[_])];var W=Tn(["vlist-t"],j);return j.length===2&&W.classes.push("vlist-t2"),W.height=f,W.depth=-h,W},$Z=(e,t)=>{var r=Tn(["mspace"],[],t),n=Er(e,t);return r.style.marginRight=Ke(n),r},Rd=function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var s;return r==="textbf"&&n==="textit"?s="BoldItalic":r==="textbf"?s="Bold":r==="textit"?s="Italic":s="Regular",i+"-"+s},tC={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},rC={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},LZ=function(t,r){var[n,i,s]=rC[t],o=new ds(n),l=new Fa([o],{width:Ke(i),height:Ke(s),style:"width:"+Ke(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),u=QE(["overlay"],[l],r);return u.height=s,u.style.height=Ke(s),u.style.width=Ke(i),u},je={fontMap:tC,makeSymbol:Ei,mathsym:kZ,makeSpan:Tn,makeSvgSpan:QE,makeLineSpan:TZ,makeAnchor:PZ,makeFragment:eC,wrapFragment:NZ,makeVList:IZ,makeOrd:AZ,makeGlue:$Z,staticSvg:LZ,svgData:rC,tryCombineChars:BZ},wr={number:3,unit:"mu"},Is={number:4,unit:"mu"},oa={number:5,unit:"mu"},RZ={mord:{mop:wr,mbin:Is,mrel:oa,minner:wr},mop:{mord:wr,mop:wr,mrel:oa,minner:wr},mbin:{mord:Is,mop:Is,mopen:Is,minner:Is},mrel:{mord:oa,mop:oa,mopen:oa,minner:oa},mopen:{},mclose:{mop:wr,mbin:Is,mrel:oa,minner:wr},mpunct:{mord:wr,mop:wr,mrel:oa,mopen:wr,mclose:wr,mpunct:wr,minner:wr},minner:{mord:wr,mop:wr,mbin:Is,mrel:oa,mopen:wr,mpunct:wr,minner:wr}},zZ={mord:{mop:wr},mop:{mord:wr,mop:wr},mbin:{},mrel:{},mopen:{},mclose:{mop:wr},mpunct:{},minner:{mop:wr}},nC={},Gh={},Kh={};function et(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:o}=e,l={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},u=0;u<r.length;++u)nC[r[u]]=l;t&&(s&&(Gh[t]=s),o&&(Kh[t]=o))}function Co(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;et({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var Yh=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Or=function(t){return t.type==="ordgroup"?t.body:[t]},ja=je.makeSpan,UZ=["leftmost","mbin","mopen","mrel","mop","mpunct"],HZ=["rightmost","mrel","mclose","mpunct"],qZ={display:bt.DISPLAY,text:bt.TEXT,script:bt.SCRIPT,scriptscript:bt.SCRIPTSCRIPT},WZ={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},zr=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var s=[],o=0;o<t.length;o++){var l=It(t[o],r);if(l instanceof ud){var u=l.children;s.push(...u)}else s.push(l)}if(je.tryCombineChars(s),!n)return s;var c=r;if(t.length===1){var d=t[0];d.type==="sizing"?c=r.havingSize(d.size):d.type==="styling"&&(c=r.havingStyle(qZ[d.style]))}var h=ja([i[0]||"leftmost"],[],r),f=ja([i[1]||"rightmost"],[],r),p=n==="root";return Ry(s,(g,y)=>{var b=y.classes[0],x=g.classes[0];b==="mbin"&>.contains(HZ,x)?y.classes[0]="mord":x==="mbin"&>.contains(UZ,b)&&(g.classes[0]="mord")},{node:h},f,p),Ry(s,(g,y)=>{var b=V5(y),x=V5(g),v=b&&x?g.hasClass("mtight")?zZ[b][x]:RZ[b][x]:null;if(v)return je.makeGlue(v,c)},{node:h},f,p),s},Ry=function e(t,r,n,i,s){i&&t.push(i);for(var o=0;o<t.length;o++){var l=t[o],u=iC(l);if(u){e(u.children,r,n,null,s);continue}var c=!l.hasClass("mspace");if(c){var d=r(l,n.node);d&&(n.insertAfter?n.insertAfter(d):(t.unshift(d),o++))}c?n.node=l:s&&l.hasClass("newline")&&(n.node=ja(["leftmost"])),n.insertAfter=(h=>f=>{t.splice(h+1,0,f),o++})(o)}i&&t.pop()},iC=function(t){return t instanceof ud||t instanceof tg||t instanceof cd&&t.hasClass("enclosing")?t:null},VZ=function e(t,r){var n=iC(t);if(n){var i=n.children;if(i.length){if(r==="right")return e(i[i.length-1],"right");if(r==="left")return e(i[0],"left")}}return t},V5=function(t,r){return t?(r&&(t=VZ(t,r)),WZ[t.classes[0]]||null):null},N0=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return ja(r.concat(n))},It=function(t,r,n){if(!t)return ja();if(Gh[t.type]){var i=Gh[t.type](t,r);if(n&&r.size!==n.size){i=ja(r.sizingClasses(n),[i],r);var s=r.sizeMultiplier/n.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new He("Got group of unknown type: '"+t.type+"'")};function zd(e,t){var r=ja(["base"],e,t),n=ja(["strut"]);return n.style.height=Ke(r.height+r.depth),r.depth&&(n.style.verticalAlign=Ke(-r.depth)),r.children.unshift(n),r}function G5(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=zr(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var s=[],o=[],l=0;l<n.length;l++)if(o.push(n[l]),n[l].hasClass("mbin")||n[l].hasClass("mrel")||n[l].hasClass("allowbreak")){for(var u=!1;l<n.length-1&&n[l+1].hasClass("mspace")&&!n[l+1].hasClass("newline");)l++,o.push(n[l]),n[l].hasClass("nobreak")&&(u=!0);u||(s.push(zd(o,t)),o=[])}else n[l].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(zd(o,t)),o=[]),s.push(n[l]));o.length>0&&s.push(zd(o,t));var c;r?(c=zd(zr(r,t,!0)),c.classes=["tag"],s.push(c)):i&&s.push(i);var d=ja(["katex-html"],s);if(d.setAttribute("aria-hidden","true"),c){var h=c.children[0];h.style.height=Ke(d.height+d.depth),d.depth&&(h.style.verticalAlign=Ke(-d.depth))}return d}function aC(e){return new ud(e)}class Xn{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=cs(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof qi&&this.children[n+1]instanceof qi){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof qi;)i+=this.children[++n].toText();t.appendChild(new qi(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=gt.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+gt.escape(cs(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class qi{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return gt.escape(this.toText())}toText(){return this.text}}class GZ{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Ke(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Ke(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var ze={MathNode:Xn,TextNode:qi,SpaceNode:GZ,newDocumentFragment:aC},fi=function(t,r,n){return or[r][t]&&or[r][t].replace&&t.charCodeAt(0)!==55349&&!(JE.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=or[r][t].replace),new ze.TextNode(t)},ng=function(t){return t.length===1?t[0]:new ze.MathNode("mrow",t)},ig=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var s=t.text;if(gt.contains(["\\imath","\\jmath"],s))return null;or[i][s]&&or[i][s].replace&&(s=or[i][s].replace);var o=je.fontMap[n].fontName;return eg(s,o,i)?je.fontMap[n].variant:null};function Jp(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof qi&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof qi&&r.text===","}else return!1}var Un=function(t,r,n){if(t.length===1){var i=ir(t[0],r);return n&&i instanceof Xn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],o,l=0;l<t.length;l++){var u=ir(t[l],r);if(u instanceof Xn&&o instanceof Xn){if(u.type==="mtext"&&o.type==="mtext"&&u.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...u.children);continue}else if(u.type==="mn"&&o.type==="mn"){o.children.push(...u.children);continue}else if(Jp(u)&&o.type==="mn"){o.children.push(...u.children);continue}else if(u.type==="mn"&&Jp(o))u.children=[...o.children,...u.children],s.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(o.type==="mn"||Jp(o))){var c=u.children[0];c instanceof Xn&&c.type==="mn"&&(c.children=[...o.children,...c.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var d=o.children[0];if(d instanceof qi&&d.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var h=u.children[0];h instanceof qi&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),s.pop())}}}s.push(u),o=u}return s},hs=function(t,r,n){return ng(Un(t,r,n))},ir=function(t,r){if(!t)return new ze.MathNode("mrow");if(Kh[t.type]){var n=Kh[t.type](t,r);return n}else throw new He("Got group of unknown type: '"+t.type+"'")};function zy(e,t,r,n,i){var s=Un(e,r),o;s.length===1&&s[0]instanceof Xn&>.contains(["mrow","mtable"],s[0].type)?o=s[0]:o=new ze.MathNode("mrow",s);var l=new ze.MathNode("annotation",[new ze.TextNode(t)]);l.setAttribute("encoding","application/x-tex");var u=new ze.MathNode("semantics",[o,l]),c=new ze.MathNode("math",[u]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block");var d=i?"katex":"katex-mathml";return je.makeSpan([d],[c])}var sC=function(t){return new ma({style:t.displayMode?bt.DISPLAY:bt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},oC=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=je.makeSpan(n,[t])}return t},KZ=function(t,r,n){var i=sC(n),s;if(n.output==="mathml")return zy(t,r,i,n.displayMode,!0);if(n.output==="html"){var o=G5(t,i);s=je.makeSpan(["katex"],[o])}else{var l=zy(t,r,i,n.displayMode,!1),u=G5(t,i);s=je.makeSpan(["katex"],[l,u])}return oC(s,n)},YZ=function(t,r,n){var i=sC(n),s=G5(t,i),o=je.makeSpan(["katex"],[s]);return oC(o,n)},ZZ={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},XZ=function(t){var r=new ze.MathNode("mo",[new ze.TextNode(ZZ[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},JZ={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},QZ=function(t){return t.type==="ordgroup"?t.body.length:1},eX=function(t,r){function n(){var l=4e5,u=t.label.slice(1);if(gt.contains(["widehat","widecheck","widetilde","utilde"],u)){var c=t,d=QZ(c.base),h,f,p;if(d>5)u==="widehat"||u==="widecheck"?(h=420,l=2364,p=.42,f=u+"4"):(h=312,l=2340,p=.34,f="tilde4");else{var g=[1,1,2,2,3,3][d];u==="widehat"||u==="widecheck"?(l=[0,1062,2364,2364,2364][g],h=[0,239,300,360,420][g],p=[0,.24,.3,.3,.36,.42][g],f=u+g):(l=[0,600,1033,2339,2340][g],h=[0,260,286,306,312][g],p=[0,.26,.286,.3,.306,.34][g],f="tilde"+g)}var y=new ds(f),b=new Fa([y],{width:"100%",height:Ke(p),viewBox:"0 0 "+l+" "+h,preserveAspectRatio:"none"});return{span:je.makeSvgSpan([],[b],r),minWidth:0,height:p}}else{var x=[],v=JZ[u],[E,_,j]=v,F=j/1e3,k=E.length,U,W;if(k===1){var K=v[3];U=["hide-tail"],W=[K]}else if(k===2)U=["halfarrow-left","halfarrow-right"],W=["xMinYMin","xMaxYMin"];else if(k===3)U=["brace-left","brace-center","brace-right"],W=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
- `+k+" children.");for(var $=0;$<k;$++){var O=new ds(E[$]),R=new Fa([O],{width:"400em",height:Ke(F),viewBox:"0 0 "+l+" "+j,preserveAspectRatio:W[$]+" slice"}),z=je.makeSvgSpan([U[$]],[R],r);if(k===1)return{span:z,minWidth:_,height:F};z.style.height=Ke(F),x.push(z)}return{span:je.makeSpan(["stretchy"],x,r),minWidth:_,height:F}}}var{span:i,minWidth:s,height:o}=n();return i.height=o,i.style.height=Ke(o),s>0&&(i.style.minWidth=Ke(s)),i},tX=function(t,r,n,i,s){var o,l=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(o=je.makeSpan(["stretchy",r],[],s),r==="fbox"){var u=s.color&&s.getColor();u&&(o.style.borderColor=u)}}else{var c=[];/^[bx]cancel$/.test(r)&&c.push(new q5({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&c.push(new q5({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new Fa(c,{width:"100%",height:Ke(l)});o=je.makeSvgSpan([],[d],s)}return o.height=l,o.style.height=Ke(l),o},_a={encloseSpan:tX,mathMLnode:XZ,svgSpan:eX};function _t(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function ag(e){var t=Q2(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Q2(e){return e&&(e.type==="atom"||jZ.hasOwnProperty(e.type))?e:null}var sg=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=_t(e.base,"accent"),r=n.base,e.base=r,i=SZ(It(e,t)),e.base=n):(n=_t(e,"accent"),r=n.base);var s=It(r,t.havingCrampedStyle()),o=n.isShifty&>.isCharacterBox(r),l=0;if(o){var u=gt.getBaseElem(r),c=It(u,t.havingCrampedStyle());l=Py(c).skew}var d=n.label==="\\c",h=d?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),f;if(n.isStretchy)f=_a.svgSpan(n,t),f=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+Ke(2*l)+")",marginLeft:Ke(2*l)}:void 0}]},t);else{var p,g;n.label==="\\vec"?(p=je.staticSvg("vec",t),g=je.svgData.vec[1]):(p=je.makeOrd({mode:n.mode,text:n.label},t,"textord"),p=Py(p),p.italic=0,g=p.width,d&&(h+=p.depth)),f=je.makeSpan(["accent-body"],[p]);var y=n.label==="\\textcircled";y&&(f.classes.push("accent-full"),h=s.height);var b=l;y||(b-=g/2),f.style.left=Ke(b),n.label==="\\textcircled"&&(f.style.top=".2em"),f=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-h},{type:"elem",elem:f}]},t)}var x=je.makeSpan(["mord","accent"],[f],t);return i?(i.children[0]=x,i.height=Math.max(x.height,i.height),i.classes[0]="mord",i):x},lC=(e,t)=>{var r=e.isStretchy?_a.mathMLnode(e.label):new ze.MathNode("mo",[fi(e.label,e.mode)]),n=new ze.MathNode("mover",[ir(e.base,t),r]);return n.setAttribute("accent","true"),n},rX=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));et({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Yh(t[0]),n=!rX.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:sg,mathmlBuilder:lC});et({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:sg,mathmlBuilder:lC});et({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=It(e.base,t),n=_a.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,s=je.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},t);return je.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var r=_a.mathMLnode(e.label),n=new ze.MathNode("munder",[ir(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Ud=e=>{var t=new ze.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};et({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=je.wrapFragment(It(e.body,n,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var o;e.below&&(n=t.havingStyle(r.sub()),o=je.wrapFragment(It(e.below,n,t),t),o.classes.push(s+"-arrow-pad"));var l=_a.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*l.height,c=-t.fontMetrics().axisHeight-.5*l.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(c-=i.depth);var d;if(o){var h=-t.fontMetrics().axisHeight+o.height+.5*l.height+.111;d=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:l,shift:u},{type:"elem",elem:o,shift:h}]},t)}else d=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:l,shift:u}]},t);return d.children[0].children[0].children[1].classes.push("svg-align"),je.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var r=_a.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=Ud(ir(e.body,t));if(e.below){var s=Ud(ir(e.below,t));n=new ze.MathNode("munderover",[r,s,i])}else n=new ze.MathNode("mover",[r,i])}else if(e.below){var o=Ud(ir(e.below,t));n=new ze.MathNode("munder",[r,o])}else n=Ud(),n=new ze.MathNode("mover",[r,n]);return n}});var nX=je.makeSpan;function uC(e,t){var r=zr(e.body,t,!0);return nX([e.mclass],r,t)}function cC(e,t){var r,n=Un(e.body,t);return e.mclass==="minner"?r=new ze.MathNode("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new ze.MathNode("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new ze.MathNode("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}et({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Or(i),isCharacterBox:gt.isCharacterBox(i)}},htmlBuilder:uC,mathmlBuilder:cC});var ef=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};et({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:ef(t[0]),body:Or(t[1]),isCharacterBox:gt.isCharacterBox(t[1])}}});et({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],s=t[0],o;n!=="\\stackrel"?o=ef(i):o="mrel";var l={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Or(i)},u={type:"supsub",mode:s.mode,base:l,sup:n==="\\underset"?null:s,sub:n==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:o,body:[u],isCharacterBox:gt.isCharacterBox(u)}},htmlBuilder:uC,mathmlBuilder:cC});et({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:ef(t[0]),body:Or(t[0])}},htmlBuilder(e,t){var r=zr(e.body,t,!0),n=je.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Un(e.body,t),n=new ze.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var iX={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Uy=()=>({type:"styling",body:[],mode:"math",style:"display"}),Hy=e=>e.type==="textord"&&e.text==="@",aX=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function sX(e,t,r){var n=iX[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:n,mode:"math",family:"rel"},o=r.callFunction("\\Big",[s],[]),l=r.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,o,l]};return r.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function oX(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new He("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],s=0;s<t.length;s++){for(var o=t[s],l=Uy(),u=0;u<o.length;u++)if(!Hy(o[u]))l.body.push(o[u]);else{n.push(l),u+=1;var c=ag(o[u]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(c)>-1))if("<>AV".indexOf(c)>-1)for(var h=0;h<2;h++){for(var f=!0,p=u+1;p<o.length;p++){if(aX(o[p],c)){f=!1,u=p;break}if(Hy(o[p]))throw new He("Missing a "+c+" character to complete a CD arrow.",o[p]);d[h].body.push(o[p])}if(f)throw new He("Missing a "+c+" character to complete a CD arrow.",o[u])}else throw new He('Expected one of "<>AV=|." after @',o[u]);var g=sX(c,d,e),y={type:"styling",body:[g],mode:"math",style:"display"};n.push(y),l=Uy()}s%2===0?n.push(l):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var b=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}et({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=je.wrapFragment(It(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Ke(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new ze.MathNode("mrow",[ir(e.label,t)]);return r=new ze.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new ze.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});et({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=je.wrapFragment(It(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new ze.MathNode("mrow",[ir(e.fragment,t)])}});et({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=_t(t[0],"ordgroup"),i=n.body,s="",o=0;o<i.length;o++){var l=_t(i[o],"textord");s+=l.text}var u=parseInt(s),c;if(isNaN(u))throw new He("\\@char has non-numeric argument "+s);if(u<0||u>=1114111)throw new He("\\@char with invalid code point "+s);return u<=65535?c=String.fromCharCode(u):(u-=65536,c=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:r.mode,text:c}}});var dC=(e,t)=>{var r=zr(e.body,t.withColor(e.color),!1);return je.makeFragment(r)},hC=(e,t)=>{var r=Un(e.body,t.withColor(e.color)),n=new ze.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};et({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=_t(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:Or(i)}},htmlBuilder:dC,mathmlBuilder:hC});et({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=_t(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var s=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:s}},htmlBuilder:dC,mathmlBuilder:hC});et({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,s=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:s,size:i&&_t(i,"size").value}},htmlBuilder(e,t){var r=je.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Ke(Er(e.size,t)))),r},mathmlBuilder(e,t){var r=new ze.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Ke(Er(e.size,t)))),r}});var K5={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},fC=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new He("Expected a control sequence",e);return t},lX=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},pC=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};et({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(K5[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=K5[n.text]),_t(t.parseFunction(),"internal");throw new He("Invalid token after macro prefix",n)}});et({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new He("Expected a control sequence",n);for(var s=0,o,l=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),l[s].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new He('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new He('Argument number "'+n.text+'" out of order');s++,l.push([])}else{if(n.text==="EOF")throw new He("Expected a macro definition");l[s].push(n.text)}var{tokens:u}=t.gullet.consumeArg();return o&&u.unshift(o),(r==="\\edef"||r==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:s,delimiters:l},r===K5[r]),{type:"internal",mode:t.mode}}});et({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=fC(t.gullet.popToken());t.gullet.consumeSpaces();var i=lX(t);return pC(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});et({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=fC(t.gullet.popToken()),i=t.gullet.popToken(),s=t.gullet.popToken();return pC(t,n,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Au=function(t,r,n){var i=or.math[t]&&or.math[t].replace,s=eg(i||t,r,n);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return s},og=function(t,r,n,i){var s=n.havingBaseStyle(r),o=je.makeSpan(i.concat(s.sizingClasses(n)),[t],n),l=s.sizeMultiplier/n.sizeMultiplier;return o.height*=l,o.depth*=l,o.maxFontSize=s.sizeMultiplier,o},mC=function(t,r,n){var i=r.havingBaseStyle(n),s=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Ke(s),t.height-=s,t.depth+=s},uX=function(t,r,n,i,s,o){var l=je.makeSymbol(t,"Main-Regular",s,i),u=og(l,r,i,o);return n&&mC(u,i,r),u},cX=function(t,r,n,i){return je.makeSymbol(t,"Size"+r+"-Regular",n,i)},gC=function(t,r,n,i,s,o){var l=cX(t,r,s,i),u=og(je.makeSpan(["delimsizing","size"+r],[l],i),bt.TEXT,i,o);return n&&mC(u,i,bt.TEXT),u},Qp=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=je.makeSpan(["delimsizinginner",i],[je.makeSpan([],[je.makeSymbol(t,r,n)])]);return{type:"elem",elem:s}},em=function(t,r,n){var i=Hi["Size4-Regular"][t.charCodeAt(0)]?Hi["Size4-Regular"][t.charCodeAt(0)][4]:Hi["Size1-Regular"][t.charCodeAt(0)][4],s=new ds("inner",gZ(t,Math.round(1e3*r))),o=new Fa([s],{width:Ke(i),height:Ke(r),style:"width:"+Ke(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),l=je.makeSvgSpan([],[o],n);return l.height=r,l.style.height=Ke(r),l.style.width=Ke(i),{type:"elem",elem:l}},Y5=.008,Hd={type:"kern",size:-1*Y5},dX=["|","\\lvert","\\rvert","\\vert"],hX=["\\|","\\lVert","\\rVert","\\Vert"],yC=function(t,r,n,i,s,o){var l,u,c,d,h="",f=0;l=c=d=t,u=null;var p="Size1-Regular";t==="\\uparrow"?c=d="⏐":t==="\\Uparrow"?c=d="‖":t==="\\downarrow"?l=c="⏐":t==="\\Downarrow"?l=c="‖":t==="\\updownarrow"?(l="\\uparrow",c="⏐",d="\\downarrow"):t==="\\Updownarrow"?(l="\\Uparrow",c="‖",d="\\Downarrow"):gt.contains(dX,t)?(c="∣",h="vert",f=333):gt.contains(hX,t)?(c="∥",h="doublevert",f=556):t==="["||t==="\\lbrack"?(l="⎡",c="⎢",d="⎣",p="Size4-Regular",h="lbrack",f=667):t==="]"||t==="\\rbrack"?(l="⎤",c="⎥",d="⎦",p="Size4-Regular",h="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(c=l="⎢",d="⎣",p="Size4-Regular",h="lfloor",f=667):t==="\\lceil"||t==="⌈"?(l="⎡",c=d="⎢",p="Size4-Regular",h="lceil",f=667):t==="\\rfloor"||t==="⌋"?(c=l="⎥",d="⎦",p="Size4-Regular",h="rfloor",f=667):t==="\\rceil"||t==="⌉"?(l="⎤",c=d="⎥",p="Size4-Regular",h="rceil",f=667):t==="("||t==="\\lparen"?(l="⎛",c="⎜",d="⎝",p="Size4-Regular",h="lparen",f=875):t===")"||t==="\\rparen"?(l="⎞",c="⎟",d="⎠",p="Size4-Regular",h="rparen",f=875):t==="\\{"||t==="\\lbrace"?(l="⎧",u="⎨",d="⎩",c="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(l="⎫",u="⎬",d="⎭",c="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(l="⎧",d="⎩",c="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(l="⎫",d="⎭",c="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(l="⎧",d="⎭",c="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(l="⎫",d="⎩",c="⎪",p="Size4-Regular");var g=Au(l,p,s),y=g.height+g.depth,b=Au(c,p,s),x=b.height+b.depth,v=Au(d,p,s),E=v.height+v.depth,_=0,j=1;if(u!==null){var F=Au(u,p,s);_=F.height+F.depth,j=2}var k=y+E+_,U=Math.max(0,Math.ceil((r-k)/(j*x))),W=k+U*j*x,K=i.fontMetrics().axisHeight;n&&(K*=i.sizeMultiplier);var $=W/2-K,O=[];if(h.length>0){var R=W-y-E,z=Math.round(W*1e3),H=yZ(h,Math.round(R*1e3)),B=new ds(h,H),Y=(f/1e3).toFixed(3)+"em",P=(z/1e3).toFixed(3)+"em",le=new Fa([B],{width:Y,height:P,viewBox:"0 0 "+f+" "+z}),be=je.makeSvgSpan([],[le],i);be.height=z/1e3,be.style.width=Y,be.style.height=P,O.push({type:"elem",elem:be})}else{if(O.push(Qp(d,p,s)),O.push(Hd),u===null){var V=W-y-E+2*Y5;O.push(em(c,V,i))}else{var te=(W-y-E-_)/2+2*Y5;O.push(em(c,te,i)),O.push(Hd),O.push(Qp(u,p,s)),O.push(Hd),O.push(em(c,te,i))}O.push(Hd),O.push(Qp(l,p,s))}var de=i.havingBaseStyle(bt.TEXT),ee=je.makeVList({positionType:"bottom",positionData:$,children:O},de);return og(je.makeSpan(["delimsizing","mult"],[ee],de),bt.TEXT,i,o)},tm=80,rm=.08,nm=function(t,r,n,i,s){var o=mZ(t,i,n),l=new ds(t,o),u=new Fa([l],{width:"400em",height:Ke(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return je.makeSvgSpan(["hide-tail"],[u],s)},fX=function(t,r){var n=r.havingBaseSizing(),i=wC("\\surd",t*n.sizeMultiplier,vC,n),s=n.sizeMultiplier,o=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),l,u=0,c=0,d=0,h;return i.type==="small"?(d=1e3+1e3*o+tm,t<1?s=1:t<1.4&&(s=.7),u=(1+o+rm)/s,c=(1+o)/s,l=nm("sqrtMain",u,d,o,r),l.style.minWidth="0.853em",h=.833/s):i.type==="large"?(d=(1e3+tm)*Uu[i.size],c=(Uu[i.size]+o)/s,u=(Uu[i.size]+o+rm)/s,l=nm("sqrtSize"+i.size,u,d,o,r),l.style.minWidth="1.02em",h=1/s):(u=t+o+rm,c=t+o,d=Math.floor(1e3*t+o)+tm,l=nm("sqrtTall",u,d,o,r),l.style.minWidth="0.742em",h=1.056),l.height=c,l.style.height=Ke(u),{span:l,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+o)*s}},bC=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],pX=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],xC=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Uu=[0,1.2,1.8,2.4,3],mX=function(t,r,n,i,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),gt.contains(bC,t)||gt.contains(xC,t))return gC(t,r,!1,n,i,s);if(gt.contains(pX,t))return yC(t,Uu[r],!1,n,i,s);throw new He("Illegal delimiter: '"+t+"'")},gX=[{type:"small",style:bt.SCRIPTSCRIPT},{type:"small",style:bt.SCRIPT},{type:"small",style:bt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],yX=[{type:"small",style:bt.SCRIPTSCRIPT},{type:"small",style:bt.SCRIPT},{type:"small",style:bt.TEXT},{type:"stack"}],vC=[{type:"small",style:bt.SCRIPTSCRIPT},{type:"small",style:bt.SCRIPT},{type:"small",style:bt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],bX=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},wC=function(t,r,n,i){for(var s=Math.min(2,3-i.style.size),o=s;o<n.length&&n[o].type!=="stack";o++){var l=Au(t,bX(n[o]),"math"),u=l.height+l.depth;if(n[o].type==="small"){var c=i.havingBaseStyle(n[o].style);u*=c.sizeMultiplier}if(u>r)return n[o]}return n[n.length-1]},EC=function(t,r,n,i,s,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var l;gt.contains(xC,t)?l=gX:gt.contains(bC,t)?l=vC:l=yX;var u=wC(t,r,l,i);return u.type==="small"?uX(t,u.style,n,i,s,o):u.type==="large"?gC(t,u.size,n,i,s,o):yC(t,r,n,i,s,o)},xX=function(t,r,n,i,s,o){var l=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,c=5/i.fontMetrics().ptPerEm,d=Math.max(r-l,n+l),h=Math.max(d/500*u,2*d-c);return EC(t,h,!0,i,s,o)},va={sqrtImage:fX,sizedDelim:mX,sizeToMaxHeight:Uu,customSizedDelim:EC,leftRightDelim:xX},qy={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},vX=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function tf(e,t){var r=Q2(e);if(r&>.contains(vX,r.text))return r;throw r?new He("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new He("Invalid delimiter type '"+e.type+"'",e)}et({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=tf(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:qy[e.funcName].size,mclass:qy[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?je.makeSpan([e.mclass]):va.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(fi(e.delim,e.mode));var r=new ze.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Ke(va.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Wy(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}et({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new He("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:tf(t[0],e).text,color:r}}});et({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=tf(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var s=_t(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{Wy(e);for(var r=zr(e.body,t,!0,["mopen","mclose"]),n=0,i=0,s=!1,o=0;o<r.length;o++)r[o].isMiddle?s=!0:(n=Math.max(r[o].height,n),i=Math.max(r[o].depth,i));n*=t.sizeMultiplier,i*=t.sizeMultiplier;var l;if(e.left==="."?l=N0(t,["mopen"]):l=va.leftRightDelim(e.left,n,i,t,e.mode,["mopen"]),r.unshift(l),s)for(var u=1;u<r.length;u++){var c=r[u],d=c.isMiddle;d&&(r[u]=va.leftRightDelim(d.delim,n,i,d.options,e.mode,[]))}var h;if(e.right===".")h=N0(t,["mclose"]);else{var f=e.rightColor?t.withColor(e.rightColor):t;h=va.leftRightDelim(e.right,n,i,f,e.mode,["mclose"])}return r.push(h),je.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{Wy(e);var r=Un(e.body,t);if(e.left!=="."){var n=new ze.MathNode("mo",[fi(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new ze.MathNode("mo",[fi(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return ng(r)}});et({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=tf(t[0],e);if(!e.parser.leftrightDepth)throw new He("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=N0(t,[]);else{r=va.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?fi("|","text"):fi(e.delim,e.mode),n=new ze.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var lg=(e,t)=>{var r=je.wrapFragment(It(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,s,o=0,l=gt.isCharacterBox(e.body);if(n==="sout")s=je.makeSpan(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var u=Er({number:.6,unit:"pt"},t),c=Er({number:.35,unit:"ex"},t),d=t.havingBaseSizing();i=i/d.sizeMultiplier;var h=r.height+r.depth+u+c;r.style.paddingLeft=Ke(h/2+u);var f=Math.floor(1e3*h*i),p=fZ(f),g=new Fa([new ds("phase",p)],{width:"400em",height:Ke(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});s=je.makeSvgSpan(["hide-tail"],[g],t),s.style.height=Ke(h),o=r.depth+u+c}else{/cancel/.test(n)?l||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var y=0,b=0,x=0;/box/.test(n)?(x=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(n==="colorbox"?0:x),b=y):n==="angl"?(x=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*x,b=Math.max(0,.25-r.depth)):(y=l?.2:0,b=y),s=_a.encloseSpan(r,n,y,b,t),/fbox|boxed|fcolorbox/.test(n)?(s.style.borderStyle="solid",s.style.borderWidth=Ke(x)):n==="angl"&&x!==.049&&(s.style.borderTopWidth=Ke(x),s.style.borderRightWidth=Ke(x)),o=r.depth+b,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:r,shift:0}]},t);else{var E=/cancel|phase/.test(n)?["svg-align"]:[];v=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:E}]},t)}return/cancel/.test(n)&&(v.height=r.height,v.depth=r.depth),/cancel/.test(n)&&!l?je.makeSpan(["mord","cancel-lap"],[v],t):je.makeSpan(["mord"],[v],t)},ug=(e,t)=>{var r=0,n=new ze.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ir(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};et({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,s=_t(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,body:o}},htmlBuilder:lg,mathmlBuilder:ug});et({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,s=_t(t[0],"color-token").color,o=_t(t[1],"color-token").color,l=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:o,borderColor:s,body:l}},htmlBuilder:lg,mathmlBuilder:ug});et({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});et({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:lg,mathmlBuilder:ug});et({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var CC={};function ta(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:o}=e,l={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u<r.length;++u)CC[r[u]]=l;s&&(Gh[t]=s),o&&(Kh[t]=o)}var SC={};function L(e,t){SC[e]=t}function Vy(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var rf=e=>{var t=e.parser.settings;if(!t.displayMode)throw new He("{"+e.envName+"} can be used only in display mode.")};function cg(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function _s(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:s,arraystretch:o,colSeparationType:l,autoTag:u,singleRow:c,emptySingleRow:d,maxNumCols:h,leqno:f}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new He("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var g=[],y=[g],b=[],x=[],v=u!=null?[]:void 0;function E(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function _(){v&&(e.gullet.macros.get("\\df@tag")?(v.push(e.subparse([new Vi("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):v.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(E(),x.push(Vy(e));;){var j=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),j={type:"ordgroup",mode:e.mode,body:j},r&&(j={type:"styling",mode:e.mode,style:r,body:[j]}),g.push(j);var F=e.fetch().text;if(F==="&"){if(h&&g.length===h){if(c||l)throw new He("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(F==="\\end"){_(),g.length===1&&j.type==="styling"&&j.body[0].body.length===0&&(y.length>1||!d)&&y.pop(),x.length<y.length+1&&x.push([]);break}else if(F==="\\\\"){e.consume();var k=void 0;e.gullet.future().text!==" "&&(k=e.parseSizeGroup(!0)),b.push(k?k.value:null),_(),x.push(Vy(e)),g=[],y.push(g),E()}else throw new He("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:o,body:y,cols:s,rowGaps:b,hskipBeforeAndAfter:n,hLinesBeforeRow:x,colSeparationType:l,tags:v,leqno:f}}function dg(e){return e.slice(0,1)==="d"?"display":"text"}var ra=function(t,r){var n,i,s=t.body.length,o=t.hLinesBeforeRow,l=0,u=new Array(s),c=[],d=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),h=1/r.fontMetrics().ptPerEm,f=5*h;if(t.colSeparationType&&t.colSeparationType==="small"){var p=r.havingStyle(bt.SCRIPT).sizeMultiplier;f=.2778*(p/r.sizeMultiplier)}var g=t.colSeparationType==="CD"?Er({number:3,unit:"ex"},r):12*h,y=3*h,b=t.arraystretch*g,x=.7*b,v=.3*b,E=0;function _(ne){for(var ke=0;ke<ne.length;++ke)ke>0&&(E+=.25),c.push({pos:E,isDashed:ne[ke]})}for(_(o[0]),n=0;n<t.body.length;++n){var j=t.body[n],F=x,k=v;l<j.length&&(l=j.length);var U=new Array(j.length);for(i=0;i<j.length;++i){var W=It(j[i],r);k<W.depth&&(k=W.depth),F<W.height&&(F=W.height),U[i]=W}var K=t.rowGaps[n],$=0;K&&($=Er(K,r),$>0&&($+=v,k<$&&(k=$),$=0)),t.addJot&&(k+=y),U.height=F,U.depth=k,E+=F,U.pos=E,E+=k+$,u[n]=U,_(o[n+1])}var O=E/2+r.fontMetrics().axisHeight,R=t.cols||[],z=[],H,B,Y=[];if(t.tags&&t.tags.some(ne=>ne))for(n=0;n<s;++n){var P=u[n],le=P.pos-O,be=t.tags[n],V=void 0;be===!0?V=je.makeSpan(["eqn-num"],[],r):be===!1?V=je.makeSpan([],[],r):V=je.makeSpan([],zr(be,r,!0),r),V.depth=P.depth,V.height=P.height,Y.push({type:"elem",elem:V,shift:le})}for(i=0,B=0;i<l||B<R.length;++i,++B){for(var te=R[B]||{},de=!0;te.type==="separator";){if(de||(H=je.makeSpan(["arraycolsep"],[]),H.style.width=Ke(r.fontMetrics().doubleRuleSep),z.push(H)),te.separator==="|"||te.separator===":"){var ee=te.separator==="|"?"solid":"dashed",ie=je.makeSpan(["vertical-separator"],[],r);ie.style.height=Ke(E),ie.style.borderRightWidth=Ke(d),ie.style.borderRightStyle=ee,ie.style.margin="0 "+Ke(-d/2);var G=E-O;G&&(ie.style.verticalAlign=Ke(-G)),z.push(ie)}else throw new He("Invalid separator type: "+te.separator);B++,te=R[B]||{},de=!1}if(!(i>=l)){var N=void 0;(i>0||t.hskipBeforeAndAfter)&&(N=gt.deflt(te.pregap,f),N!==0&&(H=je.makeSpan(["arraycolsep"],[]),H.style.width=Ke(N),z.push(H)));var I=[];for(n=0;n<s;++n){var T=u[n],J=T[i];if(J){var ve=T.pos-O;J.depth=T.depth,J.height=T.height,I.push({type:"elem",elem:J,shift:ve})}}I=je.makeVList({positionType:"individualShift",children:I},r),I=je.makeSpan(["col-align-"+(te.align||"c")],[I]),z.push(I),(i<l-1||t.hskipBeforeAndAfter)&&(N=gt.deflt(te.postgap,f),N!==0&&(H=je.makeSpan(["arraycolsep"],[]),H.style.width=Ke(N),z.push(H)))}}if(u=je.makeSpan(["mtable"],z),c.length>0){for(var Z=je.makeLineSpan("hline",r,d),ge=je.makeLineSpan("hdashline",r,d),De=[{type:"elem",elem:u,shift:0}];c.length>0;){var Oe=c.pop(),ae=Oe.pos-O;Oe.isDashed?De.push({type:"elem",elem:ge,shift:ae}):De.push({type:"elem",elem:Z,shift:ae})}u=je.makeVList({positionType:"individualShift",children:De},r)}if(Y.length===0)return je.makeSpan(["mord"],[u],r);var we=je.makeVList({positionType:"individualShift",children:Y},r);return we=je.makeSpan(["tag"],[we],r),je.makeFragment([u,we])},wX={c:"center ",l:"left ",r:"right "},na=function(t,r){for(var n=[],i=new ze.MathNode("mtd",[],["mtr-glue"]),s=new ze.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var l=t.body[o],u=[],c=0;c<l.length;c++)u.push(new ze.MathNode("mtd",[ir(l[c],r)]));t.tags&&t.tags[o]&&(u.unshift(i),u.push(i),t.leqno?u.unshift(s):u.push(s)),n.push(new ze.MathNode("mtr",u))}var d=new ze.MathNode("mtable",n),h=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);d.setAttribute("rowspacing",Ke(h));var f="",p="";if(t.cols&&t.cols.length>0){var g=t.cols,y="",b=!1,x=0,v=g.length;g[0].type==="separator"&&(f+="top ",x=1),g[g.length-1].type==="separator"&&(f+="bottom ",v-=1);for(var E=x;E<v;E++)g[E].type==="align"?(p+=wX[g[E].align],b&&(y+="none "),b=!0):g[E].type==="separator"&&b&&(y+=g[E].separator==="|"?"solid ":"dashed ",b=!1);d.setAttribute("columnalign",p.trim()),/[sd]/.test(y)&&d.setAttribute("columnlines",y.trim())}if(t.colSeparationType==="align"){for(var _=t.cols||[],j="",F=1;F<_.length;F++)j+=F%2?"0em ":"1em ";d.setAttribute("columnspacing",j.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var k="",U=t.hLinesBeforeRow;f+=U[0].length>0?"left ":"",f+=U[U.length-1].length>0?"right ":"";for(var W=1;W<U.length-1;W++)k+=U[W].length===0?"none ":U[W][0]?"dashed ":"solid ";return/[sd]/.test(k)&&d.setAttribute("rowlines",k.trim()),f!==""&&(d=new ze.MathNode("menclose",[d]),d.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(d=new ze.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},FC=function(t,r){t.envName.indexOf("ed")===-1&&rf(t);var n=[],i=t.envName.indexOf("at")>-1?"alignat":"align",s=t.envName==="split",o=_s(t.parser,{cols:n,addJot:!0,autoTag:s?void 0:cg(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),l,u=0,c={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var d="",h=0;h<r[0].body.length;h++){var f=_t(r[0].body[h],"textord");d+=f.text}l=Number(d),u=l*2}var p=!u;o.body.forEach(function(x){for(var v=1;v<x.length;v+=2){var E=_t(x[v],"styling"),_=_t(E.body[0],"ordgroup");_.body.unshift(c)}if(p)u<x.length&&(u=x.length);else{var j=x.length/2;if(l<j)throw new He("Too many math in a row: "+("expected "+l+", but got "+j),x[0])}});for(var g=0;g<u;++g){var y="r",b=0;g%2===1?y="l":g>0&&p&&(b=1),n[g]={type:"align",align:y,pregap:b,postgap:0}}return o.colSeparationType=p?"align":"alignat",o};ta({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Q2(t[0]),n=r?[t[0]]:_t(t[0],"ordgroup").body,i=n.map(function(o){var l=ag(o),u=l.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new He("Unknown column alignment: "+u,o)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return _s(e.parser,s,dg(e.envName))},htmlBuilder:ra,mathmlBuilder:na});ta({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,"lcr".indexOf(r)===-1)throw new He("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var s=_s(e.parser,n,dg(e.envName)),o=Math.max(0,...s.body.map(l=>l.length));return s.cols=new Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:ra,mathmlBuilder:na});ta({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=_s(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:ra,mathmlBuilder:na});ta({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Q2(t[0]),n=r?[t[0]]:_t(t[0],"ordgroup").body,i=n.map(function(o){var l=ag(o),u=l.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new He("Unknown column alignment: "+u,o)});if(i.length>1)throw new He("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=_s(e.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new He("{subarray} can contain only one column");return s},htmlBuilder:ra,mathmlBuilder:na});ta({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=_s(e.parser,t,dg(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ra,mathmlBuilder:na});ta({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:FC,htmlBuilder:ra,mathmlBuilder:na});ta({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){gt.contains(["gather","gather*"],e.envName)&&rf(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:cg(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return _s(e.parser,t,"display")},htmlBuilder:ra,mathmlBuilder:na});ta({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:FC,htmlBuilder:ra,mathmlBuilder:na});ta({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){rf(e);var t={autoTag:cg(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return _s(e.parser,t,"display")},htmlBuilder:ra,mathmlBuilder:na});ta({type:"array",names:["CD"],props:{numArgs:0},handler(e){return rf(e),oX(e.parser)},htmlBuilder:ra,mathmlBuilder:na});L("\\nonumber","\\gdef\\@eqnsw{0}");L("\\notag","\\nonumber");et({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new He(e.funcName+" valid only within array environment")}});var Gy=CC;et({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new He("Invalid environment name",i);for(var s="",o=0;o<i.body.length;++o)s+=_t(i.body[o],"textord").text;if(n==="\\begin"){if(!Gy.hasOwnProperty(s))throw new He("No such environment: "+s,i);var l=Gy[s],{args:u,optArgs:c}=r.parseArguments("\\begin{"+s+"}",l),d={mode:r.mode,envName:s,parser:r},h=l.handler(d,u,c);r.expect("\\end",!1);var f=r.nextToken,p=_t(r.parseFunction(),"environment");if(p.name!==s)throw new He("Mismatch: \\begin{"+s+"} matched by \\end{"+p.name+"}",f);return h}return{type:"environment",mode:r.mode,name:s,nameGroup:i}}});var jC=(e,t)=>{var r=e.font,n=t.withFont(r);return It(e.body,n)},_C=(e,t)=>{var r=e.font,n=t.withFont(r);return ir(e.body,n)},Ky={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};et({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=Yh(t[0]),s=n;return s in Ky&&(s=Ky[s]),{type:"font",mode:r.mode,font:s.slice(1),body:i}},htmlBuilder:jC,mathmlBuilder:_C});et({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],i=gt.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:ef(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:i}}});et({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:s}=r,o=r.parseExpression(!0,i),l="math"+n.slice(1);return{type:"font",mode:s,font:l,body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:jC,mathmlBuilder:_C});var kC=(e,t)=>{var r=t;return e==="display"?r=r.id>=bt.SCRIPT.id?r.text():bt.DISPLAY:e==="text"&&r.size===bt.DISPLAY.size?r=bt.TEXT:e==="script"?r=bt.SCRIPT:e==="scriptscript"&&(r=bt.SCRIPTSCRIPT),r},hg=(e,t)=>{var r=kC(e.size,t.style),n=r.fracNum(),i=r.fracDen(),s;s=t.havingStyle(n);var o=It(e.numer,s,t);if(e.continued){var l=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;o.height=o.height<l?l:o.height,o.depth=o.depth<u?u:o.depth}s=t.havingStyle(i);var c=It(e.denom,s,t),d,h,f;e.hasBarLine?(e.barSize?(h=Er(e.barSize,t),d=je.makeLineSpan("frac-line",t,h)):d=je.makeLineSpan("frac-line",t),h=d.height,f=d.height):(d=null,h=0,f=t.fontMetrics().defaultRuleThickness);var p,g,y;r.size===bt.DISPLAY.size||e.size==="display"?(p=t.fontMetrics().num1,h>0?g=3*f:g=7*f,y=t.fontMetrics().denom1):(h>0?(p=t.fontMetrics().num2,g=f):(p=t.fontMetrics().num3,g=3*f),y=t.fontMetrics().denom2);var b;if(d){var v=t.fontMetrics().axisHeight;p-o.depth-(v+.5*h)<g&&(p+=g-(p-o.depth-(v+.5*h))),v-.5*h-(c.height-y)<g&&(y+=g-(v-.5*h-(c.height-y)));var E=-(v-.5*h);b=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:y},{type:"elem",elem:d,shift:E},{type:"elem",elem:o,shift:-p}]},t)}else{var x=p-o.depth-(c.height-y);x<g&&(p+=.5*(g-x),y+=.5*(g-x)),b=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:y},{type:"elem",elem:o,shift:-p}]},t)}s=t.havingStyle(r),b.height*=s.sizeMultiplier/t.sizeMultiplier,b.depth*=s.sizeMultiplier/t.sizeMultiplier;var _;r.size===bt.DISPLAY.size?_=t.fontMetrics().delim1:r.size===bt.SCRIPTSCRIPT.size?_=t.havingStyle(bt.SCRIPT).fontMetrics().delim2:_=t.fontMetrics().delim2;var j,F;return e.leftDelim==null?j=N0(t,["mopen"]):j=va.customSizedDelim(e.leftDelim,_,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?F=je.makeSpan([]):e.rightDelim==null?F=N0(t,["mclose"]):F=va.customSizedDelim(e.rightDelim,_,!0,t.havingStyle(r),e.mode,["mclose"]),je.makeSpan(["mord"].concat(s.sizingClasses(t)),[j,je.makeSpan(["mfrac"],[b]),F],t)},fg=(e,t)=>{var r=new ze.MathNode("mfrac",[ir(e.numer,t),ir(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=Er(e.barSize,t);r.setAttribute("linethickness",Ke(n))}var i=kC(e.size,t.style);if(i.size!==t.style.size){r=new ze.MathNode("mstyle",[r]);var s=i.size===bt.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",s),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var l=new ze.MathNode("mo",[new ze.TextNode(e.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(r),e.rightDelim!=null){var u=new ze.MathNode("mo",[new ze.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),o.push(u)}return ng(o)}return r};et({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],s=t[1],o,l=null,u=null,c="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,l="(",u=")";break;case"\\\\bracefrac":o=!1,l="\\{",u="\\}";break;case"\\\\brackfrac":o=!1,l="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:s,hasBarLine:o,leftDelim:l,rightDelim:u,size:c,barSize:null}},htmlBuilder:hg,mathmlBuilder:fg});et({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],s=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:i,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});et({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var Yy=["display","text","script","scriptscript"],Zy=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};et({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],s=Yh(t[0]),o=s.type==="atom"&&s.family==="open"?Zy(s.text):null,l=Yh(t[1]),u=l.type==="atom"&&l.family==="close"?Zy(l.text):null,c=_t(t[2],"size"),d,h=null;c.isBlank?d=!0:(h=c.value,d=h.number>0);var f="auto",p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var g=_t(p.body[0],"textord");f=Yy[Number(g.text)]}}else p=_t(p,"textord"),f=Yy[Number(p.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:h,leftDelim:o,rightDelim:u,size:f}},htmlBuilder:hg,mathmlBuilder:fg});et({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:_t(t[0],"size").value,token:i}}});et({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],s=JY(_t(t[1],"infix").size),o=t[2],l=s.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:o,continued:!1,hasBarLine:l,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:hg,mathmlBuilder:fg});var OC=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?It(e.sup,t.havingStyle(r.sup()),t):It(e.sub,t.havingStyle(r.sub()),t),i=_t(e.base,"horizBrace")):i=_t(e,"horizBrace");var s=It(i.base,t.havingBaseStyle(bt.DISPLAY)),o=_a.svgSpan(i,t),l;if(i.isOver?(l=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t),l.children[0].children[0].children[1].classes.push("svg-align")):(l=je.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t),l.children[0].children[0].children[0].classes.push("svg-align")),n){var u=je.makeSpan(["mord",i.isOver?"mover":"munder"],[l],t);i.isOver?l=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},t):l=je.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return je.makeSpan(["mord",i.isOver?"mover":"munder"],[l],t)},EX=(e,t)=>{var r=_a.mathMLnode(e.label);return new ze.MathNode(e.isOver?"mover":"munder",[ir(e.base,t),r])};et({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:OC,mathmlBuilder:EX});et({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=_t(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:Or(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=zr(e.body,t,!1);return je.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=hs(e.body,t);return r instanceof Xn||(r=new Xn("mrow",[r])),r.setAttribute("href",e.href),r}});et({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=_t(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],s=0;s<n.length;s++){var o=n[s];o==="~"&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var l={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:Or(l)}}});et({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Or(t[0])}},htmlBuilder(e,t){var r=zr(e.body,t,!1);return je.makeFragment(r)},mathmlBuilder(e,t){return new ze.MathNode("mrow",Un(e.body,t))}});et({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:i}=e,s=_t(t[0],"raw").string,o=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,u={};switch(n){case"\\htmlClass":u.class=s,l={command:"\\htmlClass",class:s};break;case"\\htmlId":u.id=s,l={command:"\\htmlId",id:s};break;case"\\htmlStyle":u.style=s,l={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var c=s.split(","),d=0;d<c.length;d++){var h=c[d].split("=");if(h.length!==2)throw new He("Error parsing key-value for \\htmlData");u["data-"+h[0].trim()]=h[1].trim()}l={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(l)?{type:"html",mode:r.mode,attributes:u,body:Or(o)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=zr(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=je.makeSpan(n,r,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&i.setAttribute(s,e.attributes[s]);return i},mathmlBuilder:(e,t)=>hs(e.body,t)});et({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Or(t[0]),mathml:Or(t[1])}},htmlBuilder:(e,t)=>{var r=zr(e.html,t,!1);return je.makeFragment(r)},mathmlBuilder:(e,t)=>hs(e.mathml,t)});var im=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new He("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!KE(n))throw new He("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};et({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(r[0])for(var u=_t(r[0],"raw").string,c=u.split(","),d=0;d<c.length;d++){var h=c[d].split("=");if(h.length===2){var f=h[1].trim();switch(h[0].trim()){case"alt":l=f;break;case"width":i=im(f);break;case"height":s=im(f);break;case"totalheight":o=im(f);break;default:throw new He("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var p=_t(t[0],"url").url;return l===""&&(l=p,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:n.mode,alt:l,width:i,height:s,totalheight:o,src:p}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Er(e.height,t),n=0;e.totalheight.number>0&&(n=Er(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=Er(e.width,t));var s={height:Ke(r+n)};i>0&&(s.width=Ke(i)),n>0&&(s.verticalAlign=Ke(-n));var o=new EZ(e.src,e.alt,s);return o.height=r,o.depth=n,o},mathmlBuilder:(e,t)=>{var r=new ze.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=Er(e.height,t),i=0;if(e.totalheight.number>0&&(i=Er(e.totalheight,t)-n,r.setAttribute("valign",Ke(-i))),r.setAttribute("height",Ke(n+i)),e.width.number>0){var s=Er(e.width,t);r.setAttribute("width",Ke(s))}return r.setAttribute("src",e.src),r}});et({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=_t(t[0],"size");if(r.settings.strict){var s=n[1]==="m",o=i.value.unit==="mu";s?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return je.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=Er(e.dimension,t);return new ze.SpaceNode(r)}});et({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=je.makeSpan([],[It(e.body,t)]),r=je.makeSpan(["inner"],[r],t)):r=je.makeSpan(["inner"],[It(e.body,t)]);var n=je.makeSpan(["fix"],[]),i=je.makeSpan([e.alignment],[r,n],t),s=je.makeSpan(["strut"]);return s.style.height=Ke(i.height+i.depth),i.depth&&(s.style.verticalAlign=Ke(-i.depth)),i.children.unshift(s),i=je.makeSpan(["thinbox"],[i],t),je.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new ze.MathNode("mpadded",[ir(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});et({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var s=r==="\\("?"\\)":"$",o=n.parseExpression(!1,s);return n.expect(s),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:o}}});et({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new He("Mismatched "+e.funcName)}});var Xy=(e,t)=>{switch(t.style.size){case bt.DISPLAY.size:return e.display;case bt.TEXT.size:return e.text;case bt.SCRIPT.size:return e.script;case bt.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};et({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Or(t[0]),text:Or(t[1]),script:Or(t[2]),scriptscript:Or(t[3])}},htmlBuilder:(e,t)=>{var r=Xy(e,t),n=zr(r,t,!1);return je.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=Xy(e,t);return hs(r,t)}});var AC=(e,t,r,n,i,s,o)=>{e=je.makeSpan([],[e]);var l=r&>.isCharacterBox(r),u,c;if(t){var d=It(t,n.havingStyle(i.sup()),n);c={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=It(r,n.havingStyle(i.sub()),n);u={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(c&&u){var p=n.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+o;f=je.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:Ke(-s)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Ke(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(u){var g=e.height-o;f=je.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:Ke(-s)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},n)}else if(c){var y=e.depth+o;f=je.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Ke(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return e;var b=[f];if(u&&s!==0&&!l){var x=je.makeSpan(["mspace"],[],n);x.style.marginRight=Ke(s),b.unshift(x)}return je.makeSpan(["mop","op-limits"],b,n)},DC=["\\smallint"],Jl=(e,t)=>{var r,n,i=!1,s;e.type==="supsub"?(r=e.sup,n=e.sub,s=_t(e.base,"op"),i=!0):s=_t(e,"op");var o=t.style,l=!1;o.size===bt.DISPLAY.size&&s.symbol&&!gt.contains(DC,s.name)&&(l=!0);var u;if(s.symbol){var c=l?"Size2-Regular":"Size1-Regular",d="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(d=s.name.slice(1),s.name=d==="oiint"?"\\iint":"\\iiint"),u=je.makeSymbol(s.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),d.length>0){var h=u.italic,f=je.staticSvg(d+"Size"+(l?"2":"1"),t);u=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:f,shift:l?.08:0}]},t),s.name="\\"+d,u.classes.unshift("mop"),u.italic=h}}else if(s.body){var p=zr(s.body,t,!0);p.length===1&&p[0]instanceof hi?(u=p[0],u.classes[0]="mop"):u=je.makeSpan(["mop"],p,t)}else{for(var g=[],y=1;y<s.name.length;y++)g.push(je.mathsym(s.name[y],s.mode,t));u=je.makeSpan(["mop"],g,t)}var b=0,x=0;return(u instanceof hi||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(b=(u.height-u.depth)/2-t.fontMetrics().axisHeight,x=u.italic),i?AC(u,r,n,t,o,x,b):(b&&(u.style.position="relative",u.style.top=Ke(b)),u)},dd=(e,t)=>{var r;if(e.symbol)r=new Xn("mo",[fi(e.name,e.mode)]),gt.contains(DC,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Xn("mo",Un(e.body,t));else{r=new Xn("mi",[new qi(e.name.slice(1))]);var n=new Xn("mo",[fi("","text")]);e.parentIsSupSub?r=new Xn("mrow",[r,n]):r=aC([r,n])}return r},CX={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};et({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=CX[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Jl,mathmlBuilder:dd});et({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Or(n)}},htmlBuilder:Jl,mathmlBuilder:dd});var SX={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};et({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Jl,mathmlBuilder:dd});et({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Jl,mathmlBuilder:dd});et({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=SX[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Jl,mathmlBuilder:dd});var BC=(e,t)=>{var r,n,i=!1,s;e.type==="supsub"?(r=e.sup,n=e.sub,s=_t(e.base,"operatorname"),i=!0):s=_t(e,"operatorname");var o;if(s.body.length>0){for(var l=s.body.map(h=>{var f=h.text;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),u=zr(l,t.withFont("mathrm"),!0),c=0;c<u.length;c++){var d=u[c];d instanceof hi&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=je.makeSpan(["mop"],u,t)}else o=je.makeSpan(["mop"],[],t);return i?AC(o,r,n,t,t.style,0,0):o},FX=(e,t)=>{for(var r=Un(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var s=r[i];if(!(s instanceof ze.SpaceNode))if(s instanceof ze.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.children.length===1&&o instanceof ze.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var l=r.map(d=>d.toText()).join("");r=[new ze.TextNode(l)]}var u=new ze.MathNode("mi",r);u.setAttribute("mathvariant","normal");var c=new ze.MathNode("mo",[fi("","text")]);return e.parentIsSupSub?new ze.MathNode("mrow",[u,c]):ze.newDocumentFragment([u,c])};et({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:Or(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:BC,mathmlBuilder:FX});L("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Co({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?je.makeFragment(zr(e.body,t,!1)):je.makeSpan(["mord"],zr(e.body,t,!0),t)},mathmlBuilder(e,t){return hs(e.body,t,!0)}});et({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=It(e.body,t.havingCrampedStyle()),n=je.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,s=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]},t);return je.makeSpan(["mord","overline"],[s],t)},mathmlBuilder(e,t){var r=new ze.MathNode("mo",[new ze.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new ze.MathNode("mover",[ir(e.body,t),r]);return n.setAttribute("accent","true"),n}});et({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:Or(n)}},htmlBuilder:(e,t)=>{var r=zr(e.body,t.withPhantom(),!1);return je.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=Un(e.body,t);return new ze.MathNode("mphantom",r)}});et({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=je.makeSpan([],[It(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),je.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=Un(Or(e.body),t),n=new ze.MathNode("mphantom",r),i=new ze.MathNode("mpadded",[n]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});et({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=je.makeSpan(["inner"],[It(e.body,t.withPhantom())]),n=je.makeSpan(["fix"],[]);return je.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Un(Or(e.body),t),n=new ze.MathNode("mphantom",r),i=new ze.MathNode("mpadded",[n]);return i.setAttribute("width","0px"),i}});et({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=_t(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=It(e.body,t),n=Er(e.dy,t);return je.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new ze.MathNode("mpadded",[ir(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});et({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});et({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],s=_t(t[0],"size"),o=_t(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&_t(i,"size").value,width:s.value,height:o.value}},htmlBuilder(e,t){var r=je.makeSpan(["mord","rule"],[],t),n=Er(e.width,t),i=Er(e.height,t),s=e.shift?Er(e.shift,t):0;return r.style.borderRightWidth=Ke(n),r.style.borderTopWidth=Ke(i),r.style.bottom=Ke(s),r.width=n,r.height=i+s,r.depth=-s,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Er(e.width,t),n=Er(e.height,t),i=e.shift?Er(e.shift,t):0,s=t.color&&t.getColor()||"black",o=new ze.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",Ke(r)),o.setAttribute("height",Ke(n));var l=new ze.MathNode("mpadded",[o]);return i>=0?l.setAttribute("height",Ke(i)):(l.setAttribute("height",Ke(i)),l.setAttribute("depth",Ke(-i))),l.setAttribute("voffset",Ke(i)),l}});function TC(e,t,r){for(var n=zr(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,s=0;s<n.length;s++){var o=n[s].classes.indexOf("sizing");o<0?Array.prototype.push.apply(n[s].classes,t.sizingClasses(r)):n[s].classes[o+1]==="reset-size"+t.size&&(n[s].classes[o+1]="reset-size"+r.size),n[s].height*=i,n[s].depth*=i}return je.makeFragment(n)}var Jy=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],jX=(e,t)=>{var r=t.havingSize(e.size);return TC(e.body,r,t)};et({type:"sizing",names:Jy,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,s=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:Jy.indexOf(n)+1,body:s}},htmlBuilder:jX,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Un(e.body,r),i=new ze.MathNode("mstyle",n);return i.setAttribute("mathsize",Ke(r.sizeMultiplier)),i}});et({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,s=!1,o=r[0]&&_t(r[0],"ordgroup");if(o)for(var l="",u=0;u<o.body.length;++u){var c=o.body[u];if(l=c.text,l==="t")i=!0;else if(l==="b")s=!0;else{i=!1,s=!1;break}}else i=!0,s=!0;var d=t[0];return{type:"smash",mode:n.mode,body:d,smashHeight:i,smashDepth:s}},htmlBuilder:(e,t)=>{var r=je.makeSpan([],[It(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var i=0;i<r.children.length;i++)r.children[i].depth=0;var s=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return je.makeSpan(["mord"],[s],t)},mathmlBuilder:(e,t)=>{var r=new ze.MathNode("mpadded",[ir(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});et({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],s=t[0];return{type:"sqrt",mode:n.mode,body:s,index:i}},htmlBuilder(e,t){var r=It(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=je.wrapFragment(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,s=i;t.style.id<bt.TEXT.id&&(s=t.fontMetrics().xHeight);var o=i+s/4,l=r.height+r.depth+o+i,{span:u,ruleWidth:c,advanceWidth:d}=va.sqrtImage(l,t),h=u.height-c;h>r.height+r.depth+o&&(o=(o+h-r.height-r.depth)/2);var f=u.height-r.height-o-c;r.style.paddingLeft=Ke(d);var p=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:u},{type:"kern",size:c}]},t);if(e.index){var g=t.havingStyle(bt.SCRIPTSCRIPT),y=It(e.index,g,t),b=.6*(p.height-p.depth),x=je.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:y}]},t),v=je.makeSpan(["root"],[x]);return je.makeSpan(["mord","sqrt"],[v,p],t)}else return je.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new ze.MathNode("mroot",[ir(r,t),ir(n,t)]):new ze.MathNode("msqrt",[ir(r,t)])}});var Qy={display:bt.DISPLAY,text:bt.TEXT,script:bt.SCRIPT,scriptscript:bt.SCRIPTSCRIPT};et({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,s=i.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:o,body:s}},htmlBuilder(e,t){var r=Qy[e.style],n=t.havingStyle(r).withFont("");return TC(e.body,n,t)},mathmlBuilder(e,t){var r=Qy[e.style],n=t.havingStyle(r),i=Un(e.body,n),s=new ze.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=o[e.style];return s.setAttribute("scriptlevel",l[0]),s.setAttribute("displaystyle",l[1]),s}});var _X=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===bt.DISPLAY.size||n.alwaysHandleSupSub);return i?Jl:null}else if(n.type==="operatorname"){var s=n.alwaysHandleSupSub&&(r.style.size===bt.DISPLAY.size||n.limits);return s?BC:null}else{if(n.type==="accent")return gt.isCharacterBox(n.base)?sg:null;if(n.type==="horizBrace"){var o=!t.sub;return o===n.isOver?OC:null}else return null}else return null};Co({type:"supsub",htmlBuilder(e,t){var r=_X(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:s}=e,o=It(n,t),l,u,c=t.fontMetrics(),d=0,h=0,f=n&>.isCharacterBox(n);if(i){var p=t.havingStyle(t.style.sup());l=It(i,p,t),f||(d=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(s){var g=t.havingStyle(t.style.sub());u=It(s,g,t),f||(h=o.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var y;t.style===bt.DISPLAY?y=c.sup1:t.style.cramped?y=c.sup3:y=c.sup2;var b=t.sizeMultiplier,x=Ke(.5/c.ptPerEm/b),v=null;if(u){var E=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof hi||E)&&(v=Ke(-o.italic))}var _;if(l&&u){d=Math.max(d,y,l.depth+.25*c.xHeight),h=Math.max(h,c.sub2);var j=c.defaultRuleThickness,F=4*j;if(d-l.depth-(u.height-h)<F){h=F-(d-l.depth)+u.height;var k=.8*c.xHeight-(d-l.depth);k>0&&(d+=k,h-=k)}var U=[{type:"elem",elem:u,shift:h,marginRight:x,marginLeft:v},{type:"elem",elem:l,shift:-d,marginRight:x}];_=je.makeVList({positionType:"individualShift",children:U},t)}else if(u){h=Math.max(h,c.sub1,u.height-.8*c.xHeight);var W=[{type:"elem",elem:u,marginLeft:v,marginRight:x}];_=je.makeVList({positionType:"shift",positionData:h,children:W},t)}else if(l)d=Math.max(d,y,l.depth+.25*c.xHeight),_=je.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:l,marginRight:x}]},t);else throw new Error("supsub must have either sup or sub.");var K=V5(o,"right")||"mord";return je.makeSpan([K],[o,je.makeSpan(["msupsub"],[_])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[ir(e.base,t)];e.sub&&s.push(ir(e.sub,t)),e.sup&&s.push(ir(e.sup,t));var o;if(r)o=n?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===bt.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===bt.DISPLAY||c.limits)?o="munderover":o="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===bt.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===bt.DISPLAY)?o="munder":o="msub"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===bt.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===bt.DISPLAY)?o="mover":o="msup"}return new ze.MathNode(o,s)}});Co({type:"atom",htmlBuilder(e,t){return je.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new ze.MathNode("mo",[fi(e.text,e.mode)]);if(e.family==="bin"){var n=ig(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var PC={mi:"italic",mn:"normal",mtext:"normal"};Co({type:"mathord",htmlBuilder(e,t){return je.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new ze.MathNode("mi",[fi(e.text,e.mode,t)]),n=ig(e,t)||"italic";return n!==PC[r.type]&&r.setAttribute("mathvariant",n),r}});Co({type:"textord",htmlBuilder(e,t){return je.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=fi(e.text,e.mode,t),n=ig(e,t)||"normal",i;return e.mode==="text"?i=new ze.MathNode("mtext",[r]):/[0-9]/.test(e.text)?i=new ze.MathNode("mn",[r]):e.text==="\\prime"?i=new ze.MathNode("mo",[r]):i=new ze.MathNode("mi",[r]),n!==PC[i.type]&&i.setAttribute("mathvariant",n),i}});var am={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},sm={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Co({type:"spacing",htmlBuilder(e,t){if(sm.hasOwnProperty(e.text)){var r=sm[e.text].className||"";if(e.mode==="text"){var n=je.makeOrd(e,t,"textord");return n.classes.push(r),n}else return je.makeSpan(["mspace",r],[je.mathsym(e.text,e.mode,t)],t)}else{if(am.hasOwnProperty(e.text))return je.makeSpan(["mspace",am[e.text]],[],t);throw new He('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(sm.hasOwnProperty(e.text))r=new ze.MathNode("mtext",[new ze.TextNode(" ")]);else{if(am.hasOwnProperty(e.text))return new ze.MathNode("mspace");throw new He('Unknown type of space "'+e.text+'"')}return r}});var eb=()=>{var e=new ze.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Co({type:"tag",mathmlBuilder(e,t){var r=new ze.MathNode("mtable",[new ze.MathNode("mtr",[eb(),new ze.MathNode("mtd",[hs(e.body,t)]),eb(),new ze.MathNode("mtd",[hs(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var tb={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},rb={"\\textbf":"textbf","\\textmd":"textmd"},kX={"\\textit":"textit","\\textup":"textup"},nb=(e,t)=>{var r=e.font;if(r){if(tb[r])return t.withTextFontFamily(tb[r]);if(rb[r])return t.withTextFontWeight(rb[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(kX[r])};et({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:Or(i),font:n}},htmlBuilder(e,t){var r=nb(e,t),n=zr(e.body,r,!0);return je.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=nb(e,t);return hs(e.body,r)}});et({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=It(e.body,t),n=je.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,s=je.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]},t);return je.makeSpan(["mord","underline"],[s],t)},mathmlBuilder(e,t){var r=new ze.MathNode("mo",[new ze.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new ze.MathNode("munder",[ir(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});et({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=It(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return je.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new ze.MathNode("mpadded",[ir(e.body,t)],["vcenter"])}});et({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new He("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=ib(e),n=[],i=t.havingStyle(t.style.text()),s=0;s<r.length;s++){var o=r[s];o==="~"&&(o="\\textasciitilde"),n.push(je.makeSymbol(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return je.makeSpan(["mord","text"].concat(i.sizingClasses(t)),je.tryCombineChars(n),i)},mathmlBuilder(e,t){var r=new ze.TextNode(ib(e)),n=new ze.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var ib=e=>e.body.replace(/ /g,e.star?"␣":" "),is=nC,NC=`[ \r
- ]`,OX="\\\\[a-zA-Z@]+",AX="\\\\[^\uD800-\uDFFF]",DX="("+OX+")"+NC+"*",BX=`\\\\(
- |[ \r ]+
- ?)[ \r ]*`,Z5="[̀-ͯ]",TX=new RegExp(Z5+"+$"),PX="("+NC+"+)|"+(BX+"|")+"([!-\\[\\]-‧-豈-]"+(Z5+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Z5+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+DX)+("|"+AX+")");class ab{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(PX,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Vi("EOF",new Yn(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new He("Unexpected character: '"+t[r]+"'",new Vi(t[r],new Yn(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=t.indexOf(`
- `,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Vi(i,new Yn(this,r,this.tokenRegex.lastIndex))}}class NX{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new He("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var MX=SC;L("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});L("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});L("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});L("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});L("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});L("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");L("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var sb={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};L("\\char",function(e){var t=e.popToken(),r,n="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new He("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=sb[t.text],n==null||n>=r)throw new He("Invalid base-"+r+" digit "+t.text);for(var i;(i=sb[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var pg=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new He("\\newcommand's first argument must be a macro name");var s=i[0].text,o=e.isDefined(s);if(o&&!t)throw new He("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!o&&!r)throw new He("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var l=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var u="",c=e.expandNextToken();c.text!=="]"&&c.text!=="EOF";)u+=c.text,c=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new He("Invalid number of arguments: "+u);l=parseInt(u),i=e.consumeArg().tokens}return o&&n||e.macros.set(s,{tokens:i,numArgs:l}),""};L("\\newcommand",e=>pg(e,!1,!0,!1));L("\\renewcommand",e=>pg(e,!0,!1,!1));L("\\providecommand",e=>pg(e,!0,!0,!0));L("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});L("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});L("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),is[r],or.math[r],or.text[r]),""});L("\\bgroup","{");L("\\egroup","}");L("~","\\nobreakspace");L("\\lq","`");L("\\rq","'");L("\\aa","\\r a");L("\\AA","\\r A");L("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");L("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");L("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");L("ℬ","\\mathscr{B}");L("ℰ","\\mathscr{E}");L("ℱ","\\mathscr{F}");L("ℋ","\\mathscr{H}");L("ℐ","\\mathscr{I}");L("ℒ","\\mathscr{L}");L("ℳ","\\mathscr{M}");L("ℛ","\\mathscr{R}");L("ℭ","\\mathfrak{C}");L("ℌ","\\mathfrak{H}");L("ℨ","\\mathfrak{Z}");L("\\Bbbk","\\Bbb{k}");L("·","\\cdotp");L("\\llap","\\mathllap{\\textrm{#1}}");L("\\rlap","\\mathrlap{\\textrm{#1}}");L("\\clap","\\mathclap{\\textrm{#1}}");L("\\mathstrut","\\vphantom{(}");L("\\underbar","\\underline{\\text{#1}}");L("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');L("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");L("\\ne","\\neq");L("≠","\\neq");L("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");L("∉","\\notin");L("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");L("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");L("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");L("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");L("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");L("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");L("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");L("⟂","\\perp");L("‼","\\mathclose{!\\mkern-0.8mu!}");L("∌","\\notni");L("⌜","\\ulcorner");L("⌝","\\urcorner");L("⌞","\\llcorner");L("⌟","\\lrcorner");L("©","\\copyright");L("®","\\textregistered");L("️","\\textregistered");L("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');L("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');L("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');L("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');L("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");L("⋮","\\vdots");L("\\varGamma","\\mathit{\\Gamma}");L("\\varDelta","\\mathit{\\Delta}");L("\\varTheta","\\mathit{\\Theta}");L("\\varLambda","\\mathit{\\Lambda}");L("\\varXi","\\mathit{\\Xi}");L("\\varPi","\\mathit{\\Pi}");L("\\varSigma","\\mathit{\\Sigma}");L("\\varUpsilon","\\mathit{\\Upsilon}");L("\\varPhi","\\mathit{\\Phi}");L("\\varPsi","\\mathit{\\Psi}");L("\\varOmega","\\mathit{\\Omega}");L("\\substack","\\begin{subarray}{c}#1\\end{subarray}");L("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");L("\\boxed","\\fbox{$\\displaystyle{#1}$}");L("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");L("\\implies","\\DOTSB\\;\\Longrightarrow\\;");L("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");L("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");L("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var ob={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};L("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in ob?t=ob[r]:(r.slice(0,4)==="\\not"||r in or.math&>.contains(["bin","rel"],or.math[r].group))&&(t="\\dotsb"),t});var mg={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};L("\\dotso",function(e){var t=e.future().text;return t in mg?"\\ldots\\,":"\\ldots"});L("\\dotsc",function(e){var t=e.future().text;return t in mg&&t!==","?"\\ldots\\,":"\\ldots"});L("\\cdots",function(e){var t=e.future().text;return t in mg?"\\@cdots\\,":"\\@cdots"});L("\\dotsb","\\cdots");L("\\dotsm","\\cdots");L("\\dotsi","\\!\\cdots");L("\\dotsx","\\ldots\\,");L("\\DOTSI","\\relax");L("\\DOTSB","\\relax");L("\\DOTSX","\\relax");L("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");L("\\,","\\tmspace+{3mu}{.1667em}");L("\\thinspace","\\,");L("\\>","\\mskip{4mu}");L("\\:","\\tmspace+{4mu}{.2222em}");L("\\medspace","\\:");L("\\;","\\tmspace+{5mu}{.2777em}");L("\\thickspace","\\;");L("\\!","\\tmspace-{3mu}{.1667em}");L("\\negthinspace","\\!");L("\\negmedspace","\\tmspace-{4mu}{.2222em}");L("\\negthickspace","\\tmspace-{5mu}{.277em}");L("\\enspace","\\kern.5em ");L("\\enskip","\\hskip.5em\\relax");L("\\quad","\\hskip1em\\relax");L("\\qquad","\\hskip2em\\relax");L("\\tag","\\@ifstar\\tag@literal\\tag@paren");L("\\tag@paren","\\tag@literal{({#1})}");L("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new He("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});L("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");L("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");L("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");L("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");L("\\newline","\\\\\\relax");L("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var MC=Ke(Hi["Main-Regular"][84][1]-.7*Hi["Main-Regular"][65][1]);L("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+MC+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");L("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+MC+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");L("\\hspace","\\@ifstar\\@hspacer\\@hspace");L("\\@hspace","\\hskip #1\\relax");L("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");L("\\ordinarycolon",":");L("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");L("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');L("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');L("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');L("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');L("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');L("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');L("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');L("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');L("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');L("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');L("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');L("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');L("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');L("∷","\\dblcolon");L("∹","\\eqcolon");L("≔","\\coloneqq");L("≕","\\eqqcolon");L("⩴","\\Coloneqq");L("\\ratio","\\vcentcolon");L("\\coloncolon","\\dblcolon");L("\\colonequals","\\coloneqq");L("\\coloncolonequals","\\Coloneqq");L("\\equalscolon","\\eqqcolon");L("\\equalscoloncolon","\\Eqqcolon");L("\\colonminus","\\coloneq");L("\\coloncolonminus","\\Coloneq");L("\\minuscolon","\\eqcolon");L("\\minuscoloncolon","\\Eqcolon");L("\\coloncolonapprox","\\Colonapprox");L("\\coloncolonsim","\\Colonsim");L("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");L("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");L("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");L("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");L("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");L("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");L("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");L("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");L("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");L("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");L("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");L("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");L("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");L("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");L("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");L("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");L("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");L("\\nleqq","\\html@mathml{\\@nleqq}{≰}");L("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");L("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");L("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");L("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");L("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");L("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");L("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");L("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");L("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");L("\\imath","\\html@mathml{\\@imath}{ı}");L("\\jmath","\\html@mathml{\\@jmath}{ȷ}");L("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");L("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");L("⟦","\\llbracket");L("⟧","\\rrbracket");L("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");L("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");L("⦃","\\lBrace");L("⦄","\\rBrace");L("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");L("⦵","\\minuso");L("\\darr","\\downarrow");L("\\dArr","\\Downarrow");L("\\Darr","\\Downarrow");L("\\lang","\\langle");L("\\rang","\\rangle");L("\\uarr","\\uparrow");L("\\uArr","\\Uparrow");L("\\Uarr","\\Uparrow");L("\\N","\\mathbb{N}");L("\\R","\\mathbb{R}");L("\\Z","\\mathbb{Z}");L("\\alef","\\aleph");L("\\alefsym","\\aleph");L("\\Alpha","\\mathrm{A}");L("\\Beta","\\mathrm{B}");L("\\bull","\\bullet");L("\\Chi","\\mathrm{X}");L("\\clubs","\\clubsuit");L("\\cnums","\\mathbb{C}");L("\\Complex","\\mathbb{C}");L("\\Dagger","\\ddagger");L("\\diamonds","\\diamondsuit");L("\\empty","\\emptyset");L("\\Epsilon","\\mathrm{E}");L("\\Eta","\\mathrm{H}");L("\\exist","\\exists");L("\\harr","\\leftrightarrow");L("\\hArr","\\Leftrightarrow");L("\\Harr","\\Leftrightarrow");L("\\hearts","\\heartsuit");L("\\image","\\Im");L("\\infin","\\infty");L("\\Iota","\\mathrm{I}");L("\\isin","\\in");L("\\Kappa","\\mathrm{K}");L("\\larr","\\leftarrow");L("\\lArr","\\Leftarrow");L("\\Larr","\\Leftarrow");L("\\lrarr","\\leftrightarrow");L("\\lrArr","\\Leftrightarrow");L("\\Lrarr","\\Leftrightarrow");L("\\Mu","\\mathrm{M}");L("\\natnums","\\mathbb{N}");L("\\Nu","\\mathrm{N}");L("\\Omicron","\\mathrm{O}");L("\\plusmn","\\pm");L("\\rarr","\\rightarrow");L("\\rArr","\\Rightarrow");L("\\Rarr","\\Rightarrow");L("\\real","\\Re");L("\\reals","\\mathbb{R}");L("\\Reals","\\mathbb{R}");L("\\Rho","\\mathrm{P}");L("\\sdot","\\cdot");L("\\sect","\\S");L("\\spades","\\spadesuit");L("\\sub","\\subset");L("\\sube","\\subseteq");L("\\supe","\\supseteq");L("\\Tau","\\mathrm{T}");L("\\thetasym","\\vartheta");L("\\weierp","\\wp");L("\\Zeta","\\mathrm{Z}");L("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");L("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");L("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");L("\\bra","\\mathinner{\\langle{#1}|}");L("\\ket","\\mathinner{|{#1}\\rangle}");L("\\braket","\\mathinner{\\langle{#1}\\rangle}");L("\\Bra","\\left\\langle#1\\right|");L("\\Ket","\\left|#1\\right\\rangle");var IC=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.consumeArg().tokens,o=t.macros.get("|"),l=t.macros.get("\\|");t.macros.beginGroup();var u=h=>f=>{e&&(f.macros.set("|",o),i.length&&f.macros.set("\\|",l));var p=h;if(!h&&i.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?i:n,numArgs:0}};t.macros.set("|",u(!1)),i.length&&t.macros.set("\\|",u(!0));var c=t.consumeArg().tokens,d=t.expandTokens([...s,...c,...r]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};L("\\bra@ket",IC(!1));L("\\bra@set",IC(!0));L("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");L("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");L("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");L("\\angln","{\\angl n}");L("\\blue","\\textcolor{##6495ed}{#1}");L("\\orange","\\textcolor{##ffa500}{#1}");L("\\pink","\\textcolor{##ff00af}{#1}");L("\\red","\\textcolor{##df0030}{#1}");L("\\green","\\textcolor{##28ae7b}{#1}");L("\\gray","\\textcolor{gray}{#1}");L("\\purple","\\textcolor{##9d38bd}{#1}");L("\\blueA","\\textcolor{##ccfaff}{#1}");L("\\blueB","\\textcolor{##80f6ff}{#1}");L("\\blueC","\\textcolor{##63d9ea}{#1}");L("\\blueD","\\textcolor{##11accd}{#1}");L("\\blueE","\\textcolor{##0c7f99}{#1}");L("\\tealA","\\textcolor{##94fff5}{#1}");L("\\tealB","\\textcolor{##26edd5}{#1}");L("\\tealC","\\textcolor{##01d1c1}{#1}");L("\\tealD","\\textcolor{##01a995}{#1}");L("\\tealE","\\textcolor{##208170}{#1}");L("\\greenA","\\textcolor{##b6ffb0}{#1}");L("\\greenB","\\textcolor{##8af281}{#1}");L("\\greenC","\\textcolor{##74cf70}{#1}");L("\\greenD","\\textcolor{##1fab54}{#1}");L("\\greenE","\\textcolor{##0d923f}{#1}");L("\\goldA","\\textcolor{##ffd0a9}{#1}");L("\\goldB","\\textcolor{##ffbb71}{#1}");L("\\goldC","\\textcolor{##ff9c39}{#1}");L("\\goldD","\\textcolor{##e07d10}{#1}");L("\\goldE","\\textcolor{##a75a05}{#1}");L("\\redA","\\textcolor{##fca9a9}{#1}");L("\\redB","\\textcolor{##ff8482}{#1}");L("\\redC","\\textcolor{##f9685d}{#1}");L("\\redD","\\textcolor{##e84d39}{#1}");L("\\redE","\\textcolor{##bc2612}{#1}");L("\\maroonA","\\textcolor{##ffbde0}{#1}");L("\\maroonB","\\textcolor{##ff92c6}{#1}");L("\\maroonC","\\textcolor{##ed5fa6}{#1}");L("\\maroonD","\\textcolor{##ca337c}{#1}");L("\\maroonE","\\textcolor{##9e034e}{#1}");L("\\purpleA","\\textcolor{##ddd7ff}{#1}");L("\\purpleB","\\textcolor{##c6b9fc}{#1}");L("\\purpleC","\\textcolor{##aa87ff}{#1}");L("\\purpleD","\\textcolor{##7854ab}{#1}");L("\\purpleE","\\textcolor{##543b78}{#1}");L("\\mintA","\\textcolor{##f5f9e8}{#1}");L("\\mintB","\\textcolor{##edf2df}{#1}");L("\\mintC","\\textcolor{##e0e5cc}{#1}");L("\\grayA","\\textcolor{##f6f7f7}{#1}");L("\\grayB","\\textcolor{##f0f1f2}{#1}");L("\\grayC","\\textcolor{##e3e5e6}{#1}");L("\\grayD","\\textcolor{##d6d8da}{#1}");L("\\grayE","\\textcolor{##babec2}{#1}");L("\\grayF","\\textcolor{##888d93}{#1}");L("\\grayG","\\textcolor{##626569}{#1}");L("\\grayH","\\textcolor{##3b3e40}{#1}");L("\\grayI","\\textcolor{##21242c}{#1}");L("\\kaBlue","\\textcolor{##314453}{#1}");L("\\kaGreen","\\textcolor{##71B307}{#1}");var $C={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class IX{constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new NX(MX,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new ab(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Vi("EOF",n.loc)),this.pushTokens(i),r.range(n,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),s,o=0,l=0;do{if(s=this.popToken(),r.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new He("Extra }",s)}else if(s.text==="EOF")throw new He("Unexpected end of input in a macro argument, expected '"+(t&&n?t[l]:"}")+"'",s);if(t&&n)if((o===0||o===1&&t[l]==="{")&&s.text===t[l]){if(++l,l===t.length){r.splice(-l,l);break}}else l=0}while(o!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:s}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new He("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var s=this.popToken();if(n[i]!==s.text)throw new He("Use of the macro doesn't match its definition",s)}}for(var o=[],l=0;l<t;l++)o.push(this.consumeArg(r&&r[l+1]).tokens);return o}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new He("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new He("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var s=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var l=s.length-1;l>=0;--l){var u=s[l];if(u.text==="#"){if(l===0)throw new He("Incomplete placeholder at end of macro body",u);if(u=s[--l],u.text==="#")s.splice(l+1,1);else if(/^[1-9]$/.test(u.text))s.splice(l,2,...o[+u.text-1]);else throw new He("Not a valid argument number",u)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Vi(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var s=0;if(i.indexOf("#")!==-1)for(var o=i.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var l=new ab(i,this.settings),u=[],c=l.lex();c.text!=="EOF";)u.push(c),c=l.lex();u.reverse();var d={tokens:u,numArgs:s};return d}return i}isDefined(t){return this.macros.has(t)||is.hasOwnProperty(t)||or.math.hasOwnProperty(t)||or.text.hasOwnProperty(t)||$C.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:is.hasOwnProperty(t)&&!is[t].primitive}}var lb=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,qd=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),om={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},ub={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class nf{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new IX(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new He("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Vi("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(nf.endOfExpression.indexOf(i.text)!==-1||r&&i.text===r||t&&is[i.text]&&is[i.text].infix)break;var s=this.parseAtom(r);if(s){if(s.type==="internal")continue}else break;n.push(s)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++)if(t[i].type==="infix"){if(r!==-1)throw new He("only one infix operator per group",t[i].token);r=i,n=t[i].replaceWith}if(r!==-1&&n){var s,o,l=t.slice(0,r),u=t.slice(r+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},u.length===1&&u[0].type==="ordgroup"?o=u[0]:o={type:"ordgroup",mode:this.mode,body:u};var c;return n==="\\\\abovefrac"?c=this.callFunction(n,[s,t[r],o],[]):c=this.callFunction(n,[s,o],[]),[c]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var s;i=this.parseGroup(t)}while(((s=i)==null?void 0:s.type)==="internal");if(!i)throw new He("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return s}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(r&&r.type==="op"){var o=s.text==="\\limits";r.limits=o,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=s.text==="\\limits");else throw new He("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(n)throw new He("Double superscript",s);n=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(i)throw new He("Double subscript",s);i=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(n)throw new He("Double superscript",s);var l={type:"textord",mode:this.mode,text:"\\prime"},u=[l];for(this.consume();this.fetch().text==="'";)u.push(l),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:u}}else if(qd[s.text]){var c=lb.test(s.text),d=[];for(d.push(new Vi(qd[s.text])),this.consume();;){var h=this.fetch().text;if(!qd[h]||lb.test(h)!==c)break;d.unshift(new Vi(qd[h])),this.consume()}var f=this.subparse(d);c?i={type:"ordgroup",mode:"math",body:f}:n={type:"ordgroup",mode:"math",body:f}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,s=is[i];if(!s)return null;if(this.consume(),r&&r!=="atom"&&!s.allowedInArgument)throw new He("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!s.allowedInText)throw new He("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&s.allowedInMath===!1)throw new He("Can't use function '"+i+"' in math mode",n);var{args:o,optArgs:l}=this.parseArguments(i,s);return this.callFunction(i,o,l,n,t)}callFunction(t,r,n,i,s){var o={funcName:t,parser:this,token:i,breakOnTokenText:s},l=is[t];if(l&&l.handler)return l.handler(o,r,n);throw new He("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],s=[],o=0;o<n;o++){var l=r.argTypes&&r.argTypes[o],u=o<r.numOptionalArgs;(r.primitive&&l==null||r.type==="sqrt"&&o===1&&s[0]==null)&&(l="primitive");var c=this.parseGroupOfType("argument to '"+t+"'",l,u);if(u)s.push(c);else if(c!=null)i.push(c);else throw new He("Null argument, please report this as a bug")}return{args:i,optArgs:s}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",n);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(n)throw new He("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new He("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new He("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",s;(s=this.fetch()).text!=="EOF";)i+=s.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,s="",o;(o=this.fetch()).text!=="EOF"&&t.test(s+o.text);)i=o,s+=i.text,this.consume();if(s==="")throw new He("Invalid "+r+": '"+n.text+"'",n);return n.range(i,s)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new He("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new He("Invalid size: '"+r.text+"'",r);var s={number:+(i[1]+i[2]),unit:i[3]};if(!KE(s))throw new He("Invalid unit: '"+s.unit+"'",r);return{type:"size",mode:this.mode,value:s,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:n.loc,body:s};return r&&this.switchMode(i),o}parseGroup(t,r){var n=this.fetch(),i=n.text,s;if(i==="{"||i==="\\begingroup"){this.consume();var o=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,o),u=this.fetch();this.expect(o),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Yn.range(n,u),body:l,semisimple:i==="\\begingroup"||void 0}}else if(s=this.parseFunction(r,t)||this.parseSymbol(),s==null&&i[0]==="\\"&&!$C.hasOwnProperty(i)){if(this.settings.throwOnError)throw new He("Undefined control sequence: "+i,n);s=this.formatUnsupportedCmd(i),this.consume()}return s}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n],s=i.text;s==="-"&&t[n+1].text==="-"&&(n+1<r&&t[n+2].text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:Yn.range(i,t[n+2]),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:Yn.range(i,t[n+1]),text:"--"}),r-=1)),(s==="'"||s==="`")&&t[n+1].text===s&&(t.splice(n,2,{type:"textord",mode:"text",loc:Yn.range(i,t[n+1]),text:s+s}),r-=1)}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new He(`\\verb assertion failed --
- please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}ub.hasOwnProperty(r[0])&&!or[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=ub[r[0]]+r.slice(1));var s=TX.exec(r);s&&(r=r.substring(0,s.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var o;if(or[this.mode][r]){this.settings.strict&&this.mode==="math"&&W5.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var l=or[this.mode][r].group,u=Yn.range(t),c;if(FZ.hasOwnProperty(l)){var d=l;c={type:"atom",mode:this.mode,family:d,loc:u,text:r}}else c={type:l,mode:this.mode,loc:u,text:r};o=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(VE(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:Yn.range(t),text:r};else return null;if(this.consume(),s)for(var h=0;h<s[0].length;h++){var f=s[0][h];if(!om[f])throw new He("Unknown accent ' "+f+"'",t);var p=om[f][this.mode]||om[f].text;if(!p)throw new He("Accent "+f+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:Yn.range(t),label:p,isStretchy:!1,isShifty:!0,base:o}}return o}}nf.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var gg=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new nf(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new He("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Vi("\\df@tag")])}]}return i},yg=function(t,r,n){r.textContent="";var i=af(t,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),yg=function(){throw new He("KaTeX doesn't work in quirks mode.")});var LC=function(t,r){var n=af(t,r).toMarkup();return n},RC=function(t,r){var n=new J6(r);return gg(t,n)},zC=function(t,r,n){if(n.throwOnError||!(t instanceof He))throw t;var i=je.makeSpan(["katex-error"],[new hi(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},af=function(t,r){var n=new J6(r);try{var i=gg(t,n);return KZ(i,t,n)}catch(s){return zC(s,t,n)}},UC=function(t,r){var n=new J6(r);try{var i=gg(t,n);return YZ(i,t,n)}catch(s){return zC(s,t,n)}},HC="0.16.22",qC={Span:cd,Anchor:tg,SymbolNode:hi,SvgNode:Fa,PathNode:ds,LineNode:q5},X5={version:HC,render:yg,renderToString:LC,ParseError:He,SETTINGS_SCHEMA:zu,__parse:RC,__renderToDomTree:af,__renderToHTMLTree:UC,__setFontMetrics:GE,__defineSymbol:w,__defineFunction:et,__defineMacro:L,__domTree:qC};const $X=Object.freeze(Object.defineProperty({__proto__:null,ParseError:He,SETTINGS_SCHEMA:zu,__defineFunction:et,__defineMacro:L,__defineSymbol:w,__domTree:qC,__parse:RC,__renderToDomTree:af,__renderToHTMLTree:UC,__setFontMetrics:GE,default:X5,get render(){return yg},renderToString:LC,version:HC},Symbol.toStringTag,{value:"Module"}));class hd{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}hd.prototype.normal={};hd.prototype.property={};hd.prototype.space=void 0;function WC(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new hd(r,n,t)}function M0(e){return e.toLowerCase()}class Hn{constructor(t,r){this.attribute=r,this.property=t}}Hn.prototype.attribute="";Hn.prototype.booleanish=!1;Hn.prototype.boolean=!1;Hn.prototype.commaOrSpaceSeparated=!1;Hn.prototype.commaSeparated=!1;Hn.prototype.defined=!1;Hn.prototype.mustUseProperty=!1;Hn.prototype.number=!1;Hn.prototype.overloadedBoolean=!1;Hn.prototype.property="";Hn.prototype.spaceSeparated=!1;Hn.prototype.space=void 0;let LX=0;const jt=So(),Dr=So(),J5=So(),We=So(),sr=So(),ol=So(),Gn=So();function So(){return 2**++LX}const Q5=Object.freeze(Object.defineProperty({__proto__:null,boolean:jt,booleanish:Dr,commaOrSpaceSeparated:Gn,commaSeparated:ol,number:We,overloadedBoolean:J5,spaceSeparated:sr},Symbol.toStringTag,{value:"Module"})),lm=Object.keys(Q5);class bg extends Hn{constructor(t,r,n,i){let s=-1;if(super(t,r),cb(this,"space",i),typeof n=="number")for(;++s<lm.length;){const o=lm[s];cb(this,lm[s],(n&Q5[o])===Q5[o])}}}bg.prototype.defined=!0;function cb(e,t,r){r&&(e[t]=r)}function Ql(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const s=new bg(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(s.mustUseProperty=!0),t[n]=s,r[M0(n)]=n,r[M0(s.attribute)]=n}return new hd(t,r,e.space)}const VC=Ql({properties:{ariaActiveDescendant:null,ariaAtomic:Dr,ariaAutoComplete:null,ariaBusy:Dr,ariaChecked:Dr,ariaColCount:We,ariaColIndex:We,ariaColSpan:We,ariaControls:sr,ariaCurrent:null,ariaDescribedBy:sr,ariaDetails:null,ariaDisabled:Dr,ariaDropEffect:sr,ariaErrorMessage:null,ariaExpanded:Dr,ariaFlowTo:sr,ariaGrabbed:Dr,ariaHasPopup:null,ariaHidden:Dr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:sr,ariaLevel:We,ariaLive:null,ariaModal:Dr,ariaMultiLine:Dr,ariaMultiSelectable:Dr,ariaOrientation:null,ariaOwns:sr,ariaPlaceholder:null,ariaPosInSet:We,ariaPressed:Dr,ariaReadOnly:Dr,ariaRelevant:null,ariaRequired:Dr,ariaRoleDescription:sr,ariaRowCount:We,ariaRowIndex:We,ariaRowSpan:We,ariaSelected:Dr,ariaSetSize:We,ariaSort:null,ariaValueMax:We,ariaValueMin:We,ariaValueNow:We,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function GC(e,t){return t in e?e[t]:t}function KC(e,t){return GC(e,t.toLowerCase())}const RX=Ql({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ol,acceptCharset:sr,accessKey:sr,action:null,allow:null,allowFullScreen:jt,allowPaymentRequest:jt,allowUserMedia:jt,alt:null,as:null,async:jt,autoCapitalize:null,autoComplete:sr,autoFocus:jt,autoPlay:jt,blocking:sr,capture:null,charSet:null,checked:jt,cite:null,className:sr,cols:We,colSpan:null,content:null,contentEditable:Dr,controls:jt,controlsList:sr,coords:We|ol,crossOrigin:null,data:null,dateTime:null,decoding:null,default:jt,defer:jt,dir:null,dirName:null,disabled:jt,download:J5,draggable:Dr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:jt,formTarget:null,headers:sr,height:We,hidden:J5,high:We,href:null,hrefLang:null,htmlFor:sr,httpEquiv:sr,id:null,imageSizes:null,imageSrcSet:null,inert:jt,inputMode:null,integrity:null,is:null,isMap:jt,itemId:null,itemProp:sr,itemRef:sr,itemScope:jt,itemType:sr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:jt,low:We,manifest:null,max:null,maxLength:We,media:null,method:null,min:null,minLength:We,multiple:jt,muted:jt,name:null,nonce:null,noModule:jt,noValidate:jt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:jt,optimum:We,pattern:null,ping:sr,placeholder:null,playsInline:jt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:jt,referrerPolicy:null,rel:sr,required:jt,reversed:jt,rows:We,rowSpan:We,sandbox:sr,scope:null,scoped:jt,seamless:jt,selected:jt,shadowRootClonable:jt,shadowRootDelegatesFocus:jt,shadowRootMode:null,shape:null,size:We,sizes:null,slot:null,span:We,spellCheck:Dr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:We,step:null,style:null,tabIndex:We,target:null,title:null,translate:null,type:null,typeMustMatch:jt,useMap:null,value:Dr,width:We,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:sr,axis:null,background:null,bgColor:null,border:We,borderColor:null,bottomMargin:We,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:jt,declare:jt,event:null,face:null,frame:null,frameBorder:null,hSpace:We,leftMargin:We,link:null,longDesc:null,lowSrc:null,marginHeight:We,marginWidth:We,noResize:jt,noHref:jt,noShade:jt,noWrap:jt,object:null,profile:null,prompt:null,rev:null,rightMargin:We,rules:null,scheme:null,scrolling:Dr,standby:null,summary:null,text:null,topMargin:We,valueType:null,version:null,vAlign:null,vLink:null,vSpace:We,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:jt,disableRemotePlayback:jt,prefix:null,property:null,results:We,security:null,unselectable:null},space:"html",transform:KC}),zX=Ql({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Gn,accentHeight:We,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:We,amplitude:We,arabicForm:null,ascent:We,attributeName:null,attributeType:null,azimuth:We,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:We,by:null,calcMode:null,capHeight:We,className:sr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:We,diffuseConstant:We,direction:null,display:null,dur:null,divisor:We,dominantBaseline:null,download:jt,dx:null,dy:null,edgeMode:null,editable:null,elevation:We,enableBackground:null,end:null,event:null,exponent:We,externalResourcesRequired:null,fill:null,fillOpacity:We,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ol,g2:ol,glyphName:ol,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:We,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:We,horizOriginX:We,horizOriginY:We,id:null,ideographic:We,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:We,k:We,k1:We,k2:We,k3:We,k4:We,kernelMatrix:Gn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:We,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:We,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:We,overlineThickness:We,paintOrder:null,panose1:null,path:null,pathLength:We,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:sr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:We,pointsAtY:We,pointsAtZ:We,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gn,rev:Gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gn,requiredFeatures:Gn,requiredFonts:Gn,requiredFormats:Gn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:We,specularExponent:We,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:We,strikethroughThickness:We,string:null,stroke:null,strokeDashArray:Gn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:We,strokeOpacity:We,strokeWidth:null,style:null,surfaceScale:We,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gn,tabIndex:We,tableValues:null,target:null,targetX:We,targetY:We,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:We,underlineThickness:We,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:We,values:null,vAlphabetic:We,vMathematical:We,vectorEffect:null,vHanging:We,vIdeographic:We,version:null,vertAdvY:We,vertOriginX:We,vertOriginY:We,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:We,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:GC}),YC=Ql({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ZC=Ql({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:KC}),XC=Ql({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),UX=/[A-Z]/g,db=/-[a-z]/g,HX=/^data[-\w.:]+$/i;function qX(e,t){const r=M0(t);let n=t,i=Hn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&HX.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(db,VX);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!db.test(s)){let o=s.replace(UX,WX);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=bg}return new i(n,t)}function WX(e){return"-"+e.toLowerCase()}function VX(e){return e.charAt(1).toUpperCase()}const GX=WC([VC,RX,YC,ZC,XC],"html"),KX=WC([VC,zX,YC,ZC,XC],"svg"),hb=/[#.]/g;function YX(e,t){const r=e||"",n={};let i=0,s,o;for(;i<r.length;){hb.lastIndex=i;const l=hb.exec(r),u=r.slice(i,l?l.index:r.length);u&&(s?s==="#"?n.id=u:Array.isArray(n.className)?n.className.push(u):n.className=[u]:o=u,i+=u.length),l&&(s=l[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function JC(e,t,r){const n=r?QX(r):void 0;function i(s,o,...l){let u;if(s==null){u={type:"root",children:[]};const c=o;l.unshift(c)}else{u=YX(s,t);const c=u.tagName.toLowerCase(),d=n?n.get(c):void 0;if(u.tagName=d||c,ZX(o))l.unshift(o);else for(const[h,f]of Object.entries(o))XX(e,u.properties,h,f)}for(const c of l)e4(u.children,c);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function ZX(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const s=i;for(const o of s)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function XX(e,t,r,n){const i=qX(e,r);let s;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;s=n}else typeof n=="boolean"?s=n:typeof n=="string"?i.spaceSeparated?s=U3(n):i.commaSeparated?s=H3(n):i.commaOrSpaceSeparated?s=U3(H3(n).join(" ")):s=fb(i,i.property,n):Array.isArray(n)?s=[...n]:s=i.property==="style"?JX(n):String(n);if(Array.isArray(s)){const o=[];for(const l of s)o.push(fb(i,i.property,l));s=o}i.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[i.property]=s}}function e4(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)e4(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?e4(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function fb(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||M0(r)===M0(t)))return!0}return r}function JX(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function QX(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const eJ=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],tJ=JC(GX,"div"),rJ=JC(KX,"g",eJ),um={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nJ(e,t){return QC(e,{})||{type:"root",children:[]}}function QC(e,t){const r=iJ(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function iJ(e,t){switch(e.nodeType){case 1:return lJ(e,t);case 3:return sJ(e);case 8:return oJ(e);case 9:return pb(e,t);case 10:return aJ();case 11:return pb(e,t);default:return}}function pb(e,t){return{type:"root",children:eS(e,t)}}function aJ(){return{type:"doctype"}}function sJ(e){return{type:"text",value:e.nodeValue||""}}function oJ(e){return{type:"comment",value:e.nodeValue||""}}function lJ(e,t){const r=e.namespaceURI,n=r===um.svg?rJ:tJ,i=r===um.html?e.tagName.toLowerCase():e.tagName,s=r===um.html&&i==="template"?e.content:e,o=e.getAttributeNames(),l={};let u=-1;for(;++u<o.length;)l[o[u]]=e.getAttribute(o[u])||"";return n(i,l,eS(s,t))}function eS(e,t){const r=e.childNodes,n=[];let i=-1;for(;++i<r.length;){const s=QC(r[i],t);s!==void 0&&n.push(s)}return n}new DOMParser;function uJ(e,t){const r=cJ(e);return nJ(r)}function cJ(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const mb=function(e,t,r){const n=lB(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]},Fo=function(e){if(e==null)return fJ;if(typeof e=="string")return hJ(e);if(typeof e=="object")return dJ(e);if(typeof e=="function")return xg(e);throw new Error("Expected function, string, or array as `test`")};function dJ(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Fo(e[r]);return xg(n);function n(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function hJ(e){return xg(t);function t(r){return r.tagName===e}}function xg(e){return t;function t(r,n,i){return!!(pJ(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function fJ(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function pJ(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const gb=/\n/g,yb=/[\t ]+/g,t4=Fo("br"),bb=Fo(wJ),mJ=Fo("p"),xb=Fo("tr"),gJ=Fo(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",vJ,EJ]),tS=Fo(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function rS(e,t){const r=t||{},n="children"in e?e.children:[],i=tS(e),s=aS(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...iS(e,{whitespace:s,breakBefore:!0,breakAfter:!0}));let l=-1;for(;++l<n.length;)o.push(...nS(n[l],e,{whitespace:s,breakBefore:l?void 0:i,breakAfter:l<n.length-1?t4(n[l+1]):i}));const u=[];let c;for(l=-1;++l<o.length;){const d=o[l];typeof d=="number"?c!==void 0&&d>c&&(c=d):d&&(c!==void 0&&c>-1&&u.push(`
- `.repeat(c)||" "),c=-1,u.push(d))}return u.join("")}function nS(e,t,r){return e.type==="element"?yJ(e,t,r):e.type==="text"?r.whitespace==="normal"?iS(e,r):bJ(e):[]}function yJ(e,t,r){const n=aS(e,r),i=e.children||[];let s=-1,o=[];if(gJ(e))return o;let l,u;for(t4(e)||xb(e)&&mb(t,e,xb)?u=`
- `:mJ(e)?(l=2,u=2):tS(e)&&(l=1,u=1);++s<i.length;)o=o.concat(nS(i[s],e,{whitespace:n,breakBefore:s?void 0:l,breakAfter:s<i.length-1?t4(i[s+1]):u}));return bb(e)&&mb(t,e,bb)&&o.push(" "),l&&o.unshift(l),u&&o.push(u),o}function iS(e,t){const r=String(e.value),n=[],i=[];let s=0;for(;s<=r.length;){gb.lastIndex=s;const u=gb.exec(r),c=u&&"index"in u?u.index:r.length;n.push(xJ(r.slice(s,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,c===r.length?t.breakAfter:!0)),s=c+1}let o=-1,l;for(;++o<n.length;)n[o].charCodeAt(n[o].length-1)===8203||o<n.length-1&&n[o+1].charCodeAt(0)===8203?(i.push(n[o]),l=void 0):n[o]?(typeof l=="number"&&i.push(l),i.push(n[o]),l=0):(o===0||o===n.length-1)&&i.push(0);return i}function bJ(e){return[String(e.value)]}function xJ(e,t,r){const n=[];let i=0,s;for(;i<e.length;){yb.lastIndex=i;const o=yb.exec(e);s=o?o.index:e.length,!i&&!s&&o&&!t&&n.push(""),i!==s&&n.push(e.slice(i,s)),i=o?s+o[0].length:s}return i!==s&&!r&&n.push(""),n.join(" ")}function aS(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function vJ(e){return!!(e.properties||{}).hidden}function wJ(e){return e.tagName==="td"||e.tagName==="th"}function EJ(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const CJ={},SJ=[];function FJ(e){const t=e||CJ;return function(r,n){uB(r,"element",function(i,s){const o=Array.isArray(i.properties.className)?i.properties.className:SJ,l=o.includes("language-math"),u=o.includes("math-display"),c=o.includes("math-inline");let d=u;if(!l&&!u&&!c)return;let h=s[s.length-1],f=i;if(i.tagName==="code"&&l&&h&&h.type==="element"&&h.tagName==="pre"&&(f=h,h=s[s.length-2],d=!0),!h)return;const p=rS(f,{whitespace:"pre"});let g;try{g=X5.renderToString(p,{...t,displayMode:d,throwOnError:!0})}catch(b){const x=b,v=x.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...s,i],cause:x,place:i.position,ruleId:v,source:"rehype-katex"});try{g=X5.renderToString(p,{...t,displayMode:d,strict:"ignore",throwOnError:!1})}catch{g=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(b)},children:[{type:"text",value:p}]}]}}typeof g=="string"&&(g=uJ(g).children);const y=h.children.indexOf(f);return h.children.splice(y,1,...g),cB})}}function jJ(e){dB(e,[/\r?\n|\r/g,_J])}function _J(){return{type:"break"}}function kJ(){return function(e){jJ(e)}}const OJ={};function AJ(e){const t=this,r=e||OJ,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(hB(r)),s.push(fB()),o.push(pB(r))}function DJ(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:l,mathText:o,mathTextData:l}};function e(u){const c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},u)}function t(){this.buffer()}function r(){const u=this.resume(),c=this.stack[this.stack.length-1];Ri(c.type==="math"),c.meta=u}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];Ri(d.type==="math"),this.exit(u),d.value=c;const h=d.data.hChildren[0];Ri(h.type==="element"),Ri(h.tagName==="code"),h.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function s(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function o(u){const c=this.resume(),d=this.stack[this.stack.length-1];Ri(d.type==="inlineMath"),this.exit(u),d.value=c,d.data.hChildren.push({type:"text",value:c})}function l(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function BJ(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
- `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(s,o,l,u){const c=s.value||"",d=l.createTracker(u),h="$".repeat(Math.max(mB(c,"$")+1,2)),f=l.enter("mathFlow");let p=d.move(h);if(s.meta){const g=l.enter("mathFlowMeta");p+=d.move(l.safe(s.meta,{after:`
- `,before:p,encode:["$"],...d.current()})),g()}return p+=d.move(`
- `),c&&(p+=d.move(c+`
- `)),p+=d.move(h),f(),p}function n(s,o,l){let u=s.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(u);)c++;const d="$".repeat(c);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let h=-1;for(;++h<l.unsafe.length;){const f=l.unsafe[h];if(!f.atBreak)continue;const p=l.compilePattern(f);let g;for(;g=p.exec(u);){let y=g.index;u.codePointAt(y)===10&&u.codePointAt(y-1)===13&&y--,u=u.slice(0,y)+" "+u.slice(g.index+1)}}return d+u+d}function i(){return"$"}}const TJ={tokenize:PJ,concrete:!0,name:"mathFlow"},vb={tokenize:NJ,partial:!0};function PJ(e,t,r){const n=this,i=n.events[n.events.length-1],s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let o=0;return l;function l(v){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(v)}function u(v){return v===36?(e.consume(v),o++,u):o<2?r(v):(e.exit("mathFlowFenceSequence"),Dd(e,c,"whitespace")(v))}function c(v){return v===null||Hs(v)?h(v):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(v))}function d(v){return v===null||Hs(v)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),h(v)):v===36?r(v):(e.consume(v),d)}function h(v){return e.exit("mathFlowFence"),n.interrupt?t(v):e.attempt(vb,f,b)(v)}function f(v){return e.attempt({tokenize:x,partial:!0},b,p)(v)}function p(v){return(s?Dd(e,g,"linePrefix",s+1):g)(v)}function g(v){return v===null?b(v):Hs(v)?e.attempt(vb,f,b)(v):(e.enter("mathFlowValue"),y(v))}function y(v){return v===null||Hs(v)?(e.exit("mathFlowValue"),g(v)):(e.consume(v),y)}function b(v){return e.exit("mathFlow"),t(v)}function x(v,E,_){let j=0;return Dd(v,F,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function F(W){return v.enter("mathFlowFence"),v.enter("mathFlowFenceSequence"),k(W)}function k(W){return W===36?(j++,v.consume(W),k):j<o?_(W):(v.exit("mathFlowFenceSequence"),Dd(v,U,"whitespace")(W))}function U(W){return W===null||Hs(W)?(v.exit("mathFlowFence"),E(W)):_(W)}}}function NJ(e,t,r){const n=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function MJ(e){let r=e.singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:IJ,previous:$J,name:"mathText"};function n(i,s,o){let l=0,u,c;return d;function d(y){return i.enter("mathText"),i.enter("mathTextSequence"),h(y)}function h(y){return y===36?(i.consume(y),l++,h):l<2&&!r?o(y):(i.exit("mathTextSequence"),f(y))}function f(y){return y===null?o(y):y===36?(c=i.enter("mathTextSequence"),u=0,g(y)):y===32?(i.enter("space"),i.consume(y),i.exit("space"),f):Hs(y)?(i.enter("lineEnding"),i.consume(y),i.exit("lineEnding"),f):(i.enter("mathTextData"),p(y))}function p(y){return y===null||y===32||y===36||Hs(y)?(i.exit("mathTextData"),f(y)):(i.consume(y),p)}function g(y){return y===36?(i.consume(y),u++,g):u===l?(i.exit("mathTextSequence"),i.exit("mathText"),s(y)):(c.type="mathTextData",p(y))}}}function IJ(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="mathTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function $J(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function LJ(e){return{flow:{36:TJ},text:{36:MJ(e)}}}const RJ={};function zJ(e){const t=this,r=e||RJ,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(LJ(r)),s.push(DJ()),o.push(BJ(r))}var eu="Cloudflare",UJ=.4,HJ=.25,sS="#F38020";function I0(e){"@babel/helpers - typeof";return I0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I0(e)}var qJ=["size","style"];function wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wb(Object(r),!0).forEach(function(n){WJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WJ(e,t,r){return t=VJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VJ(e){var t=GJ(e,"string");return I0(t)=="symbol"?t:String(t)}function GJ(e,t){if(I0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(I0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KJ(e,t){if(e==null)return{};var r=YJ(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YJ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var vg=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=KJ(e,qJ);return a.jsxs("svg",cm(cm({fill:"currentColor",fillRule:"evenodd",height:r,style:cm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:eu}),a.jsxs("g",{children:[a.jsx("path",{d:"M16.493 17.4c.135-.52.08-.983-.161-1.338-.215-.328-.592-.519-1.05-.519l-8.663-.109a.148.148 0 01-.135-.082c-.027-.054-.027-.109-.027-.163.027-.082.108-.164.189-.164l8.744-.11c1.05-.054 2.153-.9 2.556-1.937l.511-1.31c.027-.055.027-.11.027-.164C17.92 8.91 15.66 7 12.942 7c-2.503 0-4.628 1.638-5.381 3.903a2.432 2.432 0 00-1.803-.491c-1.21.109-2.153 1.092-2.287 2.32-.027.328 0 .628.054.9C1.56 13.688 0 15.326 0 17.319c0 .19.027.355.027.545 0 .082.08.137.161.137h15.983c.08 0 .188-.055.215-.164l.107-.437"}),a.jsx("path",{d:"M19.238 11.75h-.242c-.054 0-.108.054-.135.109l-.35 1.2c-.134.52-.08.983.162 1.338.215.328.592.518 1.05.518l1.855.11c.054 0 .108.027.135.082.027.054.027.109.027.163-.027.082-.108.164-.188.164l-1.91.11c-1.05.054-2.153.9-2.557 1.937l-.134.355c-.027.055.026.137.107.137h6.592c.081 0 .162-.055.162-.137.107-.41.188-.846.188-1.31-.027-2.62-2.153-4.777-4.762-4.777"})]})]}))});function $0(e){"@babel/helpers - typeof";return $0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$0(e)}var ZJ=["background"];function Eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eb(Object(r),!0).forEach(function(n){JJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JJ(e,t,r){return t=QJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QJ(e){var t=eQ(e,"string");return $0(t)=="symbol"?t:String(t)}function eQ(e,t){if($0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tQ(e,t){if(e==null)return{};var r=rQ(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var nQ=m.memo(function(e){var t=e.background,r=tQ(e,ZJ);return a.jsx(Zt,XJ({Icon:vg,"aria-label":eu,background:t||sS},r))});function L0(e){"@babel/helpers - typeof";return L0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L0(e)}var iQ=["size","style"];function Cb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cb(Object(r),!0).forEach(function(n){aQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aQ(e,t,r){return t=sQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sQ(e){var t=oQ(e,"string");return L0(t)=="symbol"?t:String(t)}function oQ(e,t){if(L0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(L0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lQ(e,t){if(e==null)return{};var r=uQ(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var oS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=lQ(e,iQ);return a.jsxs("svg",dm(dm({height:r,style:dm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:eu}),a.jsxs("g",{fill:"none",fillRule:"evenodd",children:[a.jsx("path",{d:"M16.493 17.4c.135-.52.08-.983-.161-1.338-.215-.328-.592-.519-1.05-.519l-8.663-.109a.148.148 0 01-.135-.082c-.027-.054-.027-.109-.027-.163.027-.082.108-.164.189-.164l8.744-.11c1.05-.054 2.153-.9 2.556-1.937l.511-1.31c.027-.055.027-.11.027-.164C17.92 8.91 15.66 7 12.942 7c-2.503 0-4.628 1.638-5.381 3.903a2.432 2.432 0 00-1.803-.491c-1.21.109-2.153 1.092-2.287 2.32-.027.328 0 .628.054.9C1.56 13.688 0 15.326 0 17.319c0 .19.027.355.027.545 0 .082.08.137.161.137h15.983c.08 0 .188-.055.215-.164l.107-.437",fill:"#F38020"}),a.jsx("path",{d:"M19.238 11.75h-.242c-.054 0-.108.054-.135.109l-.35 1.2c-.134.52-.08.983.162 1.338.215.328.592.518 1.05.518l1.855.11c.054 0 .108.027.135.082.027.054.027.109.027.163-.027.082-.108.164-.188.164l-1.91.11c-1.05.054-2.153.9-2.557 1.937l-.134.355c-.027.055.026.137.107.137h6.592c.081 0 .162-.055.162-.137.107-.41.188-.846.188-1.31-.027-2.62-2.153-4.777-4.762-4.777",fill:"#FCAD32"})]})]}))});function R0(e){"@babel/helpers - typeof";return R0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R0(e)}var cQ=["size","style"];function Sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sb(Object(r),!0).forEach(function(n){dQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dQ(e,t,r){return t=hQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hQ(e){var t=fQ(e,"string");return R0(t)=="symbol"?t:String(t)}function fQ(e,t){if(R0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(R0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pQ(e,t){if(e==null)return{};var r=mQ(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var lS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=pQ(e,cQ);return a.jsxs("svg",hm(hm({fill:"currentColor",fillRule:"evenodd",height:r,style:hm({flex:"none",lineHeight:1},n),viewBox:"0 0 242 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:eu}),a.jsx("path",{d:"M28.4 2.395h5.386v14.606h9.326v4.736H28.4V2.395zM16.71 14.369c-.787 1.71-2.363 2.894-4.465 2.894-2.89 0-4.86-2.368-4.86-5.263 0-2.764 1.97-5.132 4.86-5.132 2.232 0 3.81 1.316 4.597 3.158h5.647C21.571 5.421 17.5 2 12.377 2 6.467 2 2 6.474 2 12s4.335 10 10.377 10c5.122 0 9.062-3.289 10.112-7.763H16.71v.132zM224.37 2.395h15.499v4.606h-10.114v2.894h9.194v4.21h-9.194v3.027H240v4.605h-15.63V2.395zm-24.693 0h9.062c2.89 0 4.991.79 6.305 2.105 1.182 1.052 1.708 2.632 1.708 4.474 0 2.894-1.576 4.868-3.94 5.921l4.596 6.71h-6.174l-3.939-5.79h-2.365v5.79h-5.386V2.395h.133zm8.8 9.211c1.838 0 2.889-.921 2.889-2.238 0-1.579-1.05-2.237-2.89-2.237l-3.546.001v4.605h3.547v-.13zm-29.028-9.343h5.122l8.144 19.474h-5.78l-1.444-3.421h-7.486l-1.315 3.42h-5.516l8.275-19.473zm4.598 11.842l-2.103-5.526-2.232 5.526h4.335zm-33.232-11.71h5.386v14.606h9.325v4.736h-14.711V2.395zm-22.854 0h15.367v4.737h-9.981v3.158h9.062v4.474h-9.062v6.973h-5.386V2.395zm-26.007 0h7.488c6.829 0 10.9 3.947 10.9 9.473 0 5.526-4.071 9.737-11.032 9.737h-7.356V2.395zm7.488 14.606c3.151 0 5.253-1.712 5.253-4.87 0-3.025-2.102-4.868-5.253-4.868h-2.233v9.87h2.233V17zm-33.625-3.816V2.395H81.2v10.658c0 2.763 1.445 4.078 3.547 4.078 2.101 0 3.547-1.315 3.547-3.946V2.263h5.385v10.659c0 6.183-3.548 8.946-9.063 8.946-5.386.132-8.8-2.63-8.8-8.683zm-27.19-1.053C48.628 6.474 53.095 2 59.006 2c5.91 0 10.375 4.474 10.375 10s-4.465 10-10.375 10c-6.042 0-10.377-4.342-10.377-9.868zm15.237 0c0-2.896-1.97-5.264-4.99-5.264-2.891 0-4.861 2.368-4.861 5.132s1.97 5.263 4.86 5.263c3.02 0 4.99-2.368 4.99-5.131z"})]}))});function z0(e){"@babel/helpers - typeof";return z0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z0(e)}var gQ=["type"];function Fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fb(Object(r),!0).forEach(function(n){bQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bQ(e,t,r){return t=xQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xQ(e){var t=vQ(e,"string");return z0(t)=="symbol"?t:String(t)}function vQ(e,t){if(z0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(z0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wQ(e,t){if(e==null)return{};var r=EQ(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var CQ=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=wQ(e,gQ),i=r==="color"?oS:vg;return a.jsx(Jt,yQ({Icon:i,Text:lS,"aria-label":eu,spaceMultiple:HJ,textMultiple:UJ},n))}),ks=vg;ks.Color=oS;ks.Text=lS;ks.Combine=CQ;ks.Avatar=nQ;ks.colorPrimary=sS;ks.title=eu;var fd="Ollama",SQ=.6,FQ=.1,uS="#fff";function U0(e){"@babel/helpers - typeof";return U0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U0(e)}var jQ=["size","style"];function jb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jb(Object(r),!0).forEach(function(n){_Q(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _Q(e,t,r){return t=kQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kQ(e){var t=OQ(e,"string");return U0(t)=="symbol"?t:String(t)}function OQ(e,t){if(U0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(U0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AQ(e,t){if(e==null)return{};var r=DQ(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var wg=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=AQ(e,jQ);return a.jsxs("svg",fm(fm({fill:"currentColor",fillRule:"evenodd",height:r,style:fm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:fd}),a.jsx("path",{d:"M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z"})]}))});function H0(e){"@babel/helpers - typeof";return H0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H0(e)}var BQ=["background"];function _b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_b(Object(r),!0).forEach(function(n){PQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PQ(e,t,r){return t=NQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NQ(e){var t=MQ(e,"string");return H0(t)=="symbol"?t:String(t)}function MQ(e,t){if(H0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(H0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IQ(e,t){if(e==null)return{};var r=$Q(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $Q(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var LQ=m.memo(function(e){var t=e.background,r=IQ(e,BQ);return a.jsx(Zt,TQ({Icon:wg,"aria-label":fd,background:t||uS,color:"#000"},r))});function q0(e){"@babel/helpers - typeof";return q0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q0(e)}var RQ=["size","style"];function kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(r),!0).forEach(function(n){zQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zQ(e,t,r){return t=UQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UQ(e){var t=HQ(e,"string");return q0(t)=="symbol"?t:String(t)}function HQ(e,t){if(q0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(q0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qQ(e,t){if(e==null)return{};var r=WQ(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var cS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=qQ(e,RQ);return a.jsxs("svg",pm(pm({fill:"currentColor",fillRule:"evenodd",height:r,style:pm({flex:"none",lineHeight:1},n),viewBox:"0 0 87 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:fd}),a.jsx("path",{d:"M11.333 2c-2.959 0-5.272.943-6.94 2.884C2.78 6.717 2 9.09 2 12.027c0 2.911.78 5.283 2.394 7.116C6.06 21.03 8.374 22 11.333 22c2.931 0 5.244-.943 6.939-2.83 1.614-1.806 2.42-4.178 2.42-7.143s-.806-5.364-2.42-7.17C16.577 2.943 14.264 2 11.332 2zm0 2.776c1.99 0 3.523.62 4.599 1.914 1.049 1.294 1.587 3.073 1.587 5.337s-.538 4.016-1.587 5.283c-1.076 1.267-2.609 1.914-4.6 1.914-1.99 0-3.55-.674-4.625-1.995-1.05-1.294-1.56-3.019-1.56-5.202 0-2.21.51-3.935 1.56-5.23 1.102-1.347 2.636-2.02 4.626-2.02zM22.979 2v19.623h3.066V2h-3.066zm6.159 0v19.623h3.066V2h-3.066zm12.21 5.31c-1.775 0-3.173.296-4.195.943-1.21.701-1.964 1.833-2.26 3.37l3.04.242c.161-.728.564-1.267 1.156-1.617.511-.323 1.184-.458 2.044-.458 1.99 0 2.986.89 2.986 2.722v.54l-3.04.08c-2.044.054-3.63.485-4.76 1.294-1.237.835-1.829 2.048-1.829 3.612 0 1.159.43 2.102 1.29 2.857.835.728 1.964 1.105 3.417 1.105 1.21 0 2.259-.216 3.146-.62.78-.377 1.453-.89 1.99-1.59v1.833h2.852v-8.895c0-1.698-.43-2.992-1.291-3.882-.969-1.024-2.502-1.536-4.546-1.536zm2.77 7.951v.701c0 1.078-.43 1.968-1.237 2.669-.806.674-1.802 1.024-2.985 1.024-.672 0-1.21-.189-1.64-.512-.431-.324-.62-.728-.62-1.213 0-1.614 1.129-2.473 3.41-2.58l3.073-.089zM56.572 7.31c-1.344 0-2.609.593-3.765 1.806V7.687H49.74v13.936h3.066v-8.356c0-.917.269-1.725.807-2.372.538-.7 1.237-1.024 2.125-1.024 1.828 0 2.743 1.05 2.743 3.18v8.572h3.066v-8.518c0-1.024.242-1.806.78-2.372.511-.593 1.13-.862 1.883-.862 1.075 0 1.829.242 2.313.754.457.486.699 1.294.699 2.4v8.598h3.066v-9.138c0-1.536-.484-2.776-1.398-3.746-.969-.97-2.152-1.429-3.578-1.429-.941 0-1.72.162-2.34.485-.699.324-1.371.917-2.017 1.78-.887-1.51-2.34-2.265-4.384-2.265zm22.593 0c-1.775 0-3.174.296-4.196.943-1.21.701-1.963 1.833-2.26 3.37l3.04.242c.161-.728.565-1.267 1.156-1.617.511-.323 1.184-.458 2.044-.458 1.99 0 2.986.89 2.986 2.722v.54l-3.04.08c-2.043.054-3.63.485-4.76 1.294-1.237.835-1.829 2.048-1.829 3.612 0 1.159.43 2.102 1.291 2.857.834.728 1.964 1.105 3.416 1.105 1.21 0 2.26-.216 3.147-.62.78-.377 1.452-.89 1.99-1.59v1.833H85v-8.895c0-1.698-.43-2.992-1.291-3.882-.968-1.024-2.501-1.536-4.545-1.536zm2.77 7.951v.701c0 1.078-.43 1.968-1.237 2.669-.807.674-1.802 1.024-2.986 1.024-.672 0-1.21-.189-1.64-.512-.43-.324-.619-.728-.619-1.213 0-1.614 1.128-2.473 3.41-2.58l3.072-.089z"})]}))});function W0(e){"@babel/helpers - typeof";return W0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W0(e)}function Ob(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ob(Object(r),!0).forEach(function(n){GQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ob(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GQ(e,t,r){return t=KQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KQ(e){var t=YQ(e,"string");return W0(t)=="symbol"?t:String(t)}function YQ(e,t){if(W0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(W0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZQ(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var XQ=m.memo(function(e){var t=Object.assign({},(ZQ(e),e));return a.jsx(Jt,VQ({Icon:wg,Text:cS,"aria-label":fd,spaceMultiple:FQ,textMultiple:SQ},t))}),jo=wg;jo.Text=cS;jo.Combine=XQ;jo.Avatar=LQ;jo.colorPrimary=uS;jo.title=fd;var tu="SiliconCloud",JQ=.75,QQ=.3,Eg="#7C3AED";function V0(e){"@babel/helpers - typeof";return V0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V0(e)}var eee=["size","style"];function Ab(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ab(Object(r),!0).forEach(function(n){tee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ab(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tee(e,t,r){return t=ree(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ree(e){var t=nee(e,"string");return V0(t)=="symbol"?t:String(t)}function nee(e,t){if(V0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(V0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iee(e,t){if(e==null)return{};var r=aee(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Cg=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=iee(e,eee);return a.jsxs("svg",mm(mm({fill:"currentColor",fillRule:"evenodd",height:r,style:mm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:tu}),a.jsx("path",{clipRule:"evenodd",d:"M20.663 0h-1.741c-5.575 0-8.788 3.56-8.788 9.018v.937a7.161 7.161 0 105.043 5.451h5.486a2.623 2.623 0 100-5.246h-5.458V8.787c0-2.09 1.51-3.6 3.717-3.6h1.741a2.594 2.594 0 000-5.187zM10.29 16.839a2.13 2.13 0 10-4.258-.094 2.13 2.13 0 004.258.094z"})]}))});function G0(e){"@babel/helpers - typeof";return G0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G0(e)}var see=["background"];function Db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Db(Object(r),!0).forEach(function(n){lee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lee(e,t,r){return t=uee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uee(e){var t=cee(e,"string");return G0(t)=="symbol"?t:String(t)}function cee(e,t){if(G0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(G0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dee(e,t){if(e==null)return{};var r=hee(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var fee=m.memo(function(e){var t=e.background,r=dee(e,see);return a.jsx(Zt,oee({Icon:Cg,"aria-label":tu,background:t||Eg,color:"#fff",iconMultiple:.65},r))});function K0(e){"@babel/helpers - typeof";return K0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K0(e)}var pee=["size","style"];function Bb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(r),!0).forEach(function(n){mee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mee(e,t,r){return t=gee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gee(e){var t=yee(e,"string");return K0(t)=="symbol"?t:String(t)}function yee(e,t){if(K0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(K0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bee(e,t){if(e==null)return{};var r=xee(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var dS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=bee(e,pee);return a.jsxs("svg",gm(gm({height:r,style:gm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:tu}),a.jsx("path",{clipRule:"evenodd",d:"M20.663 0h-1.741c-5.575 0-8.788 3.56-8.788 9.018v.937a7.161 7.161 0 105.043 5.451h5.486a2.623 2.623 0 100-5.246h-5.458V8.787c0-2.09 1.51-3.6 3.717-3.6h1.741a2.594 2.594 0 000-5.187zM10.29 16.839a2.13 2.13 0 10-4.258-.094 2.13 2.13 0 004.258.094z",fill:Eg,fillRule:"evenodd"})]}))});function Y0(e){"@babel/helpers - typeof";return Y0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y0(e)}var vee=["size","style"];function Tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ym(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tb(Object(r),!0).forEach(function(n){wee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wee(e,t,r){return t=Eee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eee(e){var t=Cee(e,"string");return Y0(t)=="symbol"?t:String(t)}function Cee(e,t){if(Y0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Y0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function See(e,t){if(e==null)return{};var r=Fee(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var hS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=See(e,vee);return a.jsxs("svg",ym(ym({fill:"currentColor",fillRule:"evenodd",height:r,style:ym({flex:"none",lineHeight:1},n),viewBox:"0 0 230 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:tu}),a.jsx("path",{clipRule:"evenodd",d:"M25.504 22V2h3.481v20h-3.481zM35 2v15.668H52.49V22H33.806c-.623 0-1.16-.274-1.611-.82-.45-.547-.675-1.215-.675-2.003V2h3.481zM55.91 22V2h3.48v20h-3.48zm69.727-4.332V2h3.325v20h-3.325L111.373 6.444V22h-3.326V3.556c0-.393.104-.732.312-1.017.207-.285.467-.427.78-.427h2.234l14.266 15.555h-.002zM159.319 2v15.668h17.487V22h-18.682c-.624 0-1.16-.274-1.61-.82-.45-.547-.675-1.215-.675-2.003V2h3.48zm67.061 17.637c1.247-1.575 1.87-3.457 1.87-5.645V2h-3.429v11.992c0 1.007-.286 1.86-.857 2.56s-1.255 1.05-2.052 1.05h-4.727V2h-3.325v15.602h-4.78c-.796 0-1.473-.35-2.026-1.05-.554-.7-.832-1.553-.832-2.56V2h-3.428v11.992c0 2.188.615 4.07 1.843 5.645 1.23 1.575 2.712 2.363 4.443 2.363h12.832c1.732 0 3.222-.788 4.468-2.363zm-156.556-1.97h13.124V22H69.824c-1.42 0-2.736-.449-3.949-1.345-1.213-.898-2.172-2.1-2.883-3.611-.71-1.509-1.064-3.162-1.064-4.955 0-1.838.355-3.513 1.065-5.022.71-1.51 1.67-2.712 2.882-3.61 1.213-.896 2.529-1.345 3.95-1.345h13.123v4.332H69.824c-1.213 0-2.25.547-3.117 1.641-.866 1.094-1.3 2.429-1.3 4.004 0 1.531.434 2.843 1.3 3.937.866 1.095 1.904 1.642 3.117 1.642zm33.843 2.003c-1.23 1.554-2.727 2.33-4.493 2.33H90.88c-1.731 0-3.211-.776-4.441-2.33s-1.845-3.425-1.845-5.613V10.12c0-2.187.615-4.07 1.845-5.645 1.23-1.575 2.71-2.362 4.441-2.362h8.293c1.766 0 3.263.787 4.493 2.362 1.23 1.575 1.845 3.456 1.845 5.645v3.938c0 2.187-.615 4.058-1.845 5.612zm48.748-17.558v4.332h-17.566v3.412h17.566v4.333h-17.486V22h-3.43V11.666h-.009V2.625h.009v-.513h20.916zm45.999 17.558c-1.229 1.554-2.728 2.33-4.494 2.33h-8.292c-1.732 0-3.212-.776-4.442-2.33s-1.844-3.425-1.844-5.613V10.12c0-2.187.614-4.07 1.844-5.645 1.23-1.575 2.71-2.362 4.442-2.362h8.292c1.766 0 3.265.787 4.494 2.362 1.23 1.575 1.845 3.456 1.845 5.645v3.938c0 2.187-.615 4.058-1.845 5.612zm-176.848.557C20.631 21.41 19.505 22 18.19 22H2v-4.332H18.19c.381 0 .701-.163.962-.492.259-.328.388-.733.388-1.215 0-.481-.129-.886-.388-1.213-.261-.33-.581-.493-.962-.493H6.78c-1.316 0-2.441-.591-3.378-1.773C2.467 11.303 2 9.88 2 8.216c0-1.662.467-3.085 1.402-4.266.936-1.181 2.062-1.772 3.378-1.772h15.305V6.51H6.78c-.381 0-.701.164-.961.493-.26.327-.39.732-.39 1.213 0 .482.13.886.39 1.214.26.329.58.492.961.492h11.409c1.316 0 2.442.592 3.377 1.773.935 1.181 1.403 2.604 1.403 4.266 0 1.663-.468 3.085-1.403 4.266zm79.66-12.667c-.572-.7-1.256-1.05-2.052-1.05H90.88c-.796 0-1.471.35-2.025 1.05-.555.7-.832 1.554-.832 2.56v3.938c.001 1.006.277 1.86.832 2.56.554.7 1.229 1.05 2.025 1.05h8.293c.796 0 1.481-.35 2.052-1.05.571-.7.858-1.553.858-2.56V10.12c0-1.006-.287-1.86-.858-2.56zm94.747 0c-.572-.7-1.257-1.05-2.053-1.05h-8.292c-.797 0-1.472.35-2.025 1.05-.555.7-.832 1.554-.832 2.56v3.938c0 1.006.277 1.86.832 2.56.553.7 1.228 1.05 2.025 1.05h8.292c.796 0 1.481-.35 2.053-1.05.571-.7.857-1.553.857-2.56V10.12c0-1.006-.286-1.86-.857-2.56z"})]}))});function Z0(e){"@babel/helpers - typeof";return Z0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z0(e)}var jee=["type","extraStyle"];function Pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pb(Object(r),!0).forEach(function(n){_ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _ee(e,t,r){return t=kee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kee(e){var t=Oee(e,"string");return Z0(t)=="symbol"?t:String(t)}function Oee(e,t){if(Z0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Z0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aee(e,t){if(e==null)return{};var r=Dee(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Dee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Bee=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=e.extraStyle,i=Aee(e,jee),s=r==="color"?dS:Cg;return a.jsx(Jt,Nb({Icon:s,Text:hS,"aria-label":tu,extraStyle:Nb({fontWeight:500},n),spaceMultiple:QQ,textMultiple:JQ},i))}),_o=Cg;_o.Color=dS;_o.Text=hS;_o.Combine=Bee;_o.Avatar=fee;_o.colorPrimary=Eg;_o.title=tu;var pd="Grok",Tee=.75,Pee=.25,fS="#fff";function X0(e){"@babel/helpers - typeof";return X0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X0(e)}var Nee=["size","style"];function Mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mb(Object(r),!0).forEach(function(n){Mee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mee(e,t,r){return t=Iee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iee(e){var t=$ee(e,"string");return X0(t)=="symbol"?t:String(t)}function $ee(e,t){if(X0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(X0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lee(e,t){if(e==null)return{};var r=Ree(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ree(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var pS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Lee(e,Nee);return a.jsxs("svg",bm(bm({fill:"currentColor",fillRule:"evenodd",height:r,style:bm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:pd}),a.jsx("path",{d:"M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z"})]}))});function J0(e){"@babel/helpers - typeof";return J0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J0(e)}var zee=["background"];function Ib(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Uee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ib(Object(r),!0).forEach(function(n){Hee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ib(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hee(e,t,r){return t=qee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qee(e){var t=Wee(e,"string");return J0(t)=="symbol"?t:String(t)}function Wee(e,t){if(J0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(J0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vee(e,t){if(e==null)return{};var r=Gee(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var mS=m.memo(function(e){var t=e.background,r=Vee(e,zee);return a.jsx(Zt,Uee({Icon:pS,"aria-label":pd,background:t||fS,color:"#000",iconMultiple:.65},r))});function Q0(e){"@babel/helpers - typeof";return Q0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q0(e)}var Kee=["size","style"];function $b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$b(Object(r),!0).forEach(function(n){Yee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yee(e,t,r){return t=Zee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zee(e){var t=Xee(e,"string");return Q0(t)=="symbol"?t:String(t)}function Xee(e,t){if(Q0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Q0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jee(e,t){if(e==null)return{};var r=Qee(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var gS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Jee(e,Kee);return a.jsxs("svg",xm(xm({fill:"currentColor",fillRule:"evenodd",height:r,style:xm({flex:"none",lineHeight:1},n),viewBox:"0 0 41 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:pd}),a.jsx("path",{d:"M36.867 2h2.577v20h-2.577V2zM23.875 2h2.717l7.759 20H31.55l-2.101-5.574h-8.571L18.777 22h-2.69l7.788-20zm4.79 12.185l-3.53-9.272-3.473 9.272h7.003zM7.35 14.381L2.504 7.518h2.857l3.446 5.126 3.585-5.126h2.605l-4.762 6.835L15.501 22h-2.829l-3.977-5.854L4.689 22H2l5.35-7.619z"})]}))});function e1(e){"@babel/helpers - typeof";return e1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e1(e)}function Lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ete(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lb(Object(r),!0).forEach(function(n){tte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tte(e,t,r){return t=rte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rte(e){var t=nte(e,"string");return e1(t)=="symbol"?t:String(t)}function nte(e,t){if(e1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(e1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ite(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var ate=m.memo(function(e){var t=Object.assign({},(ite(e),e));return a.jsx(Jt,ete({Icon:mS,Text:gS,"aria-label":pd,iconProps:{shape:"square"},spaceMultiple:Pee,textMultiple:Tee},t))}),ko=pS;ko.Text=gS;ko.Combine=ate;ko.Avatar=mS;ko.colorPrimary=fS;ko.title=pd;var io="Xinference",ste=.7,ote=.3,yS="#781ff5";function t1(e){"@babel/helpers - typeof";return t1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t1(e)}var lte=["size","style"];function Rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rb(Object(r),!0).forEach(function(n){ute(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ute(e,t,r){return t=cte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cte(e){var t=dte(e,"string");return t1(t)=="symbol"?t:String(t)}function dte(e,t){if(t1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(t1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hte(e,t){if(e==null)return{};var r=fte(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Sg=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=hte(e,lte);return a.jsxs("svg",vm(vm({fill:"currentColor",fillRule:"evenodd",height:r,style:vm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:io}),a.jsx("path",{d:"M5.223 9.692c.652 1.795 1.925 3.376 3.396 4.573 1.482 1.229 3.254 2.17 5.122 2.653a9.99 9.99 0 002.033.302c1.302.05 2.713-.206 3.758-1.04 1.297-1.036 1.651-2.625 1.318-4.21-.209-.993-.641-1.93-1.205-2.787a10.284 10.284 0 00-.366-.525.008.008 0 01.005-.007h.004c.002 0 .004 0 .006.002l.394.405a17.227 17.227 0 012.484 3.262c.579.993 1.023 2.046 1.255 3.144.369 1.747.07 3.546-1.306 4.777-.724.648-1.655 1.041-2.59 1.235-1.297.267-2.649.228-3.965.007-.669-.112-1.315-.26-1.937-.443-2.576-.756-5.012-2.051-7.143-3.677a20.968 20.968 0 01-3.484-3.296C1.949 12.813 1.046 11.396.487 9.853.12 8.845-.087 7.725.035 6.663c.267-2.306 1.98-3.654 4.174-4.06 1.265-.234 2.594-.186 3.879.037a17.71 17.71 0 013.978 1.192v.004a.006.006 0 01-.004.004h-.004a8.907 8.907 0 00-2.869-.29c-.807.048-1.666.263-2.357.656-1.034.588-1.67 1.463-1.907 2.625a4.567 4.567 0 00-.069 1.1c.025.58.163 1.198.367 1.761z"}),a.jsx("path",{d:"M18.02 7.235a.05.05 0 01-.007.03c-.461.916-.923 1.832-1.386 2.747-.424.837-.745 1.437-.965 1.8a17.877 17.877 0 01-2.98 3.707.027.027 0 01-.03.005 12.678 12.678 0 01-4.205-2.777c-.14-.14-.28-.288-.42-.447a.024.024 0 01-.005-.013c0-.005 0-.01.003-.014a17.718 17.718 0 011.68-2.379 18.27 18.27 0 012.7-2.606c.408-.32 1.39-1.094 2.95-2.323L21.652.002a.008.008 0 01.01 0 .01.01 0 01.004.005.01.01 0 010 .006l-3.648 7.222z"}),a.jsx("path",{d:"M2.027 24c.002 0 .004 0 .005-.002l5.843-4.58a.02.02 0 00.008-.017.02.02 0 00-.01-.016 26.743 26.743 0 01-2.584-1.842h-.006a.014.014 0 00-.005.002.012.012 0 00-.004.005L2.02 23.987a.01.01 0 000 .006c0 .002 0 .004.002.005a.009.009 0 00.006.002z"})]}))});function r1(e){"@babel/helpers - typeof";return r1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r1(e)}var pte=["background","size"];function zb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mte(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zb(Object(r),!0).forEach(function(n){gte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gte(e,t,r){return t=yte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yte(e){var t=bte(e,"string");return r1(t)=="symbol"?t:String(t)}function bte(e,t){if(r1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(r1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xte(e,t){if(e==null)return{};var r=vte(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var wte=m.memo(function(e){var t=e.background,r=e.size,n=xte(e,pte);return a.jsx(Zt,mte({Icon:Sg,"aria-label":io,background:t||yS,color:"#fff",iconMultiple:.65,size:r},n))});function n1(e){"@babel/helpers - typeof";return n1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n1(e)}var Ete=["size","style"];function Ub(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ub(Object(r),!0).forEach(function(n){Cte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ub(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cte(e,t,r){return t=Ste(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ste(e){var t=Fte(e,"string");return n1(t)=="symbol"?t:String(t)}function Fte(e,t){if(n1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(n1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jte(e,t){return Ate(e)||Ote(e,t)||kte(e,t)||_te()}function _te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kte(e,t){if(e){if(typeof e=="string")return Hb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hb(e,t)}}function Hb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ote(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,o,l=[],u=!0,c=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(u=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(d){c=!0,i=d}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Ate(e){if(Array.isArray(e))return e}function Dte(e,t){if(e==null)return{};var r=Bte(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var bS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Dte(e,Ete),s=td(io,3),o=jte(s,3),l=o[0],u=o[1],c=o[2];return a.jsxs("svg",wm(wm({height:r,style:wm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:io}),a.jsx("path",{d:"M5.223 9.692c.652 1.795 1.925 3.376 3.396 4.573 1.482 1.229 3.254 2.17 5.122 2.653a9.99 9.99 0 002.033.302c1.302.05 2.713-.206 3.758-1.04 1.297-1.036 1.651-2.625 1.318-4.21-.209-.993-.641-1.93-1.205-2.787a10.284 10.284 0 00-.366-.525.008.008 0 01.005-.007h.004c.002 0 .004 0 .006.002l.394.405a17.227 17.227 0 012.484 3.262c.579.993 1.023 2.046 1.255 3.144.369 1.747.07 3.546-1.306 4.777-.724.648-1.655 1.041-2.59 1.235-1.297.267-2.649.228-3.965.007-.669-.112-1.315-.26-1.937-.443-2.576-.756-5.012-2.051-7.143-3.677a20.968 20.968 0 01-3.484-3.296C1.949 12.813 1.046 11.396.487 9.853.12 8.845-.087 7.725.035 6.663c.267-2.306 1.98-3.654 4.174-4.06 1.265-.234 2.594-.186 3.879.037a17.71 17.71 0 013.978 1.192v.004a.006.006 0 01-.004.004h-.004a8.907 8.907 0 00-2.869-.29c-.807.048-1.666.263-2.357.656-1.034.588-1.67 1.463-1.907 2.625a4.567 4.567 0 00-.069 1.1c.025.58.163 1.198.367 1.761z",fill:l.fill}),a.jsx("path",{d:"M18.02 7.235a.05.05 0 01-.007.03c-.461.916-.923 1.832-1.386 2.747-.424.837-.745 1.437-.965 1.8a17.877 17.877 0 01-2.98 3.707.027.027 0 01-.03.005 12.678 12.678 0 01-4.205-2.777c-.14-.14-.28-.288-.42-.447a.024.024 0 01-.005-.013c0-.005 0-.01.003-.014a17.718 17.718 0 011.68-2.379 18.27 18.27 0 012.7-2.606c.408-.32 1.39-1.094 2.95-2.323L21.652.002a.008.008 0 01.01 0 .01.01 0 01.004.005.01.01 0 010 .006l-3.648 7.222z",fill:u.fill}),a.jsx("path",{d:"M2.027 24c.002 0 .004 0 .005-.002l5.843-4.58a.02.02 0 00.008-.017.02.02 0 00-.01-.016 26.743 26.743 0 01-2.584-1.842h-.006a.014.014 0 00-.005.002.012.012 0 00-.004.005L2.02 23.987a.01.01 0 000 .006c0 .002 0 .004.002.005a.009.009 0 00.006.002z",fill:c.fill}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:l.id,x1:".478",x2:"22.985",y1:"3.451",y2:"19.698",children:[a.jsx("stop",{stopColor:"#6F11F4"}),a.jsx("stop",{offset:"1",stopColor:"#AA66F1"})]}),a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:u.id,x1:"21.676",x2:"2.034",y1:".006",y2:"23.987",children:[a.jsx("stop",{stopColor:"#F52C77"}),a.jsx("stop",{offset:"1",stopColor:"#E9A45F",stopOpacity:".996"})]}),a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:c.id,x1:"21.676",x2:"2.034",y1:".006",y2:"23.987",children:[a.jsx("stop",{stopColor:"#F52C77"}),a.jsx("stop",{offset:"1",stopColor:"#E9A45F",stopOpacity:".996"})]})]})]}))});function i1(e){"@babel/helpers - typeof";return i1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i1(e)}var Tte=["size","style"];function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Em(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(r),!0).forEach(function(n){Pte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pte(e,t,r){return t=Nte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nte(e){var t=Mte(e,"string");return i1(t)=="symbol"?t:String(t)}function Mte(e,t){if(i1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(i1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ite(e,t){if(e==null)return{};var r=$te(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $te(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var xS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Ite(e,Tte);return a.jsxs("svg",Em(Em({fill:"currentColor",fillRule:"evenodd",height:r,style:Em({flex:"none",lineHeight:1},n),viewBox:"0 0 158 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:io}),a.jsx("path",{d:"M58.176 21.653h-3.959a.054.054 0 01-.038-.015.053.053 0 01-.015-.038V9.481a.041.041 0 00-.012-.029.04.04 0 00-.029-.011h-2.188a.038.038 0 01-.038-.038V6.295c0-.018.007-.034.02-.047a.064.064 0 01.045-.019h2.155a.058.058 0 00.04-.017.056.056 0 00.017-.04c-.022-1.27-.052-2.51.281-3.673.133-.46.375-.866.727-1.215 1.057-1.048 2.56-1.33 4.037-1.278 1.047.038 2.07.207 3.072.507a.036.036 0 01.02.017.038.038 0 01.005.026l-.533 2.76a.053.053 0 01-.023.033.052.052 0 01-.04.007c-.661-.157-1.444-.25-2.12-.2-1.11.082-1.34.84-1.352 1.807-.005.406-.006.816-.002 1.229a.037.037 0 00.024.034c.004.002.009.003.014.003h2.943a.066.066 0 01.065.066v3.084a.06.06 0 01-.06.06h-2.957a.031.031 0 00-.031.031v12.116a.067.067 0 01-.068.067zM31.29.362H27.3a.046.046 0 00-.046.046v3.686c0 .025.02.046.046.046h3.99c.026 0 .047-.02.047-.046V.408a.046.046 0 00-.047-.046zM12.597 14.332l-5.696 7.462a.03.03 0 01-.025.012H2.321a.03.03 0 01-.031-.034.03.03 0 01.006-.016l8.005-10.302a.03.03 0 000-.037L2.005.976a.03.03 0 01.023-.05L6.57.868a.03.03 0 01.024.012L23.18 21.756a.03.03 0 01.007.016.03.03 0 01-.015.03.031.031 0 01-.016.004h-4.556a.03.03 0 01-.024-.012l-5.93-7.463a.03.03 0 00-.038-.008.03.03 0 00-.01.009zM15.625 10.937l-2.298-2.893a.03.03 0 010-.037L18.914.875a.03.03 0 01.025-.012l4.513.065a.03.03 0 01.024.05l-7.803 9.959a.031.031 0 01-.024.011.03.03 0 01-.013-.003.032.032 0 01-.01-.008zM100.694 16.754l3.927.66a.049.049 0 01.022.01c.007.004.013.01.017.017a.063.063 0 01.008.023.05.05 0 01-.003.025c-1.223 3.482-4.178 4.79-7.715 4.463-2.74-.254-4.803-1.628-5.825-4.266-.339-.877-.537-1.845-.596-2.904-.133-2.439.33-4.978 2.06-6.803 1.477-1.559 3.386-2.246 5.725-2.063 3.281.256 5.532 2.288 6.253 5.473a14.7 14.7 0 01.338 3.695.04.04 0 01-.011.024.035.035 0 01-.024.01H94.728a.039.039 0 00-.028.011.04.04 0 00-.011.03c.013.425.067.83.162 1.212.323 1.3 1.307 2.358 2.672 2.543 1.324.181 2.387-.335 2.9-1.598.029-.072.097-.246.203-.523a.067.067 0 01.027-.031.064.064 0 01.041-.008zm-5.898-4.133h6.016a.023.023 0 00.022-.022v-.305c0-.87-.31-1.706-.86-2.322-.551-.615-1.298-.961-2.077-.961h-.186c-.779 0-1.526.346-2.077.961-.55.616-.86 1.451-.86 2.322v.305c0 .006.003.012.007.016s.01.006.015.006zM111.996 8.408c0 .007.002.013.006.02.004.005.01.01.016.011a.035.035 0 00.021 0 .033.033 0 00.016-.01c1.419-1.815 3.237-2.659 5.456-2.532 1.058.06 2.094.387 2.96.99 1.635 1.135 1.793 3.195 1.791 5.05-.001 1.774-.002 4.996-.001 9.666a.049.049 0 01-.014.035.052.052 0 01-.035.014h-3.96a.072.072 0 01-.071-.07c.003-3.664.002-6.442-.004-8.334a21.26 21.26 0 00-.058-1.514c-.046-.657-.153-1.146-.32-1.468-.42-.81-1.112-1.229-2.077-1.256a3.223 3.223 0 00-1.709.42c-.904.514-1.428 1.317-1.573 2.41a16.86 16.86 0 00-.147 2.156c-.01 2.558-.011 5.085-.004 7.58 0 .01-.002.02-.006.03a.075.075 0 01-.069.046h-3.942a.065.065 0 01-.047-.02.064.064 0 01-.02-.046V6.294c0-.017.007-.033.019-.044a.06.06 0 01.044-.019h3.677c.013 0 .026.006.036.015.009.01.015.022.015.036v2.126zM39.277 8.41c0 .007.002.014.006.02a.034.034 0 00.037.013.033.033 0 00.017-.012c1.418-1.815 3.237-2.659 5.455-2.532 1.059.06 2.095.386 2.961.988 1.636 1.136 1.793 3.196 1.792 5.051-.001 1.775-.002 4.997 0 9.667a.048.048 0 01-.049.049h-3.96a.07.07 0 01-.07-.07c.002-3.664 0-6.442-.007-8.334a21.62 21.62 0 00-.058-1.514c-.046-.657-.153-1.146-.32-1.468-.42-.81-1.112-1.229-2.077-1.256a3.222 3.222 0 00-1.71.42c-.903.514-1.427 1.318-1.572 2.411A16.917 16.917 0 0039.575 14c-.009 2.558-.01 5.085-.003 7.582a.075.075 0 01-.075.075h-3.942a.067.067 0 01-.047-.02.065.065 0 01-.02-.046l-.001-15.293a.063.063 0 01.062-.063h3.677c.013 0 .026.005.036.014a.05.05 0 01.015.036V8.41zM72.515 16.793a.061.061 0 01.067-.038l3.926.66a.055.055 0 01.04.027.056.056 0 01.005.047c-1.224 3.482-4.18 4.788-7.716 4.46-2.74-.253-4.802-1.629-5.823-4.267-.339-.877-.537-1.844-.594-2.903-.134-2.438.33-4.978 2.06-6.802 1.478-1.558 3.387-2.245 5.726-2.062 3.28.259 5.53 2.29 6.25 5.476.264 1.168.376 2.4.337 3.694a.035.035 0 01-.035.034l-10.14-.004a.039.039 0 00-.029.012.04.04 0 00-.01.029c.012.426.066.83.16 1.213.324 1.3 1.307 2.358 2.672 2.544 1.323.181 2.387-.335 2.9-1.597l.204-.523zm-5.82-4.18l5.99.01c.01 0 .018-.004.025-.01a.036.036 0 00.01-.026l.001-.277c.002-.873-.305-1.711-.853-2.33-.548-.618-1.292-.966-2.069-.968h-.205a2.65 2.65 0 00-1.12.249 2.932 2.932 0 00-.952.712 3.346 3.346 0 00-.637 1.067c-.148.4-.224.827-.225 1.26v.277a.036.036 0 00.035.036zM80.026 21.653a.077.077 0 01-.078-.078V6.283a.047.047 0 01.047-.047h3.708c.01 0 .02.004.027.01a.037.037 0 01.011.027v2.072a.027.027 0 00.02.025.027.027 0 00.03-.012 8.261 8.261 0 011.175-1.548c1.299-1.344 3.439-1.062 4.906-.197a.094.094 0 01.041.112l-1.21 3.41a.065.065 0 01-.098.032c-.18-.12-.408-.24-.681-.362-1.106-.492-2.56-.314-3.158.895-.242.49-.396.927-.462 1.31-.151.877-.235 1.88-.25 3.01a314.356 314.356 0 00-.019 6.583.05.05 0 01-.05.05h-3.96zM136.02 15.827a.085.085 0 01.034-.054.085.085 0 01.063-.015l3.88.653c.005 0 .009.002.013.005a.028.028 0 01.01.009.033.033 0 01.006.027c-.258 1.278-.778 2.392-1.559 3.343-1.46 1.779-3.793 2.281-6.012 2.19-3.693-.153-6.211-2.494-6.8-6.117a12.359 12.359 0 01.011-3.919c.348-2.223 1.557-4.17 3.552-5.22 1.086-.572 2.313-.816 3.525-.84 2.224-.048 4.439.463 5.846 2.324a7.375 7.375 0 011.24 2.561l.001.007a.091.091 0 01-.003.007.015.015 0 01-.005.005.018.018 0 01-.006.003l-3.945.712a.056.056 0 01-.042-.01.042.042 0 01-.014-.015.05.05 0 01-.008-.02c-.281-1.784-1.67-2.61-3.382-2.317-1.525.26-2.336 1.34-2.585 2.812-.21 1.233-.192 2.529.053 3.886.287 1.58 1.326 2.73 2.998 2.824 1.109.063 2.137-.364 2.646-1.374a5.35 5.35 0 00.483-1.467zM151.867 16.793a.062.062 0 01.027-.031.06.06 0 01.04-.008l3.926.662a.06.06 0 01.023.01.053.053 0 01.024.04.066.066 0 01-.002.024c-1.224 3.482-4.18 4.788-7.715 4.46-2.741-.254-4.802-1.629-5.823-4.267-.34-.877-.538-1.845-.595-2.903-.133-2.44.33-4.979 2.061-6.803 1.478-1.558 3.386-2.245 5.725-2.06 3.281.257 5.531 2.289 6.251 5.474.264 1.168.376 2.4.336 3.695a.032.032 0 01-.011.023.034.034 0 01-.024.01l-10.14-.003a.04.04 0 00-.029.012.055.055 0 00-.008.013.041.041 0 00-.003.015c.013.426.067.83.162 1.213.323 1.3 1.307 2.358 2.672 2.544 1.322.181 2.386-.334 2.899-1.597.03-.072.098-.246.204-.523zm-5.828-4.175h6.011a.026.026 0 00.017-.007.024.024 0 00.006-.016v-.302c0-.43-.076-.857-.223-1.255a3.33 3.33 0 00-.636-1.065 2.942 2.942 0 00-.952-.71 2.67 2.67 0 00-1.123-.25h-.189c-.778 0-1.525.345-2.075.96-.55.616-.859 1.45-.859 2.32v.302c0 .006.002.012.006.016a.026.026 0 00.017.007zM31.285 6.233h-3.98a.052.052 0 00-.051.052V21.6c0 .028.023.052.052.052h3.979a.052.052 0 00.052-.052V6.285a.052.052 0 00-.052-.052z"})]}))});function a1(e){"@babel/helpers - typeof";return a1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a1(e)}var Lte=["type"];function Wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rte(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wb(Object(r),!0).forEach(function(n){zte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zte(e,t,r){return t=Ute(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ute(e){var t=Hte(e,"string");return a1(t)=="symbol"?t:String(t)}function Hte(e,t){if(a1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(a1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qte(e,t){if(e==null)return{};var r=Wte(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Vte=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=qte(e,Lte),i=r==="color"?bS:Sg;return a.jsx(Jt,Rte({Icon:i,Text:xS,"aria-label":io,spaceMultiple:ote,textMultiple:ste},n))}),Oo=Sg;Oo.Color=bS;Oo.Text=xS;Oo.Combine=Vte;Oo.Avatar=wte;Oo.colorPrimary=yS;Oo.title=io;var ru="Zhipu",Gte=.65,Kte=.2,vS="#3859FF";function s1(e){"@babel/helpers - typeof";return s1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s1(e)}var Yte=["size","style"];function Vb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vb(Object(r),!0).forEach(function(n){Zte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zte(e,t,r){return t=Xte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xte(e){var t=Jte(e,"string");return s1(t)=="symbol"?t:String(t)}function Jte(e,t){if(s1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(s1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qte(e,t){if(e==null)return{};var r=ere(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ere(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Fg=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Qte(e,Yte);return a.jsxs("svg",Cm(Cm({fill:"currentColor",fillRule:"evenodd",height:r,style:Cm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ru}),a.jsx("path",{d:"M11.991 23.503a.24.24 0 00-.244.248.24.24 0 00.244.249.24.24 0 00.245-.249.24.24 0 00-.22-.247l-.025-.001zM9.671 5.365a1.697 1.697 0 011.099 2.132l-.071.172-.016.04-.018.054c-.07.16-.104.32-.104.498-.035.71.47 1.279 1.186 1.314h.366c1.309.053 2.338 1.173 2.286 2.523-.052 1.332-1.152 2.38-2.478 2.327h-.174c-.715.018-1.274.64-1.239 1.368 0 .124.018.23.053.337.209.373.54.658.96.8.75.23 1.517-.125 1.9-.782l.018-.035c.402-.64 1.17-.96 1.92-.711.854.284 1.378 1.226 1.099 2.167a1.661 1.661 0 01-2.077 1.102 1.711 1.711 0 01-.907-.711l-.017-.035c-.2-.323-.463-.58-.851-.711l-.056-.018a1.646 1.646 0 00-1.954.746 1.66 1.66 0 01-1.065.764 1.677 1.677 0 01-1.989-1.279c-.209-.906.332-1.83 1.257-2.043a1.51 1.51 0 01.296-.035h.018c.68-.071 1.151-.622 1.116-1.333a1.307 1.307 0 00-.227-.693 2.515 2.515 0 01-.366-1.403 2.39 2.39 0 01.366-1.208c.14-.195.21-.444.227-.693.018-.71-.506-1.261-1.186-1.332l-.07-.018a1.43 1.43 0 01-.299-.07l-.05-.019a1.7 1.7 0 01-1.047-2.114 1.68 1.68 0 012.094-1.101zm-5.575 10.11c.26-.264.639-.367.994-.27.355.096.633.379.728.74.095.362-.007.748-.267 1.013-.402.41-1.053.41-1.455 0a1.062 1.062 0 010-1.482zm14.845-.294c.359-.09.738.024.992.297.254.274.344.665.237 1.025-.107.36-.396.634-.756.718-.551.128-1.1-.22-1.23-.781a1.05 1.05 0 01.757-1.26zm-.064-4.39c.314.32.49.753.49 1.206 0 .452-.176.886-.49 1.206-.315.32-.74.5-1.185.5-.444 0-.87-.18-1.184-.5a1.727 1.727 0 010-2.412 1.654 1.654 0 012.369 0zm-11.243.163c.364.484.447 1.128.218 1.691a1.665 1.665 0 01-2.188.923c-.855-.36-1.26-1.358-.907-2.228a1.68 1.68 0 011.33-1.038c.593-.08 1.183.169 1.547.652zm11.545-4.221c.368 0 .708.2.892.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.892.524c-.568 0-1.03-.47-1.03-1.048 0-.579.462-1.048 1.03-1.048zm-14.358 0c.368 0 .707.2.891.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.891.524c-.569 0-1.03-.47-1.03-1.048 0-.579.461-1.048 1.03-1.048zm10.031-1.475c.925 0 1.675.764 1.675 1.706s-.75 1.705-1.675 1.705-1.674-.763-1.674-1.705c0-.942.75-1.706 1.674-1.706zm-2.626-.684c.362-.082.653-.356.761-.718a1.062 1.062 0 00-.238-1.028 1.017 1.017 0 00-.996-.294c-.547.14-.881.7-.752 1.257.13.558.675.907 1.225.783zm0 16.876c.359-.087.644-.36.75-.72a1.062 1.062 0 00-.237-1.019 1.018 1.018 0 00-.985-.301 1.037 1.037 0 00-.762.717c-.108.361-.017.754.239 1.028.245.263.606.377.953.305l.043-.01zM17.19 3.5a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64a.631.631 0 00-.628.64c0 .355.28.64.628.64zm-10.38 0a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64a.631.631 0 00-.628.64c0 .355.279.64.628.64zm-5.182 7.852a.631.631 0 00-.628.64c0 .354.28.639.628.639a.63.63 0 00.627-.606l.001-.034a.62.62 0 00-.628-.64zm5.182 9.13a.631.631 0 00-.628.64c0 .355.279.64.628.64a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm10.38.018a.631.631 0 00-.628.64c0 .355.28.64.628.64a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64zm5.182-9.148a.631.631 0 00-.628.64c0 .354.279.639.628.639a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm-.384-4.992a.24.24 0 00.244-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249c0 .142.122.249.244.249zM11.991.497a.24.24 0 00.245-.248A.24.24 0 0011.99 0a.24.24 0 00-.244.249c0 .133.108.236.223.247l.021.001zM2.011 6.36a.24.24 0 00.245-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249.24.24 0 00.244.249zm0 11.263a.24.24 0 00-.243.248.24.24 0 00.244.249.24.24 0 00.244-.249.252.252 0 00-.244-.248zm19.995-.018a.24.24 0 00-.245.248.24.24 0 00.245.25.24.24 0 00.244-.25.252.252 0 00-.244-.248z"})]}))});function o1(e){"@babel/helpers - typeof";return o1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o1(e)}var tre=["background"];function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rre(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(n){nre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nre(e,t,r){return t=ire(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ire(e){var t=are(e,"string");return o1(t)=="symbol"?t:String(t)}function are(e,t){if(o1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(o1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sre(e,t){if(e==null)return{};var r=ore(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ore(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var lre=m.memo(function(e){var t=e.background,r=sre(e,tre);return a.jsx(Zt,rre({Icon:Fg,"aria-label":ru,background:t||vS},r))});function l1(e){"@babel/helpers - typeof";return l1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l1(e)}var ure=["size","style"];function Kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(r),!0).forEach(function(n){cre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cre(e,t,r){return t=dre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dre(e){var t=hre(e,"string");return l1(t)=="symbol"?t:String(t)}function hre(e,t){if(l1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(l1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fre(e,t){if(e==null)return{};var r=pre(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var wS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=fre(e,ure);return a.jsxs("svg",Sm(Sm({height:r,style:Sm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ru}),a.jsx("path",{d:"M11.991 23.503a.24.24 0 00-.244.248.24.24 0 00.244.249.24.24 0 00.245-.249.24.24 0 00-.22-.247l-.025-.001zM9.671 5.365a1.697 1.697 0 011.099 2.132l-.071.172-.016.04-.018.054c-.07.16-.104.32-.104.498-.035.71.47 1.279 1.186 1.314h.366c1.309.053 2.338 1.173 2.286 2.523-.052 1.332-1.152 2.38-2.478 2.327h-.174c-.715.018-1.274.64-1.239 1.368 0 .124.018.23.053.337.209.373.54.658.96.8.75.23 1.517-.125 1.9-.782l.018-.035c.402-.64 1.17-.96 1.92-.711.854.284 1.378 1.226 1.099 2.167a1.661 1.661 0 01-2.077 1.102 1.711 1.711 0 01-.907-.711l-.017-.035c-.2-.323-.463-.58-.851-.711l-.056-.018a1.646 1.646 0 00-1.954.746 1.66 1.66 0 01-1.065.764 1.677 1.677 0 01-1.989-1.279c-.209-.906.332-1.83 1.257-2.043a1.51 1.51 0 01.296-.035h.018c.68-.071 1.151-.622 1.116-1.333a1.307 1.307 0 00-.227-.693 2.515 2.515 0 01-.366-1.403 2.39 2.39 0 01.366-1.208c.14-.195.21-.444.227-.693.018-.71-.506-1.261-1.186-1.332l-.07-.018a1.43 1.43 0 01-.299-.07l-.05-.019a1.7 1.7 0 01-1.047-2.114 1.68 1.68 0 012.094-1.101zm-5.575 10.11c.26-.264.639-.367.994-.27.355.096.633.379.728.74.095.362-.007.748-.267 1.013-.402.41-1.053.41-1.455 0a1.062 1.062 0 010-1.482zm14.845-.294c.359-.09.738.024.992.297.254.274.344.665.237 1.025-.107.36-.396.634-.756.718-.551.128-1.1-.22-1.23-.781a1.05 1.05 0 01.757-1.26zm-.064-4.39c.314.32.49.753.49 1.206 0 .452-.176.886-.49 1.206-.315.32-.74.5-1.185.5-.444 0-.87-.18-1.184-.5a1.727 1.727 0 010-2.412 1.654 1.654 0 012.369 0zm-11.243.163c.364.484.447 1.128.218 1.691a1.665 1.665 0 01-2.188.923c-.855-.36-1.26-1.358-.907-2.228a1.68 1.68 0 011.33-1.038c.593-.08 1.183.169 1.547.652zm11.545-4.221c.368 0 .708.2.892.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.892.524c-.568 0-1.03-.47-1.03-1.048 0-.579.462-1.048 1.03-1.048zm-14.358 0c.368 0 .707.2.891.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.891.524c-.569 0-1.03-.47-1.03-1.048 0-.579.461-1.048 1.03-1.048zm10.031-1.475c.925 0 1.675.764 1.675 1.706s-.75 1.705-1.675 1.705-1.674-.763-1.674-1.705c0-.942.75-1.706 1.674-1.706zm-2.626-.684c.362-.082.653-.356.761-.718a1.062 1.062 0 00-.238-1.028 1.017 1.017 0 00-.996-.294c-.547.14-.881.7-.752 1.257.13.558.675.907 1.225.783zm0 16.876c.359-.087.644-.36.75-.72a1.062 1.062 0 00-.237-1.019 1.018 1.018 0 00-.985-.301 1.037 1.037 0 00-.762.717c-.108.361-.017.754.239 1.028.245.263.606.377.953.305l.043-.01zM17.19 3.5a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64a.631.631 0 00-.628.64c0 .355.28.64.628.64zm-10.38 0a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64a.631.631 0 00-.628.64c0 .355.279.64.628.64zm-5.182 7.852a.631.631 0 00-.628.64c0 .354.28.639.628.639a.63.63 0 00.627-.606l.001-.034a.62.62 0 00-.628-.64zm5.182 9.13a.631.631 0 00-.628.64c0 .355.279.64.628.64a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm10.38.018a.631.631 0 00-.628.64c0 .355.28.64.628.64a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64zm5.182-9.148a.631.631 0 00-.628.64c0 .354.279.639.628.639a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm-.384-4.992a.24.24 0 00.244-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249c0 .142.122.249.244.249zM11.991.497a.24.24 0 00.245-.248A.24.24 0 0011.99 0a.24.24 0 00-.244.249c0 .133.108.236.223.247l.021.001zM2.011 6.36a.24.24 0 00.245-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249.24.24 0 00.244.249zm0 11.263a.24.24 0 00-.243.248.24.24 0 00.244.249.24.24 0 00.244-.249.252.252 0 00-.244-.248zm19.995-.018a.24.24 0 00-.245.248.24.24 0 00.245.25.24.24 0 00.244-.25.252.252 0 00-.244-.248z",fill:"#3859FF",fillRule:"nonzero"})]}))});function u1(e){"@babel/helpers - typeof";return u1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u1(e)}var mre=["size","style"];function Yb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yb(Object(r),!0).forEach(function(n){gre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gre(e,t,r){return t=yre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yre(e){var t=bre(e,"string");return u1(t)=="symbol"?t:String(t)}function bre(e,t){if(u1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(u1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xre(e,t){if(e==null)return{};var r=vre(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var ES=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=xre(e,mre);return a.jsxs("svg",Fm(Fm({fill:"currentColor",fillRule:"evenodd",height:r,style:Fm({flex:"none",lineHeight:1},n),viewBox:"0 0 64 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ru}),a.jsx("path",{d:"M63 3.405h-2.67v17.19H63V3.405zm-6.646 0l2.76 17.19h-2.7l-.297-1.943-.149-.927c-.03-.18-.267-.329-.534-.329H53.12c-.267 0-.504.15-.534.329l-.148.927-.297 1.943H49.68l2.73-17.19h3.945zm-2.106 3.797c-.178 0-.327.15-.356.359l-.92 7.503c0 .15.118.3.267.3h2.047c.148 0 .267-.12.237-.3l-.92-7.503c-.03-.21-.177-.36-.355-.36zm-10.325 5.5a1.31 1.31 0 001.305-1.315 1.31 1.31 0 00-1.305-1.315 1.31 1.31 0 00-1.306 1.315c0 .705.55 1.28 1.242 1.314l.064.002zm-7.329.987V22h-1.78v-.777H28.97V22h-1.72v-8.31h9.345zM4.136 2l1.662.15a6.024 6.024 0 01-.564 1.405h4.955v1.554H7.786c0 .21-.03.508-.06.867l-.002.74c-.005.567-.019 1.226-.057 1.323h3.026v1.554H7.46c.505.39 1.306.927 2.344 1.645.386.239.653.448.83.538l-.978 1.554h6.853v8.61h-1.84v-.867H5.947v.867h-1.78v-8.55c-.356.15-.742.359-1.098.628a17.279 17.279 0 00-1.038-1.644c1.899-.778 3.115-1.734 3.56-2.81H2.148V8.009h3.768c.09-.508.149-2.272.149-2.9H4.403a8.78 8.78 0 01-1.305 1.644c-.119-.09-.208-.239-.356-.388-.09-.18-.327-.449-.742-.867A8.205 8.205 0 004.136 2zm20.65 7.743v8.37l.129-.15a3.36 3.36 0 01.099-.108l.039-.04c.564-.568.95-1.017 1.157-1.346.119.538.208 1.256.356 2.183-1.305 1.196-2.284 2.242-2.937 3.109l-1.098-1.704c.326-.3.475-.777.475-1.465v-6.906h-1.454V9.743h3.234zm10.028 8.46H28.97v1.555h5.845v-1.555zm-20.145-.209H5.946v1.704h8.723v-1.704zm20.145-2.75H28.97v1.644h5.845v-1.644zm-20.145-.3H5.946v1.645h8.723v-1.644zM6.717 10.91c-.415.807-1.216 1.614-2.462 2.391h5.4l-.674-.558c-.445-.366-.977-.8-1.581-1.295l-.194-.172c-.188-.164-.355-.299-.489-.366zm21.273-8.49l1.662-.39.084.124c.116.175.251.395.416.648l.272.414c.308.473.535.84.682 1.087h1.661a21.46 21.46 0 001.365-2.242l1.72.388c-.118.09-.207.27-.355.539l-.175.276c-.147.23-.371.58-.656 1.039h3.026v1.465h-3.53v5.052h3.975v1.465h-12.49v-1.465h3.856V5.737H26.27V4.272h2.878l-.302-.52c-.38-.645-.665-1.094-.855-1.333zm-10.236.986v8.58h-6.379v-8.58h6.38zm14.924 2.332h-1.572v5.082h1.572V5.737zm-16.555-.598h-3.086v5.232h3.086V5.139zM26.21 7.59l1.157-.867.155.185c.175.213.409.51.676.892.386.448.653.807.83 1.076l-1.245.957-.113-.176a45.578 45.578 0 00-1.46-2.067zm10.206-.896l1.246.867-.058.095c-.192.307-.526.777-.98 1.37l-.203.304a3.5 3.5 0 01-.36.473l-1.217-.927.418-.54c.549-.714.939-1.256 1.154-1.642zm-14.39-3.289l1.366-.927.322.41c.533.68 1.162 1.513 1.873 2.55l-1.572 1.076-.09-.152c-.21-.348-.542-.86-.995-1.534l-.073-.108a24.604 24.604 0 01-.83-1.315z"})]}))});function c1(e){"@babel/helpers - typeof";return c1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c1(e)}var wre=["type"];function Zb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ere(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zb(Object(r),!0).forEach(function(n){Cre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cre(e,t,r){return t=Sre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sre(e){var t=Fre(e,"string");return c1(t)=="symbol"?t:String(t)}function Fre(e,t){if(c1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(c1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jre(e,t){if(e==null)return{};var r=_re(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _re(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var kre=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=jre(e,wre),i=r==="color"?wS:Fg;return a.jsx(Jt,Ere({Icon:i,Text:ES,"aria-label":ru,spaceMultiple:Kte,textMultiple:Gte},n))}),Os=Fg;Os.Color=wS;Os.Text=ES;Os.Combine=kre;Os.Avatar=lre;Os.colorPrimary=vS;Os.title=ru;var md="Coze",Ore=.7,Are=.2,CS="#4D53E8";function d1(e){"@babel/helpers - typeof";return d1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d1(e)}var Dre=["size","style"];function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(n){Bre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bre(e,t,r){return t=Tre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tre(e){var t=Pre(e,"string");return d1(t)=="symbol"?t:String(t)}function Pre(e,t){if(d1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(d1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nre(e,t){if(e==null)return{};var r=Mre(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var SS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Nre(e,Dre);return a.jsxs("svg",jm(jm({fill:"currentColor",fillRule:"evenodd",height:r,style:jm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:md}),a.jsx("path",{clipRule:"evenodd",d:"M3.908 9.096A8.092 8.092 0 0111.998 1h.006c4.468 0 8.09 3.628 8.09 8.096v3.392h1.942c2.23 0 2.732 3.126.615 3.828l-2.556.85v1.466a1.947 1.947 0 01-2.818 1.742l-1.42-.707c-.067-.03-.149 0-.17.071-1.147 3.587-6.225 3.587-7.373 0a.123.123 0 00-.169-.07l-1.42.706c-1.29.65-2.817-.292-2.817-1.742v-1.466l-2.557-.85c-2.122-.697-1.614-3.828.615-3.828h1.942V9.096zm4.571 2.613a.784.784 0 00-.784.784v1.568a.784.784 0 101.568 0v-1.568a.784.784 0 00-.784-.784zm7.045.779a.784.784 0 100 1.568.784.784 0 000-1.568zm-6.186 3.415a.78.78 0 00.17.254 3.517 3.517 0 004.98 0 .782.782 0 10-1.106-1.107 1.958 1.958 0 01-2.767 0 .78.78 0 00-1.277.254.78.78 0 000 .6z"})]}))});function h1(e){"@babel/helpers - typeof";return h1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h1(e)}var Ire=["background"];function Jb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jb(Object(r),!0).forEach(function(n){Lre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lre(e,t,r){return t=Rre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rre(e){var t=zre(e,"string");return h1(t)=="symbol"?t:String(t)}function zre(e,t){if(h1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(h1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ure(e,t){if(e==null)return{};var r=Hre(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Hre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var FS=m.memo(function(e){var t=e.background,r=Ure(e,Ire);return a.jsx(Zt,$re({Icon:SS,"aria-label":md,background:t||CS,color:"#fff",iconMultiple:.7},r))});function f1(e){"@babel/helpers - typeof";return f1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f1(e)}var qre=["size","style"];function Qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _m(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(r),!0).forEach(function(n){Wre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wre(e,t,r){return t=Vre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vre(e){var t=Gre(e,"string");return f1(t)=="symbol"?t:String(t)}function Gre(e,t){if(f1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(f1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kre(e,t){if(e==null)return{};var r=Yre(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var jS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Kre(e,qre);return a.jsxs("svg",_m(_m({fill:"currentColor",fillRule:"evenodd",height:r,style:_m({flex:"none",lineHeight:1},n),viewBox:"0 0 85 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:md}),a.jsx("path",{clipRule:"evenodd",d:"M41.947 11.99c0 5.52-4.57 9.993-10.206 9.993-5.636 0-10.206-4.474-10.206-9.991C21.535 6.473 26.105 2 31.741 2c5.637 0 10.206 4.473 10.206 9.99zm-10.204 6.2c-3.223 0-5.835-2.775-5.835-6.2v.002c0-3.424 2.612-6.2 5.835-6.2 3.222 0 5.834 2.775 5.834 6.2 0 3.423-2.612 6.198-5.834 6.198zM74.142 21.987c-5.541 0-9.815-4.02-9.815-9.924v-.072c0-5.47 3.875-9.96 9.344-9.96 6.085 0 9.163 4.78 9.163 10.286 0 .158 0 .358-.024.594l-.01.136a.541.541 0 01-.541.501h-13.55c.47 3.115 2.68 4.853 5.505 4.853 1.963 0 3.407-.672 4.808-1.933a.563.563 0 01.751-.01l1.795 1.592a.526.526 0 01.048.75c-1.779 1.946-4.181 3.187-7.474 3.187zm4.255-11.973h-9.613c.567-2.624 2.367-4.397 4.85-4.397 2.676 0 4.302 1.884 4.763 4.397z"}),a.jsx("path",{d:"M18.648 19.592a.528.528 0 00-.064-.367l-1.48-2.56c-.193-.336-.666-.369-.944-.098-1.04 1.019-2.428 1.642-3.954 1.642-3.222 0-5.835-2.776-5.835-6.2 0-3.423 2.613-6.199 5.835-6.199 1.598 0 3.047.683 4.1 1.789.274.288.764.262.963-.082l1.493-2.585a.527.527 0 00-.12-.679 10.299 10.299 0 00-6.436-2.235C6.57 2.018 2 6.49 2 12.009S6.57 22 12.206 22c2.255.006 4.45-.728 6.247-2.09a.527.527 0 00.195-.318zM45.699 2.673a.546.546 0 00-.547.546v2.42a.546.546 0 00.547.546h10.296L44.953 18.176a.545.545 0 00-.144.37v2.304a.547.547 0 00.546.547h15.509a.546.546 0 00.546-.547v-2.42a.546.546 0 00-.546-.546h-10.61L61.42 5.757h.002V3.218a.546.546 0 00-.546-.546H45.7z"})]}))});function p1(e){"@babel/helpers - typeof";return p1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p1(e)}function e9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zre(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e9(Object(r),!0).forEach(function(n){Xre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xre(e,t,r){return t=Jre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jre(e){var t=Qre(e,"string");return p1(t)=="symbol"?t:String(t)}function Qre(e,t){if(p1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(p1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ene(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var tne=m.memo(function(e){var t=Object.assign({},(ene(e),e));return a.jsx(Jt,Zre({Icon:FS,Text:jS,"aria-label":md,iconProps:{shape:"square"},spaceMultiple:Are,textMultiple:Ore},t))}),nu=SS;nu.Text=jS;nu.Combine=tne;nu.Avatar=FS;nu.colorPrimary=CS;nu.title=md;var ka="Dify",rne=1,nne=.15,_S="#fff",kS="conic-gradient(from 180deg at 50% 50%, #0222C3, #8FB1F4, #FFFFFF)";function m1(e){"@babel/helpers - typeof";return m1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m1(e)}var ine=["size","style"];function t9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function km(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t9(Object(r),!0).forEach(function(n){ane(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ane(e,t,r){return t=sne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sne(e){var t=one(e,"string");return m1(t)=="symbol"?t:String(t)}function one(e,t){if(m1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(m1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lne(e,t){if(e==null)return{};var r=une(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function une(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var jg=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=lne(e,ine),s=bo(ka),o=s.fill,l=s.id;return a.jsxs("svg",km(km({fill:"currentColor",fillRule:"evenodd",height:r,style:km({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ka}),a.jsx("clipPath",{id:l,children:a.jsx("path",{d:"M1 0h10.286c6.627 0 12 5.373 12 12s-5.373 12-12 12H1V0z"})}),a.jsx("foreignObject",{clipPath:o,height:"24",style:{background:kS},width:"24"})]}))});function g1(e){"@babel/helpers - typeof";return g1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g1(e)}var cne=["shape","background","size","iconStyle"];function r9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function n9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?r9(Object(r),!0).forEach(function(n){dne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dne(e,t,r){return t=hne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hne(e){var t=fne(e,"string");return g1(t)=="symbol"?t:String(t)}function fne(e,t){if(g1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(g1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pne(e,t){if(e==null)return{};var r=mne(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var gne=m.memo(function(e){var t=e.shape,r=t===void 0?"circle":t,n=e.background,i=e.size,s=e.iconStyle,o=pne(e,cne);return a.jsx(Zt,n9({Icon:jg,"aria-label":ka,background:n||_S,color:"#fff",iconMultiple:.65,iconStyle:n9({marginLeft:r==="circle"?i*.1:void 0},s),shape:r,size:i},o))});function y1(e){"@babel/helpers - typeof";return y1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y1(e)}var yne=["size","style","color"];function i9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Om(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i9(Object(r),!0).forEach(function(n){bne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bne(e,t,r){return t=xne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xne(e){var t=vne(e,"string");return y1(t)=="symbol"?t:String(t)}function vne(e,t){if(y1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(y1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wne(e,t){if(e==null)return{};var r=Ene(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ene(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var OS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=e.color,s=wne(e,yne),o=bo(ka),l=o.fill,u=o.id,c=q2(),d=c.isDarkMode;return a.jsxs("svg",Om(Om({fill:"currentColor",fillRule:"evenodd",height:r,style:Om({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[a.jsx("title",{children:ka}),a.jsx("clipPath",{id:u,children:a.jsx("path",{d:"M1 0h10.286c6.627 0 12 5.373 12 12s-5.373 12-12 12H1V0z"})}),a.jsx("foreignObject",{clipPath:l,height:"24",style:{background:"conic-gradient(from 180deg at 50% 50%, transparent, ".concat(i||(d?"#fff":"#000"),")")},width:"24"})]}))});function b1(e){"@babel/helpers - typeof";return b1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b1(e)}var Cne=["size","style"];function a9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Am(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a9(Object(r),!0).forEach(function(n){Sne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sne(e,t,r){return t=Fne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fne(e){var t=jne(e,"string");return b1(t)=="symbol"?t:String(t)}function jne(e,t){if(b1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(b1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ne(e,t){if(e==null)return{};var r=kne(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var AS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=_ne(e,Cne);return a.jsxs("svg",Am(Am({fill:"currentColor",fillRule:"evenodd",height:r,style:Am({flex:"none",lineHeight:1},n),viewBox:"0 0 54 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ka}),a.jsx("path",{clipRule:"evenodd",d:"M7.605 3.781H2v14.771h5.605a7.386 7.386 0 100-14.771zM7.08 6.295H4.933v9.743h2.148a4.872 4.872 0 000-9.743z"}),a.jsx("path",{d:"M19.548 2a1.729 1.729 0 100 3.457h.21a1.729 1.729 0 100-3.457h-.21zM21.171 6.819h-3.038v11.733h3.038V6.82zM35.314 6.82h-3.143l4.62 11.392L34.266 24h3.038l7.28-17.18h-3.037l-3.182 8.186-3.052-8.187zM30.233 4.567v-2.41s-2.142-.04-3.195.681c-.911.624-1.571 1.724-1.571 2.829 0 .468-.006.847-.015 1.152h-1.347v2.41h1.257v9.323H28.4V9.23h1.99v-2.41h-2.01c-.02-.663-.002-1.45.387-1.833.532-.525 1.466-.42 1.466-.42z"}),a.jsx("path",{d:"M45.371 16.771h6.914v3.457h-6.914z"})]}))});function x1(e){"@babel/helpers - typeof";return x1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x1(e)}var One=["size","style"];function s9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s9(Object(r),!0).forEach(function(n){Ane(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ane(e,t,r){return t=Dne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dne(e){var t=Bne(e,"string");return x1(t)=="symbol"?t:String(t)}function Bne(e,t){if(x1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(x1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tne(e,t){if(e==null)return{};var r=Pne(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Pne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var DS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Tne(e,One);return a.jsxs("svg",Dm(Dm({fill:"currentColor",fillRule:"evenodd",height:r,style:Dm({flex:"none",lineHeight:1},n),viewBox:"0 0 54 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ka}),a.jsx("path",{clipRule:"evenodd",d:"M7.605 3.781H2v14.771h5.605a7.386 7.386 0 100-14.771zM7.08 6.295H4.933v9.743h2.148a4.872 4.872 0 000-9.743z",fillRule:"evenodd"}),a.jsx("path",{d:"M19.548 2a1.729 1.729 0 100 3.457h.21a1.729 1.729 0 100-3.457h-.21zM21.171 6.819h-3.038v11.733h3.038V6.82zM35.314 6.82h-3.143l4.62 11.392L34.266 24h3.038l7.28-17.18h-3.037l-3.182 8.186-3.052-8.187zM30.233 4.567v-2.41s-2.142-.04-3.195.681c-.911.624-1.571 1.724-1.571 2.829 0 .468-.006.847-.015 1.152h-1.347v2.41h1.257v9.323H28.4V9.23h1.99v-2.41h-2.01c-.02-.663-.002-1.45.387-1.833.532-.525 1.466-.42 1.466-.42z"}),a.jsx("path",{d:"M45.371 16.771h6.914v3.457h-6.914z",fill:"#165EF0"})]}))});function v1(e){"@babel/helpers - typeof";return v1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v1(e)}var Nne=["type"];function o9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o9(Object(r),!0).forEach(function(n){Ine(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ine(e,t,r){return t=$ne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $ne(e){var t=Lne(e,"string");return v1(t)=="symbol"?t:String(t)}function Lne(e,t){if(v1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(v1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rne(e,t){if(e==null)return{};var r=zne(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Une=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=Rne(e,Nne),i=r==="color"?jg:OS;return a.jsx(Jt,Mne({Icon:i,Text:r==="color"?DS:AS,"aria-label":ka,spaceMultiple:nne,textMultiple:rne},n))}),$a=OS;$a.Color=jg;$a.Text=AS;$a.TextColor=DS;$a.Combine=Une;$a.Avatar=gne;$a.colorPrimary=_S;$a.colorGradient=kS;$a.title=ka;var ao="FastGPT",Hne=.8,qne=.25,BS="#fff";function w1(e){"@babel/helpers - typeof";return w1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w1(e)}var Wne=["size","style"];function l9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l9(Object(r),!0).forEach(function(n){Vne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vne(e,t,r){return t=Gne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gne(e){var t=Kne(e,"string");return w1(t)=="symbol"?t:String(t)}function Kne(e,t){if(w1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(w1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yne(e,t){return Qne(e)||Jne(e,t)||Xne(e,t)||Zne()}function Zne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xne(e,t){if(e){if(typeof e=="string")return u9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u9(e,t)}}function u9(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Jne(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,o,l=[],u=!0,c=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(u=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(d){c=!0,i=d}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Qne(e){if(Array.isArray(e))return e}function eie(e,t){if(e==null)return{};var r=tie(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var _g=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=eie(e,Wne),s=td(ao,2),o=Yne(s,2),l=o[0],u=o[1];return a.jsxs("svg",Bm(Bm({height:r,style:Bm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ao}),a.jsx("path",{d:"M15.766.004c.65.024 1.293.172 1.896.44a5.43 5.43 0 011.763 1.264 5.877 5.877 0 011.178 1.89c.273.708.413 1.466.413 2.231H8.56V24a6.817 6.817 0 01-2.32-.404 6.179 6.179 0 01-1.965-1.15 5.321 5.321 0 01-1.314-1.722 4.741 4.741 0 01-.461-2.03l.002-.058H2.5V5.598h.006c.012-.303.049-.606.111-.906.234-1.13.81-2.17 1.658-2.984A6.14 6.14 0 017.378.112c.368-.07.739-.108 1.11-.112h7.278v.004z",fill:l.fill}),a.jsx("path",{d:"M15.766 10.222c.545.01 1.084.136 1.588.375.523.25 1 .614 1.4 1.074.401.46.72 1.006.937 1.607.217.6.328 1.244.328 1.894h-4.317v-.002H11.74v-4.949l4.025.001z",fill:u.fill}),a.jsxs("defs",{children:[a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:l.id,x1:"11.758",x2:"11.758",y1:"0",y2:"24",children:[a.jsx("stop",{stopColor:"#326DFF"}),a.jsx("stop",{offset:"1",stopColor:"#8EAEFF"})]}),a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:u.id,x1:"11.758",x2:"11.758",y1:"0",y2:"24",children:[a.jsx("stop",{stopColor:"#326DFF"}),a.jsx("stop",{offset:"1",stopColor:"#8EAEFF"})]})]})]}))});function E1(e){"@babel/helpers - typeof";return E1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E1(e)}var rie=["background","size"];function c9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?c9(Object(r),!0).forEach(function(n){iie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iie(e,t,r){return t=aie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aie(e){var t=sie(e,"string");return E1(t)=="symbol"?t:String(t)}function sie(e,t){if(E1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(E1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oie(e,t){if(e==null)return{};var r=lie(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var uie=m.memo(function(e){var t=e.background,r=e.size,n=oie(e,rie);return a.jsx(Zt,nie({Icon:_g,"aria-label":ao,background:t||BS,color:"#fff",iconMultiple:.7,size:r},n))});function C1(e){"@babel/helpers - typeof";return C1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C1(e)}var cie=["size","style"];function d9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d9(Object(r),!0).forEach(function(n){die(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function die(e,t,r){return t=hie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hie(e){var t=fie(e,"string");return C1(t)=="symbol"?t:String(t)}function fie(e,t){if(C1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(C1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pie(e,t){if(e==null)return{};var r=mie(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var TS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=pie(e,cie);return a.jsxs("svg",Tm(Tm({fill:"currentColor",fillRule:"evenodd",height:r,style:Tm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ao}),a.jsx("path",{d:"M15.766.004c.65.024 1.293.172 1.896.44a5.43 5.43 0 011.763 1.264 5.877 5.877 0 011.178 1.89c.273.708.413 1.466.413 2.231H8.56V24a6.817 6.817 0 01-2.32-.404 6.179 6.179 0 01-1.965-1.15 5.321 5.321 0 01-1.314-1.722 4.741 4.741 0 01-.461-2.03l.002-.058H2.5V5.598h.006c.012-.303.049-.606.111-.906.234-1.13.81-2.17 1.658-2.984A6.14 6.14 0 017.378.112c.368-.07.739-.108 1.11-.112h7.278v.004z"}),a.jsx("path",{d:"M15.766 10.222c.545.01 1.084.136 1.588.375.523.25 1 .614 1.4 1.074.401.46.72 1.006.937 1.607.217.6.328 1.244.328 1.894h-4.317v-.002H11.74v-4.949l4.025.001z"})]}))});function S1(e){"@babel/helpers - typeof";return S1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S1(e)}var gie=["size","style"];function h9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h9(Object(r),!0).forEach(function(n){yie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yie(e,t,r){return t=bie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bie(e){var t=xie(e,"string");return S1(t)=="symbol"?t:String(t)}function xie(e,t){if(S1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(S1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vie(e,t){if(e==null)return{};var r=wie(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var PS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=vie(e,gie);return a.jsxs("svg",Pm(Pm({fill:"currentColor",fillRule:"evenodd",height:r,style:Pm({flex:"none",lineHeight:1},n),viewBox:"0 0 106 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:ao}),a.jsx("path",{d:"M2 2.343h12.551V5.7H5.815v4.94h7.815v3.33H5.815v7.714H2V2.343zM21.708 7.654c1.842 0 3.28.528 4.315 1.585 1.035 1.04 1.553 2.528 1.553 4.465v7.979h-3.079c-.017-.14-.044-.37-.079-.687a5.643 5.643 0 00-.105-.872 3.85 3.85 0 01-1.579 1.427c-.631.3-1.403.449-2.315.449-.948 0-1.816-.167-2.605-.502-.772-.335-1.386-.819-1.842-1.453-.456-.652-.684-1.418-.684-2.299 0-.915.254-1.708.763-2.377.526-.687 1.228-1.216 2.105-1.586.877-.37 1.842-.554 2.894-.554.947 0 1.92.158 2.92.475-.052-2.025-.911-3.038-2.578-3.038-1.333 0-2.307.599-2.92 1.796l-2.606-1.506c.492-1.021 1.246-1.823 2.263-2.404 1.018-.599 2.21-.898 3.579-.898zm2.263 8.48c-.877-.21-1.64-.316-2.29-.316-.859 0-1.526.158-2 .475-.473.3-.71.731-.71 1.295 0 .51.185.907.553 1.189.386.282.877.422 1.473.422.79 0 1.483-.22 2.08-.66.596-.458.894-1.083.894-1.876v-.528zM40.902 17.614c0 1.357-.526 2.43-1.579 3.223-1.035.776-2.386 1.163-4.052 1.163-1.439 0-2.684-.308-3.736-.925-1.035-.616-1.737-1.47-2.105-2.562l2.657-1.56a3.237 3.237 0 001.237 1.533c.561.352 1.219.529 1.973.529.562 0 1.009-.106 1.342-.317.333-.212.5-.511.5-.899 0-.44-.22-.775-.658-1.004-.438-.246-1.122-.502-2.052-.766-.93-.282-1.693-.555-2.29-.819a4.56 4.56 0 01-1.526-1.136c-.42-.51-.631-1.171-.631-1.982 0-.915.246-1.708.737-2.377.508-.67 1.184-1.18 2.026-1.533.842-.352 1.763-.528 2.763-.528 1.368 0 2.526.3 3.473.898.947.581 1.544 1.356 1.79 2.325l-2.658 1.506c-.527-1.145-1.413-1.717-2.658-1.717-.526 0-.947.105-1.263.317a.934.934 0 00-.474.845c0 .423.21.749.632.978.42.211 1.079.44 1.973.687.948.264 1.728.528 2.342.792.614.264 1.14.67 1.579 1.216.438.528.658 1.233.658 2.113zM52.579 20.89c-.895.74-2.14 1.11-3.737 1.11-1.473 0-2.666-.387-3.578-1.163-.895-.792-1.342-2.201-1.342-4.227V11.09H41.5V7.996h2.42v-4.2h3.658v4.2h4.105v3.091h-4.105v4.915c0 .916.158 1.611.474 2.087.316.475.824.713 1.526.713.614 0 1.193-.185 1.737-.555l1.263 2.642zM63.047 14.259v-3.303h7.368v7.874c-.597.968-1.553 1.743-2.868 2.325-1.298.563-2.737.845-4.316.845-1.877 0-3.543-.423-5-1.268-1.455-.846-2.587-2.026-3.393-3.54-.807-1.515-1.21-3.25-1.21-5.205 0-1.973.411-3.717 1.236-5.231.842-1.515 1.99-2.686 3.447-3.514C59.767 2.414 61.38 2 63.152 2c1.772 0 3.307.405 4.605 1.215 1.316.793 2.201 1.814 2.658 3.065l-3.158 1.823c-.386-.81-.938-1.444-1.658-1.902-.719-.476-1.57-.714-2.552-.714-1.035 0-1.965.265-2.789.793-.825.528-1.474 1.286-1.947 2.272-.474.987-.71 2.131-.71 3.435 0 1.338.236 2.5.71 3.487.491.987 1.175 1.744 2.052 2.272.895.529 1.93.793 3.105.793 1.368 0 2.438-.379 3.21-1.136v-3.144h-3.63zM80.168 2.343c1.526 0 2.86.265 4 .793 1.14.528 2.017 1.277 2.631 2.246.631.95.947 2.07.947 3.355 0 1.268-.316 2.387-.947 3.355-.614.952-1.491 1.691-2.631 2.22-1.14.51-2.474.766-4 .766h-2.815v6.605h-3.816V2.343h6.631zm-.42 9.485c1.192 0 2.148-.255 2.867-.766.72-.528 1.08-1.303 1.08-2.325 0-1.021-.36-1.796-1.08-2.325-.719-.546-1.675-.819-2.868-.819h-2.394v6.235h2.394zM88.476 2.343H104v3.409h-5.841v15.931h-3.842V5.752h-5.841V2.343z"})]}))});function F1(e){"@babel/helpers - typeof";return F1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F1(e)}var Eie=["type"];function f9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f9(Object(r),!0).forEach(function(n){Sie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sie(e,t,r){return t=Fie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fie(e){var t=jie(e,"string");return F1(t)=="symbol"?t:String(t)}function jie(e,t){if(F1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(F1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ie(e,t){if(e==null)return{};var r=kie(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Oie=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=_ie(e,Eie),i=r==="color"?_g:TS;return a.jsx(Jt,Cie({Icon:i,Text:PS,"aria-label":ao,spaceMultiple:qne,textMultiple:Hne},n))}),Ao=TS;Ao.Color=_g;Ao.Text=PS;Ao.Combine=Oie;Ao.Avatar=uie;Ao.colorPrimary=BS;Ao.title=ao;var so="Jimeng",Aie=.7,Die=.25,NS="#000";function j1(e){"@babel/helpers - typeof";return j1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j1(e)}var Bie=["size","style"];function p9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p9(Object(r),!0).forEach(function(n){Tie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tie(e,t,r){return t=Pie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pie(e){var t=Nie(e,"string");return j1(t)=="symbol"?t:String(t)}function Nie(e,t){if(j1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(j1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mie(e,t){return Rie(e)||Lie(e,t)||$ie(e,t)||Iie()}function Iie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ie(e,t){if(e){if(typeof e=="string")return m9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m9(e,t)}}function m9(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lie(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,o,l=[],u=!0,c=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(u=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(d){c=!0,i=d}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Rie(e){if(Array.isArray(e))return e}function zie(e,t){if(e==null)return{};var r=Uie(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Uie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var kg=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=zie(e,Bie),s=td(so,4),o=Mie(s,4),l=o[0],u=o[1],c=o[2],d=o[3];return a.jsxs("svg",Nm(Nm({fill:"none",height:r,style:Nm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:so}),a.jsx("g",{clipPath:l.fill,"data-figma-skip-parse":"true",children:a.jsxs("g",{transform:"matrix(-0.009271 -0.017448 0.0215011 -0.0134883 13.0472 18.2292)",children:[a.jsx("rect",{fill:u.fill,height:"666.506",opacity:"1",shapeRendering:"crispEdges",width:"1077.71",x:"0",y:"0"}),a.jsx("rect",{fill:u.fill,height:"666.506",opacity:"1",shapeRendering:"crispEdges",transform:"scale(1 -1)",width:"1077.71",x:"0",y:"0"}),a.jsx("rect",{fill:u.fill,height:"666.506",opacity:"1",shapeRendering:"crispEdges",transform:"scale(-1 1)",width:"1077.71",x:"0",y:"0"}),a.jsx("rect",{fill:u.fill,height:"666.506",opacity:"1",shapeRendering:"crispEdges",transform:"scale(-1)",width:"1077.71",x:"0",y:"0"})]})}),a.jsx("g",{clipPath:c.fill,"data-figma-skip-parse":"true",children:a.jsxs("g",{transform:"matrix(-0.00282575 -0.00489434 0.00971874 -0.00561112 16.5909 23.2227)",children:[a.jsx("rect",{fill:d.fill,height:"1485.61",opacity:"1",shapeRendering:"crispEdges",width:"4828.03",x:"0",y:"0"}),a.jsx("rect",{fill:d.fill,height:"1485.61",opacity:"1",shapeRendering:"crispEdges",transform:"scale(1 -1)",width:"4828.03",x:"0",y:"0"}),a.jsx("rect",{fill:d.fill,height:"1485.61",opacity:"1",shapeRendering:"crispEdges",transform:"scale(-1 1)",width:"4828.03",x:"0",y:"0"}),a.jsx("rect",{fill:d.fill,height:"1485.61",opacity:"1",shapeRendering:"crispEdges",transform:"scale(-1)",width:"4828.03",x:"0",y:"0"})]})}),a.jsxs("defs",{children:[a.jsx("clipPath",{id:l.id,children:a.jsx("path",{d:"M5.25711 1.80765C8.76812 6.74075 14.4314 9.45056 20.0636 8.40323C20.4619 8.32917 20.8947 8.19661 21.3451 8.02311C22.2001 7.69374 23.3197 9.03389 22.6709 9.68084C22.2415 10.1091 21.8312 10.5013 21.4634 10.8278C18.9269 13.0793 16.1264 15.1096 13.0744 16.8717C10.003 18.6449 6.8237 20.0618 3.58429 21.1352C3.13145 21.2853 2.60446 21.4391 2.038 21.5917C1.15348 21.8301 0.554197 20.1919 1.2674 19.617C1.6464 19.3114 1.98071 19.0005 2.246 18.6902C5.96908 14.3363 6.29888 8.17371 3.71732 2.69665C3.6056 2.45961 3.48162 2.17153 3.35287 1.85684C2.99465 0.981289 4.04156 0.335123 4.65576 1.05462C4.89891 1.33945 5.10904 1.5996 5.25711 1.80765Z"})}),a.jsx("clipPath",{id:c.id,children:a.jsx("path",{d:"M19.529 13.6948C17.2056 16.5579 16.7138 19.6388 17.1514 22.2781C17.1594 22.3264 17.1678 22.3799 17.1763 22.4375C17.2926 23.2284 16.3596 23.7154 15.7279 23.2254C15.6957 23.2004 15.6645 23.1765 15.6347 23.1538C13.5149 21.5401 11.0142 20.326 7.68635 20.7079C9.70085 20.1175 11.7605 19.243 13.7728 18.0812C15.9822 16.8056 17.9201 15.3074 19.529 13.6948Z"})}),a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:u.id,x1:"0",x2:"500",y1:"0",y2:"500",children:[a.jsx("stop",{stopColor:"#27B2F0"}),a.jsx("stop",{offset:"0.203234",stopColor:"#26DFFB"}),a.jsx("stop",{offset:"0.406468",stopColor:"#30F5FE"}),a.jsx("stop",{offset:"0.652506",stopColor:"#F0FEFC"}),a.jsx("stop",{offset:"0.863327",stopColor:"#FBC610"}),a.jsx("stop",{offset:"1",stopColor:"#FD9C22"})]}),a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:d.id,x1:"0",x2:"500",y1:"0",y2:"500",children:[a.jsx("stop",{stopColor:"#1C6FFF"}),a.jsx("stop",{offset:"1",stopColor:"#24B5EF"})]})]})]}))});function _1(e){"@babel/helpers - typeof";return _1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_1(e)}var Hie=["background","size"];function g9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g9(Object(r),!0).forEach(function(n){Wie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wie(e,t,r){return t=Vie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vie(e){var t=Gie(e,"string");return _1(t)=="symbol"?t:String(t)}function Gie(e,t){if(_1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(_1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kie(e,t){if(e==null)return{};var r=Yie(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Zie=m.memo(function(e){var t=e.background,r=e.size,n=Kie(e,Hie);return a.jsx(Zt,qie({Icon:kg,"aria-label":so,background:t||NS,color:"#fff",iconMultiple:.7,size:r},n))});function k1(e){"@babel/helpers - typeof";return k1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k1(e)}var Xie=["size","style"];function y9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y9(Object(r),!0).forEach(function(n){Jie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jie(e,t,r){return t=Qie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qie(e){var t=eae(e,"string");return k1(t)=="symbol"?t:String(t)}function eae(e,t){if(k1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(k1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tae(e,t){if(e==null)return{};var r=rae(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var MS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=tae(e,Xie);return a.jsxs("svg",Mm(Mm({fill:"currentColor",fillRule:"evenodd",height:r,style:Mm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:so}),a.jsx("path",{d:"M5.257 1.808C8.768 6.74 14.431 9.45 20.064 8.403a7.398 7.398 0 001.281-.38c.855-.33 1.975 1.01 1.326 1.658-.43.428-.84.82-1.208 1.147a51.149 51.149 0 01-8.389 6.044 51.146 51.146 0 01-9.49 4.263c-.453.15-.98.304-1.546.457-.885.238-1.484-1.4-.77-1.975.378-.306.713-.617.978-.927C5.969 14.336 6.299 8.174 3.717 2.697a18.2 18.2 0 01-.364-.84C2.995.98 4.042.335 4.656 1.055c.243.284.453.545.601.753zM19.53 13.695c-2.324 2.863-2.816 5.944-2.378 8.583l.024.16c.117.79-.816 1.277-1.448.788a12.813 12.813 0 00-.093-.072c-2.12-1.614-4.62-2.828-7.948-2.446a27.95 27.95 0 006.086-2.627c2.21-1.275 4.147-2.774 5.756-4.386z"})]}))});function O1(e){"@babel/helpers - typeof";return O1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O1(e)}var nae=["size","style"];function b9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Im(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b9(Object(r),!0).forEach(function(n){iae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iae(e,t,r){return t=aae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aae(e){var t=sae(e,"string");return O1(t)=="symbol"?t:String(t)}function sae(e,t){if(O1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(O1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oae(e,t){if(e==null)return{};var r=lae(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var IS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=oae(e,nae);return a.jsxs("svg",Im(Im({fill:"currentColor",fillRule:"evenodd",height:r,style:Im({flex:"none",lineHeight:1},n),viewBox:"0 0 91 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:so}),a.jsx("path",{d:"M36.603 7.184l-.516 3.62h2.092c.996 0 1.917-.802 2.056-1.79l.246-1.722a14.575 14.575 0 001.821 3.06c1.358-.536 2.548-.941 2.548-.941-.9-.774-2.54-2.564-3.901-4.54h3.024c.35 0 .631-.246.683-.584l.166-1.179h-3.746l.155-1.09h-3.298a.682.682 0 00-.683.583l-.075.507h-3.433a.682.682 0 00-.683.584l-.167 1.179h2.882c-.659 1.166-2.477 4.024-3.632 5.635 0 0 2.588-1.115 4.45-3.318l.011-.004zM54.542 4.87h2.98c.35 0 .632-.245.683-.583l.167-1.179h-3.699l.155-1.09H51.53a.685.685 0 00-.683.583l-.071.507h-3.477a.682.682 0 00-.683.584L46.45 4.87h2.933c-.66 1.166-2.477 4.024-3.632 5.635 0 0 2.588-1.115 4.45-3.318l-.517 3.62h2.092c.996 0 1.917-.802 2.056-1.79l.246-1.722c.746 1.734 1.821 3.06 1.821 3.06 1.358-.536 2.548-.941 2.548-.941-.9-.774-2.544-2.564-3.9-4.54l-.005-.004zM42.695 12.233h-4.627l-4.402 4.755c2.703 0 5.263-1.036 7.148-2.894l.131-.13H51.2c-.54 1.07-2.087 2.52-4.413 3.857-3.171-2.568-6.092-1.635-6.092-1.635s1.322 1.238 2.881 3.167c-3.02 1.199-6.778 2.068-11.029 2.068l-.115.345s18.737 2.346 23.213-7.81l.131-.937H41.894l.805-.794-.004.008zM16.482 2.315H5.346a.634.634 0 00-.615.536L2.187 20.69 2 21.991l8.195-1.584-.162 1.147h4.048l.718-5.036h-2.246c-.996 0-1.917.802-2.056 1.79l-.155 1.072-3.992.496.813-5.707h8.307l1.58-11.081.015-.115v-.032a.626.626 0 00-.587-.623l.004-.004zm-4.925 10.918H7.298l.647-4.528h4.259l-.647 4.528zm.778-5.457H8.076l.647-4.528h4.258l-.646 4.528zM29.409 2.319h-9.291a.634.634 0 00-.615.536l-2.731 19.14h4.048l2.671-18.743h2.44l-2.265 15.895h2.246c.996 0 1.917-.802 2.056-1.79l2.04-14.284v-.02c.008-.036.016-.071.016-.111a.629.629 0 00-.616-.627v.004zM71.393 2.021h-1.365a.633.633 0 00-.456.238l-.06.091-12.624 19.638h1.532l2.52-3.961h10.433v-.008l1.298 3.969h5.279L71.393 2.02zm-9.862 15.073l6.354-9.953 3.163 9.953h-9.517zM84.705 2h-.12a.626.626 0 00-.547.472l-.012.084-3.12 19.395h4.648L88.761 2h-4.056z"})]}))});function A1(e){"@babel/helpers - typeof";return A1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A1(e)}var uae=["type"];function x9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x9(Object(r),!0).forEach(function(n){dae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dae(e,t,r){return t=hae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hae(e){var t=fae(e,"string");return A1(t)=="symbol"?t:String(t)}function fae(e,t){if(A1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(A1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pae(e,t){if(e==null)return{};var r=mae(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var gae=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=pae(e,uae),i=r==="color"?kg:MS;return a.jsx(Jt,cae({Icon:i,Text:IS,"aria-label":so,spaceMultiple:Die,textMultiple:Aie},n))}),Do=MS;Do.Color=kg;Do.Text=IS;Do.Combine=gae;Do.Avatar=Zie;Do.colorPrimary=NS;Do.title=so;var oo="Kling",yae=.8,bae=.25,$S="#000",xae="linear-gradient(45deg, #FFF959, #0DF35E, #0BF2F9, #04A6F0)";function D1(e){"@babel/helpers - typeof";return D1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D1(e)}var vae=["size","style"];function v9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $m(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v9(Object(r),!0).forEach(function(n){wae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wae(e,t,r){return t=Eae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eae(e){var t=Cae(e,"string");return D1(t)=="symbol"?t:String(t)}function Cae(e,t){if(D1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(D1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sae(e,t){return kae(e)||_ae(e,t)||jae(e,t)||Fae()}function Fae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jae(e,t){if(e){if(typeof e=="string")return w9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w9(e,t)}}function w9(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _ae(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,o,l=[],u=!0,c=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(u=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(d){c=!0,i=d}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function kae(e){if(Array.isArray(e))return e}function Oae(e,t){if(e==null)return{};var r=Aae(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Aae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Og=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Oae(e,vae),s=td(oo,4),o=Sae(s,4),l=o[0],u=o[1],c=o[2],d=o[3];return a.jsxs("svg",$m($m({height:r,style:$m({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:oo}),a.jsx("path",{d:"M5.412 13.775A23.193 23.193 0 017.41 9.32c3.17-5.492 7.795-8.757 10.33-7.294C12.038-1.266 4.598.944 1.122 6.964A13.378 13.378 0 00.085 9.22c-.259.739.092 1.534.77 1.926l4.557 2.63z",fill:l.fill}),a.jsx("path",{d:"M18.588 10.164a23.188 23.188 0 01-1.999 4.455c-3.17 5.492-7.795 8.758-10.33 7.294 5.703 3.293 13.143 1.082 16.619-4.938a13.392 13.392 0 001.037-2.255c.259-.738-.092-1.534-.77-1.925l-4.557-2.63z",fill:u.fill}),a.jsx("path",{d:"M16.59 14.62c3.17-5.492 3.686-11.13 1.15-12.594C15.207.563 10.582 3.83 7.41 9.32c2.074-3.59 5.809-5.315 8.344-3.852 2.534 1.464 2.908 5.56.835 9.151z",fill:c.fill}),a.jsx("path",{d:"M7.41 9.32c-3.17 5.492-3.686 11.13-1.15 12.593 2.534 1.464 7.159-1.802 10.33-7.294-2.074 3.591-5.809 5.316-8.344 3.852-2.534-1.463-2.908-5.56-.835-9.15z",fill:d.fill}),a.jsxs("defs",{children:[a.jsxs("radialGradient",{cx:"0",cy:"0",gradientTransform:"matrix(7.47772 -12.51022 17.14368 10.24728 5.173 13.637)",gradientUnits:"userSpaceOnUse",id:l.id,r:"1",children:[a.jsx("stop",{offset:".095",stopColor:"#FFF959"}),a.jsx("stop",{offset:".326",stopColor:"#0DF35E"}),a.jsx("stop",{offset:".64",stopColor:"#0BF2F9"}),a.jsx("stop",{offset:"1",stopColor:"#04A6F0"})]}),a.jsxs("radialGradient",{cx:"0",cy:"0",gradientTransform:"rotate(120.868 6.491 10.491) scale(14.5747 19.9728)",gradientUnits:"userSpaceOnUse",id:u.id,r:"1",children:[a.jsx("stop",{offset:".095",stopColor:"#FFF959"}),a.jsx("stop",{offset:".326",stopColor:"#0DF35E"}),a.jsx("stop",{offset:".64",stopColor:"#0BF2F9"}),a.jsx("stop",{offset:"1",stopColor:"#04A6F0"})]}),a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:c.id,x1:"15.578",x2:"18.062",y1:"1.798",y2:"9.861",children:[a.jsx("stop",{stopColor:"#003EFF"}),a.jsx("stop",{offset:"1",stopColor:"#0BFFE7"})]}),a.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:d.id,x1:"8.422",x2:"5.938",y1:"22.142",y2:"14.079",children:[a.jsx("stop",{stopColor:"#003EFF"}),a.jsx("stop",{offset:"1",stopColor:"#0BFFE7"})]})]})]}))});function B1(e){"@babel/helpers - typeof";return B1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B1(e)}var Dae=["background","size"];function E9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E9(Object(r),!0).forEach(function(n){Tae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tae(e,t,r){return t=Pae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pae(e){var t=Nae(e,"string");return B1(t)=="symbol"?t:String(t)}function Nae(e,t){if(B1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(B1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mae(e,t){if(e==null)return{};var r=Iae(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Iae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var $ae=m.memo(function(e){var t=e.background,r=e.size,n=Mae(e,Dae);return a.jsx(Zt,Bae({Icon:Og,"aria-label":oo,background:t||$S,size:r},n))});function T1(e){"@babel/helpers - typeof";return T1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T1(e)}var Lae=["size","style"];function C9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C9(Object(r),!0).forEach(function(n){Rae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rae(e,t,r){return t=zae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zae(e){var t=Uae(e,"string");return T1(t)=="symbol"?t:String(t)}function Uae(e,t){if(T1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(T1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hae(e,t){if(e==null)return{};var r=qae(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var LS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Hae(e,Lae);return a.jsxs("svg",Lm(Lm({fill:"currentColor",fillRule:"evenodd",height:r,style:Lm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:oo}),a.jsx("path",{clipRule:"evenodd",d:"M5.493 21.234c-1.112-1.451-1.109-4.263-.081-7.459l-4.557-2.63a1.683 1.683 0 01-.85-1.304 1.505 1.505 0 01.08-.622 13.18 13.18 0 011.037-2.255c3.476-6.02 10.916-8.23 16.619-4.938.46.266.82.67 1.081 1.184.785 1.545.685 4.096-.234 6.954l4.557 2.631c.339.196.596.492.736.832a1.53 1.53 0 01.034 1.093 13.146 13.146 0 01-1.037 2.255c-3.476 6.02-10.916 8.23-16.619 4.938a2.6 2.6 0 01-.766-.68zm11.096-6.615c-2.073 3.591-5.808 5.316-8.343 3.852-1.267-.731-1.994-2.122-2.145-3.778-.095-1.035.036-2.173.4-3.32.217-.684.517-1.37.902-2.039l.008-.014c2.073-3.59 5.808-5.315 8.343-3.852.633.366 1.13.895 1.49 1.54.986 1.772.922 4.415-.285 6.914-.111.23-.232.457-.362.683l-.008.014z"})]}))});function P1(e){"@babel/helpers - typeof";return P1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P1(e)}var Wae=["size","style"];function S9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S9(Object(r),!0).forEach(function(n){Vae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vae(e,t,r){return t=Gae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gae(e){var t=Kae(e,"string");return P1(t)=="symbol"?t:String(t)}function Kae(e,t){if(P1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(P1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yae(e,t){if(e==null)return{};var r=Zae(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var RS=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Yae(e,Wae);return a.jsxs("svg",Rm(Rm({fill:"currentColor",fillRule:"evenodd",height:r,style:Rm({flex:"none",lineHeight:1},n),viewBox:"0 0 80 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:oo}),a.jsx("path",{d:"M74.74 8.828c-.539-2.284-1.416-3.083-3.726-3.331a10.18 10.18 0 00-1.957-.042c-3.072.249-4.067 1.338-4.067 4.392 0 1.57-.013 3.14.005 4.71.023 2.076.969 3.5 2.996 3.865 1.362.244 2.879.175 4.22-.168 1.723-.437 2.488-1.946 2.307-3.863h-4.586v-2.918h8.088c0 .527.017 1.048.035 1.565.038 1.13.075 2.237-.075 3.317-.4 2.926-2.839 5.147-6.288 5.556-1.726.204-3.596.052-5.28-.398-3.13-.839-4.854-3.392-4.874-6.632-.013-1.875-.003-3.75 0-5.626.002-4.039 1.66-6.147 5.633-6.943 2.703-.542 5.398-.459 7.892.903 2.155 1.179 3.124 3.054 3.035 5.608h-3.352l-.005.005zM57.685 21.748h-3.159V5.638h-9.198v16.074h-3.24V2.697h15.597v19.051zM30.807 18.849h-8.205V2.513h-3.13v19.16h11.335v-2.824zM36.876 21.735h-3.023V2.511h3.023v19.224zM2 21.735h3.022v-9.117h.042l8.12 9.056h3.747l-8.12-9.056h-.125l8.12-9.993h-3.748l-8.036 9.89V2.511H2v19.224z"})]}))});function N1(e){"@babel/helpers - typeof";return N1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N1(e)}var Xae=["type"];function F9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F9(Object(r),!0).forEach(function(n){Qae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qae(e,t,r){return t=ese(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ese(e){var t=tse(e,"string");return N1(t)=="symbol"?t:String(t)}function tse(e,t){if(N1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(N1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rse(e,t){if(e==null)return{};var r=nse(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nse(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var ise=m.memo(function(e){var t=e.type,r=t===void 0?"mono":t,n=rse(e,Xae),i=r==="color"?Og:LS;return a.jsx(Jt,Jae({Icon:i,Text:RS,"aria-label":oo,spaceMultiple:bae,textMultiple:yae},n))}),As=LS;As.Color=Og;As.Text=RS;As.Combine=ise;As.Avatar=$ae;As.colorPrimary=$S;As.colorGradient=xae;As.title=oo;var gd="Midjourney",ase=.6,sse=.2,zS="#fff";function M1(e){"@babel/helpers - typeof";return M1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M1(e)}var ose=["size","style"];function j9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j9(Object(r),!0).forEach(function(n){lse(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lse(e,t,r){return t=use(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function use(e){var t=cse(e,"string");return M1(t)=="symbol"?t:String(t)}function cse(e,t){if(M1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(M1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dse(e,t){if(e==null)return{};var r=hse(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hse(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ag=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=dse(e,ose);return a.jsxs("svg",zm(zm({fill:"currentColor",fillRule:"evenodd",height:r,style:zm({flex:"none",lineHeight:1},n),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:gd}),a.jsx("path",{d:"M22.369 17.676c-1.387 1.259-3.17 2.378-5.332 3.417.044.03.086.057.13.083l.018.01.019.012c.216.123.42.184.641.184.222 0 .426-.061.642-.184l.018-.011.019-.011c.14-.084.266-.178.492-.366l.178-.148c.279-.232.426-.342.625-.456.304-.174.612-.266.949-.266.337 0 .645.092.949.266l.023.014c.188.109.334.219.602.442l.178.148c.221.184.346.278.483.36l.028.017.018.01c.21.12.407.181.62.185h.022a.31.31 0 110 .618c-.337 0-.645-.092-.95-.266a3.137 3.137 0 01-.09-.054l-.022-.014-.022-.013-.02-.014a5.356 5.356 0 01-.49-.377l-.159-.132a3.836 3.836 0 00-.483-.36l-.027-.017-.019-.01a1.256 1.256 0 00-.641-.185c-.222 0-.426.061-.641.184l-.02.011-.018.011c-.14.084-.266.178-.492.366l-.158.132a5.125 5.125 0 01-.51.39l-.022.014-.022.014-.09.054a1.868 1.868 0 01-.95.266c-.337 0-.644-.092-.949-.266a3.137 3.137 0 01-.09-.054l-.022-.014-.022-.013-.026-.017a4.881 4.881 0 01-.425-.325.308.308 0 01-.12-.1l-.098-.081a3.836 3.836 0 00-.483-.36l-.027-.017-.019-.01a1.256 1.256 0 00-.641-.185c-.222 0-.426.061-.642.184l-.018.011-.019.011c-.14.084-.266.178-.492.366l-.158.132a5.125 5.125 0 01-.51.39l-.023.014-.022.014-.09.054A1.868 1.868 0 0112 22c-.337 0-.645-.092-.949-.266a3.137 3.137 0 01-.09-.054l-.022-.014-.022-.013-.021-.014a5.356 5.356 0 01-.49-.377l-.158-.132a3.836 3.836 0 00-.483-.36l-.028-.017-.018-.01a1.256 1.256 0 00-.642-.185c-.221 0-.425.061-.641.184l-.019.011-.018.011c-.141.084-.266.178-.492.366l-.158.132a5.125 5.125 0 01-.511.39l-.022.014-.022.014-.09.054a1.868 1.868 0 01-.986.264c-.746-.09-1.319-.38-1.89-.866l-.035-.03c-.047-.041-.118-.106-.192-.174l-.196-.181-.107-.1-.011-.01a1.531 1.531 0 00-.336-.253.313.313 0 00-.095-.03h-.005c-.119.022-.238.059-.361.11a.308.308 0 01-.077.061l-.008.005a.309.309 0 01-.126.034 5.66 5.66 0 00-.774.518l-.416.324-.055.043a6.542 6.542 0 01-.324.236c-.305.207-.552.315-.8.315a.31.31 0 01-.01-.618h.01c.09 0 .235-.062.438-.198l.04-.027c.077-.054.163-.117.27-.199l.385-.301.06-.047c.268-.206.506-.373.73-.505l-.633-1.21a.309.309 0 01.254-.451l20.287-1.305a.309.309 0 01.228.537zm-1.118.14L2.369 19.03l.423.809c.128-.045.256-.078.388-.1a.31.31 0 01.052-.005c.132 0 .26.032.386.093.153.073.294.179.483.35l.016.015.092.086.144.134.097.089c.065.06.125.114.16.144.485.418.948.658 1.554.736h.011a1.25 1.25 0 00.6-.172l.021-.011.019-.011.018-.011c.141-.084.266-.178.492-.366l.178-.148c.279-.232.426-.342.625-.456.305-.174.612-.266.95-.266.336 0 .644.092.948.266l.023.014c.188.109.335.219.603.442l.177.148c.222.184.346.278.484.36l.027.017.019.01c.215.124.42.185.641.185.222 0 .426-.061.641-.184l.019-.011.018-.011c.141-.084.267-.178.493-.366l.177-.148c.28-.232.427-.342.626-.456.304-.174.612-.266.949-.266.337 0 .644.092.949.266l.025.015c.187.109.334.22.603.443 1.867-.878 3.448-1.811 4.73-2.832l.02-.016zM3.653 2.026C6.073 3.06 8.69 4.941 10.8 7.258c2.46 2.7 4.109 5.828 4.637 9.149a.31.31 0 01-.421.335c-2.348-.945-4.54-1.258-6.59-1.02-1.739.2-3.337.792-4.816 1.703-.294.182-.62-.182-.405-.454 1.856-2.355 2.581-4.99 2.343-7.794-.195-2.292-1.031-4.61-2.284-6.709a.31.31 0 01.388-.442zM10.04 4.45c1.778.543 3.892 2.102 5.782 4.243 1.984 2.248 3.552 4.934 4.347 7.582a.31.31 0 01-.401.38l-.022-.01-.386-.154a10.594 10.594 0 00-.291-.112l-.016-.006c-.68-.247-1.199-.291-1.944-.101a.31.31 0 01-.375-.218C15.378 11.123 13.073 7.276 9.775 5c-.291-.201-.072-.653.266-.55zM4.273 2.996l.008.015c1.028 1.94 1.708 4.031 1.885 6.113.213 2.513-.31 4.906-1.673 7.092l-.02.031.003-.001c1.198-.581 2.47-.969 3.825-1.132l.055-.006c1.981-.23 4.083.029 6.309.837l.066.025-.007-.039c-.593-2.95-2.108-5.737-4.31-8.179l-.07-.078c-1.785-1.96-3.944-3.6-6.014-4.65l-.057-.028zm7.92 3.238l.048.048c2.237 2.295 3.885 5.431 4.974 9.191l.038.132.022-.004c.71-.133 1.284-.063 1.963.18l.027.01.066.024.046.018-.025-.073c-.811-2.307-2.208-4.62-3.936-6.594l-.058-.065c-1.02-1.155-2.103-2.132-3.15-2.856l-.015-.011z"})]}))});function I1(e){"@babel/helpers - typeof";return I1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I1(e)}var fse=["background"];function _9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pse(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_9(Object(r),!0).forEach(function(n){mse(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mse(e,t,r){return t=gse(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gse(e){var t=yse(e,"string");return I1(t)=="symbol"?t:String(t)}function yse(e,t){if(I1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(I1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bse(e,t){if(e==null)return{};var r=xse(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xse(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var vse=m.memo(function(e){var t=e.background,r=bse(e,fse);return a.jsx(Zt,pse({Icon:Ag,"aria-label":gd,background:t||zS,color:"#000"},r))});function $1(e){"@babel/helpers - typeof";return $1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$1(e)}var wse=["size","style"];function k9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Um(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k9(Object(r),!0).forEach(function(n){Ese(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ese(e,t,r){return t=Cse(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cse(e){var t=Sse(e,"string");return $1(t)=="symbol"?t:String(t)}function Sse(e,t){if($1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fse(e,t){if(e==null)return{};var r=jse(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jse(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var US=m.memo(function(e){var t=e.size,r=t===void 0?"1em":t,n=e.style,i=Fse(e,wse);return a.jsxs("svg",Um(Um({fill:"currentColor",fillRule:"evenodd",height:r,style:Um({flex:"none",lineHeight:1},n),viewBox:"0 0 134 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[a.jsx("title",{children:gd}),a.jsx("path",{d:"M2 19.87V3.125h3.217l2.068 7.226 2.16-7.226h3.239v16.747h-2.183v-7.685c0-.811.016-1.71.046-2.696.03-.986.073-1.973.127-2.96l.083-1.407c.029-.446.058-.867.089-1.265l-2.62 8.58h-1.93L3.77 4.065c.138 1.116.238 2.359.299 3.727.061 1.37.092 2.834.092 4.394v7.685H2zm13.556 0v-2.064h4.434V9.318h-3.974V7.253h6.25v10.553h4.158v2.065H15.556zM20.91 5.029c-.521 0-.935-.134-1.241-.401-.307-.268-.46-.631-.46-1.09 0-.474.153-.849.46-1.124.306-.275.72-.413 1.24-.413.521 0 .935.138 1.241.413.307.275.46.65.46 1.124 0 .459-.153.822-.46 1.09-.306.267-.72.401-1.24.401zM32.926 20.1c-1.271 0-2.282-.424-3.033-1.273-.75-.849-1.126-2-1.126-3.453V11.75c0-1.453.376-2.604 1.126-3.453.75-.849 1.762-1.273 3.033-1.273.934 0 1.712.237 2.332.711.564.431.929 1.008 1.094 1.73l.044.22-.046-2.936V3.124h2.274v16.747h-2.251v-2.455c-.138.841-.514 1.499-1.126 1.973-.613.474-1.387.711-2.32.711zm.781-1.973c.812 0 1.455-.252 1.93-.757.475-.505.713-1.216.713-2.133v-3.35c0-.917-.238-1.628-.713-2.133-.475-.505-1.118-.757-1.93-.757-.842 0-1.497.218-1.964.654-.467.436-.7 1.143-.7 2.122v3.578c0 .98.233 1.687.7 2.122.467.436 1.122.654 1.964.654zM42.094 24v-2.065h2.964c.903 0 1.604-.248 2.102-.745.498-.497.747-1.19.747-2.076V9.318h-5.928V7.253h8.202v11.884c0 1.483-.46 2.665-1.378 3.544-.92.88-2.152 1.319-3.7 1.319h-3.01zm6.755-18.972c-.521 0-.935-.134-1.241-.401-.306-.268-.46-.631-.46-1.09 0-.474.154-.849.46-1.124.306-.275.72-.413 1.24-.413.522 0 .935.138 1.241.413.307.275.46.65.46 1.124 0 .459-.153.822-.46 1.09-.306.267-.72.401-1.24.401zm11.327 15.026c-1.547 0-2.776-.443-3.688-1.33-.911-.887-1.367-2.126-1.367-3.717v-2.89c0-1.59.456-2.83 1.367-3.717.912-.887 2.141-1.33 3.688-1.33 1.547 0 2.776.443 3.688 1.33.911.887 1.367 2.126 1.367 3.717v2.89c0 1.59-.456 2.83-1.367 3.717-.912.887-2.14 1.33-3.688 1.33zm0-1.996c.858 0 1.536-.24 2.033-.722.498-.482.747-1.19.747-2.122V11.91c0-.933-.249-1.64-.747-2.122-.497-.481-1.175-.722-2.033-.722-.858 0-1.536.24-2.033.722-.498.482-.747 1.19-.747 2.122v3.304c0 .933.249 1.64.747 2.122.497.482 1.175.722 2.033.722zM73.364 20.1c-1.485 0-2.672-.436-3.56-1.308-.89-.871-1.334-2.057-1.334-3.555V7.253h2.275v7.984c0 .887.234 1.586.7 2.099.468.512 1.108.768 1.92.768.827 0 1.478-.256 1.952-.768.475-.513.713-1.212.713-2.1V7.254h2.274v7.984c0 1.498-.448 2.684-1.344 3.555-.896.872-2.094 1.308-3.596 1.308zm8.823-.23V7.254h2.252v2.432h.023c.123-.826.479-1.476 1.068-1.95.59-.474 1.375-.711 2.355-.711 1.302 0 2.313.401 3.033 1.204.72.803 1.08 1.931 1.08 3.384v1.101h-2.274v-1.078c0-1.759-.866-2.638-2.597-2.638-.873 0-1.535.252-1.987.757-.452.505-.678 1.223-.678 2.156v7.96h-2.275zm12.752 0V7.254h2.252v2.41h.023c.107-.827.456-1.473 1.045-1.94.59-.466 1.367-.699 2.332-.699 1.256 0 2.26.398 3.01 1.193s1.126 1.866 1.126 3.212v8.442h-2.275v-8.075c0-.918-.23-1.622-.689-2.11-.46-.49-1.087-.735-1.884-.735-.827 0-1.478.256-1.953.768-.475.513-.712 1.228-.712 2.145v8.007h-2.275zm18.083.23c-1.517 0-2.738-.451-3.665-1.353-.927-.903-1.39-2.134-1.39-3.694v-2.982c0-1.56.463-2.791 1.39-3.694.927-.902 2.148-1.353 3.665-1.353 1.01 0 1.895.203 2.653.608a4.396 4.396 0 011.77 1.698c.42.726.631 1.57.631 2.534v2.272h-7.88v1.1c0 .918.252 1.637.758 2.157.505.52 1.194.78 2.068.78.735 0 1.34-.138 1.815-.413.475-.275.758-.657.85-1.147h2.274c-.153 1.07-.681 1.92-1.585 2.547-.904.627-2.022.94-3.354.94zm-2.827-8.236v.597h5.653v-.597c0-.963-.245-1.705-.736-2.225-.49-.52-1.187-.78-2.09-.78-.904 0-1.601.26-2.091.78-.49.52-.736 1.262-.736 2.225zM123.361 24l1.838-4.886-4.71-11.86h2.412l2.85 7.455c.122.321.245.665.367 1.032.123.367.207.689.253.964a8.49 8.49 0 01.23-.964c.107-.367.222-.71.344-1.032l2.642-7.456H132L125.727 24h-2.366z"})]}))});function L1(e){"@babel/helpers - typeof";return L1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L1(e)}function O9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O9(Object(r),!0).forEach(function(n){kse(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kse(e,t,r){return t=Ose(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ose(e){var t=Ase(e,"string");return L1(t)=="symbol"?t:String(t)}function Ase(e,t){if(L1(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(L1(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dse(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var Bse=m.memo(function(e){var t=Object.assign({},(Dse(e),e));return a.jsx(Jt,_se({Icon:Ag,Text:US,"aria-label":gd,spaceMultiple:sse,textMultiple:ase},t))}),Bo=Ag;Bo.Text=US;Bo.Combine=Bse;Bo.Avatar=vse;Bo.colorPrimary=zS;Bo.title=gd;/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Tse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Pse=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),A9=e=>{const t=Pse(e);return t.charAt(0).toUpperCase()+t.slice(1)},HS=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Nse=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */var Mse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Ise=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:s,iconNode:o,...l},u)=>m.createElement("svg",{ref:u,...Mse,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:HS("lucide",i),...!s&&!Nse(l)&&{"aria-hidden":"true"},...l},[...o.map(([c,d])=>m.createElement(c,d)),...Array.isArray(s)?s:[s]]));/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Ue=(e,t)=>{const r=m.forwardRef(({className:n,...i},s)=>m.createElement(Ise,{ref:s,iconNode:t,className:HS(`lucide-${Tse(A9(e))}`,`lucide-${e}`,n),...i}));return r.displayName=A9(e),r};/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const $se=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],qS=Ue("activity",$se);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Lse=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],Rse=Ue("ban",Lse);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const zse=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Dg=Ue("bell",zse);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Use=[["circle",{cx:"9",cy:"9",r:"7",key:"p2h5vp"}],["circle",{cx:"15",cy:"15",r:"7",key:"19ennj"}]],Hse=Ue("blend",Use);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const qse=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],Wse=Ue("brain",qse);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Vse=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],Gse=Ue("calculator",Vse);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Kse=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Yse=Ue("chart-column",Kse);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Zse=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],Xse=Ue("chart-pie",Zse);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Jse=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qa=Ue("check",Jse);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Qse=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],eoe=Ue("chevron-down",Qse);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const toe=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],roe=Ue("chevron-left",toe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const noe=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ioe=Ue("chevron-right",noe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const aoe=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],WS=Ue("chevron-up",aoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const soe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Bg=Ue("circle-alert",soe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const ooe=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Sl=Ue("circle-check-big",ooe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const loe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_i=Ue("circle-help",loe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const uoe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],coe=Ue("circle-user",uoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const doe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],sf=Ue("circle-x",doe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const hoe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],ll=Ue("clock",hoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const foe=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],VS=Ue("code",foe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const poe=[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]],moe=Ue("cog",poe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const goe=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],r4=Ue("coins",goe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const yoe=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],of=Ue("copy",yoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const boe=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Kn=Ue("credit-card",boe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const xoe=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],voe=Ue("crown",xoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const woe=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Hm=Ue("database",woe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Eoe=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Coe=Ue("dollar-sign",Eoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Soe=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],D9=Ue("download",Soe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Foe=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],joe=Ue("ellipsis",Foe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const _oe=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],GS=Ue("eye-off",_oe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const koe=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Tg=Ue("eye",koe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Ooe=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],KS=Ue("file-text",Ooe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Aoe=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],Doe=Ue("file-x",Aoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Boe=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],B9=Ue("flask-conical",Boe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Toe=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]],Poe=Ue("focus",Toe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Noe=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Moe=Ue("gauge",Noe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Ioe=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],YS=Ue("gift",Ioe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const $oe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Loe=Ue("globe",$oe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Roe=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Pg=Ue("hash",Roe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const zoe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ZS=Ue("image",zoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Uoe=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],XS=Ue("key",Uoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Hoe=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],JS=Ue("layers",Hoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const qoe=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],QS=Ue("layout-dashboard",qoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Woe=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Voe=Ue("link",Woe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Goe=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],Koe=Ue("list",Goe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Yoe=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],eF=Ue("loader-circle",Yoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Zoe=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],tF=Ue("loader",Zoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Xoe=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],Joe=Ue("maximize-2",Xoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Qoe=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],ele=Ue("megaphone",Qoe);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const tle=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Ng=Ue("message-square",tle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const rle=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],nle=Ue("minimize-2",rle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const ile=[["path",{d:"M5 12h14",key:"1ays0h"}]],ale=Ue("minus",ile);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const sle=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],ole=Ue("monitor",sle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const lle=[["path",{d:"M5 3v16h16",key:"1mqmf9"}],["path",{d:"m5 19 6-6",key:"jh6hbb"}],["path",{d:"m2 6 3-3 3 3",key:"tkyvxa"}],["path",{d:"m18 16 3 3-3 3",key:"1d4glt"}]],ule=Ue("move-3d",lle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const cle=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],dle=Ue("move",cle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const hle=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],T9=Ue("music",hle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const fle=[["path",{d:"m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z",key:"irua1i"}],["path",{d:"m5 2 5 5",key:"1lls2c"}],["path",{d:"M2 13h15",key:"1hkzvu"}],["path",{d:"M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z",key:"xk76lq"}]],ple=Ue("paint-bucket",fle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const mle=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],rF=Ue("palette",mle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const gle=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],nF=Ue("pause",gle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const yle=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],ble=Ue("play",yle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const xle=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],yd=Ue("plus",xle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const vle=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],wle=Ue("refresh-ccw",vle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Ele=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Cle=Ue("refresh-cw",Ele);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Sle=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],Fle=Ue("repeat",Sle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const jle=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],P9=Ue("rocket",jle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const _le=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],n4=Ue("rotate-ccw",_le);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const kle=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],Ole=Ue("route",kle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Ale=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],lf=Ue("save",Ale);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Dle=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Ble=Ue("send",Dle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Tle=[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Ple=Ue("settings-2",Tle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Nle=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],lo=Ue("settings",Nle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Mle=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],Ile=Ue("shapes",Mle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const $le=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],N9=Ue("shield-check",$le);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Lle=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Zh=Ue("shield",Lle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Rle=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],xh=Ue("shuffle",Rle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const zle=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],i4=Ue("sparkles",zle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Ule=[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],iF=Ue("square-check-big",Ule);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Hle=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],iu=Ue("square-pen",Hle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const qle=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],Wle=Ue("square-terminal",qle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Vle=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Gle=Ue("target",Vle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Kle=[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]],Yle=Ue("thermometer",Kle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Zle=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],Xle=Ue("ticket",Zle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Jle=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],Qle=Ue("toggle-left",Jle);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const eue=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Oa=Ue("trash-2",eue);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const tue=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],vh=Ue("triangle-alert",tue);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const rue=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],a4=Ue("upload",rue);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const nue=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],aF=Ue("user-check",nue);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const iue=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],sF=Ue("user-plus",iue);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const aue=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Mg=Ue("user",aue);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const sue=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Xh=Ue("users",sue);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const oue=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],M9=Ue("video",oue);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const lue=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],I9=Ue("webhook",lue);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const uue=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ci=Ue("x",uue);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const cue=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],due=Ue("zap",cue);/**
- * @license lucide-react v0.511.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const hue=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],fue=Ue("zoom-in",hue),Xt={dashboard:"#10B981",terminal:"#10B981",message:"#06B6D4",key:"#3B82F6",chart:"#F59E0B",barChart:"#8B5CF6",image:"#EC4899",check:"#F59E0B",credit:"#F97316",layers:"#EF4444",gift:"#F43F5E",user:"#10B981",settings:"#F97316"};function $9(e,t=!1){const i={size:16,strokeWidth:2,className:`transition-colors duration-200 ${t?"transition-transform duration-200 scale-105":""}`};switch(e){case"detail":return a.jsx(QS,{...i,color:t?Xt.dashboard:"currentColor"});case"playground":return a.jsx(Wle,{...i,color:t?Xt.terminal:"currentColor"});case"chat":return a.jsx(Ng,{...i,color:t?Xt.message:"currentColor"});case"token":return a.jsx(XS,{...i,color:t?Xt.key:"currentColor"});case"log":return a.jsx(Yse,{...i,color:t?Xt.chart:"currentColor"});case"usage-statistics":return a.jsx(Xse,{...i,color:t?Xt.barChart:"currentColor"});case"midjourney":return a.jsx(ZS,{...i,color:t?Xt.image:"currentColor"});case"task":return a.jsx(iF,{...i,color:t?Xt.check:"currentColor"});case"topup":return a.jsx(Kn,{...i,color:t?Xt.credit:"currentColor"});case"channel":return a.jsx(JS,{...i,color:t?Xt.layers:"currentColor"});case"redemption":return a.jsx(YS,{...i,color:t?Xt.gift:"currentColor"});case"user":case"personal":return a.jsx(Mg,{...i,color:t?Xt.user:"currentColor"});case"setting":return a.jsx(lo,{...i,color:t?Xt.settings:"currentColor"});default:return a.jsx(coe,{...i,color:t?Xt.user:"currentColor"})}}const uo=(()=>{let e=null,t=null;return r=>{const n=ct.language;return e&&t===n||(e={all:{label:r("全部模型"),icon:null,filter:()=>!0},openai:{label:"OpenAI",icon:a.jsx(Qi,{}),filter:i=>i.model_name.toLowerCase().includes("gpt")||i.model_name.toLowerCase().includes("dall-e")||i.model_name.toLowerCase().includes("whisper")||i.model_name.toLowerCase().includes("tts")||i.model_name.toLowerCase().includes("text-")||i.model_name.toLowerCase().includes("babbage")||i.model_name.toLowerCase().includes("davinci")||i.model_name.toLowerCase().includes("curie")||i.model_name.toLowerCase().includes("ada")||i.model_name.toLowerCase().includes("o1")||i.model_name.toLowerCase().includes("o3")||i.model_name.toLowerCase().includes("o4")},anthropic:{label:"Anthropic",icon:a.jsx(bs.Color,{}),filter:i=>i.model_name.toLowerCase().includes("claude")},gemini:{label:"Gemini",icon:a.jsx(di.Color,{}),filter:i=>i.model_name.toLowerCase().includes("gemini")},moonshot:{label:"Moonshot",icon:a.jsx(xo,{}),filter:i=>i.model_name.toLowerCase().includes("moonshot")},zhipu:{label:r("智谱"),icon:a.jsx(Os.Color,{}),filter:i=>i.model_name.toLowerCase().includes("chatglm")||i.model_name.toLowerCase().includes("glm-")},qwen:{label:r("通义千问"),icon:a.jsx(Pa.Color,{}),filter:i=>i.model_name.toLowerCase().includes("qwen")},deepseek:{label:"DeepSeek",icon:a.jsx(vs.Color,{}),filter:i=>i.model_name.toLowerCase().includes("deepseek")},minimax:{label:"MiniMax",icon:a.jsx(Ta.Color,{}),filter:i=>i.model_name.toLowerCase().includes("abab")},baidu:{label:r("文心一言"),icon:a.jsx(Na.Color,{}),filter:i=>i.model_name.toLowerCase().includes("ernie")},xunfei:{label:r("讯飞星火"),icon:a.jsx(Ss.Color,{}),filter:i=>i.model_name.toLowerCase().includes("spark")},midjourney:{label:"Midjourney",icon:a.jsx(Bo,{}),filter:i=>i.model_name.toLowerCase().includes("mj_")},tencent:{label:r("腾讯混元"),icon:a.jsx(Es.Color,{}),filter:i=>i.model_name.toLowerCase().includes("hunyuan")},cohere:{label:"Cohere",icon:a.jsx(xs.Color,{}),filter:i=>i.model_name.toLowerCase().includes("command")},cloudflare:{label:"Cloudflare",icon:a.jsx(ks.Color,{}),filter:i=>i.model_name.toLowerCase().includes("@cf/")},ai360:{label:r("360智脑"),icon:a.jsx(Ba.Color,{}),filter:i=>i.model_name.toLowerCase().includes("360")},yi:{label:r("零一万物"),icon:a.jsx(Fs.Color,{}),filter:i=>i.model_name.toLowerCase().includes("yi")},jina:{label:"Jina",icon:a.jsx(ql,{}),filter:i=>i.model_name.toLowerCase().includes("jina")},mistral:{label:"Mistral AI",icon:a.jsx(Cs.Color,{}),filter:i=>i.model_name.toLowerCase().includes("mistral")},xai:{label:"xAI",icon:a.jsx(ko,{}),filter:i=>i.model_name.toLowerCase().includes("grok")},llama:{label:"Llama",icon:a.jsx(jo,{}),filter:i=>i.model_name.toLowerCase().includes("llama")},doubao:{label:r("豆包"),icon:a.jsx(ws.Color,{}),filter:i=>i.model_name.toLowerCase().includes("doubao")}},t=n),e}})();function s4(e){switch(e){case 1:case 3:return a.jsx(Qi,{size:14});case 2:case 5:return a.jsx(Bo,{size:14});case 36:return a.jsx(Kl,{size:14});case 4:return a.jsx(jo,{size:14});case 14:case 33:return a.jsx(bs.Color,{size:14});case 41:return a.jsx(di.Color,{size:14});case 34:return a.jsx(xs.Color,{size:14});case 39:return a.jsx(ks.Color,{size:14});case 43:return a.jsx(vs.Color,{size:14});case 15:case 46:return a.jsx(Na.Color,{size:14});case 17:return a.jsx(Pa.Color,{size:14});case 18:return a.jsx(Ss.Color,{size:14});case 16:case 26:return a.jsx(Os.Color,{size:14});case 24:case 11:return a.jsx(di.Color,{size:14});case 47:return a.jsx(Oo.Color,{size:14});case 25:return a.jsx(xo,{size:14});case 20:return a.jsx(Vl,{size:14});case 19:return a.jsx(Ba.Color,{size:14});case 23:return a.jsx(Es.Color,{size:14});case 31:return a.jsx(Fs.Color,{size:14});case 35:return a.jsx(Ta.Color,{size:14});case 37:return a.jsx($a.Color,{size:14});case 38:return a.jsx(ql,{size:14});case 40:return a.jsx(_o.Color,{size:14});case 42:return a.jsx(Cs.Color,{size:14});case 45:return a.jsx(ws.Color,{size:14});case 48:return a.jsx(ko,{size:14});case 49:return a.jsx(nu,{size:14});case 50:return a.jsx(As.Color,{size:14});case 51:return a.jsx(Do.Color,{size:14});case 8:case 22:return a.jsx(Ao.Color,{size:14});case 21:case 44:default:return null}}const L9=["amber","blue","cyan","green","grey","indigo","light-blue","lime","orange","pink","purple","red","teal","violet","yellow"],pue=["#1664FF","#1AC6FF","#FF8A00","#3CC780","#7442D4","#FFC400","#304D77","#B48DEB","#009488","#FF7DDA"],mue=["#1664FF","#B2CFFF","#1AC6FF","#94EFFF","#FF8A00","#FFCE7A","#3CC780","#B9EDCD","#7442D4","#DDC5FA","#FFC400","#FAE878","#304D77","#8B959E","#B48DEB","#EFE3FF","#009488","#59BAA8","#FF7DDA","#FFCFEE"],R9={"dall-e":"rgb(147,112,219)","dall-e-3":"rgb(153,50,204)","gpt-3.5-turbo":"rgb(184,227,167)","gpt-3.5-turbo-0613":"rgb(60,179,113)","gpt-3.5-turbo-1106":"rgb(32,178,170)","gpt-3.5-turbo-16k":"rgb(149,252,206)","gpt-3.5-turbo-16k-0613":"rgb(119,255,214)","gpt-3.5-turbo-instruct":"rgb(175,238,238)","gpt-4":"rgb(135,206,235)","gpt-4-0613":"rgb(100,149,237)","gpt-4-1106-preview":"rgb(30,144,255)","gpt-4-0125-preview":"rgb(2,177,236)","gpt-4-turbo-preview":"rgb(2,177,255)","gpt-4-32k":"rgb(104,111,238)","gpt-4-32k-0613":"rgb(61,71,139)","gpt-4-all":"rgb(65,105,225)","gpt-4-gizmo-*":"rgb(0,0,255)","gpt-4-vision-preview":"rgb(25,25,112)","text-ada-001":"rgb(255,192,203)","text-babbage-001":"rgb(255,160,122)","text-curie-001":"rgb(219,112,147)","text-davinci-003":"rgb(219,112,147)","text-davinci-edit-001":"rgb(255,105,180)","text-embedding-ada-002":"rgb(255,182,193)","text-embedding-v1":"rgb(255,174,185)","text-moderation-latest":"rgb(255,130,171)","text-moderation-stable":"rgb(255,160,122)","tts-1":"rgb(255,140,0)","tts-1-1106":"rgb(255,165,0)","tts-1-hd":"rgb(255,215,0)","tts-1-hd-1106":"rgb(255,223,0)","whisper-1":"rgb(245,245,220)","claude-3-opus-20240229":"rgb(255,132,31)","claude-3-sonnet-20240229":"rgb(253,135,93)","claude-3-haiku-20240307":"rgb(255,175,146)","claude-2.1":"rgb(255,209,190)"};function ybe(e){if(R9[e])return R9[e];let t=0;for(let i=0;i<e.length;i++)t=(t<<5)-t+e.charCodeAt(i),t=t&t;t=Math.abs(t);const r=e.length>10?mue:pue,n=t%r.length;return r[n]}function To(e){let t=0;for(let n=0;n<e.length;n++)t+=e.charCodeAt(n);let r=t%L9.length;return L9[r]}function as(e,t={}){const{color:r,size:n="default",shape:i="circle",onClick:s,suffixIcon:o}=t,l=uo(ct.t);let u=null;for(const[c,d]of Object.entries(l))if(c!=="all"&&d.filter({model_name:e})){u=d.icon;break}return a.jsx(ye,{color:r||To(e),prefixIcon:u,suffixIcon:o,size:n,shape:i,onClick:s,children:e})}function R1(e){if(e==="")return a.jsx(ye,{color:"white",shape:"circle",children:ct.t("用户分组")},"default");const t={vip:"yellow",pro:"yellow",svip:"red",premium:"red"},r=e.split(",").sort();return a.jsx("span",{children:r.map(n=>a.jsx(ye,{color:t[n]||To(n),shape:"circle",onClick:async i=>{i.stopPropagation(),await Qr(n)?Pe(ct.t("已复制:")+n):Je.error({title:ct.t("无法复制到剪贴板,请手动复制"),content:n})},children:n},n))},e)}function gue(e){let t="green";return e>5?t="red":e>3?t="orange":e>1&&(t="blue"),a.jsxs(ye,{color:t,children:[e,"x ",ct.t("倍率")]})}const oF=e=>{const{disabled:t,selected:r,label:n,value:i,focused:s,className:o,style:l,onMouseEnter:u,onClick:c,empty:d,emptyContent:h,...f}=e,p={display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 16px",cursor:t?"not-allowed":"pointer",backgroundColor:s?"var(--semi-color-fill-0)":"transparent",opacity:t?.5:1,...r&&{backgroundColor:"var(--semi-color-primary-light-default)"},"&:hover":{backgroundColor:!t&&"var(--semi-color-fill-1)"}},g=()=>{!t&&c&&c()},y=b=>{!t&&u&&u(b)};return a.jsxs("div",{style:p,onClick:g,onMouseEnter:y,children:[a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[a.jsx(Ie.Text,{strong:!0,type:t?"tertiary":void 0,children:i}),a.jsx(Ie.Text,{type:"secondary",size:"small",children:n})]}),e.ratio&&gue(e.ratio)]})};function z1(e){return e>=1e9?(e/1e9).toFixed(1)+"B":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e4?(e/1e3).toFixed(1)+"k":e}function Yo(){let e=localStorage.getItem("quota_per_unit");return e=parseFloat(e),e}function yue(e){let t=localStorage.getItem("quota_per_unit");return t=parseFloat(t),e=parseFloat(e),t*e}function bbe(e,t=6){let r=localStorage.getItem("quota_per_unit");return r=parseFloat(r),(e/r).toFixed(t)}function Du(e){let t=localStorage.getItem("display_in_currency");return t=t==="true",t?"$"+e:z1(yue(e))}function Tt(e,t=2){let r=localStorage.getItem("quota_per_unit"),n=localStorage.getItem("display_in_currency");return r=parseFloat(r),n=n==="true",n?"$"+(e/r).toFixed(t):z1(e)}function bue(e){return Number.isFinite(e)&&e!==-1}function Po(e,t){const r=bue(t),n=r?ct.t("专属倍率"):ct.t("分组倍率");return{ratio:r?t:e,label:n,useUserGroupRatio:r}}function xue(e,t,r,n=-1,i,s,o,l=0,u=1,c=!1,d=1,h=0,f=!1,p=0,g=0,y=!1,b=0,x=0,v=!1,E=0,_=0){const{ratio:j,label:F}=Po(s,o);if(s=j,n!==-1)return ct.t("模型价格:${{price}} * {{ratioType}}:{{ratio}} = ${{total}}",{price:n,ratio:s,total:n*s,ratioType:F});{i===void 0&&(i=0);let k=r*2,U=r*2*i,W=r*2*u,K=r*2*d,$=e-l+l*u;c&&h>0&&($=e-h+h*d),E>0&&($-=E);let O=$/1e6*k*s+E/1e6*_*s+t/1e6*U*s+p/1e3*g*s+b/1e3*x*s;return a.jsx(a.Fragment,{children:a.jsxs("article",{children:[a.jsx("p",{children:ct.t("输入价格:${{price}} / 1M tokens{{audioPrice}}",{price:k,audioPrice:v?`,音频 $${_} / 1M tokens`:""})}),a.jsx("p",{children:ct.t("输出价格:${{price}} * {{completionRatio}} = ${{total}} / 1M tokens (补全倍率: {{completionRatio}})",{price:k,total:U,completionRatio:i})}),l>0&&a.jsx("p",{children:ct.t("缓存价格:${{price}} * {{cacheRatio}} = ${{total}} / 1M tokens (缓存倍率: {{cacheRatio}})",{price:k,total:k*u,cacheRatio:u})}),c&&h>0&&a.jsx("p",{children:ct.t("图片输入价格:${{price}} * {{ratio}} = ${{total}} / 1M tokens (图片倍率: {{imageRatio}})",{price:K,ratio:s,total:K*s,imageRatio:d})}),f&&p>0&&a.jsx("p",{children:ct.t("Web搜索价格:${{price}} / 1K 次",{price:g})}),y&&b>0&&a.jsx("p",{children:ct.t("文件搜索价格:${{price}} / 1K 次",{price:x})}),a.jsx("p",{}),a.jsx("p",{children:(()=>{let R="";c&&h>0?R=ct.t("(输入 {{nonImageInput}} tokens + 图片输入 {{imageInput}} tokens * {{imageRatio}} / 1M tokens * ${{price}}",{nonImageInput:e-h,imageInput:h,imageRatio:d,price:k}):l>0?R=ct.t("(输入 {{nonCacheInput}} tokens / 1M tokens * ${{price}} + 缓存 {{cacheInput}} tokens / 1M tokens * ${{cachePrice}}",{nonCacheInput:e-l,cacheInput:l,price:k,cachePrice:W}):v&&E>0?R=ct.t("(输入 {{nonAudioInput}} tokens / 1M tokens * ${{price}} + 音频输入 {{audioInput}} tokens / 1M tokens * ${{audioPrice}}",{nonAudioInput:e-E,audioInput:E,price:k,audioPrice:_}):R=ct.t("(输入 {{input}} tokens / 1M tokens * ${{price}}",{input:e,price:k});const z=ct.t("输出 {{completion}} tokens / 1M tokens * ${{compPrice}}) * {{ratioType}} {{ratio}}",{completion:t,compPrice:U,ratio:s,ratioType:F}),H=[f&&p>0?ct.t(" + Web搜索 {{count}}次 / 1K 次 * ${{price}} * {{ratioType}} {{ratio}}",{count:p,price:g,ratio:s,ratioType:F}):"",y&&b>0?ct.t(" + 文件搜索 {{count}}次 / 1K 次 * ${{price}} * {{ratioType}} {{ratio}}",{count:b,price:x,ratio:s,ratioType:F}):""].join("");return ct.t("{{inputDesc}} + {{outputDesc}}{{extraServices}} = ${{total}}",{inputDesc:R,outputDesc:z,extraServices:H,total:O.toFixed(6)})})()}),a.jsx("p",{children:ct.t("仅供参考,以实际扣费为准")})]})})}}function vue(e,t,r=-1,n,i,s=!1,o=1,l=!1,u=0,c=!1,d=0){const{ratio:h,label:f,useUserGroupRatio:p}=Po(n,i);return r!==-1?ct.t("模型价格 ${{price}},{{ratioType}} {{ratio}}",{price:r,ratioType:f,ratio:h}):s?ct.t("模型倍率 {{modelRatio}},输出倍率 {{completionRatio}},图片输入倍率 {{imageRatio}},{{ratioType}} {{ratio}}",{modelRatio:e,completionRatio:t,imageRatio:o,ratioType:f,ratio:h}):l?ct.t("模型倍率 {{modelRatio}},输出倍率 {{completionRatio}},{{ratioType}} {{ratio}},Web 搜索调用 {{webSearchCallCount}} 次",{modelRatio:e,completionRatio:t,ratioType:f,ratio:h,webSearchCallCount:u}):ct.t("模型倍率 {{modelRatio}},输出倍率 {{completionRatio}},{{ratioType}} {{ratio}}",{modelRatio:e,completionRatio:t,ratioType:f,ratio:h})}function wue(e,t=-1,r,n,i=0,s=1,o=!1,l=1){const{ratio:u,label:c}=Po(r,n);return r=u,t!==-1?ct.t("价格:${{price}} * {{ratioType}}:{{ratio}}",{price:t,ratioType:c,ratio:r}):o&&i!==0?ct.t("模型: {{ratio}} * {{ratioType}}: {{groupRatio}} * 缓存倍率: {{cacheRatio}} * 图片输入倍率: {{imageRatio}}",{ratio:e,ratioType:c,groupRatio:r,cacheRatio:s,imageRatio:l}):o?ct.t("模型: {{ratio}} * {{ratioType}}: {{groupRatio}} * 图片输入倍率: {{imageRatio}}",{ratio:e,ratioType:c,groupRatio:r,imageRatio:l}):i!==0?ct.t("模型: {{ratio}} * 分组: {{groupRatio}} * 缓存: {{cacheRatio}}",{ratio:e,groupRatio:r,cacheRatio:s}):ct.t("模型: {{ratio}} * {{ratioType}}:{{groupRatio}}",{ratio:e,ratioType:c,groupRatio:r})}function Eue(e,t,r,n=-1,i,s,o,l,u,c,d,h=0,f=1){const{ratio:p,label:g}=Po(c,d);if(c=p,n!==-1)return ct.t("模型价格:${{price}} * {{ratioType}}:{{ratio}} = ${{total}}",{price:n,ratio:c,total:n*c,ratioType:g});{i===void 0&&(i=0),l=parseFloat(l).toFixed(6);let y=r*2,b=r*2*i,v=(e-h+h*f)/1e6*y*c+t/1e6*b*c,E=s/1e6*y*l*c+o/1e6*y*l*u*c,_=v+E;return a.jsx(a.Fragment,{children:a.jsxs("article",{children:[a.jsx("p",{children:ct.t("提示价格:${{price}} / 1M tokens",{price:y})}),a.jsx("p",{children:ct.t("补全价格:${{price}} * {{completionRatio}} = ${{total}} / 1M tokens (补全倍率: {{completionRatio}})",{price:y,total:b,completionRatio:i})}),h>0&&a.jsx("p",{children:ct.t("缓存价格:${{price}} * {{cacheRatio}} = ${{total}} / 1M tokens (缓存倍率: {{cacheRatio}})",{price:y,total:y*f,cacheRatio:f})}),a.jsx("p",{children:ct.t("音频提示价格:${{price}} * {{audioRatio}} = ${{total}} / 1M tokens (音频倍率: {{audioRatio}})",{price:y,total:y*l,audioRatio:l})}),a.jsx("p",{children:ct.t("音频补全价格:${{price}} * {{audioRatio}} * {{audioCompRatio}} = ${{total}} / 1M tokens (音频补全倍率: {{audioCompRatio}})",{price:y,total:y*l*u,audioRatio:l,audioCompRatio:u})}),a.jsx("p",{children:h>0?ct.t("文字提示 {{nonCacheInput}} tokens / 1M tokens * ${{price}} + 缓存 {{cacheInput}} tokens / 1M tokens * ${{cachePrice}} + 文字补全 {{completion}} tokens / 1M tokens * ${{compPrice}} = ${{total}}",{nonCacheInput:e-h,cacheInput:h,cachePrice:y*f,price:y,completion:t,compPrice:b,total:v.toFixed(6)}):ct.t("文字提示 {{input}} tokens / 1M tokens * ${{price}} + 文字补全 {{completion}} tokens / 1M tokens * ${{compPrice}} = ${{total}}",{input:e,price:y,completion:t,compPrice:b,total:v.toFixed(6)})}),a.jsx("p",{children:ct.t("音频提示 {{input}} tokens / 1M tokens * ${{audioInputPrice}} + 音频补全 {{completion}} tokens / 1M tokens * ${{audioCompPrice}} = ${{total}}",{input:s,completion:o,audioInputPrice:l*y,audioCompPrice:l*u*y,total:E.toFixed(6)})}),a.jsx("p",{children:ct.t("总价:文字价格 {{textPrice}} + 音频价格 {{audioPrice}} = ${{total}}",{total:_.toFixed(6),textPrice:v.toFixed(6),audioPrice:E.toFixed(6)})}),a.jsx("p",{children:ct.t("仅供参考,以实际扣费为准")})]})})}}function uf(e,t){let r=localStorage.getItem("display_in_currency");return r=r==="true",r?ct.t("等价金额:")+Tt(e,t):""}function Cue(e,t,r,n=-1,i,s,o,l=0,u=1,c=0,d=1){const{ratio:h,label:f}=Po(s,o);if(s=h,n!==-1)return ct.t("模型价格:${{price}} * {{ratioType}}:{{ratio}} = ${{total}}",{price:n,ratioType:f,ratio:s,total:n*s});{i===void 0&&(i=0);const p=i||0,g=r*2,y=r*2*p;let b=(r*2*u).toFixed(2),x=r*2*d;const v=e;let _=(v+l*u+c*d)/1e6*g*s+t/1e6*y*s;return a.jsx(a.Fragment,{children:a.jsxs("article",{children:[a.jsx("p",{children:ct.t("提示价格:${{price}} / 1M tokens",{price:g})}),a.jsx("p",{children:ct.t("补全价格:${{price}} * {{ratio}} = ${{total}} / 1M tokens",{price:g,ratio:i,total:y})}),l>0&&a.jsx("p",{children:ct.t("缓存价格:${{price}} * {{ratio}} = ${{total}} / 1M tokens (缓存倍率: {{cacheRatio}})",{price:g,ratio:u,total:b,cacheRatio:u})}),c>0&&a.jsx("p",{children:ct.t("缓存创建价格:${{price}} * {{ratio}} = ${{total}} / 1M tokens (缓存创建倍率: {{cacheCreationRatio}})",{price:g,ratio:d,total:x,cacheCreationRatio:d})}),a.jsx("p",{}),a.jsx("p",{children:l>0||c>0?ct.t("提示 {{nonCacheInput}} tokens / 1M tokens * ${{price}} + 缓存 {{cacheInput}} tokens / 1M tokens * ${{cachePrice}} + 缓存创建 {{cacheCreationInput}} tokens / 1M tokens * ${{cacheCreationPrice}} + 补全 {{completion}} tokens / 1M tokens * ${{compPrice}} * {{ratioType}} {{ratio}} = ${{total}}",{nonCacheInput:v,cacheInput:l,cacheRatio:u,cacheCreationInput:c,cacheCreationRatio:d,cachePrice:b,cacheCreationPrice:x,price:g,completion:t,compPrice:y,ratio:s,ratioType:f,total:_.toFixed(6)}):ct.t("提示 {{input}} tokens / 1M tokens * ${{price}} + 补全 {{completion}} tokens / 1M tokens * ${{compPrice}} * {{ratioType}} {{ratio}} = ${{total}}",{input:e,price:g,completion:t,compPrice:y,ratio:s,ratioType:f,total:_.toFixed(6)})}),a.jsx("p",{children:ct.t("仅供参考,以实际扣费为准")})]})})}}function Sue(e,t,r=-1,n,i,s=1,o=1){const{ratio:l,label:u}=Po(n,i);return n=l,r!==-1?ct.t("模型价格 ${{price}},{{ratioType}} {{ratio}}",{price:r,ratioType:u,ratio:n}):ct.t("模型倍率 {{modelRatio}},输出倍率 {{completionRatio}},缓存倍率 {{cacheRatio}},缓存创建倍率 {{cacheCreationRatio}},{{ratioType}} {{ratio}}",{modelRatio:e,completionRatio:t,cacheRatio:s,cacheCreationRatio:o,ratioType:u,ratio:n})}function Fue(e,t=-1,r,n,i=0,s=1,o=0,l=1){const{ratio:u,label:c}=Po(r,n);return r=u,t!==-1?ct.t("价格:${{price}} * {{ratioType}}:{{ratio}}",{price:t,ratioType:c,ratio:r}):i!==0||o!==0?ct.t("模型: {{ratio}} * {{ratioType}}: {{groupRatio}} * 缓存: {{cacheRatio}}",{ratio:e,ratioType:c,groupRatio:r,cacheRatio:s,cacheCreationRatio:l}):ct.t("模型: {{ratio}} * {{ratioType}}: {{groupRatio}}",{ratio:e,ratioType:c,groupRatio:r})}function jue(e={}){const{previousContentLength:t=0}=e;return r=>{let n=0;Q4(r,"element",i=>{if(["p","h1","h2","h3","h4","h5","h6","li","strong"].includes(i.tagName)&&i.children){const s=[];i.children.forEach(o=>{if(o.type==="text")try{const u=new Intl.Segmenter("zh",{granularity:"word"}).segment(o.value);Array.from(u).map(c=>c.segment).filter(Boolean).forEach(c=>{const d=n,h=n+c.length,f=d>=t;s.push({type:"element",tagName:"span",properties:{className:f?["animate-fade-in"]:[]},children:[{type:"text",value:c}]}),n=h})}catch{n>=t?s.push({type:"element",tagName:"span",properties:{className:["animate-fade-in"]},children:[{type:"text",value:o.value}]}):s.push(o),n+=o.value.length}else s.push(o)}),i.children=s}})}}function pu(e){return(e===void 0||e==="")&&(e="{}"),JSON.parse(e)}function _ue(e){localStorage.setItem("status",JSON.stringify(e)),localStorage.setItem("system_name",e.system_name),localStorage.setItem("logo",e.logo),localStorage.setItem("footer_html",e.footer_html),localStorage.setItem("quota_per_unit",e.quota_per_unit),localStorage.setItem("display_in_currency",e.display_in_currency),localStorage.setItem("enable_drawing",e.enable_drawing),localStorage.setItem("enable_task",e.enable_task),localStorage.setItem("enable_data_export",e.enable_data_export),localStorage.setItem("chats",JSON.stringify(e.chats)),localStorage.setItem("pay_methods",JSON.stringify(e.pay_methods)),localStorage.setItem("data_export_default_time",e.data_export_default_time),localStorage.setItem("default_collapse_sidebar",e.default_collapse_sidebar),localStorage.setItem("mj_notify_enabled",e.mj_notify_enabled),e.chat_link||localStorage.removeItem("chat_link"),e.chat_link2||localStorage.removeItem("chat_link2"),e.docs_link?localStorage.setItem("docs_link",e.docs_link):localStorage.removeItem("docs_link")}function ul(e){localStorage.setItem("user",JSON.stringify(e))}async function kue(){try{const e=await Se.get("/api/token/?p=1&size=10"),{success:t,data:r}=e.data;if(!t)throw new Error("Failed to fetch token keys");return(Array.isArray(r)?r:r.items||[]).filter(s=>s.status===1).map(s=>s.key)}catch(e){return console.error("Error fetching token keys:",e),[]}}function Oue(){let e=localStorage.getItem("status"),t="";if(e)try{e=JSON.parse(e),t=e.server_address||""}catch(r){console.error("Failed to parse status from localStorage:",r)}return t||(t=window.location.origin),t}const La=e=>{if(typeof e=="boolean")return e;if(typeof e=="number")return e===1;if(typeof e=="string"){const t=e.toLowerCase();return t==="true"||t==="1"}return!1};var Aue=["title"],Due=["title"];function Jh(){return Jh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jh.apply(this,arguments)}function lF(e,t){if(e==null)return{};var r=Bue(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bue(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Tue=function(t){var r=t.title,n=lF(t,Aue);return Bt.createElement("svg",Jh({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},n),r&&Bt.createElement("title",null,r),Bt.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),Bt.createElement("path",{d:"m226.8 239.2-9.7-15.6-17.9 4.4 11.9-14.1-9.7-15.6 17.1 6.9 11.8-14.1-1.3 18.4 17.1 6.9-17.9 4.4zM290.6 82l-10.1 15.4 11.6 14.3-17.7-4.8-10.1 15.5-1-18.4-17.7-4.8 17.2-6.6-1-18.4 11.6 14.3zm-54.4-56.6-2 18.3 16.8 7.6-18 3.8-2 18.3-9.2-16-17.9 3.8 12.3-13.7-9.2-15.9 16.8 7.5zm56.6 136.4-14.9 10.9 5.8 17.5-14.9-10.8-14.9 11 5.6-17.6-14.9-10.7 18.4-.1 5.6-17.6 5.8 17.5zM115 46.3l17.3 53.5h56.2l-45.4 32.9 17.3 53.5-45.4-33-45.5 33 17.4-53.5-45.5-32.9h56.3z",fill:"#FFDA44"}))},Pue=function(t){var r=t.title,n=lF(t,Due);return Bt.createElement("svg",Jh({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},n),r&&Bt.createElement("title",null,r),Bt.createElement("g",{fill:"#FFF"},Bt.createElement("path",{d:"M0 0h513v341.3H0V0z"}),Bt.createElement("path",{d:"M311.7 230 513 341.3v-31.5L369.3 230h-57.6zM200.3 111.3 0 0v31.5l143.7 79.8h56.6z"})),Bt.createElement("path",{d:"M393.8 230 513 295.7V230H393.8zm-82.1 0L513 341.3v-31.5L369.3 230h-57.6zm146.9 111.3-147-81.7v81.7h147zM90.3 230 0 280.2V230h90.3zm110 14.2v97.2H25.5l174.8-97.2zm-82.1-132.9L0 45.6v65.7h118.2zm82.1 0L0 0v31.5l143.7 79.8h56.6zM53.4 0l147 81.7V0h-147zm368.3 111.3L513 61.1v50.2h-91.3zm-110-14.2V0h174.9L311.7 97.1z",fill:"#0052B4"}),Bt.createElement("g",{fill:"#D80027"},Bt.createElement("path",{d:"M288 0h-64v138.7H0v64h224v138.7h64V202.7h224v-64H288V0z"}),Bt.createElement("path",{d:"M311.7 230 513 341.3v-31.5L369.3 230h-57.6zm-168 0L0 309.9v31.5L200.3 230h-56.6zm56.6-118.7L0 0v31.5l143.7 79.8h56.6zm168 0L513 31.5V0L311.7 111.3h56.6z"})))},Nue=Object.defineProperty,z9=Object.getOwnPropertySymbols,Mue=Object.prototype.hasOwnProperty,Iue=Object.prototype.propertyIsEnumerable,U9=(e,t,r)=>t in e?Nue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$ue=(e,t)=>{for(var r in t||(t={}))Mue.call(t,r)&&U9(e,r,t[r]);if(z9)for(var r of z9(t))Iue.call(t,r)&&U9(e,r,t[r]);return e};function Lue(e){return m.createElement("svg",$ue({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m123.17 114.66-.2-.18-34.6 27.1.46-.04c10.03-.9 16.71-.38 18.79 0l.1.02 15.45-26.9Z",fill:"#1C1F23"}),m.createElement("rect",{x:67.706,y:73.871,width:55.6333,height:39.8004,fill:"#C6CACD",stroke:"#1C1F23"}),m.createElement("path",{d:"m49.97 136.5 17.7-22.44h55.44l-17.7 22.45H49.97Z",fill:"#888D92",stroke:"#1C1F23"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M101.67 78.57H75.75v21.45h18.77v6.25h14.6v-13.7h-7.45v-14Z",fill:"#888D92"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.66 79.43h24.26v13.14h-6.4v6.65H76.66v-19.8Zm17.86 20.62H75.74V78.6h26.01v13.97h7.36v13.7h-14.6v-6.22Zm7.23-6.65h6.54v12.05H95.34v-5.4h6.41V93.4Zm-.83 0v5.82h-5.58V93.4h5.58Z",fill:"#C6CACD"}),m.createElement("path",{d:"M43.29 174.89h-9.78c4.19-1.22 4.04-11.99 3.44-17.22.89 5.73 4.6 13.87 6.34 17.22Z",fill:"#1C1F23",stroke:"#1C1F23"}),m.createElement("path",{d:"M75.93 40.59a32.78 32.78 0 1 1-65.56 0 32.78 32.78 0 0 1 65.56 0Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M47.56 25.12a4.4 4.4 0 0 0-8.82 0v11.06H27.68a4.4 4.4 0 0 0 0 8.82h11.06v11.06a4.4 4.4 0 0 0 8.82 0V45h11.06a4.4 4.4 0 1 0 0-8.82H47.56V25.12Z",fill:"var(--semi-color-primary)"}),m.createElement("path",{d:"M63.82 83.33C59.3 81.5 50.3 75.37 50.44 65.54",stroke:"#1C1F23"}),m.createElement("path",{d:"M52.59 110.23c2.88.1 6.5.91 9.97 4.88 2.48 2.84 4.67 7.21 7.45 14.5a73.5 73.5 0 0 1 4.27-16.32c1.2-3.07 5.29-10.25 9.35-10.52 4.06-.26 4.47 3.57 2.57 4.65-1.9 1.08-3 .96-4.8 3.41-1.77 2.46-2.95 4.95-2 11.34.72-2.94 1.76-4.59 2.77-5.7 1-1.13 8.8-8.07 14.36-8.36 3.86-.2 5.2.7 4.78 1.73a9.27 9.27 0 0 1 4.08-.32c2.08.4 2.78 1.9 1.83 3.17 2.19-.16 4.28.23 5.36 1.84.33.49.24 1.64-.56 2.59-.77.91-2.25 1.63-2.83 1.94-1.2.63-5.94 3.72-7.35 8.1-1.41 4.4-2.73 7.47 3.46 20.83 4.71 10.16 5.64 21.33 1.87 29.6 8.96-.27 16.89-2.14 22.02-5.04 4.39-2.48 8.27-5.5 10.39-10.5-2.33-19.66-2.27-57.26.91-57.43 4.5-.23 1.73 48 0 54.7a19.5 19.5 0 0 1-.91 2.72c.67 5.67 1.54 9.84 2.59 11.2 1.7 2.19 40.44 4.76 50.2 1.59 1.28-.41 2.07-.93 2.2-1.55 1.02-4.54-14.79-8.26-20.87-13.96-4.19-3.91-2.77-32.42-4.97-50.45-2.2-18.04-7.9-36.48-25.26-40.71-13.62-3.33-24.98 1.73-30.14 5.64H85.62c2.71-5.6 10.46-16.06 26.4-19.18 19.26-3.78 36.18 5.19 46.96 17.46 4.95 5.25 7.75 8.71 9.23 8.71 1.48 0 9.22-4.68 17.6-5.22 2.5-.16 2.46 2.64 1.19 6.8a30.9 30.9 0 0 1-2.09 5.07c-2.44 4.94-7.83 14.3-16.18 21.42 2.2 18.04.78 46.55 4.97 50.46 6.08 5.7 21.89 9.42 20.88 13.96-.14.62-.93 1.14-2.2 1.55-9.77 3.17-48.51.6-50.21-1.59-1.05-1.36-1.92-5.53-2.6-11.2-2.1 5.02-5.99 8.03-10.38 10.51-5.13 2.9-13.06 4.77-22.02 5.05a20.4 20.4 0 0 1-5.01 6.87c-9 7.98-28.99 11.67-47.77 1.67-9.57-5.08-14.72-17.62-17.5-30.17v.06c.85 8.92 1.34 14.13-2.18 18.52a49.9 49.9 0 0 1-19.58-1.92c-5.22-1.61-12.91-8.31-8.38-22.61 4.54-14.3 27.98-32.78 30.14-34.21 2.15-1.44 7.96-5.58 15.7-5.58Z",fill:"#C6CACD"}),m.createElement("path",{d:"M70.01 129.61c-1.78 10.7.14 28.07 3.33 27.29 1-.25 1.57-1.58 1.67-3.9 7.16.34 27.77 7.99 34.47 11.8.15 4.62-.59 9.01-2.31 12.8a20.38 20.38 0 0 1-5.01 6.87c-9 7.98-28.99 11.67-47.77 1.67-9.57-5.09-14.72-17.62-17.5-30.17v.06c.85 8.92 1.34 14.13-2.18 18.52a49.9 49.9 0 0 1-19.58-1.92c-5.22-1.61-12.91-8.31-8.38-22.61 4.54-14.3 27.98-32.78 30.14-34.21 2.15-1.44 7.96-5.58 15.7-5.58 2.88.1 6.5.91 9.97 4.88 2.48 2.84 4.67 7.21 7.45 14.5Z",fill:"#888D92"}),m.createElement("path",{d:"M105.3 148c4.71 10.15 5.64 21.32 1.87 29.6 8.96-.28 16.89-2.15 22.02-5.05 4.39-2.48 8.27-5.5 10.39-10.5-2.33-19.66-2.27-57.26.91-57.43 4.5-.23 1.73 48 0 54.7a19.5 19.5 0 0 1-.91 2.72c.67 5.67 1.54 9.84 2.59 11.2 1.7 2.19 40.44 4.76 50.2 1.59 1.28-.41 2.07-.93 2.2-1.55 1.02-4.54-14.79-8.26-20.87-13.96-4.19-3.91-2.77-32.42-4.97-50.45-2.2-18.04-7.9-36.48-25.26-40.71-13.62-3.33-24.98 1.73-30.14 5.64h10.17v39.9l-16 27.8-4.96-.07a86.47 86.47 0 0 0 2.76 6.56Z",fill:"#C6CACD"}),m.createElement("path",{d:"M70.01 129.61c5.5 16.51 6.26 26.57 3.33 27.29-3.2.78-5.1-16.59-3.33-27.29Zm0 0c-2.78-7.29-4.97-11.66-7.45-14.5-3.46-3.97-7.09-4.79-9.97-4.88-7.74 0-13.55 4.14-15.7 5.58-2.16 1.43-25.6 19.9-30.14 34.2-4.53 14.3 3.16 21 8.38 22.62 6.19 1.92 12.5 2.54 19.58 1.92 3.53-4.4 3.03-9.62 2.18-18.58M70 129.61a73.5 73.5 0 0 1 4.27-16.32c1.2-3.07 5.29-10.25 9.35-10.52 4.06-.26 4.47 3.57 2.57 4.65-1.9 1.08-3 .96-4.8 3.41-1.77 2.46-2.95 4.95-2 11.34.72-2.94 1.76-4.59 2.77-5.7 1-1.13 8.8-8.07 14.36-8.36 5.57-.29 5.88 1.73 3.28 3.08-2.6 1.34-7.62 2.6-14.34 12.16 0 0-.6-5.24 10-11.04 2.88-1.57 7-3.36 9.92-2.8 3.14.62 3.12 3.7-.94 4.81a15.88 15.88 0 0 0-5.09 2.92 30.45 30.45 0 0 0-5.78 6.54c.43-3.53 4.31-8.52 8.96-10.08 3.21-1.08 8.15-1.98 10.04.83.33.49.24 1.64-.56 2.59-.77.91-2.25 1.63-2.83 1.94-1.2.63-5.94 3.72-7.35 8.1-1.15 3.57-2.23 6.26.7 14.27m-68.88-15.17c.08 5.48.55 17.6 3.23 29.71m0 0c2.78 12.55 7.93 25.09 17.5 30.17 18.78 10 38.78 6.3 47.77-1.67a20.4 20.4 0 0 0 5-6.87m0 0c3.78-8.28 2.85-19.45-1.86-29.6a86.47 86.47 0 0 1-2.76-6.57m4.63 36.17c8.96-.28 16.89-2.15 22.02-5.05 4.39-2.48 8.27-5.5 10.39-10.5m29.15-53.19c2.2 18.04.78 46.55 4.97 50.46 6.08 5.7 21.89 9.42 20.88 13.96-.14.62-.93 1.14-2.2 1.55m-23.65-65.97c-2.2-18.03-7.9-36.47-25.26-40.7-13.62-3.33-24.98 1.73-30.14 5.64m55.4 35.06c8.35-7.12 13.74-16.48 16.18-21.42 1-2 1.57-3.36 2.09-5.07m5.38 92.46c-9.77 3.17-48.51.6-50.21-1.59-1.05-1.36-1.92-5.53-2.6-11.2m52.8 12.79c-.42-2.92-1.24-3.56-4.8-4.6M187 82.37c1.27-4.16 1.3-6.96-1.19-6.8-8.38.54-16.12 5.22-17.6 5.22-1.49 0-4.28-3.46-9.23-8.7-10.78-12.28-27.7-21.25-46.96-17.47-15.94 3.12-23.69 13.58-26.4 19.18h27.7M187 82.37c.01-1 .15-2.07-.43-2.74-1.77-2.02-5.89-2.07-6.46 1.98m-66.79-7.81h10.18v39.9l-16 27.8-4.96-.07m37.04 20.61c-2.33-19.65-2.27-57.25.91-57.42 4.5-.23 1.73 48 0 54.7a19.5 19.5 0 0 1-.91 2.72Z",stroke:"#1C1F23"}),m.createElement("path",{d:"M58.12 104.22A10.5 10.5 0 0 1 47.7 114.8a10.5 10.5 0 0 1-10.43-10.58A10.5 10.5 0 0 1 47.7 93.65a10.5 10.5 0 0 1 10.43 10.57Z",fill:"#C6CACD",stroke:"#1C1F23"}),m.createElement("mask",{id:"path-15-inside-1",fill:"white"},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.01 93.79c6.18.59 4.56 12.3.6 17.58-2.89 3.82-1.18 7.13.9 11.15a77 77 0 0 1 1.28 2.56 17.5 17.5 0 0 1 3.1 9.92c0 10.25-8.96 18.55-20 18.55S14.9 145.25 14.9 135c0-7.89 5.3-14.63 12.79-17.31 7.3-4.04 9.58-8.08 9.85-15.11.24-6.1 5.3-9.38 11.47-8.79Z"})),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.01 93.79c6.18.59 4.56 12.3.6 17.58-2.89 3.82-1.18 7.13.9 11.15a77 77 0 0 1 1.28 2.56 17.5 17.5 0 0 1 3.1 9.92c0 10.25-8.96 18.55-20 18.55S14.9 145.25 14.9 135c0-7.89 5.3-14.63 12.79-17.31 7.3-4.04 9.58-8.08 9.85-15.11.24-6.1 5.3-9.38 11.47-8.79Z",fill:"#1C1F23"}),m.createElement("path",{d:"m49.6 111.37 2.4 1.8-2.4-1.8Zm-.59-17.58-.28 2.99.28-2.99Zm1.5 28.73 2.67-1.38-2.67 1.38Zm1.28 2.56-2.71 1.28.1.21.13.2 2.48-1.69Zm-24.1-7.4 1.01 2.83.23-.08.2-.12-1.44-2.62Zm9.85-15.1 3 .11-3-.11ZM52 113.18c2.4-3.2 3.97-8.06 4.11-12.25.08-2.1-.2-4.37-1.18-6.27a6.93 6.93 0 0 0-5.63-3.86l-.57 5.98c.4.03.63.16.88.64.32.63.56 1.74.5 3.3-.1 3.13-1.34 6.76-2.9 8.84l4.79 3.61Zm1.18 7.96c-1.1-2.12-1.8-3.53-2.03-4.8-.18-1-.08-1.94.85-3.17l-4.8-3.6a9.65 9.65 0 0 0-1.95 7.83c.42 2.34 1.61 4.6 2.6 6.5l5.33-2.76Zm1.33 2.66c-.45-.94-.91-1.84-1.33-2.66l-5.34 2.76c.43.82.85 1.63 1.24 2.46l5.43-2.56Zm-5.2 2.97A14.5 14.5 0 0 1 51.9 135h6a20.5 20.5 0 0 0-3.62-11.61l-4.96 3.38ZM51.9 135c0 8.38-7.4 15.55-17 15.55v6c12.49 0 23-9.44 23-21.55h-6Zm-17 15.55c-9.6 0-16.99-7.17-16.99-15.55h-6c0 12.11 10.51 21.55 23 21.55v-6ZM17.9 135c0-6.47 4.36-12.18 10.8-14.49l-2.03-5.65C18.15 117.92 11.9 125.7 11.9 135h6Zm16.64-32.54c-.12 3.22-.7 5.4-1.82 7.2-1.15 1.8-3.07 3.51-6.49 5.4l2.9 5.25c3.9-2.14 6.77-4.47 8.65-7.45 1.9-3 2.61-6.35 2.76-10.17l-6-.23ZM49.3 90.8c-3.67-.34-7.25.43-10.02 2.46a11.64 11.64 0 0 0-4.74 9.2l6 .23a5.65 5.65 0 0 1 2.28-4.59c1.36-1 3.4-1.56 5.91-1.32l.57-5.98Z",fill:"#1C1F23",mask:"url(#path-15-inside-1)"}),m.createElement("path",{d:"M54.1 105.95c0 1.69-1.43 3.1-3.24 3.1-1.8 0-3.24-1.41-3.24-3.1 0-1.7 1.43-3.1 3.24-3.1 1.8 0 3.24 1.4 3.24 3.1Z",fill:"#C6CACD",stroke:"#1C1F23"}),m.createElement("path",{d:"M37.12 95.07a3.46 3.46 0 0 1-3.53 3.39c-2 0-3.54-1.56-3.54-3.4a3.46 3.46 0 0 1 3.54-3.38c1.99 0 3.53 1.55 3.53 3.39Z",fill:"#1C1F23",stroke:"#1C1F23",strokeWidth:3}),m.createElement("path",{d:"M147.22 155.65c-.1 3.58 1.27 4.88 4.7 6.08",stroke:"#1C1F23"}))}var Qh=Lue,Rue=Object.defineProperty,H9=Object.getOwnPropertySymbols,zue=Object.prototype.hasOwnProperty,Uue=Object.prototype.propertyIsEnumerable,q9=(e,t,r)=>t in e?Rue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hue=(e,t)=>{for(var r in t||(t={}))zue.call(t,r)&&q9(e,r,t[r]);if(H9)for(var r of H9(t))Uue.call(t,r)&&q9(e,r,t[r]);return e};function que(e){return m.createElement("svg",Hue({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},e),m.createElement("rect",{width:200,height:200,fill:"transparent"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m123.17 114.66-.2-.18-34.6 27.1.46-.04c10.03-.9 16.71-.38 18.79 0l.1.02 15.45-26.9Z",fill:"#515151"}),m.createElement("rect",{x:67.706,y:73.871,width:55.6333,height:39.8004,fill:"white",stroke:"#515151"}),m.createElement("path",{d:"m49.97 136.5 17.7-22.44h55.44l-17.7 22.45H49.97Z",fill:"#E6E8EA",stroke:"#515151"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M101.67 78.57H75.75v21.45h18.77v6.25h14.6v-13.7h-7.45v-14Z",fill:"#C6CACD"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.66 79.43h24.26v13.14h-6.4v6.65H76.66v-19.8Zm17.86 20.62H75.74V78.6h26.01v13.97h7.36v13.7h-14.6v-6.22Zm7.23-6.65h6.54v12.05H95.34v-5.4h6.41V93.4Zm-.83 0v5.82h-5.58V93.4h5.58Z",fill:"white"}),m.createElement("path",{d:"M43.29 174.89H33.5c4.19-1.22 4.04-11.99 3.44-17.22.88 5.73 4.6 13.87 6.34 17.22Z",fill:"#515151",stroke:"black"}),m.createElement("path",{d:"M75.93 40.59a32.78 32.78 0 1 1-65.56 0 32.78 32.78 0 0 1 65.56 0Z",fill:"var(--semi-color-primary-light-default)"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M47.56 25.12a4.4 4.4 0 0 0-8.82 0v11.06H27.68a4.4 4.4 0 0 0 0 8.82h11.06v11.06a4.4 4.4 0 0 0 8.82 0V45h11.06a4.4 4.4 0 0 0 0-8.82H47.56V25.12Z",fill:"var(--semi-color-primary)"}),m.createElement("path",{d:"M63.82 83.33c-4.52-1.84-13.53-7.96-13.38-17.79",stroke:"#515151"}),m.createElement("path",{d:"M52.59 110.23c2.88.1 6.5.91 9.97 4.88 2.48 2.84 4.67 7.21 7.45 14.5a73.53 73.53 0 0 1 4.27-16.32c1.2-3.07 5.29-10.25 9.35-10.52 4.06-.26 4.47 3.57 2.57 4.65-1.9 1.08-3 .96-4.8 3.41-1.77 2.46-2.95 4.95-2 11.34.72-2.94 1.76-4.59 2.77-5.71 1-1.12 8.8-8.06 14.36-8.35 3.86-.2 5.2.7 4.78 1.73a9.27 9.27 0 0 1 4.08-.33c2.08.41 2.78 1.9 1.83 3.18 2.19-.16 4.28.23 5.36 1.84.33.49.24 1.64-.56 2.58-.77.92-2.25 1.64-2.83 1.95-1.2.63-5.94 3.72-7.35 8.1-1.41 4.4-2.73 7.47 3.46 20.83 4.71 10.16 5.64 21.33 1.87 29.6 8.96-.27 16.89-2.14 22.02-5.04 4.39-2.48 8.27-5.5 10.39-10.5-2.33-19.66-2.27-57.26.91-57.43 4.5-.23 1.73 48 0 54.7a19.5 19.5 0 0 1-.91 2.72c.67 5.67 1.54 9.84 2.59 11.2 1.7 2.19 40.44 4.76 50.2 1.59 1.28-.42 2.07-.93 2.2-1.55 1.02-4.54-14.79-8.26-20.87-13.96-4.19-3.91-2.77-32.42-4.97-50.45-2.2-18.04-7.9-36.48-25.26-40.71-13.62-3.33-24.98 1.73-30.14 5.64H85.62c2.71-5.6 10.46-16.06 26.4-19.18 19.26-3.78 36.18 5.19 46.96 17.46 4.95 5.24 7.75 8.71 9.23 8.71 1.48 0 9.22-4.68 17.6-5.22 2.5-.16 2.46 2.64 1.19 6.8a30.8 30.8 0 0 1-2.09 5.07c-2.44 4.94-7.84 14.3-16.18 21.42 2.2 18.04.78 46.55 4.97 50.46 6.08 5.7 21.89 9.42 20.88 13.96-.14.62-.93 1.13-2.2 1.55-9.77 3.17-48.51.6-50.21-1.59-1.05-1.36-1.92-5.53-2.6-11.2-2.1 5.01-5.99 8.03-10.38 10.51-5.13 2.9-13.06 4.77-22.02 5.05a20.37 20.37 0 0 1-5.01 6.87c-9 7.98-28.99 11.67-47.77 1.67-9.57-5.09-14.72-17.62-17.5-30.17v.06c.85 8.92 1.34 14.13-2.18 18.52a49.9 49.9 0 0 1-19.58-1.92c-5.22-1.61-12.91-8.31-8.38-22.61 4.54-14.3 27.98-32.78 30.14-34.21 2.15-1.44 7.96-5.58 15.7-5.58Z",fill:"white"}),m.createElement("path",{d:"M70.01 129.61c-1.78 10.7.14 28.07 3.33 27.29 1-.25 1.57-1.58 1.67-3.9 7.16.34 27.77 7.99 34.47 11.8.15 4.62-.59 9.01-2.31 12.8a20.38 20.38 0 0 1-5.01 6.87c-9 7.98-28.99 11.67-47.77 1.67-9.57-5.09-14.72-17.62-17.5-30.17v.06c.85 8.92 1.34 14.13-2.18 18.52a49.9 49.9 0 0 1-19.58-1.92c-5.22-1.61-12.91-8.31-8.38-22.61 4.54-14.3 27.98-32.78 30.14-34.21 2.15-1.44 7.96-5.58 15.7-5.58 2.88.1 6.5.91 9.97 4.88 2.48 2.84 4.67 7.21 7.45 14.5Z",fill:"#E6E8EA"}),m.createElement("path",{d:"M105.3 148c4.71 10.15 5.64 21.32 1.87 29.6 8.96-.28 16.89-2.15 22.02-5.05 4.39-2.48 8.27-5.5 10.39-10.5-2.33-19.66-2.27-57.26.91-57.43 4.5-.23 1.73 48 0 54.7a19.5 19.5 0 0 1-.91 2.72c.67 5.67 1.54 9.84 2.59 11.2 1.7 2.19 40.44 4.76 50.2 1.59 1.28-.41 2.07-.93 2.2-1.55 1.02-4.54-14.79-8.26-20.87-13.96-4.19-3.91-2.77-32.42-4.97-50.45-2.2-18.04-7.9-36.48-25.26-40.71-13.62-3.33-24.98 1.73-30.14 5.64h10.17v39.9l-16 27.8-4.96-.07a86.47 86.47 0 0 0 2.76 6.56Z",fill:"white",className:""}),m.createElement("path",{d:"M70.01 129.61c5.5 16.51 6.26 26.57 3.33 27.29-3.2.78-5.1-16.59-3.33-27.29Zm0 0c-2.78-7.29-4.97-11.66-7.45-14.5-3.46-3.97-7.09-4.79-9.97-4.88-7.74 0-13.55 4.14-15.7 5.58-2.16 1.43-25.6 19.9-30.14 34.2-4.53 14.3 3.16 21 8.38 22.62 6.19 1.92 12.5 2.54 19.58 1.92 3.53-4.4 3.03-9.62 2.18-18.58M70 129.61a73.5 73.5 0 0 1 4.27-16.32c1.2-3.07 5.29-10.25 9.35-10.52 4.06-.26 4.47 3.57 2.57 4.65-1.9 1.08-3 .96-4.8 3.41-1.77 2.46-2.95 4.95-2 11.34.72-2.94 1.76-4.59 2.77-5.7 1-1.13 8.8-8.07 14.36-8.36 5.57-.29 5.88 1.73 3.28 3.08-2.6 1.34-7.62 2.6-14.34 12.16 0 0-.6-5.24 10-11.04 2.88-1.57 7-3.36 9.92-2.8 3.14.62 3.12 3.7-.94 4.81a15.88 15.88 0 0 0-5.09 2.92 30.45 30.45 0 0 0-5.78 6.54c.43-3.53 4.31-8.52 8.96-10.08 3.21-1.08 8.15-1.98 10.04.83.33.49.24 1.64-.56 2.59-.77.91-2.25 1.63-2.83 1.94-1.2.63-5.94 3.72-7.35 8.1-1.15 3.57-2.23 6.26.7 14.27m-68.88-15.17c.08 5.48.55 17.6 3.23 29.71m0 0c2.78 12.55 7.93 25.09 17.5 30.17 18.78 10 38.78 6.3 47.77-1.67a20.4 20.4 0 0 0 5-6.87m0 0c3.78-8.28 2.85-19.45-1.86-29.6a86.47 86.47 0 0 1-2.76-6.57m4.63 36.17c8.96-.28 16.89-2.15 22.02-5.05 4.39-2.48 8.27-5.5 10.39-10.5m29.15-53.19c2.2 18.04.78 46.55 4.97 50.46 6.08 5.7 21.89 9.42 20.88 13.96-.14.62-.93 1.14-2.2 1.55m-23.65-65.97c-2.2-18.03-7.9-36.47-25.26-40.7-13.62-3.33-24.98 1.73-30.14 5.64m55.4 35.06c8.35-7.12 13.74-16.48 16.18-21.42 1-2 1.57-3.36 2.09-5.07m5.38 92.46c-9.77 3.17-48.51.6-50.21-1.59-1.05-1.36-1.92-5.53-2.6-11.2m52.8 12.79c-.42-2.92-1.24-3.56-4.8-4.6M187 82.37c1.27-4.16 1.3-6.96-1.19-6.8-8.38.54-16.12 5.22-17.6 5.22-1.49 0-4.28-3.46-9.23-8.7-10.78-12.28-27.7-21.25-46.96-17.47-15.94 3.12-23.69 13.58-26.4 19.18h27.7M187 82.37c.01-1 .15-2.07-.43-2.74-1.77-2.02-5.89-2.07-6.46 1.98m-66.79-7.81h10.18v39.9l-16 27.8-4.96-.07m37.04 20.61c-2.33-19.65-2.27-57.25.91-57.42 4.5-.23 1.73 48 0 54.7a19.5 19.5 0 0 1-.91 2.72Z",stroke:"#1C1F23"}),m.createElement("path",{d:"M58.12 104.22A10.5 10.5 0 0 1 47.7 114.8a10.5 10.5 0 0 1-10.43-10.58A10.5 10.5 0 0 1 47.7 93.65a10.5 10.5 0 0 1 10.43 10.57Z",fill:"white",stroke:"#515151"}),m.createElement("mask",{id:"path-16-inside-1",fill:"white"},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.01 93.79c6.18.59 4.56 12.3.6 17.58-2.89 3.82-1.18 7.13.9 11.15a77 77 0 0 1 1.28 2.56 17.5 17.5 0 0 1 3.1 9.92c0 10.25-8.96 18.55-20 18.55S14.9 145.25 14.9 135c0-7.89 5.3-14.63 12.79-17.31 7.3-4.04 9.58-8.08 9.85-15.11.24-6.1 5.3-9.38 11.47-8.79Z"})),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.01 93.79c6.18.59 4.56 12.3.6 17.58-2.89 3.82-1.18 7.13.9 11.15a77 77 0 0 1 1.28 2.56 17.5 17.5 0 0 1 3.1 9.92c0 10.25-8.96 18.55-20 18.55S14.9 145.25 14.9 135c0-7.89 5.3-14.63 12.79-17.31 7.3-4.04 9.58-8.08 9.85-15.11.24-6.1 5.3-9.38 11.47-8.79Z",fill:"#515151"}),m.createElement("path",{d:"m49.6 111.37 2.4 1.8-2.4-1.8Zm-.59-17.58-.28 2.99.28-2.99Zm1.5 28.73 2.67-1.38-2.67 1.38Zm1.28 2.56-2.71 1.28.1.21.13.2 2.48-1.69Zm-24.1-7.4 1.01 2.83.23-.08.2-.12-1.44-2.62Zm9.85-15.1-3-.12 3 .12ZM52 113.18c2.4-3.2 3.97-8.06 4.11-12.25.08-2.1-.2-4.37-1.18-6.27a6.93 6.93 0 0 0-5.63-3.86l-.57 5.98c.4.03.63.16.88.64.32.63.56 1.74.5 3.3-.1 3.13-1.34 6.76-2.9 8.84l4.79 3.61Zm1.18 7.96c-1.1-2.12-1.8-3.53-2.03-4.8-.18-1-.08-1.94.85-3.17l-4.8-3.6a9.65 9.65 0 0 0-1.96 7.83c.43 2.34 1.62 4.6 2.6 6.5l5.34-2.76Zm1.33 2.66c-.45-.94-.91-1.84-1.33-2.66l-5.34 2.76c.43.82.85 1.63 1.24 2.46l5.43-2.56Zm-5.2 2.97a14.51 14.51 0 0 1 2.57 8.23h6a20.5 20.5 0 0 0-3.61-11.61l-4.96 3.38Zm2.57 8.23c0 8.38-7.39 15.55-16.99 15.55v6c12.49 0 23-9.44 23-21.55h-6ZM34.9 150.55c-9.6 0-16.99-7.17-16.99-15.55h-6c0 12.11 10.51 21.55 23 21.55v-6ZM17.9 135c0-6.47 4.36-12.18 10.8-14.49l-2.03-5.65C18.15 117.92 11.9 125.7 11.9 135h6Zm16.64-32.54c-.12 3.22-.7 5.4-1.82 7.2-1.15 1.8-3.07 3.51-6.49 5.4l2.9 5.25c3.9-2.14 6.77-4.47 8.65-7.45 1.9-3 2.61-6.35 2.76-10.17l-6-.23ZM49.3 90.8c-3.67-.34-7.25.43-10.02 2.46a11.64 11.64 0 0 0-4.74 9.2l6 .23a5.65 5.65 0 0 1 2.28-4.59c1.36-1 3.4-1.56 5.91-1.32l.57-5.98Z",fill:"#515151",mask:"url(#path-16-inside-1)"}),m.createElement("path",{d:"M54.1 105.95c0 1.69-1.43 3.1-3.24 3.1-1.81 0-3.24-1.41-3.24-3.1 0-1.7 1.43-3.1 3.24-3.1 1.8 0 3.24 1.4 3.24 3.1Z",fill:"white",stroke:"#515151"}),m.createElement("path",{d:"M37.12 95.07a3.46 3.46 0 0 1-3.53 3.39c-2 0-3.54-1.56-3.54-3.4a3.46 3.46 0 0 1 3.54-3.38c1.99 0 3.53 1.55 3.53 3.39Z",fill:"#515151",stroke:"#515151",strokeWidth:3}),m.createElement("path",{d:"M147.22 155.65c-.1 3.58 1.27 4.88 4.7 6.08",stroke:"#515151"}))}var e2=que,Wue=Object.defineProperty,W9=Object.getOwnPropertySymbols,Vue=Object.prototype.hasOwnProperty,Gue=Object.prototype.propertyIsEnumerable,V9=(e,t,r)=>t in e?Wue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kue=(e,t)=>{for(var r in t||(t={}))Vue.call(t,r)&&V9(e,r,t[r]);if(W9)for(var r of W9(t))Gue.call(t,r)&&V9(e,r,t[r]);return e};function Yue(e){return m.createElement("svg",Kue({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M100.75 191.99c6.21-.56 8.7-9.2 10.36-15.06l4.97 15.06h-15.33Z",fill:"#1C1F23",stroke:"#1C1F23"}),m.createElement("path",{d:"M103.97 62.97c-3.94-5.03-1.95-13.81 7.35-23.03 12.98-11.88 25.53-9.25 26.12-8.98.58.27 13 9.06 24.82 21.3C174.08 64.51 186.46 75 186.6 91.8c.16 16.8-17.25 22.89-30.03 22.96-12.77.08-41.27-.28-46.75-1.2-3.43 4.51-8.9 9.38-10.91 10.44 4.23 3.63 19.32 18.98 21.13 22.22 1.82 3.24 9.72 14.52 6.1 32.28-1.67 8.13-8.18 12.3-14.9 13.6 0 0-9.2-.04-12.33 0-7.78.14-88.02 0-90.35 0-2.34 0-3.01-2.09 0-8.19 3-6.1 14.09-25.37 19.9-28.8 2.3-1.31 7.53 2.06 8.62 2.85 1.03.73 2.03 1.59 3.45 1.47 1.42-.12 8.84-.15 11.2-.07-4.28-3-20.03-17.69-21.95-24.83-1.53-5.68.3-8.96 1.11-9.72-8.53-4.99-17.2-14.89-13.8-29.6.94-4.13 3.52-8.43 5.44-9.67 3.62-2.33 15.89-3.5 23.32-4.19 32.7-2.98 107.19-1.9 109.45-1.88-3.12-2.38-15.2-15.93-15.48-16.39-.77 2.21-3.83 5.02-6.1 4.7-2.03-.27-3.16-3.45-.82-8.47-.8.82-1.64 1.6-2.49 2.3-1.24 1-2.8 1.21-3.37 0-.5-1.08-.33-3.13.82-5.85a16.39 16.39 0 0 1-3.56 2.69c-3.69 1.86-4.6-5.24.34-11.28-7.1 3.47-9.12 6.3-10.88 10.47-1.09 2.56-1.47 4.91-4.46 6.24-2.3 1.02-4.22.51-5.33-.9Z",fill:"#C6CACD"}),m.createElement("path",{d:"M124.64 47.17c-7.1 3.47-9.12 6.3-10.88 10.47-1.09 2.56-1.47 4.91-4.46 6.24-2.3 1.02-4.22.51-5.33-.9-3.94-5.04-1.95-13.82 7.35-23.04 12.98-11.88 25.53-9.25 26.12-8.98.58.27 13 9.06 24.82 21.3C174.08 64.51 186.46 75 186.6 91.8c.16 16.8-17.25 22.89-30.03 22.96-12.77.08-41.27-.28-46.75-1.2m14.82-66.39c7-2.6 6.64-4.97 6.23-5.44-.42-.47-4.64 2.74-6.23 5.44Zm0 0c-4.94 6.04-4.03 13.14-.34 11.28 4.85-2.46 12.09-12.78 11.64-13.12-.31-.25-2.07.74-5.32 5.5-3.54 5.18-4.34 9.12-3.58 10.77.57 1.22 2.13 1.01 3.37 0 4.8-3.9 9.41-10.88 9.16-11.06-.24-.17-1.84.45-5.6 6.77-3.68 6.17-2.54 10.16-.26 10.48 2.28.31 5.34-2.5 6.11-4.7.28.45 12.36 14 15.48 16.38m-45.48 34.1c-3.43 4.5-8.9 9.38-10.91 10.43m10.91-10.43c3.59-4.92 6.76-9.94 8.31-15.3M98.91 124c4.23 3.63 19.32 18.98 21.13 22.22 1.82 3.24 9.72 14.52 6.1 32.28-1.67 8.13-8.18 12.3-14.9 13.6 0 0-9.2-.04-12.33 0-7.78.14-88.02 0-90.35 0-2.34 0-3.01-2.09 0-8.19 3-6.1 14.09-25.37 19.9-28.8 2.3-1.31 7.53 2.06 8.62 2.85 1.03.73 2.03 1.59 3.45 1.47 1.42-.12 8.84-.15 11.2-.07M98.92 124H88.1m-36.36 35.36c3.05.1 9.6-.5 11.84 1.54 2.05 1.85.56 4.6-2.53 3.84-3.64-.88-8.13-4.55-9.31-5.38Zm0 0c-4.29-3-20.04-17.69-21.96-24.83-1.53-5.68.3-8.96 1.11-9.72m0 0a188.9 188.9 0 0 0 19.37 8.91m-19.37-8.9c-8.53-5-17.2-14.9-13.8-29.62.94-4.12 3.52-8.42 5.44-9.66 3.62-2.33 15.89-3.5 23.32-4.19 32.7-2.98 107.19-1.9 109.45-1.88M50.26 133.72c9.37 3.55 19.2 6.26 22.38 9.9 3.18 3.64-.76 8.67-1.91 12.75-.3 1.03-.63 2.6-.27 3.5.45 1.13 1.78 1.36 3.75-.18 3.52-2.74 6.65-9.56 7.3-11.57.65-2-4.44 8.27-4.98 12.8-.54 4.54 3.49 3.8 6.2 0a35.68 35.68 0 0 0 5.02-10.52c.21-.98-2.74 5.44-3.6 9.3-.24 1.03-.85 3.47 0 4.44.95 1.1 2.87.81 5.07-2.73a42.67 42.67 0 0 0 4.6-11.01c.22-1.3-3.05 7.3-3.55 11.5-.34 2.94.67 4.38 4.18 0 1.99-2.48 3.44-6.28 4.33-10.12m-48.52-18.06c-1.97 2.72-4.25 5.3-10.8 6.32m25.83-35.93c-5.71-4.14-8.97-4.56-11.46-4.56-3.64 0-4.48 1.95-1.16 3.2 3.32 1.24 9.35 1.36 12.62 1.36Zm0 0h6.91m-6.91 0c5.1 3.71 14.72 11.4 22.8 19.9m67.21-44.54c2.26.02 6.14.7 5.8 3.1-.21 1.56-4.71-2.12-5.8-3.1ZM88.1 124c.84.88 1.66 1.77 2.46 2.67 1.94 2.18 8.47 9.6 9.12 14.15.37 2.58.06 6.79-.9 10.96m0 0c3.18 2.92 7.34 8.24 8.24 14.17.9 5.93 0 13.47-9.4 21.35",stroke:"#1C1F23"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m115.94 192.13-5.17-15.67-.13.44c-.83 2.93-1.86 6.53-3.45 9.48-1.6 2.95-3.75 5.2-6.78 5.47v.28h15.53Z",fill:"#1C1F23"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m122.42 137.35 5.09 9.48h-7.45l-5.1-9.48h7.46Z",fill:"#6B7075"}),m.createElement("path",{d:"M104.1 141.48h33.95l14.82 27.43h-33.95l-14.82-27.43Z",fill:"#C6CACD",stroke:"#1C1F23"}),m.createElement("rect",{x:139.522,y:155.135,width:43.5958,height:38.8611,fill:"#6B7075",stroke:"#1C1F23"}),m.createElement("path",{d:"m139.87 154.7 9.28-16.85h43.46l-9.29 16.84h-43.45Z",fill:"#6B7075",stroke:"#1C1F23"}),m.createElement("rect",{x:111.223,y:155.135,width:28.1841,height:38.8611,fill:"#6B7075",stroke:"#1C1F23"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m166.56 154.91 3.9-6.97h-6.14l-3.58 6.42h-.32v13.38h6.14V154.9Z",fill:"#1C1F23"}),m.createElement("circle",{cx:45.5788,cy:38.675,r:33.1711,fill:"var(--semi-color-primary)",fillOpacity:.2}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.85 47.67a3.24 3.24 0 0 0 2.46-3.88c-.28-1.22.27-2.41 1.14-3.3 3.03-3.13 5.09-7.78 3.66-12.78a11.24 11.24 0 0 0-5.43-6.6c-2.9-1.6-6.47-1.9-9.87-.87l-.17.08c-5.78 1.96-8.3 7.05-8.26 11.96.02 2.05 2.12 3.2 4.09 2.64 2-.57 2.97-2.8 3.63-4.78a4.21 4.21 0 0 1 2.93-2.75 5 5 0 0 1 4.16.26c.88.64 1.58 1.35 1.78 2.28.84 2.47-.83 5.2-2.74 6.42-2.68 1.68-3.03 5.48-2.46 8.8.36 2.1 2.55 3.16 4.61 2.63l.47-.11Zm.02 3.15a4.1 4.1 0 1 1 2.53 7.8 4.1 4.1 0 0 1-2.53-7.8Z",fill:"var(--semi-color-primary)"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m98.63 82.58-.1-.01-.04.1c-.79 2.43-1.66 5.24-1.52 8.04.14 2.81 1.3 5.61 4.53 8 3.17 2.35 6.58 1.78 9.19-.15a10.98 10.98 0 0 0 4.42-8.42c0-1.25-.82-2.32-2.05-3.22a18.08 18.08 0 0 0-4.72-2.27 46.7 46.7 0 0 0-9.7-2.07Zm17.18 21.69c-1.33 3.1-4.63 7.68-6.11 9.58l.11-.15 5.24.38.04-.08c.23-.5.41-1.2.55-2 .14-.81.23-1.73.3-2.67.14-1.87.16-3.8.14-5.01l-.27-.05Zm-84.95 20-.16-.1-1.34 5.04.11.05c4.4 1.9 14.11 4.05 21.1 4.6l.05-.26c-7.77-3.04-16.19-7.07-19.76-9.33Z",fill:"#1C1F23"}),m.createElement("path",{d:"M71.03 48.99c5.25 1.24 16.12 6.4 17.61 17.15",stroke:"#1C1F23"}),m.createElement("path",{d:"M108.08 96.58a10.37 10.37 0 1 1 0-20.74 10.37 10.37 0 0 1 0 20.74Z",fill:"#C6CACD",stroke:"#1C1F23",strokeMiterlimit:10}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M110.8 85.86a.42.42 0 0 0-.56-.18c-1.42.7-2.96.88-3.53.88a.42.42 0 0 0 0 .84c.67 0 2.35-.2 3.9-.98.2-.1.29-.35.19-.56Zm-2.66 3.52a.88.88 0 1 1 1.76-.13.88.88 0 0 1-1.77.13Zm7.1-.95a.88.88 0 1 0 .13 1.76.88.88 0 0 0-.13-1.76Z",fill:"#1C1F23"}),m.createElement("path",{d:"M100.58 87.31s-5.73-6.61-.66-11.03c6.62-5.95 21.18-.44 21.18-.44s-.22 7.06-4.85 7.94c-4.42.67-12.58-2.42-12.58-2.42l-3.09 5.95Z",fill:"#1C1F23"}),m.createElement("path",{d:"M98.38 88.64a2.65 2.65 0 1 1 0-5.3 2.65 2.65 0 0 1 0 5.3Z",fill:"#C6CACD",stroke:"#1C1F23",strokeMiterlimit:10}))}var ni=Yue,Zue=Object.defineProperty,G9=Object.getOwnPropertySymbols,Xue=Object.prototype.hasOwnProperty,Jue=Object.prototype.propertyIsEnumerable,K9=(e,t,r)=>t in e?Zue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Que=(e,t)=>{for(var r in t||(t={}))Xue.call(t,r)&&K9(e,r,t[r]);if(G9)for(var r of G9(t))Jue.call(t,r)&&K9(e,r,t[r]);return e};function ece(e){return m.createElement("svg",Que({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},e),m.createElement("rect",{width:200,height:200,fill:"transparent"}),m.createElement("path",{d:"M100.75 191.99c6.21-.56 8.7-9.2 10.36-15.06l4.97 15.06h-15.33Z",fill:"black",stroke:"black"}),m.createElement("path",{d:"M103.97 62.97c-3.94-5.03-1.95-13.81 7.35-23.03 12.98-11.88 25.53-9.25 26.12-8.98.58.27 13 9.06 24.82 21.3C174.08 64.51 186.46 75 186.6 91.8c.16 16.8-17.25 22.89-30.03 22.96-12.77.08-41.27-.28-46.75-1.2-3.43 4.51-8.9 9.38-10.91 10.44 4.23 3.63 19.32 18.98 21.13 22.22 1.82 3.24 9.72 14.52 6.1 32.28-1.67 8.13-8.18 12.3-14.9 13.6 0 0-9.2-.04-12.33 0-7.78.14-88.02 0-90.35 0-2.34 0-3.01-2.09 0-8.19 3-6.1 14.09-25.37 19.9-28.8 2.3-1.31 7.53 2.06 8.62 2.85 1.03.73 2.03 1.59 3.45 1.47 1.42-.12 8.84-.15 11.2-.07-4.28-3-20.03-17.69-21.95-24.83-1.53-5.68.3-8.96 1.11-9.72-8.53-4.99-17.2-14.89-13.8-29.6.94-4.13 3.52-8.43 5.44-9.67 3.62-2.33 15.89-3.5 23.32-4.19 32.7-2.98 107.19-1.9 109.45-1.88-3.12-2.38-15.2-15.93-15.48-16.39-.77 2.21-3.83 5.02-6.1 4.7-2.03-.27-3.16-3.45-.82-8.47-.8.82-1.64 1.6-2.49 2.3-1.24 1-2.8 1.21-3.37 0-.5-1.08-.33-3.13.82-5.85a16.39 16.39 0 0 1-3.56 2.69c-3.69 1.86-4.6-5.24.34-11.28-7.1 3.47-9.12 6.3-10.88 10.47-1.09 2.56-1.47 4.91-4.46 6.24-2.3 1.02-4.22.51-5.33-.9Z",fill:"white"}),m.createElement("path",{d:"M124.64 47.17c-7.1 3.47-9.12 6.3-10.88 10.47-1.09 2.56-1.47 4.91-4.46 6.24-2.3 1.02-4.22.51-5.33-.9-3.94-5.04-1.95-13.82 7.35-23.04 12.98-11.88 25.53-9.25 26.12-8.98.58.27 13 9.06 24.82 21.3C174.08 64.51 186.46 75 186.6 91.8c.16 16.8-17.25 22.89-30.03 22.96-12.77.08-41.27-.28-46.75-1.2m14.82-66.39c7-2.6 6.64-4.97 6.23-5.44-.42-.47-4.64 2.74-6.23 5.44Zm0 0c-4.94 6.04-4.03 13.14-.34 11.28 4.85-2.46 12.09-12.78 11.64-13.12-.31-.25-2.07.74-5.32 5.5-3.54 5.18-4.34 9.12-3.58 10.77.57 1.22 2.13 1.01 3.37 0 4.8-3.9 9.41-10.88 9.16-11.06-.24-.17-1.84.45-5.6 6.77-3.68 6.17-2.54 10.16-.26 10.48 2.28.31 5.34-2.5 6.11-4.7.28.45 12.36 14 15.48 16.38m-45.48 34.1c-3.43 4.5-8.9 9.38-10.91 10.43m10.91-10.43c3.59-4.92 6.76-9.94 8.31-15.3M98.91 124c4.23 3.63 19.32 18.98 21.13 22.22 1.82 3.24 9.72 14.52 6.1 32.28-1.67 8.13-8.18 12.3-14.9 13.6 0 0-9.2-.04-12.33 0-7.78.14-88.02 0-90.35 0-2.34 0-3.01-2.09 0-8.19 3-6.1 14.09-25.37 19.9-28.8 2.3-1.31 7.53 2.06 8.62 2.85 1.03.73 2.03 1.59 3.45 1.47 1.42-.12 8.84-.15 11.2-.07M98.92 124H88.1m-36.36 35.36c3.05.1 9.6-.5 11.84 1.54 2.05 1.85.56 4.6-2.53 3.84-3.64-.88-8.13-4.55-9.31-5.38Zm0 0c-4.29-3-20.04-17.69-21.96-24.83-1.53-5.68.3-8.96 1.11-9.72m0 0a188.9 188.9 0 0 0 19.37 8.91m-19.37-8.9c-8.53-5-17.2-14.9-13.8-29.62.94-4.12 3.52-8.42 5.44-9.66 3.62-2.33 15.89-3.5 23.32-4.19 32.7-2.98 107.19-1.9 109.45-1.88M50.26 133.72c9.37 3.55 19.2 6.26 22.38 9.9 3.18 3.64-.76 8.67-1.91 12.75-.3 1.03-.63 2.6-.27 3.5.45 1.13 1.78 1.36 3.75-.18 3.52-2.74 6.65-9.56 7.3-11.57.65-2-4.44 8.27-4.98 12.8-.54 4.54 3.49 3.8 6.2 0a35.68 35.68 0 0 0 5.02-10.52c.21-.98-2.74 5.44-3.6 9.3-.24 1.03-.85 3.47 0 4.44.95 1.1 2.87.81 5.07-2.73a42.67 42.67 0 0 0 4.6-11.01c.22-1.3-3.05 7.3-3.55 11.5-.34 2.94.67 4.38 4.18 0 1.99-2.48 3.44-6.28 4.33-10.12m-48.52-18.06c-1.97 2.72-4.25 5.3-10.8 6.32m25.83-35.93c-5.71-4.14-8.97-4.56-11.46-4.56-3.64 0-4.48 1.95-1.16 3.2 3.32 1.24 9.35 1.36 12.62 1.36Zm0 0h6.91m-6.91 0c5.1 3.71 14.72 11.4 22.8 19.9m67.21-44.54c2.26.02 6.14.7 5.8 3.1-.21 1.56-4.71-2.12-5.8-3.1ZM88.1 124c.84.88 1.66 1.77 2.46 2.67 1.94 2.18 8.47 9.6 9.12 14.15.37 2.58.06 6.79-.9 10.96m0 0c3.18 2.92 7.34 8.24 8.24 14.17.9 5.93 0 13.47-9.4 21.35",stroke:"#515151"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m115.94 192.13-5.17-15.67-.13.44c-.83 2.93-1.86 6.53-3.45 9.48-1.6 2.95-3.75 5.2-6.78 5.47v.28h15.53Z",fill:"#515151"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m122.42 137.35 5.09 9.48h-7.45l-5.1-9.48h7.46Z",fill:"#C6CACD"}),m.createElement("path",{d:"M104.1 141.48h33.95l14.82 27.43h-33.95l-14.82-27.43Z",fill:"white",stroke:"#515151"}),m.createElement("rect",{x:139.521,y:155.135,width:43.5958,height:38.8611,fill:"#E6E8EA",stroke:"#515151"}),m.createElement("path",{d:"m139.87 154.7 9.28-16.85h43.46l-9.29 16.84h-43.45Z",fill:"#E6E8EA",stroke:"#515151"}),m.createElement("rect",{x:111.223,y:155.135,width:28.1841,height:38.8611,fill:"#E6E8EA",stroke:"#515151"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m166.56 154.91 3.9-6.97h-6.13l-3.6 6.42h-.3v13.38h6.13V154.9Z",fill:"#515151"}),m.createElement("circle",{cx:45.5788,cy:38.675,r:33.1711,fill:"var(--semi-color-primary-light-default)"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.85 47.66a3.24 3.24 0 0 0 2.46-3.87c-.28-1.22.27-2.41 1.14-3.3 3.03-3.13 5.08-7.79 3.66-12.78a11.24 11.24 0 0 0-5.43-6.6c-2.9-1.6-6.47-1.9-9.87-.87l-.17.08c-5.78 1.96-8.3 7.05-8.26 11.96.02 2.05 2.12 3.2 4.09 2.64 2-.57 2.97-2.8 3.63-4.78a4.21 4.21 0 0 1 2.93-2.75 5 5 0 0 1 4.16.26c.88.64 1.58 1.35 1.78 2.28.84 2.47-.83 5.2-2.74 6.42-2.68 1.68-3.03 5.48-2.46 8.8.36 2.1 2.55 3.16 4.61 2.63l.47-.12Zm.02 3.16a4.1 4.1 0 1 1 2.53 7.8 4.1 4.1 0 0 1-2.53-7.8Z",fill:"var(--semi-color-primary)"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m98.63 82.58-.1-.01-.04.1c-.79 2.43-1.66 5.24-1.52 8.04.14 2.81 1.3 5.61 4.53 8 3.17 2.35 6.58 1.78 9.19-.15a10.98 10.98 0 0 0 4.42-8.42c0-1.25-.82-2.32-2.05-3.22a18.08 18.08 0 0 0-4.72-2.27 46.7 46.7 0 0 0-9.7-2.07Zm17.18 21.69c-1.33 3.1-4.63 7.68-6.11 9.58l.11-.14 5.24.37.04-.08c.23-.5.41-1.2.55-2 .14-.8.23-1.73.3-2.67.14-1.87.16-3.8.14-5.01l-.27-.05Zm-84.95 20-.16-.1-1.34 5.04.11.05c4.4 1.9 14.11 4.05 21.1 4.6l.05-.26c-7.77-3.04-16.19-7.07-19.76-9.33Z",fill:"#515151"}),m.createElement("path",{d:"M71.03 48.99c5.25 1.23 16.12 6.4 17.61 17.15",stroke:"#515151"}),m.createElement("path",{d:"M108.08 96.58a10.37 10.37 0 1 1 0-20.74 10.37 10.37 0 0 1 0 20.74Z",fill:"white",stroke:"#515151",strokeMiterlimit:10}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M110.8 85.86a.42.42 0 0 0-.56-.18c-1.42.7-2.96.88-3.53.88a.42.42 0 1 0 0 .84c.67 0 2.35-.2 3.9-.98.2-.1.29-.35.19-.56Zm-2.66 3.52a.88.88 0 1 1 1.76-.13.88.88 0 0 1-1.77.13Zm7.1-.95a.88.88 0 1 0 .13 1.76.88.88 0 0 0-.13-1.76Z",fill:"#515151"}),m.createElement("path",{d:"M100.58 87.31s-5.73-6.61-.66-11.03c6.62-5.95 21.18-.44 21.18-.44s-.22 7.06-4.85 7.94c-4.42.67-12.58-2.42-12.58-2.42l-3.09 5.95Z",fill:"#515151"}),m.createElement("path",{d:"M98.38 88.64a2.65 2.65 0 1 1 0-5.3 2.65 2.65 0 0 1 0 5.3Z",fill:"white",stroke:"#515151",strokeMiterlimit:10}))}var ii=ece,tce=Object.defineProperty,Y9=Object.getOwnPropertySymbols,rce=Object.prototype.hasOwnProperty,nce=Object.prototype.propertyIsEnumerable,Z9=(e,t,r)=>t in e?tce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ice=(e,t)=>{for(var r in t||(t={}))rce.call(t,r)&&Z9(e,r,t[r]);if(Y9)for(var r of Y9(t))nce.call(t,r)&&Z9(e,r,t[r]);return e};function ace(e){return m.createElement("svg",ice({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.09 64.86V8.56L5.76 78.94h44.26v20.3h14.07v-20.3h8.82V64.86h-8.82Zm110.18 0V8.56L124.1 69.08c.7-3.74 1.07-7.7 1.07-11.76 0-11-2.7-21.1-7.25-28.55-4.5-7.4-11.13-12.63-19-12.63-7.88 0-14.5 5.23-19.01 12.63-4.54 7.45-7.25 17.55-7.25 28.55s2.7 21.1 7.25 28.55c4.5 7.4 11.13 12.62 19 12.62 7.88 0 14.5-5.23 19.01-12.62a44.09 44.09 0 0 0 3.4-6.93h38.86v20.3h14.08v-20.3h8.81V64.86h-8.81Zm-138.57 0L50.02 47.6v17.26H35.7Zm124.5 0h-14.32L160.2 47.6v17.26Zm-49.1-7.54c0 8.84-2.2 16.32-5.19 21.22-3.08 5.08-5.87 5.87-6.98 5.87-1.12 0-3.9-.8-7-5.87-2.98-4.9-5.19-12.38-5.19-21.22 0-8.85 2.21-16.33 5.2-21.23 3.09-5.07 5.87-5.87 6.99-5.87 1.1 0 3.9.8 6.98 5.87 2.99 4.9 5.2 12.38 5.2 21.23Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M170.2 186.8c1.48.79 6.29 1.96 8.14-.23 1.08 0 2.31.17 3.67.36 2.28.32 4.93.69 7.87.39 2.24-.23 2.46-1.14 2.12-1.61 1.84-.5 2.15-.78 2.24-1.08.09-.3-1.03-2.09-4.36-4.2l-1.92-1.2c-3.13-1.93-6.8-4.2-7.85-5.94-1.27-2.12-1.76-15.49-2.1-29.76l-.1-4.94c-.27-14.5-.65-35.25-6.36-43.77-6.4-9.55-24.6-12.72-40.89-11.9a60.09 60.09 0 0 0-33 11.75c-5.5 4.09-14.03 12.82-14.87 13.84-.37.46-5.43 4.9-11.15 9.87-3.49-10.5-11.13-28.13-15.88-28.7-4.62-.56-3.79 4.18-3.65 4.96l.01.06c.33 1.98 1.36 5.66 2.24 8.81.75 2.71 1.4 5.03 1.4 5.54 0 .87 2.21 13.84 3.32 20.2-.98-.46-3.43-1.2-7.19-1.52a49.62 49.62 0 0 0-7.16-.07c-9.83.58-22.37 4.25-25.6 17.38-3.22 13.13 9.4 22.66 21.92 28.92 10.02 5.01 24.3 9.4 30.18 10.98-1.46.52-4.39 1.8-4.44 2.72-.07 1.15 2.6 2.14 9.35 2.83 6.75.7 34.71 1.23 41.09.78 6.38-.44 10.06-5.71 17.43-20.14l1.43-2.83-.13.38c-2.16 6.25-3.36 9.7-2.16 13.37 1.22 3.75 4.4 5.03 5.75 5.07l.22.01c1.71.07 9.17.36 14.98-1 .06 0 1.17.04 2.78.12 3.98.18 10.96.5 12.34.34.1.08.22.15.34.22Zm-62.33-57.84c.5 3.27 1.14 6.77 1.94 10.42-1.24 2-2.43 3.98-3.55 5.87-2.32-.94-9-3.55-12.05-4.74 5.89-4.4 11.35-9.09 13.66-11.55Z",fill:"#C6CACD"}),m.createElement("path",{d:"M192 185.71c-1.6-2.3-9.7-5.34-15.04-5.75-5.34-.41-6.45.53-7.4 1.85-1 1.37-1.05 3.72.3 4.78m22.14-.88c.34.47.12 1.38-2.12 1.6-2.94.3-5.59-.06-7.87-.38-1.36-.19-2.59-.36-3.67-.36-1.85 2.2-6.66 1.02-8.13.24a2.46 2.46 0 0 1-.34-.22m22.13-.88c1.84-.5 2.15-.78 2.24-1.08.09-.3-1.03-2.09-4.36-4.2l-1.92-1.2c-3.13-1.93-6.8-4.2-7.85-5.94-1.27-2.12-1.76-15.49-2.1-29.76l-.1-4.94c-.27-14.5-.65-35.25-6.36-43.77-6.4-9.55-24.6-12.72-40.89-11.9a60.09 60.09 0 0 0-33 11.75c-5.5 4.09-14.03 12.82-14.87 13.84-.37.46-5.43 4.9-11.15 9.87-3.49-10.5-11.13-28.13-15.88-28.7-4.62-.56-3.79 4.18-3.65 4.96l.01.06c.33 1.98 1.36 5.66 2.24 8.81.75 2.71 1.4 5.03 1.4 5.54 0 .87 2.21 13.84 3.32 20.2-.98-.46-3.43-1.2-7.19-1.52m19.34 57.21c-5.88-1.57-20.16-5.97-30.18-10.98-12.52-6.26-25.14-15.8-21.91-28.92 3.22-13.13 15.76-16.8 25.59-17.38 2.75-.16 5.14-.1 7.16.07m19.34 57.21c-1.46.52-4.39 1.8-4.44 2.72-.07 1.15 2.6 2.14 9.35 2.83 6.75.7 34.71 1.23 41.09.78 6.38-.44 10.06-5.71 17.43-20.14l1.43-2.83m-64.86 16.64c5.89-2.49 12.35-6.32 16.49-10.11 5.07-4.65 9.55-13.46 9.96-14.28l.82-1.56m43.43 4.15c-.47-3-1.21-7.33.37-14.67 1.47-6.81 6.6-15.3 6.65-11.03.05 4-6.05 17.35-12.86 30.86m0 0-.13.38m.13-.38-.13.38m18.8 17.45c1.17-.27 2.28-.61 3.26-1.03 6.09-2.63 10.92-8.55 13.53-24.26 2.62-15.71 1.5-42.36-10.29-50.78-11.78-8.41-21.32-6.07-34.03 5.8-5.34 4.98-11.86 14.52-17.42 23.52m44.94 46.75c-5.81 1.36-13.27 1.07-14.98 1h-.22c-1.36-.05-4.53-1.33-5.75-5.08-1.2-3.67 0-7.12 2.16-13.37m18.8 17.45c.05 0 1.16.04 2.78.12 3.97.18 10.95.5 12.33.34m-60.06-47.2c-.8-3.66-1.44-7.16-1.94-10.43m1.94 10.42c-1.24 2-2.43 3.98-3.55 5.87m.32-30.9c0 3.75.41 8.8 1.3 14.61m0 0c-2.32 2.46-7.78 7.15-13.67 11.55m-42.32-12.78s1.24 7.12 3.87 11.42a29.93 29.93 0 0 0 6.61 7.8m36.13 12.04c-6.87-3.1-17.87-6.8-22.51-8.27m22.51 8.27c1.35-2.51 4.2-7.7 7.76-13.74M76 150.72c.39-.06.78-.14 1.17-.23 3.97-.93 10.76-5.29 17.05-9.98m-18.22 10.2c-4.7.8-9.36-.34-13.62-3.76m0 0c-3.29-.85-11.28-2.39-12.86-2.41m56.75.71c-2.32-.94-9-3.55-12.05-4.74",stroke:"#1C1F23"}),m.createElement("path",{d:"m77.74 73.31 23.73 43.2-1.7 2.5-22.73 9.55-24.58-44.48 21.9-10.77h3.38Z",fill:"#6B7075"}),m.createElement("path",{d:"M74.35 73.31h3.4l23.72 43.2-1.7 2.5m-25.42-45.7-21.9 10.77 24.59 44.48L99.78 119m-25.43-45.7 25.43 45.7",stroke:"#1C1F23"}),m.createElement("path",{d:"M83.9 116.95c.96 1.96-4.91 4.57-8.32 6.18-1.33.63-2.1.98-2.7 1.2.9 3.3 1.24 8.14-4.48 9.82-5.73 1.69-15.07-1.02-18-9.6-2.95-8.6.01-19.97 9.05-27.04 5.67-4.42 15.01-5.77 19.42-4.05 2.15.82 1.38 2.71-.56 4.44a58.08 58.08 0 0 1-4.53 3.58c.4-.01.8-.02 1.23-.01 4.13.07 7.26 1.12 7.42 3.15.07.94-.8 2.13-1.95 3.45-.62.71-1.28 1.34-1.95 1.88 2.8-.23 5.94 1.05 2.9 4.2-.41.43-.85.83-1.29 1.2 1.73.02 3.24.56 3.75 1.6Z",fill:"#C6CACD"}),m.createElement("path",{d:"M69.73 125.1c1.65-.34 2.2-.4 3.14-.76m0 0c.6-.23 1.38-.59 2.7-1.21 3.42-1.6 9.3-4.22 8.32-6.18-.86-1.75-4.53-2.08-7.33-.96-2.84 1.13-3.58 2.24-3.46 2.56.12.31 4.75-.69 8.34-4.4 3.4-3.54-.96-4.7-3.9-4.06-2.26.5-6.4 2.06-6.16 2.85.16.5 5.33-.54 9.1-4.87 1.14-1.32 2.02-2.51 1.95-3.45-.16-2.03-3.3-3.08-7.42-3.15-8.83-.16-11.56 4.78-11.16 5.1 1.1.92 9.36-4.15 14.46-8.67 1.94-1.73 2.71-3.62.56-4.44-4.4-1.72-13.75-.37-19.42 4.05-9.04 7.07-12 18.44-9.06 27.03 2.94 8.6 12.28 11.3 18 9.61 5.73-1.68 5.4-6.53 4.48-9.81Z",stroke:"#1C1F23"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.48 120.15c-.2 1.56-.53 3.98-1.2 6.51-.68 2.53-1.71 5.16-3.3 7.14l.2.19 5.67-4.97-1.1-8.87h-.27Zm31.09 45.32-.25-.1-11.3 21.27h11.92l-.43-.25c-3.5-2.08-4.07-5.8-3.46-9.78.52-3.4 1.9-6.95 3-9.76l.52-1.38Zm-85.81-37.89-.24.12c.3 1.46 1.04 4.8 1.65 6.39l.01.05.05.02c1.63.84 4.4 1.85 7.45 2.14 3.05.3 6.39-.12 9.1-2.15l-.12-.24c-3.14 1.2-11.14 1.63-17.9-6.33Z",fill:"#1C1F23"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m133.54 82.83.02-.16h-.16c-1.82.1-5.84.39-9.87.96-2.02.28-4.04.64-5.79 1.08-1.74.43-3.23.95-4.18 1.58l-.06.04v.07c-.04 1.8.13 3.69.65 5.35a7.28 7.28 0 0 0 2.8 4.05c2.81 1.86 6.69 1.62 9.98-.58 3.3-2.2 6.04-6.37 6.61-12.4Z",fill:"#1C1F23"}),m.createElement("path",{d:"M126.66 84.73a9.79 9.79 0 0 1-9.7 9.87 9.79 9.79 0 0 1-9.7-9.87 9.79 9.79 0 0 1 9.7-9.87c5.35 0 9.7 4.41 9.7 9.87Z",fill:"#C6CACD",stroke:"#1C1F23"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109.41 70.6c.66.25 1.25.47 1.9.26.52-.18.83-.7 1.18-1.3.75-1.27 1.73-2.93 5.57-2.56 3.85.38 4.58 2.17 5.1 3.43.2.5.37.9.68 1.12.48.32.84.33 1.26.35.55.02 1.2.05 2.37.75 1.41.85 2.49 5.65.23 9.93l.26.43c-.45 2.15-3.05 4.37-3.05 4.14 0-3.04 0-4.75-2.92-7.43-4.26 1.6-10.89 1.13-13.94.14-4-1.28-5.98-6.81-2.53-9 1.72-1.1 2.88-.65 3.9-.26Z",fill:"#1C1F23"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M116.7 81.6a.41.41 0 1 0-.74.4c.2.39.47.74.9.95.41.2.93.25 1.58.17a.41.41 0 1 0-.1-.82c-.58.07-.9.01-1.12-.09-.2-.1-.36-.28-.53-.6Zm-6.57 4.22a1.07 1.07 0 0 0 1-1.13 1.06 1.06 0 0 0-1.1-1.02c-.59.03-1.03.54-1 1.13.02.6.52 1.05 1.1 1.02Zm6.82.73a1.07 1.07 0 0 0 1-1.13 1.06 1.06 0 0 0-1.1-1.01c-.58.02-1.03.53-1 1.12.03.6.52 1.05 1.1 1.02Z",fill:"#1C1F23"}),m.createElement("ellipse",{cx:127.421,cy:86.0086,rx:2.47934,ry:2.47934,fill:"#C6CACD",stroke:"#1C1F23"}),m.createElement("circle",{r:4.67102,transform:"matrix(0.707106 0.707108 -0.707106 0.707108 75.0509 75.7799)",fill:"var(--semi-color-primary)",stroke:"var(--semi-color-primary)",strokeWidth:3}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M77.9 72.97a1.1 1.1 0 0 0-1.57 0l-1.26 1.27-1.31-1.31a1.1 1.1 0 1 0-1.57 1.57l1.31 1.3-1.3 1.31a1.1 1.1 0 0 0 1.56 1.57l1.3-1.3 1.27 1.26a1.1 1.1 0 1 0 1.57-1.57l-1.26-1.26 1.26-1.27a1.1 1.1 0 0 0 0-1.57Z",fill:"#C6CACD"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.41 49.11a32.26 32.26 0 0 0-19-9.84 2.14 2.14 0 0 0-2.42 2.02c-.07 1.2.82 2.2 1.97 2.37a27.86 27.86 0 0 1 16.13 8.36c.83.87 2.24.99 3.17.15.88-.79.99-2.17.15-3.06Zm-35.8-8.52a32.5 32.5 0 0 0-18.74 15.73 2.14 2.14 0 0 0 1.01 2.93c1.11.52 2.4.02 2.96-1.02a28.08 28.08 0 0 1 15.96-13.4 2.28 2.28 0 0 0 1.53-2.72 2.14 2.14 0 0 0-2.72-1.52Zm27.75 15.78c-3.02-3.14-7-5.38-11.53-6.22a2.11 2.11 0 0 0-2.47 2 2.33 2.33 0 0 0 1.9 2.38c3.41.69 6.43 2.37 8.75 4.72.85.85 2.26 1 3.2.15.87-.78 1-2.15.15-3.03Zm-24.64-4.65a21.63 21.63 0 0 0-11.66 9.8 2.1 2.1 0 0 0 .99 2.94c1.12.52 2.4.01 2.98-1 2-3.45 5.17-6.11 8.91-7.5 1.1-.4 1.81-1.56 1.5-2.75a2.1 2.1 0 0 0-2.72-1.5Zm16.63 11.95a10.69 10.69 0 0 0-4-2.47c-1.35-.47-2.56.62-2.63 1.9-.07 1.14.73 2.04 1.65 2.44a6.3 6.3 0 0 1 1.52.94c.89.74 2.33 1 3.32.11.82-.74 1-2.07.14-2.92Zm-14.27-.76c-1.83.83-3.4 2.16-4.51 3.83-.73 1.08-.16 2.42.9 2.92 1.14.53 2.38-.02 3.05-.88a6.35 6.35 0 0 1 1.93-1.63c.95-.52 1.68-1.63 1.37-2.83-.3-1.15-1.54-1.95-2.74-1.4Z",fill:"var(--semi-color-primary)"}))}var sce=ace,oce=Object.defineProperty,X9=Object.getOwnPropertySymbols,lce=Object.prototype.hasOwnProperty,uce=Object.prototype.propertyIsEnumerable,J9=(e,t,r)=>t in e?oce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cce=(e,t)=>{for(var r in t||(t={}))lce.call(t,r)&&J9(e,r,t[r]);if(X9)for(var r of X9(t))uce.call(t,r)&&J9(e,r,t[r]);return e};function dce(e){return m.createElement("svg",cce({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},e),m.createElement("rect",{width:200,height:200,fill:"transparent"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.09 64.86V8.56L5.76 78.94h44.26v20.3h14.07v-20.3h8.82V64.86h-8.82Zm110.18 0V8.56L124.1 69.08c.7-3.74 1.07-7.7 1.07-11.76 0-11-2.7-21.1-7.25-28.55-4.5-7.4-11.13-12.63-19-12.63-7.88 0-14.5 5.23-19.01 12.63-4.54 7.45-7.25 17.55-7.25 28.55s2.7 21.1 7.25 28.55c4.5 7.4 11.13 12.62 19 12.62 7.88 0 14.5-5.23 19.01-12.62a44.09 44.09 0 0 0 3.4-6.93h38.86v20.3h14.08v-20.3h8.81V64.86h-8.81Zm-138.57 0L50.02 47.6v17.26H35.7Zm124.5 0h-14.32L160.2 47.6v17.26Zm-49.1-7.54c0 8.84-2.2 16.32-5.19 21.22-3.08 5.08-5.87 5.87-6.98 5.87-1.12 0-3.9-.8-7-5.87-2.98-4.9-5.19-12.38-5.19-21.22 0-8.85 2.21-16.33 5.2-21.23 3.09-5.07 5.87-5.87 6.98-5.87 1.12 0 3.9.8 7 5.87 2.98 4.9 5.19 12.38 5.19 21.23Z",fill:"var(--semi-color-primary-light-default)"}),m.createElement("path",{d:"M178.34 186.57c-1.85 2.2-6.66 1.02-8.13.24a2.46 2.46 0 0 1-.34-.22c-1.94.22-14.94-.5-15.12-.46-6.12 1.43-14.06 1.03-15.2 1-1.36-.05-4.53-1.33-5.75-5.08-1.2-3.67 0-7.12 2.16-13.37l.13-.38-1.43 2.83c-7.37 14.43-11.05 19.7-17.43 20.14-6.38.45-34.34-.09-41.09-.78-6.75-.7-9.42-1.68-9.35-2.83.05-.92 2.98-2.2 4.44-2.72-5.88-1.57-20.16-5.97-30.18-10.98-12.52-6.26-25.14-15.8-21.91-28.92 3.22-13.13 15.76-16.8 25.59-17.38 2.75-.16 5.14-.1 7.16.07 3.76.33 6.21 1.06 7.2 1.53-1.12-6.37-3.33-19.34-3.33-20.21 0-1.1-3.02-10.67-3.64-14.35-.1-.55-1.11-5.6 3.64-5.02 4.75.57 12.4 18.2 15.88 28.7a401.55 401.55 0 0 0 11.15-9.87c.84-1.02 9.36-9.75 14.87-13.84a60.09 60.09 0 0 1 33-11.76c16.29-.81 34.49 2.36 40.9 11.91 6.4 9.55 6.1 34.44 6.44 48.71.35 14.27.84 27.64 2.11 29.76 1.27 2.12 6.45 5.02 9.77 7.14 3.33 2.11 4.45 3.9 4.36 4.2-.1.3-.4.58-2.24 1.08.34.47.12 1.38-2.12 1.6-4.7.48-8.64-.74-11.54-.74Z",fill:"white"}),m.createElement("path",{d:"M192 185.71c-1.6-2.3-9.7-5.34-15.04-5.75-5.34-.41-6.45.53-7.4 1.85-1 1.37-1.05 3.72.3 4.78m22.14-.88c.34.47.12 1.38-2.12 1.6-4.7.48-8.64-.74-11.54-.74-1.85 2.2-6.66 1.02-8.13.24a2.46 2.46 0 0 1-.34-.22m22.13-.88c1.84-.5 2.15-.78 2.24-1.08.09-.3-1.03-2.09-4.36-4.2-3.32-2.12-8.5-5.02-9.77-7.14-1.27-2.12-1.76-15.49-2.1-29.76-.36-14.27-.06-39.16-6.46-48.7-6.4-9.56-24.6-12.73-40.89-11.92a60.09 60.09 0 0 0-33 11.76c-5.5 4.09-14.03 12.82-14.87 13.84-.37.46-5.43 4.9-11.15 9.87-3.49-10.5-11.13-28.13-15.88-28.7-4.75-.58-3.73 4.47-3.64 5.02.62 3.68 3.64 13.26 3.64 14.35 0 .87 2.21 13.84 3.32 20.2-.98-.46-3.43-1.2-7.19-1.52m19.34 57.21c-5.88-1.57-20.16-5.97-30.18-10.98-12.52-6.26-25.14-15.8-21.91-28.92 3.22-13.13 15.76-16.8 25.59-17.38 2.75-.16 5.14-.1 7.16.07m19.34 57.21c-1.46.52-4.39 1.8-4.44 2.72-.07 1.15 2.6 2.14 9.35 2.83 6.75.7 34.71 1.23 41.09.78 6.38-.44 10.06-5.71 17.43-20.14l1.43-2.83m-64.86 16.64c5.89-2.49 12.35-6.32 16.49-10.11 5.07-4.65 9.55-13.46 9.96-14.28l.82-1.56m43.43 4.15c-.47-3-1.21-7.33.37-14.67 1.47-6.81 6.6-15.3 6.65-11.03.05 4-6.05 17.35-12.86 30.86m0 0c-2.25 6.5-3.51 10-2.3 13.75 1.23 3.75 4.4 5.03 5.76 5.07 1.14.04 9.08.44 15.2-.99m0 0a19.5 19.5 0 0 0 3.27-1.03c6.09-2.63 10.92-8.55 13.53-24.26 2.62-15.71 1.5-42.36-10.29-50.78-11.78-8.41-21.32-6.07-34.03 5.8-5.34 4.98-11.86 14.52-17.42 23.52m44.94 46.75c.18-.04 13.19.68 15.12.46m-60.06-47.2c-.8-3.66-1.44-7.16-1.94-10.43m1.94 10.42c-1.24 2-2.43 3.98-3.55 5.87m.32-30.9c0 3.75.41 8.8 1.3 14.61m0 0c-2.32 2.46-7.78 7.15-13.67 11.55m-42.32-12.78s1.24 7.12 3.87 11.42a29.93 29.93 0 0 0 6.61 7.8m36.13 12.04c-6.87-3.1-17.87-6.8-22.51-8.27m22.51 8.27a394.7 394.7 0 0 1 7.76-13.74M76 150.72c.39-.06.78-.14 1.17-.23 3.97-.93 10.76-5.29 17.05-9.98m-18.22 10.2c-4.7.8-9.36-.34-13.62-3.76m0 0c-3.29-.85-11.28-2.39-12.86-2.41m56.75.71c-2.32-.94-9-3.55-12.05-4.74",stroke:"#515151"}),m.createElement("path",{d:"m77.74 73.31 23.73 43.2-1.7 2.5-22.73 9.55-24.58-44.48 21.9-10.77h3.38Z",fill:"#E6E8EA"}),m.createElement("path",{d:"M74.35 73.31h3.4l23.72 43.2-1.7 2.5m-25.42-45.7-21.9 10.77 24.59 44.48L99.78 119m-25.43-45.7 25.43 45.7",stroke:"#515151"}),m.createElement("path",{d:"M83.9 116.95c.96 1.97-4.91 4.57-8.32 6.18-1.33.63-2.1.98-2.7 1.2.9 3.3 1.24 8.14-4.48 9.82-5.73 1.69-15.07-1.02-18-9.6-2.95-8.6.01-19.97 9.05-27.04 5.67-4.42 15.01-5.77 19.42-4.05 2.15.82 1.38 2.71-.56 4.44a58.1 58.1 0 0 1-4.53 3.58c.4-.01.8-.02 1.23 0 4.13.06 7.26 1.11 7.42 3.14.07.94-.8 2.13-1.95 3.45-.62.71-1.28 1.34-1.95 1.88 2.8-.22 5.94 1.05 2.9 4.2-.41.43-.85.83-1.29 1.2 1.73.02 3.24.56 3.75 1.6Z",fill:"white"}),m.createElement("path",{d:"M69.73 125.1c1.65-.34 2.2-.4 3.14-.76m0 0c.6-.23 1.38-.58 2.7-1.21 3.42-1.6 9.3-4.21 8.32-6.17-.86-1.76-4.53-2.09-7.33-.97-2.84 1.13-3.58 2.24-3.46 2.56.12.31 4.75-.69 8.34-4.4 3.4-3.54-.96-4.7-3.9-4.06-2.26.5-6.4 2.06-6.16 2.85.16.5 5.33-.54 9.1-4.87 1.14-1.32 2.02-2.51 1.95-3.45-.16-2.03-3.3-3.08-7.42-3.15-8.83-.16-11.56 4.78-11.16 5.1 1.1.92 9.36-4.15 14.46-8.67 1.94-1.73 2.71-3.62.56-4.44-4.4-1.72-13.75-.37-19.42 4.05-9.04 7.07-12 18.44-9.06 27.03 2.94 8.6 12.28 11.3 18 9.61 5.73-1.68 5.4-6.53 4.48-9.81Z",stroke:"#515151"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.48 120.15c-.2 1.56-.53 3.98-1.2 6.51-.68 2.53-1.71 5.16-3.3 7.14l.2.19 5.67-4.97-1.1-8.87h-.27Zm31.09 45.32-.25-.1-11.3 21.27h11.92l-.43-.26c-3.5-2.07-4.07-5.79-3.46-9.77.52-3.4 1.9-6.95 3-9.77l.52-1.37Zm-85.81-37.9-.24.13a55.3 55.3 0 0 0 1.65 6.39l.01.04.05.03c1.63.84 4.4 1.85 7.45 2.14 3.05.3 6.39-.12 9.1-2.15l-.12-.24c-3.14 1.2-11.14 1.63-17.9-6.33Z",fill:"#515151"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m133.54 82.83.02-.16h-.16c-1.82.1-5.84.39-9.87.96-2.02.28-4.04.64-5.79 1.08-1.74.43-3.23.95-4.18 1.58l-.06.04v.07c-.04 1.8.13 3.69.65 5.35a7.28 7.28 0 0 0 2.8 4.05c2.81 1.86 6.69 1.62 9.98-.58 3.3-2.2 6.04-6.37 6.61-12.4Z",fill:"#515151"}),m.createElement("path",{d:"M126.66 84.73a9.79 9.79 0 0 1-9.7 9.87 9.79 9.79 0 0 1-9.7-9.87 9.79 9.79 0 0 1 9.7-9.87c5.35 0 9.7 4.41 9.7 9.87Z",fill:"white",stroke:"#515151"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109.41 70.6c.66.25 1.25.47 1.9.26.52-.18.83-.7 1.18-1.3.75-1.27 1.73-2.93 5.56-2.56 3.86.38 4.6 2.17 5.1 3.43.21.5.38.9.69 1.12.48.32.84.33 1.26.35.55.02 1.2.05 2.37.75 1.41.85 2.49 5.65.23 9.93l.26.43c-.45 2.15-3.05 4.37-3.05 4.14 0-3.04 0-4.75-2.92-7.43-4.26 1.6-10.89 1.13-13.94.14-4-1.28-5.98-6.81-2.53-9 1.72-1.1 2.88-.65 3.9-.26Z",fill:"#515151"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M116.7 81.6a.41.41 0 1 0-.74.4c.2.39.47.74.9.95.41.2.93.25 1.58.17a.41.41 0 1 0-.1-.82c-.58.07-.9.01-1.12-.09-.2-.1-.36-.28-.53-.6Zm-6.57 4.22a1.07 1.07 0 0 0 1-1.13 1.06 1.06 0 0 0-1.1-1.02c-.59.03-1.03.54-1 1.13.02.6.52 1.05 1.1 1.02Zm6.82.73a1.07 1.07 0 0 0 1-1.13 1.06 1.06 0 0 0-1.1-1.01c-.58.02-1.03.53-1 1.12.03.6.52 1.05 1.1 1.02Z",fill:"#515151"}),m.createElement("ellipse",{cx:127.42,cy:86.0081,rx:2.47934,ry:2.47934,fill:"white",stroke:"#515151"}),m.createElement("circle",{r:4.67102,transform:"matrix(0.707106 0.707108 -0.707106 0.707108 75.0508 75.7794)",fill:"var(--semi-color-primary)",stroke:"var(--semi-color-primary)",strokeWidth:3}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M77.9 72.97a1.1 1.1 0 0 0-1.57 0l-1.26 1.27-1.31-1.3a1.1 1.1 0 1 0-1.57 1.56l1.31 1.3-1.3 1.31a1.1 1.1 0 0 0 1.56 1.57l1.3-1.3 1.27 1.26a1.1 1.1 0 1 0 1.57-1.57l-1.26-1.26 1.26-1.27a1.1 1.1 0 0 0 0-1.57Z",fill:"white"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.41 49.11a32.26 32.26 0 0 0-19-9.84 2.14 2.14 0 0 0-2.42 2.02c-.07 1.2.82 2.2 1.97 2.37a27.86 27.86 0 0 1 16.13 8.36c.83.87 2.24.99 3.17.15.88-.79.99-2.17.15-3.06Zm-35.8-8.52a32.5 32.5 0 0 0-18.74 15.73 2.14 2.14 0 0 0 1.01 2.93c1.11.52 2.4.02 2.96-1.02a28.08 28.08 0 0 1 15.96-13.4 2.28 2.28 0 0 0 1.53-2.72 2.14 2.14 0 0 0-2.72-1.52Zm27.75 15.78c-3.02-3.14-7-5.38-11.53-6.22a2.11 2.11 0 0 0-2.47 2 2.33 2.33 0 0 0 1.9 2.38c3.41.69 6.43 2.37 8.75 4.72.85.85 2.26 1 3.2.15.87-.78 1-2.15.15-3.03Zm-24.64-4.65a21.63 21.63 0 0 0-11.66 9.8 2.1 2.1 0 0 0 .99 2.94c1.12.52 2.4.01 2.98-1 2-3.45 5.17-6.11 8.91-7.5 1.1-.4 1.81-1.56 1.5-2.75a2.1 2.1 0 0 0-2.72-1.5Zm16.63 11.95a10.69 10.69 0 0 0-4-2.47c-1.35-.47-2.56.62-2.63 1.9-.07 1.14.73 2.04 1.65 2.44.56.25 1.07.56 1.52.94.89.74 2.33 1 3.32.11.82-.74 1-2.07.14-2.92Zm-14.28-.76c-1.82.83-3.39 2.16-4.5 3.83-.73 1.08-.16 2.42.9 2.92 1.14.53 2.38-.02 3.05-.88a6.35 6.35 0 0 1 1.93-1.63c.95-.52 1.68-1.63 1.37-2.83-.3-1.15-1.54-1.95-2.75-1.4Z",fill:"var(--semi-color-primary)"}))}var hce=dce;const fce=({visible:e,onClose:t,isMobile:r,defaultTab:n="inApp",unreadKeys:i=[]})=>{var F;const{t:s}=Ze(),[o,l]=m.useState(""),[u,c]=m.useState(!1),[d,h]=m.useState(n),[f]=m.useContext(Ji),p=((F=f==null?void 0:f.status)==null?void 0:F.announcements)||[],g=m.useMemo(()=>new Set(i),[i]),y=k=>`${(k==null?void 0:k.publishDate)||""}-${((k==null?void 0:k.content)||"").slice(0,30)}`,b=m.useMemo(()=>p.slice(0,20).map(k=>({key:y(k),type:k.type||"default",time:aw(k.publishDate),content:k.content,extra:k.extra,isUnread:g.has(y(k))})),[p,g]),x=()=>{const k=new Date().toDateString();localStorage.setItem("notice_close_date",k),t()},v=async()=>{c(!0);try{const k=await Se.get("/api/notice"),{success:U,message:W,data:K}=k.data;if(U)if(K!==""){const $=uh.parse(K);l($)}else l("");else q(W)}catch(k){q(k.message)}finally{c(!1)}};m.useEffect(()=>{e&&v()},[e]),m.useEffect(()=>{e&&h(n)},[n,e]);const E=()=>u?a.jsx("div",{className:"py-12",children:a.jsx(Rr,{description:s("加载中...")})}):o?a.jsx("div",{dangerouslySetInnerHTML:{__html:o},className:"notice-content-scroll max-h-[55vh] overflow-y-auto pr-2"}):a.jsx("div",{className:"py-12",children:a.jsx(Rr,{image:a.jsx(e2,{style:{width:150,height:150}}),darkModeImage:a.jsx(Qh,{style:{width:150,height:150}}),description:s("暂无公告")})}),_=()=>b.length===0?a.jsx("div",{className:"py-12",children:a.jsx(Rr,{image:a.jsx(e2,{style:{width:150,height:150}}),darkModeImage:a.jsx(Qh,{style:{width:150,height:150}}),description:s("暂无系统公告")})}):a.jsx("div",{className:"max-h-[55vh] overflow-y-auto pr-2 card-content-scroll",children:a.jsx(q3,{mode:"alternate",children:b.map((k,U)=>{const W=uh.parse(k.content||""),K=k.extra?uh.parse(k.extra):"";return a.jsx(q3.Item,{type:k.type,time:k.time,className:(k.isUnread,""),children:a.jsxs("div",{children:[a.jsx("div",{className:k.isUnread?"shine-text":"",dangerouslySetInnerHTML:{__html:W}}),k.extra&&a.jsx("div",{className:"text-xs text-gray-500",dangerouslySetInnerHTML:{__html:K}})]})},U)})})}),j=()=>d==="inApp"?E():_();return a.jsx(Je,{title:a.jsxs("div",{className:"flex items-center justify-between w-full",children:[a.jsx("span",{children:s("系统公告")}),a.jsxs(Pn,{activeKey:d,onChange:h,type:"card",size:"small",children:[a.jsx(Zr,{tab:a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(Dg,{size:14})," ",s("通知")]}),itemKey:"inApp"}),a.jsx(Zr,{tab:a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(ele,{size:14})," ",s("系统公告")]}),itemKey:"system"})]})]}),visible:e,onCancel:t,footer:a.jsxs("div",{className:"flex justify-end",children:[a.jsx(X,{type:"secondary",onClick:x,children:s("今日关闭")}),a.jsx(X,{type:"primary",onClick:t,children:s("关闭公告")})]}),size:r?"full-width":"large",children:j()})},qm="default_collapse_sidebar",Ig=()=>{const[e,t]=m.useState(()=>localStorage.getItem(qm)==="true"),r=m.useCallback(()=>{t(i=>{const s=!i;return localStorage.setItem(qm,s.toString()),s})},[]),n=m.useCallback(i=>{t(i),localStorage.setItem(qm,i.toString())},[]);return[e,r,n]},pce=({onMobileMenuToggle:e,drawerOpen:t})=>{var ve,Z,ge,De;const{t:r,i18n:n}=Ze(),[i,s]=m.useContext(Xi),[o,l]=m.useContext(Ji),u=mi(),[c,d]=Ig(),[h,f]=m.useState(!0);let p=go();const[g,y]=m.useState(n.language),[b,x]=m.useState(!1),v=Ml(),[E,_]=m.useState(!1),[j,F]=m.useState(0),k=m.useRef(Date.now()),U=yo(),W=Sa(),K=new Date,$=K.getMonth()===0&&K.getDate()===1,O=((ve=o==null?void 0:o.status)==null?void 0:ve.self_use_mode_enabled)||!1,R=((Z=o==null?void 0:o.status)==null?void 0:Z.docs_link)||"",z=((ge=o==null?void 0:o.status)==null?void 0:ge.demo_site_enabled)||!1,H=v.pathname.startsWith("/console"),B=d6(),Y=tT(),P=((De=o==null?void 0:o.status)==null?void 0:De.announcements)||[],le=Oe=>`${(Oe==null?void 0:Oe.publishDate)||""}-${((Oe==null?void 0:Oe.content)||"").slice(0,30)}`,be=()=>{if(!P.length)return 0;let Oe=[];try{Oe=JSON.parse(localStorage.getItem("notice_read_keys"))||[]}catch{Oe=[]}const ae=new Set(Oe);return P.filter(we=>!ae.has(le(we))).length},V=()=>{if(!P.length)return[];let Oe=[];try{Oe=JSON.parse(localStorage.getItem("notice_read_keys"))||[]}catch{Oe=[]}const ae=new Set(Oe);return P.filter(we=>!ae.has(le(we))).map(le)};m.useEffect(()=>{F(be())},[P]);const te=[{text:r("首页"),itemKey:"home",to:"/"},{text:r("控制台"),itemKey:"console",to:"/console"},{text:r("定价"),itemKey:"pricing",to:"/pricing"},...R?[{text:r("文档"),itemKey:"docs",isExternal:!0,externalLink:R}]:[],{text:r("关于"),itemKey:"about",to:"/about"}];async function de(){await Se.get("/api/user/logout"),Pe(r("注销成功!")),s({type:"logout"}),localStorage.removeItem("user"),p("/login"),x(!1)}const ee=()=>{Rf.init("root",{}),Rf.start(),setTimeout(()=>{Rf.stop()},3e3)},ie=()=>{_(!0)},G=()=>{if(_(!1),P.length){let Oe=[];try{Oe=JSON.parse(localStorage.getItem("notice_read_keys"))||[]}catch{Oe=[]}const ae=Array.from(new Set([...Oe,...P.map(le)]));localStorage.setItem("notice_read_keys",JSON.stringify(ae))}F(0)};m.useEffect(()=>{B==="dark"?(document.body.setAttribute("theme-mode","dark"),document.documentElement.classList.add("dark")):(document.body.removeAttribute("theme-mode"),document.documentElement.classList.remove("dark"));const Oe=document.querySelector("iframe");Oe&&Oe.contentWindow.postMessage({themeMode:B},"*")},[B,$]),m.useEffect(()=>{const Oe=ae=>{y(ae);const we=document.querySelector("iframe");we&&we.contentWindow.postMessage({lang:ae},"*")};return n.on("languageChanged",Oe),()=>{n.off("languageChanged",Oe)}},[n]),m.useEffect(()=>{if((o==null?void 0:o.status)!==void 0){const Oe=Date.now()-k.current,ae=Math.max(0,500-Oe),we=setTimeout(()=>{f(!1)},ae);return()=>clearTimeout(we)}},[o==null?void 0:o.status]);const N=Oe=>{n.changeLanguage(Oe),x(!1)},I=Oe=>{x(!1)},T=(Oe=!1,ae=!1)=>{if(ae){const we=Oe?"flex items-center gap-1 p-3 w-full rounded-md":"flex items-center gap-1 p-2 rounded-md";return Array(4).fill(null).map((ne,ke)=>a.jsx("div",{className:we,children:a.jsx(Br,{loading:!0,active:!0,placeholder:a.jsx(Br.Title,{active:!0,style:{width:Oe?100:60,height:16}})})},ke))}return te.map(we=>{const ne=Oe?"flex items-center gap-1 p-3 w-full text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors font-semibold":"flex items-center gap-1 p-2 text-sm text-gray-700 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors rounded-md font-semibold",ke=a.jsx("span",{children:we.text});if(we.isExternal)return a.jsx("a",{href:we.externalLink,target:"_blank",rel:"noopener noreferrer",className:ne,onClick:()=>I(we.itemKey),children:ke},we.itemKey);let Be=we.to;return we.itemKey==="console"&&!i.user&&(Be="/login"),a.jsx(ji,{to:Be,className:ne,onClick:()=>I(we.itemKey),children:ke},we.itemKey)})},J=()=>{if(h)return a.jsxs("div",{className:"flex items-center p-1 rounded-full bg-semi-color-fill-0 dark:bg-semi-color-fill-1",children:[a.jsx(Br,{loading:!0,active:!0,placeholder:a.jsx(Br.Avatar,{active:!0,size:"extra-small",className:"shadow-sm"})}),a.jsx("div",{className:"ml-1.5 mr-1",children:a.jsx(Br,{loading:!0,active:!0,placeholder:a.jsx(Br.Title,{active:!0,style:{width:u?15:50,height:12}})})})]});if(i.user)return a.jsx(er,{position:"bottomRight",render:a.jsxs(er.Menu,{className:"!bg-semi-color-bg-overlay !border-semi-color-border !shadow-lg !rounded-lg dark:!bg-gray-700 dark:!border-gray-600",children:[a.jsx(er.Item,{onClick:()=>{p("/console/personal"),x(!1)},className:"!px-3 !py-1.5 !text-sm !text-semi-color-text-0 hover:!bg-semi-color-fill-1 dark:!text-gray-200 dark:hover:!bg-blue-500 dark:hover:!text-white",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(vB,{size:"small",className:"text-gray-500 dark:text-gray-400"}),a.jsx("span",{children:r("个人设置")})]})}),a.jsx(er.Item,{onClick:()=>{p("/console/token"),x(!1)},className:"!px-3 !py-1.5 !text-sm !text-semi-color-text-0 hover:!bg-semi-color-fill-1 dark:!text-gray-200 dark:hover:!bg-blue-500 dark:hover:!text-white",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(pa,{size:"small",className:"text-gray-500 dark:text-gray-400"}),a.jsx("span",{children:r("API令牌")})]})}),a.jsx(er.Item,{onClick:()=>{p("/console/topup"),x(!1)},className:"!px-3 !py-1.5 !text-sm !text-semi-color-text-0 hover:!bg-semi-color-fill-1 dark:!text-gray-200 dark:hover:!bg-blue-500 dark:hover:!text-white",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(e6,{size:"small",className:"text-gray-500 dark:text-gray-400"}),a.jsx("span",{children:r("钱包")})]})}),a.jsx(er.Item,{onClick:de,className:"!px-3 !py-1.5 !text-sm !text-semi-color-text-0 hover:!bg-semi-color-fill-1 dark:!text-gray-200 dark:hover:!bg-red-500 dark:hover:!text-white",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(wB,{size:"small",className:"text-gray-500 dark:text-gray-400"}),a.jsx("span",{children:r("退出")})]})})]}),children:a.jsxs(X,{theme:"borderless",type:"tertiary",className:"flex items-center gap-1.5 !p-1 !rounded-full hover:!bg-semi-color-fill-1 dark:hover:!bg-gray-700 !bg-semi-color-fill-0 dark:!bg-semi-color-fill-1 dark:hover:!bg-semi-color-fill-2",children:[a.jsx(dr,{size:"extra-small",color:To(i.user.username),className:"mr-1",children:i.user.username[0].toUpperCase()}),a.jsx("span",{className:"hidden md:inline",children:a.jsx(Ie.Text,{className:"!text-xs !font-medium !text-semi-color-text-1 dark:!text-gray-300 mr-1",children:i.user.username})}),a.jsx(E5,{className:"text-xs text-semi-color-text-2 dark:text-gray-400"})]})});{const Oe=!O,ae="flex items-center justify-center !py-[10px] !px-1.5";let ne=`${ae} !bg-semi-color-fill-0 dark:!bg-semi-color-fill-1 hover:!bg-semi-color-fill-1 dark:hover:!bg-gray-700 transition-colors`,ke=`${ae}`;const Be="!text-xs !text-semi-color-text-1 dark:!text-gray-300 !p-1.5",Ae="!text-xs !text-white !p-1.5";return Oe?(u?ne+=" !rounded-full":ne+=" !rounded-l-full !rounded-r-none",ke+=" !rounded-r-full !rounded-l-none"):ne+=" !rounded-full",a.jsxs("div",{className:"flex items-center",children:[a.jsx(ji,{to:"/login",onClick:()=>I(),className:"flex",children:a.jsx(X,{theme:"borderless",type:"tertiary",className:ne,children:a.jsx("span",{className:Be,children:r("登录")})})}),Oe&&a.jsx("div",{className:"hidden md:block",children:a.jsx(ji,{to:"/register",onClick:()=>I(),className:"flex -ml-px",children:a.jsx(X,{theme:"solid",type:"primary",className:ke,children:a.jsx("span",{className:Ae,children:r("注册")})})})})]})}};return a.jsxs("header",{className:"text-semi-color-text-0 sticky top-0 z-50 transition-colors duration-300 bg-white/75 dark:bg-zinc-900/75 backdrop-blur-lg",children:[a.jsx(fce,{visible:E,onClose:G,isMobile:u,defaultTab:j>0?"system":"inApp",unreadKeys:V()}),a.jsx("div",{className:"w-full px-2",children:a.jsxs("div",{className:"flex items-center justify-between h-16",children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx("div",{className:"md:hidden",children:a.jsx(X,{icon:H?(u?t:c)?a.jsx(ls,{className:"text-lg"}):a.jsx(W3,{className:"text-lg"}):b?a.jsx(ls,{className:"text-lg"}):a.jsx(W3,{className:"text-lg"}),"aria-label":r(H?(u?t:c)?"关闭侧边栏":"打开侧边栏":b?"关闭菜单":"打开菜单"),onClick:()=>{H?u?e():d():x(!b)},theme:"borderless",type:"tertiary",className:"!p-2 !text-current focus:!bg-semi-color-fill-1 dark:focus:!bg-gray-700"})}),a.jsxs(ji,{to:"/",onClick:()=>I(),className:"flex items-center gap-2 group ml-2",children:[a.jsx(Br,{loading:h,active:!0,placeholder:a.jsx(Br.Image,{active:!0,className:"h-7 md:h-8 !rounded-full",style:{width:32,height:32}}),children:a.jsx("img",{src:W,alt:"logo",className:"h-7 md:h-8 transition-transform duration-300 ease-in-out group-hover:scale-105 rounded-full"})}),a.jsx("div",{className:"hidden md:flex items-center gap-2",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Br,{loading:h,active:!0,placeholder:a.jsx(Br.Title,{active:!0,style:{width:120,height:24}}),children:a.jsx(Ie.Title,{heading:4,className:"!text-lg !font-semibold !mb-0",children:U})}),(O||z)&&!h&&a.jsx(ye,{color:O?"purple":"blue",className:"text-xs px-1.5 py-0.5 rounded whitespace-nowrap shadow-sm",size:"small",shape:"circle",children:r(O?"自用模式":"演示站点")})]})})]}),(O||z)&&!h&&a.jsx("div",{className:"md:hidden",children:a.jsx(ye,{color:O?"purple":"blue",className:"ml-2 text-xs px-1 py-0.5 rounded whitespace-nowrap shadow-sm",size:"small",shape:"circle",children:r(O?"自用模式":"演示站点")})}),a.jsx("nav",{className:"hidden md:flex items-center gap-1 lg:gap-2 ml-6",children:T(!1,h)})]}),a.jsxs("div",{className:"flex items-center gap-2 md:gap-3",children:[$&&a.jsx(er,{position:"bottomRight",render:a.jsx(er.Menu,{className:"!bg-semi-color-bg-overlay !border-semi-color-border !shadow-lg !rounded-lg dark:!bg-gray-700 dark:!border-gray-600",children:a.jsx(er.Item,{onClick:ee,className:"!text-semi-color-text-0 hover:!bg-semi-color-fill-1 dark:!text-gray-200 dark:hover:!bg-gray-600",children:"Happy New Year!!! 🎉"})}),children:a.jsx(X,{theme:"borderless",type:"tertiary",icon:a.jsx("span",{className:"text-xl",children:"🎉"}),"aria-label":"New Year",className:"!p-1.5 !text-current focus:!bg-semi-color-fill-1 dark:focus:!bg-gray-700 rounded-full"})}),j>0?a.jsx(gB,{count:j,type:"danger",overflowCount:99,children:a.jsx(X,{icon:a.jsx(w5,{className:"text-lg"}),"aria-label":r("系统公告"),onClick:ie,theme:"borderless",type:"tertiary",className:"!p-1.5 !text-current focus:!bg-semi-color-fill-1 dark:focus:!bg-gray-700 !rounded-full !bg-semi-color-fill-0 dark:!bg-semi-color-fill-1 hover:!bg-semi-color-fill-1 dark:hover:!bg-semi-color-fill-2"})}):a.jsx(X,{icon:a.jsx(w5,{className:"text-lg"}),"aria-label":r("系统公告"),onClick:ie,theme:"borderless",type:"tertiary",className:"!p-1.5 !text-current focus:!bg-semi-color-fill-1 dark:focus:!bg-gray-700 !rounded-full !bg-semi-color-fill-0 dark:!bg-semi-color-fill-1 hover:!bg-semi-color-fill-1 dark:hover:!bg-semi-color-fill-2"}),a.jsx(X,{icon:B==="dark"?a.jsx(yB,{size:"large",className:"text-yellow-500"}):a.jsx(bB,{size:"large",className:"text-gray-300"}),"aria-label":r("切换主题"),onClick:()=>Y(B!=="dark"),theme:"borderless",type:"tertiary",className:"!p-1.5 !text-current focus:!bg-semi-color-fill-1 dark:focus:!bg-gray-700 !rounded-full !bg-semi-color-fill-0 dark:!bg-semi-color-fill-1 hover:!bg-semi-color-fill-1 dark:hover:!bg-semi-color-fill-2"}),a.jsx(er,{position:"bottomRight",render:a.jsxs(er.Menu,{className:"!bg-semi-color-bg-overlay !border-semi-color-border !shadow-lg !rounded-lg dark:!bg-gray-700 dark:!border-gray-600",children:[a.jsxs(er.Item,{onClick:()=>N("zh"),className:`!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-semi-color-text-0 dark:!text-gray-200 ${g==="zh"?"!bg-semi-color-primary-light-default dark:!bg-blue-600 !font-semibold":"hover:!bg-semi-color-fill-1 dark:hover:!bg-gray-600"}`,children:[a.jsx(Tue,{title:"中文",className:"!w-5 !h-auto"}),a.jsx("span",{children:"中文"})]}),a.jsxs(er.Item,{onClick:()=>N("en"),className:`!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-semi-color-text-0 dark:!text-gray-200 ${g==="en"?"!bg-semi-color-primary-light-default dark:!bg-blue-600 !font-semibold":"hover:!bg-semi-color-fill-1 dark:hover:!bg-gray-600"}`,children:[a.jsx(Pue,{title:"English",className:"!w-5 !h-auto"}),a.jsx("span",{children:"English"})]})]}),children:a.jsx(X,{icon:a.jsx(xB,{className:"text-lg"}),"aria-label":r("切换语言"),theme:"borderless",type:"tertiary",className:"!p-1.5 !text-current focus:!bg-semi-color-fill-1 dark:focus:!bg-gray-700 !rounded-full !bg-semi-color-fill-0 dark:!bg-semi-color-fill-1 hover:!bg-semi-color-fill-1 dark:hover:!bg-semi-color-fill-2"})}),J()]})]})}),a.jsx("div",{className:"md:hidden",children:a.jsx("div",{className:`
- absolute top-16 left-0 right-0 bg-semi-color-bg-0
- shadow-lg p-3
- transform transition-all duration-300 ease-in-out
- ${!H&&b?"translate-y-0 opacity-100 visible":"-translate-y-4 opacity-0 invisible"}
- `,children:a.jsx("nav",{className:"flex flex-col gap-1",children:T(!0,h)})})})]})},Wm={home:"/",channel:"/console/channel",token:"/console/token",redemption:"/console/redemption",topup:"/console/topup",user:"/console/user",log:"/console/log","usage-statistics":"/console/usage-statistics","usage-statistics-monthly":"/console/usage-statistics-monthly",midjourney:"/console/midjourney",setting:"/console/setting",about:"/about",detail:"/console",pricing:"/pricing",task:"/console/task",playground:"/console/playground",personal:"/console/personal"},mce=({onNavigate:e=()=>{}})=>{const{t}=Ze(),[r,n]=Ig(),[i,s]=m.useState(["home"]),[o,l]=m.useState([]),[u,c]=m.useState([]),d=Ml(),[h,f]=m.useState(Wm),p=m.useMemo(()=>[{text:t("数据看板"),itemKey:"detail",to:"/detail",className:localStorage.getItem("enable_data_export")==="true"?"":"tableHiddle"},{text:t("API令牌"),itemKey:"token",to:"/token"},{text:t("使用日志"),itemKey:"log",to:"/log"},{text:t("用量日统计"),itemKey:"usage-statistics",to:"/usage-statistics"},{text:t("用量月统计"),itemKey:"usage-statistics-monthly",to:"/usage-statistics-monthly"},{text:t("绘图日志"),itemKey:"midjourney",to:"/midjourney",className:localStorage.getItem("enable_drawing")==="true"?"":"tableHiddle"},{text:t("任务日志"),itemKey:"task",to:"/task",className:localStorage.getItem("enable_task")==="true"?"":"tableHiddle"}],[localStorage.getItem("enable_data_export"),localStorage.getItem("enable_drawing"),localStorage.getItem("enable_task"),t]),g=m.useMemo(()=>[{text:t("钱包"),itemKey:"topup",to:"/topup"},{text:t("个人设置"),itemKey:"personal",to:"/personal"}],[t]),y=m.useMemo(()=>[{text:t("渠道"),itemKey:"channel",to:"/channel",className:Nr()?"":"tableHiddle"},{text:t("兑换码"),itemKey:"redemption",to:"/redemption",className:Nr()?"":"tableHiddle"},{text:t("用户管理"),itemKey:"user",to:"/user",className:Nr()?"":"tableHiddle"},{text:t("系统设置"),itemKey:"setting",to:"/setting",className:Ih()?"":"tableHiddle"}],[Nr(),Ih(),t]),b=m.useMemo(()=>[{text:t("操练场"),itemKey:"playground",to:"/playground"},{text:t("聊天"),itemKey:"chat",items:o}],[o,t]),x=j=>{const F={...Wm};if(Array.isArray(j)&&j.length>0)for(let k=0;k<j.length;k++)F["chat"+k]="/console/chat/"+k;return f(F),F};m.useEffect(()=>{let j=localStorage.getItem("chats");if(j)try{if(j=JSON.parse(j),Array.isArray(j)){let F=[];for(let k=0;k<j.length;k++){let U={};for(let W in j[k])U.text=W,U.itemKey="chat"+k,U.to="/console/chat/"+k;F.push(U)}l(F),x(j)}}catch(F){console.error(F),q("聊天数据解析失败")}},[]),m.useEffect(()=>{const j=d.pathname;let F=Object.keys(h).find(k=>h[k]===j);if(!F&&j.startsWith("/console/chat/")){const k=j.split("/").pop();isNaN(k)?F="chat":F="chat"+k}F&&s([F])},[d.pathname,h]),m.useEffect(()=>{r?document.body.classList.add("sidebar-collapsed"):document.body.classList.remove("sidebar-collapsed")},[r]);const v=j=>{switch(j){case"detail":return Xt.dashboard;case"playground":return Xt.terminal;case"chat":return Xt.message;case"token":return Xt.key;case"log":return Xt.chart;case"usage-statistics":return Xt.barChart;case"usage-statistics-monthly":return Xt.barChart;case"midjourney":return Xt.image;case"task":return Xt.check;case"topup":return Xt.credit;case"channel":return Xt.layers;case"redemption":return Xt.gift;case"user":case"personal":return Xt.user;case"setting":return Xt.settings;default:return j&&j.startsWith("chat")?Xt.message:"currentColor"}},E=j=>{if(j.className==="tableHiddle")return null;const F=i.includes(j.itemKey),k=F?v(j.itemKey):"inherit";return a.jsx(Bd.Item,{itemKey:j.itemKey,text:a.jsx("div",{className:"flex items-center",children:a.jsx("span",{className:"truncate font-medium text-sm dark-sidebar-item-text",style:{color:k},children:j.text})}),icon:a.jsx("div",{className:"sidebar-icon-container dark-sidebar-icon-container flex-shrink-0",children:$9(j.itemKey,F)}),className:j.className,style:F?{backgroundColor:"#0086ff",color:"#ffffff"}:{}},j.itemKey)},_=j=>{if(j.items&&j.items.length>0){const F=i.includes(j.itemKey),k=F?v(j.itemKey):"inherit";return a.jsx(Bd.Sub,{itemKey:j.itemKey,text:a.jsx("div",{className:"flex items-center",children:a.jsx("span",{className:"truncate font-medium text-sm dark-sidebar-item-text",style:{color:k},children:j.text})}),icon:a.jsx("div",{className:"sidebar-icon-container dark-sidebar-icon-container flex-shrink-0",children:$9(j.itemKey,F)}),style:F?{backgroundColor:"#0086ff",color:"#ffffff"}:{},children:j.items.map(U=>{const W=i.includes(U.itemKey),K=W?v(U.itemKey):"inherit";return a.jsx(Bd.Item,{itemKey:U.itemKey,text:a.jsx("span",{className:"truncate font-medium text-sm dark-sidebar-item-text",style:{color:K},children:U.text}),style:W?{backgroundColor:"#0086ff",color:"#ffffff"}:{}},U.itemKey)})},j.itemKey)}else return E(j)};return a.jsxs("div",{className:"sidebar-container dark-sidebar",style:{width:"var(--sidebar-current-width)"},children:[a.jsxs(Bd,{className:"sidebar-nav dark-sidebar-nav",defaultIsCollapsed:r,isCollapsed:r,onCollapseChange:n,selectedKeys:i,itemStyle:"sidebar-nav-item dark-sidebar-nav-item",hoverStyle:"dark-sidebar-nav-item:hover",selectedStyle:"dark-sidebar-nav-item-selected",renderWrapper:({itemElement:j,props:F})=>{const k=h[F.itemKey]||Wm[F.itemKey];return k?a.jsx(ji,{style:{textDecoration:"none"},to:k,onClick:e,children:j}):j},onSelect:j=>{u.includes(j.itemKey)&&c(u.filter(F=>F!==j.itemKey)),s([j.itemKey])},openKeys:u,onOpenChange:j=>{c(j.openKeys)},children:[a.jsxs("div",{className:"sidebar-section dark-sidebar-section",children:[!r&&a.jsx("div",{className:"sidebar-group-label dark-sidebar-group-label",children:t("聊天")}),b.map(j=>_(j))]}),a.jsx(Ar,{className:"sidebar-divider dark-sidebar-divider"}),a.jsxs("div",{children:[!r&&a.jsx("div",{className:"sidebar-group-label dark-sidebar-group-label",children:t("控制台")}),p.map(j=>E(j))]}),Nr()&&a.jsxs(a.Fragment,{children:[a.jsx(Ar,{className:"sidebar-divider dark-sidebar-divider"}),a.jsxs("div",{children:[!r&&a.jsx("div",{className:"sidebar-group-label dark-sidebar-group-label",children:t("管理员")}),y.map(j=>E(j))]})]}),a.jsx(Ar,{className:"sidebar-divider dark-sidebar-divider"}),a.jsxs("div",{children:[!r&&a.jsx("div",{className:"sidebar-group-label dark-sidebar-group-label",children:t("个人中心")}),g.map(j=>E(j))]})]}),a.jsx("div",{className:"sidebar-collapse-button dark-sidebar-collapse-button",children:a.jsx(X,{theme:"outline",type:"tertiary",size:"small",icon:a.jsx(roe,{size:16,strokeWidth:2.5,color:"gray",style:{transform:r?"rotate(180deg)":"rotate(0deg)"}}),onClick:n,iconOnly:r,style:r?{padding:"4px",width:"100%",color:"gray"}:{padding:"4px 12px",width:"100%",color:"gray"},children:r?null:t("收起侧边栏")})})]})},pr=({size:e="small"})=>a.jsx("div",{className:"fixed inset-0 w-screen h-screen flex items-center justify-center",children:a.jsx(Dt,{size:e,spinning:!0})}),{Text:gce,Title:yce}=Ie,bce=e=>{const{t}=Ze(),r=m.useRef(null),[n,i]=m.useState(!1),s=mi(),o=()=>({username:"",display_name:"",password:"",remark:""}),l=async c=>{var p;i(!0);const d=await Se.post("/api/user/",c),{success:h,message:f}=d.data;h?(Pe(t("用户账户创建成功!")),(p=r.current)==null||p.setValues(o()),e.refresh(),e.handleClose()):q(f),i(!1)},u=()=>{e.handleClose()};return a.jsx(a.Fragment,{children:a.jsx(Nl,{placement:"left",title:a.jsxs(pt,{children:[a.jsx(ye,{color:"green",shape:"circle",children:t("新建")}),a.jsx(yce,{heading:4,className:"m-0",children:t("添加用户")})]}),bodyStyle:{padding:"0"},visible:e.visible,width:s?"100%":600,footer:a.jsx("div",{className:"flex justify-end bg-white",children:a.jsxs(pt,{children:[a.jsx(X,{theme:"solid",onClick:()=>{var c;return(c=r.current)==null?void 0:c.submitForm()},icon:a.jsx(ys,{}),loading:n,children:t("提交")}),a.jsx(X,{theme:"light",type:"primary",onClick:u,icon:a.jsx(ls,{}),children:t("取消")})]})}),closeIcon:null,onCancel:()=>u(),children:a.jsx(Dt,{spinning:n,children:a.jsx(M,{initValues:o(),getFormApi:c=>r.current=c,onSubmit:l,onSubmitFail:c=>{var h;const d=Object.values(c)[0];d&&q(Array.isArray(d)?d[0]:d),(h=r.current)==null||h.scrollToError()},children:a.jsx("div",{className:"p-2",children:a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"blue",className:"mr-2 shadow-md",children:a.jsx(Hv,{size:16})}),a.jsxs("div",{children:[a.jsx(gce,{className:"text-lg font-medium",children:t("用户信息")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("创建新用户账户")})]})]}),a.jsxs(Ge,{gutter:12,children:[a.jsx(_e,{span:24,children:a.jsx(M.Input,{field:"username",label:t("用户名"),placeholder:t("请输入用户名"),rules:[{required:!0,message:t("请输入用户名")}],showClear:!0})}),a.jsx(_e,{span:24,children:a.jsx(M.Input,{field:"display_name",label:t("显示名称"),placeholder:t("请输入显示名称"),showClear:!0})}),a.jsx(_e,{span:24,children:a.jsx(M.Input,{field:"password",label:t("密码"),type:"password",placeholder:t("请输入密码"),rules:[{required:!0,message:t("请输入密码")}],showClear:!0})}),a.jsx(_e,{span:24,children:a.jsx(M.Input,{field:"remark",label:t("备注"),placeholder:t("请输入备注(仅管理员可见)"),showClear:!0})})]})]})})})})})})},{Text:Wd,Title:xce}=Ie,o4=e=>{const{t}=Ze(),r=e.editingUser.id,[n,i]=m.useState(!0),[s,o]=m.useState(!1),[l,u]=m.useState(""),c=mi(),[d,h]=m.useState([]),f=m.useRef(null),p=!!r,g=()=>({username:"",display_name:"",password:"",github_id:"",oidc_id:"",wechat_id:"",telegram_id:"",email:"",quota:0,group:"default",remark:""}),y=async()=>{try{let _=await Se.get("/api/group/");h(_.data.data.map(j=>({label:j,value:j})))}catch(_){q(_.message)}},b=()=>e.handleClose(),x=async()=>{var W;i(!0);const _=r?`/api/user/${r}`:"/api/user/self",j=await Se.get(_),{success:F,message:k,data:U}=j.data;F?(U.password="",(W=f.current)==null||W.setValues({...g(),...U})):q(k),i(!1)};m.useEffect(()=>{x(),r&&y()},[e.editingUser.id]);const v=async _=>{i(!0);let j={..._};typeof j.quota=="string"&&(j.quota=parseInt(j.quota)||0),r&&(j.id=parseInt(r));const F=r?"/api/user/":"/api/user/self",k=await Se.put(F,j),{success:U,message:W}=k.data;U?(Pe(t("用户信息更新成功!")),e.refresh(),e.handleClose()):q(W),i(!1)},E=()=>{var F,k;const _=parseInt(((F=f.current)==null?void 0:F.getValue("quota"))||0),j=parseInt(l)||0;(k=f.current)==null||k.setValue("quota",_+j)};return a.jsxs(a.Fragment,{children:[a.jsx(Nl,{placement:"right",title:a.jsxs(pt,{children:[a.jsx(ye,{color:"blue",shape:"circle",children:t(p?"编辑":"新建")}),a.jsx(xce,{heading:4,className:"m-0",children:t(p?"编辑用户":"创建用户")})]}),bodyStyle:{padding:0},visible:e.visible,width:c?"100%":600,footer:a.jsx("div",{className:"flex justify-end bg-white",children:a.jsxs(pt,{children:[a.jsx(X,{theme:"solid",onClick:()=>{var _;return(_=f.current)==null?void 0:_.submitForm()},icon:a.jsx(ys,{}),loading:n,children:t("提交")}),a.jsx(X,{theme:"light",type:"primary",onClick:b,icon:a.jsx(ls,{}),children:t("取消")})]})}),closeIcon:null,onCancel:b,children:a.jsx(Dt,{spinning:n,children:a.jsx(M,{initValues:g(),getFormApi:_=>f.current=_,onSubmit:v,children:({values:_})=>a.jsxs("div",{className:"p-2",children:[a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"blue",className:"mr-2 shadow-md",children:a.jsx(Js,{size:16})}),a.jsxs("div",{children:[a.jsx(Wd,{className:"text-lg font-medium",children:t("基本信息")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("用户的基本账户信息")})]})]}),a.jsxs(Ge,{gutter:12,children:[a.jsx(_e,{span:24,children:a.jsx(M.Input,{field:"username",label:t("用户名"),placeholder:t("请输入新的用户名"),rules:[{required:!0,message:t("请输入用户名")}],showClear:!0})}),a.jsx(_e,{span:24,children:a.jsx(M.Input,{field:"password",label:t("密码"),placeholder:t("请输入新的密码,最短 8 位"),mode:"password",showClear:!0})}),a.jsx(_e,{span:24,children:a.jsx(M.Input,{field:"display_name",label:t("显示名称"),placeholder:t("请输入新的显示名称"),showClear:!0})}),a.jsx(_e,{span:24,children:a.jsx(M.Input,{field:"remark",label:t("备注"),placeholder:t("请输入备注(仅管理员可见)"),showClear:!0})})]})]}),r&&a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"green",className:"mr-2 shadow-md",children:a.jsx(EB,{size:16})}),a.jsxs("div",{children:[a.jsx(Wd,{className:"text-lg font-medium",children:t("权限设置")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("用户分组和额度管理")})]})]}),a.jsxs(Ge,{gutter:12,children:[a.jsx(_e,{span:24,children:a.jsx(M.Select,{field:"group",label:t("分组"),placeholder:t("请选择分组"),optionList:d,allowAdditions:!0,search:!0,rules:[{required:!0,message:t("请选择分组")}]})}),a.jsx(_e,{span:10,children:a.jsx(M.InputNumber,{field:"quota",label:t("剩余额度"),placeholder:t("请输入新的剩余额度"),step:5e5,extraText:uf(_.quota||0),rules:[{required:!0,message:t("请输入额度")}],style:{width:"100%"}})}),a.jsx(_e,{span:14,children:a.jsx(M.Slot,{label:t("添加额度"),children:a.jsx(X,{icon:a.jsx(Ph,{}),onClick:()=>o(!0)})})})]})]}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"purple",className:"mr-2 shadow-md",children:a.jsx(qv,{size:16})}),a.jsxs("div",{children:[a.jsx(Wd,{className:"text-lg font-medium",children:t("绑定信息")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("第三方账户绑定状态(只读)")})]})]}),a.jsx(Ge,{gutter:12,children:["github_id","oidc_id","wechat_id","email","telegram_id"].map(j=>a.jsx(_e,{span:24,children:a.jsx(M.Input,{field:j,label:t(`已绑定的 ${j.replace("_id","").toUpperCase()} 账户`),readonly:!0,placeholder:t("此项只读,需要用户通过个人设置页面的相关绑定按钮进行绑定,不可直接修改")})},j))})]})]})})})}),a.jsxs(Je,{centered:!0,visible:s,onOk:()=>{E(),o(!1)},onCancel:()=>o(!1),closable:null,title:a.jsxs("div",{className:"flex items-center",children:[a.jsx(Ph,{className:"mr-2"}),t("添加额度")]}),children:[a.jsx("div",{className:"mb-4",children:(()=>{var j;const _=((j=f.current)==null?void 0:j.getValue("quota"))||0;return a.jsx(Wd,{type:"secondary",className:"block mb-2",children:`${t("新额度:")}${Tt(_)} + ${Tt(l)} = ${Tt(_+parseInt(l||0))}`})})()}),a.jsx(ga,{placeholder:t("需要添加的额度(支持负数)"),value:l,onChange:u,style:{width:"100%"},showClear:!0,step:5e5})]})]})};function Ra(e="global"){const[t,r]=m.useState(()=>pT(e)),n=m.useCallback(i=>{r(i),mT(i,e)},[e]);return m.useEffect(()=>{const i=s=>{if(s.key===h6)try{const o=JSON.parse(s.newValue||"{}");r(!!o[e])}catch{}};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[e]),[t,n]}const{Text:vce}=Ie,wce=()=>{const{t:e}=Ze(),[t,r]=Ra("users");function n(G){switch(G){case 1:return a.jsx(ye,{color:"blue",shape:"circle",prefixIcon:a.jsx(Mg,{size:14}),children:e("普通用户")});case 10:return a.jsx(ye,{color:"yellow",shape:"circle",prefixIcon:a.jsx(Zh,{size:14}),children:e("管理员")});case 100:return a.jsx(ye,{color:"orange",shape:"circle",prefixIcon:a.jsx(voe,{size:14}),children:e("超级管理员")});default:return a.jsx(ye,{color:"red",shape:"circle",prefixIcon:a.jsx(_i,{size:14}),children:e("未知身份")})}}const i=G=>{switch(G){case 1:return a.jsx(ye,{color:"green",shape:"circle",prefixIcon:a.jsx(Sl,{size:14}),children:e("已激活")});case 2:return a.jsx(ye,{color:"red",shape:"circle",prefixIcon:a.jsx(sf,{size:14}),children:e("已封禁")});default:return a.jsx(ye,{color:"grey",shape:"circle",prefixIcon:a.jsx(_i,{size:14}),children:e("未知状态")})}},s=[{title:"ID",dataIndex:"id"},{title:e("用户名"),dataIndex:"username",render:(G,N)=>{const I=N.remark;if(!I)return a.jsx("span",{children:G});const T=10,J=I.length>T?I.slice(0,T)+"…":I;return a.jsxs(pt,{spacing:2,children:[a.jsx("span",{children:G}),a.jsx(Gt,{content:I,position:"top",showArrow:!0,children:a.jsx(ye,{color:"white",shape:"circle",className:"!text-xs",children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("div",{className:"w-2 h-2 flex-shrink-0 rounded-full",style:{backgroundColor:"#10b981"}}),J]})})})]})}},{title:e("分组"),dataIndex:"group",render:(G,N,I)=>a.jsx("div",{children:R1(G)})},{title:e("统计信息"),dataIndex:"info",render:(G,N,I)=>a.jsx("div",{children:a.jsxs(pt,{spacing:1,children:[a.jsxs(ye,{color:"white",shape:"circle",className:"!text-xs",prefixIcon:a.jsx(r4,{size:14}),children:[e("剩余"),": ",Tt(N.quota)]}),a.jsxs(ye,{color:"white",shape:"circle",className:"!text-xs",prefixIcon:a.jsx(r4,{size:14}),children:[e("已用"),": ",Tt(N.used_quota)]}),a.jsxs(ye,{color:"white",shape:"circle",className:"!text-xs",prefixIcon:a.jsx(qS,{size:14}),children:[e("调用"),": ",z1(N.request_count)]})]})})},{title:e("邀请信息"),dataIndex:"invite",render:(G,N,I)=>a.jsx("div",{children:a.jsxs(pt,{spacing:1,children:[a.jsxs(ye,{color:"white",shape:"circle",className:"!text-xs",prefixIcon:a.jsx(Xh,{size:14}),children:[e("邀请"),": ",z1(N.aff_count)]}),a.jsxs(ye,{color:"white",shape:"circle",className:"!text-xs",prefixIcon:a.jsx(Coe,{size:14}),children:[e("收益"),": ",Tt(N.aff_history_quota)]}),a.jsx(ye,{color:"white",shape:"circle",className:"!text-xs",prefixIcon:a.jsx(sF,{size:14}),children:N.inviter_id===0?e("无邀请人"):`邀请人: ${N.inviter_id}`})]})})},{title:e("角色"),dataIndex:"role",render:(G,N,I)=>a.jsx("div",{children:n(G)})},{title:e("状态"),dataIndex:"status",render:(G,N,I)=>a.jsx("div",{children:N.DeletedAt!==null?a.jsx(ye,{color:"red",shape:"circle",prefixIcon:a.jsx(ale,{size:14}),children:e("已注销")}):i(G)})},{title:"",dataIndex:"operate",fixed:"right",render:(G,N,I)=>{if(N.DeletedAt!==null)return a.jsx(a.Fragment,{});const T=[{node:"item",name:e("提升"),type:"warning",onClick:()=>{Je.confirm({title:e("确定要提升此用户吗?"),content:e("此操作将提升用户的权限级别"),onOk:()=>{B(N.id,"promote",N)}})}},{node:"item",name:e("降级"),type:"secondary",onClick:()=>{Je.confirm({title:e("确定要降级此用户吗?"),content:e("此操作将降低用户的权限级别"),onOk:()=>{B(N.id,"demote",N)}})}},{node:"item",name:e("注销"),type:"danger",onClick:()=>{Je.confirm({title:e("确定是否要注销此用户?"),content:e("相当于删除用户,此修改将不可逆"),onOk:()=>{(async()=>(await B(N.id,"delete",N),await V(),setTimeout(()=>{o.length===0&&d>1&&V(d-1)},100)))()}})}}];return N.status===1?T.splice(-1,0,{node:"item",name:e("禁用"),type:"warning",onClick:()=>{B(N.id,"disable",N)}}):T.splice(-1,0,{node:"item",name:e("启用"),type:"secondary",onClick:()=>{B(N.id,"enable",N)},disabled:N.status===3}),a.jsxs(pt,{children:[a.jsx(X,{type:"tertiary",size:"small",onClick:()=>{W(N),k(!0)},children:e("编辑")}),a.jsx(er,{trigger:"click",position:"bottomRight",menu:T,children:a.jsx(X,{type:"tertiary",size:"small",icon:a.jsx(t6,{})})})]})}}],[o,l]=m.useState([]),[u,c]=m.useState(!0),[d,h]=m.useState(1),[f,p]=m.useState(un),[g,y]=m.useState(!1),[b,x]=m.useState([]),[v,E]=m.useState(un),[_,j]=m.useState(!1),[F,k]=m.useState(!1),[U,W]=m.useState({id:void 0}),K={searchKeyword:"",searchGroup:""},[$,O]=m.useState(null),R=()=>{const G=$?$.getValues():{};return{searchKeyword:G.searchKeyword||"",searchGroup:G.searchGroup||""}},z=G=>{for(let N=0;N<G.length;N++)G[N].key=G[N].id;l(G)},H=async(G,N)=>{const I=await Se.get(`/api/user/?p=${G}&page_size=${N}`),{success:T,message:J,data:ve}=I.data;if(T){const Z=ve.items;h(ve.page),E(ve.total),z(Z)}else q(J);c(!1)};m.useEffect(()=>{H(0,f).then().catch(G=>{q(G)}),te().then()},[]);const B=async(G,N,I)=>{const T=await Se.post("/api/user/manage",{id:G,action:N}),{success:J,message:ve}=T.data;if(J){Pe("操作成功完成!");let Z=T.data.data,ge=[...o];N==="delete"||(I.status=Z.status,I.role=Z.role),l(ge)}else q(ve)},Y=async(G,N,I=null,T=null)=>{if(I===null||T===null){const De=R();I=De.searchKeyword,T=De.searchGroup}if(I===""&&T===""){await H(G,N);return}y(!0);const J=await Se.get(`/api/user/search?keyword=${I}&group=${T}&p=${G}&page_size=${N}`),{success:ve,message:Z,data:ge}=J.data;if(ve){const De=ge.items;h(ge.page),E(ge.total),z(De)}else q(Z);y(!1)},P=G=>{h(G);const{searchKeyword:N,searchGroup:I}=R();N===""&&I===""?H(G,f).then():Y(G,f,N,I).then()},le=()=>{j(!1)},be=()=>{k(!1),W({id:void 0})},V=async(G=d)=>{const{searchKeyword:N,searchGroup:I}=R();N===""&&I===""?await H(G,f):await Y(G,f,N,I)},te=async()=>{try{let G=await Se.get("/api/group/");if(G===void 0)return;x(G.data.data.map(N=>({label:N,value:N})))}catch(G){q(G.message)}},de=async G=>{localStorage.setItem("page-size",G+""),p(G),h(1),H(d,G).then().catch(N=>{q(N)})},ee=(G,N)=>G.DeletedAt!==null||G.status!==1?{style:{background:"var(--semi-color-disabled-border)"}}:{},ie=()=>a.jsxs("div",{className:"flex flex-col w-full",children:[a.jsx("div",{className:"mb-2",children:a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full",children:[a.jsxs("div",{className:"flex items-center text-blue-500",children:[a.jsx(Hv,{className:"mr-2"}),a.jsx(vce,{children:e("用户管理页面,可以查看和管理所有注册用户的信息、权限和状态。")})]}),a.jsx(X,{type:"tertiary",className:"w-full md:w-auto",onClick:()=>r(!t),size:"small",children:e(t?"自适应列表":"紧凑列表")})]})}),a.jsx(Ar,{margin:"12px"}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 w-full",children:[a.jsx("div",{className:"flex gap-2 w-full md:w-auto order-2 md:order-1",children:a.jsx(X,{className:"w-full md:w-auto",onClick:()=>{j(!0)},size:"small",children:e("添加用户")})}),a.jsx(M,{initValues:K,getFormApi:G=>O(G),onSubmit:()=>{h(1),Y(1,f)},allowEmpty:!0,autoComplete:"off",layout:"horizontal",trigger:"change",stopValidateWithError:!1,className:"w-full md:w-auto order-1 md:order-2",children:a.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-4 w-full md:w-auto",children:[a.jsx("div",{className:"relative w-full md:w-64",children:a.jsx(M.Input,{field:"searchKeyword",prefix:a.jsx(Cr,{}),placeholder:e("支持搜索用户的 ID、用户名、显示名称和邮箱地址"),showClear:!0,pure:!0,size:"small"})}),a.jsx("div",{className:"w-full md:w-48",children:a.jsx(M.Select,{field:"searchGroup",placeholder:e("选择分组"),optionList:b,onChange:G=>{setTimeout(()=>{h(1),Y(1,f)},100)},className:"w-full",showClear:!0,pure:!0,size:"small"})}),a.jsxs("div",{className:"flex gap-2 w-full md:w-auto",children:[a.jsx(X,{type:"tertiary",htmlType:"submit",loading:u||g,className:"flex-1 md:flex-initial md:w-auto",size:"small",children:e("查询")}),a.jsx(X,{type:"tertiary",onClick:()=>{$&&($.reset(),setTimeout(()=>{h(1),H(1,f)},100))},className:"flex-1 md:flex-initial md:w-auto",size:"small",children:e("重置")})]})]})})]})]});return a.jsxs(a.Fragment,{children:[a.jsx(bce,{refresh:V,visible:_,handleClose:le}),a.jsx(o4,{refresh:V,visible:F,handleClose:be,editingUser:U}),a.jsx(Le,{className:"!rounded-2xl",title:ie(),shadows:"always",bordered:!1,children:a.jsx(Mr,{columns:t?s.map(({fixed:G,...N})=>N):s,dataSource:o,scroll:t?void 0:{x:"max-content"},pagination:{formatPageText:G=>e("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:G.currentStart,end:G.currentEnd,total:v}),currentPage:d,pageSize:f,total:v,pageSizeOpts:[10,20,50,100],showSizeChanger:!0,onPageSizeChange:G=>{de(G)},onPageChange:P},loading:u,onRow:ee,empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:e("搜索无结果"),style:{padding:30}}),className:"overflow-hidden",size:"middle"})})]})},Ece=()=>a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx(wce,{})}),uF=e=>{function t(){return a.jsxs("svg",{t:"1723135116886",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10969",width:"20",height:"20",children:[a.jsx("path",{d:"M512 960C265 960 64 759 64 512S265 64 512 64s448 201 448 448-201 448-448 448z m0-882.6c-239.7 0-434.6 195-434.6 434.6s195 434.6 434.6 434.6 434.6-195 434.6-434.6S751.7 77.4 512 77.4z","p-id":"10970",fill:"#2c2c2c",stroke:"#2c2c2c","stroke-width":"60"}),a.jsx("path",{d:"M197.7 512c0-78.3 31.6-98.8 87.2-98.8 56.2 0 87.2 20.5 87.2 98.8s-31 98.8-87.2 98.8c-55.7 0-87.2-20.5-87.2-98.8z m130.4 0c0-46.8-7.8-64.5-43.2-64.5-35.2 0-42.9 17.7-42.9 64.5 0 47.1 7.8 63.7 42.9 63.7 35.4 0 43.2-16.6 43.2-63.7zM409.7 415.9h42.1V608h-42.1V415.9zM653.9 512c0 74.2-37.1 96.1-93.6 96.1h-65.9V415.9h65.9c56.5 0 93.6 16.1 93.6 96.1z m-43.5 0c0-49.3-17.7-60.6-52.3-60.6h-21.6v120.7h21.6c35.4 0 52.3-13.3 52.3-60.1zM686.5 512c0-74.2 36.3-98.8 92.7-98.8 18.3 0 33.2 2.2 44.8 6.4v36.3c-11.9-4.2-26-6.6-42.1-6.6-34.6 0-49.8 15.5-49.8 62.6 0 50.1 15.2 62.6 49.3 62.6 15.8 0 30.2-2.2 44.8-7.5v36c-11.3 4.7-28.5 8-46.8 8-56.1-0.2-92.9-18.7-92.9-99z","p-id":"10971",fill:"#2c2c2c",stroke:"#2c2c2c","stroke-width":"20"})]})}return a.jsx(Q1,{svg:a.jsx(t,{})})},cF=e=>{function t(){return a.jsx("svg",{className:"icon",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",...e,children:a.jsxs("g",{id:"linuxdo_icon","data-name":"linuxdo_icon",children:[a.jsx("path",{d:"m7.44,0s.09,0,.13,0c.09,0,.19,0,.28,0,.14,0,.29,0,.43,0,.09,0,.18,0,.27,0q.12,0,.25,0t.26.08c.15.03.29.06.44.08,1.97.38,3.78,1.47,4.95,3.11.04.06.09.12.13.18.67.96,1.15,2.11,1.3,3.28q0,.19.09.26c0,.15,0,.29,0,.44,0,.04,0,.09,0,.13,0,.09,0,.19,0,.28,0,.14,0,.29,0,.43,0,.09,0,.18,0,.27,0,.08,0,.17,0,.25q0,.19-.08.26c-.03.15-.06.29-.08.44-.38,1.97-1.47,3.78-3.11,4.95-.06.04-.12.09-.18.13-.96.67-2.11,1.15-3.28,1.3q-.19,0-.26.09c-.15,0-.29,0-.44,0-.04,0-.09,0-.13,0-.09,0-.19,0-.28,0-.14,0-.29,0-.43,0-.09,0-.18,0-.27,0-.08,0-.17,0-.25,0q-.19,0-.26-.08c-.15-.03-.29-.06-.44-.08-1.97-.38-3.78-1.47-4.95-3.11q-.07-.09-.13-.18c-.67-.96-1.15-2.11-1.3-3.28q0-.19-.09-.26c0-.15,0-.29,0-.44,0-.04,0-.09,0-.13,0-.09,0-.19,0-.28,0-.14,0-.29,0-.43,0-.09,0-.18,0-.27,0-.08,0-.17,0-.25q0-.19.08-.26c.03-.15.06-.29.08-.44.38-1.97,1.47-3.78,3.11-4.95.06-.04.12-.09.18-.13C4.42.73,5.57.26,6.74.1,7,.07,7.15,0,7.44,0Z",fill:"#EFEFEF"}),a.jsx("path",{d:"m1.27,11.33h13.45c-.94,1.89-2.51,3.21-4.51,3.88-1.99.59-3.96.37-5.8-.57-1.25-.7-2.67-1.9-3.14-3.3Z",fill:"#FEB005"}),a.jsx("path",{d:"m12.54,1.99c.87.7,1.82,1.59,2.18,2.68H1.27c.87-1.74,2.33-3.13,4.2-3.78,2.44-.79,5-.47,7.07,1.1Z",fill:"#1D1D1F"})]})})}return a.jsx(Q1,{svg:a.jsx(t,{})})},dF=()=>{function e(){return a.jsxs("svg",{t:"1709714447384",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5091",width:"20",height:"20",children:[a.jsx("path",{d:"M690.1 377.4c5.9 0 11.8 0.2 17.6 0.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6 5.5 3.9 9.1 10.3 9.1 17.6 0 2.4-0.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-0.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-0.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4 0.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-0.1 17.8-0.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8z m-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1z m-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1z","p-id":"5092"}),a.jsx("path",{d:"M866.7 792.7c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-0.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7 2.4 0 4.7-0.9 6.4-2.6 1.7-1.7 2.6-4 2.6-6.4 0-2.2-0.9-4.4-1.4-6.6-0.3-1.2-7.6-28.3-12.2-45.3-0.5-1.9-0.9-3.8-0.9-5.7 0.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9z m179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c-0.1 19.8-16.2 35.9-36 35.9z","p-id":"5093"})]})}return a.jsx("div",{children:a.jsx(Q1,{svg:a.jsx(e,{})})})};class $g extends Bt.Component{constructor(t){super(t)}componentDidMount(){const{botName:t,buttonSize:r,cornerRadius:n,requestAccess:i,usePic:s,dataOnauth:o,dataAuthUrl:l,lang:u}=this.props;window.TelegramLoginWidget={dataOnauth:d=>o(d)};const c=document.createElement("script");c.src="https://telegram.org/js/telegram-widget.js?9",c.setAttribute("data-telegram-login",t),c.setAttribute("data-size",r),n!==void 0&&c.setAttribute("data-radius",n),c.setAttribute("data-request-access",i),c.setAttribute("data-userpic",s),c.setAttribute("data-lang",u),l!==void 0?c.setAttribute("data-auth-url",l):c.setAttribute("data-onauth","TelegramLoginWidget.dataOnauth(user)"),c.async=!0,this.instance.appendChild(c)}render(){return a.jsx("div",{className:this.props.className,ref:t=>{this.instance=t},children:this.props.children})}}$g.propTypes={botName:Ns.string.isRequired,dataOnauth:Ns.func,buttonSize:Ns.oneOf(["large","medium","small"]),cornerRadius:Ns.number,requestAccess:Ns.string,usePic:Ns.bool,lang:Ns.string};$g.defaultProps={botName:"samplebot",dataOnauth:()=>{},buttonSize:"large",requestAccess:"write",usePic:!0,lang:"en"};const Cce=()=>{let e=go();const{t}=Ze(),[r,n]=m.useState({username:"",password:"",password2:"",email:"",verification_code:"",wechat_verification_code:""}),{username:i,password:s,password2:o}=r,[l,u]=m.useContext(Xi),[c,d]=m.useState(!1),[h,f]=m.useState(""),[p,g]=m.useState(""),[y,b]=m.useState(!1),[x,v]=m.useState(!1),[E,_]=m.useState(!1),[j,F]=m.useState(!1),[k,U]=m.useState(!1),[W,K]=m.useState(!1),[$,O]=m.useState(!1),[R,z]=m.useState(!1),[H,B]=m.useState(!1),[Y,P]=m.useState(!1),[le,be]=m.useState(!1),V=Sa(),te=yo();let de=new URLSearchParams(window.location.search).get("aff");de&&localStorage.setItem("aff",de);const[ee]=m.useState(()=>{const Ae=localStorage.getItem("status");return Ae?JSON.parse(Ae):{}}),[ie,G]=m.useState(()=>ee.email_verification??!1);m.useEffect(()=>{G(ee.email_verification),ee.turnstile_check&&(d(!0),f(ee.turnstile_site_key))},[ee]);const N=()=>{_(!0),b(!0),_(!1)},I=async()=>{if(c&&p===""){nr("请稍后几秒重试,Turnstile 正在检查用户环境!");return}be(!0);try{const Ae=await Se.get(`/api/oauth/wechat?code=${r.wechat_verification_code}`),{success:Q,message:he,data:se}=Ae.data;Q?(u({type:"login",payload:se}),localStorage.setItem("user",JSON.stringify(se)),ul(se),nl(),e("/"),Pe("登录成功!"),b(!1)):q(he)}catch{q("登录失败,请重试")}finally{be(!1)}};function T(Ae,Q){n(he=>({...he,[Ae]:Q}))}async function J(Ae){if(s.length<8){nr("密码长度不得小于 8 位!");return}if(s!==o){nr("两次输入的密码不一致");return}if(i&&s){if(c&&p===""){nr("请稍后几秒重试,Turnstile 正在检查用户环境!");return}z(!0);try{de||(de=localStorage.getItem("aff")),r.aff_code=de;const Q=await Se.post(`/api/user/register?turnstile=${p}`,r),{success:he,message:se}=Q.data;he?(e("/login"),Pe("注册成功!")):q(se)}catch{q("注册失败,请重试")}finally{z(!1)}}}const ve=async()=>{if(r.email!==""){if(c&&p===""){nr("请稍后几秒重试,Turnstile 正在检查用户环境!");return}B(!0);try{const Ae=await Se.get(`/api/verification?email=${r.email}&turnstile=${p}`),{success:Q,message:he}=Ae.data;Q?Pe("验证码发送成功,请检查你的邮箱!"):q(he)}catch{q("发送验证码失败,请重试")}finally{B(!1)}}},Z=()=>{F(!0);try{m6(ee.github_client_id)}finally{setTimeout(()=>F(!1),3e3)}},ge=()=>{U(!0);try{p6(ee.oidc_authorization_endpoint,ee.oidc_client_id)}finally{setTimeout(()=>U(!1),3e3)}},De=()=>{K(!0);try{g6(ee.linuxdo_client_id)}finally{setTimeout(()=>K(!1),3e3)}},Oe=()=>{O(!0),v(!0),O(!1)},ae=()=>{P(!0),v(!1),P(!1)},we=async Ae=>{const Q=["id","first_name","last_name","username","photo_url","auth_date","hash","lang"],he={};Q.forEach(se=>{Ae[se]&&(he[se]=Ae[se])});try{const se=await Se.get("/api/oauth/telegram/login",{params:he}),{success:D,message:ce,data:Ce}=se.data;D?(u({type:"login",payload:Ce}),localStorage.setItem("user",JSON.stringify(Ce)),Pe("登录成功!"),ul(Ce),nl(),e("/")):q(ce)}catch{q("登录失败,请重试")}},ne=()=>a.jsx("div",{className:"flex flex-col items-center",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"flex items-center justify-center mb-6 gap-2",children:[a.jsx("img",{src:V,alt:"Logo",className:"h-10 rounded-full"}),a.jsx(ts,{heading:3,className:"!text-gray-800",children:te})]}),a.jsxs(Le,{className:"shadow-xl border-0 !rounded-2xl overflow-hidden",children:[a.jsx("div",{className:"flex justify-center pt-6 pb-2",children:a.jsx(ts,{heading:3,className:"text-gray-800 dark:text-gray-200",children:t("注 册")})}),a.jsxs("div",{className:"px-2 py-8",children:[a.jsxs("div",{className:"space-y-3",children:[ee.wechat_login&&a.jsx(X,{theme:"outline",className:"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors",type:"tertiary",icon:a.jsx(Q1,{svg:a.jsx(dF,{}),style:{color:"#07C160"}}),size:"large",onClick:N,loading:E,children:a.jsx("span",{className:"ml-3",children:t("使用 微信 继续")})}),ee.github_oauth&&a.jsx(X,{theme:"outline",className:"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors",type:"tertiary",icon:a.jsx(r6,{size:"large"}),size:"large",onClick:Z,loading:j,children:a.jsx("span",{className:"ml-3",children:t("使用 GitHub 继续")})}),ee.oidc_enabled&&a.jsx(X,{theme:"outline",className:"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors",type:"tertiary",icon:a.jsx(uF,{style:{color:"#1877F2"}}),size:"large",onClick:ge,loading:k,children:a.jsx("span",{className:"ml-3",children:t("使用 OIDC 继续")})}),ee.linuxdo_oauth&&a.jsx(X,{theme:"outline",className:"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors",type:"tertiary",icon:a.jsx(cF,{style:{color:"#E95420",width:"20px",height:"20px"}}),size:"large",onClick:De,loading:W,children:a.jsx("span",{className:"ml-3",children:t("使用 LinuxDO 继续")})}),ee.telegram_oauth&&a.jsx("div",{className:"flex justify-center my-2",children:a.jsx($g,{dataOnauth:we,botName:ee.telegram_bot_name})}),a.jsx(Ar,{margin:"12px",align:"center",children:t("或")}),a.jsx(X,{theme:"solid",type:"primary",className:"w-full h-12 flex items-center justify-center bg-black text-white !rounded-full hover:bg-gray-800 transition-colors",icon:a.jsx(Si,{size:"large"}),size:"large",onClick:Oe,loading:$,children:a.jsx("span",{className:"ml-3",children:t("使用 用户名 注册")})})]}),a.jsx("div",{className:"mt-6 text-center text-sm",children:a.jsxs(Ca,{children:[t("已有账户?")," ",a.jsx(ji,{to:"/login",className:"text-blue-600 hover:text-blue-800 font-medium",children:t("登录")})]})})]})]})]})}),ke=()=>a.jsx("div",{className:"flex flex-col items-center",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"flex items-center justify-center mb-6 gap-2",children:[a.jsx("img",{src:V,alt:"Logo",className:"h-10 rounded-full"}),a.jsx(ts,{heading:3,className:"!text-gray-800",children:te})]}),a.jsxs(Le,{className:"shadow-xl border-0 !rounded-2xl overflow-hidden",children:[a.jsx("div",{className:"flex justify-center pt-6 pb-2",children:a.jsx(ts,{heading:3,className:"text-gray-800 dark:text-gray-200",children:t("注 册")})}),a.jsxs("div",{className:"px-2 py-8",children:[a.jsxs(M,{className:"space-y-3",children:[a.jsx(M.Input,{field:"username",label:t("用户名"),placeholder:t("请输入用户名"),name:"username",size:"large",onChange:Ae=>T("username",Ae),prefix:a.jsx(Js,{})}),a.jsx(M.Input,{field:"password",label:t("密码"),placeholder:t("输入密码,最短 8 位,最长 20 位"),name:"password",mode:"password",size:"large",onChange:Ae=>T("password",Ae),prefix:a.jsx(oi,{})}),a.jsx(M.Input,{field:"password2",label:t("确认密码"),placeholder:t("确认密码"),name:"password2",mode:"password",size:"large",onChange:Ae=>T("password2",Ae),prefix:a.jsx(oi,{})}),ie&&a.jsxs(a.Fragment,{children:[a.jsx(M.Input,{field:"email",label:t("邮箱"),placeholder:t("输入邮箱地址"),name:"email",type:"email",size:"large",onChange:Ae=>T("email",Ae),prefix:a.jsx(Si,{}),suffix:a.jsx(X,{onClick:ve,loading:H,size:"small",children:t("获取验证码")})}),a.jsx(M.Input,{field:"verification_code",label:t("验证码"),placeholder:t("输入验证码"),name:"verification_code",size:"large",onChange:Ae=>T("verification_code",Ae),prefix:a.jsx(pa,{})})]}),a.jsx("div",{className:"space-y-2 pt-2",children:a.jsx(X,{theme:"solid",className:"w-full !rounded-full",type:"primary",htmlType:"submit",size:"large",onClick:J,loading:R,children:t("注册")})})]}),(ee.github_oauth||ee.oidc_enabled||ee.wechat_login||ee.linuxdo_oauth||ee.telegram_oauth)&&a.jsxs(a.Fragment,{children:[a.jsx(Ar,{margin:"12px",align:"center",children:t("或")}),a.jsx("div",{className:"mt-4 text-center",children:a.jsx(X,{theme:"outline",type:"tertiary",className:"w-full !rounded-full",size:"large",onClick:ae,loading:Y,children:t("其他注册选项")})})]}),a.jsx("div",{className:"mt-6 text-center text-sm",children:a.jsxs(Ca,{children:[t("已有账户?")," ",a.jsx(ji,{to:"/login",className:"text-blue-600 hover:text-blue-800 font-medium",children:t("登录")})]})})]})]})]})}),Be=()=>a.jsxs(Je,{title:t("微信扫码登录"),visible:y,maskClosable:!0,onOk:I,onCancel:()=>b(!1),okText:t("登录"),size:"small",centered:!0,okButtonProps:{loading:le},children:[a.jsx("div",{className:"flex flex-col items-center",children:a.jsx("img",{src:ee.wechat_qrcode,alt:"微信二维码",className:"mb-4"})}),a.jsx("div",{className:"text-center mb-4",children:a.jsx("p",{children:t("微信扫码关注公众号,输入「验证码」获取验证码(三分钟内有效)")})}),a.jsx(M,{size:"large",children:a.jsx(M.Input,{field:"wechat_verification_code",placeholder:t("验证码"),label:t("验证码"),value:r.wechat_verification_code,onChange:Ae=>T("wechat_verification_code",Ae)})})]});return a.jsxs("div",{className:"relative overflow-hidden bg-gray-100 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:[a.jsx("div",{className:"blur-ball blur-ball-indigo",style:{top:"-80px",right:"-80px",transform:"none"}}),a.jsx("div",{className:"blur-ball blur-ball-teal",style:{top:"50%",left:"-120px"}}),a.jsxs("div",{className:"w-full max-w-sm mt-[64px]",children:[x||!(ee.github_oauth||ee.oidc_enabled||ee.wechat_login||ee.linuxdo_oauth||ee.telegram_oauth)?ke():ne(),Be(),c&&a.jsx("div",{className:"flex justify-center mt-6",children:a.jsx(tl,{sitekey:h,onVerify:Ae=>{g(Ae)}})})]})]})},Sce=()=>{let e=go();const{t}=Ze(),[r,n]=m.useState({username:"",password:"",wechat_verification_code:""}),{username:i,password:s}=r,[o,l]=$2(),[u,c]=m.useState(!1),[d,h]=m.useContext(Xi),[f,p]=m.useState(!1),[g,y]=m.useState(""),[b,x]=m.useState(""),[v,E]=m.useState(!1),[_,j]=m.useState(!1),[F,k]=m.useState(!1),[U,W]=m.useState(!1),[K,$]=m.useState(!1),[O,R]=m.useState(!1),[z,H]=m.useState(!1),[B,Y]=m.useState(!1),[P,le]=m.useState(!1),[be,V]=m.useState(!1),[te,de]=m.useState(!1),ee=Sa(),ie=yo();let G=new URLSearchParams(window.location.search).get("aff");G&&localStorage.setItem("aff",G);const[N]=m.useState(()=>{const Q=localStorage.getItem("status");return Q?JSON.parse(Q):{}});m.useEffect(()=>{N.turnstile_check&&(p(!0),y(N.turnstile_site_key))},[N]),m.useEffect(()=>{o.get("expired")&&q(t("未登录或登录已过期,请重新登录"))},[]);const I=()=>{k(!0),E(!0),k(!1)},T=async()=>{if(f&&b===""){nr("请稍后几秒重试,Turnstile 正在检查用户环境!");return}de(!0);try{const Q=await Se.get(`/api/oauth/wechat?code=${r.wechat_verification_code}`),{success:he,message:se,data:D}=Q.data;he?(h({type:"login",payload:D}),localStorage.setItem("user",JSON.stringify(D)),ul(D),nl(),e("/"),Pe("登录成功!"),E(!1)):q(se)}catch{q("登录失败,请重试")}finally{de(!1)}};function J(Q,he){n(se=>({...se,[Q]:he}))}async function ve(Q){if(f&&b===""){nr("请稍后几秒重试,Turnstile 正在检查用户环境!");return}c(!0),Y(!0);try{if(i&&s){const he=await Se.post(`/api/user/login?turnstile=${b}`,{username:i,password:s}),{success:se,message:D,data:ce}=he.data;se?(h({type:"login",payload:ce}),ul(ce),nl(),Pe("登录成功!"),i==="root"&&s==="123456"&&Je.error({title:"您正在使用默认密码!",content:"请立刻修改默认密码!",centered:!0}),e("/console")):q(D)}else q("请输入用户名和密码!")}catch{q("登录失败,请重试")}finally{Y(!1)}}const Z=async Q=>{const he=["id","first_name","last_name","username","photo_url","auth_date","hash","lang"],se={};he.forEach(D=>{Q[D]&&(se[D]=Q[D])});try{const D=await Se.get("/api/oauth/telegram/login",{params:se}),{success:ce,message:Ce,data:Te}=D.data;ce?(h({type:"login",payload:Te}),localStorage.setItem("user",JSON.stringify(Te)),Pe("登录成功!"),ul(Te),nl(),e("/")):q(Ce)}catch{q("登录失败,请重试")}},ge=()=>{W(!0);try{m6(N.github_client_id)}finally{setTimeout(()=>W(!1),3e3)}},De=()=>{$(!0);try{p6(N.oidc_authorization_endpoint,N.oidc_client_id)}finally{setTimeout(()=>$(!1),3e3)}},Oe=()=>{R(!0);try{g6(N.linuxdo_client_id)}finally{setTimeout(()=>R(!1),3e3)}},ae=()=>{H(!0),j(!0),H(!1)},we=()=>{le(!0),e("/reset"),le(!1)},ne=()=>{V(!0),j(!1),V(!1)},ke=()=>a.jsx("div",{className:"flex flex-col items-center",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"flex items-center justify-center mb-6 gap-2",children:[a.jsx("img",{src:ee,alt:"Logo",className:"h-10 rounded-full"}),a.jsx(ts,{heading:3,className:"!text-gray-800",children:ie})]}),a.jsxs(Le,{className:"shadow-xl border-0 !rounded-2xl overflow-hidden",children:[a.jsx("div",{className:"flex justify-center pt-6 pb-2",children:a.jsx(ts,{heading:3,className:"text-gray-800 dark:text-gray-200",children:t("登 录")})}),a.jsxs("div",{className:"px-2 py-8",children:[a.jsxs("div",{className:"space-y-3",children:[N.wechat_login&&a.jsx(X,{theme:"outline",className:"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors",type:"tertiary",icon:a.jsx(Q1,{svg:a.jsx(dF,{}),style:{color:"#07C160"}}),size:"large",onClick:I,loading:F,children:a.jsx("span",{className:"ml-3",children:t("使用 微信 继续")})}),N.github_oauth&&a.jsx(X,{theme:"outline",className:"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors",type:"tertiary",icon:a.jsx(r6,{size:"large"}),size:"large",onClick:ge,loading:U,children:a.jsx("span",{className:"ml-3",children:t("使用 GitHub 继续")})}),N.oidc_enabled&&a.jsx(X,{theme:"outline",className:"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors",type:"tertiary",icon:a.jsx(uF,{style:{color:"#1877F2"}}),size:"large",onClick:De,loading:K,children:a.jsx("span",{className:"ml-3",children:t("使用 OIDC 继续")})}),N.linuxdo_oauth&&a.jsx(X,{theme:"outline",className:"w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors",type:"tertiary",icon:a.jsx(cF,{style:{color:"#E95420",width:"20px",height:"20px"}}),size:"large",onClick:Oe,loading:O,children:a.jsx("span",{className:"ml-3",children:t("使用 LinuxDO 继续")})}),N.telegram_oauth&&a.jsx("div",{className:"flex justify-center my-2",children:a.jsx(Zv,{dataOnauth:Z,botName:N.telegram_bot_name})}),a.jsx(Ar,{margin:"12px",align:"center",children:t("或")}),a.jsx(X,{theme:"solid",type:"primary",className:"w-full h-12 flex items-center justify-center bg-black text-white !rounded-full hover:bg-gray-800 transition-colors",icon:a.jsx(Si,{size:"large"}),size:"large",onClick:ae,loading:z,children:a.jsx("span",{className:"ml-3",children:t("使用 邮箱或用户名 登录")})})]}),!N.self_use_mode_enabled&&a.jsx("div",{className:"mt-6 text-center text-sm",children:a.jsxs(Ca,{children:[t("没有账户?")," ",a.jsx(ji,{to:"/register",className:"text-blue-600 hover:text-blue-800 font-medium",children:t("注册")})]})})]})]})]})}),Be=()=>a.jsx("div",{className:"flex flex-col items-center",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"flex items-center justify-center mb-6 gap-2",children:[a.jsx("img",{src:ee,alt:"Logo",className:"h-10 rounded-full"}),a.jsx(ts,{heading:3,children:ie})]}),a.jsxs(Le,{className:"shadow-xl border-0 !rounded-2xl overflow-hidden",children:[a.jsx("div",{className:"flex justify-center pt-6 pb-2",children:a.jsx(ts,{heading:3,className:"text-gray-800 dark:text-gray-200",children:t("登 录")})}),a.jsxs("div",{className:"px-2 py-8",children:[a.jsxs(M,{className:"space-y-3",children:[a.jsx(M.Input,{field:"username",label:t("用户名或邮箱"),placeholder:t("请输入您的用户名或邮箱地址"),name:"username",size:"large",onChange:Q=>J("username",Q),prefix:a.jsx(Si,{})}),a.jsx(M.Input,{field:"password",label:t("密码"),placeholder:t("请输入您的密码"),name:"password",mode:"password",size:"large",onChange:Q=>J("password",Q),prefix:a.jsx(oi,{})}),a.jsxs("div",{className:"space-y-2 pt-2",children:[a.jsx(X,{theme:"solid",className:"w-full !rounded-full",type:"primary",htmlType:"submit",size:"large",onClick:ve,loading:B,children:t("继续")}),a.jsx(X,{theme:"borderless",type:"tertiary",className:"w-full !rounded-full",size:"large",onClick:we,loading:P,children:t("忘记密码?")})]})]}),(N.github_oauth||N.oidc_enabled||N.wechat_login||N.linuxdo_oauth||N.telegram_oauth)&&a.jsxs(a.Fragment,{children:[a.jsx(Ar,{margin:"12px",align:"center",children:t("或")}),a.jsx("div",{className:"mt-4 text-center",children:a.jsx(X,{theme:"outline",type:"tertiary",className:"w-full !rounded-full",size:"large",onClick:ne,loading:be,children:t("其他登录选项")})})]}),!N.self_use_mode_enabled&&a.jsx("div",{className:"mt-6 text-center text-sm",children:a.jsxs(Ca,{children:[t("没有账户?")," ",a.jsx(ji,{to:"/register",className:"text-blue-600 hover:text-blue-800 font-medium",children:t("注册")})]})})]})]})]})}),Ae=()=>a.jsxs(Je,{title:t("微信扫码登录"),visible:v,maskClosable:!0,onOk:T,onCancel:()=>E(!1),okText:t("登录"),size:"small",centered:!0,okButtonProps:{loading:te},children:[a.jsx("div",{className:"flex flex-col items-center",children:a.jsx("img",{src:N.wechat_qrcode,alt:"微信二维码",className:"mb-4"})}),a.jsx("div",{className:"text-center mb-4",children:a.jsx("p",{children:t("微信扫码关注公众号,输入「验证码」获取验证码(三分钟内有效)")})}),a.jsx(M,{size:"large",children:a.jsx(M.Input,{field:"wechat_verification_code",placeholder:t("验证码"),label:t("验证码"),value:r.wechat_verification_code,onChange:Q=>J("wechat_verification_code",Q)})})]});return a.jsxs("div",{className:"relative overflow-hidden bg-gray-100 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:[a.jsx("div",{className:"blur-ball blur-ball-indigo",style:{top:"-80px",right:"-80px",transform:"none"}}),a.jsx("div",{className:"blur-ball blur-ball-teal",style:{top:"50%",left:"-120px"}}),a.jsxs("div",{className:"w-full max-w-sm mt-[64px]",children:[_||!(N.github_oauth||N.oidc_enabled||N.wechat_login||N.linuxdo_oauth||N.telegram_oauth)?Be():ke(),Ae(),f&&a.jsx("div",{className:"flex justify-center mt-6",children:a.jsx(tl,{sitekey:g,onVerify:Q=>{x(Q)}})})]})]})},Fce=()=>{const{t:e}=Ze();return a.jsx("div",{className:"flex justify-center items-center h-screen p-8 mt-[64px]",children:a.jsx(Rr,{image:a.jsx(hce,{style:{width:250,height:250}}),darkModeImage:a.jsx(sce,{style:{width:250,height:250}}),description:e("页面未找到,请检查您的浏览器地址是否正确")})})},{Text:Ti}=Ie,jce=()=>{const{t:e}=Ze();let[t,r]=m.useState({PasswordLoginEnabled:"",PasswordRegisterEnabled:"",EmailVerificationEnabled:"",GitHubOAuthEnabled:"",GitHubClientId:"",GitHubClientSecret:"","oidc.enabled":"","oidc.client_id":"","oidc.client_secret":"","oidc.well_known":"","oidc.authorization_endpoint":"","oidc.token_endpoint":"","oidc.user_info_endpoint":"",Notice:"",SMTPServer:"",SMTPPort:"",SMTPAccount:"",SMTPFrom:"",SMTPToken:"",WorkerUrl:"",WorkerValidKey:"",WorkerAllowHttpImageRequestEnabled:"",Footer:"",WeChatAuthEnabled:"",WeChatServerAddress:"",WeChatServerToken:"",WeChatAccountQRCodeImageURL:"",TurnstileCheckEnabled:"",TurnstileSiteKey:"",TurnstileSecretKey:"",RegisterEnabled:"",EmailDomainRestrictionEnabled:"",EmailAliasRestrictionEnabled:"",SMTPSSLEnabled:"",EmailDomainWhitelist:[],TelegramOAuthEnabled:"",TelegramBotToken:"",TelegramBotName:"",LinuxDOOAuthEnabled:"",LinuxDOClientId:"",LinuxDOClientSecret:"",ServerAddress:""});const[n,i]=m.useState({}),[s,o]=m.useState(!1),[l,u]=m.useState(!1),c=m.useRef(null),[d,h]=m.useState([]),[f,p]=m.useState(!1),[g,y]=m.useState(!1),[b,x]=m.useState(""),v=async()=>{o(!0);const P=await Se.get("/api/option/"),{success:le,message:be,data:V}=P.data;if(le){let te={};V.forEach(de=>{switch(de.key){case"TopupGroupRatio":de.value=JSON.stringify(JSON.parse(de.value),null,2);break;case"EmailDomainWhitelist":h(de.value?de.value.split(","):[]);break;case"PasswordLoginEnabled":case"PasswordRegisterEnabled":case"EmailVerificationEnabled":case"GitHubOAuthEnabled":case"WeChatAuthEnabled":case"TelegramOAuthEnabled":case"RegisterEnabled":case"TurnstileCheckEnabled":case"EmailDomainRestrictionEnabled":case"EmailAliasRestrictionEnabled":case"SMTPSSLEnabled":case"LinuxDOOAuthEnabled":case"oidc.enabled":case"WorkerAllowHttpImageRequestEnabled":de.value=La(de.value);break;case"Price":case"MinTopUp":de.value=parseFloat(de.value);break}te[de.key]=de.value}),r(te),i(te),c.current&&c.current.setValues(te),u(!0)}else q(be);o(!1)};m.useEffect(()=>{v()},[]);const E=async P=>{o(!0);try{const le=P.filter(te=>te.key.toLowerCase().endsWith("enabled")),be=P.filter(te=>!te.key.toLowerCase().endsWith("enabled"));for(const te of le){const de=await Se.put("/api/option/",{key:te.key,value:te.value.toString()});if(!de.data.success){q(de.data.message);return}}if(be.length>0){const te=be.map(ie=>Se.put("/api/option/",{key:ie.key,value:typeof ie.value=="boolean"?ie.value.toString():ie.value}));(await Promise.all(te)).filter(ie=>!ie.data.success).forEach(ie=>{q(ie.data.message)})}Pe(e("更新成功"));const V={...t};P.forEach(te=>{V[te.key]=te.value}),r(V)}catch{q(e("更新失败"))}o(!1)},_=P=>{r(P)},j=async()=>{let P=rl(t.WorkerUrl);const le=[{key:"WorkerUrl",value:P},{key:"WorkerAllowHttpImageRequestEnabled",value:t.WorkerAllowHttpImageRequestEnabled?"true":"false"}];(t.WorkerValidKey!==""||P==="")&&le.push({key:"WorkerValidKey",value:t.WorkerValidKey}),await E(le)},F=async()=>{let P=rl(t.ServerAddress);await E([{key:"ServerAddress",value:P}])},k=async()=>{const P=[];n.SMTPServer!==t.SMTPServer&&P.push({key:"SMTPServer",value:t.SMTPServer}),n.SMTPAccount!==t.SMTPAccount&&P.push({key:"SMTPAccount",value:t.SMTPAccount}),n.SMTPFrom!==t.SMTPFrom&&P.push({key:"SMTPFrom",value:t.SMTPFrom}),n.SMTPPort!==t.SMTPPort&&t.SMTPPort!==""&&P.push({key:"SMTPPort",value:t.SMTPPort}),n.SMTPToken!==t.SMTPToken&&t.SMTPToken!==""&&P.push({key:"SMTPToken",value:t.SMTPToken}),P.length>0&&await E(P)},U=async()=>{Array.isArray(d)?await E([{key:"EmailDomainWhitelist",value:d.join(",")}]):q(e("邮箱域名白名单格式不正确"))},W=()=>{if(b&&b.trim()!==""){const P=b.trim();if(!/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/.test(P)){q(e("邮箱域名格式不正确,请输入有效的域名,如 gmail.com"));return}if(d.includes(P)){q(e("该域名已存在于白名单中"));return}h([...d,P]),x(""),Pe(e("已添加到白名单"))}},K=async()=>{const P=[];n.WeChatServerAddress!==t.WeChatServerAddress&&P.push({key:"WeChatServerAddress",value:rl(t.WeChatServerAddress)}),n.WeChatAccountQRCodeImageURL!==t.WeChatAccountQRCodeImageURL&&P.push({key:"WeChatAccountQRCodeImageURL",value:t.WeChatAccountQRCodeImageURL}),n.WeChatServerToken!==t.WeChatServerToken&&t.WeChatServerToken!==""&&P.push({key:"WeChatServerToken",value:t.WeChatServerToken}),P.length>0&&await E(P)},$=async()=>{const P=[];n.GitHubClientId!==t.GitHubClientId&&P.push({key:"GitHubClientId",value:t.GitHubClientId}),n.GitHubClientSecret!==t.GitHubClientSecret&&t.GitHubClientSecret!==""&&P.push({key:"GitHubClientSecret",value:t.GitHubClientSecret}),P.length>0&&await E(P)},O=async()=>{if(t["oidc.well_known"]&&t["oidc.well_known"]!==""){if(!t["oidc.well_known"].startsWith("http://")&&!t["oidc.well_known"].startsWith("https://")){q(e("Well-Known URL 必须以 http:// 或 https:// 开头"));return}try{const le=await c6.create().get(t["oidc.well_known"]);t["oidc.authorization_endpoint"]=le.data.authorization_endpoint,t["oidc.token_endpoint"]=le.data.token_endpoint,t["oidc.user_info_endpoint"]=le.data.userinfo_endpoint,Pe(e("获取 OIDC 配置成功!"))}catch(le){console.error(le),q(e("获取 OIDC 配置失败,请检查网络状况和 Well-Known URL 是否正确"));return}}const P=[];n["oidc.well_known"]!==t["oidc.well_known"]&&P.push({key:"oidc.well_known",value:t["oidc.well_known"]}),n["oidc.client_id"]!==t["oidc.client_id"]&&P.push({key:"oidc.client_id",value:t["oidc.client_id"]}),n["oidc.client_secret"]!==t["oidc.client_secret"]&&t["oidc.client_secret"]!==""&&P.push({key:"oidc.client_secret",value:t["oidc.client_secret"]}),n["oidc.authorization_endpoint"]!==t["oidc.authorization_endpoint"]&&P.push({key:"oidc.authorization_endpoint",value:t["oidc.authorization_endpoint"]}),n["oidc.token_endpoint"]!==t["oidc.token_endpoint"]&&P.push({key:"oidc.token_endpoint",value:t["oidc.token_endpoint"]}),n["oidc.user_info_endpoint"]!==t["oidc.user_info_endpoint"]&&P.push({key:"oidc.user_info_endpoint",value:t["oidc.user_info_endpoint"]}),P.length>0&&await E(P)},R=async()=>{const P=[{key:"TelegramBotToken",value:t.TelegramBotToken},{key:"TelegramBotName",value:t.TelegramBotName}];await E(P)},z=async()=>{const P=[];n.TurnstileSiteKey!==t.TurnstileSiteKey&&P.push({key:"TurnstileSiteKey",value:t.TurnstileSiteKey}),n.TurnstileSecretKey!==t.TurnstileSecretKey&&t.TurnstileSecretKey!==""&&P.push({key:"TurnstileSecretKey",value:t.TurnstileSecretKey}),P.length>0&&await E(P)},H=async()=>{const P=[];n.LinuxDOClientId!==t.LinuxDOClientId&&P.push({key:"LinuxDOClientId",value:t.LinuxDOClientId}),n.LinuxDOClientSecret!==t.LinuxDOClientSecret&&t.LinuxDOClientSecret!==""&&P.push({key:"LinuxDOClientSecret",value:t.LinuxDOClientSecret}),P.length>0&&await E(P)},B=async(P,le)=>{const be=le.target.checked;P==="PasswordLoginEnabled"&&!be?p(!0):await E([{key:P,value:be}]),P==="LinuxDOOAuthEnabled"&&y(be)},Y=async()=>{await E([{key:"PasswordLoginEnabled",value:!1}]),p(!1)};return a.jsx("div",{children:l?a.jsx(M,{initValues:t,onValueChange:_,getFormApi:P=>c.current=P,children:({formState:P,values:le,formApi:be})=>a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px",marginTop:"10px"},children:[a.jsx(Le,{children:a.jsxs(M.Section,{text:e("通用设置"),children:[a.jsx(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:a.jsx(_e,{xs:24,sm:24,md:24,lg:24,xl:24,children:a.jsx(M.Input,{field:"ServerAddress",label:e("服务器地址"),placeholder:"https://yourdomain.com",extraText:e("该服务器地址将影响支付回调地址以及默认首页展示的地址,请确保正确配置")})})}),a.jsx(X,{onClick:F,children:e("更新服务器地址")})]})}),a.jsx(Le,{children:a.jsxs(M.Section,{text:e("代理设置"),children:[a.jsxs(Ti,{children:["(支持"," ",a.jsx("a",{href:"https://github.com/Calcium-Ion/new-api-worker",target:"_blank",rel:"noreferrer",children:"new-api-worker"}),")"]}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"WorkerUrl",label:e("Worker地址"),placeholder:"例如:https://workername.yourdomain.workers.dev"})}),a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"WorkerValidKey",label:e("Worker密钥"),placeholder:"敏感信息不会发送到前端显示",type:"password"})})]}),a.jsx(M.Checkbox,{field:"WorkerAllowHttpImageRequestEnabled",noLabel:!0,children:e("允许 HTTP 协议图片请求(适用于自部署代理)")}),a.jsx(X,{onClick:j,children:e("更新Worker设置")})]})}),a.jsx(Le,{children:a.jsx(M.Section,{text:e("配置登录注册"),children:a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsxs(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:[a.jsx(M.Checkbox,{field:"PasswordLoginEnabled",noLabel:!0,onChange:V=>B("PasswordLoginEnabled",V),children:e("允许通过密码进行登录")}),a.jsx(M.Checkbox,{field:"PasswordRegisterEnabled",noLabel:!0,onChange:V=>B("PasswordRegisterEnabled",V),children:e("允许通过密码进行注册")}),a.jsx(M.Checkbox,{field:"EmailVerificationEnabled",noLabel:!0,onChange:V=>B("EmailVerificationEnabled",V),children:e("通过密码注册时需要进行邮箱验证")}),a.jsx(M.Checkbox,{field:"RegisterEnabled",noLabel:!0,onChange:V=>B("RegisterEnabled",V),children:e("允许新用户注册")}),a.jsx(M.Checkbox,{field:"TurnstileCheckEnabled",noLabel:!0,onChange:V=>B("TurnstileCheckEnabled",V),children:e("允许 Turnstile 用户校验")})]}),a.jsxs(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:[a.jsx(M.Checkbox,{field:"GitHubOAuthEnabled",noLabel:!0,onChange:V=>B("GitHubOAuthEnabled",V),children:e("允许通过 GitHub 账户登录 & 注册")}),a.jsx(M.Checkbox,{field:"LinuxDOOAuthEnabled",noLabel:!0,onChange:V=>B("LinuxDOOAuthEnabled",V),children:e("允许通过 Linux DO 账户登录 & 注册")}),a.jsx(M.Checkbox,{field:"WeChatAuthEnabled",noLabel:!0,onChange:V=>B("WeChatAuthEnabled",V),children:e("允许通过微信登录 & 注册")}),a.jsx(M.Checkbox,{field:"TelegramOAuthEnabled",noLabel:!0,onChange:V=>B("TelegramOAuthEnabled",V),children:e("允许通过 Telegram 进行登录")}),a.jsx(M.Checkbox,{field:"['oidc.enabled']",noLabel:!0,onChange:V=>B("oidc.enabled",V),children:e("允许通过 OIDC 进行登录")})]})]})})}),a.jsx(Le,{children:a.jsxs(M.Section,{text:e("配置邮箱域名白名单"),children:[a.jsx(Ti,{children:e("用以防止恶意用户利用临时邮箱批量注册")}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Checkbox,{field:"EmailDomainRestrictionEnabled",noLabel:!0,onChange:V=>B("EmailDomainRestrictionEnabled",V),children:"启用邮箱域名白名单"})}),a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Checkbox,{field:"EmailAliasRestrictionEnabled",noLabel:!0,onChange:V=>B("EmailAliasRestrictionEnabled",V),children:"启用邮箱别名限制"})})]}),a.jsx(CB,{value:d,onChange:h,placeholder:e("输入域名后回车"),style:{width:"100%",marginTop:16}}),a.jsx(M.Input,{placeholder:e("输入要添加的邮箱域名"),value:b,onChange:V=>x(V),style:{marginTop:16},suffix:a.jsx(X,{theme:"solid",type:"primary",onClick:W,children:e("添加")}),onEnterPress:W}),a.jsx(X,{onClick:U,style:{marginTop:10},children:e("保存邮箱域名白名单设置")})]})}),a.jsx(Le,{children:a.jsxs(M.Section,{text:e("配置 SMTP"),children:[a.jsx(Ti,{children:e("用以支持系统的邮件发送")}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"SMTPServer",label:e("SMTP 服务器地址")})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"SMTPPort",label:e("SMTP 端口")})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"SMTPAccount",label:e("SMTP 账户")})})]}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},style:{marginTop:16},children:[a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"SMTPFrom",label:e("SMTP 发送者邮箱")})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"SMTPToken",label:e("SMTP 访问凭证"),type:"password",placeholder:"敏感信息不会发送到前端显示"})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Checkbox,{field:"SMTPSSLEnabled",noLabel:!0,onChange:V=>B("SMTPSSLEnabled",V),children:e("启用SMTP SSL")})})]}),a.jsx(X,{onClick:k,children:e("保存 SMTP 设置")})]})}),a.jsx(Le,{children:a.jsxs(M.Section,{text:e("配置 OIDC"),children:[a.jsx(Ti,{children:e("用以支持通过 OIDC 登录,例如 Okta、Auth0 等兼容 OIDC 协议的 IdP")}),a.jsx(cr,{type:"info",description:`${e("主页链接填")} ${t.ServerAddress?t.ServerAddress:e("网站地址")},${e("重定向 URL 填")} ${t.ServerAddress?t.ServerAddress:e("网站地址")}/oauth/oidc`,style:{marginBottom:20,marginTop:16}}),a.jsx(Ti,{children:e("若你的 OIDC Provider 支持 Discovery Endpoint,你可以仅填写 OIDC Well-Known URL,系统会自动获取 OIDC 配置")}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"['oidc.well_known']",label:e("Well-Known URL"),placeholder:e("请输入 OIDC 的 Well-Known URL")})}),a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"['oidc.client_id']",label:e("Client ID"),placeholder:e("输入 OIDC 的 Client ID")})})]}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"['oidc.client_secret']",label:e("Client Secret"),type:"password",placeholder:e("敏感信息不会发送到前端显示")})}),a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"['oidc.authorization_endpoint']",label:e("Authorization Endpoint"),placeholder:e("输入 OIDC 的 Authorization Endpoint")})})]}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"['oidc.token_endpoint']",label:e("Token Endpoint"),placeholder:e("输入 OIDC 的 Token Endpoint")})}),a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"['oidc.user_info_endpoint']",label:e("User Info Endpoint"),placeholder:e("输入 OIDC 的 Userinfo Endpoint")})})]}),a.jsx(X,{onClick:O,children:e("保存 OIDC 设置")})]})}),a.jsx(Le,{children:a.jsxs(M.Section,{text:e("配置 GitHub OAuth App"),children:[a.jsx(Ti,{children:e("用以支持通过 GitHub 进行登录注册")}),a.jsx(cr,{type:"info",description:`${e("Homepage URL 填")} ${t.ServerAddress?t.ServerAddress:e("网站地址")},${e("Authorization callback URL 填")} ${t.ServerAddress?t.ServerAddress:e("网站地址")}/oauth/github`,style:{marginBottom:20,marginTop:16}}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"GitHubClientId",label:e("GitHub Client ID")})}),a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"GitHubClientSecret",label:e("GitHub Client Secret"),type:"password",placeholder:e("敏感信息不会发送到前端显示")})})]}),a.jsx(X,{onClick:$,children:e("保存 GitHub OAuth 设置")})]})}),a.jsx(Le,{children:a.jsxs(M.Section,{text:e("配置 Linux DO OAuth"),children:[a.jsxs(Ti,{children:[e("用以支持通过 Linux DO 进行登录注册"),a.jsx("a",{href:"https://connect.linux.do/",target:"_blank",rel:"noreferrer",style:{display:"inline-block",marginLeft:4,marginRight:4},children:e("点击此处")}),e("管理你的 LinuxDO OAuth App")]}),a.jsx(cr,{type:"info",description:`${e("回调 URL 填")} ${t.ServerAddress?t.ServerAddress:e("网站地址")}/oauth/linuxdo`,style:{marginBottom:20,marginTop:16}}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"LinuxDOClientId",label:e("Linux DO Client ID"),placeholder:e("输入你注册的 LinuxDO OAuth APP 的 ID")})}),a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"LinuxDOClientSecret",label:e("Linux DO Client Secret"),type:"password",placeholder:e("敏感信息不会发送到前端显示")})})]}),a.jsx(X,{onClick:H,children:e("保存 Linux DO OAuth 设置")})]})}),a.jsx(Le,{children:a.jsxs(M.Section,{text:e("配置 WeChat Server"),children:[a.jsx(Ti,{children:e("用以支持通过微信进行登录注册")}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"WeChatServerAddress",label:e("WeChat Server 服务器地址")})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"WeChatServerToken",label:e("WeChat Server 访问凭证"),type:"password",placeholder:e("敏感信息不会发送到前端显示")})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"WeChatAccountQRCodeImageURL",label:e("微信公众号二维码图片链接")})})]}),a.jsx(X,{onClick:K,children:e("保存 WeChat Server 设置")})]})}),a.jsx(Le,{children:a.jsxs(M.Section,{text:e("配置 Telegram 登录"),children:[a.jsx(Ti,{children:e("用以支持通过 Telegram 进行登录注册")}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"TelegramBotToken",label:e("Telegram Bot Token"),placeholder:e("敏感信息不会发送到前端显示"),type:"password"})}),a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"TelegramBotName",label:e("Telegram Bot 名称")})})]}),a.jsx(X,{onClick:R,children:e("保存 Telegram 登录设置")})]})}),a.jsx(Le,{children:a.jsxs(M.Section,{text:e("配置 Turnstile"),children:[a.jsx(Ti,{children:e("用以支持用户校验")}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"TurnstileSiteKey",label:e("Turnstile Site Key")})}),a.jsx(_e,{xs:24,sm:24,md:12,lg:12,xl:12,children:a.jsx(M.Input,{field:"TurnstileSecretKey",label:e("Turnstile Secret Key"),type:"password",placeholder:e("敏感信息不会发送到前端显示")})})]}),a.jsx(X,{onClick:z,children:e("保存 Turnstile 设置")})]})}),a.jsx(Je,{title:e("确认取消密码登录"),visible:f,onOk:Y,onCancel:()=>{p(!1),c.current.setValue("PasswordLoginEnabled",!0)},okText:e("确认"),cancelText:e("取消"),children:a.jsx("p",{children:e("您确定要取消密码登录功能吗?这可能会影响用户的登录方式。")})})]})}):a.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:a.jsx(Dt,{size:"large"})})})},_ce=()=>{var $;const{t:e}=Ze();let[t,r]=m.useState({Notice:"",SystemName:"",Logo:"",Footer:"",About:"",HomePageContent:""}),[n,i]=m.useState(!1);const[s,o]=m.useState(!1),[l,u]=m.useContext(Ji),[c,d]=m.useState({tag_name:"",content:""}),h=async(O,R)=>{i(!0);const z=await Se.put("/api/option/",{key:O,value:R}),{success:H,message:B}=z.data;H?r(Y=>({...Y,[O]:R})):q(B),i(!1)},[f,p]=m.useState({Notice:!1,SystemName:!1,Logo:!1,HomePageContent:!1,About:!1,Footer:!1,CheckUpdate:!1}),g=async(O,R)=>{const z=R.target.id;r(H=>({...H,[z]:O}))},y=m.useRef(),b=async()=>{try{p(O=>({...O,Notice:!0})),await h("Notice",t.Notice),Pe(e("公告已更新"))}catch(O){console.error(e("公告更新失败"),O),q(e("公告更新失败"))}finally{p(O=>({...O,Notice:!1}))}},x=m.useRef(),v=async()=>{try{p(O=>({...O,SystemName:!0})),await h("SystemName",t.SystemName),Pe(e("系统名称已更新"))}catch(O){console.error(e("系统名称更新失败"),O),q(e("系统名称更新失败"))}finally{p(O=>({...O,SystemName:!1}))}},E=async()=>{try{p(O=>({...O,Logo:!0})),await h("Logo",t.Logo),Pe("Logo 已更新")}catch(O){console.error("Logo 更新失败",O),q("Logo 更新失败")}finally{p(O=>({...O,Logo:!1}))}},_=async O=>{try{p(R=>({...R,HomePageContent:!0})),await h(O,t[O]),Pe("首页内容已更新")}catch(R){console.error("首页内容更新失败",R),q("首页内容更新失败")}finally{p(R=>({...R,HomePageContent:!1}))}},j=async()=>{try{p(O=>({...O,About:!0})),await h("About",t.About),Pe("关于内容已更新")}catch(O){console.error("关于内容更新失败",O),q("关于内容更新失败")}finally{p(O=>({...O,About:!1}))}},F=async()=>{try{p(O=>({...O,Footer:!0})),await h("Footer",t.Footer),Pe("页脚内容已更新")}catch(O){console.error("页脚内容更新失败",O),q("页脚内容更新失败")}finally{p(O=>({...O,Footer:!1}))}},k=async()=>{var O;try{p(B=>({...B,CheckUpdate:!0}));const R=await fetch("https://api.github.com/repos/Calcium-Ion/new-api/releases/latest",{headers:{Accept:"application/json","Content-Type":"application/json","User-Agent":"new-api-update-checker"}}).then(B=>B.json()),{tag_name:z,body:H}=R;z===((O=l==null?void 0:l.status)==null?void 0:O.version)?Pe(`已是最新版本:${z}`):(d({tag_name:z,content:uh.parse(H)}),o(!0))}catch(R){console.error("Failed to check for updates:",R),q("检查更新失败,请稍后再试")}finally{p(R=>({...R,CheckUpdate:!1}))}},U=async()=>{const O=await Se.get("/api/option/"),{success:R,message:z,data:H}=O.data;if(R){let B={};H.forEach(Y=>{Y.key in t&&(B[Y.key]=Y.value)}),r(B),y.current.setValues(B),x.current.setValues(B)}else q(z)};m.useEffect(()=>{U()},[]);const W=()=>{window.open(`https://github.com/Calcium-Ion/new-api/releases/tag/${c.tag_name}`,"_blank")},K=()=>{var R;const O=(R=l==null?void 0:l.status)==null?void 0:R.start_time;return l.status?_r(O):""};return a.jsxs(Ge,{children:[a.jsxs(_e,{span:24,style:{marginTop:"10px",display:"flex",flexDirection:"column",gap:"10px"},children:[a.jsx(M,{children:a.jsx(Le,{children:a.jsxs(M.Section,{text:e("系统信息"),children:[a.jsx(Ge,{children:a.jsx(_e,{span:16,children:a.jsxs(pt,{children:[a.jsxs(Ca,{children:[e("当前版本"),":",(($=l==null?void 0:l.status)==null?void 0:$.version)||e("未知")]}),a.jsx(X,{type:"primary",onClick:k,loading:f.CheckUpdate,children:e("检查更新")})]})})}),a.jsx(Ge,{children:a.jsx(_e,{span:16,children:a.jsxs(Ca,{children:[e("启动时间"),":",K()]})})})]})})}),a.jsx(M,{values:t,getFormApi:O=>y.current=O,children:a.jsx(Le,{children:a.jsxs(M.Section,{text:e("通用设置"),children:[a.jsx(M.TextArea,{label:e("公告"),placeholder:e("在此输入新的公告内容,支持 Markdown & HTML 代码"),field:"Notice",onChange:g,style:{fontFamily:"JetBrains Mono, Consolas"},autosize:{minRows:6,maxRows:12}}),a.jsx(X,{onClick:b,loading:f.Notice,children:e("设置公告")})]})})}),a.jsx(M,{values:t,getFormApi:O=>x.current=O,children:a.jsx(Le,{children:a.jsxs(M.Section,{text:e("个性化设置"),children:[a.jsx(M.Input,{label:e("系统名称"),placeholder:e("在此输入系统名称"),field:"SystemName",onChange:g}),a.jsx(X,{onClick:v,loading:f.SystemName,children:e("设置系统名称")}),a.jsx(M.Input,{label:e("Logo 图片地址"),placeholder:e("在此输入 Logo 图片地址"),field:"Logo",onChange:g}),a.jsx(X,{onClick:E,loading:f.Logo,children:e("设置 Logo")}),a.jsx(M.TextArea,{label:e("首页内容"),placeholder:e("在此输入首页内容,支持 Markdown & HTML 代码,设置后首页的状态信息将不再显示。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页作为首页"),field:"HomePageContent",onChange:g,style:{fontFamily:"JetBrains Mono, Consolas"},autosize:{minRows:6,maxRows:12}}),a.jsx(X,{onClick:()=>_("HomePageContent"),loading:f.HomePageContent,children:e("设置首页内容")}),a.jsx(M.TextArea,{label:e("关于"),placeholder:e("在此输入新的关于内容,支持 Markdown & HTML 代码。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页作为关于页面"),field:"About",onChange:g,style:{fontFamily:"JetBrains Mono, Consolas"},autosize:{minRows:6,maxRows:12}}),a.jsx(X,{onClick:j,loading:f.About,children:e("设置关于")}),a.jsx(cr,{fullMode:!1,type:"info",description:e("移除 One API 的版权标识必须首先获得授权,项目维护需要花费大量精力,如果本项目对你有意义,请主动支持本项目"),closeIcon:null,style:{marginTop:15}}),a.jsx(M.Input,{label:e("页脚"),placeholder:e("在此输入新的页脚,留空则使用默认页脚,支持 HTML 代码"),field:"Footer",onChange:g}),a.jsx(X,{onClick:F,loading:f.Footer,children:e("设置页脚")})]})})})]}),a.jsx(Je,{title:e("新版本")+":"+c.tag_name,visible:s,onCancel:()=>o(!1),footer:[a.jsx(X,{type:"primary",onClick:()=>{o(!1),W()},children:e("详情")},"details")],children:a.jsx("div",{dangerouslySetInnerHTML:{__html:c.content}})})]})};function kce(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState(!1),[o,l]=m.useState({TopUpLink:"","general_setting.docs_link":"",QuotaPerUnit:"",RetryTimes:"",USDExchangeRate:"",DisplayInCurrencyEnabled:!1,DisplayTokenStatEnabled:!1,DefaultCollapseSidebar:!1,DemoSiteEnabled:!1,SelfUseModeEnabled:!1}),u=m.useRef(),[c,d]=m.useState(o);function h(p){return g=>{l(y=>({...y,[p]:g}))}}function f(){const p=zn(o,c);if(!p.length)return en(t("你似乎并没有修改什么"));const g=p.map(y=>{let b="";return typeof o[y.key]=="boolean"?b=String(o[y.key]):b=o[y.key],Se.put("/api/option/",{key:y.key,value:b})});n(!0),Promise.all(g).then(y=>{if(g.length===1){if(y.includes(void 0))return}else if(g.length>1&&y.includes(void 0))return q(t("部分保存失败,请重试"));Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}return m.useEffect(()=>{const p={};for(let g in e.options)Object.keys(o).includes(g)&&(p[g]=e.options[g]);l(p),d(structuredClone(p)),u.current.setValues(p)},[e.options]),a.jsxs(a.Fragment,{children:[a.jsx(Dt,{spinning:r,children:a.jsx(M,{values:o,getFormApi:p=>u.current=p,style:{marginBottom:15},children:a.jsxs(M.Section,{text:t("通用设置"),children:[a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"TopUpLink",label:t("充值链接"),initValue:"",placeholder:t("例如发卡网站的购买链接"),onChange:h("TopUpLink"),showClear:!0})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"general_setting.docs_link",label:t("文档地址"),initValue:"",placeholder:t("例如 https://docs.newapi.pro"),onChange:h("general_setting.docs_link"),showClear:!0})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"QuotaPerUnit",label:t("单位美元额度"),initValue:"",placeholder:t("一单位货币能兑换的额度"),onChange:h("QuotaPerUnit"),showClear:!0,onClick:()=>s(!0)})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"USDExchangeRate",label:t("美元汇率(非充值汇率,仅用于定价页面换算)"),initValue:"",placeholder:t("美元汇率"),onChange:h("USDExchangeRate"),showClear:!0})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"RetryTimes",label:t("失败重试次数"),initValue:"",placeholder:t("失败重试次数"),onChange:h("RetryTimes"),showClear:!0})})]}),a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"DisplayInCurrencyEnabled",label:t("以货币形式显示额度"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:h("DisplayInCurrencyEnabled")})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"DisplayTokenStatEnabled",label:t("额度查询接口返回令牌额度而非用户额度"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:h("DisplayTokenStatEnabled")})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"DefaultCollapseSidebar",label:t("默认折叠侧边栏"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:h("DefaultCollapseSidebar")})})]}),a.jsxs(Ge,{children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"DemoSiteEnabled",label:t("演示站点模式"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:h("DemoSiteEnabled")})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"SelfUseModeEnabled",label:t("自用模式"),extraText:t("开启后不限制:必须设置模型倍率"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:h("SelfUseModeEnabled")})})]}),a.jsx(Ge,{children:a.jsx(X,{size:"default",onClick:f,children:t("保存通用设置")})})]})})}),a.jsx(Je,{title:t("警告"),visible:i,onOk:()=>s(!1),onCancel:()=>s(!1),closeOnEsc:!0,width:500,children:a.jsx(cr,{type:"warning",description:t("此设置用于系统内部计算,默认值500000是为了精确到6位小数点设计,不推荐修改。"),bordered:!0,fullMode:!1,closeIcon:null})})]})}function Oce(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({CheckSensitiveEnabled:!1,CheckSensitiveOnPromptEnabled:!1,SensitiveWords:""}),o=m.useRef(),[l,u]=m.useState(i);function c(){const d=zn(i,l);if(!d.length)return en(t("你似乎并没有修改什么"));const h=d.map(f=>{let p="";return typeof i[f.key]=="boolean"?p=String(i[f.key]):p=i[f.key],Se.put("/api/option/",{key:f.key,value:p})});n(!0),Promise.all(h).then(f=>{if(h.length===1){if(f.includes(void 0))return}else if(h.length>1&&f.includes(void 0))return q(t("部分保存失败,请重试"));Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}return m.useEffect(()=>{const d={};for(let h in e.options)Object.keys(i).includes(h)&&(d[h]=e.options[h]);s(d),u(structuredClone(d)),o.current.setValues(d)},[e.options]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,children:a.jsx(M,{values:i,getFormApi:d=>o.current=d,style:{marginBottom:15},children:a.jsxs(M.Section,{text:t("屏蔽词过滤设置"),children:[a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"CheckSensitiveEnabled",label:t("启用屏蔽词过滤功能"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:d=>{s({...i,CheckSensitiveEnabled:d})}})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"CheckSensitiveOnPromptEnabled",label:t("启用 Prompt 检查"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:d=>s({...i,CheckSensitiveOnPromptEnabled:d})})})]}),a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.TextArea,{label:t("屏蔽词列表"),extraText:t("一行一个屏蔽词,不需要符号分割"),placeholder:t("一行一个屏蔽词,不需要符号分割"),field:"SensitiveWords",onChange:d=>s({...i,SensitiveWords:d}),style:{fontFamily:"JetBrains Mono, Consolas"},autosize:{minRows:6,maxRows:12}})})}),a.jsx(Ge,{children:a.jsx(X,{size:"default",onClick:c,children:t("保存屏蔽词过滤设置")})})]})})})})}function Ace(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState(!1),[o,l]=m.useState({LogConsumeEnabled:!1,historyTimestamp:Fw().subtract(1,"month").toDate()}),u=m.useRef(),[c,d]=m.useState(o);function h(){const p=zn(o,c).filter(y=>y.key!=="historyTimestamp");if(!p.length)return en(t("你似乎并没有修改什么"));const g=p.map(y=>{let b="";return typeof o[y.key]=="boolean"?b=String(o[y.key]):b=o[y.key],Se.put("/api/option/",{key:y.key,value:b})});n(!0),Promise.all(g).then(y=>{if(g.length===1){if(y.includes(void 0))return}else if(g.length>1&&y.includes(void 0))return q(t("部分保存失败,请重试"));Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}async function f(){try{if(s(!0),!o.historyTimestamp)throw new Error(t("请选择日志记录时间"));const p=await Se.delete(`/api/log/?target_timestamp=${Date.parse(o.historyTimestamp)/1e3}`),{success:g,message:y,data:b}=p.data;if(g){Pe(`${b} ${t("条日志已清理!")}`);return}else throw new Error(t("日志清理失败:")+y)}catch(p){q(p.message)}finally{s(!1)}}return m.useEffect(()=>{const p={};for(let g in e.options)Object.keys(o).includes(g)&&(p[g]=e.options[g]);p.historyTimestamp=o.historyTimestamp,l(Object.assign(o,p)),d(structuredClone(p)),u.current.setValues(p)},[e.options]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,children:a.jsx(M,{values:o,getFormApi:p=>u.current=p,style:{marginBottom:15},children:a.jsxs(M.Section,{text:t("日志设置"),children:[a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"LogConsumeEnabled",label:t("启用额度消费日志记录"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:p=>{l({...o,LogConsumeEnabled:p})}})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsxs(Dt,{spinning:i,children:[a.jsx(M.DatePicker,{label:t("日志记录时间"),field:"historyTimestamp",type:"dateTime",inputReadOnly:!0,onChange:p=>{l({...o,historyTimestamp:p})}}),a.jsx(X,{size:"default",onClick:f,children:t("清除历史日志")})]})})]}),a.jsx(Ge,{children:a.jsx(X,{size:"default",onClick:h,children:t("保存日志设置")})})]})})})})}function Dce(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({ChannelDisableThreshold:"",QuotaRemindThreshold:"",AutomaticDisableChannelEnabled:!1,AutomaticEnableChannelEnabled:!1,AutomaticDisableKeywords:""}),o=m.useRef(),[l,u]=m.useState(i);function c(){const d=zn(i,l);if(!d.length)return en(t("你似乎并没有修改什么"));const h=d.map(f=>{let p="";return typeof i[f.key]=="boolean"?p=String(i[f.key]):p=i[f.key],Se.put("/api/option/",{key:f.key,value:p})});n(!0),Promise.all(h).then(f=>{if(h.length===1){if(f.includes(void 0))return}else if(h.length>1&&f.includes(void 0))return q(t("部分保存失败,请重试"));Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}return m.useEffect(()=>{const d={};for(let h in e.options)Object.keys(i).includes(h)&&(d[h]=e.options[h]);s(d),u(structuredClone(d)),o.current.setValues(d)},[e.options]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,children:a.jsx(M,{values:i,getFormApi:d=>o.current=d,style:{marginBottom:15},children:a.jsxs(M.Section,{text:t("监控设置"),children:[a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("测试所有渠道的最长响应时间"),step:1,min:0,suffix:t("秒"),extraText:t("当运行通道全部测试时,超过此时间将自动禁用通道"),placeholder:"",field:"ChannelDisableThreshold",onChange:d=>s({...i,ChannelDisableThreshold:String(d)})})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("额度提醒阈值"),step:1,min:0,suffix:"Token",extraText:t("低于此额度时将发送邮件提醒用户"),placeholder:"",field:"QuotaRemindThreshold",onChange:d=>s({...i,QuotaRemindThreshold:String(d)})})})]}),a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"AutomaticDisableChannelEnabled",label:t("失败时自动禁用通道"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:d=>{s({...i,AutomaticDisableChannelEnabled:d})}})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"AutomaticEnableChannelEnabled",label:t("成功时自动启用通道"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:d=>s({...i,AutomaticEnableChannelEnabled:d})})})]}),a.jsx(Ge,{gutter:16,children:a.jsx(_e,{xs:24,sm:16,children:a.jsx(M.TextArea,{label:t("自动禁用关键词"),placeholder:t("一行一个,不区分大小写"),extraText:t("当上游通道返回错误中包含这些关键词时(不区分大小写),自动禁用通道"),field:"AutomaticDisableKeywords",autosize:{minRows:6,maxRows:12},onChange:d=>s({...i,AutomaticDisableKeywords:d})})})}),a.jsx(Ge,{children:a.jsx(X,{size:"default",onClick:c,children:t("保存监控设置")})})]})})})})}function Bce(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({QuotaForNewUser:"",PreConsumedQuota:"",QuotaForInviter:"",QuotaForInvitee:""}),o=m.useRef(),[l,u]=m.useState(i);function c(){const d=zn(i,l);if(!d.length)return en(t("你似乎并没有修改什么"));const h=d.map(f=>{let p="";return typeof i[f.key]=="boolean"?p=String(i[f.key]):p=i[f.key],Se.put("/api/option/",{key:f.key,value:p})});n(!0),Promise.all(h).then(f=>{if(h.length===1){if(f.includes(void 0))return}else if(h.length>1&&f.includes(void 0))return q(t("部分保存失败,请重试"));Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}return m.useEffect(()=>{const d={};for(let h in e.options)Object.keys(i).includes(h)&&(d[h]=e.options[h]);s(d),u(structuredClone(d)),o.current.setValues(d)},[e.options]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,children:a.jsx(M,{values:i,getFormApi:d=>o.current=d,style:{marginBottom:15},children:a.jsxs(M.Section,{text:t("额度设置"),children:[a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("新用户初始额度"),field:"QuotaForNewUser",step:1,min:0,suffix:"Token",placeholder:"",onChange:d=>s({...i,QuotaForNewUser:String(d)})})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("请求预扣费额度"),field:"PreConsumedQuota",step:1,min:0,suffix:"Token",extraText:t("请求结束后多退少补"),placeholder:"",onChange:d=>s({...i,PreConsumedQuota:String(d)})})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("邀请新用户奖励额度"),field:"QuotaForInviter",step:1,min:0,suffix:"Token",extraText:"",placeholder:t("例如:2000"),onChange:d=>s({...i,QuotaForInviter:String(d)})})})]}),a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:6,children:a.jsx(M.InputNumber,{label:t("新用户使用邀请码奖励额度"),field:"QuotaForInvitee",step:1,min:0,suffix:"Token",extraText:"",placeholder:t("例如:1000"),onChange:d=>s({...i,QuotaForInvitee:String(d)})})})}),a.jsx(Ge,{children:a.jsx(X,{size:"default",onClick:c,children:t("保存额度设置")})})]})})})})}const Tce=()=>{let[e,t]=m.useState({QuotaForNewUser:0,PreConsumedQuota:0,QuotaForInviter:0,QuotaForInvitee:0,TopUpLink:"","general_setting.docs_link":"",QuotaPerUnit:0,USDExchangeRate:0,RetryTimes:0,DisplayInCurrencyEnabled:!1,DisplayTokenStatEnabled:!1,DefaultCollapseSidebar:!1,DemoSiteEnabled:!1,SelfUseModeEnabled:!1,CheckSensitiveEnabled:!1,CheckSensitiveOnPromptEnabled:!1,SensitiveWords:"",LogConsumeEnabled:!1,ChannelDisableThreshold:0,QuotaRemindThreshold:0,AutomaticDisableChannelEnabled:!1,AutomaticEnableChannelEnabled:!1,AutomaticDisableKeywords:""}),[r,n]=m.useState(!1);const i=async()=>{const o=await Se.get("/api/option/"),{success:l,message:u,data:c}=o.data;if(l){let d={};c.forEach(h=>{h.key.endsWith("Enabled")||["DefaultCollapseSidebar"].includes(h.key)?d[h.key]=La(h.value):d[h.key]=h.value}),t(d)}else q(u)};async function s(){try{n(!0),await i()}catch{q("刷新失败")}finally{n(!1)}}return m.useEffect(()=>{s()},[]),a.jsx(a.Fragment,{children:a.jsxs(Dt,{spinning:r,size:"large",children:[a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(kce,{options:e,refresh:s})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(Oce,{options:e,refresh:s})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(Ace,{options:e,refresh:s})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(Dce,{options:e,refresh:s})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(Bce,{options:e,refresh:s})})]})})};function Pce(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({ModelRequestRateLimitEnabled:!1,ModelRequestRateLimitCount:-1,ModelRequestRateLimitSuccessCount:1e3,ModelRequestRateLimitDurationMinutes:1,ModelRequestRateLimitGroup:""}),o=m.useRef(),[l,u]=m.useState(i);function c(){const d=zn(i,l);if(!d.length)return en(t("你似乎并没有修改什么"));const h=d.map(f=>{let p="";return typeof i[f.key]=="boolean"?p=String(i[f.key]):p=i[f.key],Se.put("/api/option/",{key:f.key,value:p})});n(!0),Promise.all(h).then(f=>{if(h.length===1){if(f.includes(void 0))return}else if(h.length>1&&f.includes(void 0))return q(t("部分保存失败,请重试"));for(let p=0;p<f.length;p++)if(!f[p].data.success)return q(f[p].data.message);Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}return m.useEffect(()=>{const d={};for(let h in e.options)Object.keys(i).includes(h)&&(d[h]=e.options[h]);s(d),u(structuredClone(d)),o.current.setValues(d)},[e.options]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,children:a.jsx(M,{values:i,getFormApi:d=>o.current=d,style:{marginBottom:15},children:a.jsxs(M.Section,{text:t("模型请求速率限制"),children:[a.jsx(Ge,{gutter:16,children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"ModelRequestRateLimitEnabled",label:t("启用用户模型请求速率限制(可能会影响高并发性能)"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:d=>{s({...i,ModelRequestRateLimitEnabled:d})}})})}),a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("限制周期"),step:1,min:0,suffix:t("分钟"),extraText:t("频率限制的周期(分钟)"),field:"ModelRequestRateLimitDurationMinutes",onChange:d=>s({...i,ModelRequestRateLimitDurationMinutes:String(d)})})})}),a.jsxs(Ge,{children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("用户每周期最多请求次数"),step:1,min:0,suffix:t("次"),extraText:t("包括失败请求的次数,0代表不限制"),field:"ModelRequestRateLimitCount",onChange:d=>s({...i,ModelRequestRateLimitCount:String(d)})})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("用户每周期最多请求完成次数"),step:1,min:1,suffix:t("次"),extraText:t("只包括请求成功的次数"),field:"ModelRequestRateLimitSuccessCount",onChange:d=>s({...i,ModelRequestRateLimitSuccessCount:String(d)})})})]}),a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:16,children:a.jsx(M.TextArea,{label:t("分组速率限制"),placeholder:t(`{
- "default": [200, 100],
- "vip": [0, 1000]
- }`),field:"ModelRequestRateLimitGroup",autosize:{minRows:5,maxRows:15},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(d,h)=>Vr(h),message:t("不是合法的 JSON 字符串")}],extraText:a.jsxs("div",{children:[a.jsx("p",{children:t("说明:")}),a.jsxs("ul",{children:[a.jsx("li",{children:t('使用 JSON 对象格式,格式为:{"组名": [最多请求次数, 最多请求完成次数]}')}),a.jsx("li",{children:t('示例:{"default": [200, 100], "vip": [0, 1000]}。')}),a.jsx("li",{children:t("[最多请求次数]必须大于等于0,[最多请求完成次数]必须大于等于1。")}),a.jsx("li",{children:t("分组速率配置优先级高于全局速率限制。")}),a.jsx("li",{children:t("限制周期统一使用上方配置的“限制周期”值。")})]})]}),onChange:d=>{s({...i,ModelRequestRateLimitGroup:d})}})})}),a.jsx(Ge,{children:a.jsx(X,{size:"default",onClick:c,children:t("保存模型速率限制")})})]})})})})}const Nce=()=>{Ze();let[e,t]=m.useState({ModelRequestRateLimitEnabled:!1,ModelRequestRateLimitCount:0,ModelRequestRateLimitSuccessCount:1e3,ModelRequestRateLimitDurationMinutes:1,ModelRequestRateLimitGroup:""}),[r,n]=m.useState(!1);const i=async()=>{const o=await Se.get("/api/option/"),{success:l,message:u,data:c}=o.data;if(l){let d={};c.forEach(h=>{h.key==="ModelRequestRateLimitGroup"&&(h.value=JSON.stringify(JSON.parse(h.value),null,2)),h.key.endsWith("Enabled")?d[h.key]=La(h.value):d[h.key]=h.value}),t(d)}else q(u)};async function s(){try{n(!0),await i()}catch{q("刷新失败")}finally{n(!1)}}return m.useEffect(()=>{s()},[]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,size:"large",children:a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(Pce,{options:e,refresh:s})})})})},Mce={default:"OFF",HARM_CATEGORY_CIVIC_INTEGRITY:"BLOCK_NONE"},Ice={default:"v1beta"};function $ce(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({"gemini.safety_settings":"","gemini.version_settings":"","gemini.supported_imagine_models":"","gemini.thinking_adapter_enabled":!1,"gemini.thinking_adapter_budget_tokens_percentage":.6}),o=m.useRef(),[l,u]=m.useState(i);async function c(){await o.current.validate().then(()=>{const d=zn(i,l);if(!d.length)return en(t("你似乎并没有修改什么"));const h=d.map(f=>{let p=String(i[f.key]);return Se.put("/api/option/",{key:f.key,value:p})});n(!0),Promise.all(h).then(f=>{if(h.length===1){if(f.includes(void 0))return}else if(h.length>1&&f.includes(void 0))return q(t("部分保存失败,请重试"));Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}).catch(d=>{console.error("Validation failed:",d),q(t("请检查输入"))})}return m.useEffect(()=>{const d={};for(let h in e.options)Object.keys(i).includes(h)&&(d[h]=e.options[h]);s(d),u(structuredClone(d)),o.current.setValues(d)},[e.options]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,children:a.jsxs(M,{values:i,getFormApi:d=>o.current=d,style:{marginBottom:15},children:[a.jsxs(M.Section,{text:t("Gemini设置"),children:[a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.TextArea,{label:t("Gemini安全设置"),placeholder:t("为一个 JSON 文本,例如:")+`
- `+JSON.stringify(Mce,null,2),field:"gemini.safety_settings",extraText:t("default为默认设置,可单独设置每个分类的安全等级"),autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(d,h)=>Vr(h),message:t("不是合法的 JSON 字符串")}],onChange:d=>s({...i,"gemini.safety_settings":d})})})}),a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.TextArea,{label:t("Gemini版本设置"),placeholder:t("为一个 JSON 文本,例如:")+`
- `+JSON.stringify(Ice,null,2),field:"gemini.version_settings",extraText:t("default为默认设置,可单独设置每个模型的版本"),autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(d,h)=>Vr(h),message:t("不是合法的 JSON 字符串")}],onChange:d=>s({...i,"gemini.version_settings":d})})})}),a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.TextArea,{field:"gemini.supported_imagine_models",label:t("支持的图像模型"),placeholder:t("例如:")+`
- `+JSON.stringify(["gemini-2.0-flash-exp-image-generation"],null,2),onChange:d=>s({...i,"gemini.supported_imagine_models":d}),trigger:"blur",stopValidateWithError:!0,rules:[{validator:(d,h)=>Vr(h),message:t("不是合法的 JSON 字符串")}]})})})]}),a.jsxs(M.Section,{text:t("Gemini思考适配设置"),children:[a.jsx(Ge,{children:a.jsx(_e,{span:16,children:a.jsx(Ca,{children:t("和Claude不同,默认情况下Gemini的思考模型会自动决定要不要思考,就算不开启适配模型也可以正常使用,如果您需要计费,推荐设置无后缀模型价格按思考价格设置。支持使用 gemini-2.5-pro-preview-06-05-thinking-128 格式来精确传递思考预算。")})})}),a.jsx(Ge,{children:a.jsx(_e,{span:16,children:a.jsx(M.Switch,{label:t("启用Gemini思考后缀适配"),field:"gemini.thinking_adapter_enabled",extraText:t("适配 -thinking、-thinking-预算数字 和 -nothinking 后缀"),onChange:d=>s({...i,"gemini.thinking_adapter_enabled":d})})})}),a.jsx(Ge,{children:a.jsx(_e,{span:16,children:a.jsx(Ca,{children:t("Gemini思考适配 BudgetTokens = MaxTokens * BudgetTokens 百分比")})})}),a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("思考预算占比"),field:"gemini.thinking_adapter_budget_tokens_percentage",initValue:"",extraText:t("0.002-1之间的小数"),min:.002,max:1,onChange:d=>s({...i,"gemini.thinking_adapter_budget_tokens_percentage":d})})})})]}),a.jsx(Ge,{children:a.jsx(X,{size:"default",onClick:c,children:t("保存")})})]})})})}const Q9={"claude-3-7-sonnet-20250219-thinking":{"anthropic-beta":["output-128k-2025-02-19","token-efficient-tools-2025-02-19"]}},ex={default:8192,"claude-3-haiku-20240307":4096,"claude-3-opus-20240229":4096,"claude-3-7-sonnet-20250219-thinking":8192};function Lce(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({"claude.model_headers_settings":"","claude.thinking_adapter_enabled":!0,"claude.default_max_tokens":"","claude.thinking_adapter_budget_tokens_percentage":.8}),o=m.useRef(),[l,u]=m.useState(i);function c(){const d=zn(i,l);if(!d.length)return en(t("你似乎并没有修改什么"));const h=d.map(f=>{let p=String(i[f.key]);return Se.put("/api/option/",{key:f.key,value:p})});n(!0),Promise.all(h).then(f=>{if(h.length===1){if(f.includes(void 0))return}else if(h.length>1&&f.includes(void 0))return q(t("部分保存失败,请重试"));Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}return m.useEffect(()=>{const d={};for(let h in e.options)Object.keys(i).includes(h)&&(d[h]=e.options[h]);s(d),u(structuredClone(d)),o.current.setValues(d)},[e.options]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,children:a.jsx(M,{values:i,getFormApi:d=>o.current=d,style:{marginBottom:15},children:a.jsxs(M.Section,{text:t("Claude设置"),children:[a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.TextArea,{label:t("Claude请求头覆盖"),field:"claude.model_headers_settings",placeholder:t("为一个 JSON 文本,例如:")+`
- `+JSON.stringify(Q9,null,2),extraText:t("示例")+`
- `+JSON.stringify(Q9,null,2),autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(d,h)=>Vr(h),message:t("不是合法的 JSON 字符串")}],onChange:d=>s({...i,"claude.model_headers_settings":d})})})}),a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.TextArea,{label:t("缺省 MaxTokens"),field:"claude.default_max_tokens",placeholder:t("为一个 JSON 文本,例如:")+`
- `+JSON.stringify(ex,null,2),extraText:t("示例")+`
- `+JSON.stringify(ex,null,2),autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(d,h)=>Vr(h),message:t("不是合法的 JSON 字符串")}],onChange:d=>s({...i,"claude.default_max_tokens":d})})})}),a.jsx(Ge,{children:a.jsx(_e,{span:16,children:a.jsx(M.Switch,{label:t("启用Claude思考适配(-thinking后缀)"),field:"claude.thinking_adapter_enabled",onChange:d=>s({...i,"claude.thinking_adapter_enabled":d})})})}),a.jsx(Ge,{children:a.jsx(_e,{span:16,children:a.jsx(Ca,{children:t("Claude思考适配 BudgetTokens = MaxTokens * BudgetTokens 百分比")})})}),a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("思考适配 BudgetTokens 百分比"),field:"claude.thinking_adapter_budget_tokens_percentage",initValue:"",extraText:t("0.1-1之间的小数"),min:.1,max:1,onChange:d=>s({...i,"claude.thinking_adapter_budget_tokens_percentage":d})})})}),a.jsx(Ge,{children:a.jsx(X,{size:"default",onClick:c,children:t("保存")})})]})})})})}function Rce(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({"global.pass_through_request_enabled":!1,"general_setting.ping_interval_enabled":!1,"general_setting.ping_interval_seconds":60}),o=m.useRef(),[l,u]=m.useState(i);function c(){const d=zn(i,l);if(!d.length)return en(t("你似乎并没有修改什么"));const h=d.map(f=>{let p=String(i[f.key]);return Se.put("/api/option/",{key:f.key,value:p})});n(!0),Promise.all(h).then(f=>{if(h.length===1){if(f.includes(void 0))return}else if(h.length>1&&f.includes(void 0))return q(t("部分保存失败,请重试"));Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}return m.useEffect(()=>{const d={};for(let h in e.options)Object.keys(i).includes(h)&&(d[h]=e.options[h]);s(d),u(structuredClone(d)),o.current.setValues(d)},[e.options]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,children:a.jsx(M,{values:i,getFormApi:d=>o.current=d,style:{marginBottom:15},children:a.jsxs(M.Section,{text:t("全局设置"),children:[a.jsx(Ge,{children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{label:t("启用请求透传"),field:"global.pass_through_request_enabled",onChange:d=>s({...i,"global.pass_through_request_enabled":d}),extraText:"开启后,所有请求将直接透传给上游,不会进行任何处理(重定向和渠道适配也将失效),请谨慎开启"})})}),a.jsxs(M.Section,{text:t("连接保活设置"),children:[a.jsx(Ge,{style:{marginTop:10},children:a.jsx(_e,{span:24,children:a.jsx(cr,{type:"warning",description:"警告:启用保活后,如果已经写入保活数据后渠道出错,系统无法重试,如果必须开启,推荐设置尽可能大的Ping间隔"})})}),a.jsxs(Ge,{children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{label:t("启用Ping间隔"),field:"general_setting.ping_interval_enabled",onChange:d=>s({...i,"general_setting.ping_interval_enabled":d}),extraText:"开启后,将定期发送ping数据保持连接活跃"})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("Ping间隔(秒)"),field:"general_setting.ping_interval_seconds",onChange:d=>s({...i,"general_setting.ping_interval_seconds":d}),min:1,disabled:!i["general_setting.ping_interval_enabled"]})})]})]}),a.jsx(Ge,{children:a.jsx(X,{size:"default",onClick:c,children:t("保存")})})]})})})})}const zce=()=>{Ze();let[e,t]=m.useState({"gemini.safety_settings":"","gemini.version_settings":"","gemini.supported_imagine_models":"","claude.model_headers_settings":"","claude.thinking_adapter_enabled":!0,"claude.default_max_tokens":"","claude.thinking_adapter_budget_tokens_percentage":.8,"global.pass_through_request_enabled":!1,"general_setting.ping_interval_enabled":!1,"general_setting.ping_interval_seconds":60,"gemini.thinking_adapter_enabled":!1,"gemini.thinking_adapter_budget_tokens_percentage":.6}),[r,n]=m.useState(!1);const i=async()=>{const o=await Se.get("/api/option/"),{success:l,message:u,data:c}=o.data;if(l){let d={};c.forEach(h=>{(h.key==="gemini.safety_settings"||h.key==="gemini.version_settings"||h.key==="claude.model_headers_settings"||h.key==="claude.default_max_tokens"||h.key==="gemini.supported_imagine_models")&&h.value!==""&&(h.value=JSON.stringify(JSON.parse(h.value),null,2)),h.key.endsWith("Enabled")||h.key.endsWith("enabled")?d[h.key]=La(h.value):d[h.key]=h.value}),t(d)}else q(u)};async function s(){try{n(!0),await i()}catch(o){q("刷新失败"),console.error(o)}finally{n(!1)}}return m.useEffect(()=>{s()},[]),a.jsx(a.Fragment,{children:a.jsxs(Dt,{spinning:r,size:"large",children:[a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(Rce,{options:e,refresh:s})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx($ce,{options:e,refresh:s})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(Lce,{options:e,refresh:s})})]})})},{Text:Vm}=Ie,Uce=({options:e,refresh:t})=>{const{t:r}=Ze(),[n,i]=m.useState([]),[s,o]=m.useState(!1),[l,u]=m.useState(!1),[c,d]=m.useState(null),[h,f]=m.useState(null),[p,g]=m.useState(!1),[y,b]=m.useState(!1),[x,v]=m.useState(!1),[E,_]=m.useState({url:"",description:"",route:"",color:"blue"}),[j,F]=m.useState(1),[k,U]=m.useState(10),[W,K]=m.useState([]),[$,O]=m.useState(!0),R=[{value:"blue",label:"blue"},{value:"green",label:"green"},{value:"cyan",label:"cyan"},{value:"purple",label:"purple"},{value:"pink",label:"pink"},{value:"red",label:"red"},{value:"orange",label:"orange"},{value:"amber",label:"amber"},{value:"yellow",label:"yellow"},{value:"lime",label:"lime"},{value:"light-green",label:"light-green"},{value:"teal",label:"teal"},{value:"light-blue",label:"light-blue"},{value:"indigo",label:"indigo"},{value:"violet",label:"violet"},{value:"grey",label:"grey"}],z=async(I,T)=>{const J=await Se.put("/api/option/",{key:I,value:T}),{success:ve,message:Z}=J.data;ve?(Pe("API信息已更新"),t&&t()):q(Z)},H=async()=>{try{b(!0);const I=JSON.stringify(n);await z("console_setting.api_info",I),v(!1)}catch(I){console.error("API信息更新失败",I),q("API信息更新失败")}finally{b(!1)}},B=()=>{f(null),_({url:"",description:"",route:"",color:"blue"}),o(!0)},Y=I=>{f(I),_({url:I.url,description:I.description,route:I.route,color:I.color}),o(!0)},P=I=>{d(I),u(!0)},le=()=>{if(c){const I=n.filter(T=>T.id!==c.id);i(I),v(!0),Pe("API信息已删除,请及时点击“保存设置”进行保存")}u(!1),d(null)},be=async()=>{if(!E.url||!E.route||!E.description){q("请填写完整的API信息");return}try{g(!0);let I;if(h)I=n.map(T=>T.id===h.id?{...T,...E}:T);else{const J={id:Math.max(...n.map(ve=>ve.id),0)+1,...E};I=[...n,J]}i(I),v(!0),o(!1),Pe(h?"API信息已更新,请及时点击“保存设置”进行保存":"API信息已添加,请及时点击“保存设置”进行保存")}catch(I){q("操作失败: "+I.message)}finally{g(!1)}},V=I=>{if(!I){i([]);return}try{const T=JSON.parse(I);i(Array.isArray(T)?T:[])}catch(T){console.error("解析API信息失败:",T),i([])}};m.useEffect(()=>{const I=e["console_setting.api_info"]??e.ApiInfo;I!==void 0&&V(I)},[e["console_setting.api_info"],e.ApiInfo]),m.useEffect(()=>{const I=e["console_setting.api_info_enabled"];O(I===void 0?!0:I==="true"||I===!0)},[e["console_setting.api_info_enabled"]]);const te=async I=>{const T=I?"true":"false";try{const J=await Se.put("/api/option/",{key:"console_setting.api_info_enabled",value:T});J.data.success?(O(I),Pe(r("设置已保存")),t==null||t()):q(J.data.message)}catch(J){q(J.message)}},de=[{title:"ID",dataIndex:"id"},{title:r("API地址"),dataIndex:"url",render:(I,T)=>a.jsx(ye,{color:T.color,shape:"circle",style:{maxWidth:"280px"},children:I})},{title:r("线路描述"),dataIndex:"route",render:(I,T)=>a.jsx(ye,{shape:"circle",children:I})},{title:r("说明"),dataIndex:"description",ellipsis:!0,render:(I,T)=>a.jsx(ye,{shape:"circle",children:I||"-"})},{title:r("颜色"),dataIndex:"color",render:I=>a.jsx(dr,{size:"extra-extra-small",color:I})},{title:r("操作"),fixed:"right",width:150,render:(I,T)=>a.jsxs(pt,{children:[a.jsx(X,{icon:a.jsx(iu,{size:14}),theme:"light",type:"tertiary",size:"small",onClick:()=>Y(T),children:r("编辑")}),a.jsx(X,{icon:a.jsx(Oa,{size:14}),type:"danger",theme:"light",size:"small",onClick:()=>P(T),children:r("删除")})]})}],ee=()=>{if(W.length===0){q("请先选择要删除的API信息");return}const I=n.filter(T=>!W.includes(T.id));i(I),K([]),v(!0),Pe(`已删除 ${W.length} 个API信息,请及时点击“保存设置”进行保存`)},ie=()=>a.jsxs("div",{className:"flex flex-col w-full",children:[a.jsx("div",{className:"mb-2",children:a.jsxs("div",{className:"flex items-center text-blue-500",children:[a.jsx(lo,{size:16,className:"mr-2"}),a.jsx(Vm,{children:r("API信息管理,可以配置多个API地址用于状态展示和负载均衡(最多50个)")})]})}),a.jsx(Ar,{margin:"12px"}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 w-full",children:[a.jsxs("div",{className:"flex gap-2 w-full md:w-auto order-2 md:order-1",children:[a.jsx(X,{theme:"light",type:"primary",icon:a.jsx(yd,{size:14}),className:"w-full md:w-auto",onClick:B,children:r("添加API")}),a.jsxs(X,{icon:a.jsx(Oa,{size:14}),type:"danger",theme:"light",onClick:ee,disabled:W.length===0,className:"w-full md:w-auto",children:[r("批量删除")," ",W.length>0&&`(${W.length})`]}),a.jsx(X,{icon:a.jsx(lf,{size:14}),onClick:H,loading:y,disabled:!x,type:"secondary",className:"w-full md:w-auto",children:r("保存设置")})]}),a.jsxs("div",{className:"order-1 md:order-2 flex items-center gap-2",children:[a.jsx(Jn,{checked:$,onChange:te}),a.jsx(Vm,{children:r($?"已启用":"已禁用")})]})]})]}),G=()=>{const I=(j-1)*k,T=I+k;return n.slice(I,T)},N={selectedRowKeys:W,onChange:(I,T)=>{K(I)},onSelect:(I,T,J)=>{console.log(`选择行: ${T}`,I)},onSelectAll:(I,T)=>{console.log(`全选: ${I}`,T)},getCheckboxProps:I=>({disabled:!1,name:I.id})};return a.jsxs(a.Fragment,{children:[a.jsx(M.Section,{text:ie(),children:a.jsx(Mr,{columns:de,dataSource:G(),rowSelection:N,rowKey:"id",scroll:{x:"max-content"},pagination:{currentPage:j,pageSize:k,total:n.length,showSizeChanger:!0,showQuickJumper:!0,formatPageText:I=>r("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:I.currentStart,end:I.currentEnd,total:n.length}),pageSizeOptions:["5","10","20","50"],onChange:(I,T)=>{F(I),U(T)},onShowSizeChange:(I,T)=>{F(1),U(T)}},size:"middle",loading:y,empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:r("暂无API信息"),style:{padding:30}}),className:"overflow-hidden"})}),a.jsx(Je,{title:r(h?"编辑API":"添加API"),visible:s,onOk:be,onCancel:()=>o(!1),okText:r("保存"),cancelText:r("取消"),confirmLoading:p,children:a.jsxs(M,{layout:"vertical",initValues:E,children:[a.jsx(M.Input,{field:"url",label:r("API地址"),placeholder:"https://api.example.com",rules:[{required:!0,message:r("请输入API地址")}],onChange:I=>_({...E,url:I})}),a.jsx(M.Input,{field:"route",label:r("线路描述"),placeholder:r("如:香港线路"),rules:[{required:!0,message:r("请输入线路描述")}],onChange:I=>_({...E,route:I})}),a.jsx(M.Input,{field:"description",label:r("说明"),placeholder:r("如:大带宽批量分析图片推荐"),rules:[{required:!0,message:r("请输入说明")}],onChange:I=>_({...E,description:I})}),a.jsx(M.Select,{field:"color",label:r("标识颜色"),optionList:R,onChange:I=>_({...E,color:I}),render:I=>a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.jsx(dr,{size:"extra-extra-small",color:I.value}),I.label]})})]},h?h.id:"new")}),a.jsx(Je,{title:r("确认删除"),visible:l,onOk:le,onCancel:()=>{u(!1),d(null)},okText:r("确认删除"),cancelText:r("取消"),type:"warning",okButtonProps:{type:"danger",theme:"solid"},children:a.jsx(Vm,{children:r("确定要删除此API信息吗?")})})]})},{Text:Gm}=Ie,Hce=({options:e,refresh:t})=>{const{t:r}=Ze(),[n,i]=m.useState([]),[s,o]=m.useState(!1),[l,u]=m.useState(!1),[c,d]=m.useState(!1),[h,f]=m.useState(null),[p,g]=m.useState(null),[y,b]=m.useState(!1),[x,v]=m.useState(!1),[E,_]=m.useState(!1),[j,F]=m.useState({content:"",publishDate:new Date,type:"default",extra:""}),[k,U]=m.useState(1),[W,K]=m.useState(10),[$,O]=m.useState([]),[R,z]=m.useState(!0),H=m.useRef(null),B=[{value:"default",label:r("默认")},{value:"ongoing",label:r("进行中")},{value:"success",label:r("成功")},{value:"warning",label:r("警告")},{value:"error",label:r("错误")}],Y=Z=>({default:"grey",ongoing:"blue",success:"green",warning:"orange",error:"red"})[Z]||"grey",P=[{title:r("内容"),dataIndex:"content",key:"content",render:Z=>a.jsx(Gt,{content:Z,position:"topLeft",showArrow:!0,children:a.jsx("div",{style:{maxWidth:"300px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Z})})},{title:r("发布时间"),dataIndex:"publishDate",key:"publishDate",width:180,render:Z=>a.jsxs("div",{children:[a.jsx("div",{style:{fontWeight:"bold"},children:aw(Z)}),a.jsx("div",{style:{fontSize:"12px",color:"var(--semi-color-text-2)",marginTop:"2px"},children:Z?hT(new Date(Z)):"-"})]})},{title:r("类型"),dataIndex:"type",key:"type",width:100,render:Z=>{var ge;return a.jsx(ye,{color:Y(Z),shape:"circle",children:((ge=B.find(De=>De.value===Z))==null?void 0:ge.label)||Z})}},{title:r("说明"),dataIndex:"extra",key:"extra",render:Z=>a.jsx(Gt,{content:Z||"-",showArrow:!0,children:a.jsx("div",{style:{maxWidth:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"var(--semi-color-text-2)"},children:Z||"-"})})},{title:r("操作"),key:"action",fixed:"right",width:150,render:(Z,ge)=>a.jsxs(pt,{children:[a.jsx(X,{icon:a.jsx(iu,{size:14}),theme:"light",type:"tertiary",size:"small",onClick:()=>te(ge),children:r("编辑")}),a.jsx(X,{icon:a.jsx(Oa,{size:14}),type:"danger",theme:"light",size:"small",onClick:()=>de(ge),children:r("删除")})]})}],le=async(Z,ge)=>{const De=await Se.put("/api/option/",{key:Z,value:ge}),{success:Oe,message:ae}=De.data;Oe?(Pe("系统公告已更新"),t&&t()):q(ae)},be=async()=>{try{v(!0);const Z=JSON.stringify(n);await le("console_setting.announcements",Z),_(!1)}catch(Z){console.error("系统公告更新失败",Z),q("系统公告更新失败")}finally{v(!1)}},V=()=>{g(null),F({content:"",publishDate:new Date,type:"default",extra:""}),o(!0)},te=Z=>{g(Z),F({content:Z.content,publishDate:Z.publishDate?new Date(Z.publishDate):new Date,type:Z.type||"default",extra:Z.extra||""}),o(!0)},de=Z=>{f(Z),u(!0)},ee=()=>{if(h){const Z=n.filter(ge=>ge.id!==h.id);i(Z),_(!0),Pe("公告已删除,请及时点击“保存设置”进行保存")}u(!1),f(null)},ie=async()=>{if(!j.content||!j.publishDate){q("请填写完整的公告信息");return}try{b(!0);const Z={...j,publishDate:j.publishDate.toISOString()};let ge;if(p)ge=n.map(De=>De.id===p.id?{...De,...Z}:De);else{const Oe={id:Math.max(...n.map(ae=>ae.id),0)+1,...Z};ge=[...n,Oe]}i(ge),_(!0),o(!1),Pe(p?"公告已更新,请及时点击“保存设置”进行保存":"公告已添加,请及时点击“保存设置”进行保存")}catch(Z){q("操作失败: "+Z.message)}finally{b(!1)}},G=Z=>{if(!Z){i([]);return}try{const ge=JSON.parse(Z),Oe=(Array.isArray(ge)?ge:[]).map((ae,we)=>({...ae,id:ae.id||we+1}));i(Oe)}catch(ge){console.error("解析系统公告失败:",ge),i([])}};m.useEffect(()=>{const Z=e["console_setting.announcements"]??e.Announcements;Z!==void 0&&G(Z)},[e["console_setting.announcements"],e.Announcements]),m.useEffect(()=>{const Z=e["console_setting.announcements_enabled"];z(Z===void 0?!0:Z==="true"||Z===!0)},[e["console_setting.announcements_enabled"]]);const N=async Z=>{const ge=Z?"true":"false";try{const De=await Se.put("/api/option/",{key:"console_setting.announcements_enabled",value:ge});De.data.success?(z(Z),Pe(r("设置已保存")),t==null||t()):q(De.data.message)}catch(De){q(De.message)}},I=()=>{if($.length===0){q("请先选择要删除的系统公告");return}const Z=n.filter(ge=>!$.includes(ge.id));i(Z),O([]),_(!0),Pe(`已删除 ${$.length} 个系统公告,请及时点击“保存设置”进行保存`)},T=()=>a.jsxs("div",{className:"flex flex-col w-full",children:[a.jsx("div",{className:"mb-2",children:a.jsxs("div",{className:"flex items-center text-blue-500",children:[a.jsx(Dg,{size:16,className:"mr-2"}),a.jsx(Gm,{children:r("系统公告管理,可以发布系统通知和重要消息(最多100个,前端显示最新20条)")})]})}),a.jsx(Ar,{margin:"12px"}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 w-full",children:[a.jsxs("div",{className:"flex gap-2 w-full md:w-auto order-2 md:order-1",children:[a.jsx(X,{theme:"light",type:"primary",icon:a.jsx(yd,{size:14}),className:"w-full md:w-auto",onClick:V,children:r("添加公告")}),a.jsxs(X,{icon:a.jsx(Oa,{size:14}),type:"danger",theme:"light",onClick:I,disabled:$.length===0,className:"w-full md:w-auto",children:[r("批量删除")," ",$.length>0&&`(${$.length})`]}),a.jsx(X,{icon:a.jsx(lf,{size:14}),onClick:be,loading:x,disabled:!E,type:"secondary",className:"w-full md:w-auto",children:r("保存设置")})]}),a.jsxs("div",{className:"order-1 md:order-2 flex items-center gap-2",children:[a.jsx(Jn,{checked:R,onChange:N}),a.jsx(Gm,{children:r(R?"已启用":"已禁用")})]})]})]}),J=()=>{const Z=[...n].sort((Oe,ae)=>{const we=new Date(Oe.publishDate).getTime();return new Date(ae.publishDate).getTime()-we}),ge=(k-1)*W,De=ge+W;return Z.slice(ge,De)},ve={selectedRowKeys:$,onChange:(Z,ge)=>{O(Z)},onSelect:(Z,ge,De)=>{console.log(`选择行: ${ge}`,Z)},onSelectAll:(Z,ge)=>{console.log(`全选: ${Z}`,ge)},getCheckboxProps:Z=>({disabled:!1,name:Z.id})};return a.jsxs(a.Fragment,{children:[a.jsx(M.Section,{text:T(),children:a.jsx(Mr,{columns:P,dataSource:J(),rowSelection:ve,rowKey:"id",scroll:{x:"max-content"},pagination:{currentPage:k,pageSize:W,total:n.length,showSizeChanger:!0,showQuickJumper:!0,formatPageText:Z=>r("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:Z.currentStart,end:Z.currentEnd,total:n.length}),pageSizeOptions:["5","10","20","50"],onChange:(Z,ge)=>{U(Z),K(ge)},onShowSizeChange:(Z,ge)=>{U(1),K(ge)}},size:"middle",loading:x,empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:r("暂无系统公告"),style:{padding:30}}),className:"overflow-hidden"})}),a.jsx(Je,{title:r(p?"编辑公告":"添加公告"),visible:s,onOk:ie,onCancel:()=>o(!1),okText:r("保存"),cancelText:r("取消"),confirmLoading:y,children:a.jsxs(M,{layout:"vertical",initValues:j,getFormApi:Z=>H.current=Z,children:[a.jsx(M.TextArea,{field:"content",label:r("公告内容"),placeholder:r("请输入公告内容(支持 Markdown/HTML)"),maxCount:500,rows:3,rules:[{required:!0,message:r("请输入公告内容")}],onChange:Z=>F({...j,content:Z})}),a.jsx(X,{theme:"light",type:"tertiary",size:"small",icon:a.jsx(Joe,{size:14}),style:{marginBottom:16},onClick:()=>d(!0),children:r("放大编辑")}),a.jsx(M.DatePicker,{field:"publishDate",label:r("发布日期"),type:"dateTime",rules:[{required:!0,message:r("请选择发布日期")}],onChange:Z=>F({...j,publishDate:Z})}),a.jsx(M.Select,{field:"type",label:r("公告类型"),optionList:B,onChange:Z=>F({...j,type:Z})}),a.jsx(M.Input,{field:"extra",label:r("说明信息"),placeholder:r("可选,公告的补充说明"),onChange:Z=>F({...j,extra:Z})})]},p?p.id:"new")}),a.jsx(Je,{title:r("确认删除"),visible:l,onOk:ee,onCancel:()=>{u(!1),f(null)},okText:r("确认删除"),cancelText:r("取消"),type:"warning",okButtonProps:{type:"danger",theme:"solid"},children:a.jsx(Gm,{children:r("确定要删除此公告吗?")})}),a.jsx(Je,{title:r("编辑公告内容"),visible:c,onOk:()=>{H.current&&H.current.setValue("content",j.content),d(!1)},onCancel:()=>d(!1),okText:r("确定"),cancelText:r("取消"),width:800,children:a.jsx(n6,{value:j.content,placeholder:r("请输入公告内容(支持 Markdown/HTML)"),maxCount:500,rows:15,style:{width:"100%"},onChange:Z=>F({...j,content:Z})})})]})},{Text:Km}=Ie,qce=({options:e,refresh:t})=>{const{t:r}=Ze(),[n,i]=m.useState([]),[s,o]=m.useState(!1),[l,u]=m.useState(!1),[c,d]=m.useState(null),[h,f]=m.useState(null),[p,g]=m.useState(!1),[y,b]=m.useState(!1),[x,v]=m.useState(!1),[E,_]=m.useState({question:"",answer:""}),[j,F]=m.useState(1),[k,U]=m.useState(10),[W,K]=m.useState([]),[$,O]=m.useState(!0),R=[{title:r("问题标题"),dataIndex:"question",key:"question",render:N=>a.jsx(Gt,{content:N,showArrow:!0,children:a.jsx("div",{style:{maxWidth:"300px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"bold"},children:N})})},{title:r("回答内容"),dataIndex:"answer",key:"answer",render:N=>a.jsx(Gt,{content:N,showArrow:!0,children:a.jsx("div",{style:{maxWidth:"400px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"var(--semi-color-text-1)"},children:N})})},{title:r("操作"),key:"action",fixed:"right",width:150,render:(N,I)=>a.jsxs(pt,{children:[a.jsx(X,{icon:a.jsx(iu,{size:14}),theme:"light",type:"tertiary",size:"small",onClick:()=>Y(I),children:r("编辑")}),a.jsx(X,{icon:a.jsx(Oa,{size:14}),type:"danger",theme:"light",size:"small",onClick:()=>P(I),children:r("删除")})]})}],z=async(N,I)=>{const T=await Se.put("/api/option/",{key:N,value:I}),{success:J,message:ve}=T.data;J?(Pe("常见问答已更新"),t&&t()):q(ve)},H=async()=>{try{b(!0);const N=JSON.stringify(n);await z("console_setting.faq",N),v(!1)}catch(N){console.error("常见问答更新失败",N),q("常见问答更新失败")}finally{b(!1)}},B=()=>{f(null),_({question:"",answer:""}),o(!0)},Y=N=>{f(N),_({question:N.question,answer:N.answer}),o(!0)},P=N=>{d(N),u(!0)},le=()=>{if(c){const N=n.filter(I=>I.id!==c.id);i(N),v(!0),Pe("问答已删除,请及时点击“保存设置”进行保存")}u(!1),d(null)},be=async()=>{if(!E.question||!E.answer){q("请填写完整的问答信息");return}try{g(!0);let N;if(h)N=n.map(I=>I.id===h.id?{...I,...E}:I);else{const T={id:Math.max(...n.map(J=>J.id),0)+1,...E};N=[...n,T]}i(N),v(!0),o(!1),Pe(h?"问答已更新,请及时点击“保存设置”进行保存":"问答已添加,请及时点击“保存设置”进行保存")}catch(N){q("操作失败: "+N.message)}finally{g(!1)}},V=N=>{if(!N){i([]);return}try{const I=JSON.parse(N),J=(Array.isArray(I)?I:[]).map((ve,Z)=>({...ve,id:ve.id||Z+1}));i(J)}catch(I){console.error("解析常见问答失败:",I),i([])}};m.useEffect(()=>{e["console_setting.faq"]!==void 0&&V(e["console_setting.faq"])},[e["console_setting.faq"]]),m.useEffect(()=>{const N=e["console_setting.faq_enabled"];O(N===void 0?!0:N==="true"||N===!0)},[e["console_setting.faq_enabled"]]);const te=async N=>{const I=N?"true":"false";try{const T=await Se.put("/api/option/",{key:"console_setting.faq_enabled",value:I});T.data.success?(O(N),Pe(r("设置已保存")),t==null||t()):q(T.data.message)}catch(T){q(T.message)}},de=()=>{if(W.length===0){q("请先选择要删除的常见问答");return}const N=n.filter(I=>!W.includes(I.id));i(N),K([]),v(!0),Pe(`已删除 ${W.length} 个常见问答,请及时点击“保存设置”进行保存`)},ee=()=>a.jsxs("div",{className:"flex flex-col w-full",children:[a.jsx("div",{className:"mb-2",children:a.jsxs("div",{className:"flex items-center text-blue-500",children:[a.jsx(_i,{size:16,className:"mr-2"}),a.jsx(Km,{children:r("常见问答管理,为用户提供常见问题的答案(最多50个,前端显示最新20条)")})]})}),a.jsx(Ar,{margin:"12px"}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 w-full",children:[a.jsxs("div",{className:"flex gap-2 w-full md:w-auto order-2 md:order-1",children:[a.jsx(X,{theme:"light",type:"primary",icon:a.jsx(yd,{size:14}),className:"w-full md:w-auto",onClick:B,children:r("添加问答")}),a.jsxs(X,{icon:a.jsx(Oa,{size:14}),type:"danger",theme:"light",onClick:de,disabled:W.length===0,className:"w-full md:w-auto",children:[r("批量删除")," ",W.length>0&&`(${W.length})`]}),a.jsx(X,{icon:a.jsx(lf,{size:14}),onClick:H,loading:y,disabled:!x,type:"secondary",className:"w-full md:w-auto",children:r("保存设置")})]}),a.jsxs("div",{className:"order-1 md:order-2 flex items-center gap-2",children:[a.jsx(Jn,{checked:$,onChange:te}),a.jsx(Km,{children:r($?"已启用":"已禁用")})]})]})]}),ie=()=>{const N=(j-1)*k,I=N+k;return n.slice(N,I)},G={selectedRowKeys:W,onChange:(N,I)=>{K(N)},onSelect:(N,I,T)=>{console.log(`选择行: ${I}`,N)},onSelectAll:(N,I)=>{console.log(`全选: ${N}`,I)},getCheckboxProps:N=>({disabled:!1,name:N.id})};return a.jsxs(a.Fragment,{children:[a.jsx(M.Section,{text:ee(),children:a.jsx(Mr,{columns:R,dataSource:ie(),rowSelection:G,rowKey:"id",scroll:{x:"max-content"},pagination:{currentPage:j,pageSize:k,total:n.length,showSizeChanger:!0,showQuickJumper:!0,formatPageText:N=>r("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:N.currentStart,end:N.currentEnd,total:n.length}),pageSizeOptions:["5","10","20","50"],onChange:(N,I)=>{F(N),U(I)},onShowSizeChange:(N,I)=>{F(1),U(I)}},size:"middle",loading:y,empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:r("暂无常见问答"),style:{padding:30}}),className:"overflow-hidden"})}),a.jsx(Je,{title:r(h?"编辑问答":"添加问答"),visible:s,onOk:be,onCancel:()=>o(!1),okText:r("保存"),cancelText:r("取消"),confirmLoading:p,width:800,children:a.jsxs(M,{layout:"vertical",initValues:E,children:[a.jsx(M.Input,{field:"question",label:r("问题标题"),placeholder:r("请输入问题标题"),maxLength:200,rules:[{required:!0,message:r("请输入问题标题")}],onChange:N=>_({...E,question:N})}),a.jsx(M.TextArea,{field:"answer",label:r("回答内容"),placeholder:r("请输入回答内容(支持 Markdown/HTML)"),maxCount:1e3,rows:6,rules:[{required:!0,message:r("请输入回答内容")}],onChange:N=>_({...E,answer:N})})]},h?h.id:"new")}),a.jsx(Je,{title:r("确认删除"),visible:l,onOk:le,onCancel:()=>{u(!1),d(null)},okText:r("确认删除"),cancelText:r("取消"),type:"warning",okButtonProps:{type:"danger",theme:"solid"},children:a.jsx(Km,{children:r("确定要删除此问答吗?")})})]})},{Text:Ym}=Ie,Wce=({options:e,refresh:t})=>{const{t:r}=Ze(),[n,i]=m.useState([]),[s,o]=m.useState(!1),[l,u]=m.useState(!1),[c,d]=m.useState(null),[h,f]=m.useState(null),[p,g]=m.useState(!1),[y,b]=m.useState(!1),[x,v]=m.useState(!1),[E,_]=m.useState({categoryName:"",url:"",slug:""}),[j,F]=m.useState(1),[k,U]=m.useState(10),[W,K]=m.useState([]),[$,O]=m.useState(!0),R=[{title:r("分类名称"),dataIndex:"categoryName",key:"categoryName",render:N=>a.jsx("div",{style:{fontWeight:"bold",color:"var(--semi-color-text-0)"},children:N})},{title:r("Uptime Kuma地址"),dataIndex:"url",key:"url",render:N=>a.jsx("div",{style:{maxWidth:"300px",wordBreak:"break-all",fontFamily:"monospace",color:"var(--semi-color-primary)"},children:N})},{title:r("状态页面Slug"),dataIndex:"slug",key:"slug",render:N=>a.jsx("div",{style:{fontFamily:"monospace",color:"var(--semi-color-text-1)"},children:N})},{title:r("操作"),key:"action",fixed:"right",width:150,render:(N,I)=>a.jsxs(pt,{children:[a.jsx(X,{icon:a.jsx(iu,{size:14}),theme:"light",type:"tertiary",size:"small",onClick:()=>Y(I),children:r("编辑")}),a.jsx(X,{icon:a.jsx(Oa,{size:14}),type:"danger",theme:"light",size:"small",onClick:()=>P(I),children:r("删除")})]})}],z=async(N,I)=>{const T=await Se.put("/api/option/",{key:N,value:I}),{success:J,message:ve}=T.data;J?(Pe("Uptime Kuma配置已更新"),t&&t()):q(ve)},H=async()=>{try{b(!0);const N=JSON.stringify(n);await z("console_setting.uptime_kuma_groups",N),v(!1)}catch(N){console.error("Uptime Kuma配置更新失败",N),q("Uptime Kuma配置更新失败")}finally{b(!1)}},B=()=>{f(null),_({categoryName:"",url:"",slug:""}),o(!0)},Y=N=>{f(N),_({categoryName:N.categoryName,url:N.url,slug:N.slug}),o(!0)},P=N=>{d(N),u(!0)},le=()=>{if(c){const N=n.filter(I=>I.id!==c.id);i(N),v(!0),Pe("分类已删除,请及时点击“保存设置”进行保存")}u(!1),d(null)},be=async()=>{if(!E.categoryName||!E.url||!E.slug){q("请填写完整的分类信息");return}try{new URL(E.url)}catch{q("请输入有效的URL地址");return}if(!/^[a-zA-Z0-9_-]+$/.test(E.slug)){q("Slug只能包含字母、数字、下划线和连字符");return}try{g(!0);let N;if(h)N=n.map(I=>I.id===h.id?{...I,...E}:I);else{const T={id:Math.max(...n.map(J=>J.id),0)+1,...E};N=[...n,T]}i(N),v(!0),o(!1),Pe(h?"分类已更新,请及时点击“保存设置”进行保存":"分类已添加,请及时点击“保存设置”进行保存")}catch(N){q("操作失败: "+N.message)}finally{g(!1)}},V=N=>{if(!N){i([]);return}try{const I=JSON.parse(N),J=(Array.isArray(I)?I:[]).map((ve,Z)=>({...ve,id:ve.id||Z+1}));i(J)}catch(I){console.error("解析Uptime Kuma配置失败:",I),i([])}};m.useEffect(()=>{const N=e["console_setting.uptime_kuma_groups"];N!==void 0&&V(N)},[e["console_setting.uptime_kuma_groups"]]),m.useEffect(()=>{const N=e["console_setting.uptime_kuma_enabled"];O(N===void 0?!0:N==="true"||N===!0)},[e["console_setting.uptime_kuma_enabled"]]);const te=async N=>{const I=N?"true":"false";try{const T=await Se.put("/api/option/",{key:"console_setting.uptime_kuma_enabled",value:I});T.data.success?(O(N),Pe(r("设置已保存")),t==null||t()):q(T.data.message)}catch(T){q(T.message)}},de=()=>{if(W.length===0){q("请先选择要删除的分类");return}const N=n.filter(I=>!W.includes(I.id));i(N),K([]),v(!0),Pe(`已删除 ${W.length} 个分类,请及时点击“保存设置”进行保存`)},ee=()=>a.jsxs("div",{className:"flex flex-col w-full",children:[a.jsx("div",{className:"mb-2",children:a.jsxs("div",{className:"flex items-center text-blue-500",children:[a.jsx(qS,{size:16,className:"mr-2"}),a.jsx(Ym,{children:r("Uptime Kuma监控分类管理,可以配置多个监控分类用于服务状态展示(最多20个)")})]})}),a.jsx(Ar,{margin:"12px"}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 w-full",children:[a.jsxs("div",{className:"flex gap-2 w-full md:w-auto order-2 md:order-1",children:[a.jsx(X,{theme:"light",type:"primary",icon:a.jsx(yd,{size:14}),className:"w-full md:w-auto",onClick:B,children:r("添加分类")}),a.jsxs(X,{icon:a.jsx(Oa,{size:14}),type:"danger",theme:"light",onClick:de,disabled:W.length===0,className:"w-full md:w-auto",children:[r("批量删除")," ",W.length>0&&`(${W.length})`]}),a.jsx(X,{icon:a.jsx(lf,{size:14}),onClick:H,loading:y,disabled:!x,type:"secondary",className:"w-full md:w-auto",children:r("保存设置")})]}),a.jsxs("div",{className:"order-1 md:order-2 flex items-center gap-2",children:[a.jsx(Jn,{checked:$,onChange:te}),a.jsx(Ym,{children:r($?"已启用":"已禁用")})]})]})]}),ie=()=>{const N=(j-1)*k,I=N+k;return n.slice(N,I)},G={selectedRowKeys:W,onChange:(N,I)=>{K(N)},onSelect:(N,I,T)=>{console.log(`选择行: ${I}`,N)},onSelectAll:(N,I)=>{console.log(`全选: ${N}`,I)},getCheckboxProps:N=>({disabled:!1,name:N.id})};return a.jsxs(a.Fragment,{children:[a.jsx(M.Section,{text:ee(),children:a.jsx(Mr,{columns:R,dataSource:ie(),rowSelection:G,rowKey:"id",scroll:{x:"max-content"},pagination:{currentPage:j,pageSize:k,total:n.length,showSizeChanger:!0,showQuickJumper:!0,formatPageText:N=>r("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:N.currentStart,end:N.currentEnd,total:n.length}),pageSizeOptions:["5","10","20","50"],onChange:(N,I)=>{F(N),U(I)},onShowSizeChange:(N,I)=>{F(1),U(I)}},size:"middle",loading:y,empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:r("暂无监控数据"),style:{padding:30}}),className:"overflow-hidden"})}),a.jsx(Je,{title:r(h?"编辑分类":"添加分类"),visible:s,onOk:be,onCancel:()=>o(!1),okText:r("保存"),cancelText:r("取消"),confirmLoading:p,width:600,children:a.jsxs(M,{layout:"vertical",initValues:E,children:[a.jsx(M.Input,{field:"categoryName",label:r("分类名称"),placeholder:r("请输入分类名称,如:OpenAI、Claude等"),maxLength:50,rules:[{required:!0,message:r("请输入分类名称")}],onChange:N=>_({...E,categoryName:N})}),a.jsx(M.Input,{field:"url",label:r("Uptime Kuma地址"),placeholder:r("请输入Uptime Kuma服务地址,如:https://status.example.com"),maxLength:500,rules:[{required:!0,message:r("请输入Uptime Kuma地址")}],onChange:N=>_({...E,url:N})}),a.jsx(M.Input,{field:"slug",label:r("状态页面Slug"),placeholder:r("请输入状态页面的Slug,如:my-status"),maxLength:100,rules:[{required:!0,message:r("请输入状态页面Slug")}],onChange:N=>_({...E,slug:N})})]},h?h.id:"new")}),a.jsx(Je,{title:r("确认删除"),visible:l,onOk:le,onCancel:()=>{u(!1),d(null)},okText:r("确认删除"),cancelText:r("取消"),type:"warning",okButtonProps:{type:"danger",theme:"solid"},children:a.jsx(Ym,{children:r("确定要删除此分类吗?")})})]})};function Vce(e){const{t}=Ze(),r=[{key:"hour",label:t("小时"),value:"hour"},{key:"day",label:t("天"),value:"day"},{key:"week",label:t("周"),value:"week"}],[n,i]=m.useState(!1),[s,o]=m.useState({DataExportEnabled:!1,DataExportInterval:"",DataExportDefaultTime:""}),l=m.useRef(),[u,c]=m.useState(s);function d(){const h=zn(s,u);if(!h.length)return en(t("你似乎并没有修改什么"));const f=h.map(p=>{let g="";return typeof s[p.key]=="boolean"?g=String(s[p.key]):g=s[p.key],Se.put("/api/option/",{key:p.key,value:g})});i(!0),Promise.all(f).then(p=>{if(f.length===1){if(p.includes(void 0))return}else if(f.length>1&&p.includes(void 0))return q(t("部分保存失败,请重试"));Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{i(!1)})}return m.useEffect(()=>{const h={};for(let f in e.options)Object.keys(s).includes(f)&&(h[f]=e.options[f]);o(h),c(structuredClone(h)),l.current.setValues(h),localStorage.setItem("data_export_default_time",String(s.DataExportDefaultTime))},[e.options]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:n,children:a.jsx(M,{values:s,getFormApi:h=>l.current=h,style:{marginBottom:15},children:a.jsxs(M.Section,{text:t("数据看板设置"),children:[a.jsx(Ge,{gutter:16,children:a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"DataExportEnabled",label:t("启用数据看板(实验性)"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:h=>{o({...s,DataExportEnabled:h})}})})}),a.jsxs(Ge,{children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{label:t("数据看板更新间隔"),step:1,min:1,suffix:t("分钟"),extraText:t("设置过短会影响数据库性能"),placeholder:t("数据看板更新间隔"),field:"DataExportInterval",onChange:h=>o({...s,DataExportInterval:String(h)})})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Select,{label:t("数据看板默认时间粒度"),optionList:r,field:"DataExportDefaultTime",extraText:t("仅修改展示粒度,统计精确到小时"),placeholder:t("数据看板默认时间粒度"),style:{width:180},onChange:h=>o({...s,DataExportDefaultTime:String(h)})})})]}),a.jsx(Ge,{children:a.jsx(X,{size:"default",onClick:d,children:t("保存数据看板设置")})})]})})})})}const Gce=()=>{let[e,t]=m.useState({"console_setting.api_info":"","console_setting.announcements":"","console_setting.faq":"","console_setting.uptime_kuma_groups":"","console_setting.api_info_enabled":"","console_setting.announcements_enabled":"","console_setting.faq_enabled":"","console_setting.uptime_kuma_enabled":"",ApiInfo:"",Announcements:"",FAQ:"",UptimeKumaUrl:"",UptimeKumaSlug:"",DataExportEnabled:!1,DataExportDefaultTime:"hour",DataExportInterval:5}),[r,n]=m.useState(!1);const[i,s]=m.useState(!1),o=async()=>{const d=await Se.get("/api/option/"),{success:h,message:f,data:p}=d.data;if(h){let g={};p.forEach(y=>{y.key in e&&(g[y.key]=y.value),y.key.endsWith("Enabled")&&y.key==="DataExportEnabled"&&(g[y.key]=La(y.value))}),t(g)}else q(f)};async function l(){try{n(!0),await o()}catch(d){q("刷新失败"),console.error(d)}finally{n(!1)}}m.useEffect(()=>{l()},[]);const u=m.useMemo(()=>["ApiInfo","Announcements","FAQ","UptimeKumaUrl","UptimeKumaSlug"].some(h=>e[h]),[e]);m.useEffect(()=>{u&&s(!0)},[u]);const c=async()=>{try{n(!0),await Se.post("/api/option/migrate_console_setting"),Pe("旧配置迁移完成"),await l(),s(!1)}catch(d){console.error(d),q("迁移失败: "+(d.message||"未知错误"))}finally{n(!1)}};return a.jsx(a.Fragment,{children:a.jsxs(Dt,{spinning:r,size:"large",children:[a.jsxs(Je,{title:"配置迁移确认",visible:i,onOk:c,onCancel:()=>s(!1),confirmLoading:r,okText:"确认迁移",cancelText:"取消",children:[a.jsx("p",{children:"检测到旧版本的配置数据,是否要迁移到新的配置格式?"}),a.jsxs("p",{style:{color:"#f57c00",marginTop:"10px"},children:[a.jsx("strong",{children:"注意:"}),"迁移过程中会自动处理数据格式转换,迁移完成后旧配置将被清除,请在迁移前在数据库中备份好旧配置。"]})]}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(Vce,{options:e,refresh:l})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(Hce,{options:e,refresh:l})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(Uce,{options:e,refresh:l})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(qce,{options:e,refresh:l})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(Wce,{options:e,refresh:l})})]})})};function Kce(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({GroupRatio:"",UserUsableGroups:"",GroupGroupRatio:"",AutoGroups:"",DefaultUseAutoGroup:!1}),o=m.useRef(),[l,u]=m.useState(i);async function c(){try{await o.current.validate().then(()=>{const d=zn(i,l);if(!d.length)return en(t("你似乎并没有修改什么"));const h=d.map(f=>{const p=typeof i[f.key]=="boolean"?String(i[f.key]):i[f.key];return Se.put("/api/option/",{key:f.key,value:p})});n(!0),Promise.all(h).then(f=>{if(f.includes(void 0))return q(h.length>1?t("部分保存失败,请重试"):t("保存失败"));for(let p=0;p<f.length;p++)if(!f[p].data.success)return q(f[p].data.message);Pe(t("保存成功")),e.refresh()}).catch(f=>{console.error("Unexpected error:",f),q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}).catch(()=>{q(t("请检查输入"))})}catch(d){q(t("请检查输入")),console.error(d)}}return m.useEffect(()=>{const d={};for(let h in e.options)Object.keys(i).includes(h)&&(d[h]=e.options[h]);s(d),u(structuredClone(d)),o.current.setValues(d)},[e.options]),a.jsxs(Dt,{spinning:r,children:[a.jsxs(M,{values:i,getFormApi:d=>o.current=d,style:{marginBottom:15},children:[a.jsx(Ge,{gutter:16,children:a.jsx(_e,{xs:24,sm:16,children:a.jsx(M.TextArea,{label:t("分组倍率"),placeholder:t("为一个 JSON 文本,键为分组名称,值为倍率"),extraText:t('分组倍率设置,可以在此处新增分组或修改现有分组的倍率,格式为 JSON 字符串,例如:{"vip": 0.5, "test": 1},表示 vip 分组的倍率为 0.5,test 分组的倍率为 1'),field:"GroupRatio",autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(d,h)=>Vr(h),message:t("不是合法的 JSON 字符串")}],onChange:d=>s({...i,GroupRatio:d})})})}),a.jsx(Ge,{gutter:16,children:a.jsx(_e,{xs:24,sm:16,children:a.jsx(M.TextArea,{label:t("用户可选分组"),placeholder:t("为一个 JSON 文本,键为分组名称,值为分组描述"),extraText:t('用户新建令牌时可选的分组,格式为 JSON 字符串,例如:{"vip": "VIP 用户", "test": "测试"},表示用户可以选择 vip 分组和 test 分组'),field:"UserUsableGroups",autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(d,h)=>Vr(h),message:t("不是合法的 JSON 字符串")}],onChange:d=>s({...i,UserUsableGroups:d})})})}),a.jsx(Ge,{gutter:16,children:a.jsx(_e,{xs:24,sm:16,children:a.jsx(M.TextArea,{label:t("分组特殊倍率"),placeholder:t("为一个 JSON 文本"),extraText:t('键为分组名称,值为另一个 JSON 对象,键为分组名称,值为该分组的用户的特殊分组倍率,例如:{"vip": {"default": 0.5, "test": 1}},表示 vip 分组的用户在使用default分组的令牌时倍率为0.5,使用test分组时倍率为1'),field:"GroupGroupRatio",autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(d,h)=>Vr(h),message:t("不是合法的 JSON 字符串")}],onChange:d=>s({...i,GroupGroupRatio:d})})})}),a.jsx(Ge,{gutter:16,children:a.jsx(_e,{xs:24,sm:16,children:a.jsx(M.TextArea,{label:t("自动分组auto,从第一个开始选择"),placeholder:t("为一个 JSON 文本"),field:"AutoGroups",autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(d,h)=>{if(!h||h.trim()==="")return!0;try{const f=JSON.parse(h);return Array.isArray(f)?f.every(p=>typeof p=="string"):!1}catch{return!1}},message:t('必须是有效的 JSON 字符串数组,例如:["g1","g2"]')}],onChange:d=>s({...i,AutoGroups:d})})})}),a.jsx(Ge,{gutter:16,children:a.jsx(_e,{span:16,children:a.jsx(M.Switch,{label:t("创建令牌默认选择auto分组,初始令牌也将设为auto(否则留空,为用户默认分组)"),field:"DefaultUseAutoGroup",onChange:d=>s({...i,DefaultUseAutoGroup:d})})})})]}),a.jsx(X,{onClick:c,children:t("保存分组倍率设置")})]})}function Yce(e){const[t,r]=m.useState(!1),[n,i]=m.useState({ModelPrice:"",ModelRatio:"",CacheRatio:"",CompletionRatio:"",ExposeRatioEnabled:!1}),s=m.useRef(),[o,l]=m.useState(n),{t:u}=Ze();async function c(){try{await s.current.validate().then(()=>{const h=zn(n,o);if(!h.length)return en(u("你似乎并没有修改什么"));const f=h.map(p=>{const g=typeof n[p.key]=="boolean"?String(n[p.key]):n[p.key];return Se.put("/api/option/",{key:p.key,value:g})});r(!0),Promise.all(f).then(p=>{if(p.includes(void 0))return q(f.length>1?u("部分保存失败,请重试"):u("保存失败"));for(let g=0;g<p.length;g++)if(!p[g].data.success)return q(p[g].data.message);Pe(u("保存成功")),e.refresh()}).catch(p=>{console.error("Unexpected error:",p),q(u("保存失败,请重试"))}).finally(()=>{r(!1)})}).catch(()=>{q(u("请检查输入"))})}catch(h){q(u("请检查输入")),console.error(h)}}async function d(){try{let h=await Se.post("/api/option/rest_model_ratio");h.data.success?(Pe(h.data.message),e.refresh()):q(h.data.message)}catch(h){q(h)}}return m.useEffect(()=>{const h={};for(let f in e.options)Object.keys(n).includes(f)&&(h[f]=e.options[f]);i(h),l(structuredClone(h)),s.current.setValues(h)},[e.options]),a.jsxs(Dt,{spinning:t,children:[a.jsxs(M,{values:n,getFormApi:h=>s.current=h,style:{marginBottom:15},children:[a.jsx(Ge,{gutter:16,children:a.jsx(_e,{xs:24,sm:16,children:a.jsx(M.TextArea,{label:u("模型固定价格"),extraText:u("一次调用消耗多少刀,优先级大于模型倍率"),placeholder:u('为一个 JSON 文本,键为模型名称,值为一次调用消耗多少刀,比如 "gpt-4-gizmo-*": 0.1,一次消耗0.1刀'),field:"ModelPrice",autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(h,f)=>Vr(f),message:"不是合法的 JSON 字符串"}],onChange:h=>i({...n,ModelPrice:h})})})}),a.jsx(Ge,{gutter:16,children:a.jsx(_e,{xs:24,sm:16,children:a.jsx(M.TextArea,{label:u("模型倍率"),placeholder:u("为一个 JSON 文本,键为模型名称,值为倍率"),field:"ModelRatio",autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(h,f)=>Vr(f),message:"不是合法的 JSON 字符串"}],onChange:h=>i({...n,ModelRatio:h})})})}),a.jsx(Ge,{gutter:16,children:a.jsx(_e,{xs:24,sm:16,children:a.jsx(M.TextArea,{label:u("提示缓存倍率"),placeholder:u("为一个 JSON 文本,键为模型名称,值为倍率"),field:"CacheRatio",autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(h,f)=>Vr(f),message:"不是合法的 JSON 字符串"}],onChange:h=>i({...n,CacheRatio:h})})})}),a.jsx(Ge,{gutter:16,children:a.jsx(_e,{xs:24,sm:16,children:a.jsx(M.TextArea,{label:u("模型补全倍率(仅对自定义模型有效)"),extraText:u("仅对自定义模型有效"),placeholder:u("为一个 JSON 文本,键为模型名称,值为倍率"),field:"CompletionRatio",autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(h,f)=>Vr(f),message:"不是合法的 JSON 字符串"}],onChange:h=>i({...n,CompletionRatio:h})})})}),a.jsx(Ge,{gutter:16,children:a.jsx(_e,{span:16,children:a.jsx(M.Switch,{label:u("暴露倍率接口"),field:"ExposeRatioEnabled",onChange:h=>i({...n,ExposeRatioEnabled:h})})})})]}),a.jsxs(pt,{children:[a.jsx(X,{onClick:c,children:u("保存模型倍率设置")}),a.jsx(SB,{title:u("确定重置模型倍率吗?"),content:u("此修改将不可逆"),okType:"danger",position:"top",onConfirm:d,children:a.jsx(X,{type:"danger",children:u("重置模型倍率")})})]})]})}function Zce(e){const{t}=Ze(),[r,n]=m.useState([]),[i,s]=m.useState(!1),[o,l]=m.useState(null),[u,c]=m.useState(""),[d,h]=m.useState(1),[f,p]=m.useState(!1),[g,y]=m.useState("per-token"),[b,x]=m.useState("ratio"),[v,E]=m.useState(!1),_=m.useRef(null),j=10;Yo(),m.useEffect(()=>{try{const V=JSON.parse(e.options.ModelPrice||"{}"),te=JSON.parse(e.options.ModelRatio||"{}"),de=JSON.parse(e.options.CompletionRatio||"{}"),ee=new Set([...Object.keys(V),...Object.keys(te),...Object.keys(de)]),ie=Array.from(ee).map(G=>{const N=V[G]===void 0?"":V[G],I=te[G]===void 0?"":te[G],T=de[G]===void 0?"":de[G];return{name:G,price:N,ratio:I,completionRatio:T,hasConflict:N!==""&&(I!==""||T!=="")}});n(ie)}catch(V){console.error("JSON解析错误:",V)}},[e.options]);const F=(V,te,de)=>{const ee=(te-1)*de,ie=ee+de;return V.slice(ee,ie)},k=r.filter(V=>{const te=u?V.name.toLowerCase().includes(u.toLowerCase()):!0,de=v?V.hasConflict:!0;return te&&de}),U=F(k,d,j),W=async()=>{p(!0);const V={ModelPrice:{},ModelRatio:{},CompletionRatio:{}};let te="";try{r.forEach(G=>{te=G.name,G.price!==""?V.ModelPrice[G.name]=parseFloat(G.price):(G.ratio!==""&&(V.ModelRatio[G.name]=parseFloat(G.ratio)),G.completionRatio!==""&&(V.CompletionRatio[G.name]=parseFloat(G.completionRatio)))});const de={ModelPrice:JSON.stringify(V.ModelPrice,null,2),ModelRatio:JSON.stringify(V.ModelRatio,null,2),CompletionRatio:JSON.stringify(V.CompletionRatio,null,2)},ee=Object.entries(de).map(([G,N])=>Se.put("/api/option/",{key:G,value:N})),ie=await Promise.all(ee);if(ee.length===1){if(ie.includes(void 0))return}else if(ee.length>1&&ie.includes(void 0))return q("部分保存失败,请重试");for(const G of ie)if(!G.data.success)return q(G.data.message);Pe("保存成功"),e.refresh()}catch(de){console.error("保存失败:",de),q("保存失败,请重试")}finally{p(!1)}},K=[{title:t("模型名称"),dataIndex:"name",key:"name",render:(V,te)=>a.jsxs("span",{children:[V,te.hasConflict&&a.jsx(ye,{color:"red",shape:"circle",className:"ml-2",children:t("矛盾")})]})},{title:t("模型固定价格"),dataIndex:"price",key:"price",render:(V,te)=>a.jsx(Lt,{value:V,placeholder:t("按量计费"),onChange:de=>$(te.name,"price",de)})},{title:t("模型倍率"),dataIndex:"ratio",key:"ratio",render:(V,te)=>a.jsx(Lt,{value:V,placeholder:te.price!==""?t("模型倍率"):t("默认补全倍率"),disabled:te.price!=="",onChange:de=>$(te.name,"ratio",de)})},{title:t("补全倍率"),dataIndex:"completionRatio",key:"completionRatio",render:(V,te)=>a.jsx(Lt,{value:V,placeholder:te.price!==""?t("补全倍率"):t("默认补全倍率"),disabled:te.price!=="",onChange:de=>$(te.name,"completionRatio",de)})},{title:t("操作"),key:"action",render:(V,te)=>a.jsxs(pt,{children:[a.jsx(X,{type:"primary",icon:a.jsx(FB,{}),onClick:()=>be(te)}),a.jsx(X,{icon:a.jsx(lh,{}),type:"danger",onClick:()=>O(te.name)})]})}],$=(V,te,de)=>{if(isNaN(de)){q("请输入数字");return}n(ee=>ee.map(ie=>{if(ie.name!==V)return ie;const G={...ie,[te]:de};return G.hasConflict=G.price!==""&&(G.ratio!==""||G.completionRatio!==""),G}))},O=V=>{n(te=>te.filter(de=>de.name!==V))},R=V=>V/2,z=(V,te)=>!V||V==="0"?(q("模型价格不能为0"),""):te/V,H=V=>{let te={...o||{},tokenPrice:V,ratio:0};if(!isNaN(V)&&V!==""){const de=parseFloat(V),ee=R(de);te.ratio=ee}l(te)},B=V=>{let te={...o||{},completionTokenPrice:V,completionRatio:0};if(!isNaN(V)&&V!==""&&(o!=null&&o.tokenPrice)){const de=parseFloat(V),ee=parseFloat(o.tokenPrice);if(ee>0){const ie=z(ee,de);te.completionRatio=ie}}l(te)},Y=V=>{const te=r.findIndex(de=>de.name===V.name);if(te>=0)n(de=>de.map((ee,ie)=>{if(ie!==te)return ee;const G={name:V.name,price:V.price||"",ratio:V.ratio||"",completionRatio:V.completionRatio||""};return G.hasConflict=G.price!==""&&(G.ratio!==""||G.completionRatio!==""),G})),s(!1),Pe(t("更新成功"));else{if(r.some(de=>de.name===V.name)){q(t("模型名称已存在"));return}n(de=>{const ee={name:V.name,price:V.price||"",ratio:V.ratio||"",completionRatio:V.completionRatio||""};return ee.hasConflict=ee.price!==""&&(ee.ratio!==""||ee.completionRatio!==""),[ee,...de]}),s(!1),Pe(t("添加成功"))}},P=V=>V*2,le=()=>{l(null),y("per-token"),x("ratio")},be=V=>{let te="per-token",de="ratio";V.price!==""?te="per-request":te="per-token",y(te),x(de);const ee={...V};V.ratio&&(ee.tokenPrice=P(parseFloat(V.ratio)).toString(),V.completionRatio&&(ee.completionTokenPrice=(parseFloat(ee.tokenPrice)*parseFloat(V.completionRatio)).toString())),l(ee),s(!0),setTimeout(()=>{if(_.current){const ie={name:ee.name};te==="per-request"?ie.priceInput=ee.price:te==="per-token"&&(ie.ratioInput=ee.ratio,ie.completionRatioInput=ee.completionRatio,ie.modelTokenPrice=ee.tokenPrice,ie.completionTokenPrice=ee.completionTokenPrice),_.current.setValues(ie)}},0)};return a.jsxs(a.Fragment,{children:[a.jsxs(pt,{vertical:!0,align:"start",style:{width:"100%"},children:[a.jsxs(pt,{className:"mt-2",children:[a.jsx(X,{icon:a.jsx(Ph,{}),onClick:()=>{le(),s(!0)},children:t("添加模型")}),a.jsx(X,{type:"primary",icon:a.jsx(ys,{}),onClick:W,children:t("应用更改")}),a.jsx(Lt,{prefix:a.jsx(Cr,{}),placeholder:t("搜索模型名称"),value:u,onChange:V=>{c(V),h(1)},style:{width:200},showClear:!0}),a.jsx(Ln,{checked:v,onChange:V=>{E(V.target.checked),h(1)},children:t("仅显示矛盾倍率")})]}),a.jsx(Mr,{columns:K,dataSource:U,pagination:{currentPage:d,pageSize:j,total:k.length,onPageChange:V=>h(V),formatPageText:V=>t("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:V.currentStart,end:V.currentEnd,total:k.length}),showTotal:!0,showSizeChanger:!1}})]}),a.jsx(Je,{title:o&&o.name&&r.some(V=>V.name===o.name)?t("编辑模型"):t("添加模型"),visible:i,onCancel:()=>{le(),s(!1)},onOk:()=>{if(o){const V={...o};if(g==="per-token"&&b==="token-price"&&o.tokenPrice){const te=parseFloat(o.tokenPrice);if(V.ratio=(te/2).toString(),o.completionTokenPrice&&o.tokenPrice){const de=parseFloat(o.completionTokenPrice),ee=parseFloat(o.tokenPrice);ee>0&&(V.completionRatio=(de/ee).toString())}}g==="per-token"?V.price="":(V.ratio="",V.completionRatio=""),Y(V)}},children:a.jsxs(M,{getFormApi:V=>_.current=V,children:[a.jsx(M.Input,{field:"name",label:t("模型名称"),placeholder:"strawberry",required:!0,disabled:o&&o.name&&r.some(V=>V.name===o.name),onChange:V=>l(te=>({...te,name:V}))}),a.jsx(M.Section,{text:t("定价模式"),children:a.jsx("div",{style:{marginBottom:"16px"},children:a.jsxs(C5,{type:"button",value:g,onChange:V=>{const te=V.target.value;if(y(te),o){const de={...o};if(_.current){const ee={name:de.name};te==="per-request"?ee.priceInput=de.price||"":te==="per-token"&&(ee.ratioInput=de.ratio||"",ee.completionRatioInput=de.completionRatio||"",ee.modelTokenPrice=de.tokenPrice||"",ee.completionTokenPrice=de.completionTokenPrice||""),_.current.setValues(ee)}l(de)}},children:[a.jsx(Ui,{value:"per-token",children:t("按量计费")}),a.jsx(Ui,{value:"per-request",children:t("按次计费")})]})})}),g==="per-token"&&a.jsxs(a.Fragment,{children:[a.jsx(M.Section,{text:t("价格设置方式"),children:a.jsx("div",{style:{marginBottom:"16px"},children:a.jsxs(C5,{type:"button",value:b,onChange:V=>{const te=V.target.value,de=b;if(x(te),o){const ee={...o};if(de==="ratio"&&te==="token-price"&&ee.ratio&&(ee.tokenPrice=P(parseFloat(ee.ratio)).toString(),ee.completionRatio&&(ee.completionTokenPrice=(parseFloat(ee.tokenPrice)*parseFloat(ee.completionRatio)).toString())),_.current){const ie={};te==="ratio"?(ie.ratioInput=ee.ratio||"",ie.completionRatioInput=ee.completionRatio||""):te==="token-price"&&(ie.modelTokenPrice=ee.tokenPrice||"",ie.completionTokenPrice=ee.completionTokenPrice||""),_.current.setValues(ie)}l(ee)}},children:[a.jsx(Ui,{value:"ratio",children:t("按倍率设置")}),a.jsx(Ui,{value:"token-price",children:t("按价格设置")})]})})}),b==="ratio"&&a.jsxs(a.Fragment,{children:[a.jsx(M.Input,{field:"ratioInput",label:t("模型倍率"),placeholder:t("输入模型倍率"),onChange:V=>l(te=>({...te||{},ratio:V})),initValue:(o==null?void 0:o.ratio)||""}),a.jsx(M.Input,{field:"completionRatioInput",label:t("补全倍率"),placeholder:t("输入补全倍率"),onChange:V=>l(te=>({...te||{},completionRatio:V})),initValue:(o==null?void 0:o.completionRatio)||""})]}),b==="token-price"&&a.jsxs(a.Fragment,{children:[a.jsx(M.Input,{field:"modelTokenPrice",label:t("输入价格"),onChange:V=>{H(V)},initValue:(o==null?void 0:o.tokenPrice)||"",suffix:t("$/1M tokens")}),a.jsx(M.Input,{field:"completionTokenPrice",label:t("输出价格"),onChange:V=>{B(V)},initValue:(o==null?void 0:o.completionTokenPrice)||"",suffix:t("$/1M tokens")})]})]}),g==="per-request"&&a.jsx(M.Input,{field:"priceInput",label:t("固定价格(每次)"),placeholder:t("输入每次价格"),onChange:V=>l(te=>({...te||{},price:V})),initValue:(o==null?void 0:o.price)||""})]})})]})}function Xce(e){const{t}=Ze(),[r,n]=m.useState([]),[i,s]=m.useState(!1),[o,l]=m.useState(!1),[u,c]=m.useState(null),[d,h]=m.useState(""),[f,p]=m.useState(1),[g,y]=m.useState(10),[b,x]=m.useState(!1),[v,E]=m.useState([]),[_,j]=m.useState([]),[F,k]=m.useState("ratio"),[U,W]=m.useState(""),[K,$]=m.useState(""),[O,R]=m.useState(""),{Text:z}=Ie,H=[10,20,50,100],B=async()=>{try{const I=await Se.get("/api/channel/models_enabled"),{success:T,message:J,data:ve}=I.data;T?E(ve):q(J)}catch(I){console.error(t("获取启用模型失败:"),I),q(t("获取启用模型失败"))}};m.useEffect(()=>{B()},[]),m.useEffect(()=>{try{const I=JSON.parse(e.options.ModelPrice||"{}"),T=JSON.parse(e.options.ModelRatio||"{}"),J=JSON.parse(e.options.CompletionRatio||"{}"),Z=v.filter(ge=>{const De=I[ge]!==void 0,Oe=T[ge]!==void 0;return!De&&!Oe}).map(ge=>({name:ge,price:I[ge]||"",ratio:T[ge]||"",completionRatio:J[ge]||""}));n(Z),j([])}catch(I){console.error(t("JSON解析错误:"),I)}},[e.options,v]);const Y=(I,T,J)=>{const ve=(T-1)*J,Z=ve+J;return I.slice(ve,Z)},P=I=>{y(I);const T=Math.ceil(le.length/I);f>T&&p(T||1)},le=r.filter(I=>d?I.name.toLowerCase().includes(d.toLowerCase()):!0),be=Y(le,f,g),V=async()=>{x(!0);const I={ModelPrice:JSON.parse(e.options.ModelPrice||"{}"),ModelRatio:JSON.parse(e.options.ModelRatio||"{}"),CompletionRatio:JSON.parse(e.options.CompletionRatio||"{}")};try{r.forEach(Z=>{Z.price!==""?I.ModelPrice[Z.name]=parseFloat(Z.price):(Z.ratio!==""&&(I.ModelRatio[Z.name]=parseFloat(Z.ratio)),Z.completionRatio!==""&&(I.CompletionRatio[Z.name]=parseFloat(Z.completionRatio)))});const T={ModelPrice:JSON.stringify(I.ModelPrice,null,2),ModelRatio:JSON.stringify(I.ModelRatio,null,2),CompletionRatio:JSON.stringify(I.CompletionRatio,null,2)},J=Object.entries(T).map(([Z,ge])=>Se.put("/api/option/",{key:Z,value:ge})),ve=await Promise.all(J);if(J.length===1){if(ve.includes(void 0))return}else if(J.length>1&&ve.includes(void 0))return q(t("部分保存失败,请重试"));for(const Z of ve)if(!Z.data.success)return q(Z.data.message);Pe(t("保存成功")),e.refresh(),B()}catch(T){console.error(t("保存失败:"),T),q(t("保存失败,请重试"))}finally{x(!1)}},te=[{title:t("模型名称"),dataIndex:"name",key:"name"},{title:t("模型固定价格"),dataIndex:"price",key:"price",render:(I,T)=>a.jsx(Lt,{value:I,placeholder:t("按量计费"),onChange:J=>de(T.name,"price",J)})},{title:t("模型倍率"),dataIndex:"ratio",key:"ratio",render:(I,T)=>a.jsx(Lt,{value:I,placeholder:T.price!==""?t("模型倍率"):t("输入模型倍率"),disabled:T.price!=="",onChange:J=>de(T.name,"ratio",J)})},{title:t("补全倍率"),dataIndex:"completionRatio",key:"completionRatio",render:(I,T)=>a.jsx(Lt,{value:I,placeholder:T.price!==""?t("补全倍率"):t("输入补全倍率"),disabled:T.price!=="",onChange:J=>de(T.name,"completionRatio",J)})}],de=(I,T,J)=>{if(J!==""&&isNaN(J)){q(t("请输入数字"));return}n(ve=>ve.map(Z=>Z.name===I?{...Z,[T]:J}:Z))},ee=I=>{if(r.some(T=>T.name===I.name)){q(t("模型名称已存在"));return}n(T=>[{name:I.name,price:I.price||"",ratio:I.ratio||"",completionRatio:I.completionRatio||""},...T]),s(!1),Pe(t("添加成功"))},ie=()=>{if(_.length===0){q(t("请先选择需要批量设置的模型"));return}if(F==="bothRatio"){if(K===""||O===""){q(t("请输入模型倍率和补全倍率"));return}if(isNaN(K)||isNaN(O)){q(t("请输入有效的数字"));return}}else{if(U===""){q(t("请输入填充值"));return}if(isNaN(U)){q(t("请输入有效的数字"));return}}n(I=>I.map(T=>{if(_.includes(T.name)){if(F==="price")return{...T,price:U,ratio:"",completionRatio:""};if(F==="ratio")return{...T,price:"",ratio:U};if(F==="completionRatio")return{...T,price:"",completionRatio:U};if(F==="bothRatio")return{...T,price:"",ratio:K,completionRatio:O}}return T})),l(!1),jB.success({title:t("批量设置成功"),content:t("已为 {{count}} 个模型设置{{type}}",{count:_.length,type:t(F==="price"?"固定价格":F==="ratio"?"模型倍率":F==="completionRatio"?"补全倍率":"模型倍率和补全倍率")}),duration:3})},G=I=>{console.log(t("Changing batch type to:"),I),k(I),I!=="bothRatio"?W(""):($(""),R(""))},N={selectedRowKeys:_,onChange:I=>{j(I)}};return a.jsxs(a.Fragment,{children:[a.jsxs(pt,{vertical:!0,align:"start",style:{width:"100%"},children:[a.jsxs(pt,{className:"mt-2",children:[a.jsx(X,{icon:a.jsx(Ph,{}),onClick:()=>s(!0),children:t("添加模型")}),a.jsxs(X,{icon:a.jsx(S5,{}),type:"secondary",onClick:()=>l(!0),disabled:_.length===0,children:[t("批量设置")," (",_.length,")"]}),a.jsx(X,{type:"primary",icon:a.jsx(ys,{}),onClick:V,loading:b,children:t("应用更改")}),a.jsx(Lt,{prefix:a.jsx(Cr,{}),placeholder:t("搜索模型名称"),value:d,onChange:I=>{h(I),p(1)},style:{width:200}})]}),a.jsx(z,{children:t("此页面仅显示未设置价格或倍率的模型,设置后将自动从列表中移除")}),a.jsx(Mr,{columns:te,dataSource:be,rowSelection:N,rowKey:"name",pagination:{currentPage:f,pageSize:g,total:le.length,onPageChange:I=>p(I),onPageSizeChange:P,pageSizeOptions:H,formatPageText:I=>t("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:I.currentStart,end:I.currentEnd,total:le.length}),showTotal:!0,showSizeChanger:!0},empty:a.jsx("div",{style:{textAlign:"center",padding:"20px"},children:t("没有未设置的模型")})})]}),a.jsx(Je,{title:t("添加模型"),visible:i,onCancel:()=>s(!1),onOk:()=>{u&&ee(u)},children:a.jsxs(M,{children:[a.jsx(M.Input,{field:"name",label:t("模型名称"),placeholder:"strawberry",required:!0,onChange:I=>c(T=>({...T,name:I}))}),a.jsx(M.Switch,{field:"priceMode",label:a.jsxs(a.Fragment,{children:[t("定价模式"),":",u!=null&&u.priceMode?t("固定价格"):t("倍率模式")]}),onChange:I=>{c(T=>({...T,price:"",ratio:"",completionRatio:"",priceMode:I}))}}),u!=null&&u.priceMode?a.jsx(M.Input,{field:"price",label:t("固定价格(每次)"),placeholder:t("输入每次价格"),onChange:I=>c(T=>({...T,price:I}))}):a.jsxs(a.Fragment,{children:[a.jsx(M.Input,{field:"ratio",label:t("模型倍率"),placeholder:t("输入模型倍率"),onChange:I=>c(T=>({...T,ratio:I}))}),a.jsx(M.Input,{field:"completionRatio",label:t("补全倍率"),placeholder:t("输入补全价格"),onChange:I=>c(T=>({...T,completionRatio:I}))})]})]})}),a.jsx(Je,{title:t("批量设置模型参数"),visible:o,onCancel:()=>l(!1),onOk:ie,width:500,children:a.jsxs(M,{children:[a.jsx(M.Section,{text:t("设置类型"),children:a.jsx("div",{style:{marginBottom:"16px"},children:a.jsxs(pt,{children:[a.jsx(Ui,{checked:F==="price",onChange:()=>G("price"),children:t("固定价格")}),a.jsx(Ui,{checked:F==="ratio",onChange:()=>G("ratio"),children:t("模型倍率")}),a.jsx(Ui,{checked:F==="completionRatio",onChange:()=>G("completionRatio"),children:t("补全倍率")}),a.jsx(Ui,{checked:F==="bothRatio",onChange:()=>G("bothRatio"),children:t("模型倍率和补全倍率同时设置")})]})})}),F==="bothRatio"?a.jsxs(a.Fragment,{children:[a.jsx(M.Input,{field:"batchRatioValue",label:t("模型倍率值"),placeholder:t("请输入模型倍率"),value:K,onChange:I=>$(I)}),a.jsx(M.Input,{field:"batchCompletionRatioValue",label:t("补全倍率值"),placeholder:t("请输入补全倍率"),value:O,onChange:I=>R(I)})]}):a.jsx(M.Input,{field:"batchFillValue",label:t(F==="price"?"固定价格值":F==="ratio"?"模型倍率值":"补全倍率值"),placeholder:t("请输入数值"),value:U,onChange:I=>W(I)}),a.jsxs(z,{type:"tertiary",children:[t("将为选中的 ")," ",a.jsx(z,{strong:!0,children:_.length})," ",t(" 个模型设置相同的值")]}),a.jsx("div",{style:{marginTop:"8px"},children:a.jsxs(z,{type:"tertiary",children:[t("当前设置类型: ")," ",a.jsx(z,{strong:!0,children:t(F==="price"?"固定价格":F==="ratio"?"模型倍率":F==="completionRatio"?"补全倍率":"模型倍率和补全倍率")})]})})]})})]})}const Jce=m.forwardRef(({visible:e,onCancel:t,onOk:r,allChannels:n,selectedChannelIds:i,setSelectedChannelIds:s,channelEndpoints:o,updateChannelEndpoint:l,t:u},c)=>{const[d,h]=m.useState(""),[f,p]=m.useState(1),[g,y]=m.useState(10),b=mi(),[x,v]=m.useState([]);m.useImperativeHandle(c,()=>({resetPagination:()=>{p(1),h("")}})),m.useEffect(()=>{if(!n)return;const O=d.trim().toLowerCase(),R=O?n.filter(z=>{var Y;const H=(z.label||"").toLowerCase(),B=(((Y=z._originalData)==null?void 0:Y.base_url)||"").toLowerCase();return H.includes(O)||B.includes(O)}):n;v(R)},[n,d]);const E=x.length,_=x.slice((f-1)*g,f*g),j=(O,R)=>{typeof l=="function"&&l(O,R)},F=(O,R)=>{const z=R.key||R.value,H=o[z]||"",Y=(le=>le==="/api/ratio_config"?"ratio_config":le==="/api/pricing"?"pricing":"custom")(H),P=le=>{le==="ratio_config"?j(z,"/api/ratio_config"):le==="pricing"?j(z,"/api/pricing"):Y!=="custom"&&j(z,"")};return a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.jsx(vn,{size:"small",value:Y,onChange:P,style:{width:120},optionList:[{label:"ratio_config",value:"ratio_config"},{label:"pricing",value:"pricing"},{label:"custom",value:"custom"}]}),Y==="custom"&&a.jsx(Lt,{size:"small",value:H,onChange:le=>j(z,le),placeholder:"/your/endpoint",style:{width:160,fontSize:12}})]})},k=O=>{switch(O){case 1:return a.jsx(ye,{color:"green",shape:"circle",prefixIcon:a.jsx(Sl,{size:14}),children:u("已启用")});case 2:return a.jsx(ye,{color:"red",shape:"circle",prefixIcon:a.jsx(sf,{size:14}),children:u("已禁用")});case 3:return a.jsx(ye,{color:"yellow",shape:"circle",prefixIcon:a.jsx(Bg,{size:14}),children:u("自动禁用")});default:return a.jsx(ye,{color:"grey",shape:"circle",prefixIcon:a.jsx(_i,{size:14}),children:u("未知状态")})}},U=O=>a.jsx(F5,{sourceString:O,searchWords:[d]}),W=O=>a.jsx(F5,{sourceString:O,searchWords:[d]}),K=[{title:u("名称"),dataIndex:"label",render:U},{title:u("源地址"),dataIndex:"_originalData.base_url",render:(O,R)=>{var z;return W(((z=R._originalData)==null?void 0:z.base_url)||"")}},{title:u("状态"),dataIndex:"_originalData.status",render:(O,R)=>{var z;return k(((z=R._originalData)==null?void 0:z.status)||0)}},{title:u("同步接口"),dataIndex:"endpoint",fixed:"right",render:F}],$={selectedRowKeys:i,onChange:O=>s(O)};return a.jsx(Je,{visible:e,onCancel:t,onOk:r,title:a.jsx("span",{className:"text-lg font-semibold",children:u("选择同步渠道")}),size:b?"full-width":"large",keepDOM:!0,lazyRender:!1,children:a.jsxs(pt,{vertical:!0,style:{width:"100%"},children:[a.jsx(Lt,{prefix:a.jsx(Cr,{size:14}),placeholder:u("搜索渠道名称或地址"),value:d,onChange:h,showClear:!0}),a.jsx(Mr,{columns:K,dataSource:_,rowKey:"key",rowSelection:$,pagination:{currentPage:f,pageSize:g,total:E,showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:["10","20","50","100"],formatPageText:O=>u("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:O.currentStart,end:O.currentEnd,total:E}),onChange:(O,R)=>{p(O),y(R)},onShowSizeChange:(O,R)=>{p(1),y(R)}},size:"small"})]})})});function Qce({t:e,visible:t,items:r,onOk:n,onCancel:i}){const s=mi(),o=[{title:e("渠道"),dataIndex:"channel"},{title:e("模型"),dataIndex:"model"},{title:e("当前计费"),dataIndex:"current",render:l=>a.jsx("div",{style:{whiteSpace:"pre-wrap"},children:l})},{title:e("修改为"),dataIndex:"newVal",render:l=>a.jsx("div",{style:{whiteSpace:"pre-wrap"},children:l})}];return a.jsx(Je,{title:e("确认冲突项修改"),visible:t,onCancel:i,onOk:n,size:s?"full-width":"large",children:a.jsx(Mr,{columns:o,dataSource:r,pagination:!1,size:"small"})})}function e0e(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState(!1),[o,l]=m.useState(!1);mi();const[u,c]=m.useState([]),[d,h]=m.useState([]),[f,p]=m.useState({}),[g,y]=m.useState({}),[b,x]=m.useState({}),[v,E]=m.useState(!1),[_,j]=m.useState(1),[F,k]=m.useState(10),[U,W]=m.useState(""),[K,$]=m.useState(""),[O,R]=m.useState(!1),[z,H]=m.useState([]),B=Bt.useRef(null);m.useEffect(()=>{j(1)},[K,U]);const Y=async()=>{s(!0);try{const T=await Se.get("/api/ratio_sync/channels");if(T.data.success){const ve=(T.data.data||[]).map(Z=>({key:Z.id,label:Z.name,value:Z.id,disabled:!1,_originalData:Z}));c(ve),p(Z=>{const ge={...Z};return ve.forEach(De=>{ge[De.key]||(ge[De.key]=X3)}),ge})}else q(T.data.message)}catch(T){q(t("获取渠道失败:")+T.message)}finally{s(!1)}},P=()=>{const T=u.filter(J=>d.includes(J.value)).map(J=>J._originalData);if(T.length===0){en(t("请至少选择一个渠道"));return}n(!1),le(T)},le=async T=>{l(!0);const ve={upstreams:T.map(Z=>({id:Z.id,name:Z.name,base_url:Z.base_url,endpoint:f[Z.id]||X3})),timeout:10};try{const Z=await Se.post("/api/ratio_sync/fetch",ve);if(!Z.data.success){q(Z.data.message||t("后端请求失败")),l(!1);return}const{differences:ge={},test_results:De=[]}=Z.data.data,Oe=De.filter(ae=>ae.status==="error");Oe.length>0&&en(t("部分渠道测试失败:")+Oe.map(ae=>`${ae.name}: ${ae.error}`).join(", ")),y(ge),x({}),E(!0),Object.keys(ge).length===0&&Pe(t("未找到差异化倍率,无需同步"))}catch(Z){q(t("请求后端接口失败:")+Z.message)}finally{l(!1)}};function be(T){return T==="model_price"?"price":"ratio"}const V=m.useCallback((T,J,ve)=>{const Z=be(J);x(ge=>{const De={...ge[T]||{}};return Object.keys(De).forEach(Oe=>{be(Oe)!==Z&&delete De[Oe]}),De[J]=ve,{...ge,[T]:De}})},[x]),te=async()=>{const T={ModelRatio:JSON.parse(e.options.ModelRatio||"{}"),CompletionRatio:JSON.parse(e.options.CompletionRatio||"{}"),CacheRatio:JSON.parse(e.options.CacheRatio||"{}"),ModelPrice:JSON.parse(e.options.ModelPrice||"{}")},J=[],ve=ge=>T.ModelPrice[ge]!==void 0?"price":T.ModelRatio[ge]!==void 0||T.CompletionRatio[ge]!==void 0||T.CacheRatio[ge]!==void 0?"ratio":null,Z=(ge,De,Oe)=>{if(g[ge]&&g[ge][De]){const ae=g[ge][De].upstreams||{},we=Object.entries(ae).find(([ne,ke])=>ke===Oe);if(we)return we[0]}return t("未知")};if(Object.entries(b).forEach(([ge,De])=>{const Oe=ve(ge),ae="model_price"in De?"price":"ratio";if(Oe&&Oe!==ae){const we=Oe==="price"?`${t("固定价格")} : ${T.ModelPrice[ge]}`:`${t("模型倍率")} : ${T.ModelRatio[ge]??"-"}
- ${t("补全倍率")} : ${T.CompletionRatio[ge]??"-"}`;let ne="";if(ae==="price")ne=`${t("固定价格")} : ${De.model_price}`;else{const Be=De.model_ratio??"-",Ae=De.completion_ratio??"-";ne=`${t("模型倍率")} : ${Be}
- ${t("补全倍率")} : ${Ae}`}const ke=Object.entries(De).map(([Be,Ae])=>Z(ge,Be,Ae)).filter((Be,Ae,Q)=>Q.indexOf(Be)===Ae).join(", ");J.push({channel:ke,model:ge,current:we,newVal:ne})}}),J.length>0){H(J),R(!0);return}await de(T)},de=m.useCallback(async T=>{const J={ModelRatio:{...T.ModelRatio},CompletionRatio:{...T.CompletionRatio},CacheRatio:{...T.CacheRatio},ModelPrice:{...T.ModelPrice}};Object.entries(b).forEach(([ve,Z])=>{const ge=Object.keys(Z),De=ge.includes("model_price"),Oe=ge.some(ae=>ae!=="model_price");De&&(delete J.ModelRatio[ve],delete J.CompletionRatio[ve],delete J.CacheRatio[ve]),Oe&&delete J.ModelPrice[ve],Object.entries(Z).forEach(([ae,we])=>{const ne=ae.split("_").map(ke=>ke.charAt(0).toUpperCase()+ke.slice(1)).join("");J[ne][ve]=parseFloat(we)})}),s(!0);try{const ve=Object.entries(J).map(([ge,De])=>Se.put("/api/option/",{key:ge,value:JSON.stringify(De,null,2)}));(await Promise.all(ve)).every(ge=>ge.data.success)?(Pe(t("同步成功")),e.refresh(),y(ge=>{const De={...ge};return Object.entries(b).forEach(([Oe,ae])=>{Object.keys(ae).forEach(we=>{De[Oe]&&De[Oe][we]&&(delete De[Oe][we],Object.keys(De[Oe]).length===0&&delete De[Oe])})}),De}),x({})):q(t("部分保存失败"))}catch{q(t("保存失败"))}finally{s(!1)}},[b,e.options,e.refresh]),ee=T=>{const J=(_-1)*F,ve=J+F;return T.slice(J,ve)},ie=()=>a.jsx("div",{className:"flex flex-col w-full",children:a.jsx("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 w-full",children:a.jsxs("div",{className:"flex flex-col md:flex-row gap-2 w-full md:w-auto order-2 md:order-1",children:[a.jsx(X,{icon:a.jsx(wle,{size:14}),className:"w-full md:w-auto mt-2",onClick:()=>{n(!0),u.length===0&&Y()},children:t("选择同步渠道")}),(()=>{const T=Object.keys(b).length>0;return a.jsx(X,{icon:a.jsx(iF,{size:14}),type:"secondary",onClick:te,disabled:!T,className:"w-full md:w-auto mt-2",children:t("应用同步")})})(),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 w-full md:w-auto mt-2",children:[a.jsx(Lt,{prefix:a.jsx(Cr,{size:14}),placeholder:t("搜索模型名称"),value:U,onChange:W,className:"w-full sm:w-64",showClear:!0}),a.jsxs(vn,{placeholder:t("按倍率类型筛选"),value:K,onChange:$,className:"w-full sm:w-48",showClear:!0,onClear:()=>$(""),children:[a.jsx(vn.Option,{value:"model_ratio",children:t("模型倍率")}),a.jsx(vn.Option,{value:"completion_ratio",children:t("补全倍率")}),a.jsx(vn.Option,{value:"cache_ratio",children:t("缓存倍率")}),a.jsx(vn.Option,{value:"model_price",children:t("固定价格")})]})]})]})})}),G=()=>{const T=m.useMemo(()=>{const ge=[];return Object.entries(g).forEach(([De,Oe])=>{const ae="model_price"in Oe,we=["model_ratio","completion_ratio","cache_ratio"].some(ke=>ke in Oe),ne=ae&&we;Object.entries(Oe).forEach(([ke,Be])=>{ge.push({key:`${De}_${ke}`,model:De,ratioType:ke,current:Be.current,upstreams:Be.upstreams,confidence:Be.confidence||{},billingConflict:ne})})}),ge},[g]),J=m.useMemo(()=>!U.trim()&&!K?T:T.filter(ge=>{const De=!U.trim()||ge.model.toLowerCase().includes(U.toLowerCase().trim()),Oe=!K||ge.ratioType===K;return De&&Oe}),[T,U,K]),ve=m.useMemo(()=>{const ge=new Set;return J.forEach(De=>{Object.keys(De.upstreams||{}).forEach(Oe=>ge.add(Oe))}),Array.from(ge)},[J]);if(J.length===0)return a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:U.trim()?t("未找到匹配的模型"):Object.keys(g).length===0?t(v?"暂无差异化倍率显示":"请先选择同步渠道"):t("请先选择同步渠道"),style:{padding:30}});const Z=[{title:t("模型"),dataIndex:"model",fixed:"left"},{title:t("倍率类型"),dataIndex:"ratioType",render:(ge,De)=>{const Oe={model_ratio:t("模型倍率"),completion_ratio:t("补全倍率"),cache_ratio:t("缓存倍率"),model_price:t("固定价格")},ae=a.jsx(ye,{color:To(ge),shape:"circle",children:Oe[ge]||ge});return De!=null&&De.billingConflict?a.jsxs("div",{className:"flex items-center gap-1",children:[ae,a.jsx(Gt,{position:"top",content:t("该模型存在固定价格与倍率计费方式冲突,请确认选择"),children:a.jsx(vh,{size:14,className:"text-yellow-500"})})]}):ae}},{title:t("置信度"),dataIndex:"confidence",render:(ge,De)=>{if(Object.values(De.confidence||{}).every(ae=>ae!==!1))return a.jsx(Gt,{content:t("所有上游数据均可信"),children:a.jsx(ye,{color:"green",shape:"circle",type:"light",prefixIcon:a.jsx(Sl,{size:14}),children:t("可信")})});{const ae=Object.entries(De.confidence||{}).filter(([we,ne])=>ne===!1).map(([we])=>we).join(", ");return a.jsx(Gt,{content:t("以下上游数据可能不可信:")+ae,children:a.jsx(ye,{color:"yellow",shape:"circle",type:"light",prefixIcon:a.jsx(vh,{size:14}),children:t("谨慎")})})}}},{title:t("当前值"),dataIndex:"current",render:ge=>a.jsx(ye,{color:ge!=null?"blue":"default",shape:"circle",children:ge??t("未设置")})},...ve.map(ge=>{const De=(()=>{let ae=0,we=0;return J.forEach(ne=>{var Be,Ae;const ke=(Be=ne.upstreams)==null?void 0:Be[ge];ke!=null&&ke!=="same"&&(ae++,((Ae=b[ne.model])==null?void 0:Ae[ne.ratioType])===ke&&we++)}),{selectableCount:ae,selectedCount:we,allSelected:ae>0&&we===ae,partiallySelected:we>0&&we<ae,hasSelectableItems:ae>0}})(),Oe=ae=>{ae?J.forEach(we=>{var ke;const ne=(ke=we.upstreams)==null?void 0:ke[ge];ne!=null&&ne!=="same"&&V(we.model,we.ratioType,ne)}):x(we=>{const ne={...we};return J.forEach(ke=>{ne[ke.model]&&(delete ne[ke.model][ke.ratioType],Object.keys(ne[ke.model]).length===0&&delete ne[ke.model])}),ne})};return{title:De.hasSelectableItems?a.jsx(Ln,{checked:De.allSelected,indeterminate:De.partiallySelected,onChange:ae=>Oe(ae.target.checked),children:ge}):a.jsx("span",{children:ge}),dataIndex:ge,render:(ae,we)=>{var Ae,Q,he;const ne=(Ae=we.upstreams)==null?void 0:Ae[ge],ke=((Q=we.confidence)==null?void 0:Q[ge])!==!1;if(ne==null)return a.jsx(ye,{color:"default",shape:"circle",children:t("未设置")});if(ne==="same")return a.jsx(ye,{color:"blue",shape:"circle",children:t("与本地相同")});const Be=((he=b[we.model])==null?void 0:he[we.ratioType])===ne;return a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ln,{checked:Be,onChange:se=>{se.target.checked?V(we.model,we.ratioType,ne):x(ce=>{const Ce={...ce};return Ce[we.model]&&(delete Ce[we.model][we.ratioType],Object.keys(Ce[we.model]).length===0&&delete Ce[we.model]),Ce})},children:ne}),!ke&&a.jsx(Gt,{position:"left",content:t("该数据可能不可信,请谨慎使用"),children:a.jsx(vh,{size:16,className:"text-yellow-500"})})]})}}})];return a.jsx(Mr,{columns:Z,dataSource:ee(J),pagination:{currentPage:_,pageSize:F,total:J.length,showSizeChanger:!0,showQuickJumper:!0,formatPageText:ge=>t("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:ge.currentStart,end:ge.currentEnd,total:J.length}),pageSizeOptions:["5","10","20","50"],onChange:(ge,De)=>{j(ge),k(De)},onShowSizeChange:(ge,De)=>{j(1),k(De)}},scroll:{x:"max-content"},size:"middle",loading:i||o})},N=m.useCallback((T,J)=>{p(ve=>({...ve,[T]:J}))},[]),I=()=>{n(!1),B.current&&B.current.resetPagination()};return a.jsxs(a.Fragment,{children:[a.jsx(M.Section,{text:ie(),children:G()}),a.jsx(Jce,{ref:B,t,visible:r,onCancel:I,onOk:P,allChannels:u,selectedChannelIds:d,setSelectedChannelIds:h,channelEndpoints:f,updateChannelEndpoint:N}),a.jsx(Qce,{t,visible:O,items:z,onOk:async()=>{R(!1);const T={ModelRatio:JSON.parse(e.options.ModelRatio||"{}"),CompletionRatio:JSON.parse(e.options.CompletionRatio||"{}"),CacheRatio:JSON.parse(e.options.CacheRatio||"{}"),ModelPrice:JSON.parse(e.options.ModelPrice||"{}")};await de(T)},onCancel:()=>R(!1)})]})}const t0e=()=>{const{t:e}=Ze();let[t,r]=m.useState({ModelPrice:"",ModelRatio:"",CacheRatio:"",CompletionRatio:"",GroupRatio:"",GroupGroupRatio:"",AutoGroups:"",DefaultUseAutoGroup:!1,ExposeRatioEnabled:!1,UserUsableGroups:""});const[n,i]=m.useState(!1),s=async()=>{const l=await Se.get("/api/option/"),{success:u,message:c,data:d}=l.data;if(u){let h={};d.forEach(f=>{if(f.key==="ModelRatio"||f.key==="GroupRatio"||f.key==="GroupGroupRatio"||f.key==="AutoGroups"||f.key==="UserUsableGroups"||f.key==="CompletionRatio"||f.key==="ModelPrice"||f.key==="CacheRatio")try{f.value=JSON.stringify(JSON.parse(f.value),null,2)}catch{}["DefaultUseAutoGroup","ExposeRatioEnabled"].includes(f.key)?h[f.key]=La(f.value):h[f.key]=f.value}),r(h)}else q(c)},o=async()=>{try{i(!0),await s()}catch{q("刷新失败")}finally{i(!1)}};return m.useEffect(()=>{o()},[]),a.jsx(Dt,{spinning:n,size:"large",children:a.jsx(Le,{style:{marginTop:"10px"},children:a.jsxs(Pn,{type:"card",children:[a.jsx(Pn.TabPane,{tab:e("模型倍率设置"),itemKey:"model",children:a.jsx(Yce,{options:t,refresh:o})}),a.jsx(Pn.TabPane,{tab:e("分组倍率设置"),itemKey:"group",children:a.jsx(Kce,{options:t,refresh:o})}),a.jsx(Pn.TabPane,{tab:e("可视化倍率设置"),itemKey:"visual",children:a.jsx(Zce,{options:t,refresh:o})}),a.jsx(Pn.TabPane,{tab:e("未设置倍率模型"),itemKey:"unset_models",children:a.jsx(Xce,{options:t,refresh:o})}),a.jsx(Pn.TabPane,{tab:e("上游倍率同步"),itemKey:"upstream_sync",children:a.jsx(e0e,{options:t,refresh:o})})]})})})};function r0e(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({Chats:"[]"}),o=m.useRef(),[l,u]=m.useState(i);async function c(){try{console.log("Starting validation..."),await o.current.validate().then(()=>{console.log("Validation passed");const d=zn(i,l);if(!d.length)return en(t("你似乎并没有修改什么"));const h=d.map(f=>{let p="";return typeof i[f.key]=="boolean"?p=String(i[f.key]):p=i[f.key],Se.put("/api/option/",{key:f.key,value:p})});n(!0),Promise.all(h).then(f=>{if(h.length===1){if(f.includes(void 0))return}else if(h.length>1&&f.includes(void 0))return q(t("部分保存失败,请重试"));Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}).catch(d=>{console.error("Validation failed:",d),q(t("请检查输入"))})}catch(d){q(t("请检查输入")),console.error(d)}}return m.useEffect(()=>{const d={};for(let h in e.options)if(Object.keys(i).includes(h))if(h==="Chats"){const f=JSON.parse(e.options[h]);d[h]=JSON.stringify(f,null,2)}else d[h]=e.options[h];s(d),u(structuredClone(d)),o.current.setValues(d)},[e.options]),a.jsxs(Dt,{spinning:r,children:[a.jsx(M,{values:i,getFormApi:d=>o.current=d,style:{marginBottom:15},children:a.jsxs(M.Section,{text:t("聊天设置"),children:[a.jsx(cr,{type:"info",description:t("链接中的{key}将自动替换为sk-xxxx,{address}将自动替换为系统设置的服务器地址,末尾不带/和/v1")}),a.jsx(M.TextArea,{label:t("聊天配置"),extraText:"",placeholder:t("为一个 JSON 文本"),field:"Chats",autosize:{minRows:6,maxRows:12},trigger:"blur",stopValidateWithError:!0,rules:[{validator:(d,h)=>Vr(h),message:t("不是合法的 JSON 字符串")}],onChange:d=>s({...i,Chats:d})})]})}),a.jsx(pt,{children:a.jsx(X,{onClick:c,children:t("保存聊天设置")})})]})}const n0e=()=>{let[e,t]=m.useState({Chats:"[]"}),[r,n]=m.useState(!1);const i=async()=>{const o=await Se.get("/api/option/"),{success:l,message:u,data:c}=o.data;if(l){let d={};c.forEach(h=>{h.key.endsWith("Enabled")||["DefaultCollapseSidebar"].includes(h.key)?d[h.key]=La(h.value):d[h.key]=h.value}),t(d)}else q(u)};async function s(){try{n(!0),await i()}catch{q("刷新失败")}finally{n(!1)}}return m.useEffect(()=>{s()},[]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,size:"large",children:a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(r0e,{options:e,refresh:s})})})})};function i0e(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({DrawingEnabled:!1,MjNotifyEnabled:!1,MjAccountFilterEnabled:!1,MjForwardUrlEnabled:!1,MjModeClearEnabled:!1,MjActionCheckSuccessEnabled:!1}),o=m.useRef(),[l,u]=m.useState(i);function c(){const d=zn(i,l);if(!d.length)return en(t("你似乎并没有修改什么"));const h=d.map(f=>{let p="";return typeof i[f.key]=="boolean"?p=String(i[f.key]):p=i[f.key],Se.put("/api/option/",{key:f.key,value:p})});n(!0),Promise.all(h).then(f=>{if(h.length===1){if(f.includes(void 0))return}else if(h.length>1&&f.includes(void 0))return q(t("部分保存失败,请重试"));Pe(t("保存成功")),e.refresh()}).catch(()=>{q(t("保存失败,请重试"))}).finally(()=>{n(!1)})}return m.useEffect(()=>{const d={};for(let h in e.options)Object.keys(i).includes(h)&&(d[h]=e.options[h]);s(d),u(structuredClone(d)),o.current.setValues(d),localStorage.setItem("mj_notify_enabled",String(i.MjNotifyEnabled))},[e.options]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,children:a.jsx(M,{values:i,getFormApi:d=>o.current=d,style:{marginBottom:15},children:a.jsxs(M.Section,{text:t("绘图设置"),children:[a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"DrawingEnabled",label:t("启用绘图功能"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:d=>{s({...i,DrawingEnabled:d})}})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"MjNotifyEnabled",label:t("允许回调(会泄露服务器 IP 地址)"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:d=>s({...i,MjNotifyEnabled:d})})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"MjAccountFilterEnabled",label:t("允许 AccountFilter 参数"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:d=>s({...i,MjAccountFilterEnabled:d})})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"MjForwardUrlEnabled",label:t("开启之后将上游地址替换为服务器地址"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:d=>s({...i,MjForwardUrlEnabled:d})})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"MjModeClearEnabled",label:a.jsxs(a.Fragment,{children:[t("开启之后会清除用户提示词中的")," ",a.jsx(ye,{children:"--fast"})," 、",a.jsx(ye,{children:"--relax"})," ",t("以及")," ",a.jsx(ye,{children:"--turbo"})," ",t("参数")]}),size:"default",checkedText:"|",uncheckedText:"〇",onChange:d=>s({...i,MjModeClearEnabled:d})})}),a.jsx(_e,{xs:24,sm:12,md:8,lg:8,xl:8,children:a.jsx(M.Switch,{field:"MjActionCheckSuccessEnabled",label:t("检测必须等待绘图成功才能进行放大等操作"),size:"default",checkedText:"|",uncheckedText:"〇",onChange:d=>s({...i,MjActionCheckSuccessEnabled:d})})})]}),a.jsx(Ge,{children:a.jsx(X,{size:"default",onClick:c,children:t("保存绘图设置")})})]})})})})}const a0e=()=>{let[e,t]=m.useState({DrawingEnabled:!1,MjNotifyEnabled:!1,MjAccountFilterEnabled:!1,MjForwardUrlEnabled:!1,MjModeClearEnabled:!1,MjActionCheckSuccessEnabled:!1}),[r,n]=m.useState(!1);const i=async()=>{const o=await Se.get("/api/option/"),{success:l,message:u,data:c}=o.data;if(l){let d={};c.forEach(h=>{h.key.endsWith("Enabled")?d[h.key]=La(h.value):d[h.key]=h.value}),t(d)}else q(u)};async function s(){try{n(!0),await i()}catch{q("刷新失败")}finally{n(!1)}}return m.useEffect(()=>{s()},[]),a.jsx(a.Fragment,{children:a.jsx(Dt,{spinning:r,size:"large",children:a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(i0e,{options:e,refresh:s})})})})};function s0e(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({ServerAddress:""}),o=m.useRef(null);m.useEffect(()=>{if(e.options&&o.current){const c={ServerAddress:e.options.ServerAddress||""};s(c),o.current.setValues(c)}},[e.options]);const l=c=>{s(c)},u=async()=>{n(!0);try{let c=rl(i.ServerAddress);const d=await Se.put("/api/option/",{key:"ServerAddress",value:c});d.data.success?(Pe(t("更新成功")),e.refresh&&e.refresh()):q(d.data.message)}catch{q(t("更新失败"))}n(!1)};return a.jsx(Dt,{spinning:r,children:a.jsx(M,{initValues:i,onValueChange:l,getFormApi:c=>o.current=c,children:a.jsxs(M.Section,{text:t("通用设置"),children:[a.jsx(M.Input,{field:"ServerAddress",label:t("服务器地址"),placeholder:"https://yourdomain.com",style:{width:"100%"},extraText:t("该服务器地址将影响支付回调地址以及默认首页展示的地址,请确保正确配置")}),a.jsx(X,{onClick:u,children:t("更新服务器地址")})]})})})}const{Text:o0e}=Ie;function l0e(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({PayAddress:"",EpayId:"",EpayKey:"",Price:7.3,MinTopUp:1,TopupGroupRatio:"",CustomCallbackAddress:"",PayMethods:""}),[o,l]=m.useState({}),u=m.useRef(null);m.useEffect(()=>{if(e.options&&u.current){const h={PayAddress:e.options.PayAddress||"",EpayId:e.options.EpayId||"",EpayKey:e.options.EpayKey||"",Price:e.options.Price!==void 0?parseFloat(e.options.Price):7.3,MinTopUp:e.options.MinTopUp!==void 0?parseFloat(e.options.MinTopUp):1,TopupGroupRatio:e.options.TopupGroupRatio||"",CustomCallbackAddress:e.options.CustomCallbackAddress||"",PayMethods:e.options.PayMethods||""};s(h),l({...h}),u.current.setValues(h)}},[e.options]);const c=h=>{s(h)},d=async()=>{if(e.options.ServerAddress===""){q(t("请先填写服务器地址"));return}if(o.TopupGroupRatio!==i.TopupGroupRatio&&!Vr(i.TopupGroupRatio)){q(t("充值分组倍率不是合法的 JSON 字符串"));return}if(o.PayMethods!==i.PayMethods&&!Vr(i.PayMethods)){q(t("充值方式设置不是合法的 JSON 字符串"));return}n(!0);try{const h=[{key:"PayAddress",value:rl(i.PayAddress)}];i.EpayId!==""&&h.push({key:"EpayId",value:i.EpayId}),i.EpayKey!==void 0&&i.EpayKey!==""&&h.push({key:"EpayKey",value:i.EpayKey}),i.Price!==""&&h.push({key:"Price",value:i.Price.toString()}),i.MinTopUp!==""&&h.push({key:"MinTopUp",value:i.MinTopUp.toString()}),i.CustomCallbackAddress!==""&&h.push({key:"CustomCallbackAddress",value:i.CustomCallbackAddress}),o.TopupGroupRatio!==i.TopupGroupRatio&&h.push({key:"TopupGroupRatio",value:i.TopupGroupRatio}),o.PayMethods!==i.PayMethods&&h.push({key:"PayMethods",value:i.PayMethods});const f=h.map(y=>Se.put("/api/option/",{key:y.key,value:y.value})),g=(await Promise.all(f)).filter(y=>!y.data.success);g.length>0?g.forEach(y=>{q(y.data.message)}):(Pe(t("更新成功")),l({...i}),e.refresh&&e.refresh())}catch{q(t("更新失败"))}n(!1)};return a.jsx(Dt,{spinning:r,children:a.jsx(M,{initValues:i,onValueChange:c,getFormApi:h=>u.current=h,children:a.jsxs(M.Section,{text:t("支付设置"),children:[a.jsx(o0e,{children:t("(当前仅支持易支付接口,默认使用上方服务器地址作为回调地址!)")}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"PayAddress",label:t("支付地址"),placeholder:t("例如:https://yourdomain.com")})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"EpayId",label:t("易支付商户ID"),placeholder:t("例如:0001")})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"EpayKey",label:t("易支付商户密钥"),placeholder:t("敏感信息不会发送到前端显示"),type:"password"})})]}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},style:{marginTop:16},children:[a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"CustomCallbackAddress",label:t("回调地址"),placeholder:t("例如:https://yourdomain.com")})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{field:"Price",precision:2,label:t("充值价格(x元/美金)"),placeholder:t("例如:7,就是7元/美金")})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{field:"MinTopUp",label:t("最低充值美元数量"),placeholder:t("例如:2,就是最低充值2$")})})]}),a.jsx(M.TextArea,{field:"TopupGroupRatio",label:t("充值分组倍率"),placeholder:t("为一个 JSON 文本,键为组名称,值为倍率"),autosize:!0}),a.jsx(M.TextArea,{field:"PayMethods",label:t("充值方式设置"),placeholder:t("为一个 JSON 文本"),autosize:!0}),a.jsx(X,{onClick:d,children:t("更新支付设置")})]})})})}const{Text:u0e}=Ie;function c0e(e){const{t}=Ze(),[r,n]=m.useState(!1),[i,s]=m.useState({StripeApiSecret:"",StripeWebhookSecret:"",StripePriceId:"",StripeUnitPrice:8,StripeMinTopUp:1}),[o,l]=m.useState({}),u=m.useRef(null);m.useEffect(()=>{if(e.options&&u.current){const h={StripeApiSecret:e.options.StripeApiSecret||"",StripeWebhookSecret:e.options.StripeWebhookSecret||"",StripePriceId:e.options.StripePriceId||"",StripeUnitPrice:e.options.StripeUnitPrice!==void 0?parseFloat(e.options.StripeUnitPrice):8,StripeMinTopUp:e.options.StripeMinTopUp!==void 0?parseFloat(e.options.StripeMinTopUp):1};s(h),l({...h}),u.current.setValues(h)}},[e.options]);const c=h=>{s(h)},d=async()=>{var h;if(e.options.ServerAddress===""){q(t("请先填写服务器地址"));return}n(!0);try{const f=[];i.StripeApiSecret&&i.StripeApiSecret!==""&&f.push({key:"StripeApiSecret",value:i.StripeApiSecret}),i.StripeWebhookSecret&&i.StripeWebhookSecret!==""&&f.push({key:"StripeWebhookSecret",value:i.StripeWebhookSecret}),i.StripePriceId!==""&&f.push({key:"StripePriceId",value:i.StripePriceId}),i.StripeUnitPrice!==void 0&&i.StripeUnitPrice!==null&&f.push({key:"StripeUnitPrice",value:i.StripeUnitPrice.toString()}),i.StripeMinTopUp!==void 0&&i.StripeMinTopUp!==null&&f.push({key:"StripeMinTopUp",value:i.StripeMinTopUp.toString()});const p=f.map(b=>Se.put("/api/option/",{key:b.key,value:b.value})),y=(await Promise.all(p)).filter(b=>!b.data.success);y.length>0?y.forEach(b=>{q(b.data.message)}):(Pe(t("更新成功")),l({...i}),(h=e.refresh)==null||h.call(e))}catch{q(t("更新失败"))}n(!1)};return a.jsx(Dt,{spinning:r,children:a.jsx(M,{initValues:i,onValueChange:c,getFormApi:h=>u.current=h,children:a.jsxs(M.Section,{text:t("Stripe 设置"),children:[a.jsxs(u0e,{children:["Stripe 密钥、Webhook 等设置请",a.jsx("a",{href:"https://dashboard.stripe.com/developers",target:"_blank",rel:"noreferrer",children:"点击此处"}),"进行设置,最好先在",a.jsx("a",{href:"https://dashboard.stripe.com/test/developers",target:"_blank",rel:"noreferrer",children:"测试环境"}),"进行测试。",a.jsx("br",{})]}),a.jsx(cr,{type:"info",description:`Webhook 填:${e.options.ServerAddress?rl(e.options.ServerAddress):t("网站地址")}/api/stripe/webhook`}),a.jsx(cr,{type:"warning",description:"需要包含事件:checkout.session.completed 和 checkout.session.expired"}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},children:[a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"StripeApiSecret",label:t("API 密钥"),placeholder:t("sk_xxx 或 rk_xxx 的 Stripe 密钥,敏感信息不显示"),type:"password"})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"StripeWebhookSecret",label:t("Webhook 签名密钥"),placeholder:t("whsec_xxx 的 Webhook 签名密钥,敏感信息不显示"),type:"password"})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.Input,{field:"StripePriceId",label:t("商品价格 ID"),placeholder:t("price_xxx 的商品价格 ID,新建产品后可获得")})})]}),a.jsxs(Ge,{gutter:{xs:8,sm:16,md:24,lg:24,xl:24,xxl:24},style:{marginTop:16},children:[a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{field:"StripeUnitPrice",precision:2,label:t("充值价格(x元/美金)"),placeholder:t("例如:7,就是7元/美金")})}),a.jsx(_e,{xs:24,sm:24,md:8,lg:8,xl:8,children:a.jsx(M.InputNumber,{field:"StripeMinTopUp",label:t("最低充值美元数量"),placeholder:t("例如:2,就是最低充值2$")})})]}),a.jsx(X,{onClick:d,children:t("更新 Stripe 设置")})]})})})}const d0e=()=>{const{t:e}=Ze();let[t,r]=m.useState({ServerAddress:"",PayAddress:"",EpayId:"",EpayKey:"",Price:7.3,MinTopUp:1,TopupGroupRatio:"",CustomCallbackAddress:"",PayMethods:"",StripeApiSecret:"",StripeWebhookSecret:"",StripePriceId:"",StripeUnitPrice:8,StripeMinTopUp:1}),[n,i]=m.useState(!1);const s=async()=>{const l=await Se.get("/api/option/"),{success:u,message:c,data:d}=l.data;if(u){let h={};d.forEach(f=>{switch(f.key){case"TopupGroupRatio":try{h[f.key]=JSON.stringify(JSON.parse(f.value),null,2)}catch(p){console.error("解析TopupGroupRatio出错:",p),h[f.key]=f.value}break;case"Price":case"MinTopUp":case"StripeUnitPrice":case"StripeMinTopUp":h[f.key]=parseFloat(f.value);break;default:f.key.endsWith("Enabled")?h[f.key]=La(f.value):h[f.key]=f.value;break}}),r(h)}else q(e(c))};async function o(){try{i(!0),await s()}catch{q(e("刷新失败"))}finally{i(!1)}}return m.useEffect(()=>{o()},[]),a.jsx(a.Fragment,{children:a.jsxs(Dt,{spinning:n,size:"large",children:[a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(s0e,{options:t,refresh:o})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(l0e,{options:t,refresh:o})}),a.jsx(Le,{style:{marginTop:"10px"},children:a.jsx(c0e,{options:t,refresh:o})})]})})},h0e=()=>{const{t:e}=Ze(),t=go(),r=Ml(),[n,i]=m.useState("1");let s=[];Ih()&&(s.push({tab:a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[a.jsx(lo,{size:18}),e("运营设置")]}),content:a.jsx(Tce,{}),itemKey:"operation"}),s.push({tab:a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[a.jsx(QS,{size:18}),e("仪表盘设置")]}),content:a.jsx(Gce,{}),itemKey:"dashboard"}),s.push({tab:a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[a.jsx(Ng,{size:18}),e("聊天设置")]}),content:a.jsx(n0e,{}),itemKey:"chats"}),s.push({tab:a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[a.jsx(rF,{size:18}),e("绘图设置")]}),content:a.jsx(a0e,{}),itemKey:"drawing"}),s.push({tab:a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[a.jsx(Kn,{size:18}),e("支付设置")]}),content:a.jsx(d0e,{}),itemKey:"payment"}),s.push({tab:a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[a.jsx(Gse,{size:18}),e("倍率设置")]}),content:a.jsx(t0e,{}),itemKey:"ratio"}),s.push({tab:a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[a.jsx(Moe,{size:18}),e("速率限制设置")]}),content:a.jsx(Nce,{}),itemKey:"ratelimit"}),s.push({tab:a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[a.jsx(Ile,{size:18}),e("模型相关设置")]}),content:a.jsx(zce,{}),itemKey:"models"}),s.push({tab:a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[a.jsx(moe,{size:18}),e("系统设置")]}),content:a.jsx(jce,{}),itemKey:"system"}),s.push({tab:a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[a.jsx(joe,{size:18}),e("其他设置")]}),content:a.jsx(_ce,{}),itemKey:"other"}));const o=l=>{i(l),t(`?tab=${l}`)};return m.useEffect(()=>{const u=new URLSearchParams(window.location.search).get("tab");u?i(u):o("operation")},[r.search]),a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx(ln,{children:a.jsx(ln.Content,{children:a.jsx(Pn,{type:"card",collapsible:!0,activeKey:n,onChange:l=>o(l),children:s.map(l=>a.jsx(Zr,{itemKey:l.itemKey,tab:l.tab,children:n===l.itemKey&&l.content},l.itemKey))})})})})},{Text:f0e,Title:tx}=Ie,p0e=()=>{const{t:e}=Ze(),[t,r]=m.useState({email:""}),{email:n}=t,[i,s]=m.useState(!1),[o,l]=m.useState(!1),[u,c]=m.useState(""),[d,h]=m.useState(""),[f,p]=m.useState(!1),[g,y]=m.useState(30),b=Sa(),x=yo();m.useEffect(()=>{let _=localStorage.getItem("status");_&&(_=JSON.parse(_),_.turnstile_check&&(l(!0),c(_.turnstile_site_key)))},[]),m.useEffect(()=>{let _=null;return f&&g>0?_=setInterval(()=>{y(g-1)},1e3):g===0&&(p(!1),y(30)),()=>clearInterval(_)},[f,g]);function v(_){r(j=>({...j,email:_}))}async function E(_){if(!n){q(e("请输入邮箱地址"));return}if(o&&d===""){nr(e("请稍后几秒重试,Turnstile 正在检查用户环境!"));return}p(!0),s(!0);const j=await Se.get(`/api/reset_password?email=${n}&turnstile=${d}`),{success:F,message:k}=j.data;F?(Pe(e("重置邮件发送成功,请检查邮箱!")),r({...t,email:""})):q(k),s(!1)}return a.jsxs("div",{className:"relative overflow-hidden bg-gray-100 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:[a.jsx("div",{className:"blur-ball blur-ball-indigo",style:{top:"-80px",right:"-80px",transform:"none"}}),a.jsx("div",{className:"blur-ball blur-ball-teal",style:{top:"50%",left:"-120px"}}),a.jsx("div",{className:"w-full max-w-sm mt-[64px]",children:a.jsx("div",{className:"flex flex-col items-center",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"flex items-center justify-center mb-6 gap-2",children:[a.jsx("img",{src:b,alt:"Logo",className:"h-10 rounded-full"}),a.jsx(tx,{heading:3,className:"!text-gray-800",children:x})]}),a.jsxs(Le,{className:"shadow-xl border-0 !rounded-2xl overflow-hidden",children:[a.jsx("div",{className:"flex justify-center pt-6 pb-2",children:a.jsx(tx,{heading:3,className:"text-gray-800 dark:text-gray-200",children:e("密码重置")})}),a.jsxs("div",{className:"px-2 py-8",children:[a.jsxs(M,{className:"space-y-3",children:[a.jsx(M.Input,{field:"email",label:e("邮箱"),placeholder:e("请输入您的邮箱地址"),name:"email",size:"large",value:n,onChange:v,prefix:a.jsx(Si,{})}),a.jsx("div",{className:"space-y-2 pt-2",children:a.jsx(X,{theme:"solid",className:"w-full !rounded-full",type:"primary",htmlType:"submit",size:"large",onClick:E,loading:i,disabled:f,children:f?`${e("重试")} (${g})`:e("提交")})})]}),a.jsx("div",{className:"mt-6 text-center text-sm",children:a.jsxs(f0e,{children:[e("想起来了?")," ",a.jsx(ji,{to:"/login",className:"text-blue-600 hover:text-blue-800 font-medium",children:e("登录")})]})})]})]}),o&&a.jsx("div",{className:"flex justify-center mt-6",children:a.jsx(tl,{sitekey:u,onVerify:_=>{h(_)}})})]})})})]})},{Text:m0e,Title:rx}=Ie,g0e=()=>{const{t:e}=Ze(),[t,r]=m.useState({email:"",token:""}),{email:n,token:i}=t,s=n&&i,[o,l]=m.useState(!1),[u,c]=m.useState(!1),[d,h]=m.useState(30),[f,p]=m.useState(""),[g,y]=$2(),[b,x]=m.useState(null),v=Sa(),E=yo();m.useEffect(()=>{let j=g.get("token"),F=g.get("email");r({token:j||"",email:F||""}),b&&b.setValues({email:F||"",newPassword:f||""})},[g,f,b]),m.useEffect(()=>{let j=null;return u&&d>0?j=setInterval(()=>{h(d-1)},1e3):d===0&&(c(!1),h(30)),()=>clearInterval(j)},[u,d]);async function _(j){if(!n||!i){q(e("无效的重置链接,请重新发起密码重置请求"));return}c(!0),l(!0);const F=await Se.post("/api/user/reset",{email:n,token:i}),{success:k,message:U}=F.data;if(k){let W=F.data.data;p(W),await Qr(W),O5(`${e("密码已重置并已复制到剪贴板:")} ${W}`)}else q(U);l(!1)}return a.jsxs("div",{className:"relative overflow-hidden bg-gray-100 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:[a.jsx("div",{className:"blur-ball blur-ball-indigo",style:{top:"-80px",right:"-80px",transform:"none"}}),a.jsx("div",{className:"blur-ball blur-ball-teal",style:{top:"50%",left:"-120px"}}),a.jsx("div",{className:"w-full max-w-sm mt-[64px]",children:a.jsx("div",{className:"flex flex-col items-center",children:a.jsxs("div",{className:"w-full max-w-md",children:[a.jsxs("div",{className:"flex items-center justify-center mb-6 gap-2",children:[a.jsx("img",{src:v,alt:"Logo",className:"h-10 rounded-full"}),a.jsx(rx,{heading:3,className:"!text-gray-800",children:E})]}),a.jsxs(Le,{className:"shadow-xl border-0 !rounded-2xl overflow-hidden",children:[a.jsx("div",{className:"flex justify-center pt-6 pb-2",children:a.jsx(rx,{heading:3,className:"text-gray-800 dark:text-gray-200",children:e("密码重置确认")})}),a.jsxs("div",{className:"px-2 py-8",children:[!s&&a.jsx(cr,{type:"danger",description:e("无效的重置链接,请重新发起密码重置请求"),className:"mb-4 !rounded-lg",closeIcon:null}),a.jsxs(M,{getFormApi:j=>x(j),initValues:{email:n||"",newPassword:f||""},className:"space-y-4",children:[a.jsx(M.Input,{field:"email",label:e("邮箱"),name:"email",size:"large",disabled:!0,prefix:a.jsx(Si,{}),placeholder:n?"":e("等待获取邮箱信息...")}),f&&a.jsx(M.Input,{field:"newPassword",label:e("新密码"),name:"newPassword",size:"large",disabled:!0,prefix:a.jsx(oi,{}),suffix:a.jsx(X,{icon:a.jsx(I2,{}),type:"tertiary",theme:"borderless",onClick:async()=>{await Qr(f),O5(`${e("密码已复制到剪贴板:")} ${f}`)},children:e("复制")})}),a.jsx("div",{className:"space-y-2 pt-2",children:a.jsx(X,{theme:"solid",className:"w-full !rounded-full",type:"primary",htmlType:"submit",size:"large",onClick:_,loading:o,disabled:u||f||!s,children:e(f?"密码重置完成":"确认重置密码")})})]}),a.jsx("div",{className:"mt-6 text-center text-sm",children:a.jsx(m0e,{children:a.jsx(ji,{to:"/login",className:"text-blue-600 hover:text-blue-800 font-medium",children:e("返回登录")})})})]})]})]})})})]})},{Text:Dn,Title:y0e}=Ie,nx={"gpt-3.5-turbo":"gpt-3.5-turbo-0125"},ix={400:"500"},b0e={default:"us-central1","claude-3-5-sonnet-20240620":"europe-west1"};function x0e(e){switch(e){case 15:return"按照如下格式输入:APIKey|SecretKey";case 18:return"按照如下格式输入:APPID|APISecret|APIKey";case 22:return"按照如下格式输入:APIKey-AppId,例如:fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041";case 23:return"按照如下格式输入:AppId|SecretId|SecretKey";case 33:return"按照如下格式输入:Ak|Sk|Region";case 50:return"按照如下格式输入: AccessKey|SecretKey";case 51:return"按照如下格式输入: Access Key ID|Secret Access Key";default:return"请输入渠道对应的鉴权密钥"}}const l4=e=>{const{t}=Ze();go();const r=e.editingChannel.id,n=r!==void 0,[i,s]=m.useState(n),o=mi(),l=()=>{e.handleClose()},u={name:"",type:1,key:"",openai_organization:"",max_input_tokens:0,base_url:"",other:"",model_mapping:"",status_code_mapping:"",models:[],auto_ban:1,test_model:"",groups:["default"],priority:0,weight:0,tag:"",multi_key_mode:"random"},[c,d]=m.useState(!1),[h,f]=m.useState(!1),[p,g]=m.useState("random"),[y,b]=m.useState(!0),[x,v]=m.useState(u),[E,_]=m.useState([]),[j,F]=m.useState([]),[k,U]=m.useState([]),[W,K]=m.useState([]),[$,O]=m.useState([]),[R,z]=m.useState(""),[H,B]=m.useState(""),[Y,P]=m.useState(!1),le=m.useRef(null),[be,V]=m.useState([]),[te,de]=m.useState([]),ee=m.useRef(new Set),[ie,G]=m.useState(!1),[N,I]=m.useState(""),[T,J]=m.useState(!1),ve=()=>({...u}),Z=(se,D)=>{if(le.current&&le.current.setValue(se,D),se==="models"&&Array.isArray(D)&&(D=Array.from(new Set(D.map(ce=>(ce||"").trim())))),se==="base_url"&&D.endsWith("/v1")){Je.confirm({title:"警告",content:"不需要在末尾加/v1,New API会自动处理,添加后可能导致请求失败,是否继续?",onOk:()=>{v(ce=>({...ce,[se]:D}))}});return}if(v(ce=>({...ce,[se]:D})),se==="type"){let ce=[];switch(D){case 2:ce=["mj_imagine","mj_variation","mj_reroll","mj_blend","mj_upscale","mj_describe","mj_uploads"];break;case 5:ce=["swap_face","mj_imagine","mj_video","mj_edits","mj_variation","mj_reroll","mj_blend","mj_upscale","mj_describe","mj_zoom","mj_shorten","mj_modal","mj_inpaint","mj_custom_zoom","mj_high_variation","mj_low_variation","mj_pan","mj_uploads"];break;case 36:ce=["suno_music","suno_lyrics"];break;default:ce=dh(D);break}x.models.length===0&&v(Ce=>({...Ce,models:ce})),K(ce),J(!1)}},ge=async()=>{s(!0);let se=await Se.get(`/api/channel/${r}`);if(se===void 0)return;const{success:D,message:ce,data:Ce}=se.data;if(D){Ce.models===""?Ce.models=[]:Ce.models=Ce.models.split(","),Ce.group===""?Ce.groups=[]:Ce.groups=Ce.group.split(","),Ce.model_mapping!==""&&(Ce.model_mapping=JSON.stringify(JSON.parse(Ce.model_mapping),null,2));const Te=Ce.channel_info||{},Qe=Te.is_multi_key===!0;if(G(Qe),Qe){d(!0),f(!0);const Fe=Te.multi_key_mode||"random";g(Fe),Ce.multi_key_mode=Fe}else d(!1),f(!1);v(Ce),le.current&&le.current.setValues(Ce),Ce.auto_ban===0?b(!1):b(!0),K(dh(Ce.type))}else q(ce);s(!1)},De=async se=>{s(!0);const D=x.models||[];let ce=!1;if(n){const Ce=await Se.get("/api/channel/fetch_models/"+r,{skipErrorHandler:!0});Ce&&Ce.data&&Ce.data.success?D.push(...Ce.data.data):ce=!0}else if(!(x!=null&&x.key))q(t("请填写密钥")),ce=!0;else try{const Ce=await Se.post("/api/channel/fetch_models",{base_url:x.base_url,type:x.type,key:x.key},{skipErrorHandler:!0});Ce&&Ce.data&&Ce.data.success?D.push(...Ce.data.data):ce=!0}catch(Ce){console.error("Error fetching models:",Ce),ce=!0}ce?q(t("获取模型列表失败")):(Z(se,Array.from(new Set(D))),Pe(t("获取模型列表成功"))),s(!1)},Oe=async()=>{try{let se=await Se.get("/api/channel/models");const D=se.data.data.map(ce=>{const Ce=(ce.id||"").trim();return{key:Ce,label:Ce,value:Ce}});_(D),O(se.data.data.map(ce=>ce.id)),K(se.data.data.filter(ce=>ce.id.startsWith("gpt-")||ce.id.startsWith("text-")).map(ce=>ce.id))}catch(se){q(se.message)}},ae=async()=>{try{let se=await Se.get("/api/group/");if(se===void 0)return;U(se.data.data.map(D=>({label:D,value:D})))}catch(se){q(se.message)}};m.useEffect(()=>{const se=new Map;E.forEach(Ce=>{const Te=(Ce.value||"").trim();se.has(Te)||se.set(Te,Ce)}),x.models.forEach(Ce=>{const Te=(Ce||"").trim();se.has(Te)||se.set(Te,{key:Te,label:Te,value:Te})});const D=uo(t),ce=Array.from(se.values()).map(Ce=>{const Te=Ce.value;let Qe=null;for(const[Fe,Ve]of Object.entries(D))if(Fe!=="all"&&Ve.filter({model_name:Te})){Qe=Ve.icon;break}return{...Ce,label:a.jsxs("span",{className:"flex items-center gap-1",children:[Qe,Te]})}});F(ce)},[E,x.models,t]),m.useEffect(()=>{if(Oe().then(),ae().then(),!n){v(u),le.current&&le.current.setValues(u);let se=dh(x.type);K(se),v(D=>({...D,models:se}))}},[e.editingChannel.id]),m.useEffect(()=>{le.current&&le.current.setValues(x)},[x]),m.useEffect(()=>{var se,D;e.visible?(n?ge():(se=le.current)==null||se.setValues(ve()),J(!1)):(D=le.current)==null||D.reset()},[e.visible,r]);const we=({fileList:se})=>{ee.current.clear(),(async()=>{let D=[],ce=[];const Ce=[];for(const Te of se){const Qe=Te.fileInstance;if(Qe)try{const Fe=await Qe.text();ce.push(JSON.parse(Fe)),D.push(Te)}catch{ee.current.has(Te.name)||(Ce.push(Te.name),ee.current.add(Te.name))}}!c&&D.length>1&&(D=[D[D.length-1]],ce=[ce[ce.length-1]]),V(ce),de(D),le.current&&le.current.setValue("vertex_files",D),v(Te=>({...Te,vertex_files:D})),Ce.length>0&&q(t("以下文件解析失败,已忽略:{{list}}",{list:Ce.join(", ")}))})()},ne=async()=>{let D={...le.current?le.current.getValues():{}};if(D.type===41)if(T){if(D.key&&D.key.trim()!=="")try{const Fe=JSON.parse(D.key);D.key=JSON.stringify(Fe)}catch{q(t("密钥格式无效,请输入有效的 JSON 格式密钥"));return}else if(!n){nr(t("请输入密钥!"));return}}else{let Fe=be;if(Fe.length===0&&te.length>0)try{Fe=(await Promise.all(te.map(async ot=>{const Ot=ot.fileInstance;if(!Ot)return null;const tr=await Ot.text();return JSON.parse(tr)}))).filter(Boolean)}catch(Ve){q(t("解析密钥文件失败: {{msg}}",{msg:Ve.message}));return}if(Fe.length===0)if(n)delete D.key;else{nr(t("请上传密钥文件!"));return}else c?D.key=JSON.stringify(Fe):D.key=JSON.stringify(Fe[0])}if(n&&(!D.key||D.key.trim()==="")&&delete D.key,delete D.vertex_files,!n&&(!D.name||!D.key)){nr(t("请填写渠道名称和渠道密钥!"));return}if(!Array.isArray(D.models)||D.models.length===0){nr(t("请至少选择一个模型!"));return}if(D.model_mapping&&D.model_mapping!==""&&!Vr(D.model_mapping)){nr(t("模型映射必须是合法的 JSON 格式!"));return}D.base_url&&D.base_url.endsWith("/")&&(D.base_url=D.base_url.slice(0,D.base_url.length-1)),D.type===18&&D.other===""&&(D.other="v2.1");let ce;D.auto_ban=D.auto_ban?1:0,D.models=D.models.join(","),D.group=(D.groups||[]).join(",");let Ce="single";c&&(Ce=h?"multi_to_single":"batch"),n?ce=await Se.put("/api/channel/",{...D,id:parseInt(r)}):ce=await Se.post("/api/channel/",{mode:Ce,multi_key_mode:Ce==="multi_to_single"?p:void 0,channel:D});const{success:Te,message:Qe}=ce.data;Te?(n?Pe(t("渠道更新成功!")):(Pe(t("渠道创建成功!")),v(u)),e.refresh(),e.handleClose()):q(Qe)},ke=()=>{if(R.trim()==="")return;const se=R.split(",").map(Te=>Te.trim());let D=[...x.models],ce=[...j];const Ce=[];se.forEach(Te=>{Te&&!D.includes(Te)&&(D.push(Te),ce.push({key:Te,label:Te,value:Te}),Ce.push(Te))}),F(ce),z(""),Z("models",D),Ce.length>0?Pe(t("已新增 {{count}} 个模型:{{list}}",{count:Ce.length,list:Ce.join(", ")})):nr(t("未发现新增模型"))},Ae=!n||ie?a.jsx(pt,{children:a.jsx(Ln,{disabled:n,checked:c,onChange:se=>{const D=se.target.checked;if(!D&&te.length>1){Je.confirm({title:t("切换为单密钥模式"),content:t("将仅保留第一个密钥文件,其余文件将被移除,是否继续?"),onOk:()=>{var Te;const ce=te[0],Ce=be[0]?[be[0]]:[];de([ce]),V(Ce),(Te=le.current)==null||Te.setValue("vertex_files",[ce]),v(Qe=>({...Qe,vertex_files:[ce]})),d(!1),f(!1),g("random")},onCancel:()=>{d(!0)},centered:!0});return}d(D),D?(J(!1),x.type===41&&(le.current&&le.current.setValue("key",""),Z("key",""))):(f(!1),g("random"))},children:t("批量创建")})}):null,Q=m.useMemo(()=>ku.map(se=>({...se,label:se.label})),[]),he=se=>{const{disabled:D,selected:ce,label:Ce,value:Te,focused:Qe,className:Fe,style:Ve,onMouseEnter:ot,onClick:Ot,...tr}=se,hr=N?[N]:[],tn=["flex items-center gap-3 px-3 py-2 transition-all duration-200 rounded-lg mx-2 my-1",Qe&&"bg-blue-50 shadow-sm",ce&&"bg-blue-100 text-blue-700 shadow-lg ring-2 ring-blue-200 ring-opacity-50",D&&"opacity-50 cursor-not-allowed",!D&&"hover:bg-gray-50 hover:shadow-md cursor-pointer",Fe].filter(Boolean).join(" ");return a.jsx("div",{style:Ve,className:tn,onClick:()=>!D&&Ot(),onMouseEnter:jr=>ot(),children:a.jsxs("div",{className:"flex items-center gap-3 w-full",children:[a.jsx("div",{className:"flex-shrink-0 w-5 h-5 flex items-center justify-center",children:s4(Te)}),a.jsx("div",{className:"flex-1 min-w-0",children:a.jsx(F5,{sourceString:Ce,searchWords:hr,className:"text-sm font-medium truncate"})}),ce&&a.jsx("div",{className:"flex-shrink-0 text-blue-600",children:a.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:a.jsx("path",{d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})})})]})})};return a.jsx(a.Fragment,{children:a.jsxs(Nl,{placement:n?"right":"left",title:a.jsxs(pt,{children:[a.jsx(ye,{color:"blue",shape:"circle",children:t(n?"编辑":"新建")}),a.jsx(y0e,{heading:4,className:"m-0",children:t(n?"更新渠道信息":"创建新的渠道")})]}),bodyStyle:{padding:"0"},visible:e.visible,width:o?"100%":600,footer:a.jsx("div",{className:"flex justify-end bg-white",children:a.jsxs(pt,{children:[a.jsx(X,{theme:"solid",onClick:()=>{var se;return(se=le.current)==null?void 0:se.submitForm()},icon:a.jsx(ys,{}),children:t("提交")}),a.jsx(X,{theme:"light",type:"primary",onClick:l,icon:a.jsx(ls,{}),children:t("取消")})]})}),closeIcon:null,onCancel:()=>l(),children:[a.jsx(M,{initValues:u,getFormApi:se=>le.current=se,onSubmit:ne,children:()=>a.jsx(Dt,{spinning:i,children:a.jsxs("div",{className:"p-2",children:[a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0 mb-6",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"blue",className:"mr-2 shadow-md",children:a.jsx(_B,{size:16})}),a.jsxs("div",{children:[a.jsx(Dn,{className:"text-lg font-medium",children:t("基本信息")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("渠道的基本配置信息")})]})]}),a.jsx(M.Select,{field:"type",label:t("类型"),placeholder:t("请选择渠道类型"),rules:[{required:!0,message:t("请选择渠道类型")}],optionList:Q,style:{width:"100%"},filter:!0,searchPosition:"dropdown",onSearch:se=>I(se),renderOptionItem:he,onChange:se=>Z("type",se)}),a.jsx(M.Input,{field:"name",label:t("名称"),placeholder:t("请为渠道命名"),rules:[{required:!0,message:t("请为渠道命名")}],showClear:!0,onChange:se=>Z("name",se),autoComplete:"new-password"}),c?x.type===41?a.jsx(M.Upload,{field:"vertex_files",label:t("密钥文件 (.json)"),accept:".json",multiple:!0,draggable:!0,dragIcon:a.jsx(S5,{}),dragMainText:t("点击上传文件或拖拽文件到这里"),dragSubText:t("仅支持 JSON 文件,支持多文件"),style:{marginTop:10},uploadTrigger:"custom",beforeUpload:()=>!1,onChange:we,fileList:te,rules:n?[]:[{required:!0,message:t("请上传密钥文件")}],extraText:Ae}):a.jsx(M.TextArea,{field:"key",label:t("密钥"),placeholder:t("请输入密钥,一行一个"),rules:n?[]:[{required:!0,message:t("请输入密钥")}],autosize:!0,autoComplete:"new-password",onChange:se=>Z("key",se),extraText:Ae,showClear:!0}):a.jsx(a.Fragment,{children:x.type===41?a.jsxs(a.Fragment,{children:[!c&&a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx(Dn,{className:"text-sm font-medium",children:t("密钥输入方式")}),a.jsxs(pt,{children:[a.jsx(X,{size:"small",type:T?"tertiary":"primary",onClick:()=>{J(!1),le.current&&le.current.setValue("key",""),Z("key","")},children:t("文件上传")}),a.jsx(X,{size:"small",type:T?"primary":"tertiary",onClick:()=>{J(!0),V([]),de([]),le.current&&le.current.setValue("vertex_files",[]),v(se=>({...se,vertex_files:[]}))},children:t("手动输入")})]})]}),c&&a.jsx(cr,{type:"info",description:t("批量创建模式下仅支持文件上传,不支持手动输入"),className:"!rounded-lg mb-3"}),T&&!c?a.jsx(M.TextArea,{field:"key",label:t(n?"密钥(编辑模式下,保存的密钥不会显示)":"密钥"),placeholder:t(`请输入 JSON 格式的密钥内容,例如:
- {
- "type": "service_account",
- "project_id": "your-project-id",
- "private_key_id": "...",
- "private_key": "...",
- "client_email": "...",
- "client_id": "...",
- "auth_uri": "...",
- "token_uri": "...",
- "auth_provider_x509_cert_url": "...",
- "client_x509_cert_url": "..."
- }`),rules:n?[]:[{required:!0,message:t("请输入密钥")}],autoComplete:"new-password",onChange:se=>Z("key",se),extraText:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Dn,{type:"tertiary",size:"small",children:t("请输入完整的 JSON 格式密钥内容")}),Ae]}),autosize:!0,showClear:!0}):a.jsx(M.Upload,{field:"vertex_files",label:t("密钥文件 (.json)"),accept:".json",draggable:!0,dragIcon:a.jsx(S5,{}),dragMainText:t("点击上传文件或拖拽文件到这里"),dragSubText:t("仅支持 JSON 文件"),style:{marginTop:10},uploadTrigger:"custom",beforeUpload:()=>!1,onChange:we,fileList:te,rules:n?[]:[{required:!0,message:t("请上传密钥文件")}],extraText:Ae})]}):a.jsx(M.Input,{field:"key",label:t(n?"密钥(编辑模式下,保存的密钥不会显示)":"密钥"),placeholder:t(x0e(x.type)),rules:n?[]:[{required:!0,message:t("请输入密钥")}],autoComplete:"new-password",onChange:se=>Z("key",se),extraText:Ae,showClear:!0})}),c&&h&&a.jsxs(a.Fragment,{children:[a.jsx(M.Select,{field:"multi_key_mode",label:t("密钥聚合模式"),placeholder:t("请选择多密钥使用策略"),optionList:[{label:t("随机"),value:"random"},{label:t("轮询"),value:"polling"}],style:{width:"100%"},value:x.multi_key_mode||"random",onChange:se=>{g(se),Z("multi_key_mode",se)}}),x.multi_key_mode==="polling"&&a.jsx(cr,{type:"warning",description:t("轮询模式必须搭配Redis和内存缓存功能使用,否则性能将大幅降低,并且无法实现轮询功能"),className:"!rounded-lg mt-2"})]}),x.type===18&&a.jsx(M.Input,{field:"other",label:t("模型版本"),placeholder:"请输入星火大模型版本,注意是接口地址中的版本号,例如:v2.1",onChange:se=>Z("other",se),showClear:!0}),x.type===41&&a.jsx(M.TextArea,{field:"other",label:t("部署地区"),placeholder:t(`请输入部署地区,例如:us-central1
- 支持使用模型映射格式
- {
- "default": "us-central1",
- "claude-3-5-sonnet-20240620": "europe-west1"
- }`),autosize:!0,onChange:se=>Z("other",se),rules:[{required:!0,message:t("请填写部署地区")}],extraText:a.jsx(Dn,{className:"!text-semi-color-primary cursor-pointer",onClick:()=>Z("other",JSON.stringify(b0e,null,2)),children:t("填入模板")}),showClear:!0}),x.type===21&&a.jsx(M.Input,{field:"other",label:t("知识库 ID"),placeholder:"请输入知识库 ID,例如:123456",onChange:se=>Z("other",se),showClear:!0}),x.type===39&&a.jsx(M.Input,{field:"other",label:"Account ID",placeholder:"请输入Account ID,例如:d6b5da8hk1awo8nap34ube6gh",onChange:se=>Z("other",se),showClear:!0}),x.type===49&&a.jsx(M.Input,{field:"other",label:t("智能体ID"),placeholder:"请输入智能体ID,例如:7342866812345",onChange:se=>Z("other",se),showClear:!0}),x.type===1&&a.jsx(M.Input,{field:"openai_organization",label:t("组织"),placeholder:t("请输入组织org-xxx"),showClear:!0,helpText:t("组织,不填则为默认组织"),onChange:se=>Z("openai_organization",se)})]}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0 mb-6",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"green",className:"mr-2 shadow-md",children:a.jsx(kB,{size:16})}),a.jsxs("div",{children:[a.jsx(Dn,{className:"text-lg font-medium",children:t("API 配置")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("API 地址和相关配置")})]})]}),x.type===40&&a.jsx(cr,{type:"info",description:a.jsxs("div",{children:[a.jsxs(Dn,{strong:!0,children:[t("邀请链接"),":"]}),a.jsx(Dn,{link:!0,underline:!0,className:"ml-2 cursor-pointer",onClick:()=>window.open("https://cloud.siliconflow.cn/i/hij0YNTZ"),children:"https://cloud.siliconflow.cn/i/hij0YNTZ"})]}),className:"!rounded-lg"}),x.type===3&&a.jsxs(a.Fragment,{children:[a.jsx(cr,{type:"warning",description:t('2025年5月10日后添加的渠道,不需要再在部署的时候移除模型名称中的"."'),className:"!rounded-lg"}),a.jsx("div",{children:a.jsx(M.Input,{field:"base_url",label:"AZURE_OPENAI_ENDPOINT",placeholder:t("请输入 AZURE_OPENAI_ENDPOINT,例如:https://docs-test-001.openai.azure.com"),onChange:se=>Z("base_url",se),showClear:!0})}),a.jsx("div",{children:a.jsx(M.Input,{field:"other",label:t("默认 API 版本"),placeholder:t("请输入默认 API 版本,例如:2025-04-01-preview"),onChange:se=>Z("other",se),showClear:!0})})]}),x.type===8&&a.jsxs(a.Fragment,{children:[a.jsx(cr,{type:"warning",description:t("如果你对接的是上游One API或者New API等转发项目,请使用OpenAI类型,不要使用此类型,除非你知道你在做什么。"),className:"!rounded-lg"}),a.jsx("div",{children:a.jsx(M.Input,{field:"base_url",label:t("完整的 Base URL,支持变量{model}"),placeholder:t("请输入完整的URL,例如:https://api.openai.com/v1/chat/completions"),onChange:se=>Z("base_url",se),showClear:!0})})]}),x.type===37&&a.jsx(cr,{type:"warning",description:t("Dify渠道只适配chatflow和agent,并且agent不支持图片!"),className:"!rounded-lg"}),x.type!==3&&x.type!==8&&x.type!==22&&x.type!==36&&x.type!==45&&a.jsx("div",{children:a.jsx(M.Input,{field:"base_url",label:t("API地址"),placeholder:t("此项可选,用于通过自定义API地址来进行 API 调用,末尾不要带/v1和/"),onChange:se=>Z("base_url",se),showClear:!0,extraText:t("对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写")})}),x.type===22&&a.jsx("div",{children:a.jsx(M.Input,{field:"base_url",label:t("私有部署地址"),placeholder:t("请输入私有部署地址,格式为:https://fastgpt.run/api/openapi"),onChange:se=>Z("base_url",se),showClear:!0})}),x.type===36&&a.jsx("div",{children:a.jsx(M.Input,{field:"base_url",label:t("注意非Chat API,请务必填写正确的API地址,否则可能导致无法使用"),placeholder:t("请输入到 /suno 前的路径,通常就是域名,例如:https://api.example.com"),onChange:se=>Z("base_url",se),showClear:!0})})]}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0 mb-6",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"purple",className:"mr-2 shadow-md",children:a.jsx(Wv,{size:16})}),a.jsxs("div",{children:[a.jsx(Dn,{className:"text-lg font-medium",children:t("模型配置")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("模型选择和映射设置")})]})]}),a.jsx(M.Select,{field:"models",label:t("模型"),placeholder:t("请选择该渠道所支持的模型"),rules:[{required:!0,message:t("请选择模型")}],multiple:!0,filter:!0,searchPosition:"dropdown",optionList:j,style:{width:"100%"},onChange:se=>Z("models",se),extraText:a.jsxs(pt,{wrap:!0,children:[a.jsx(X,{size:"small",type:"primary",onClick:()=>Z("models",W),children:t("填入相关模型")}),a.jsx(X,{size:"small",type:"secondary",onClick:()=>Z("models",$),children:t("填入所有模型")}),a.jsx(X,{size:"small",type:"tertiary",onClick:()=>De("models"),children:t("获取模型列表")}),a.jsx(X,{size:"small",type:"warning",onClick:()=>Z("models",[]),children:t("清除所有模型")}),a.jsx(X,{size:"small",type:"tertiary",onClick:()=>{if(x.models.length===0){nr(t("没有模型可以复制"));return}try{Qr(x.models.join(",")),Pe(t("模型列表已复制到剪贴板"))}catch{q(t("复制失败"))}},children:t("复制所有模型")})]})}),a.jsx(M.Input,{field:"custom_model",label:t("自定义模型名称"),placeholder:t("输入自定义模型名称"),onChange:se=>z(se.trim()),value:R,suffix:a.jsx(X,{size:"small",type:"primary",onClick:ke,children:t("填入")})}),a.jsx(M.Input,{field:"test_model",label:t("默认测试模型"),placeholder:t("不填则为模型列表第一个"),onChange:se=>Z("test_model",se),showClear:!0}),a.jsx(M.TextArea,{field:"model_mapping",label:t("模型重定向"),placeholder:t("此项可选,用于修改请求体中的模型名称,为一个 JSON 字符串,键为请求中模型名称,值为要替换的模型名称,例如:")+`
- ${JSON.stringify(nx,null,2)}`,autosize:!0,onChange:se=>Z("model_mapping",se),extraText:a.jsx(Dn,{className:"!text-semi-color-primary cursor-pointer",onClick:()=>Z("model_mapping",JSON.stringify(nx,null,2)),children:t("填入模板")}),showClear:!0})]}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0 mb-6",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"orange",className:"mr-2 shadow-md",children:a.jsx(i6,{size:16})}),a.jsxs("div",{children:[a.jsx(Dn,{className:"text-lg font-medium",children:t("高级设置")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("渠道的高级配置选项")})]})]}),a.jsx(M.Select,{field:"groups",label:t("分组"),placeholder:t("请选择可以使用该渠道的分组"),multiple:!0,allowAdditions:!0,additionLabel:t("请在系统设置页面编辑分组倍率以添加新的分组:"),optionList:k,style:{width:"100%"},onChange:se=>Z("groups",se)}),a.jsx(M.Input,{field:"tag",label:t("渠道标签"),placeholder:t("渠道标签"),showClear:!0,onChange:se=>Z("tag",se)}),a.jsxs(Ge,{gutter:12,children:[a.jsx(_e,{span:12,children:a.jsx(M.InputNumber,{field:"priority",label:t("渠道优先级"),placeholder:t("渠道优先级"),min:0,onNumberChange:se=>Z("priority",se),style:{width:"100%"}})}),a.jsx(_e,{span:12,children:a.jsx(M.InputNumber,{field:"weight",label:t("渠道权重"),placeholder:t("渠道权重"),min:0,onNumberChange:se=>Z("weight",se),style:{width:"100%"}})})]}),a.jsx(M.Switch,{field:"auto_ban",label:t("是否自动禁用"),checkedText:t("开"),uncheckedText:t("关"),onChange:se=>b(se),extraText:t("仅当自动禁用开启时有效,关闭后不会自动禁用该渠道"),initValue:y}),a.jsx(M.TextArea,{field:"param_override",label:t("参数覆盖"),placeholder:t("此项可选,用于覆盖请求参数。不支持覆盖 stream 参数。为一个 JSON 字符串,例如:")+`
- {
- "temperature": 0
- }`,autosize:!0,onChange:se=>Z("param_override",se),extraText:a.jsx(Dn,{className:"!text-semi-color-primary cursor-pointer",onClick:()=>Z("param_override",JSON.stringify({temperature:0},null,2)),children:t("填入模板")}),showClear:!0}),a.jsx(M.TextArea,{field:"status_code_mapping",label:t("状态码复写"),placeholder:t("此项可选,用于复写返回的状态码,仅影响本地判断,不修改返回到上游的状态码,比如将claude渠道的400错误复写为500(用于重试),请勿滥用该功能,例如:")+`
- `+JSON.stringify(ix,null,2),autosize:!0,onChange:se=>Z("status_code_mapping",se),extraText:a.jsx(Dn,{className:"!text-semi-color-primary cursor-pointer",onClick:()=>Z("status_code_mapping",JSON.stringify(ix,null,2)),children:t("填入模板")}),showClear:!0}),a.jsx(M.TextArea,{field:"setting",label:t("渠道额外设置"),placeholder:t("此项可选,用于配置渠道特定设置,为一个 JSON 字符串,例如:")+`
- {
- "force_format": true
- }`,autosize:!0,onChange:se=>Z("setting",se),extraText:a.jsxs(pt,{wrap:!0,children:[a.jsx(Dn,{className:"!text-semi-color-primary cursor-pointer",onClick:()=>Z("setting",JSON.stringify({force_format:!0},null,2)),children:t("填入模板")}),a.jsx(Dn,{className:"!text-semi-color-primary cursor-pointer",onClick:()=>window.open("https://github.com/aiprodcoder/MIXAPI/blob/main/docs/channel/other_setting.md"),children:t("设置说明")})]}),showClear:!0})]})]})})},n?"edit":"new"),a.jsx(a6,{src:H,visible:Y,onVisibleChange:se=>P(se)})]})})},{Text:Ho,Title:v0e}=Ie,w0e={"gpt-3.5-turbo":"gpt-3.5-turbo-0125"},E0e=e=>{const{t}=Ze(),{visible:r,tag:n,handleClose:i,refresh:s}=e,[o,l]=m.useState(!1),[u,c]=m.useState([]),[d,h]=m.useState([]),[f,p]=m.useState([]),[g,y]=m.useState(""),b={tag:"",new_tag:null,model_mapping:null,groups:[],models:[]},[x,v]=m.useState(b),E=m.useRef(null),_=()=>({...b}),j=($,O)=>{if(v(R=>({...R,[$]:O})),E.current&&E.current.setValue($,O),$==="type"){let R=[];switch(O){case 2:R=["mj_imagine","mj_variation","mj_reroll","mj_blend","mj_upscale","mj_describe","mj_uploads"];break;case 5:R=["swap_face","mj_imagine","mj_video","mj_edits","mj_variation","mj_reroll","mj_blend","mj_upscale","mj_describe","mj_zoom","mj_shorten","mj_modal","mj_inpaint","mj_custom_zoom","mj_high_variation","mj_low_variation","mj_pan","mj_uploads"];break;case 36:R=["suno_music","suno_lyrics"];break;default:R=dh(O);break}x.models.length===0&&v(z=>({...z,models:R}))}},F=async()=>{try{let O=(await Se.get("/api/channel/models")).data.data.map(R=>({label:R.id,value:R.id}));c(O)}catch($){q($.message)}},k=async()=>{try{let $=await Se.get("/api/group/");if($===void 0)return;p($.data.data.map(O=>({label:O,value:O})))}catch($){q($.message)}},U=async $=>{var z;l(!0);const O=$||((z=E.current)==null?void 0:z.getValues())||{};let R={tag:n};if(O.model_mapping){if(!Vr(O.model_mapping)){nr("模型映射必须是合法的 JSON 格式!"),l(!1);return}R.model_mapping=O.model_mapping}if(O.groups&&O.groups.length>0&&(R.groups=O.groups.join(",")),O.models&&O.models.length>0&&(R.models=O.models.join(",")),R.new_tag=O.new_tag,R.model_mapping===void 0&&R.groups===void 0&&R.models===void 0&&R.new_tag===void 0){en("没有任何修改!"),l(!1);return}await W(R),l(!1)},W=async $=>{var O;try{const R=await Se.put("/api/channel/tag",$);(O=R==null?void 0:R.data)!=null&&O.success&&(Pe("标签更新成功!"),s(),i())}catch(R){q(R)}};m.useEffect(()=>{let $=[...u];x.models.forEach(O=>{$.find(R=>R.label===O)||$.push({label:O,value:O})}),h($)},[u,x.models]),m.useEffect(()=>{const $=async()=>{var O;if(n){l(!0);try{const R=await Se.get(`/api/channel/tag/models?tag=${n}`);if((O=R==null?void 0:R.data)!=null&&O.success){const z=R.data.data?R.data.data.split(","):[];j("models",z)}else q(R.data.message)}catch(R){q(R.message)}finally{l(!1)}}};F().then(),k().then(),$().then(),E.current&&E.current.setValues({..._(),tag:n,new_tag:n}),v({...b,tag:n,new_tag:n})},[r,n]),m.useEffect(()=>{E.current&&E.current.setValues(x)},[x]);const K=()=>{if(g.trim()==="")return;const $=g.split(",").map(H=>H.trim());let O=[...x.models],R=[...d];const z=[];$.forEach(H=>{H&&!O.includes(H)&&(O.push(H),R.push({key:H,text:H,value:H}),z.push(H))}),h(R),y(""),j("models",O),z.length>0?Pe(t("已新增 {{count}} 个模型:{{list}}",{count:z.length,list:z.join(", ")})):nr(t("未发现新增模型"))};return a.jsx(Nl,{placement:"right",title:a.jsxs(pt,{children:[a.jsx(ye,{color:"blue",shape:"circle",children:t("编辑")}),a.jsx(v0e,{heading:4,className:"m-0",children:t("编辑标签")})]}),bodyStyle:{padding:"0"},visible:r,width:600,onCancel:i,footer:a.jsx("div",{className:"flex justify-end bg-white",children:a.jsxs(pt,{children:[a.jsx(X,{theme:"solid",onClick:()=>{var $;return($=E.current)==null?void 0:$.submitForm()},loading:o,icon:a.jsx(ys,{}),children:t("保存")}),a.jsx(X,{theme:"light",type:"primary",onClick:i,icon:a.jsx(ls,{}),children:t("取消")})]})}),closeIcon:null,children:a.jsx(M,{initValues:_(),getFormApi:$=>E.current=$,onSubmit:U,children:()=>a.jsx(Dt,{spinning:o,children:a.jsxs("div",{className:"p-2",children:[a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0 mb-6",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"blue",className:"mr-2 shadow-md",children:a.jsx(OB,{size:16})}),a.jsxs("div",{children:[a.jsx(Ho,{className:"text-lg font-medium",children:t("标签信息")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("标签的基本配置")})]})]}),a.jsx(cr,{type:"warning",description:t("所有编辑均为覆盖操作,留空则不更改"),className:"!rounded-lg mb-4"}),a.jsx("div",{className:"space-y-4",children:a.jsx(M.Input,{field:"new_tag",label:t("标签名称"),placeholder:t("请输入新标签,留空则解散标签"),onChange:$=>j("new_tag",$)})})]}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0 mb-6",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"purple",className:"mr-2 shadow-md",children:a.jsx(Wv,{size:16})}),a.jsxs("div",{children:[a.jsx(Ho,{className:"text-lg font-medium",children:t("模型配置")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("模型选择和映射设置")})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx(cr,{type:"info",description:t("当前模型列表为该标签下所有渠道模型列表最长的一个,并非所有渠道的并集,请注意可能导致某些渠道模型丢失。"),className:"!rounded-lg mb-4"}),a.jsx(M.Select,{field:"models",label:t("模型"),placeholder:t("请选择该渠道所支持的模型,留空则不更改"),multiple:!0,filter:!0,searchPosition:"dropdown",optionList:d,style:{width:"100%"},onChange:$=>j("models",$)}),a.jsx(M.Input,{field:"custom_model",label:t("自定义模型名称"),placeholder:t("输入自定义模型名称"),onChange:$=>y($.trim()),suffix:a.jsx(X,{size:"small",type:"primary",onClick:K,children:t("填入")})}),a.jsx(M.TextArea,{field:"model_mapping",label:t("模型重定向"),placeholder:t("此项可选,用于修改请求体中的模型名称,为一个 JSON 字符串,键为请求中模型名称,值为要替换的模型名称,留空则不更改"),autosize:!0,onChange:$=>j("model_mapping",$),extraText:a.jsxs(pt,{children:[a.jsx(Ho,{className:"!text-semi-color-primary cursor-pointer",onClick:()=>j("model_mapping",JSON.stringify(w0e,null,2)),children:t("填入模板")}),a.jsx(Ho,{className:"!text-semi-color-primary cursor-pointer",onClick:()=>j("model_mapping",JSON.stringify({},null,2)),children:t("清空重定向")}),a.jsx(Ho,{className:"!text-semi-color-primary cursor-pointer",onClick:()=>j("model_mapping",""),children:t("不更改")})]})})]})]}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"green",className:"mr-2 shadow-md",children:a.jsx(Js,{size:16})}),a.jsxs("div",{children:[a.jsx(Ho,{className:"text-lg font-medium",children:t("分组设置")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("用户分组配置")})]})]}),a.jsx("div",{className:"space-y-4",children:a.jsx(M.Select,{field:"groups",label:t("分组"),placeholder:t("请选择可以使用该渠道的分组,留空则不更改"),multiple:!0,allowAdditions:!0,additionLabel:t("请在系统设置页面编辑分组倍率以添加新的分组:"),optionList:f,style:{width:"100%"},onChange:$=>j("groups",$)})})]})]})})},n||"edit")})};var hF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ax=Bt.createContext&&Bt.createContext(hF),C0e=["attr","size","title"];function S0e(e,t){if(e==null)return{};var r=F0e(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function F0e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function t2(){return t2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t2.apply(this,arguments)}function sx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function r2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sx(Object(r),!0).forEach(function(n){j0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j0e(e,t,r){return t=_0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _0e(e){var t=k0e(e,"string");return typeof t=="symbol"?t:t+""}function k0e(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fF(e){return e&&e.map((t,r)=>Bt.createElement(t.tag,r2({key:r},t.attr),fF(t.child)))}function bd(e){return t=>Bt.createElement(O0e,t2({attr:r2({},e.attr)},t),fF(e.child))}function O0e(e){var t=r=>{var{attr:n,size:i,title:s}=e,o=S0e(e,C0e),l=i||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),Bt.createElement("svg",t2({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:u,style:r2(r2({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&Bt.createElement("title",null,s),e.children)};return ax!==void 0?Bt.createElement(ax.Consumer,null,r=>t(r)):t(hF)}function A0e(e){return bd({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z"},child:[]}]})(e)}const D0e=()=>{const{t:e}=Ze(),t=mi();let r;const n=(ue,pe=void 0)=>{var $e,Xe;if(!r){r=new Map;for(let at=0;at<ku.length;at++)r[ku[at].value]=ku[at];r[0]={value:0,label:e("未知类型"),color:"grey"}}let Ne=s4(ue);return pe!=null&&pe.is_multi_key&&(Ne=(pe==null?void 0:pe.multi_key_mode)==="random"?a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(A0e,{className:"text-blue-500"}),Ne]}):a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(AB,{className:"text-blue-500"}),Ne]})),a.jsx(ye,{color:($e=r[ue])==null?void 0:$e.color,shape:"circle",prefixIcon:Ne,children:(Xe=r[ue])==null?void 0:Xe.label})},i=()=>a.jsx(ye,{color:"light-blue",shape:"circle",type:"light",children:e("标签聚合")}),s=(ue,pe=void 0)=>{if(pe&&pe.is_multi_key){let Ne=pe.multi_key_size,$e=Ne;return pe.multi_key_status_list&&($e=Ne-Object.keys(pe.multi_key_status_list).length),o(ue,Ne,$e)}switch(ue){case 1:return a.jsx(ye,{color:"green",shape:"circle",children:e("已启用")});case 2:return a.jsx(ye,{color:"red",shape:"circle",children:e("已禁用")});case 3:return a.jsx(ye,{color:"yellow",shape:"circle",children:e("自动禁用")});default:return a.jsx(ye,{color:"grey",shape:"circle",children:e("未知状态")})}},o=(ue,pe,Ne)=>{switch(ue){case 1:return a.jsxs(ye,{color:"green",shape:"circle",children:[e("已启用")," ",Ne,"/",pe]});case 2:return a.jsxs(ye,{color:"red",shape:"circle",children:[e("已禁用")," ",Ne,"/",pe]});case 3:return a.jsxs(ye,{color:"yellow",shape:"circle",children:[e("自动禁用")," ",Ne,"/",pe]});default:return a.jsxs(ye,{color:"grey",shape:"circle",children:[e("未知状态")," ",Ne,"/",pe]})}},l=ue=>{let pe=ue/1e3;return pe=pe.toFixed(2)+e(" 秒"),ue===0?a.jsx(ye,{color:"grey",shape:"circle",children:e("未测试")}):ue<=1e3?a.jsx(ye,{color:"green",shape:"circle",children:pe}):ue<=3e3?a.jsx(ye,{color:"lime",shape:"circle",children:pe}):ue<=5e3?a.jsx(ye,{color:"yellow",shape:"circle",children:pe}):a.jsx(ye,{color:"red",shape:"circle",children:pe})},u={ID:"id",NAME:"name",GROUP:"group",TYPE:"type",STATUS:"status",RESPONSE_TIME:"response_time",BALANCE:"balance",PRIORITY:"priority",WEIGHT:"weight",OPERATE:"operate"},[c,d]=m.useState({}),[h,f]=m.useState(!1),[p,g]=m.useState(localStorage.getItem("channel-status-filter")||"all");m.useEffect(()=>{const ue=localStorage.getItem("channels-table-columns");if(ue)try{const pe=JSON.parse(ue),$e={...y(),...pe};d($e)}catch(pe){console.error("Failed to parse saved column preferences",pe),b()}else b()},[]),m.useEffect(()=>{Object.keys(c).length>0&&localStorage.setItem("channels-table-columns",JSON.stringify(c))},[c]);const y=()=>({[u.ID]:!0,[u.NAME]:!0,[u.GROUP]:!0,[u.TYPE]:!0,[u.STATUS]:!0,[u.RESPONSE_TIME]:!0,[u.BALANCE]:!0,[u.PRIORITY]:!0,[u.WEIGHT]:!0,[u.OPERATE]:!0}),b=()=>{const ue=y();d(ue)},x=(ue,pe)=>{const Ne={...c,[ue]:pe};d(Ne)},v=ue=>{const pe=Object.keys(u).map($e=>u[$e]),Ne={};pe.forEach($e=>{Ne[$e]=ue}),d(Ne)},E=[{key:u.ID,title:e("ID"),dataIndex:"id"},{key:u.NAME,title:e("名称"),dataIndex:"name"},{key:u.GROUP,title:e("分组"),dataIndex:"group",render:(ue,pe,Ne)=>a.jsx("div",{children:a.jsx(pt,{spacing:2,children:ue==null?void 0:ue.split(",").sort(($e,Xe)=>$e==="default"?-1:Xe==="default"?1:$e.localeCompare(Xe)).map(($e,Xe)=>R1($e))})})},{key:u.TYPE,title:e("类型"),dataIndex:"type",render:(ue,pe,Ne)=>pe.children===void 0?pe.channel_info&&pe.channel_info.is_multi_key?a.jsx(a.Fragment,{children:n(ue,pe.channel_info)}):a.jsx(a.Fragment,{children:n(ue)}):a.jsx(a.Fragment,{children:i()})},{key:u.STATUS,title:e("状态"),dataIndex:"status",render:(ue,pe,Ne)=>{if(ue===3){pe.other_info===""&&(pe.other_info="{}");let $e=JSON.parse(pe.other_info),Xe=$e.status_reason,at=$e.status_time;return a.jsx("div",{children:a.jsx(Gt,{content:e("原因:")+Xe+e(",时间:")+_r(at),children:s(ue,pe.channel_info)})})}else return s(ue,pe.channel_info)}},{key:u.RESPONSE_TIME,title:e("响应时间"),dataIndex:"response_time",render:(ue,pe,Ne)=>a.jsx("div",{children:l(ue)})},{key:u.BALANCE,title:e("已用/剩余"),dataIndex:"expired_time",render:(ue,pe,Ne)=>pe.children===void 0?a.jsx("div",{children:a.jsxs(pt,{spacing:1,children:[a.jsx(Gt,{content:e("已用额度"),children:a.jsx(ye,{color:"white",type:"ghost",shape:"circle",children:Tt(pe.used_quota)})}),a.jsx(Gt,{content:e("剩余额度$")+pe.balance+e(",点击更新"),children:a.jsx(ye,{color:"white",type:"ghost",shape:"circle",onClick:()=>kd(pe),children:Du(pe.balance)})})]})}):a.jsx(Gt,{content:e("已用额度"),children:a.jsx(ye,{color:"white",type:"ghost",shape:"circle",children:Tt(pe.used_quota)})})},{key:u.PRIORITY,title:e("优先级"),dataIndex:"priority",render:(ue,pe,Ne)=>pe.children===void 0?a.jsx("div",{children:a.jsx(ga,{style:{width:70},name:"priority",onBlur:$e=>{An(pe.id,"priority",pe,$e.target.value)},keepFocus:!0,innerButtons:!0,defaultValue:pe.priority,min:-999,size:"small"})}):a.jsx(ga,{style:{width:70},name:"priority",keepFocus:!0,onBlur:$e=>{Je.warning({title:e("修改子渠道优先级"),content:e("确定要修改所有子渠道优先级为 ")+$e.target.value+e(" 吗?"),onOk:()=>{$e.target.value!==""&&Sr("priority",{tag:pe.key,priority:$e.target.value})}})},innerButtons:!0,defaultValue:pe.priority,min:-999,size:"small"})},{key:u.WEIGHT,title:e("权重"),dataIndex:"weight",render:(ue,pe,Ne)=>pe.children===void 0?a.jsx("div",{children:a.jsx(ga,{style:{width:70},name:"weight",onBlur:$e=>{An(pe.id,"weight",pe,$e.target.value)},keepFocus:!0,innerButtons:!0,defaultValue:pe.weight,min:0,size:"small"})}):a.jsx(ga,{style:{width:70},name:"weight",keepFocus:!0,onBlur:$e=>{Je.warning({title:e("修改子渠道权重"),content:e("确定要修改所有子渠道权重为 ")+$e.target.value+e(" 吗?"),onOk:()=>{$e.target.value!==""&&Sr("weight",{tag:pe.key,weight:$e.target.value})}})},innerButtons:!0,defaultValue:pe.weight,min:-999,size:"small"})},{key:u.OPERATE,title:"",dataIndex:"operate",fixed:"right",render:(ue,pe,Ne)=>{var $e;if(pe.children===void 0){const Xe=[{node:"item",name:e("删除"),type:"danger",onClick:()=>{Je.confirm({title:e("确定是否要删除此渠道?"),content:e("此修改将不可逆"),onOk:()=>{(async()=>(await An(pe.id,"delete",pe),await br(),setTimeout(()=>{_.length===0&&U>1&&br(U-1)},100)))()}})}},{node:"item",name:e("复制"),type:"tertiary",onClick:()=>{Je.confirm({title:e("确定是否要复制此渠道?"),content:e("复制渠道的所有信息"),onOk:()=>fn(pe)})}}];return a.jsxs(pt,{wrap:!0,children:[a.jsxs(j5,{className:"overflow-hidden","aria-label":e("测试单个渠道操作项目组"),children:[a.jsx(X,{size:"small",type:"tertiary",onClick:()=>Ee(pe,""),children:e("测试")}),a.jsx(X,{size:"small",type:"tertiary",icon:a.jsx(_5,{}),onClick:()=>{Ae(pe),ke(!0)}})]}),($e=pe.channel_info)!=null&&$e.is_multi_key?a.jsxs(j5,{"aria-label":e("多密钥渠道操作项目组"),children:[pe.status===1?a.jsx(X,{type:"danger",size:"small",onClick:()=>An(pe.id,"disable",pe),children:e("禁用")}):a.jsx(X,{size:"small",onClick:()=>An(pe.id,"enable",pe),children:e("启用")}),a.jsx(er,{trigger:"click",position:"bottomRight",menu:[{node:"item",name:e("启用全部密钥"),onClick:()=>An(pe.id,"enable_all",pe)}],children:a.jsx(X,{type:"tertiary",size:"small",icon:a.jsx(_5,{})})})]}):pe.status===1?a.jsx(X,{type:"danger",size:"small",onClick:()=>An(pe.id,"disable",pe),children:e("禁用")}):a.jsx(X,{size:"small",onClick:()=>An(pe.id,"enable",pe),children:e("启用")}),a.jsx(X,{type:"tertiary",size:"small",onClick:()=>{ie(pe),V(!0)},children:e("编辑")}),a.jsx(er,{trigger:"click",position:"bottomRight",menu:Xe,children:a.jsx(X,{icon:a.jsx(t6,{}),type:"tertiary",size:"small"})})]})}else return a.jsxs(pt,{wrap:!0,children:[a.jsx(X,{type:"tertiary",size:"small",onClick:()=>Va(pe.key,"enable"),children:e("启用全部")}),a.jsx(X,{type:"tertiary",size:"small",onClick:()=>Va(pe.key,"disable"),children:e("禁用全部")}),a.jsx(X,{type:"tertiary",size:"small",onClick:()=>{N(!0),T(pe.key)},children:e("编辑")})]})}}],[_,j]=m.useState([]),[F,k]=m.useState(!0),[U,W]=m.useState(1),[K,$]=m.useState(!1),[O,R]=m.useState(!1),[z,H]=m.useState(un),[B,Y]=m.useState(z),[P,le]=m.useState([]),[be,V]=m.useState(!1),[te,de]=m.useState(!1),[ee,ie]=m.useState({id:void 0}),[G,N]=m.useState(!1),[I,T]=m.useState(""),[J,ve]=m.useState([]),[Z,ge]=m.useState(!1),[De,Oe]=m.useState(!1),[ae,we]=m.useState(""),[ne,ke]=m.useState(!1),[Be,Ae]=m.useState(null),[Q,he]=m.useState(""),[se,D]=m.useState({}),[ce,Ce]=m.useState(new Set),[Te,Qe]=m.useState([]),[Fe,Ve]=m.useState(!1),[ot,Ot]=m.useState([]),[tr,hr]=m.useState(!1),[tn,jr]=m.useState(1),[$r,Di]=m.useState("all"),[hn,Ha]=m.useState({}),Bi=m.useRef(0),[qa,$o]=m.useState(null),[ar,gi]=Ra("channels"),Lo={searchKeyword:"",searchGroup:"",searchModel:""},aa=m.useRef(!1),sa=()=>E.filter(ue=>c[ue.key]),Bs=()=>a.jsxs(Je,{title:e("列设置"),visible:h,onCancel:()=>f(!1),footer:a.jsxs("div",{className:"flex justify-end",children:[a.jsx(X,{onClick:()=>b(),children:e("重置")}),a.jsx(X,{onClick:()=>f(!1),children:e("取消")}),a.jsx(X,{onClick:()=>f(!1),children:e("确定")})]}),children:[a.jsx("div",{style:{marginBottom:20},children:a.jsx(Ln,{checked:Object.values(c).every(ue=>ue===!0),indeterminate:Object.values(c).some(ue=>ue===!0)&&!Object.values(c).every(ue=>ue===!0),onChange:ue=>v(ue.target.checked),children:e("全选")})}),a.jsx("div",{className:"flex flex-wrap max-h-96 overflow-y-auto rounded-lg p-4",style:{border:"1px solid var(--semi-color-border)"},children:E.map(ue=>ue.title?a.jsx("div",{className:"w-1/2 mb-4 pr-2",children:a.jsx(Ln,{checked:!!c[ue.key],onChange:pe=>x(ue.key,pe.target.checked),children:ue.title})},ue.key):null)})]}),Wa=(ue,pe)=>{let Ne=[],$e={};for(let Xe=0;Xe<ue.length;Xe++)if(ue[Xe].key=""+ue[Xe].id,!pe)Ne.push(ue[Xe]);else{let at=ue[Xe].tag?ue[Xe].tag:"",Gr=$e[at],Ft;Gr===void 0?($e[at]=1,Ft={key:at,id:at,tag:at,name:"标签:"+at,group:"",used_quota:0,response_time:0,priority:-1,weight:-1},Ft.children=[],Ne.push(Ft)):Ft=Ne.find(mn=>mn.key===at),Ft.priority===-1?Ft.priority=ue[Xe].priority:Ft.priority!==ue[Xe].priority&&(Ft.priority=""),Ft.weight===-1?Ft.weight=ue[Xe].weight:Ft.weight!==ue[Xe].weight&&(Ft.weight=""),Ft.group===""?Ft.group=ue[Xe].group:ue[Xe].group.split(",").forEach((bi,Ro)=>{Ft.group.indexOf(bi)===-1&&(Ft.group+=","+bi)}),Ft.children.push(ue[Xe]),ue[Xe].status===1&&(Ft.status=1),Ft.used_quota+=ue[Xe].used_quota,Ft.response_time+=ue[Xe].response_time,Ft.response_time=Ft.response_time/2}j(Ne)},On=async(ue,pe,Ne,$e,Xe=$r,at)=>{at===void 0&&(at=p);const{searchKeyword:Gr,searchGroup:Ft,searchModel:mn}=qn();if(Gr!==""||Ft!==""||mn!==""){k(!0),await Wn($e,Xe,at,ue,pe,Ne),k(!1);return}const bi=++Bi.current;k(!0);const Ro=Xe!=="all"?`&type=${Xe}`:"",Df=at!=="all"?`&status=${at}`:"",Od=await Se.get(`/api/channel/?p=${ue}&page_size=${pe}&id_sort=${Ne}&tag_mode=${$e}${Ro}${Df}`);if(Od===void 0||bi!==Bi.current)return;const{success:Bf,message:Tf,data:Pf}=Od.data;if(Bf){const{items:Nf,total:Ad,type_counts:uu}=Pf;if(uu){const Mf=Object.values(uu).reduce((If,WD)=>If+WD,0);Ha({...uu,all:Mf})}Wa(Nf,$e),Y(Ad)}else q(Tf);k(!1)},fn=async ue=>{var pe,Ne,$e,Xe;try{const at=await Se.post(`/api/channel/copy/${ue.id}`);(pe=at==null?void 0:at.data)!=null&&pe.success?(Pe(e("渠道复制成功")),await br()):q(((Ne=at==null?void 0:at.data)==null?void 0:Ne.message)||e("渠道复制失败"))}catch(at){q(e("渠道复制失败: ")+(((Xe=($e=at==null?void 0:at.response)==null?void 0:$e.data)==null?void 0:Xe.message)||(at==null?void 0:at.message)||at))}},br=async(ue=U)=>{const{searchKeyword:pe,searchGroup:Ne,searchModel:$e}=qn();pe===""&&Ne===""&&$e===""?await On(ue,z,K,Z):await Wn(Z,$r,p,ue,z,K)};m.useEffect(()=>{const ue=localStorage.getItem("id-sort")==="true",pe=parseInt(localStorage.getItem("page-size"))||un,Ne=localStorage.getItem("enable-tag-mode")==="true",$e=localStorage.getItem("enable-batch-delete")==="true";$(ue),H(pe),ge(Ne),de($e),On(1,pe,ue,Ne).then().catch(Xe=>{q(Xe)}),Hr().then(),bT().then()},[]);const An=async(ue,pe,Ne,$e)=>{let Xe={id:ue},at;switch(pe){case"delete":at=await Se.delete(`/api/channel/${ue}/`);break;case"enable":Xe.status=1,at=await Se.put("/api/channel/",Xe);break;case"disable":Xe.status=2,at=await Se.put("/api/channel/",Xe);break;case"priority":if($e==="")return;Xe.priority=parseInt($e),at=await Se.put("/api/channel/",Xe);break;case"weight":if($e==="")return;Xe.weight=parseInt($e),Xe.weight<0&&(Xe.weight=0),at=await Se.put("/api/channel/",Xe);break;case"enable_all":Xe.channel_info=Ne.channel_info,Xe.channel_info.multi_key_status_list={},at=await Se.put("/api/channel/",Xe);break}const{success:Gr,message:Ft}=at.data;if(Gr){Pe(e("操作成功完成!"));let mn=at.data.data,bi=[..._];pe==="delete"||(Ne.status=mn.status),j(bi)}else q(Ft)},Va=async(ue,pe)=>{var at,Gr;console.log(ue,pe);let Ne;switch(pe){case"enable":Ne=await Se.post("/api/channel/tag/enabled",{tag:ue});break;case"disable":Ne=await Se.post("/api/channel/tag/disabled",{tag:ue});break}const{success:$e,message:Xe}=Ne.data;if($e){Pe("操作成功完成!");let Ft=[..._];for(let mn=0;mn<Ft.length;mn++)if(Ft[mn].tag===ue){let bi=pe==="enable"?1:2;(Gr=(at=Ft[mn])==null?void 0:at.children)==null||Gr.forEach(Ro=>{Ro.status=bi}),Ft[mn].status=bi}j(Ft)}else q(Xe)},qn=()=>{const ue=qa?qa.getValues():{};return{searchKeyword:ue.searchKeyword||"",searchGroup:ue.searchGroup||"",searchModel:ue.searchModel||""}},Wn=async(ue,pe=$r,Ne=p,$e=1,Xe=z,at=K)=>{const{searchKeyword:Gr,searchGroup:Ft,searchModel:mn}=qn();R(!0);try{if(Gr===""&&Ft===""&&mn===""){await On($e,Xe,at,ue,pe,Ne);return}const bi=pe!=="all"?`&type=${pe}`:"",Ro=Ne!=="all"?`&status=${Ne}`:"",Df=await Se.get(`/api/channel/search?keyword=${Gr}&group=${Ft}&model=${mn}&id_sort=${at}&tag_mode=${ue}&p=${$e}&page_size=${Xe}${bi}${Ro}`),{success:Od,message:Bf,data:Tf}=Df.data;if(Od){const{items:Pf=[],total:Nf=0,type_counts:Ad={}}=Tf,uu=Object.values(Ad).reduce((Mf,If)=>Mf+If,0);Ha({...Ad,all:uu}),Wa(Pf,ue),Y(Nf),W($e)}else q(Bf)}finally{R(!1)}},pn=(ue,pe)=>{const Ne=[..._];let $e=!1;Ne.forEach(Xe=>{Xe.children!==void 0?Xe.children.forEach(at=>{at.id===ue&&(pe(at),$e=!0)}):Xe.id===ue&&(pe(Xe),$e=!0)}),$e&&j(Ne)},Ts=async()=>{if(!tr||ot.length===0)return;const{channel:ue,model:pe,indexInFiltered:Ne}=ot[0];if(Be&&Be.id===ue.id){let $e;if(Ne!==void 0)$e=Math.floor(Ne/cu)+1;else{const at=Be.models.split(",").filter(Gr=>Gr.toLowerCase().includes(Q.toLowerCase())).indexOf(pe);$e=at!==-1?Math.floor(at/cu)+1:1}jr($e)}try{Ce(Ft=>new Set([...Ft,pe]));const $e=await Se.get(`/api/channel/test/${ue.id}?model=${pe}`),{success:Xe,message:at,time:Gr}=$e.data;D(Ft=>({...Ft,[`${ue.id}-${pe}`]:{success:Xe,time:Gr}})),Xe?(pn(ue.id,Ft=>{Ft.response_time=Gr*1e3,Ft.test_time=Date.now()/1e3}),pe||nr(e("通道 ${name} 测试成功,耗时 ${time.toFixed(2)} 秒。").replace("${name}",ue.name).replace("${time.toFixed(2)}",Gr.toFixed(2)))):q(at)}catch($e){q($e.message)}finally{Ce($e=>{const Xe=new Set($e);return Xe.delete(pe),Xe})}Ot($e=>$e.slice(1))};m.useEffect(()=>{ot.length>0&&tr?Ts():ot.length===0&&tr&&(hr(!1),Ve(!1))},[ot,tr]);const Ee=async(ue,pe)=>{Ot(Ne=>[...Ne,{channel:ue,model:pe}]),tr||hr(!0)},St=async()=>{if(!Be)return;Ve(!0),jr(1);const ue=Be.models.split(",").filter(pe=>pe.toLowerCase().includes(Q.toLowerCase()));Ot(ue.map((pe,Ne)=>({channel:Be,model:pe,indexInFiltered:Ne}))),hr(!0)},kt=()=>{Fe?(Ot([]),hr(!1),Ve(!1),Pe(e("已停止测试"))):(ke(!1),he(""),Qe([]),jr(1))},fr=m.useMemo(()=>{if(Object.keys(hn).length>0)return hn;const ue={all:_.length};return _.forEach(pe=>{const Ne=$e=>{const Xe=$e.type;ue[Xe]=(ue[Xe]||0)+1};pe.children!==void 0?pe.children.forEach(Ne):Ne(pe)}),ue},[hn,_]),rt=m.useMemo(()=>{const ue=["all"];return Object.entries(fr).forEach(([pe,Ne])=>{pe!=="all"&&Ne>0&&ue.push(String(pe))}),ue},[fr]),fe=()=>Z?null:a.jsxs(Pn,{activeKey:$r,type:"card",collapsible:!0,onChange:ue=>{Di(ue),W(1),On(1,z,K,Z,ue)},className:"mb-4",children:[a.jsx(Zr,{itemKey:"all",tab:a.jsxs("span",{className:"flex items-center gap-2",children:[e("全部"),a.jsx(ye,{color:$r==="all"?"red":"grey",shape:"circle",children:fr.all||0})]})}),ku.filter(ue=>rt.includes(String(ue.value))).map(ue=>{const pe=String(ue.value),Ne=fr[ue.value]||0;return a.jsx(Zr,{itemKey:pe,tab:a.jsxs("span",{className:"flex items-center gap-2",children:[s4(ue.value),ue.label,a.jsx(ye,{color:$r===pe?"red":"grey",shape:"circle",children:Ne})]})},pe)})]});let qe=_;const nt=ue=>{const{searchKeyword:pe,searchGroup:Ne,searchModel:$e}=qn();W(ue),pe===""&&Ne===""&&$e===""?On(ue,z,K,Z).then(()=>{}):Wn(Z,$r,p,ue,z,K)},Rt=async ue=>{localStorage.setItem("page-size",ue+""),H(ue),W(1);const{searchKeyword:pe,searchGroup:Ne,searchModel:$e}=qn();pe===""&&Ne===""&&$e===""?On(1,ue,K,Z).then().catch(Xe=>{q(Xe)}):Wn(Z,$r,p,1,ue,K)},Hr=async()=>{try{let ue=await Se.get("/api/group/");if(ue===void 0)return;le(ue.data.data.map(pe=>({label:pe,value:pe})))}catch(ue){q(ue.message)}},Sr=async(ue,pe)=>{var Ne;switch(ue){case"priority":if(pe.priority===void 0||pe.priority===""){nr("优先级必须是整数!");return}pe.priority=parseInt(pe.priority);break;case"weight":if(pe.weight===void 0||pe.weight<0||pe.weight===""){nr("权重必须是非负整数!");return}pe.weight=parseInt(pe.weight);break}try{const $e=await Se.put("/api/channel/tag",pe);(Ne=$e==null?void 0:$e.data)!=null&&Ne.success&&(Pe("更新成功!"),await br())}catch($e){q($e)}},rn=()=>{V(!1)},yi=(ue,pe)=>ue.status!==1?{style:{background:"var(--semi-color-disabled-border)"}}:{},Ps=async()=>{if(J.length===0){q(e("请先选择要设置标签的渠道!"));return}if(ae===""){q(e("标签不能为空!"));return}let ue=J.map(Ne=>Ne.id);const pe=await Se.post("/api/channel/batch/tag",{ids:ue,tag:ae===""?null:ae});pe.data.success?(Pe(e("已为 ${count} 个渠道设置标签!").replace("${count}",pe.data.data)),await br(),Oe(!1)):q(pe.data.message)},lu=async()=>{const ue=await Se.get("/api/channel/test"),{success:pe,message:Ne}=ue.data;pe?nr(e("已成功开始测试所有已启用通道,请刷新页面查看结果。")):q(Ne)},qr=async()=>{const ue=await Se.delete("/api/channel/disabled"),{success:pe,message:Ne,data:$e}=ue.data;pe?(Pe(e("已删除所有禁用渠道,共计 ${data} 个").replace("${data}",$e)),await br()):q(Ne)},_d=async()=>{const ue=await Se.get("/api/channel/update_balance"),{success:pe,message:Ne}=ue.data;pe?nr(e("已更新完毕所有已启用通道余额!")):q(Ne)},kd=async ue=>{const pe=await Se.get(`/api/channel/update_balance/${ue.id}/`),{success:Ne,message:$e,balance:Xe}=pe.data;Ne?(pn(ue.id,at=>{at.balance=Xe,at.balance_updated_time=Date.now()/1e3}),nr(e("通道 ${name} 余额更新成功!").replace("${name}",ue.name))):q($e)},UD=async()=>{if(J.length===0){q(e("请先选择要删除的通道!"));return}k(!0);let ue=[];J.forEach(at=>{ue.push(at.id)});const pe=await Se.post("/api/channel/batch",{ids:ue}),{success:Ne,message:$e,data:Xe}=pe.data;Ne?(Pe(e("已删除 ${data} 个通道!").replace("${data}",Xe)),await br(),setTimeout(()=>{_.length===0&&U>1&&br(U-1)},100)):q($e),k(!1)},HD=async()=>{const ue=await Se.post("/api/channel/fix"),{success:pe,message:Ne,data:$e}=ue.data;pe?(Pe(e("已修复 ${success} 个通道,失败 ${fails} 个通道。").replace("${success}",$e.success).replace("${fails}",$e.fails)),await br()):q(Ne)},qD=()=>a.jsxs("div",{className:"flex flex-col w-full",children:[fe(),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between gap-4",children:[a.jsxs("div",{className:"flex flex-wrap md:flex-nowrap items-center gap-2 w-full md:w-auto order-2 md:order-1",children:[a.jsx(X,{size:"small",disabled:!te,type:"danger",className:"w-full md:w-auto",onClick:()=>{Je.confirm({title:e("确定是否要删除所选通道?"),content:e("此修改将不可逆"),onOk:()=>UD()})},children:e("删除所选通道")}),a.jsx(X,{size:"small",disabled:!te,type:"tertiary",onClick:()=>Oe(!0),className:"w-full md:w-auto",children:e("批量设置标签")}),a.jsx(er,{size:"small",trigger:"click",render:a.jsxs(er.Menu,{children:[a.jsx(er.Item,{children:a.jsx(X,{size:"small",type:"tertiary",className:"w-full",onClick:()=>{Je.confirm({title:e("确定?"),content:e("确定要测试所有通道吗?"),onOk:()=>lu(),size:"small",centered:!0})},children:e("测试所有通道")})}),a.jsx(er.Item,{children:a.jsx(X,{size:"small",className:"w-full",onClick:()=>{Je.confirm({title:e("确定是否要修复数据库一致性?"),content:e("进行该操作时,可能导致渠道访问错误,请仅在数据库出现问题时使用"),onOk:()=>HD(),size:"sm",centered:!0})},children:e("修复数据库一致性")})}),a.jsx(er.Item,{children:a.jsx(X,{size:"small",type:"secondary",className:"w-full",onClick:()=>{Je.confirm({title:e("确定?"),content:e("确定要更新所有已启用通道余额吗?"),onOk:()=>_d(),size:"sm",centered:!0})},children:e("更新所有已启用通道余额")})}),a.jsx(er.Item,{children:a.jsx(X,{size:"small",type:"danger",className:"w-full",onClick:()=>{Je.confirm({title:e("确定是否要删除禁用通道?"),content:e("此修改将不可逆"),onOk:()=>qr(),size:"sm",centered:!0})},children:e("删除禁用通道")})})]}),children:a.jsx(X,{size:"small",theme:"light",type:"tertiary",className:"w-full md:w-auto",children:e("批量操作")})}),a.jsx(X,{size:"small",type:"tertiary",className:"w-full md:w-auto",onClick:()=>gi(!ar),children:e(ar?"自适应列表":"紧凑列表")})]}),a.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-4 w-full md:w-auto order-1 md:order-2",children:[a.jsxs("div",{className:"flex items-center justify-between w-full md:w-auto",children:[a.jsx(Ie.Text,{strong:!0,className:"mr-2",children:e("使用ID排序")}),a.jsx(Jn,{size:"small",checked:K,onChange:ue=>{localStorage.setItem("id-sort",ue+""),$(ue);const{searchKeyword:pe,searchGroup:Ne,searchModel:$e}=qn();pe===""&&Ne===""&&$e===""?On(U,z,ue,Z):Wn(Z,$r,p,U,z,ue)}})]}),a.jsxs("div",{className:"flex items-center justify-between w-full md:w-auto",children:[a.jsx(Ie.Text,{strong:!0,className:"mr-2",children:e("开启批量操作")}),a.jsx(Jn,{size:"small",checked:te,onChange:ue=>{localStorage.setItem("enable-batch-delete",ue+""),de(ue)}})]}),a.jsxs("div",{className:"flex items-center justify-between w-full md:w-auto",children:[a.jsx(Ie.Text,{strong:!0,className:"mr-2",children:e("标签聚合模式")}),a.jsx(Jn,{size:"small",checked:Z,onChange:ue=>{localStorage.setItem("enable-tag-mode",ue+""),ge(ue),W(1),On(1,z,K,ue)}})]}),a.jsxs("div",{className:"flex items-center justify-between w-full md:w-auto",children:[a.jsx(Ie.Text,{strong:!0,className:"mr-2",children:e("状态筛选")}),a.jsxs(vn,{size:"small",value:p,onChange:ue=>{localStorage.setItem("channel-status-filter",ue),g(ue),W(1),On(1,z,K,Z,$r,ue)},children:[a.jsx(vn.Option,{value:"all",children:e("全部")}),a.jsx(vn.Option,{value:"enabled",children:e("已启用")}),a.jsx(vn.Option,{value:"disabled",children:e("已禁用")})]})]})]})]}),a.jsx(Ar,{margin:"12px"}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 w-full",children:[a.jsxs("div",{className:"flex gap-2 w-full md:w-auto order-2 md:order-1",children:[a.jsx(X,{size:"small",theme:"light",type:"primary",className:"w-full md:w-auto",onClick:()=>{ie({id:void 0}),V(!0)},children:e("添加渠道")}),a.jsx(X,{size:"small",type:"tertiary",className:"w-full md:w-auto",onClick:br,children:e("刷新")}),a.jsx(X,{size:"small",type:"tertiary",onClick:()=>f(!0),className:"w-full md:w-auto",children:e("列设置")})]}),a.jsx("div",{className:"flex flex-col md:flex-row items-center gap-4 w-full md:w-auto order-1 md:order-2",children:a.jsxs(M,{initValues:Lo,getFormApi:ue=>$o(ue),onSubmit:()=>Wn(Z),allowEmpty:!0,autoComplete:"off",layout:"horizontal",trigger:"change",stopValidateWithError:!1,className:"flex flex-col md:flex-row items-center gap-4 w-full",children:[a.jsx("div",{className:"relative w-full md:w-64",children:a.jsx(M.Input,{size:"small",field:"searchKeyword",prefix:a.jsx(Cr,{}),placeholder:e("渠道ID,名称,密钥,API地址"),showClear:!0,pure:!0})}),a.jsx("div",{className:"w-full md:w-48",children:a.jsx(M.Input,{size:"small",field:"searchModel",prefix:a.jsx(Cr,{}),placeholder:e("模型关键字"),showClear:!0,pure:!0})}),a.jsx("div",{className:"w-full md:w-32",children:a.jsx(M.Select,{size:"small",field:"searchGroup",placeholder:e("选择分组"),optionList:[{label:e("选择分组"),value:null},...P],className:"w-full",showClear:!0,pure:!0,onChange:()=>{setTimeout(()=>{Wn(Z)},0)}})}),a.jsx(X,{size:"small",type:"tertiary",htmlType:"submit",loading:F||O,className:"w-full md:w-auto",children:e("查询")}),a.jsx(X,{size:"small",type:"tertiary",onClick:()=>{qa&&(qa.reset(),setTimeout(()=>{br()},100))},className:"w-full md:w-auto",children:e("重置")})]})})]})]});return a.jsxs(a.Fragment,{children:[Bs(),a.jsx(E0e,{visible:G,tag:I,handleClose:()=>N(!1),refresh:br}),a.jsx(l4,{refresh:br,visible:be,handleClose:rn,editingChannel:ee}),a.jsx(Le,{className:"!rounded-2xl",title:qD(),shadows:"always",bordered:!1,children:a.jsx(Mr,{columns:ar?sa().map(({fixed:ue,...pe})=>pe):sa(),dataSource:qe,scroll:ar?void 0:{x:"max-content"},pagination:{currentPage:U,pageSize:z,total:B,pageSizeOpts:[10,20,50,100],showSizeChanger:!0,formatPageText:ue=>e("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:ue.currentStart,end:ue.currentEnd,total:B}),onPageSizeChange:ue=>{Rt(ue)},onPageChange:nt},expandAllRows:!1,onRow:yi,rowSelection:te?{onChange:(ue,pe)=>{ve(pe)}}:null,empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:e("搜索无结果"),style:{padding:30}}),className:"rounded-xl overflow-hidden",size:"middle",loading:F||O})}),a.jsxs(Je,{title:e("批量设置标签"),visible:De,onOk:Ps,onCancel:()=>Oe(!1),maskClosable:!1,centered:!0,size:"small",className:"!rounded-lg",children:[a.jsx("div",{className:"mb-5",children:a.jsx(Ie.Text,{children:e("请输入要设置的标签名称")})}),a.jsx(Lt,{placeholder:e("请输入标签名称"),value:ae,onChange:ue=>we(ue)}),a.jsx("div",{className:"mt-4",children:a.jsx(Ie.Text,{type:"secondary",children:e("已选择 ${count} 个渠道").replace("${count}",J.length)})})]}),a.jsx(Je,{title:Be&&a.jsx("div",{className:"flex flex-col gap-2 w-full",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(Ie.Text,{strong:!0,className:"!text-[var(--semi-color-text-0)] !text-base",children:[Be.name," ",e("渠道的模型测试")]}),a.jsxs(Ie.Text,{type:"tertiary",className:"!text-xs flex items-center",children:[e("共")," ",Be.models.split(",").length," ",e("个模型")]})]})}),visible:ne&&Be!==null,onCancel:kt,footer:a.jsxs("div",{className:"flex justify-end",children:[Fe?a.jsx(X,{type:"danger",onClick:kt,children:e("停止测试")}):a.jsx(X,{type:"tertiary",onClick:kt,children:e("取消")}),a.jsx(X,{onClick:St,loading:Fe,disabled:Fe,children:Fe?e("测试中..."):e("批量测试${count}个模型").replace("${count}",Be?Be.models.split(",").filter(ue=>ue.toLowerCase().includes(Q.toLowerCase())).length:0)})]}),maskClosable:!Fe,className:"!rounded-lg",size:t?"full-width":"large",children:a.jsx("div",{className:"model-test-scroll",children:Be&&a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-end gap-2 w-full mb-2",children:[a.jsx(Lt,{placeholder:e("搜索模型..."),value:Q,onChange:ue=>{he(ue),jr(1)},className:"!w-full",prefix:a.jsx(Cr,{}),showClear:!0}),a.jsx(X,{onClick:()=>{if(Te.length===0){q(e("请先选择模型!"));return}Qr(Te.join(",")).then(ue=>{ue?Pe(e("已复制 ${count} 个模型").replace("${count}",Te.length)):q(e("复制失败,请手动复制"))})},children:e("复制已选")}),a.jsx(X,{type:"tertiary",onClick:()=>{if(!Be)return;const ue=Be.models.split(",").filter(pe=>pe.toLowerCase().includes(Q.toLowerCase())).filter(pe=>{const Ne=se[`${Be.id}-${pe}`];return Ne&&Ne.success});ue.length===0&&nr(e("暂无成功模型")),Qe(ue)},children:e("选择成功")})]}),a.jsx(Mr,{columns:[{title:e("模型名称"),dataIndex:"model",render:ue=>a.jsx("div",{className:"flex items-center",children:a.jsx(Ie.Text,{strong:!0,children:ue})})},{title:e("状态"),dataIndex:"status",render:(ue,pe)=>{const Ne=se[`${Be.id}-${pe.model}`];return ce.has(pe.model)?a.jsx(ye,{color:"blue",shape:"circle",children:e("测试中")}):Ne?a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ye,{color:Ne.success?"green":"red",shape:"circle",children:Ne.success?e("成功"):e("失败")}),Ne.success&&a.jsx(Ie.Text,{type:"tertiary",children:e("请求时长: ${time}s").replace("${time}",Ne.time.toFixed(2))})]}):a.jsx(ye,{color:"grey",shape:"circle",children:e("未开始")})}},{title:"",dataIndex:"operate",render:(ue,pe)=>{const Ne=ce.has(pe.model);return a.jsx(X,{type:"tertiary",onClick:()=>Ee(Be,pe.model),loading:Ne,size:"small",children:e("测试")})}}],dataSource:(()=>{const ue=Be.models.split(",").filter($e=>$e.toLowerCase().includes(Q.toLowerCase())),pe=(tn-1)*cu,Ne=pe+cu;return ue.slice(pe,Ne).map($e=>({model:$e,key:$e}))})(),rowSelection:{selectedRowKeys:Te,onChange:ue=>{if(aa.current){aa.current=!1;return}Qe(ue)},onSelectAll:ue=>{const pe=Be.models.split(",").filter(Ne=>Ne.toLowerCase().includes(Q.toLowerCase()));aa.current=!0,Qe(ue?pe:[])}},pagination:{currentPage:tn,pageSize:cu,total:Be.models.split(",").filter(ue=>ue.toLowerCase().includes(Q.toLowerCase())).length,showSizeChanger:!1,onPageChange:ue=>jr(ue)}})]})})})]})},B0e=()=>a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx(D0e,{})}),{Text:Zm,Title:T0e}=Ie,P0e=e=>{const{t}=Ze(),[r,n]=m.useContext(Ji),[i,s]=m.useState(!1),o=mi(),l=m.useRef(null),[u,c]=m.useState([]),[d,h]=m.useState([]),[f,p]=m.useState([]),g=e.editingToken.id!==void 0,y=()=>({name:"",remain_quota:5e5,expired_time:-1,unlimited_quota:!1,model_limits_enabled:!1,model_limits:[],allow_ips:"",group:"",tokenCount:1,rate_limit_per_minute:0,rate_limit_per_day:0,channel_tag:null,total_usage_limit:null}),b=()=>{e.handleClose()},x=(U,W,K,$)=>{let R=new Date().getTime()/1e3,z=U*30*24*60*60;z+=W*24*60*60,z+=K*60*60,z+=$*60,l.current&&(z!==0?(R+=z,l.current.setValue("expired_time",_r(R))):l.current.setValue("expired_time",-1))},v=async()=>{try{let U=await Se.get("/api/token/tags");const{success:W,message:K,data:$}=U.data;if(W){const O=$.map(R=>({label:R,value:R}));p(O)}else q(t(K))}catch{q(t("获取渠道标签失败"))}},E=async()=>{let U=await Se.get("/api/user/models");const{success:W,message:K,data:$}=U.data;if(W){const O=uo(t);let R=$.map(z=>{let H=null;for(const[B,Y]of Object.entries(O))if(B!=="all"&&Y.filter({model_name:z})){H=Y.icon;break}return{label:a.jsxs("span",{className:"flex items-center gap-1",children:[H,z]}),value:z}});c(R)}else q(t(K))},_=async()=>{var O,R;let U=await Se.get("/api/user/self/groups");const{success:W,message:K,data:$}=U.data;if(W){let z=Object.entries($).map(([H,B])=>({label:B.desc,value:H,ratio:B.ratio}));(O=r==null?void 0:r.status)!=null&&O.default_use_auto_group&&(z.some(H=>H.value==="auto")?z.sort((H,B)=>H.value==="auto"?-1:1):z.unshift({label:t("自动选择"),value:"auto"})),h(z),(R=r==null?void 0:r.status)!=null&&R.default_use_auto_group&&l.current&&l.current.setValue("group","auto")}else q(t(K))},j=async()=>{s(!0);let U=await Se.get(`/api/token/${e.editingToken.id}`);const{success:W,message:K,data:$}=U.data;W?($.expired_time!==-1&&($.expired_time=_r($.expired_time)),$.model_limits!==""?$.model_limits=$.model_limits.split(","):$.model_limits=[],l.current&&l.current.setValues({...y(),...$})):q(K),s(!1)};m.useEffect(()=>{l.current&&(g||l.current.setValues(y())),E(),_(),v()},[e.editingToken.id]),m.useEffect(()=>{var U,W;e.visiable?g?j():(U=l.current)==null||U.setValues(y()):(W=l.current)==null||W.reset()},[e.visiable,e.editingToken.id]);const F=()=>{const U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let W="";for(let K=0;K<6;K++)W+=U.charAt(Math.floor(Math.random()*U.length));return W},k=async U=>{var W;if(s(!0),g){let{tokenCount:K,...$}=U;if($.remain_quota=parseInt($.remain_quota),$.expired_time!==-1){let H=Date.parse($.expired_time);if(isNaN(H)){q(t("过期时间格式错误!")),s(!1);return}$.expired_time=Math.ceil(H/1e3)}$.model_limits=$.model_limits.join(","),$.model_limits_enabled=$.model_limits.length>0;let O=await Se.put("/api/token/",{...$,id:parseInt(e.editingToken.id)});const{success:R,message:z}=O.data;R?(Pe(t("令牌更新成功!")),e.refresh(),e.handleClose()):q(t(z))}else{const K=parseInt(U.tokenCount,10)||1;let $=0;for(let O=0;O<K;O++){let{tokenCount:R,...z}=U;const H=U.name.trim()===""?"default":U.name.trim();if(O!==0||U.name.trim()===""?z.name=`${H}-${F()}`:z.name=H,z.remain_quota=parseInt(z.remain_quota),z.expired_time!==-1){let le=Date.parse(z.expired_time);if(isNaN(le)){q(t("过期时间格式错误!")),s(!1);break}z.expired_time=Math.ceil(le/1e3)}z.model_limits=z.model_limits.join(","),z.model_limits_enabled=z.model_limits.length>0;let B=await Se.post("/api/token/",z);const{success:Y,message:P}=B.data;if(Y)$++;else{q(t(P));break}}$>0&&(Pe(t("令牌创建成功,请在列表页面点击复制获取令牌!")),e.refresh(),e.handleClose())}s(!1),(W=l.current)==null||W.setValues(y())};return a.jsx(Nl,{placement:g?"right":"left",title:a.jsxs(pt,{children:[g?a.jsx(ye,{color:"blue",shape:"circle",children:t("更新")}):a.jsx(ye,{color:"green",shape:"circle",children:t("新建")}),a.jsx(T0e,{heading:4,className:"m-0",children:t(g?"更新令牌信息":"创建新的令牌")})]}),bodyStyle:{padding:"0"},visible:e.visiable,width:o?"100%":600,footer:a.jsx("div",{className:"flex justify-end bg-white",children:a.jsxs(pt,{children:[a.jsx(X,{theme:"solid",className:"!rounded-lg",onClick:()=>{var U;return(U=l.current)==null?void 0:U.submitForm()},icon:a.jsx(ys,{}),loading:i,children:t("提交")}),a.jsx(X,{theme:"light",className:"!rounded-lg",type:"primary",onClick:b,icon:a.jsx(ls,{}),children:t("取消")})]})}),closeIcon:null,onCancel:()=>b(),children:a.jsx(Dt,{spinning:i,children:a.jsx(M,{initValues:y(),getFormApi:U=>l.current=U,onSubmit:k,children:({values:U})=>a.jsxs("div",{className:"p-2",children:[a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"blue",className:"mr-2 shadow-md",children:a.jsx(pa,{size:16})}),a.jsxs("div",{children:[a.jsx(Zm,{className:"text-lg font-medium",children:t("基本信息")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("设置令牌的基本信息")})]})]}),a.jsxs(Ge,{gutter:12,children:[a.jsx(_e,{span:24,children:a.jsx(M.Input,{field:"name",label:t("名称"),placeholder:t("请输入名称"),rules:[{required:!0,message:t("请输入名称")}],showClear:!0})}),a.jsx(_e,{span:24,children:d.length>0?a.jsx(M.Select,{field:"group",label:t("令牌分组"),placeholder:t("令牌分组,默认为用户的分组"),optionList:d,renderOptionItem:oF,showClear:!0,style:{width:"100%"}}):a.jsx(M.Select,{placeholder:t("管理员未设置用户可选分组"),disabled:!0,label:t("令牌分组"),style:{width:"100%"}})}),a.jsx(_e,{xs:24,sm:24,md:24,lg:10,xl:10,children:a.jsx(M.DatePicker,{field:"expired_time",label:t("过期时间"),type:"dateTime",placeholder:t("请选择过期时间"),rules:[{required:!0,message:t("请选择过期时间")},{validator:(W,K)=>{if(K===-1||!K)return Promise.resolve();const $=Date.parse(K);return isNaN($)?Promise.reject(t("过期时间格式错误!")):$<=Date.now()?Promise.reject(t("过期时间不能早于当前时间!")):Promise.resolve()}}],showClear:!0,style:{width:"100%"}})}),a.jsx(_e,{xs:24,sm:24,md:24,lg:14,xl:14,children:a.jsx(M.Slot,{label:t("过期时间快捷设置"),children:a.jsxs(pt,{wrap:!0,children:[a.jsx(X,{theme:"light",type:"primary",onClick:()=>x(0,0,0,0),children:t("永不过期")}),a.jsx(X,{theme:"light",type:"tertiary",onClick:()=>x(1,0,0,0),children:t("一个月")}),a.jsx(X,{theme:"light",type:"tertiary",onClick:()=>x(0,7,0,0),children:t("一周")})," ",a.jsx(X,{theme:"light",type:"tertiary",onClick:()=>x(0,1,0,0),children:t("一天")})]})})}),g&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{span:12,children:a.jsx(M.Input,{field:"daily_usage_count",label:t("今日使用次数"),disabled:!0,style:{width:"100%"}})}),a.jsx(_e,{span:12,children:a.jsx(M.Input,{field:"total_usage_count",label:t("总使用次数"),disabled:!0,style:{width:"100%"}})})]}),!g&&a.jsx(_e,{span:24,children:a.jsx(M.InputNumber,{field:"tokenCount",label:t("新建数量"),min:1,extraText:t("批量创建时会在名称后自动添加随机后缀"),rules:[{required:!0,message:t("请输入新建数量")}],style:{width:"100%"}})})]})]}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"green",className:"mr-2 shadow-md",children:a.jsx(e6,{size:16})}),a.jsxs("div",{children:[a.jsx(Zm,{className:"text-lg font-medium",children:t("额度设置")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("设置令牌可用额度和数量")})]})]}),a.jsxs(Ge,{gutter:12,children:[a.jsx(_e,{span:24,children:a.jsx(M.AutoComplete,{field:"remain_quota",label:t("额度"),placeholder:t("请输入额度"),type:"number",disabled:U.unlimited_quota,extraText:uf(U.remain_quota),rules:U.unlimited_quota?[]:[{required:!0,message:t("请输入额度")}],data:[{value:5e5,label:"1$"},{value:5e6,label:"10$"},{value:25e6,label:"50$"},{value:5e7,label:"100$"},{value:25e7,label:"500$"},{value:5e8,label:"1000$"}]})}),a.jsx(_e,{span:24,children:a.jsx(M.Switch,{field:"unlimited_quota",label:t("无限额度"),size:"large",extraText:t("令牌的额度仅用于限制令牌本身的最大额度使用量,实际的使用受到账户的剩余额度限制")})})]})]}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"purple",className:"mr-2 shadow-md",children:a.jsx(qv,{size:16})}),a.jsxs("div",{children:[a.jsx(Zm,{className:"text-lg font-medium",children:t("访问限制")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("设置令牌的访问限制")})]})]}),a.jsxs(Ge,{gutter:12,children:[a.jsx(_e,{span:24,children:a.jsx(M.Select,{field:"model_limits",label:t("模型限制列表"),placeholder:t("请选择该令牌支持的模型,留空支持所有模型"),multiple:!0,optionList:u,extraText:t("非必要,不建议启用模型限制"),filter:!0,searchPosition:"dropdown",showClear:!0,style:{width:"100%"}})}),a.jsx(_e,{span:24,children:a.jsx(M.TextArea,{field:"allow_ips",label:t("IP白名单"),placeholder:t("允许的IP,一行一个,不填写则不限制"),autosize:!0,rows:1,extraText:t("请勿过度信任此功能,IP可能被伪造"),showClear:!0,style:{width:"100%"}})}),a.jsx(_e,{span:24,children:a.jsx(M.Select,{field:"channel_tag",label:t("渠道组标签"),placeholder:t("请选择渠道组标签,留空则不限制"),optionList:f,extraText:t("设置后,此令牌只能使用指定标签下的渠道"),filter:!0,searchPosition:"dropdown",showClear:!0,style:{width:"100%"}})}),a.jsx(_e,{span:12,children:a.jsx(M.InputNumber,{field:"rate_limit_per_minute",label:t("1分钟访问次数限制"),placeholder:t("0表示不限制"),min:0,step:1,extraText:t("限制每分钟最多访问次数,0表示不限制"),style:{width:"100%"}})}),a.jsx(_e,{span:12,children:a.jsx(M.InputNumber,{field:"rate_limit_per_day",label:t("1天访问次数限制"),placeholder:t("0表示不限制"),min:0,step:1,extraText:t("限制每天最多访问次数,0表示不限制"),style:{width:"100%"}})}),a.jsx(_e,{span:24,children:a.jsx(M.InputNumber,{field:"total_usage_limit",label:t("总使用次数限制"),placeholder:t("留空表示不限制"),min:0,step:1,extraText:t("限制令牌总使用次数,0或留空表示不限制"),style:{width:"100%"}})})]})]})]})},g?"edit":"new")})})},{Text:N0e}=Ie;function ox(e){return a.jsx(a.Fragment,{children:_r(e)})}const M0e=()=>{const{t:e}=Ze(),t=[{title:e("名称"),dataIndex:"name"},{title:e("状态"),dataIndex:"status",key:"status",render:(G,N)=>{const I=G===1,T=ke=>{ke?P(N.id,"enable",N):P(N.id,"disable",N)};let J="black",ve=e("未知状态");I?(J="green",ve=e("已启用")):G===2?(J="red",ve=e("已禁用")):G===3?(J="yellow",ve=e("已过期")):G===4&&(J="grey",ve=e("已耗尽"));const Z=parseInt(N.used_quota)||0,ge=parseInt(N.remain_quota)||0,De=Z+ge,Oe=De>0?ge/De*100:0,ae=ke=>{if(ke===100)return"var(--semi-color-success)";if(ke<=10)return"var(--semi-color-danger)";if(ke<=30)return"var(--semi-color-warning)"},we=N.unlimited_quota?a.jsx("div",{className:"text-xs",children:e("无限额度")}):a.jsxs("div",{className:"flex flex-col items-end",children:[a.jsx("span",{className:"text-xs leading-none",children:`${Tt(ge)} / ${Tt(De)}`}),a.jsx(s6,{percent:Oe,stroke:ae(Oe),"aria-label":"quota usage",format:()=>`${Oe.toFixed(0)}%`,style:{width:"100%",marginTop:"1px",marginBottom:0}})]}),ne=a.jsx(ye,{color:J,shape:"circle",size:"large",prefixIcon:a.jsx(Jn,{size:"small",checked:I,onChange:T,"aria-label":"token status switch"}),suffixIcon:we,children:ve});return N.unlimited_quota?ne:a.jsx(Gt,{content:a.jsxs("div",{className:"text-xs",children:[a.jsxs("div",{children:[e("已用额度"),": ",Tt(Z)]}),a.jsxs("div",{children:[e("剩余额度"),": ",Tt(ge)," (",Oe.toFixed(0),"%)"]}),a.jsxs("div",{children:[e("总额度"),": ",Tt(De)]})]}),children:ne})}},{title:e("分组"),dataIndex:"group",key:"group",render:G=>G==="auto"?a.jsx(Gt,{content:e("当前分组为 auto,会自动选择最优分组,当一个组不可用时自动降级到下一个组(熔断机制)"),position:"top",children:a.jsxs(ye,{color:"white",shape:"circle",children:[" ",e("智能熔断")," "]})}):R1(G)},{title:e("密钥"),key:"token_key",render:(G,N)=>{const I="sk-"+N.key,T="sk-"+N.key.slice(0,4)+"**********"+N.key.slice(-4),J=!!F[N.id];return a.jsx("div",{className:"w-[200px]",children:a.jsx(Lt,{readOnly:!0,value:J?I:T,size:"small",suffix:a.jsxs("div",{className:"flex items-center",children:[a.jsx(X,{theme:"borderless",size:"small",type:"tertiary",icon:J?a.jsx(DB,{}):a.jsx(o6,{}),"aria-label":"toggle token visibility",onClick:ve=>{ve.stopPropagation(),k(Z=>({...Z,[N.id]:!J}))}}),a.jsx(X,{theme:"borderless",size:"small",type:"tertiary",icon:a.jsx(I2,{}),"aria-label":"copy token key",onClick:async ve=>{ve.stopPropagation(),await B(I)}})]})})})}},{title:e("可用模型"),dataIndex:"model_limits",render:(G,N)=>{if(N.model_limits_enabled&&G){const I=G.split(",").filter(Boolean),T=uo(e),J=[],ve=new Set;Object.entries(T).forEach(([ge,De])=>{if(ge==="all"||!De.icon||!De.filter)return;const Oe=I.filter(ae=>De.filter({model_name:ae}));Oe.length>0&&(J.push(a.jsx(Gt,{content:Oe.join(", "),position:"top",showArrow:!0,children:a.jsx(dr,{size:"extra-extra-small",alt:De.label,color:"transparent",children:De.icon})},ge)),Oe.forEach(ae=>ve.add(ae)))});const Z=I.filter(ge=>!ve.has(ge));return Z.length>0&&J.push(a.jsx(Gt,{content:Z.join(", "),position:"top",showArrow:!0,children:a.jsx(dr,{size:"extra-extra-small",alt:"unknown",children:e("其他")})},"unknown")),a.jsx(BB,{size:"extra-extra-small",children:J})}else return a.jsx(ye,{color:"white",shape:"circle",children:e("无限制")})}},{title:e("IP限制"),dataIndex:"allow_ips",render:G=>{if(!G||G.trim()==="")return a.jsx(ye,{color:"white",shape:"circle",children:e("无限制")});const N=G.split(`
- `).map(ve=>ve.trim()).filter(Boolean),I=N.slice(0,1),T=N.length-I.length,J=I.map((ve,Z)=>a.jsx(ye,{shape:"circle",children:ve},Z));return T>0&&J.push(a.jsx(Gt,{content:N.slice(1).join(", "),position:"top",showArrow:!0,children:a.jsx(ye,{shape:"circle",children:"+"+T})},"extra")),a.jsx(pt,{wrap:!0,children:J})}},{title:e("今日次数"),dataIndex:"daily_usage_count",key:"daily_usage_count",render:(G,N)=>{const I=G||0;return a.jsx(ye,{color:"blue",shape:"circle",children:I})}},{title:e("总次数"),dataIndex:"total_usage_count",key:"total_usage_count",render:(G,N)=>{const I=G||0;return a.jsx(ye,{color:"purple",shape:"circle",children:I})}},{title:e("创建时间"),dataIndex:"created_time",render:(G,N,I)=>a.jsx("div",{children:ox(G)})},{title:e("过期时间"),dataIndex:"expired_time",render:(G,N,I)=>a.jsx("div",{children:N.expired_time===-1?e("永不过期"):ox(G)})},{title:"",dataIndex:"operate",fixed:"right",render:(G,N,I)=>{let T=localStorage.getItem("chats"),J=[];try{if(T=JSON.parse(T),Array.isArray(T))for(let ve=0;ve<T.length;ve++){let Z={};Z.node="item";for(let ge in T[ve])T[ve].hasOwnProperty(ge)&&(Z.key=ve,Z.name=ge,Z.onClick=()=>{Y(ge,T[ve][ge],N)});J.push(Z)}}catch(ve){console.log(ve),q(e("聊天链接配置错误,请联系管理员"))}return a.jsxs(pt,{wrap:!0,children:[a.jsxs(j5,{className:"overflow-hidden","aria-label":e("项目操作按钮组"),children:[a.jsx(X,{size:"small",type:"tertiary",onClick:()=>{J.length===0?q(e("请联系管理员配置聊天链接")):Y("default",T[0][Object.keys(T[0])[0]],N)},children:e("聊天")}),a.jsx(er,{trigger:"click",position:"bottomRight",menu:J,children:a.jsx(X,{type:"tertiary",icon:a.jsx(_5,{}),size:"small"})})]}),a.jsx(X,{type:"tertiary",size:"small",onClick:()=>{E(N),s(!0)},children:e("编辑")}),a.jsx(X,{type:"danger",size:"small",onClick:()=>{Je.confirm({title:e("确定是否要删除此令牌?"),content:e("此修改将不可逆"),onOk:()=>{(async()=>(await P(N.id,"delete",N),await H()))()}})},children:e("删除")})]})}}],[r,n]=m.useState(un),[i,s]=m.useState(!1),[o,l]=m.useState([]),[u,c]=m.useState([]),[d,h]=m.useState(r),[f,p]=m.useState(!0),[g,y]=m.useState(1),[b,x]=m.useState(!1),[v,E]=m.useState({id:void 0}),[_,j]=Ra("tokens"),[F,k]=m.useState({}),U={searchKeyword:"",searchToken:""},[W,K]=m.useState(null),$=()=>{const G=W?W.getValues():{};return{searchKeyword:G.searchKeyword||"",searchToken:G.searchToken||""}},O=()=>{s(!1),setTimeout(()=>{E({id:void 0})},500)},R=G=>{l(G.items||[]),h(G.total||0),y(G.page||1),n(G.page_size||r)},z=async(G=1,N=r)=>{p(!0);const I=await Se.get(`/api/token/?p=${G}&size=${N}`),{success:T,message:J,data:ve}=I.data;T?R(ve):q(J),p(!1)},H=async(G=g)=>{await z(G),c([])},B=async G=>{await Qr(G)?Pe(e("已复制到剪贴板!")):Je.error({title:e("无法复制到剪贴板,请手动复制"),content:G,size:"large"})},Y=async(G,N,I)=>{let T=localStorage.getItem("status"),J="";if(T&&(T=JSON.parse(T),J=T.server_address),J===""&&(J=window.location.origin),N.includes("{cherryConfig}")===!0){let ve={id:"new-api",baseUrl:J,apiKey:"sk-"+I.key},Z=encodeURIComponent(btoa(JSON.stringify(ve)));N=N.replaceAll("{cherryConfig}",Z)}else{let ve=encodeURIComponent(J);N=N.replaceAll("{address}",ve),N=N.replaceAll("{key}","sk-"+I.key)}window.open(N,"_blank")};m.useEffect(()=>{z(1).then().catch(G=>{q(G)})},[r]);const P=async(G,N,I)=>{p(!0);let T={id:G},J;switch(N){case"delete":J=await Se.delete(`/api/token/${G}/`);break;case"enable":T.status=1,J=await Se.put("/api/token/?status_only=true",T);break;case"disable":T.status=2,J=await Se.put("/api/token/?status_only=true",T);break}const{success:ve,message:Z}=J.data;if(ve){Pe("操作成功完成!");let ge=J.data.data,De=[...o];N==="delete"||(I.status=ge.status),l(De)}else q(Z);p(!1)},le=async()=>{const{searchKeyword:G,searchToken:N}=$();if(G===""&&N===""){await z(1);return}x(!0);const I=await Se.get(`/api/token/search?keyword=${G}&token=${N}`),{success:T,message:J,data:ve}=I.data;T?(l(ve),h(ve.length),y(1)):q(J),x(!1)},be=G=>{z(G,r).then()},V=async G=>{n(G),await z(1,G)},te={onSelect:(G,N)=>{},onSelectAll:(G,N)=>{},onChange:(G,N)=>{c(N)}},de=(G,N)=>G.status!==1?{style:{background:"var(--semi-color-disabled-border)"}}:{},ee=async()=>{var G,N;if(u.length===0){q(e("请先选择要删除的令牌!"));return}p(!0);try{const I=u.map(J=>J.id),T=await Se.post("/api/token/batch",{ids:I});if((G=T==null?void 0:T.data)!=null&&G.success){const J=T.data.data||0;Pe(e("已删除 {{count}} 个令牌!",{count:J})),await H(),setTimeout(()=>{o.length===0&&g>1&&H(g-1)},100)}else q(((N=T==null?void 0:T.data)==null?void 0:N.message)||e("删除失败"))}catch(I){q(I.message)}finally{p(!1)}},ie=()=>a.jsxs("div",{className:"flex flex-col w-full",children:[a.jsx("div",{className:"mb-2",children:a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full",children:[a.jsxs("div",{className:"flex items-center text-blue-500",children:[a.jsx(XS,{size:16,className:"mr-2"}),a.jsx(N0e,{children:e("令牌用于API访问认证,可以设置额度限制和模型权限。")})]}),a.jsx(X,{type:"tertiary",className:"w-full md:w-auto",onClick:()=>j(!_),size:"small",children:e(_?"自适应列表":"紧凑列表")})]})}),a.jsx(Ar,{margin:"12px"}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 w-full",children:[a.jsxs("div",{className:"flex flex-wrap gap-2 w-full md:w-auto order-2 md:order-1",children:[a.jsx(X,{type:"primary",className:"flex-1 md:flex-initial",onClick:()=>{E({id:void 0}),s(!0)},size:"small",children:e("添加令牌")}),a.jsx(X,{type:"tertiary",className:"flex-1 md:flex-initial",onClick:()=>{if(u.length===0){q(e("请至少选择一个令牌!"));return}Je.info({title:e("复制令牌"),icon:null,content:e("请选择你的复制方式"),footer:a.jsxs(pt,{children:[a.jsx(X,{type:"tertiary",onClick:async()=>{let G="";for(let N=0;N<u.length;N++)G+=u[N].name+" sk-"+u[N].key+`
- `;await B(G),Je.destroyAll()},children:e("名称+密钥")}),a.jsx(X,{onClick:async()=>{let G="";for(let N=0;N<u.length;N++)G+="sk-"+u[N].key+`
- `;await B(G),Je.destroyAll()},children:e("仅密钥")})]})})},size:"small",children:e("复制所选令牌")}),a.jsx(X,{type:"danger",className:"w-full md:w-auto",onClick:()=>{if(u.length===0){q(e("请至少选择一个令牌!"));return}Je.confirm({title:e("批量删除令牌"),content:a.jsx("div",{children:e("确定要删除所选的 {{count}} 个令牌吗?",{count:u.length})}),onOk:()=>ee()})},size:"small",children:e("删除所选令牌")})]}),a.jsx(M,{initValues:U,getFormApi:G=>K(G),onSubmit:le,allowEmpty:!0,autoComplete:"off",layout:"horizontal",trigger:"change",stopValidateWithError:!1,className:"w-full md:w-auto order-1 md:order-2",children:a.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-4 w-full md:w-auto",children:[a.jsx("div",{className:"relative w-full md:w-56",children:a.jsx(M.Input,{field:"searchKeyword",prefix:a.jsx(Cr,{}),placeholder:e("搜索关键字"),showClear:!0,pure:!0,size:"small"})}),a.jsx("div",{className:"relative w-full md:w-56",children:a.jsx(M.Input,{field:"searchToken",prefix:a.jsx(Cr,{}),placeholder:e("密钥"),showClear:!0,pure:!0,size:"small"})}),a.jsxs("div",{className:"flex gap-2 w-full md:w-auto",children:[a.jsx(X,{type:"tertiary",htmlType:"submit",loading:f||b,className:"flex-1 md:flex-initial md:w-auto",size:"small",children:e("查询")}),a.jsx(X,{type:"tertiary",onClick:()=>{W&&(W.reset(),setTimeout(()=>{le()},100))},className:"flex-1 md:flex-initial md:w-auto",size:"small",children:e("重置")})]})]})})]})]});return a.jsxs(a.Fragment,{children:[a.jsx(P0e,{refresh:H,editingToken:v,visiable:i,handleClose:O}),a.jsx(Le,{className:"!rounded-2xl",title:ie(),shadows:"always",bordered:!1,children:a.jsx(Mr,{columns:_?t.map(G=>{if(G.dataIndex==="operate"){const{fixed:N,...I}=G;return I}return G}):t,dataSource:o,scroll:_?void 0:{x:"max-content"},pagination:{currentPage:g,pageSize:r,total:d,showSizeChanger:!0,pageSizeOptions:[10,20,50,100],formatPageText:G=>e("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:G.currentStart,end:G.currentEnd,total:d}),onPageSizeChange:V,onPageChange:be},loading:f,rowSelection:te,onRow:de,empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:e("搜索无结果"),style:{padding:30}}),className:"rounded-xl overflow-hidden",size:"middle"})})]})},I0e=()=>a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx(M0e,{})}),{Text:lx,Title:$0e}=Ie,L0e=e=>{const{t}=Ze(),r=e.editingRedemption.id!==void 0,[n,i]=m.useState(r),s=mi(),o=m.useRef(null),l=()=>({name:"",quota:1e5,count:1,expired_time:null}),u=()=>{e.handleClose()},c=async()=>{var y;i(!0);let h=await Se.get(`/api/redemption/${e.editingRedemption.id}`);const{success:f,message:p,data:g}=h.data;f?(g.expired_time===0?g.expired_time=null:g.expired_time=new Date(g.expired_time*1e3),(y=o.current)==null||y.setValues({...l(),...g})):q(p),i(!1)};m.useEffect(()=>{o.current&&(r?c():o.current.setValues(l()))},[e.editingRedemption.id]);const d=async h=>{var v;let f=h.name;!r&&(!f||f==="")&&(f=Tt(h.quota)),i(!0);let p={...h};p.count=parseInt(p.count)||0,p.quota=parseInt(p.quota)||0,p.name=f,p.expired_time?p.expired_time=Math.floor(p.expired_time.getTime()/1e3):p.expired_time=0;let g;r?g=await Se.put("/api/redemption/",{...p,id:parseInt(e.editingRedemption.id)}):g=await Se.post("/api/redemption/",{...p});const{success:y,message:b,data:x}=g.data;if(y?r?(Pe(t("兑换码更新成功!")),e.refresh(),e.handleClose()):(Pe(t("兑换码创建成功!")),e.refresh(),(v=o.current)==null||v.setValues(l()),e.handleClose()):q(b),!r&&x){let E="";for(let _=0;_<x.length;_++)E+=x[_]+`
- `;Je.confirm({title:t("兑换码创建成功"),content:a.jsxs("div",{children:[a.jsx("p",{children:t("兑换码创建成功,是否下载兑换码?")}),a.jsx("p",{children:t("兑换码将以文本文件的形式下载,文件名为兑换码的名称。")})]}),onOk:()=>{oT(E,`${p.name}.txt`)}})}i(!1)};return a.jsx(a.Fragment,{children:a.jsx(Nl,{placement:r?"right":"left",title:a.jsxs(pt,{children:[r?a.jsx(ye,{color:"blue",shape:"circle",children:t("更新")}):a.jsx(ye,{color:"green",shape:"circle",children:t("新建")}),a.jsx($0e,{heading:4,className:"m-0",children:t(r?"更新兑换码信息":"创建新的兑换码")})]}),bodyStyle:{padding:"0"},visible:e.visiable,width:s?"100%":600,footer:a.jsx("div",{className:"flex justify-end bg-white",children:a.jsxs(pt,{children:[a.jsx(X,{theme:"solid",onClick:()=>{var h;return(h=o.current)==null?void 0:h.submitForm()},icon:a.jsx(ys,{}),loading:n,children:t("提交")}),a.jsx(X,{theme:"light",type:"primary",onClick:u,icon:a.jsx(ls,{}),children:t("取消")})]})}),closeIcon:null,onCancel:()=>u(),children:a.jsx(Dt,{spinning:n,children:a.jsx(M,{initValues:l(),getFormApi:h=>o.current=h,onSubmit:d,children:({values:h})=>a.jsxs("div",{className:"p-2",children:[a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0 mb-6",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"blue",className:"mr-2 shadow-md",children:a.jsx(TB,{size:16})}),a.jsxs("div",{children:[a.jsx(lx,{className:"text-lg font-medium",children:t("基本信息")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("设置兑换码的基本信息")})]})]}),a.jsxs(Ge,{gutter:12,children:[a.jsx(_e,{span:24,children:a.jsx(M.Input,{field:"name",label:t("名称"),placeholder:t("请输入名称"),style:{width:"100%"},rules:r?[{required:!0,message:t("请输入名称")}]:[],showClear:!0})}),a.jsx(_e,{span:24,children:a.jsx(M.DatePicker,{field:"expired_time",label:t("过期时间"),type:"dateTime",placeholder:t("选择过期时间(可选,留空为永久)"),style:{width:"100%"},showClear:!0})})]})]}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex items-center mb-2",children:[a.jsx(dr,{size:"small",color:"green",className:"mr-2 shadow-md",children:a.jsx(e6,{size:16})}),a.jsxs("div",{children:[a.jsx(lx,{className:"text-lg font-medium",children:t("额度设置")}),a.jsx("div",{className:"text-xs text-gray-600",children:t("设置兑换码的额度和数量")})]})]}),a.jsxs(Ge,{gutter:12,children:[a.jsx(_e,{span:12,children:a.jsx(M.AutoComplete,{field:"quota",label:t("额度"),placeholder:t("请输入额度"),style:{width:"100%"},type:"number",rules:[{required:!0,message:t("请输入额度")},{validator:(f,p)=>parseInt(p,10)>0?Promise.resolve():Promise.reject(t("额度必须大于0"))}],extraText:uf(Number(h.quota)||0),data:[{value:5e5,label:"1$"},{value:5e6,label:"10$"},{value:25e6,label:"50$"},{value:5e7,label:"100$"},{value:25e7,label:"500$"},{value:5e8,label:"1000$"}],showClear:!0})}),!r&&a.jsx(_e,{span:12,children:a.jsx(M.InputNumber,{field:"count",label:t("生成数量"),min:1,rules:[{required:!0,message:t("请输入生成数量")},{validator:(f,p)=>parseInt(p,10)>0?Promise.resolve():Promise.reject(t("生成数量必须大于0"))}],style:{width:"100%"},showClear:!0})})]})]})]})})})})})},{Text:R0e}=Ie;function ux(e){return a.jsx(a.Fragment,{children:_r(e)})}const z0e=()=>{const{t:e}=Ze(),t=ee=>ee.status===1&&ee.expired_time!==0&&ee.expired_time<Math.floor(Date.now()/1e3),r=(ee,ie)=>{if(t(ie))return a.jsx(ye,{color:"orange",shape:"circle",children:e("已过期")});switch(ee){case 1:return a.jsx(ye,{color:"green",shape:"circle",children:e("未使用")});case 2:return a.jsx(ye,{color:"red",shape:"circle",children:e("已禁用")});case 3:return a.jsx(ye,{color:"grey",shape:"circle",children:e("已使用")});default:return a.jsx(ye,{color:"black",shape:"circle",children:e("未知状态")})}},n=[{title:e("ID"),dataIndex:"id"},{title:e("名称"),dataIndex:"name"},{title:e("状态"),dataIndex:"status",key:"status",render:(ee,ie,G)=>a.jsx("div",{children:r(ee,ie)})},{title:e("额度"),dataIndex:"quota",render:(ee,ie,G)=>a.jsx("div",{children:a.jsx(ye,{color:"grey",shape:"circle",children:Tt(parseInt(ee))})})},{title:e("创建时间"),dataIndex:"created_time",render:(ee,ie,G)=>a.jsx("div",{children:ux(ee)})},{title:e("过期时间"),dataIndex:"expired_time",render:ee=>a.jsx("div",{children:ee===0?e("永不过期"):ux(ee)})},{title:e("兑换人ID"),dataIndex:"used_user_id",render:(ee,ie,G)=>a.jsx("div",{children:ee===0?e("无"):ee})},{title:"",dataIndex:"operate",fixed:"right",width:205,render:(ee,ie,G)=>{const N=[{node:"item",name:e("删除"),type:"danger",onClick:()=>{Je.confirm({title:e("确定是否要删除此兑换码?"),content:e("此修改将不可逆"),onOk:()=>{(async()=>(await Y(ie.id,"delete",ie),await B(),setTimeout(()=>{i.length===0&&u>1&&B(u-1)},100)))()}})}}];return ie.status===1&&!t(ie)?N.push({node:"item",name:e("禁用"),type:"warning",onClick:()=>{Y(ie.id,"disable",ie)}}):t(ie)||N.push({node:"item",name:e("启用"),type:"secondary",onClick:()=>{Y(ie.id,"enable",ie)},disabled:ie.status===3}),a.jsxs(pt,{children:[a.jsx(l6,{content:ie.key,style:{padding:20},position:"top",children:a.jsx(X,{type:"tertiary",size:"small",children:e("查看")})}),a.jsx(X,{size:"small",onClick:async()=>{await H(ie.key)},children:e("复制")}),a.jsx(X,{type:"tertiary",size:"small",onClick:()=>{E(ie),j(!0)},disabled:ie.status!==1,children:e("编辑")}),a.jsx(er,{trigger:"click",position:"bottomRight",menu:N,children:a.jsx(X,{type:"tertiary",size:"small",icon:a.jsx(t6,{})})})]})}}],[i,s]=m.useState([]),[o,l]=m.useState(!0),[u,c]=m.useState(1),[d,h]=m.useState(!1),[f,p]=m.useState(un),[g,y]=m.useState([]),[b,x]=m.useState(un),[v,E]=m.useState({id:void 0}),[_,j]=m.useState(!1),[F,k]=Ra("redemptions"),U={searchKeyword:""},[W,K]=m.useState(null),$=()=>({searchKeyword:(W?W.getValues():{}).searchKeyword||""}),O=()=>{j(!1),setTimeout(()=>{E({id:void 0})},500)},R=ee=>{s(ee)},z=async(ee=1,ie)=>{l(!0);const G=await Se.get(`/api/redemption/?p=${ee}&page_size=${ie}`),{success:N,message:I,data:T}=G.data;if(N){const J=T.items;c(T.page<=0?1:T.page),p(T.total),R(J)}else q(I);l(!1)},H=async ee=>{await Qr(ee)?Pe(e("已复制到剪贴板!")):Je.error({title:e("无法复制到剪贴板,请手动复制"),content:ee,size:"large"})};m.useEffect(()=>{z(1,b).then().catch(ee=>{q(ee)})},[b]);const B=async(ee=u)=>{const{searchKeyword:ie}=$();ie===""?await z(ee,b):await P(ie,ee,b)},Y=async(ee,ie,G)=>{l(!0);let N={id:ee},I;switch(ie){case"delete":I=await Se.delete(`/api/redemption/${ee}/`);break;case"enable":N.status=1,I=await Se.put("/api/redemption/?status_only=true",N);break;case"disable":N.status=2,I=await Se.put("/api/redemption/?status_only=true",N);break}const{success:T,message:J}=I.data;if(T){Pe(e("操作成功完成!"));let ve=I.data.data,Z=[...i];ie==="delete"||(G.status=ve.status),s(Z)}else q(J);l(!1)},P=async(ee=null,ie,G)=>{if(ee===null&&(ee=$().searchKeyword),ee===""){await z(ie,G);return}h(!0);const N=await Se.get(`/api/redemption/search?keyword=${ee}&p=${ie}&page_size=${G}`),{success:I,message:T,data:J}=N.data;if(I){const ve=J.items;c(J.page),p(J.total),R(ve)}else q(T);h(!1)},le=ee=>{c(ee);const{searchKeyword:ie}=$();ie===""?z(ee,b).then():P(ie,ee,b).then()};let be=i;const V={onSelect:(ee,ie)=>{},onSelectAll:(ee,ie)=>{},onChange:(ee,ie)=>{y(ie)}},te=(ee,ie)=>ee.status!==1||t(ee)?{style:{background:"var(--semi-color-disabled-border)"}}:{},de=()=>a.jsxs("div",{className:"flex flex-col w-full",children:[a.jsx("div",{className:"mb-2",children:a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full",children:[a.jsxs("div",{className:"flex items-center text-orange-500",children:[a.jsx(Xle,{size:16,className:"mr-2"}),a.jsx(R0e,{children:e("兑换码可以批量生成和分发,适合用于推广活动或批量充值。")})]}),a.jsx(X,{type:"tertiary",className:"w-full md:w-auto",onClick:()=>k(!F),size:"small",children:e(F?"自适应列表":"紧凑列表")})]})}),a.jsx(Ar,{margin:"12px"}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 w-full",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 w-full md:w-auto order-2 md:order-1",children:[a.jsxs("div",{className:"flex gap-2 w-full sm:w-auto",children:[a.jsx(X,{type:"primary",className:"w-full sm:w-auto",onClick:()=>{E({id:void 0}),j(!0)},size:"small",children:e("添加兑换码")}),a.jsx(X,{type:"tertiary",className:"w-full sm:w-auto",onClick:async()=>{if(g.length===0){q(e("请至少选择一个兑换码!"));return}let ee="";for(let ie=0;ie<g.length;ie++)ee+=g[ie].name+" "+g[ie].key+`
- `;await H(ee)},size:"small",children:e("复制所选兑换码到剪贴板")})]}),a.jsx(X,{type:"danger",className:"w-full sm:w-auto",onClick:()=>{Je.confirm({title:e("确定清除所有失效兑换码?"),content:e("将删除已使用、已禁用及过期的兑换码,此操作不可撤销。"),onOk:async()=>{l(!0);const ee=await Se.delete("/api/redemption/invalid"),{success:ie,message:G,data:N}=ee.data;ie?(Pe(e("已删除 {{count}} 条失效兑换码",{count:N})),await B()):q(G),l(!1)}})},size:"small",children:e("清除失效兑换码")})]}),a.jsx(M,{initValues:U,getFormApi:ee=>K(ee),onSubmit:()=>{c(1),P(null,1,b)},allowEmpty:!0,autoComplete:"off",layout:"horizontal",trigger:"change",stopValidateWithError:!1,className:"w-full md:w-auto order-1 md:order-2",children:a.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-4 w-full md:w-auto",children:[a.jsx("div",{className:"relative w-full md:w-64",children:a.jsx(M.Input,{field:"searchKeyword",prefix:a.jsx(Cr,{}),placeholder:e("关键字(id或者名称)"),showClear:!0,pure:!0,size:"small"})}),a.jsxs("div",{className:"flex gap-2 w-full md:w-auto",children:[a.jsx(X,{type:"tertiary",htmlType:"submit",loading:o||d,className:"flex-1 md:flex-initial md:w-auto",size:"small",children:e("查询")}),a.jsx(X,{type:"tertiary",onClick:()=>{W&&(W.reset(),setTimeout(()=>{c(1),z(1,b)},100))},className:"flex-1 md:flex-initial md:w-auto",size:"small",children:e("重置")})]})]})})]})]});return a.jsxs(a.Fragment,{children:[a.jsx(L0e,{refresh:B,editingRedemption:v,visiable:_,handleClose:O}),a.jsx(Le,{className:"!rounded-2xl",title:de(),shadows:"always",bordered:!1,children:a.jsx(Mr,{columns:F?n.map(({fixed:ee,...ie})=>ie):n,dataSource:be,scroll:F?void 0:{x:"max-content"},pagination:{currentPage:u,pageSize:b,total:f,showSizeChanger:!0,pageSizeOptions:[10,20,50,100],formatPageText:ee=>e("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:ee.currentStart,end:ee.currentEnd,total:f}),onPageSizeChange:ee=>{x(ee),c(1);const{searchKeyword:ie}=$();ie===""?z(1,ee).then():P(ie,1,ee).then()},onPageChange:le},loading:o,rowSelection:V,onRow:te,empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:e("搜索无结果"),style:{padding:30}}),className:"rounded-xl overflow-hidden",size:"middle"})})]})},U0e=()=>a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx(z0e,{})});function Za(e){return bd({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.695 15.07c3.426 1.158 4.203 1.22 4.203 1.22V3.846c0-2.124-1.705-3.845-3.81-3.845H3.914C1.808.001.102 1.722.102 3.846v16.31c0 2.123 1.706 3.845 3.813 3.845h16.173c2.105 0 3.81-1.722 3.81-3.845v-.157s-6.19-2.602-9.315-4.119c-2.096 2.602-4.8 4.181-7.607 4.181-4.75 0-6.361-4.19-4.112-6.949.49-.602 1.324-1.175 2.617-1.497 2.025-.502 5.247.313 8.266 1.317a16.796 16.796 0 0 0 1.341-3.302H5.781v-.952h4.799V6.975H4.77v-.953h5.81V3.591s0-.409.411-.409h2.347v2.84h5.744v.951h-5.744v1.704h4.69a19.453 19.453 0 0 1-1.986 5.06c1.424.52 2.702 1.011 3.654 1.333m-13.81-2.032c-.596.06-1.71.325-2.321.869-1.83 1.608-.735 4.55 2.968 4.55 2.151 0 4.301-1.388 5.99-3.61-2.403-1.182-4.438-2.028-6.637-1.809"},child:[]}]})(e)}function H0e(e){return bd({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.043c-.06-.003-.12 0-.18 0h-.016c.151-.467-.182-.825-1.065-1.224-.915-.4-1.646-.336-1.77.465-.008.043-.013.066-.018.135-.068.023-.139.053-.209.064-.43.268-.662.669-.793 1.187-.13.533-.17 1.156-.205 1.869v.003c-.02.334-.17.838-.319 1.35-1.5 1.072-3.58 1.538-5.348.334a2.645 2.645 0 00-.402-.533 1.45 1.45 0 00-.275-.333c.182 0 .338-.03.465-.067a.615.615 0 00.314-.334c.108-.267 0-.697-.345-1.163-.345-.467-.931-.995-1.788-1.521-.63-.4-.986-.87-1.15-1.396-.165-.534-.143-1.085-.015-1.645.245-1.07.873-2.11 1.274-2.763.107-.065.037.135-.408.974-.396.751-1.14 2.497-.122 3.854a8.123 8.123 0 01.647-2.876c.564-1.278 1.743-3.504 1.836-5.268.048.036.217.135.289.202.218.133.38.333.59.465.21.201.477.335.876.335.039.003.075.006.11.006.412 0 .73-.134.997-.268.29-.134.52-.334.74-.4h.005c.467-.135.835-.402 1.044-.7zm2.185 8.958c.037.6.343 1.245.882 1.377.588.134 1.434-.333 1.791-.765l.211-.01c.315-.007.577.01.847.268l.003.003c.208.199.305.53.391.876.085.4.154.78.409 1.066.486.527.645.906.636 1.14l.003-.007v.018l-.003-.012c-.015.262-.185.396-.498.595-.63.401-1.746.712-2.457 1.57-.618.737-1.37 1.14-2.036 1.191-.664.053-1.237-.2-1.574-.898l-.005-.003c-.21-.4-.12-1.025.056-1.69.176-.668.428-1.344.463-1.897.037-.714.076-1.335.195-1.814.12-.465.308-.797.641-.984l.045-.022zm-10.814.049h.01c.053 0 .105.005.157.014.376.055.706.333 1.023.752l.91 1.664.003.003c.243.533.754 1.064 1.189 1.637.434.598.77 1.131.729 1.57v.006c-.057.744-.48 1.148-1.125 1.294-.645.135-1.52.002-2.395-.464-.968-.536-2.118-.469-2.857-.602-.369-.066-.61-.2-.723-.4-.11-.2-.113-.602.123-1.23v-.004l.002-.003c.117-.334.03-.752-.027-1.118-.055-.401-.083-.71.043-.94.16-.334.396-.4.69-.533.294-.135.64-.202.915-.47h.002v-.002c.256-.268.445-.601.668-.838.19-.201.38-.336.663-.336zm7.159-9.074c-.435.201-.945.535-1.488.535-.542 0-.97-.267-1.28-.466-.154-.134-.28-.268-.373-.335-.164-.134-.144-.333-.074-.333.109.016.129.134.199.2.096.066.215.2.36.333.292.2.68.467 1.167.467.485 0 1.053-.267 1.398-.466.195-.135.445-.334.648-.467.156-.136.149-.267.279-.267.128.016.034.134-.147.332a8.097 8.097 0 01-.69.468zm-1.082-1.583V5.64c-.006-.02.013-.042.029-.05.074-.043.18-.027.26.004.063 0 .16.067.15.135-.006.049-.085.066-.135.066-.055 0-.092-.043-.141-.068-.052-.018-.146-.008-.163-.065zm-.551 0c-.02.058-.113.049-.166.066-.047.025-.086.068-.14.068-.05 0-.13-.02-.136-.068-.01-.066.088-.133.15-.133.08-.031.184-.047.259-.005.019.009.036.03.03.05v.02h.003z"},child:[]}]})(e)}function q0e(e){return bd({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"},child:[]}]})(e)}function wi(e){return bd({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.27-.027-.407-.03zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z"},child:[]}]})(e)}const{Text:Wt,Title:Xm}=Ie,W0e=()=>{var $o,ar,gi,Lo,aa,sa,Bs,Wa,On,fn,br,An,Va,qn,Wn,pn,Ts;const{t:e}=Ze(),[t,r]=m.useContext(Xi),[n]=m.useContext(Ji);d6();const[i,s]=m.useState(""),[o,l]=m.useState(""),[u,c]=m.useState(0),[d,h]=m.useState((($o=n==null?void 0:n.status)==null?void 0:$o.min_topup)||1),[f,p]=m.useState(((ar=n==null?void 0:n.status)==null?void 0:ar.min_topup)||1),[g,y]=m.useState(((gi=n==null?void 0:n.status)==null?void 0:gi.top_up_link)||""),[b,x]=m.useState(((Lo=n==null?void 0:n.status)==null?void 0:Lo.enable_online_topup)||!1),[v,E]=m.useState(((aa=n==null?void 0:n.status)==null?void 0:aa.price)||1),[_,j]=m.useState(0),[F,k]=m.useState(((sa=n==null?void 0:n.status)==null?void 0:sa.stripe_min_topup)||1),[U,W]=m.useState(((Bs=n==null?void 0:n.status)==null?void 0:Bs.stripe_min_topup)||1),[K,$]=m.useState(((Wa=n==null?void 0:n.status)==null?void 0:Wa.enable_stripe_topup)||!1),[O,R]=m.useState(!1),[z,H]=m.useState(0),[B,Y]=m.useState(!1),[P,le]=m.useState(!1),[be,V]=m.useState(""),[te,de]=m.useState(!0),[ee,ie]=m.useState(!1),[G,N]=m.useState(!1),[I,T]=m.useState(!1),[J,ve]=m.useState([]),[Z,ge]=m.useState(""),[De,Oe]=m.useState(!1),[ae,we]=m.useState(0),[ne,ke]=m.useState([{value:5},{value:10},{value:30},{value:50},{value:100},{value:300},{value:500},{value:1e3}]),[Be,Ae]=m.useState(null),Q=()=>t.user?t.user.username:"null",he=()=>{if(!t.user)return e("普通用户");switch(t.user.role){case 100:return e("超级管理员");case 10:return e("管理员");case 0:default:return e("普通用户")}},se=async()=>{if(i===""){nr(e("请输入兑换码!"));return}Y(!0);try{const Ee=await Se.post("/api/user/topup",{key:i}),{success:St,message:kt,data:fr}=Ee.data;if(St){if(Pe(e("兑换成功!")),Je.success({title:e("兑换成功!"),content:e("成功兑换额度:")+Tt(fr),centered:!0}),H(rt=>rt+fr),t.user){const rt={...t.user,quota:t.user.quota+fr};r({type:"login",payload:rt})}s("")}else q(kt)}catch{q(e("请求失败"))}finally{Y(!1)}},D=()=>{if(!g){q(e("超级管理员未设置充值链接!"));return}window.open(g,"_blank")},ce=async Ee=>{if(!b){q(e("管理员未开启在线充值!"));return}V(Ee),N(!0);try{if(await jr(),f<d){q(e("充值数量不能小于")+d);return}le(!0)}catch{q(e("获取金额失败"))}finally{N(!1)}},Ce=async()=>{if(u===0&&await jr(),f<d){q("充值数量不能小于"+d);return}T(!0);try{const Ee=await Se.post("/api/user/pay",{amount:parseInt(f),top_up_code:o,payment_method:be});if(Ee!==void 0){const{message:St,data:kt}=Ee.data;if(St==="success"){let fr=kt,rt=Ee.data.url,fe=document.createElement("form");fe.action=rt,fe.method="POST",navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")<1||(fe.target="_blank");for(let nt in fr){let Rt=document.createElement("input");Rt.type="hidden",Rt.name=nt,Rt.value=fr[nt],fe.appendChild(Rt)}document.body.appendChild(fe),fe.submit(),document.body.removeChild(fe)}else q(kt)}else q(Ee)}catch(Ee){console.log(Ee),q(e("支付请求失败"))}finally{le(!1),T(!1)}},Te=async()=>{if(!K){q(e("管理员未开启在线充值!"));return}V("stripe"),N(!0);try{if(await $r(),U<F){q(e("充值数量不能小于")+F);return}R(!0)}catch{q(e("获取金额失败"))}finally{N(!1)}},Qe=async()=>{if(_===0&&await $r(),U<F){q(e("充值数量不能小于")+F);return}T(!0);try{const Ee=await Se.post("/api/user/stripe/pay",{amount:parseInt(U),payment_method:"stripe"});if(Ee!==void 0){const{message:St,data:kt}=Ee.data;St==="success"?Fe(kt):q(kt)}else q(Ee)}catch(Ee){console.log(Ee),q(e("支付请求失败"))}finally{R(!1),T(!1)}},Fe=Ee=>{window.open(Ee.pay_link,"_blank")},Ve=async()=>{de(!0);let Ee=await Se.get("/api/user/self");const{success:St,message:kt,data:fr}=Ee.data;St?(H(fr.quota),r({type:"login",payload:fr})):q(kt),de(!1)},ot=async()=>{const Ee=await Se.get("/api/user/aff"),{success:St,message:kt,data:fr}=Ee.data;if(St){let rt=`${window.location.origin}/register?aff=${fr}`;ge(rt)}else q(kt)},Ot=async()=>{if(ae<Yo()){q(e("划转金额最低为")+" "+Tt(Yo()));return}const Ee=await Se.post("/api/user/aff_transfer",{quota:ae}),{success:St,message:kt}=Ee.data;St?(Pe(kt),Oe(!1),Ve().then()):q(kt)},tr=async()=>{await Qr(Z),Pe(e("邀请链接已复制到剪切板"))};m.useEffect(()=>{var St;(St=t==null?void 0:t.user)!=null&&St.id?(de(!1),H(t.user.quota)):Ve().then(),ot().then(),we(Yo());let Ee=localStorage.getItem("pay_methods");try{Ee=JSON.parse(Ee),Ee&&Ee.length>0&&(Ee=Ee.filter(kt=>kt.name&&kt.type),Ee=Ee.map(kt=>(kt.color||(kt.type==="zfb"?kt.color="rgba(var(--semi-blue-5), 1)":kt.type==="wx"?kt.color="rgba(var(--semi-green-5), 1)":kt.color="rgba(var(--semi-primary-5), 1)"),kt)),ve(Ee))}catch(kt){console.log(kt),q(e("支付方式配置错误, 请联系管理员"))}},[]),m.useEffect(()=>{n!=null&&n.status&&(h(n.status.min_topup||1),p(n.status.min_topup||1),y(n.status.top_up_link||""),x(n.status.enable_online_topup||!1),E(n.status.price||1),k(n.status.stripe_min_topup||1),W(n.status.stripe_min_topup||1),$(n.status.enable_stripe_topup||!1))},[n==null?void 0:n.status]);const hr=()=>u+" "+e("元"),tn=()=>_+" "+e("元"),jr=async Ee=>{Ee===void 0&&(Ee=f),ie(!0);try{const St=await Se.post("/api/user/amount",{amount:parseFloat(Ee),top_up_code:o});if(St!==void 0){const{message:kt,data:fr}=St.data;kt==="success"?c(parseFloat(fr)):(c(0),Mt.error({content:"错误:"+fr,id:"getAmount"}))}else q(St)}catch(St){console.log(St)}ie(!1)},$r=async Ee=>{Ee===void 0&&(Ee=U),ie(!0);try{const St=await Se.post("/api/user/stripe/amount",{amount:parseFloat(Ee)});if(St!==void 0){const{message:kt,data:fr}=St.data;kt==="success"?j(parseFloat(fr)):(j(0),Mt.error({content:"错误:"+fr,id:"getAmount"}))}else q(St)}catch(St){console.log(St)}finally{ie(!1)}},Di=()=>{le(!1)},hn=()=>{R(!1)},Ha=()=>{Oe(!1)},Bi=Ee=>{p(Ee.value),Ae(Ee.value),c(Ee.value*v),W(Ee.value),j(Ee.value)},qa=Ee=>Ee.toString();return a.jsxs("div",{className:"mx-auto relative min-h-screen lg:min-h-0 mt-[64px]",children:[a.jsx(Je,{title:a.jsxs("div",{className:"flex items-center",children:[a.jsx(Kn,{className:"mr-2",size:18}),e("划转邀请额度")]}),visible:De,onOk:Ot,onCancel:Ha,maskClosable:!1,size:"small",centered:!0,children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx(Ie.Text,{strong:!0,className:"block mb-2",children:e("可用邀请额度")}),a.jsx(Lt,{value:Tt((On=t==null?void 0:t.user)==null?void 0:On.aff_quota),disabled:!0,size:"large"})]}),a.jsxs("div",{children:[a.jsxs(Ie.Text,{strong:!0,className:"block mb-2",children:[e("划转额度")," (",e("最低")+Tt(Yo()),")"]}),a.jsx(ga,{min:Yo(),max:((fn=t==null?void 0:t.user)==null?void 0:fn.aff_quota)||0,value:ae,onChange:Ee=>we(Ee),size:"large",className:"w-full"})]})]})}),a.jsx(Je,{title:a.jsxs("div",{className:"flex items-center",children:[a.jsx(Kn,{className:"mr-2",size:18}),e("充值确认")]}),visible:P,onOk:Ce,onCancel:Di,maskClosable:!1,size:"small",centered:!0,confirmLoading:I,children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex justify-between items-center py-2",children:[a.jsxs(Wt,{strong:!0,children:[e("充值数量"),":"]}),a.jsx(Wt,{children:Du(f)})]}),a.jsxs("div",{className:"flex justify-between items-center py-2",children:[a.jsxs(Wt,{strong:!0,children:[e("实付金额"),":"]}),ee?a.jsx(Br.Title,{style:{width:"60px",height:"16px"}}):a.jsx(Wt,{type:"danger",strong:!0,children:hr()})]}),a.jsxs("div",{className:"flex justify-between items-center py-2",children:[a.jsxs(Wt,{strong:!0,children:[e("支付方式"),":"]}),a.jsx(Wt,{children:(()=>{const Ee=J.find(St=>St.type===be);return Ee?a.jsxs("div",{className:"flex items-center",children:[Ee.type==="zfb"?a.jsx(Za,{className:"mr-1",size:16}):Ee.type==="wx"?a.jsx(wi,{className:"mr-1",size:16}):a.jsx(Kn,{className:"mr-1",size:16}),Ee.name]}):be==="zfb"?a.jsxs("div",{className:"flex items-center",children:[a.jsx(Za,{className:"mr-1",size:16}),e("支付宝")]}):a.jsxs("div",{className:"flex items-center",children:[a.jsx(wi,{className:"mr-1",size:16}),e("微信")]})})()})]})]})}),a.jsxs(Je,{title:e("确定要充值吗"),visible:O,onOk:Qe,onCancel:hn,maskClosable:!1,size:"small",centered:!0,confirmLoading:I,children:[a.jsxs("p",{children:[e("充值数量"),":",U]}),a.jsxs("p",{children:[e("实付金额"),":",tn()]}),a.jsx("p",{children:e("是否确认充值?")})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[a.jsx("div",{className:"lg:col-span-7 space-y-6 w-full",children:a.jsx(Le,{className:"!rounded-2xl",shadows:"always",bordered:!1,header:a.jsx("div",{className:"px-5 py-4 pb-0",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx(dr,{className:"mr-3 shadow-md flex-shrink-0",color:"blue",children:a.jsx(Kn,{size:24})}),a.jsxs("div",{children:[a.jsx(Xm,{heading:5,style:{margin:0},children:e("在线充值")}),a.jsx(Wt,{type:"tertiary",className:"text-sm",children:e("快速方便的充值方式")})]})]}),a.jsx("div",{className:"flex items-center",children:te?a.jsx(Br.Paragraph,{style:{width:"120px"},rows:1}):a.jsx(Wt,{type:"tertiary",className:"hidden sm:block",children:a.jsxs("div",{className:"flex items-center",children:[a.jsx(Mg,{size:14,className:"mr-1"}),a.jsxs("span",{className:"hidden md:inline",children:[Q()," (",he(),")"]}),a.jsx("span",{className:"md:hidden",children:Q()})]})})})]})}),children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-2",children:[a.jsxs(Le,{className:"!rounded-2xl",children:[a.jsx(Wt,{type:"tertiary",className:"mb-1",children:e("当前余额")}),te?a.jsx(Br.Title,{style:{width:"100px",height:"30px"}}):a.jsx("div",{className:"text-xl font-semibold mt-2",children:Tt(((br=t==null?void 0:t.user)==null?void 0:br.quota)||z)})]}),a.jsxs(Le,{className:"!rounded-2xl",children:[a.jsx(Wt,{type:"tertiary",className:"mb-1",children:e("历史消耗")}),te?a.jsx(Br.Title,{style:{width:"100px",height:"30px"}}):a.jsx("div",{className:"text-xl font-semibold mt-2",children:Tt(((An=t==null?void 0:t.user)==null?void 0:An.used_quota)||0)})]})]}),b&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{children:[a.jsx(Wt,{strong:!0,className:"block mb-3",children:e("选择充值额度")}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-3",children:ne.map((Ee,St)=>a.jsxs(Le,{onClick:()=>Bi(Ee),className:`cursor-pointer !rounded-2xl transition-all hover:shadow-md ${Be===Ee.value?"border-blue-500":"border-gray-200 hover:border-gray-300"}`,bodyStyle:{textAlign:"center"},children:[a.jsxs("div",{className:"font-medium text-lg flex items-center justify-center mb-1",children:[a.jsx(r4,{size:16,className:"mr-0.5"}),qa(Ee.value)]}),a.jsxs("div",{className:"text-xs text-gray-500",children:[e("实付")," ¥",(Ee.value*v).toFixed(2)]})]},St))})]}),a.jsxs("div",{className:"hidden md:block space-y-4",children:[a.jsx(Ar,{style:{margin:"24px 0"},children:a.jsx(Wt,{className:"text-sm font-medium",children:e("或输入自定义金额")})}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between mb-2",children:[a.jsx(Wt,{strong:!0,children:e("充值数量")}),ee?a.jsx(Br.Title,{style:{width:"80px",height:"16px"}}):a.jsx(Wt,{type:"tertiary",children:e("实付金额:")+hr()})]}),a.jsx(ga,{disabled:!b,placeholder:e("充值数量,最低 ")+Du(d),value:f,min:d,max:999999999,step:1,precision:0,onChange:async Ee=>{Ee&&Ee>=1&&(p(Ee),Ae(null),await jr(Ee))},onBlur:Ee=>{const St=parseInt(Ee.target.value);(!St||St<1)&&(p(1),jr(1))},size:"large",className:"w-full",formatter:Ee=>Ee?`${Ee}`:"",parser:Ee=>Ee?parseInt(Ee.replace(/[^\d]/g,"")):0})]}),a.jsxs("div",{children:[a.jsx(Wt,{strong:!0,className:"block mb-3",children:e("选择支付方式")}),J.length===2?a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:J.map(Ee=>a.jsx(X,{type:"primary",onClick:()=>ce(Ee.type),size:"large",disabled:!b,loading:G&&be===Ee.type,icon:Ee.type==="zfb"?a.jsx(Za,{size:16}):Ee.type==="wx"?a.jsx(wi,{size:16}):a.jsx(Kn,{size:16}),style:{height:"40px",color:Ee.color},className:"transition-all hover:shadow-md w-full",children:a.jsx("span",{className:"ml-1",children:Ee.name})},Ee.type))}):J.length===3?a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:J.map(Ee=>a.jsx(X,{type:"primary",onClick:()=>ce(Ee.type),size:"large",disabled:!b,loading:G&&be===Ee.type,icon:Ee.type==="zfb"?a.jsx(Za,{size:16}):Ee.type==="wx"?a.jsx(wi,{size:16}):a.jsx(Kn,{size:16}),style:{height:"40px",color:Ee.color},className:"transition-all hover:shadow-md w-full",children:a.jsx("span",{className:"ml-1",children:Ee.name})},Ee.type))}):J.length>3?a.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:J.map(Ee=>a.jsx(Le,{onClick:()=>ce(Ee.type),disabled:!b,className:`cursor-pointer !rounded-xl p-0 transition-all hover:shadow-md ${G&&be===Ee.type?"border-blue-400":"border-gray-200 hover:border-gray-300"}`,bodyStyle:{padding:"10px",textAlign:"center",opacity:b?1:.5},children:G&&be===Ee.type?a.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[a.jsx("div",{className:"mb-1",children:a.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-blue-500"})}),a.jsx("div",{className:"text-xs text-gray-500",children:e("处理中")})]}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex items-center justify-center mb-1",children:Ee.type==="zfb"?a.jsx(Za,{size:20,color:Ee.color}):Ee.type==="wx"?a.jsx(wi,{size:20,color:Ee.color}):a.jsx(Kn,{size:20,color:Ee.color})}),a.jsx("div",{className:"text-sm font-medium",children:Ee.name})]})},Ee.type))}):a.jsx("div",{className:"grid grid-cols-1 gap-3",children:J.map(Ee=>a.jsx(X,{type:"primary",onClick:()=>ce(Ee.type),size:"large",disabled:!b,loading:G&&be===Ee.type,icon:Ee.type==="zfb"?a.jsx(Za,{size:16}):Ee.type==="wx"?a.jsx(wi,{size:16}):a.jsx(Kn,{size:16}),style:{height:"40px",color:Ee.color},className:"transition-all hover:shadow-md w-full",children:a.jsx("span",{className:"ml-1",children:Ee.name})},Ee.type))})]})]})]}),!b&&!K&&a.jsx(cr,{type:"warning",description:e("管理员未开启在线充值功能,请联系管理员开启或使用兑换码充值。"),closeIcon:null,className:"!rounded-2xl"}),K&&a.jsx(a.Fragment,{children:a.jsxs("div",{className:"hidden md:block space-y-4",children:[a.jsx(Ar,{style:{margin:"24px 0"},children:a.jsx(Wt,{className:"text-sm font-medium",children:e(b?"Stripe":"或输入自定义金额")})}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between mb-2",children:[a.jsx(Wt,{strong:!0,children:e("充值数量")}),ee?a.jsx(Br.Title,{style:{width:"80px",height:"16px"}}):a.jsx(Wt,{type:"tertiary",children:e("实付金额:")+tn()})]}),a.jsx(ga,{disabled:!K,placeholder:e("充值数量,最低 ")+Du(F),value:U,min:F,max:999999999,step:1,precision:0,onChange:async Ee=>{Ee&&Ee>=1&&(W(Ee),Ae(null),await $r(Ee))},onBlur:Ee=>{const St=parseInt(Ee.target.value);(!St||St<1)&&(W(1),$r(1))},size:"large",className:"w-full",formatter:Ee=>Ee?`${Ee}`:"",parser:Ee=>Ee?parseInt(Ee.replace(/[^\d]/g,"")):0})]}),a.jsxs("div",{children:[a.jsx(Wt,{strong:!0,className:"block mb-3",children:e("选择支付方式")}),a.jsx("div",{className:"grid grid-cols-1 gap-3",children:a.jsx(X,{type:"primary",onClick:()=>Te(),size:"large",disabled:!K,loading:G&&be==="stripe",icon:a.jsx(Kn,{size:16}),style:{height:"40px",color:"#b161fe"},className:"transition-all hover:shadow-md w-full",children:a.jsx("span",{className:"ml-1",children:"Stripe"})},"stripe")})]})]})}),a.jsx(Ar,{style:{margin:"24px 0"},children:a.jsx(Wt,{className:"text-sm font-medium",children:e("兑换码充值")})}),a.jsxs(Le,{className:"!rounded-2xl",children:[a.jsxs("div",{className:"flex items-start mb-4",children:[a.jsx(YS,{size:16,className:"mr-2 mt-0.5"}),a.jsx(Wt,{strong:!0,children:e("使用兑换码快速充值")})]}),a.jsx("div",{className:"mb-4",children:a.jsx(Lt,{placeholder:e("请输入兑换码"),value:i,onChange:Ee=>s(Ee),size:"large"})}),a.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[g&&a.jsx(X,{type:"secondary",onClick:D,size:"large",className:"flex-1",icon:a.jsx(Voe,{size:16}),style:{height:"40px"},children:e("获取兑换码")}),a.jsx(X,{type:"primary",onClick:se,disabled:B||!i,loading:B,size:"large",className:"flex-1",style:{height:"40px"},children:e(B?"兑换中...":"兑换")})]})]})]})})}),a.jsx("div",{className:"lg:col-span-5",children:a.jsx(Le,{className:"!rounded-2xl",shadows:"always",bordered:!1,header:a.jsx("div",{className:"px-5 py-4 pb-0",children:a.jsx("div",{className:"flex items-center justify-between",children:a.jsxs("div",{className:"flex items-center",children:[a.jsx(dr,{className:"mr-3 shadow-md flex-shrink-0",color:"green",children:a.jsx(Xh,{size:24})}),a.jsxs("div",{children:[a.jsx(Xm,{heading:5,style:{margin:0},children:e("邀请奖励")}),a.jsx(Wt,{type:"tertiary",className:"text-sm",children:e("邀请好友获得额外奖励")})]})]})})}),children:a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[a.jsxs(Le,{className:"!rounded-2xl",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx(Wt,{type:"tertiary",children:e("待使用收益")}),a.jsx(X,{type:"primary",theme:"solid",size:"small",disabled:!((Va=t==null?void 0:t.user)!=null&&Va.aff_quota)||((qn=t==null?void 0:t.user)==null?void 0:qn.aff_quota)<=0,onClick:()=>Oe(!0),children:e("划转到余额")})]}),a.jsx("div",{className:"text-2xl font-semibold mt-2",children:Tt(((Wn=t==null?void 0:t.user)==null?void 0:Wn.aff_quota)||0)})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs(Le,{className:"!rounded-2xl",children:[a.jsx(Wt,{type:"tertiary",children:e("总收益")}),a.jsx("div",{className:"text-xl font-semibold mt-2",children:Tt(((pn=t==null?void 0:t.user)==null?void 0:pn.aff_history_quota)||0)})]}),a.jsxs(Le,{className:"!rounded-2xl",children:[a.jsx(Wt,{type:"tertiary",children:e("邀请人数")}),a.jsxs("div",{className:"text-xl font-semibold mt-2 flex items-center",children:[a.jsx(Xh,{size:16,className:"mr-1"}),((Ts=t==null?void 0:t.user)==null?void 0:Ts.aff_count)||0]})]})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx(Xm,{heading:6,children:e("邀请链接")}),a.jsx(Lt,{value:Z,readonly:!0,size:"large",suffix:a.jsx(X,{type:"primary",theme:"light",onClick:tr,icon:a.jsx(of,{size:14}),children:e("复制")})}),a.jsx("div",{className:"mt-4",children:a.jsx(Le,{className:"!rounded-2xl",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-blue-500 mt-2 mr-3 flex-shrink-0"}),a.jsx(Wt,{type:"tertiary",className:"text-sm leading-6",children:e("邀请好友注册,好友充值后您可获得相应奖励")})]}),a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-green-500 mt-2 mr-3 flex-shrink-0"}),a.jsx(Wt,{type:"tertiary",className:"text-sm leading-6",children:e("通过划转功能将奖励额度转入到您的账户余额中")})]}),a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-purple-500 mt-2 mr-3 flex-shrink-0"}),a.jsx(Wt,{type:"tertiary",className:"text-sm leading-6",children:e("邀请的好友越多,获得的奖励越多")})]})]})})})]})]})})})]}),b&&a.jsx("div",{className:"md:hidden fixed bottom-0 left-0 right-0 p-4 shadow-lg z-50",style:{background:"var(--semi-color-bg-0)"},children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between mb-2",children:[a.jsx(Wt,{strong:!0,children:e("充值数量")}),ee?a.jsx(Br.Title,{style:{width:"80px",height:"16px"}}):a.jsx(Wt,{type:"tertiary",children:e("实付金额:")+hr()})]}),a.jsx(ga,{disabled:!b,placeholder:e("充值数量,最低 ")+Du(d),value:f,min:d,max:999999999,step:1,precision:0,onChange:async Ee=>{Ee&&Ee>=1&&(p(Ee),Ae(null),await jr(Ee))},onBlur:Ee=>{const St=parseInt(Ee.target.value);(!St||St<1)&&(p(1),jr(1))},className:"w-full",formatter:Ee=>Ee?`${Ee}`:"",parser:Ee=>Ee?parseInt(Ee.replace(/[^\d]/g,"")):0})]}),a.jsx("div",{children:J.length===2?a.jsx("div",{className:"grid grid-cols-2 gap-3",children:J.map(Ee=>a.jsx(X,{type:"primary",onClick:()=>ce(Ee.type),disabled:!b,loading:G&&be===Ee.type,icon:Ee.type==="zfb"?a.jsx(Za,{size:16}):Ee.type==="wx"?a.jsx(wi,{size:16}):a.jsx(Kn,{size:16}),style:{color:Ee.color},className:"h-10",children:a.jsx("span",{className:"ml-1",children:Ee.name})},Ee.type))}):a.jsx("div",{className:"grid grid-cols-4 gap-2",children:J.map(Ee=>a.jsx(Le,{onClick:()=>ce(Ee.type),disabled:!b,className:`cursor-pointer !rounded-xl p-0 transition-all ${G&&be===Ee.type?"border-blue-400":"border-gray-200"}`,bodyStyle:{padding:"8px",textAlign:"center",opacity:b?1:.5},children:G&&be===Ee.type?a.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-blue-500 mx-auto"}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex justify-center",children:Ee.type==="zfb"?a.jsx(Za,{size:18,color:Ee.color}):Ee.type==="wx"?a.jsx(wi,{size:18,color:Ee.color}):a.jsx(Kn,{size:18,color:Ee.color})}),a.jsx("div",{className:"text-xs mt-1",children:Ee.name})]})},Ee.type))})})]})})]})},{Text:cx}=Ie,dx=["amber","blue","cyan","green","grey","indigo","light-blue","lime","orange","pink","purple","red","teal","violet","yellow"],V0e=()=>{const{t:e}=Ze();function t(Q){switch(Q){case 1:return a.jsx(ye,{color:"cyan",shape:"circle",children:e("充值")});case 2:return a.jsx(ye,{color:"lime",shape:"circle",children:e("消费")});case 3:return a.jsx(ye,{color:"orange",shape:"circle",children:e("管理")});case 4:return a.jsx(ye,{color:"purple",shape:"circle",children:e("系统")});case 5:return a.jsx(ye,{color:"red",shape:"circle",children:e("错误")});default:return a.jsx(ye,{color:"grey",shape:"circle",children:e("未知")})}}function r(Q){return Q?a.jsx(ye,{color:"blue",shape:"circle",children:e("流")}):a.jsx(ye,{color:"purple",shape:"circle",children:e("非流")})}function n(Q){const he=parseInt(Q);return he<101?a.jsxs(ye,{color:"green",shape:"circle",children:[" ",he," s"," "]}):he<300?a.jsxs(ye,{color:"orange",shape:"circle",children:[" ",he," s"," "]}):a.jsxs(ye,{color:"red",shape:"circle",children:[" ",he," s"," "]})}function i(Q){let he=parseFloat(Q)/1e3;return he=he.toFixed(1),he<3?a.jsxs(ye,{color:"green",shape:"circle",children:[" ",he," s"," "]}):he<10?a.jsxs(ye,{color:"orange",shape:"circle",children:[" ",he," s"," "]}):a.jsxs(ye,{color:"red",shape:"circle",children:[" ",he," s"," "]})}function s(Q){let he=pu(Q.other);return(he==null?void 0:he.is_model_mapped)&&(he==null?void 0:he.upstream_model_name)&&(he==null?void 0:he.upstream_model_name)!==""?a.jsx(a.Fragment,{children:a.jsx(pt,{vertical:!0,align:"start",children:a.jsx(l6,{content:a.jsx("div",{style:{padding:10},children:a.jsxs(pt,{vertical:!0,align:"start",children:[a.jsxs("div",{className:"flex items-center",children:[a.jsxs(cx,{strong:!0,style:{marginRight:8},children:[e("请求并计费模型"),":"]}),as(Q.model_name,{onClick:D=>{we(D,Q.model_name).then(ce=>{})}})]}),a.jsxs("div",{className:"flex items-center",children:[a.jsxs(cx,{strong:!0,style:{marginRight:8},children:[e("实际模型"),":"]}),as(he.upstream_model_name,{onClick:D=>{we(D,he.upstream_model_name).then(ce=>{})}})]})]})}),children:as(Q.model_name,{onClick:D=>{we(D,Q.model_name).then(ce=>{})},suffixIcon:a.jsx(Ole,{style:{width:"0.9em",height:"0.9em",opacity:.75}})})})})}):as(Q.model_name,{onClick:D=>{we(D,Q.model_name).then(ce=>{})}})}const o={TIME:"time",CHANNEL:"channel",USERNAME:"username",TOKEN:"token",GROUP:"group",TYPE:"type",MODEL:"model",USER_INPUT:"user_input",USE_TIME:"use_time",PROMPT:"prompt",COMPLETION:"completion",COST:"cost",RETRY:"retry",IP:"ip",DETAILS:"details"},[l,u]=m.useState({}),[c,d]=m.useState(!1);m.useEffect(()=>{const Q=localStorage.getItem("logs-table-columns");if(Q)try{const he=JSON.parse(Q),D={...h(),...he};u(D)}catch(he){console.error("Failed to parse saved column preferences",he),f()}else f()},[]);const h=()=>({[o.TIME]:!0,[o.CHANNEL]:be,[o.USERNAME]:be,[o.TOKEN]:!0,[o.GROUP]:!0,[o.TYPE]:!0,[o.MODEL]:!0,[o.USER_INPUT]:!0,[o.USE_TIME]:!0,[o.PROMPT]:!0,[o.COMPLETION]:!0,[o.COST]:!0,[o.RETRY]:be,[o.IP]:!0,[o.DETAILS]:!0}),f=()=>{const Q=h();u(Q),localStorage.setItem("logs-table-columns",JSON.stringify(Q))},p=(Q,he)=>{const se={...l,[Q]:he};u(se)},g=Q=>{const he=Object.keys(o).map(D=>o[D]),se={};he.forEach(D=>{(D===o.CHANNEL||D===o.USERNAME||D===o.RETRY)&&!be?se[D]=!1:se[D]=Q}),u(se)},y=[{key:o.TIME,title:e("时间"),dataIndex:"timestamp2string"},{key:o.CHANNEL,title:e("渠道"),dataIndex:"channel",className:Nr()?"tableShow":"tableHiddle",render:(Q,he,se)=>{let D=!1,ce=-1,Ce=pu(he.other);if(Ce!=null&&Ce.admin_info){let Te=Ce.admin_info;Te!=null&&Te.is_multi_key&&(D=!0,ce=Te.multi_key_index)}return be&&(he.type===0||he.type===2||he.type===5)?a.jsxs(pt,{children:[a.jsx(Gt,{content:he.channel_name||e("未知渠道"),children:a.jsxs(ye,{color:dx[parseInt(Q)%dx.length],shape:"circle",children:[Q," - ",he.channel_name]})}),D&&a.jsx(ye,{color:"white",shape:"circle",children:ce})]}):null}},{key:o.USERNAME,title:e("用户"),dataIndex:"username",className:Nr()?"tableShow":"tableHiddle",render:(Q,he,se)=>be?a.jsxs("div",{children:[a.jsx(dr,{size:"extra-small",color:To(Q),style:{marginRight:4},onClick:D=>{D.stopPropagation(),ve(he.user_id)},children:typeof Q=="string"&&Q.slice(0,1)}),Q]}):a.jsx(a.Fragment,{})},{key:o.TOKEN,title:e("令牌"),dataIndex:"token_name",render:(Q,he,se)=>he.type===0||he.type===2||he.type===5?a.jsx("div",{children:a.jsxs(ye,{color:"grey",shape:"circle",onClick:D=>{we(D,Q)},children:[" ",e(Q)," "]})}):a.jsx(a.Fragment,{})},{key:o.GROUP,title:e("分组"),dataIndex:"group",render:(Q,he,se)=>{if(he.type===0||he.type===2||he.type===5){if(he.group)return a.jsx(a.Fragment,{children:R1(he.group)});{let D=null;try{D=JSON.parse(he.other)}catch(ce){console.error(`Failed to parse record.other: "${he.other}".`,ce)}return D===null?a.jsx(a.Fragment,{}):D.group!==void 0?a.jsx(a.Fragment,{children:R1(D.group)}):a.jsx(a.Fragment,{})}}else return a.jsx(a.Fragment,{})}},{key:o.TYPE,title:e("类型"),dataIndex:"type",render:(Q,he,se)=>a.jsx(a.Fragment,{children:t(Q)})},{key:o.MODEL,title:e("模型"),dataIndex:"model_name",render:(Q,he,se)=>he.type===0||he.type===2||he.type===5?a.jsx(a.Fragment,{children:s(he)}):a.jsx(a.Fragment,{})},{key:o.USER_INPUT,title:e("用户输入"),dataIndex:"user_input",render:(Q,he,se)=>he.type===2||he.type===5?!Q||Q.trim()===""?a.jsx(ye,{color:"grey",shape:"circle",children:e("无")}):a.jsx($f,{ellipsis:{rows:2,showTooltip:{type:"popover",opts:{style:{width:300}}}},style:{maxWidth:200},onClick:D=>{we(D,Q)},className:"cursor-pointer",children:Q}):a.jsx(a.Fragment,{})},{key:o.USE_TIME,title:e("用时/首字"),dataIndex:"use_time",render:(Q,he,se)=>{if(!(he.type===2||he.type===5))return a.jsx(a.Fragment,{});if(he.is_stream){let D=pu(he.other);return a.jsx(a.Fragment,{children:a.jsxs(pt,{children:[n(Q),i(D==null?void 0:D.frt),r(he.is_stream)]})})}else return a.jsx(a.Fragment,{children:a.jsxs(pt,{children:[n(Q),r(he.is_stream)]})})}},{key:o.PROMPT,title:e("提示"),dataIndex:"prompt_tokens",render:(Q,he,se)=>he.type===0||he.type===2||he.type===5?a.jsx(a.Fragment,{children:a.jsxs("span",{children:[" ",Q," "]})}):a.jsx(a.Fragment,{})},{key:o.COMPLETION,title:e("补全"),dataIndex:"completion_tokens",render:(Q,he,se)=>parseInt(Q)>0&&(he.type===0||he.type===2||he.type===5)?a.jsx(a.Fragment,{children:a.jsxs("span",{children:[" ",Q," "]})}):a.jsx(a.Fragment,{})},{key:o.COST,title:e("花费"),dataIndex:"quota",render:(Q,he,se)=>he.type===0||he.type===2||he.type===5?a.jsx(a.Fragment,{children:Tt(Q,6)}):a.jsx(a.Fragment,{})},{key:o.IP,title:a.jsxs("div",{className:"flex items-center gap-1",children:[e("IP"),a.jsx(Gt,{content:e("只有当用户设置开启IP记录时,才会进行请求和错误类型日志的IP记录"),children:a.jsx(u6,{className:"text-gray-400 cursor-help"})})]}),dataIndex:"ip",render:(Q,he,se)=>(he.type===2||he.type===5)&&Q?a.jsx(Gt,{content:Q,children:a.jsx(ye,{color:"orange",shape:"circle",onClick:D=>{we(D,Q)},children:Q})}):a.jsx(a.Fragment,{})},{key:o.RETRY,title:e("重试"),dataIndex:"retry",className:Nr()?"tableShow":"tableHiddle",render:(Q,he,se)=>{if(!(he.type===2||he.type===5))return a.jsx(a.Fragment,{});let D=e("渠道")+`:${he.channel}`;if(he.other!==""){let ce=JSON.parse(he.other);if(ce===null)return a.jsx(a.Fragment,{});if(ce.admin_info!==void 0&&ce.admin_info.use_channel!==null&&ce.admin_info.use_channel!==void 0&&ce.admin_info.use_channel!==""){let Te=ce.admin_info.use_channel.join("->");D=e("渠道")+`:${Te}`}}return be?a.jsx("div",{children:D}):a.jsx(a.Fragment,{})}},{key:o.DETAILS,title:e("详情"),dataIndex:"content",fixed:"right",render:(Q,he,se)=>{let D=pu(he.other);if(D==null||he.type!==2)return a.jsx($f,{ellipsis:{rows:2,showTooltip:{type:"popover",opts:{style:{width:240}}}},style:{maxWidth:240},children:Q});let ce=D!=null&&D.claude?Fue(D.model_ratio,D.model_price,D.group_ratio,D==null?void 0:D.user_group_ratio,D.cache_tokens||0,D.cache_ratio||1,D.cache_creation_tokens||0,D.cache_creation_ratio||1):wue(D.model_ratio,D.model_price,D.group_ratio,D==null?void 0:D.user_group_ratio,D.cache_tokens||0,D.cache_ratio||1);return a.jsx($f,{ellipsis:{rows:2},style:{maxWidth:240},children:ce})}}];m.useEffect(()=>{Object.keys(l).length>0&&localStorage.setItem("logs-table-columns",JSON.stringify(l))},[l]);const b=()=>y.filter(Q=>l[Q.key]),x=()=>a.jsxs(Je,{title:e("列设置"),visible:c,onCancel:()=>d(!1),footer:a.jsxs("div",{className:"flex justify-end",children:[a.jsx(X,{onClick:()=>f(),children:e("重置")}),a.jsx(X,{onClick:()=>d(!1),children:e("取消")}),a.jsx(X,{onClick:()=>d(!1),children:e("确定")})]}),children:[a.jsx("div",{style:{marginBottom:20},children:a.jsx(Ln,{checked:Object.values(l).every(Q=>Q===!0),indeterminate:Object.values(l).some(Q=>Q===!0)&&!Object.values(l).every(Q=>Q===!0),onChange:Q=>g(Q.target.checked),children:e("全选")})}),a.jsx("div",{className:"flex flex-wrap max-h-96 overflow-y-auto rounded-lg p-4",style:{border:"1px solid var(--semi-color-border)"},children:y.map(Q=>!be&&(Q.key===o.CHANNEL||Q.key===o.USERNAME||Q.key===o.RETRY)?null:a.jsx("div",{className:"w-1/2 mb-4 pr-2",children:a.jsx(Ln,{checked:!!l[Q.key],onChange:he=>p(Q.key,he.target.checked),children:Q.title})},Q.key))})]}),[v,E]=m.useState([]),[_,j]=m.useState({}),[F,k]=m.useState(!1),[U,W]=m.useState(!1),[K,$]=m.useState(!1),[O,R]=m.useState(1),[z,H]=m.useState(un),[B,Y]=m.useState(un),[P,le]=m.useState(0),be=Nr();let V=new Date;const te={username:"",token_name:"",model_name:"",channel:"",group:"",dateRange:[_r(r7()),_r(V.getTime()/1e3+3600)],logType:"0"},[de,ee]=m.useState({quota:0,token:0}),[ie,G]=m.useState(null),N=()=>{const Q=ie?ie.getValues():{};let he=_r(r7()),se=_r(V.getTime()/1e3+3600);return Q.dateRange&&Array.isArray(Q.dateRange)&&Q.dateRange.length===2&&(he=Q.dateRange[0],se=Q.dateRange[1]),{username:Q.username||"",token_name:Q.token_name||"",model_name:Q.model_name||"",start_timestamp:he,end_timestamp:se,channel:Q.channel||"",group:Q.group||"",logType:Q.logType?parseInt(Q.logType):0}},I=async()=>{const{token_name:Q,model_name:he,start_timestamp:se,end_timestamp:D,group:ce,logType:Ce}=N(),Te=Ce!==void 0?Ce:P;let Qe=Date.parse(se)/1e3,Fe=Date.parse(D)/1e3,Ve=`/api/log/self/stat?type=${Te}&token_name=${Q}&model_name=${he}&start_timestamp=${Qe}&end_timestamp=${Fe}&group=${ce}`;Ve=encodeURI(Ve);let ot=await Se.get(Ve);const{success:Ot,message:tr,data:hr}=ot.data;Ot?ee(hr):q(tr)},T=async()=>{const{username:Q,token_name:he,model_name:se,start_timestamp:D,end_timestamp:ce,channel:Ce,group:Te,logType:Qe}=N(),Fe=Qe!==void 0?Qe:P;let Ve=Date.parse(D)/1e3,ot=Date.parse(ce)/1e3,Ot=`/api/log/stat?type=${Fe}&username=${Q}&token_name=${he}&model_name=${se}&start_timestamp=${Ve}&end_timestamp=${ot}&channel=${Ce}&group=${Te}`;Ot=encodeURI(Ot);let tr=await Se.get(Ot);const{success:hr,message:tn,data:jr}=tr.data;hr?ee(jr):q(tn)},J=async()=>{K||($(!0),be?await T():await I(),k(!0),$(!1))},ve=async Q=>{if(!be)return;const he=await Se.get(`/api/user/${Q}`),{success:se,message:D,data:ce}=he.data;se?Je.info({title:e("用户信息"),content:a.jsxs("div",{style:{padding:12},children:[a.jsxs("p",{children:[e("用户名"),": ",ce.username]}),a.jsxs("p",{children:[e("余额"),": ",Tt(ce.quota)]}),a.jsxs("p",{children:[e("已用额度"),":",Tt(ce.used_quota)]}),a.jsxs("p",{children:[e("请求次数"),":",z1(ce.request_count)]})]}),centered:!0}):q(D)},Z=Q=>{let he={};for(let se=0;se<Q.length;se++){Q[se].timestamp2string=_r(Q[se].created_at),Q[se].key=Q[se].id;let D=pu(Q[se].other),ce=[];if(Nr(),be&&(Q[se].type===0||Q[se].type===2)&&ce.push({key:e("渠道信息"),value:`${Q[se].channel} - ${Q[se].channel_name||"[未知]"}`}),(Q[se].type===2||Q[se].type===5)&&Q[se].user_input&&Q[se].user_input.trim()!==""&&ce.push({key:e("用户输入内容"),value:Q[se].user_input}),(D!=null&&D.ws||D!=null&&D.audio)&&(ce.push({key:e("语音输入"),value:D.audio_input}),ce.push({key:e("语音输出"),value:D.audio_output}),ce.push({key:e("文字输入"),value:D.text_input}),ce.push({key:e("文字输出"),value:D.text_output})),(D==null?void 0:D.cache_tokens)>0&&ce.push({key:e("缓存 Tokens"),value:D.cache_tokens}),(D==null?void 0:D.cache_creation_tokens)>0&&ce.push({key:e("缓存创建 Tokens"),value:D.cache_creation_tokens}),Q[se].type===2&&ce.push({key:e("日志详情"),value:D!=null&&D.claude?Sue(D==null?void 0:D.model_ratio,D.completion_ratio,D.model_price,D.group_ratio,D==null?void 0:D.user_group_ratio,D.cache_ratio||1,D.cache_creation_ratio||1):vue(D==null?void 0:D.model_ratio,D.completion_ratio,D.model_price,D.group_ratio,D==null?void 0:D.user_group_ratio,!1,1,D.web_search||!1,D.web_search_call_count||0,D.file_search||!1,D.file_search_call_count||0)}),Q[se].type===2){(D==null?void 0:D.is_model_mapped)&&(D==null?void 0:D.upstream_model_name)&&(D==null?void 0:D.upstream_model_name)!==""&&(ce.push({key:e("请求并计费模型"),value:Q[se].model_name}),ce.push({key:e("实际模型"),value:D.upstream_model_name}));let Te="";D!=null&&D.ws||D!=null&&D.audio?Te=Eue(D==null?void 0:D.text_input,D==null?void 0:D.text_output,D==null?void 0:D.model_ratio,D==null?void 0:D.model_price,D==null?void 0:D.completion_ratio,D==null?void 0:D.audio_input,D==null?void 0:D.audio_output,D==null?void 0:D.audio_ratio,D==null?void 0:D.audio_completion_ratio,D==null?void 0:D.group_ratio,D==null?void 0:D.user_group_ratio,(D==null?void 0:D.cache_tokens)||0,(D==null?void 0:D.cache_ratio)||1):D!=null&&D.claude?Te=Cue(Q[se].prompt_tokens,Q[se].completion_tokens,D.model_ratio,D.model_price,D.completion_ratio,D.group_ratio,D==null?void 0:D.user_group_ratio,D.cache_tokens||0,D.cache_ratio||1,D.cache_creation_tokens||0,D.cache_creation_ratio||1):Te=xue(Q[se].prompt_tokens,Q[se].completion_tokens,D==null?void 0:D.model_ratio,D==null?void 0:D.model_price,D==null?void 0:D.completion_ratio,D==null?void 0:D.group_ratio,D==null?void 0:D.user_group_ratio,(D==null?void 0:D.cache_tokens)||0,(D==null?void 0:D.cache_ratio)||1,(D==null?void 0:D.image)||!1,(D==null?void 0:D.image_ratio)||0,(D==null?void 0:D.image_output)||0,(D==null?void 0:D.web_search)||!1,(D==null?void 0:D.web_search_call_count)||0,(D==null?void 0:D.web_search_price)||0,(D==null?void 0:D.file_search)||!1,(D==null?void 0:D.file_search_call_count)||0,(D==null?void 0:D.file_search_price)||0,(D==null?void 0:D.audio_input_seperate_price)||!1,(D==null?void 0:D.audio_input_token_count)||0,(D==null?void 0:D.audio_input_price)||0),ce.push({key:e("计费过程"),value:Te}),D!=null&&D.reasoning_effort&&ce.push({key:e("Reasoning Effort"),value:D.reasoning_effort})}he[Q[se].key]=ce}j(he),E(Q)},ge=async(Q,he,se=null)=>{W(!0);let D="";const{username:ce,token_name:Ce,model_name:Te,start_timestamp:Qe,end_timestamp:Fe,channel:Ve,group:ot,logType:Ot}=N(),tr=se!==null?se:Ot!==void 0?Ot:P;let hr=Date.parse(Qe)/1e3,tn=Date.parse(Fe)/1e3;be?D=`/api/log/?p=${Q}&page_size=${he}&type=${tr}&username=${ce}&token_name=${Ce}&model_name=${Te}&start_timestamp=${hr}&end_timestamp=${tn}&channel=${Ve}&group=${ot}`:D=`/api/log/self/?p=${Q}&page_size=${he}&type=${tr}&token_name=${Ce}&model_name=${Te}&start_timestamp=${hr}&end_timestamp=${tn}&group=${ot}`,D=encodeURI(D);const jr=await Se.get(D),{success:$r,message:Di,data:hn}=jr.data;if($r){const Ha=hn.items;R(hn.page),Y(hn.page_size),H(hn.total),Z(Ha)}else q(Di);W(!1)},De=Q=>{R(Q),ge(Q,B).then(he=>{})},Oe=async Q=>{localStorage.setItem("page-size",Q+""),Y(Q),R(1),ge(O,Q).then().catch(he=>{q(he)})},ae=async()=>{R(1),J(),await ge(1,B)},we=async(Q,he)=>{Q.stopPropagation(),await Qr(he)?Pe("已复制:"+he):Je.error({title:e("无法复制到剪贴板,请手动复制"),content:he})};m.useEffect(()=>{const Q=parseInt(localStorage.getItem("page-size"))||un;Y(Q),ge(O,Q).then().catch(he=>{q(he)})},[]),m.useEffect(()=>{ie&&J()},[ie]);const ne=(Q,he)=>a.jsx(PB,{data:_[Q.key]}),ke=()=>v.some(Q=>_[Q.key]&&_[Q.key].length>0),[Be,Ae]=Ra("logs");return a.jsxs(a.Fragment,{children:[x(),a.jsx(Le,{className:"!rounded-2xl mb-4",title:a.jsxs("div",{className:"flex flex-col w-full",children:[a.jsx(Dt,{spinning:K,children:a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full",children:[a.jsxs(pt,{children:[a.jsxs(ye,{color:"blue",style:{fontWeight:500,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",padding:13},className:"!rounded-lg",children:[e("消耗额度"),": ",Tt(de.quota)]}),a.jsxs(ye,{color:"pink",style:{fontWeight:500,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",padding:13},className:"!rounded-lg",children:["RPM: ",de.rpm]}),a.jsxs(ye,{color:"white",style:{border:"none",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",fontWeight:500,padding:13},className:"!rounded-lg",children:["TPM: ",de.tpm]})]}),a.jsx(X,{type:"tertiary",className:"w-full md:w-auto",onClick:()=>Ae(!Be),size:"small",children:e(Be?"自适应列表":"紧凑列表")})]})}),a.jsx(Ar,{margin:"12px"}),a.jsx(M,{initValues:te,getFormApi:Q=>G(Q),onSubmit:ae,allowEmpty:!0,autoComplete:"off",layout:"vertical",trigger:"change",stopValidateWithError:!1,children:a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[a.jsx("div",{className:"col-span-1 lg:col-span-2",children:a.jsx(M.DatePicker,{field:"dateRange",className:"w-full",type:"dateTimeRange",placeholder:[e("开始时间"),e("结束时间")],showClear:!0,pure:!0,size:"small"})}),a.jsx(M.Input,{field:"token_name",prefix:a.jsx(Cr,{}),placeholder:e("令牌名称"),showClear:!0,pure:!0,size:"small"}),a.jsx(M.Input,{field:"model_name",prefix:a.jsx(Cr,{}),placeholder:e("模型名称"),showClear:!0,pure:!0,size:"small"}),a.jsx(M.Input,{field:"group",prefix:a.jsx(Cr,{}),placeholder:e("分组"),showClear:!0,pure:!0,size:"small"}),be&&a.jsxs(a.Fragment,{children:[a.jsx(M.Input,{field:"channel",prefix:a.jsx(Cr,{}),placeholder:e("渠道 ID"),showClear:!0,pure:!0,size:"small"}),a.jsx(M.Input,{field:"username",prefix:a.jsx(Cr,{}),placeholder:e("用户名称"),showClear:!0,pure:!0,size:"small"})]})]}),a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-3",children:[a.jsx("div",{className:"w-full sm:w-auto",children:a.jsxs(M.Select,{field:"logType",placeholder:e("日志类型"),className:"w-full sm:w-auto min-w-[120px]",showClear:!0,pure:!0,onChange:()=>{setTimeout(()=>{ae()},0)},size:"small",children:[a.jsx(M.Select.Option,{value:"0",children:e("全部")}),a.jsx(M.Select.Option,{value:"1",children:e("充值")}),a.jsx(M.Select.Option,{value:"2",children:e("消费")}),a.jsx(M.Select.Option,{value:"3",children:e("管理")}),a.jsx(M.Select.Option,{value:"4",children:e("系统")}),a.jsx(M.Select.Option,{value:"5",children:e("错误")})]})}),a.jsxs("div",{className:"flex gap-2 w-full sm:w-auto justify-end",children:[a.jsx(X,{type:"tertiary",htmlType:"submit",loading:U,size:"small",children:e("查询")}),a.jsx(X,{type:"tertiary",onClick:()=>{ie&&(ie.reset(),le(0),setTimeout(()=>{ae()},100))},size:"small",children:e("重置")}),a.jsx(X,{type:"tertiary",onClick:()=>d(!0),size:"small",children:e("列设置")})]})]})]})})]}),shadows:"always",bordered:!1,children:a.jsx(Mr,{columns:Be?b().map(({fixed:Q,...he})=>he):b(),...ke()&&{expandedRowRender:ne,expandRowByClick:!0,rowExpandable:Q=>_[Q.key]&&_[Q.key].length>0},dataSource:v,rowKey:"key",loading:U,scroll:Be?void 0:{x:"max-content"},className:"rounded-xl overflow-hidden",size:"middle",empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:e("搜索无结果"),style:{padding:30}}),pagination:{formatPageText:Q=>e("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:Q.currentStart,end:Q.currentEnd,total:z}),currentPage:O,pageSize:B,total:z,pageSizeOptions:[10,20,50,100],showSizeChanger:!0,onPageSizeChange:Q=>{Oe(Q)},onPageChange:De}})})]})},G0e=()=>a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx(V0e,{})}),{Text:xr,Title:qo}=Ie,K0e=()=>{const{t:e}=Ze(),t=[{title:e("日期"),dataIndex:"date",key:"date",render:O=>a.jsx(xr,{strong:!0,children:O}),width:120},{title:e("令牌名称"),dataIndex:"token_name",key:"token_name",render:(O,R)=>a.jsxs("div",{children:[a.jsx(xr,{children:O||e("未知令牌")}),a.jsx("br",{}),a.jsxs(xr,{type:"tertiary",size:"small",children:["ID: ",R.token_id]})]}),width:150},{title:e("模型名称"),dataIndex:"model_name",key:"model_name",render:O=>a.jsx(ye,{color:"blue",shape:"circle",children:O}),width:150},{title:e("请求统计"),key:"requests",render:(O,R)=>a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(xr,{size:"small",type:"tertiary",children:[e("总数"),":"]}),a.jsx(xr,{strong:!0,children:R.total_requests})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(xr,{size:"small",type:"tertiary",children:[e("成功"),":"]}),a.jsx(xr,{type:"success",children:R.successful_requests})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(xr,{size:"small",type:"tertiary",children:[e("失败"),":"]}),a.jsx(xr,{type:"danger",children:R.failed_requests})]})]}),width:120},{title:e("成功率"),key:"success_rate",render:(O,R)=>{const z=R.total_requests>0?(R.successful_requests/R.total_requests*100).toFixed(1):"0.0",H=parseFloat(z)>=95?"green":parseFloat(z)>=80?"orange":"red";return a.jsxs(ye,{color:H,shape:"circle",children:[z,"%"]})},width:100},{title:e("Token统计"),key:"tokens",render:(O,R)=>a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(xr,{size:"small",type:"tertiary",children:[e("总计"),":"]}),a.jsx(xr,{strong:!0,children:R.total_tokens.toLocaleString()})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(xr,{size:"small",type:"tertiary",children:[e("输入"),":"]}),a.jsx(xr,{children:R.prompt_tokens.toLocaleString()})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(xr,{size:"small",type:"tertiary",children:[e("输出"),":"]}),a.jsx(xr,{children:R.completion_tokens.toLocaleString()})]})]}),width:150},{title:e("额度消耗"),dataIndex:"total_quota",key:"total_quota",render:O=>a.jsx(xr,{strong:!0,type:"warning",children:Tt(O)}),width:120},{title:e("更新时间"),dataIndex:"updated_time",key:"updated_time",render:O=>{const R=new Date(O*1e3);return a.jsx(xr,{size:"small",type:"tertiary",children:R.toLocaleString()})},width:150}],[r,n]=m.useState(un),[i,s]=m.useState([]),[o,l]=m.useState(!0),[u,c]=m.useState(1),[d,h]=m.useState(0),[f,p]=Ra("usage_statistics"),[g,y]=m.useState(null),[b,x]=m.useState([]),v=()=>{const O=new Date;return{startDate:new Date(O.getTime()-7*24*60*60*1e3),endDate:O,tokenId:"",modelName:""}},[E,_]=m.useState(null),j=()=>{const O=E?E.getValues():{},R=O.startDate?new Date(O.startDate).toISOString().split("T")[0]:"",z=O.endDate?new Date(O.endDate).toISOString().split("T")[0]:"";return{start_date:R,end_date:z,token_id:O.tokenId||"",model_name:O.modelName||""}},F=O=>{s(O.items||[]),h(O.total||0),c(O.page||1),n(O.page_size||r),y(O.summary||null)},k=async(O=1,R=r,z={})=>{l(!0);try{const H=new URLSearchParams({p:O.toString(),size:R.toString(),...z}),B=Nr()?`/api/usage_statistics/?${H}`:`/api/usage_statistics/self?${H}`;console.log("Loading statistics with params:",H.toString()),console.log("API endpoint:",B);const Y=await Se.get(B);console.log("API response:",Y.data);const{success:P,message:le,data:be}=Y.data;P?F(be):q(le)}catch(H){console.error("Failed to load statistics:",H),q(e("加载数据失败"))}l(!1)},U=async()=>{try{const O=await Se.get("/api/token/"),{success:R,data:z}=O.data;if(R){const H=z.items.map(B=>({label:B.name,value:B.id}));x(H)}}catch(O){console.error("Failed to load tokens:",O)}},W=async(O=u)=>{const R=j();await k(O,r,R)},K=async()=>{const O=j();await k(1,r,O)},$=()=>{E&&(E.setValues(v()),k(1,r))};return m.useEffect(()=>{console.log("Component mounted, user is admin:",Nr()),k(1),U()},[r]),a.jsxs("div",{className:"space-y-4",children:[!1,g&&a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex items-center mb-4",children:[a.jsx(Vv,{className:"mr-2 text-blue-500",size:20}),a.jsx(qo,{heading:5,className:"m-0",children:e("统计摘要")})]}),a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{span:6,children:a.jsxs("div",{className:"statistic-card",children:[a.jsx(xr,{type:"tertiary",size:"small",children:e("总请求数")}),a.jsx(qo,{heading:3,style:{color:"#3f6600",margin:"4px 0 0 0"},children:g.total_requests})]})}),a.jsx(_e,{span:6,children:a.jsxs("div",{className:"statistic-card",children:[a.jsx(xr,{type:"tertiary",size:"small",children:e("成功请求数")}),a.jsx(qo,{heading:3,style:{color:"#52c41a",margin:"4px 0 0 0"},children:g.successful_requests})]})}),a.jsx(_e,{span:6,children:a.jsxs("div",{className:"statistic-card",children:[a.jsx(xr,{type:"tertiary",size:"small",children:e("成功率")}),a.jsxs(qo,{heading:3,style:{color:g.success_rate>=95?"#52c41a":"#fa8c16",margin:"4px 0 0 0"},children:[g.success_rate.toFixed(1),"%"]})]})}),a.jsx(_e,{span:6,children:a.jsxs("div",{className:"statistic-card",children:[a.jsx(xr,{type:"tertiary",size:"small",children:e("总额度消耗")}),a.jsx(qo,{heading:3,style:{color:"#1890ff",margin:"4px 0 0 0"},children:Tt(g.total_quota)})]})})]})]}),a.jsx(Le,{className:"!rounded-2xl shadow-sm border-0",children:a.jsxs(M,{getFormApi:O=>_(O),initValues:v(),onSubmit:K,layout:"horizontal",className:"search-form",children:[a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{span:6,children:a.jsx(M.DatePicker,{field:"startDate",label:e("开始日期"),style:{width:"100%"},placeholder:e("请选择开始日期")})}),a.jsx(_e,{span:6,children:a.jsx(M.DatePicker,{field:"endDate",label:e("结束日期"),style:{width:"100%"},placeholder:e("请选择结束日期")})}),a.jsx(_e,{span:6,children:a.jsx(M.Select,{field:"tokenId",label:e("令牌"),style:{width:"100%"},placeholder:e("请选择令牌"),optionList:b,showClear:!0,filter:!0})}),a.jsx(_e,{span:6,children:a.jsx(M.Input,{field:"modelName",label:e("模型名称"),style:{width:"100%"},placeholder:e("请输入模型名称"),showClear:!0})})]}),a.jsxs("div",{className:"flex justify-end mt-4 gap-2",children:[a.jsx(X,{type:"primary",htmlType:"submit",icon:a.jsx(Cr,{}),loading:o,children:e("搜索")}),a.jsx(X,{icon:a.jsx(Nh,{}),onClick:$,children:e("重置")})]})]})}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex justify-between items-center mb-4",children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx(qo,{heading:5,className:"m-0",children:e("用量日统计")}),a.jsxs(xr,{type:"tertiary",className:"ml-2",children:["(",e("按日期、令牌、模型分组汇总"),")"]})]}),a.jsx("div",{className:"flex items-center gap-2",children:a.jsx(X,{icon:a.jsx(Nh,{}),onClick:()=>W(),loading:o,children:e("刷新")})})]}),a.jsx(Mr,{columns:t,dataSource:i,empty:i.length===0&&!o?a.jsx("div",{className:"text-center py-8",children:a.jsx(xr,{type:"tertiary",children:e(d===0?"暂无统计数据,请先发起API请求或调整筛选条件":"暂无数据")})}):void 0,pagination:{currentPage:u,pageSize:r,total:d,showSizeChanger:!0,showQuickJumper:!0,showTotal:(O,R)=>e("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:R[0],end:R[1],total:O}),onPageChange:O=>{c(O),W(O)},onPageSizeChange:O=>{n(O),c(1),k(1,O,j())}},loading:o,size:f?"small":"default",rowKey:"id",scroll:{x:1200}})]})]})},Y0e=()=>a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx(K0e,{})}),{Text:vr,Title:Wo}=Ie,Z0e=()=>{const{t:e}=Ze(),t=[{title:e("月份"),dataIndex:"date",key:"date",render:O=>{const R=O.substring(0,7);return a.jsx(vr,{strong:!0,children:R})},width:120},{title:e("令牌名称"),dataIndex:"token_name",key:"token_name",render:(O,R)=>a.jsxs("div",{children:[a.jsx(vr,{children:O||e("未知令牌")}),a.jsx("br",{}),a.jsxs(vr,{type:"tertiary",size:"small",children:["ID: ",R.token_id]})]}),width:150},{title:e("模型名称"),dataIndex:"model_name",key:"model_name",render:O=>a.jsx(ye,{color:"blue",shape:"circle",children:O}),width:150},{title:e("请求统计"),key:"requests",render:(O,R)=>a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(vr,{size:"small",type:"tertiary",children:[e("总数"),":"]}),a.jsx(vr,{strong:!0,children:R.total_requests})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(vr,{size:"small",type:"tertiary",children:[e("成功"),":"]}),a.jsx(vr,{type:"success",children:R.successful_requests})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(vr,{size:"small",type:"tertiary",children:[e("失败"),":"]}),a.jsx(vr,{type:"danger",children:R.failed_requests})]})]}),width:120},{title:e("成功率"),key:"success_rate",render:(O,R)=>{const z=R.total_requests>0?(R.successful_requests/R.total_requests*100).toFixed(1):"0.0",H=parseFloat(z)>=95?"green":parseFloat(z)>=80?"orange":"red";return a.jsxs(ye,{color:H,shape:"circle",children:[z,"%"]})},width:100},{title:e("Token统计"),key:"tokens",render:(O,R)=>a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(vr,{size:"small",type:"tertiary",children:[e("总计"),":"]}),a.jsx(vr,{strong:!0,children:R.total_tokens.toLocaleString()})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(vr,{size:"small",type:"tertiary",children:[e("输入"),":"]}),a.jsx(vr,{children:R.prompt_tokens.toLocaleString()})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(vr,{size:"small",type:"tertiary",children:[e("输出"),":"]}),a.jsx(vr,{children:R.completion_tokens.toLocaleString()})]})]}),width:150},{title:e("额度消耗"),dataIndex:"total_quota",key:"total_quota",render:O=>a.jsx(vr,{strong:!0,type:"warning",children:Tt(O)}),width:120},{title:e("更新时间"),dataIndex:"updated_time",key:"updated_time",render:O=>{const R=new Date(O*1e3);return a.jsx(vr,{size:"small",type:"tertiary",children:R.toLocaleString()})},width:150}],[r,n]=m.useState(un),[i,s]=m.useState([]),[o,l]=m.useState(!0),[u,c]=m.useState(1),[d,h]=m.useState(0),[f,p]=Ra("usage_statistics_monthly"),[g,y]=m.useState(null),[b,x]=m.useState([]),v=()=>{const O=new Date;return{startDate:new Date(O.getFullYear(),O.getMonth()-6,1),endDate:O,tokenId:"",modelName:""}},[E,_]=m.useState(null),j=()=>{const O=E?E.getValues():{},R=O.startDate?new Date(O.startDate).toISOString().split("T")[0].substring(0,7):"",z=O.endDate?new Date(O.endDate).toISOString().split("T")[0].substring(0,7):"";return{start_date:R,end_date:z,token_id:O.tokenId||"",model_name:O.modelName||""}},F=O=>{s(O.items||[]),h(O.total||0),c(O.page||1),n(O.page_size||r),y(O.summary||null)},k=async(O=1,R=r,z={})=>{l(!0);try{const H=new URLSearchParams({p:O.toString(),size:R.toString(),...z}),B=Nr()?`/api/usage_statistics_monthly/?${H}`:`/api/usage_statistics_monthly/self?${H}`;console.log("Loading monthly statistics with params:",H.toString()),console.log("API endpoint:",B);const Y=await Se.get(B);console.log("API response:",Y.data);const{success:P,message:le,data:be}=Y.data;P?F(be):q(le)}catch(H){console.error("Failed to load monthly statistics:",H),q(e("加载数据失败"))}l(!1)},U=async()=>{try{const O=await Se.get("/api/token/"),{success:R,data:z}=O.data;if(R){const H=z.items.map(B=>({label:B.name,value:B.id}));x(H)}}catch(O){console.error("Failed to load tokens:",O)}},W=async(O=u)=>{const R=j();await k(O,r,R)},K=async()=>{const O=j();await k(1,r,O)},$=()=>{E&&(E.setValues(v()),k(1,r))};return m.useEffect(()=>{console.log("Component mounted, user is admin:",Nr()),k(1),U()},[r]),a.jsxs("div",{className:"space-y-4",children:[!1,g&&a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex items-center mb-4",children:[a.jsx(Vv,{className:"mr-2 text-blue-500",size:20}),a.jsx(Wo,{heading:5,className:"m-0",children:e("统计摘要")})]}),a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{span:6,children:a.jsxs("div",{className:"statistic-card",children:[a.jsx(vr,{type:"tertiary",size:"small",children:e("总请求数")}),a.jsx(Wo,{heading:3,style:{color:"#3f6600",margin:"4px 0 0 0"},children:g.total_requests})]})}),a.jsx(_e,{span:6,children:a.jsxs("div",{className:"statistic-card",children:[a.jsx(vr,{type:"tertiary",size:"small",children:e("成功请求数")}),a.jsx(Wo,{heading:3,style:{color:"#52c41a",margin:"4px 0 0 0"},children:g.successful_requests})]})}),a.jsx(_e,{span:6,children:a.jsxs("div",{className:"statistic-card",children:[a.jsx(vr,{type:"tertiary",size:"small",children:e("成功率")}),a.jsxs(Wo,{heading:3,style:{color:g.success_rate>=95?"#52c41a":"#fa8c16",margin:"4px 0 0 0"},children:[g.success_rate.toFixed(1),"%"]})]})}),a.jsx(_e,{span:6,children:a.jsxs("div",{className:"statistic-card",children:[a.jsx(vr,{type:"tertiary",size:"small",children:e("总额度消耗")}),a.jsx(Wo,{heading:3,style:{color:"#1890ff",margin:"4px 0 0 0"},children:Tt(g.total_quota)})]})})]})]}),a.jsx(Le,{className:"!rounded-2xl shadow-sm border-0",children:a.jsxs(M,{getFormApi:O=>_(O),initValues:v(),onSubmit:K,layout:"horizontal",className:"search-form",children:[a.jsxs(Ge,{gutter:16,children:[a.jsx(_e,{span:6,children:a.jsx(M.DatePicker,{field:"startDate",label:e("开始月份"),style:{width:"100%"},placeholder:e("请选择开始月份"),picker:"month"})}),a.jsx(_e,{span:6,children:a.jsx(M.DatePicker,{field:"endDate",label:e("结束月份"),style:{width:"100%"},placeholder:e("请选择结束月份"),picker:"month"})}),a.jsx(_e,{span:6,children:a.jsx(M.Select,{field:"tokenId",label:e("令牌"),style:{width:"100%"},placeholder:e("请选择令牌"),optionList:b,showClear:!0,filter:!0})}),a.jsx(_e,{span:6,children:a.jsx(M.Input,{field:"modelName",label:e("模型名称"),style:{width:"100%"},placeholder:e("请输入模型名称"),showClear:!0})})]}),a.jsxs("div",{className:"flex justify-end mt-4 gap-2",children:[a.jsx(X,{type:"primary",htmlType:"submit",icon:a.jsx(Cr,{}),loading:o,children:e("搜索")}),a.jsx(X,{icon:a.jsx(Nh,{}),onClick:$,children:e("重置")})]})]})}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0",children:[a.jsxs("div",{className:"flex justify-between items-center mb-4",children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx(Wo,{heading:5,className:"m-0",children:e("用量月统计")}),a.jsxs(vr,{type:"tertiary",className:"ml-2",children:["(",e("按月份、令牌、模型分组汇总"),")"]})]}),a.jsx("div",{className:"flex items-center gap-2",children:a.jsx(X,{icon:a.jsx(Nh,{}),onClick:()=>W(),loading:o,children:e("刷新")})})]}),a.jsx(Mr,{columns:t,dataSource:i,empty:i.length===0&&!o?a.jsx("div",{className:"text-center py-8",children:a.jsx(vr,{type:"tertiary",children:e(d===0?"暂无统计数据,请先发起API请求或调整筛选条件":"暂无数据")})}):void 0,pagination:{currentPage:u,pageSize:r,total:d,showSizeChanger:!0,showQuickJumper:!0,showTotal:(O,R)=>e("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:R[0],end:R[1],total:O}),onPageChange:O=>{c(O),W(O)},onPageSizeChange:O=>{n(O),c(1),k(1,O,j())}},loading:o,size:f?"small":"default",rowKey:"id",scroll:{x:1200}})]})]})},X0e=()=>a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx(Z0e,{})});function pF(e){const[t,r]=m.useState([]),[n,i]=m.useState(""),[s,o]=m.useState(!0);return m.useEffect(()=>{(async()=>{const u=await kue();u.length===0&&(q("当前没有可用的启用令牌,请确认是否有令牌处于启用状态!"),setTimeout(()=>{window.location.href="/console/token"},1500)),r(u),o(!1);const c=Oue();i(c)})()},[]),{keys:t,serverAddress:n,isLoading:s}}const J0e=()=>{const{t:e}=Ze(),{id:t}=HB(),{keys:r,serverAddress:n,isLoading:i}=pF(),s=l=>{if(!n||!l)return"";let u="";if(t){let c=localStorage.getItem("chats");if(c&&(c=JSON.parse(c),Array.isArray(c)&&c.length>0))for(let d in c[t])u=c[t][d],u=u.replaceAll("{address}",encodeURIComponent(n)),u=u.replaceAll("{key}","sk-"+l)}return u},o=r.length>0?s(r[0]):"";return!i&&o?a.jsx("iframe",{src:o,style:{width:"100%",height:"calc(100vh - 64px)",border:"none",marginTop:"64px"},title:"Token Frame",allow:"camera;microphone"}):a.jsx("div",{className:"fixed inset-0 w-screen h-screen flex items-center justify-center bg-white/80 z-[1000] mt-[64px]",children:a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx(Dt,{size:"large",spinning:!0,tip:null}),a.jsx("span",{className:"whitespace-nowrap mt-2 text-center",style:{color:"var(--semi-color-primary)"},children:e("正在跳转...")})]})})},Q0e=()=>{const{keys:e,chatLink:t,serverAddress:r,isLoading:n}=pF(),i=s=>!t||!r||!s?"":`${t}/#/?settings={"key":"sk-${s}","url":"${encodeURIComponent(r)}"}`;if(e.length>0){const s=i(e[0]);s&&(window.location.href=s)}return a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx("h3",{children:"正在加载,请稍候..."})})},{Text:e1e}=Ie,hx=["amber","blue","cyan","green","grey","indigo","light-blue","lime","orange","pink","purple","red","teal","violet","yellow"],Vt={SUBMIT_TIME:"submit_time",DURATION:"duration",CHANNEL:"channel",TYPE:"type",TASK_ID:"task_id",SUBMIT_RESULT:"submit_result",TASK_STATUS:"task_status",PROGRESS:"progress",IMAGE:"image",PROMPT:"prompt",PROMPT_EN:"prompt_en",FAIL_REASON:"fail_reason"},t1e=()=>{const{t:e}=Ze(),[t,r]=m.useState(!1),[n,i]=m.useState(""),[s,o]=m.useState({}),[l,u]=m.useState(!1),c=Nr(),[d,h]=Ra("mjLogs");m.useEffect(()=>{const ae=localStorage.getItem("mj-logs-table-columns");if(ae)try{const we=JSON.parse(ae),ke={...f(),...we};o(ke)}catch(we){console.error("Failed to parse saved column preferences",we),p()}else p()},[]);const f=()=>({[Vt.SUBMIT_TIME]:!0,[Vt.DURATION]:!0,[Vt.CHANNEL]:c,[Vt.TYPE]:!0,[Vt.TASK_ID]:!0,[Vt.SUBMIT_RESULT]:c,[Vt.TASK_STATUS]:!0,[Vt.PROGRESS]:!0,[Vt.IMAGE]:!0,[Vt.PROMPT]:!0,[Vt.PROMPT_EN]:!0,[Vt.FAIL_REASON]:!0}),p=()=>{const ae=f();o(ae),localStorage.setItem("mj-logs-table-columns",JSON.stringify(ae))},g=(ae,we)=>{const ne={...s,[ae]:we};o(ne)},y=ae=>{const we=Object.keys(Vt).map(ke=>Vt[ke]),ne={};we.forEach(ke=>{(ke===Vt.CHANNEL||ke===Vt.SUBMIT_RESULT)&&!c?ne[ke]=!1:ne[ke]=ae}),o(ne)};m.useEffect(()=>{Object.keys(s).length>0&&localStorage.setItem("mj-logs-table-columns",JSON.stringify(s))},[s]);function b(ae){switch(ae){case"IMAGINE":return a.jsx(ye,{color:"blue",shape:"circle",prefixIcon:a.jsx(rF,{size:14}),children:e("绘图")});case"UPSCALE":return a.jsx(ye,{color:"orange",shape:"circle",prefixIcon:a.jsx(fue,{size:14}),children:e("放大")});case"VIDEO":return a.jsx(ye,{color:"orange",shape:"circle",prefixIcon:a.jsx(Video,{size:14}),children:e("视频")});case"EDITS":return a.jsx(ye,{color:"orange",shape:"circle",prefixIcon:a.jsx(Video,{size:14}),children:e("编辑")});case"VARIATION":return a.jsx(ye,{color:"purple",shape:"circle",prefixIcon:a.jsx(xh,{size:14}),children:e("变换")});case"HIGH_VARIATION":return a.jsx(ye,{color:"purple",shape:"circle",prefixIcon:a.jsx(xh,{size:14}),children:e("强变换")});case"LOW_VARIATION":return a.jsx(ye,{color:"purple",shape:"circle",prefixIcon:a.jsx(xh,{size:14}),children:e("弱变换")});case"PAN":return a.jsx(ye,{color:"cyan",shape:"circle",prefixIcon:a.jsx(dle,{size:14}),children:e("平移")});case"DESCRIBE":return a.jsx(ye,{color:"yellow",shape:"circle",prefixIcon:a.jsx(KS,{size:14}),children:e("图生文")});case"BLEND":return a.jsx(ye,{color:"lime",shape:"circle",prefixIcon:a.jsx(Hse,{size:14}),children:e("图混合")});case"UPLOAD":return a.jsx(ye,{color:"blue",shape:"circle",prefixIcon:a.jsx(a4,{size:14}),children:"上传文件"});case"SHORTEN":return a.jsx(ye,{color:"pink",shape:"circle",prefixIcon:a.jsx(nle,{size:14}),children:e("缩词")});case"REROLL":return a.jsx(ye,{color:"indigo",shape:"circle",prefixIcon:a.jsx(n4,{size:14}),children:e("重绘")});case"INPAINT":return a.jsx(ye,{color:"violet",shape:"circle",prefixIcon:a.jsx(ple,{size:14}),children:e("局部重绘-提交")});case"ZOOM":return a.jsx(ye,{color:"teal",shape:"circle",prefixIcon:a.jsx(Poe,{size:14}),children:e("变焦")});case"CUSTOM_ZOOM":return a.jsx(ye,{color:"teal",shape:"circle",prefixIcon:a.jsx(ule,{size:14}),children:e("自定义变焦-提交")});case"MODAL":return a.jsx(ye,{color:"green",shape:"circle",prefixIcon:a.jsx(ole,{size:14}),children:e("窗口处理")});case"SWAP_FACE":return a.jsx(ye,{color:"light-green",shape:"circle",prefixIcon:a.jsx(aF,{size:14}),children:e("换脸")});default:return a.jsx(ye,{color:"white",shape:"circle",prefixIcon:a.jsx(_i,{size:14}),children:e("未知")})}}function x(ae){switch(ae){case 1:return a.jsx(ye,{color:"green",shape:"circle",prefixIcon:a.jsx(Sl,{size:14}),children:e("已提交")});case 21:return a.jsx(ye,{color:"lime",shape:"circle",prefixIcon:a.jsx(ll,{size:14}),children:e("等待中")});case 22:return a.jsx(ye,{color:"orange",shape:"circle",prefixIcon:a.jsx(of,{size:14}),children:e("重复提交")});case 0:return a.jsx(ye,{color:"yellow",shape:"circle",prefixIcon:a.jsx(Doe,{size:14}),children:e("未提交")});default:return a.jsx(ye,{color:"white",shape:"circle",prefixIcon:a.jsx(_i,{size:14}),children:e("未知")})}}function v(ae){switch(ae){case"SUCCESS":return a.jsx(ye,{color:"green",shape:"circle",prefixIcon:a.jsx(Sl,{size:14}),children:e("成功")});case"NOT_START":return a.jsx(ye,{color:"grey",shape:"circle",prefixIcon:a.jsx(nF,{size:14}),children:e("未启动")});case"SUBMITTED":return a.jsx(ye,{color:"yellow",shape:"circle",prefixIcon:a.jsx(ll,{size:14}),children:e("队列中")});case"IN_PROGRESS":return a.jsx(ye,{color:"blue",shape:"circle",prefixIcon:a.jsx(tF,{size:14}),children:e("执行中")});case"FAILURE":return a.jsx(ye,{color:"red",shape:"circle",prefixIcon:a.jsx(sf,{size:14}),children:e("失败")});case"MODAL":return a.jsx(ye,{color:"yellow",shape:"circle",prefixIcon:a.jsx(Bg,{size:14}),children:e("窗口等待")});default:return a.jsx(ye,{color:"white",shape:"circle",prefixIcon:a.jsx(_i,{size:14}),children:e("未知")})}}const E=ae=>{const we=new Date(ae*1e3),ne=we.getFullYear(),ke=("0"+(we.getMonth()+1)).slice(-2),Be=("0"+we.getDate()).slice(-2),Ae=("0"+we.getHours()).slice(-2),Q=("0"+we.getMinutes()).slice(-2),he=("0"+we.getSeconds()).slice(-2);return`${ne}-${ke}-${Be} ${Ae}:${Q}:${he}`};function _(ae,we){if(!ae||!we)return"N/A";const ne=new Date(ae),Ae=((new Date(we)-ne)/1e3).toFixed(1),Q=Ae>60?"red":"green";return a.jsxs(ye,{color:Q,shape:"circle",prefixIcon:a.jsx(ll,{size:14}),children:[Ae," ",e("秒")]})}const j=[{key:Vt.SUBMIT_TIME,title:e("提交时间"),dataIndex:"submit_time",render:(ae,we,ne)=>a.jsx("div",{children:E(ae/1e3)})},{key:Vt.DURATION,title:e("花费时间"),dataIndex:"finish_time",render:(ae,we)=>_(we.submit_time,ae)},{key:Vt.CHANNEL,title:e("渠道"),dataIndex:"channel_id",className:Nr()?"tableShow":"tableHiddle",render:(ae,we,ne)=>c?a.jsx("div",{children:a.jsxs(ye,{color:hx[parseInt(ae)%hx.length],shape:"circle",prefixIcon:a.jsx(Pg,{size:14}),onClick:()=>{De(ae)},children:[" ",ae," "]})}):a.jsx(a.Fragment,{})},{key:Vt.TYPE,title:e("类型"),dataIndex:"action",render:(ae,we,ne)=>a.jsx("div",{children:b(ae)})},{key:Vt.TASK_ID,title:e("任务ID"),dataIndex:"mj_id",render:(ae,we,ne)=>a.jsx("div",{children:ae})},{key:Vt.SUBMIT_RESULT,title:e("提交结果"),dataIndex:"code",className:Nr()?"tableShow":"tableHiddle",render:(ae,we,ne)=>c?a.jsx("div",{children:x(ae)}):a.jsx(a.Fragment,{})},{key:Vt.TASK_STATUS,title:e("任务状态"),dataIndex:"status",className:Nr()?"tableShow":"tableHiddle",render:(ae,we,ne)=>a.jsx("div",{children:v(ae)})},{key:Vt.PROGRESS,title:e("进度"),dataIndex:"progress",render:(ae,we,ne)=>a.jsx("div",{children:a.jsx(s6,{stroke:we.status==="FAILURE"?"var(--semi-color-warning)":null,percent:ae?parseInt(ae.replace("%","")):0,showInfo:!0,"aria-label":"drawing progress",style:{minWidth:"160px"}})})},{key:Vt.IMAGE,title:e("结果图片"),dataIndex:"image_url",render:(ae,we,ne)=>ae?a.jsx(X,{size:"small",onClick:()=>{te(ae),P(!0)},children:e("查看图片")}):e("无")},{key:Vt.PROMPT,title:"Prompt",dataIndex:"prompt",render:(ae,we,ne)=>ae?a.jsx(Ie.Text,{ellipsis:{showTooltip:!0},style:{width:100},onClick:()=>{i(ae),r(!0)},children:ae}):e("无")},{key:Vt.PROMPT_EN,title:"PromptEn",dataIndex:"prompt_en",render:(ae,we,ne)=>ae?a.jsx(Ie.Text,{ellipsis:{showTooltip:!0},style:{width:100},onClick:()=>{i(ae),r(!0)},children:ae}):e("无")},{key:Vt.FAIL_REASON,title:e("失败原因"),dataIndex:"fail_reason",fixed:"right",render:(ae,we,ne)=>ae?a.jsx(Ie.Text,{ellipsis:{showTooltip:!0},style:{width:100},onClick:()=>{i(ae),r(!0)},children:ae}):e("无")}],F=()=>j.filter(ae=>s[ae.key]),[k,U]=m.useState([]),[W,K]=m.useState(!0),[$,O]=m.useState(1),[R,z]=m.useState(0),[H,B]=m.useState(un),[Y,P]=m.useState(!1),[le,be]=m.useState(!1),[V,te]=m.useState("");let de=new Date;const ee={channel_id:"",mj_id:"",dateRange:[_r(de.getTime()/1e3-2592e3),_r(de.getTime()/1e3+3600)]},[ie,G]=m.useState(null);m.useState({quota:0,token:0});const N=()=>{const ae=ie?ie.getValues():{};let we=_r(de.getTime()/1e3-2592e3),ne=_r(de.getTime()/1e3+3600);return ae.dateRange&&Array.isArray(ae.dateRange)&&ae.dateRange.length===2&&(we=ae.dateRange[0],ne=ae.dateRange[1]),{channel_id:ae.channel_id||"",mj_id:ae.mj_id||"",start_timestamp:we,end_timestamp:ne}},I=ae=>ae.map(we=>({...we,timestamp2string:_r(we.created_at),key:""+we.id})),T=ae=>{const we=I(ae.items||[]);U(we),z(ae.total||0),O(ae.page||1),B(ae.page_size||H)},J=async(ae=1,we=H)=>{K(!0);const{channel_id:ne,mj_id:ke,start_timestamp:Be,end_timestamp:Ae}=N();let Q=Date.parse(Be),he=Date.parse(Ae);const se=c?`/api/mj/?p=${ae}&page_size=${we}&channel_id=${ne}&mj_id=${ke}&start_timestamp=${Q}&end_timestamp=${he}`:`/api/mj/self/?p=${ae}&page_size=${we}&mj_id=${ke}&start_timestamp=${Q}&end_timestamp=${he}`,D=await Se.get(se),{success:ce,message:Ce,data:Te}=D.data;ce?T(Te):q(Ce),K(!1)},ve=ae=>{J(ae,H).then()},Z=async ae=>{localStorage.setItem("mj-page-size",ae+""),await J(1,ae)},ge=async()=>{await J(1,H)},De=async ae=>{await Qr(ae)?Pe(e("已复制:")+ae):Je.error({title:e("无法复制到剪贴板,请手动复制"),content:ae})};m.useEffect(()=>{const ae=parseInt(localStorage.getItem("mj-page-size"))||un;B(ae),J(1,ae).then()},[]),m.useEffect(()=>{localStorage.getItem("mj_notify_enabled")!=="true"&&be(!0)},[]);const Oe=()=>a.jsxs(Je,{title:e("列设置"),visible:l,onCancel:()=>u(!1),footer:a.jsxs("div",{className:"flex justify-end",children:[a.jsx(X,{onClick:()=>p(),children:e("重置")}),a.jsx(X,{onClick:()=>u(!1),children:e("取消")}),a.jsx(X,{onClick:()=>u(!1),children:e("确定")})]}),children:[a.jsx("div",{style:{marginBottom:20},children:a.jsx(Ln,{checked:Object.values(s).every(ae=>ae===!0),indeterminate:Object.values(s).some(ae=>ae===!0)&&!Object.values(s).every(ae=>ae===!0),onChange:ae=>y(ae.target.checked),children:e("全选")})}),a.jsx("div",{className:"flex flex-wrap max-h-96 overflow-y-auto rounded-lg p-4",style:{border:"1px solid var(--semi-color-border)"},children:j.map(ae=>!c&&(ae.key===Vt.CHANNEL||ae.key===Vt.SUBMIT_RESULT)?null:a.jsx("div",{className:"w-1/2 mb-4 pr-2",children:a.jsx(Ln,{checked:!!s[ae.key],onChange:we=>g(ae.key,we.target.checked),children:ae.title})},ae.key))})]});return a.jsxs(a.Fragment,{children:[Oe(),a.jsxs(ln,{children:[a.jsx(Le,{className:"!rounded-2xl mb-4",title:a.jsxs("div",{className:"flex flex-col w-full",children:[a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full",children:[a.jsxs("div",{className:"flex items-center text-orange-500 mb-2 md:mb-0",children:[a.jsx(o6,{className:"mr-2"}),W?a.jsx(Br.Title,{style:{width:300,marginBottom:0,marginTop:0}}):a.jsx(e1e,{children:e(c&&le?"当前未开启Midjourney回调,部分项目可能无法获得绘图结果,可在运营设置中开启。":"Midjourney 任务记录")})]}),a.jsx(X,{type:"tertiary",className:"w-full md:w-auto",onClick:()=>h(!d),size:"small",children:e(d?"自适应列表":"紧凑列表")})]}),a.jsx(Ar,{margin:"12px"}),a.jsx(M,{initValues:ee,getFormApi:ae=>G(ae),onSubmit:ge,allowEmpty:!0,autoComplete:"off",layout:"vertical",trigger:"change",stopValidateWithError:!1,children:a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[a.jsx("div",{className:"col-span-1 lg:col-span-2",children:a.jsx(M.DatePicker,{field:"dateRange",className:"w-full",type:"dateTimeRange",placeholder:[e("开始时间"),e("结束时间")],showClear:!0,pure:!0,size:"small"})}),a.jsx(M.Input,{field:"mj_id",prefix:a.jsx(Cr,{}),placeholder:e("任务 ID"),showClear:!0,pure:!0,size:"small"}),c&&a.jsx(M.Input,{field:"channel_id",prefix:a.jsx(Cr,{}),placeholder:e("渠道 ID"),showClear:!0,pure:!0,size:"small"})]}),a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("div",{}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(X,{type:"tertiary",htmlType:"submit",loading:W,size:"small",children:e("查询")}),a.jsx(X,{type:"tertiary",onClick:()=>{ie&&(ie.reset(),setTimeout(()=>{ge()},100))},size:"small",children:e("重置")}),a.jsx(X,{type:"tertiary",onClick:()=>u(!0),size:"small",children:e("列设置")})]})]})]})})]}),shadows:"always",bordered:!1,children:a.jsx(Mr,{columns:d?F().map(({fixed:ae,...we})=>we):F(),dataSource:k,rowKey:"key",loading:W,scroll:d?void 0:{x:"max-content"},className:"rounded-xl overflow-hidden",size:"middle",empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:e("搜索无结果"),style:{padding:30}}),pagination:{formatPageText:ae=>e("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:ae.currentStart,end:ae.currentEnd,total:R}),currentPage:$,pageSize:H,total:R,pageSizeOptions:[10,20,50,100],showSizeChanger:!0,onPageSizeChange:Z,onPageChange:ve}})}),a.jsx(Je,{visible:t,onOk:()=>r(!1),onCancel:()=>r(!1),closable:null,bodyStyle:{height:"400px",overflow:"auto"},width:800,children:a.jsx("p",{style:{whiteSpace:"pre-line"},children:n})}),a.jsx(a6,{src:V,visible:Y,onVisibleChange:ae=>P(ae)})]})]})},r1e=()=>a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx(t1e,{})}),n1e=()=>{const{t:e}=Ze(),[t,r]=m.useState([]),n=m.useRef({isComposition:!1}),[i,s]=m.useState([]),[o,l]=m.useState(""),[u,c]=m.useState(!1),[d,h]=m.useState("default"),[f,p]=m.useState("all"),[g,y]=m.useState(10),[b,x]=m.useState("USD"),[v,E]=m.useState(!1),[_,j]=m.useState("M"),[F]=m.useContext(Ji),k=m.useMemo(()=>{var ne;return((ne=F==null?void 0:F.status)==null?void 0:ne.price)??1},[F]),U=m.useMemo(()=>{var ne;return((ne=F==null?void 0:F.status)==null?void 0:ne.usd_exchange_rate)??k},[F,k]),W=m.useMemo(()=>({onChange:(ne,ke)=>{s(ne)}}),[]),K=ne=>{if(n.current.isComposition)return;r(ne?[ne]:[])},$=()=>{n.current.isComposition=!0},O=ne=>{n.current.isComposition=!1;const ke=ne.target.value;r(ke?[ke]:[])};function R(ne){switch(ne){case 1:return a.jsx(ye,{color:"teal",shape:"circle",children:e("按次计费")});case 0:return a.jsx(ye,{color:"violet",shape:"circle",children:e("按量计费")});default:return e("未知")}}function z(ne){return ne?a.jsx(l6,{content:a.jsx("div",{style:{padding:8},children:e("您的分组可以使用该模型")}),position:"top",className:"bg-green-50",children:a.jsx(Lf,{style:{color:"rgb(22 163 74)"},size:"large"})},ne):null}function H(ne){return!ne||ne.length===0?null:a.jsx(pt,{wrap:!0,children:ne.map((ke,Be)=>a.jsx(ye,{color:To(ke),shape:"circle",children:ke},ke))})}const B=ne=>{let ke=ne;return v&&(ke=ne*k/U),b==="CNY"?`¥${(ke*U).toFixed(3)}`:`$${ke.toFixed(3)}`},Y=[{title:e("可用性"),dataIndex:"available",render:(ne,ke,Be)=>z(ke.enable_groups.includes(d)),sorter:(ne,ke)=>{const Be=ne.enable_groups.includes(d),Ae=ke.enable_groups.includes(d);return Number(Be)-Number(Ae)},defaultSortOrder:"descend"},{title:e("可用端点类型"),dataIndex:"supported_endpoint_types",render:(ne,ke,Be)=>H(ne)},{title:e("模型名称"),dataIndex:"model_name",render:(ne,ke,Be)=>as(ne,{onClick:()=>{J(ne)}}),onFilter:(ne,ke)=>ke.model_name.toLowerCase().includes(ne.toLowerCase()),filteredValue:t},{title:e("计费类型"),dataIndex:"quota_type",render:(ne,ke,Be)=>R(parseInt(ne)),sorter:(ne,ke)=>ne.quota_type-ke.quota_type},{title:e("可用分组"),dataIndex:"enable_groups",render:(ne,ke,Be)=>a.jsx(pt,{wrap:!0,children:ne.map(Ae=>{if(ie[Ae])return Ae===d?a.jsx(ye,{color:"blue",shape:"circle",prefixIcon:a.jsx(Lf,{}),children:Ae}):a.jsx(ye,{color:"blue",shape:"circle",onClick:()=>{h(Ae),nr(e("当前查看的分组为:{{group}},倍率为:{{ratio}}",{group:Ae,ratio:de[Ae]}))},className:"cursor-pointer hover:opacity-80 transition-opacity",children:Ae})})})},{title:()=>a.jsxs("div",{className:"flex items-center space-x-1",children:[a.jsx("span",{children:e("倍率")}),a.jsx(Gt,{content:e("倍率是为了方便换算不同价格的模型"),children:a.jsx(u6,{className:"text-blue-500 cursor-pointer",onClick:()=>{l("/ratio.png"),c(!0)}})})]}),dataIndex:"model_ratio",render:(ne,ke,Be)=>{let Ae=ne,Q=parseFloat(ke.completion_ratio.toFixed(3));return Ae=a.jsxs("div",{className:"space-y-1",children:[a.jsxs("div",{className:"text-gray-700",children:[e("模型倍率"),":",ke.quota_type===0?ne:e("无")]}),a.jsxs("div",{className:"text-gray-700",children:[e("补全倍率"),":",ke.quota_type===0?Q:e("无")]}),a.jsxs("div",{className:"text-gray-700",children:[e("分组倍率"),":",de[d]]})]}),Ae}},{title:a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx("span",{children:e("模型价格")}),a.jsx(Jn,{checked:_==="K",onChange:ne=>j(ne?"K":"M"),checkedText:"K",uncheckedText:"M"})]}),dataIndex:"model_price",render:(ne,ke,Be)=>{let Ae=ne;if(ke.quota_type===0){let Q=ke.model_ratio*2*de[d],he=ke.model_ratio*ke.completion_ratio*2*de[d];const se=_==="K"?1e3:1,D=_==="K"?"K":"M";let ce=B(Q),Ce=B(he);const Te=se,Qe=parseFloat(ce.replace(/[^0-9.]/g,""))/Te,Fe=parseFloat(Ce.replace(/[^0-9.]/g,""))/Te;ce=`${b==="CNY"?"¥":"$"}${Qe.toFixed(3)}`,Ce=`${b==="CNY"?"¥":"$"}${Fe.toFixed(3)}`,Ae=a.jsxs("div",{className:"space-y-1",children:[a.jsxs("div",{className:"text-gray-700",children:[e("提示")," ",ce," / 1",D," tokens"]}),a.jsxs("div",{className:"text-gray-700",children:[e("补全")," ",Ce," / 1",D," tokens"]})]})}else{let Q=parseFloat(ne)*de[d],he=B(Q);Ae=a.jsxs("div",{className:"text-gray-700",children:[e("模型价格"),":",he]})}return Ae}}],[P,le]=m.useState([]),[be,V]=m.useState(!0),[te]=m.useContext(Xi),[de,ee]=m.useState({}),[ie,G]=m.useState({}),N=(ne,ke)=>{for(let Be=0;Be<ne.length;Be++)ne[Be].key=ne[Be].model_name,ne[Be].group_ratio=ke[ne[Be].model_name];ne.sort((Be,Ae)=>Be.quota_type-Ae.quota_type),ne.sort((Be,Ae)=>Be.model_name.startsWith("gpt")&&!Ae.model_name.startsWith("gpt")?-1:!Be.model_name.startsWith("gpt")&&Ae.model_name.startsWith("gpt")?1:Be.model_name.localeCompare(Ae.model_name)),le(ne)},I=async()=>{V(!0);const ke=await Se.get("/api/pricing"),{success:Be,message:Ae,data:Q,group_ratio:he,usable_group:se}=ke.data;Be?(ee(he),G(se),h(te.user?te.user.group:"default"),N(Q,he)):q(Ae),V(!1)},T=async()=>{await I()},J=async ne=>{await Qr(ne)?Pe(e("已复制:")+ne):Je.error({title:e("无法复制到剪贴板,请手动复制"),content:ne})};m.useEffect(()=>{T().then()},[]);const ve=uo(e),Z=m.useMemo(()=>{const ne={};return P.length>0&&(ne.all=P.length,Object.entries(ve).forEach(([ke,Be])=>{ke!=="all"&&(ne[ke]=P.filter(Ae=>Be.filter(Ae)).length)})),ne},[P,ve]),ge=m.useMemo(()=>P.length?Object.entries(ve).filter(([ne,ke])=>ne==="all"?!0:P.some(Be=>ke.filter(Be))).map(([ne])=>ne):["all"],[P]),De=()=>a.jsx(Pn,{activeKey:f,type:"card",collapsible:!0,onChange:ne=>p(ne),className:"mt-2",children:Object.entries(ve).filter(([ne])=>ge.includes(ne)).map(([ne,ke])=>{const Be=Z[ne]||0;return a.jsx(Zr,{tab:a.jsxs("span",{className:"flex items-center gap-2",children:[ke.icon&&a.jsx("span",{className:"w-4 h-4",children:ke.icon}),ke.label,a.jsx(ye,{color:f===ne?"red":"grey",shape:"circle",children:Be})]}),itemKey:ne},ne)})}),Oe=m.useMemo(()=>{let ne=P;if(f!=="all"&&(ne=ne.filter(ke=>ve[f].filter(ke))),t.length>0){const ke=t[0].toLowerCase();ne=ne.filter(Be=>Be.model_name.toLowerCase().includes(ke))}return ne},[f,P,t]),ae=m.useMemo(()=>a.jsx(Le,{className:"!rounded-xl mb-6",bordered:!1,children:a.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[a.jsx("div",{className:"flex-1 min-w-[200px]",children:a.jsx(Lt,{prefix:a.jsx(Cr,{}),placeholder:e("模糊搜索模型名称"),onCompositionStart:$,onCompositionEnd:O,onChange:K,showClear:!0})}),a.jsx(X,{theme:"light",type:"primary",icon:a.jsx(I2,{}),onClick:()=>J(i),disabled:i.length===0,className:"!bg-blue-500 hover:!bg-blue-600 text-white",children:e("复制选中模型")}),a.jsxs(pt,{align:"center",children:[a.jsx("span",{children:e("以充值价格显示")}),a.jsx(Jn,{checked:v,onChange:E,size:"small"}),v&&a.jsxs(vn,{value:b,onChange:x,size:"small",style:{width:100},children:[a.jsx(vn.Option,{value:"USD",children:"USD ($)"}),a.jsx(vn.Option,{value:"CNY",children:"CNY (¥)"})]})]})]})}),[i,e,v,b]),we=m.useMemo(()=>a.jsx(Le,{className:"!rounded-xl overflow-hidden",bordered:!1,children:a.jsx(Mr,{columns:Y,dataSource:Oe,loading:be,rowSelection:W,className:"custom-table",empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:e("搜索无结果"),style:{padding:30}}),pagination:{defaultPageSize:10,pageSize:g,showSizeChanger:!0,pageSizeOptions:[10,20,50,100],formatPageText:ne=>e("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:ne.currentStart,end:ne.currentEnd,total:Oe.length}),onPageSizeChange:ne=>y(ne)}})}),[Oe,be,Y,W,g,e]);return a.jsx("div",{className:"bg-gray-50",children:a.jsx(ln,{children:a.jsx(ln.Content,{children:a.jsx("div",{className:"flex justify-center",children:a.jsx("div",{className:"w-full",children:a.jsxs(Le,{bordered:!1,className:"!rounded-2xl shadow-lg border-0",children:[a.jsx(Le,{className:"!rounded-2xl !border-0 !shadow-md overflow-hidden mb-6",style:{background:"linear-gradient(135deg, #6366f1 0%, #8b5cf6 25%, #a855f7 50%, #c084fc 75%, #d8b4fe 100%)",position:"relative"},bodyStyle:{padding:0},children:a.jsxs("div",{className:"relative p-6 sm:p-8",style:{color:"white"},children:[a.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start lg:justify-between gap-4 lg:gap-6",children:[a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-10 h-10 sm:w-12 sm:h-12 rounded-xl bg-white/10 flex items-center justify-center mr-3 sm:mr-4",children:a.jsx(NB,{size:"extra-large",className:"text-white"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"text-base sm:text-lg font-semibold mb-1 sm:mb-2",children:e("模型定价")}),a.jsx("div",{className:"text-sm text-white/80",children:te.user?a.jsxs("div",{className:"flex items-center",children:[a.jsx(Lf,{className:"mr-1.5 flex-shrink-0",size:"small"}),a.jsxs("span",{className:"truncate",children:[e("当前分组"),": ",te.user.group,",",e("倍率"),": ",de[te.user.group]]})]}):a.jsxs("div",{className:"flex items-center",children:[a.jsx(Bg,{size:14,className:"mr-1.5 flex-shrink-0"}),a.jsxs("span",{className:"truncate",children:[e("未登录,使用默认分组倍率:"),de.default]})]})})]})]}),a.jsxs("div",{className:"grid grid-cols-3 gap-2 sm:gap-3 mt-2 lg:mt-0",children:[a.jsxs("div",{className:"text-center px-2 py-2 sm:px-3 sm:py-2.5 bg-white/10 rounded-lg backdrop-blur-sm hover:bg-white/20 transition-colors duration-200",style:{backdropFilter:"blur(10px)"},children:[a.jsx("div",{className:"text-xs text-white/70 mb-0.5",children:e("分组倍率")}),a.jsxs("div",{className:"text-sm sm:text-base font-semibold",children:[de[d]||"1.0","x"]})]}),a.jsxs("div",{className:"text-center px-2 py-2 sm:px-3 sm:py-2.5 bg-white/10 rounded-lg backdrop-blur-sm hover:bg-white/20 transition-colors duration-200",style:{backdropFilter:"blur(10px)"},children:[a.jsx("div",{className:"text-xs text-white/70 mb-0.5",children:e("可用模型")}),a.jsx("div",{className:"text-sm sm:text-base font-semibold",children:P.filter(ne=>ne.enable_groups.includes(d)).length})]}),a.jsxs("div",{className:"text-center px-2 py-2 sm:px-3 sm:py-2.5 bg-white/10 rounded-lg backdrop-blur-sm hover:bg-white/20 transition-colors duration-200",style:{backdropFilter:"blur(10px)"},children:[a.jsx("div",{className:"text-xs text-white/70 mb-0.5",children:e("计费类型")}),a.jsx("div",{className:"text-sm sm:text-base font-semibold",children:"2"})]})]})]}),a.jsx("div",{className:"mt-4 sm:mt-5",children:a.jsx("div",{className:"flex items-start",children:a.jsxs("div",{className:"w-full flex items-start space-x-2 px-3 py-2 sm:px-4 sm:py-2.5 rounded-lg text-xs sm:text-sm",style:{backgroundColor:"rgba(255, 255, 255, 0.2)",color:"white",backdropFilter:"blur(10px)"},children:[a.jsx(Gv,{className:"flex-shrink-0 mt-0.5",size:"small"}),a.jsx("span",{children:e("按量计费费用 = 分组倍率 × 模型倍率 × (提示token数 + 补全token数 × 补全倍率)/ 500000 (单位:美元)")})]})})}),a.jsx("div",{className:"absolute top-0 left-0 w-full h-2 bg-gradient-to-r from-yellow-400 via-orange-400 to-red-400",style:{opacity:.6}})]})}),a.jsxs("div",{className:"mb-6",children:[De(),ae,we]}),a.jsx(a6,{src:o,visible:u,onVisibleChange:ne=>c(ne)})]})})})})})})},i1e=()=>a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx(n1e,{})}),{Text:a1e}=Ie,fx=["amber","blue","cyan","green","grey","indigo","light-blue","lime","orange","pink","purple","red","teal","violet","yellow"],lr={SUBMIT_TIME:"submit_time",FINISH_TIME:"finish_time",DURATION:"duration",CHANNEL:"channel",PLATFORM:"platform",TYPE:"type",TASK_ID:"task_id",TASK_STATUS:"task_status",PROGRESS:"progress",FAIL_REASON:"fail_reason",RESULT_URL:"result_url"},px=e=>{const t=new Date(e*1e3),r=t.getFullYear(),n=("0"+(t.getMonth()+1)).slice(-2),i=("0"+t.getDate()).slice(-2),s=("0"+t.getHours()).slice(-2),o=("0"+t.getMinutes()).slice(-2),l=("0"+t.getSeconds()).slice(-2);return`${r}-${n}-${i} ${s}:${o}:${l}`};function s1e(e,t){if(!e||!t)return"N/A";const r=t-e,n=r>60?"red":"green";return a.jsxs(ye,{color:n,prefixIcon:a.jsx(ll,{size:14}),children:[r," 秒"]})}const o1e=()=>{const{t:e}=Ze(),[t,r]=m.useState(!1),[n,i]=m.useState(""),[s,o]=m.useState({}),[l,u]=m.useState(!1),c=Nr(),[d,h]=m.useState(un);m.useEffect(()=>{const T=localStorage.getItem("task-logs-table-columns");if(T)try{const J=JSON.parse(T),Z={...f(),...J};o(Z)}catch(J){console.error("Failed to parse saved column preferences",J),p()}else p()},[]);const f=()=>({[lr.SUBMIT_TIME]:!0,[lr.FINISH_TIME]:!0,[lr.DURATION]:!0,[lr.CHANNEL]:c,[lr.PLATFORM]:!0,[lr.TYPE]:!0,[lr.TASK_ID]:!0,[lr.TASK_STATUS]:!0,[lr.PROGRESS]:!0,[lr.FAIL_REASON]:!0,[lr.RESULT_URL]:!0}),p=()=>{const T=f();o(T),localStorage.setItem("task-logs-table-columns",JSON.stringify(T))},g=(T,J)=>{const ve={...s,[T]:J};o(ve)},y=T=>{const J=Object.keys(lr).map(Z=>lr[Z]),ve={};J.forEach(Z=>{Z===lr.CHANNEL&&!c?ve[Z]=!1:ve[Z]=T}),o(ve)};m.useEffect(()=>{Object.keys(s).length>0&&localStorage.setItem("task-logs-table-columns",JSON.stringify(s))},[s]);const b=T=>{switch(T){case"MUSIC":return a.jsx(ye,{color:"grey",shape:"circle",prefixIcon:a.jsx(T9,{size:14}),children:e("生成音乐")});case"LYRICS":return a.jsx(ye,{color:"pink",shape:"circle",prefixIcon:a.jsx(KS,{size:14}),children:e("生成歌词")});case J3:return a.jsx(ye,{color:"blue",shape:"circle",prefixIcon:a.jsx(i4,{size:14}),children:e("图生视频")});case Q3:return a.jsx(ye,{color:"blue",shape:"circle",prefixIcon:a.jsx(i4,{size:14}),children:e("文生视频")});default:return a.jsx(ye,{color:"white",shape:"circle",prefixIcon:a.jsx(_i,{size:14}),children:e("未知")})}},x=T=>{switch(T){case"suno":return a.jsx(ye,{color:"green",shape:"circle",prefixIcon:a.jsx(T9,{size:14}),children:"Suno"});case"kling":return a.jsx(ye,{color:"orange",shape:"circle",prefixIcon:a.jsx(M9,{size:14}),children:"Kling"});case"jimeng":return a.jsx(ye,{color:"purple",shape:"circle",prefixIcon:a.jsx(M9,{size:14}),children:"Jimeng"});default:return a.jsx(ye,{color:"white",shape:"circle",prefixIcon:a.jsx(_i,{size:14}),children:e("未知")})}},v=T=>{switch(T){case"SUCCESS":return a.jsx(ye,{color:"green",shape:"circle",prefixIcon:a.jsx(Sl,{size:14}),children:e("成功")});case"NOT_START":return a.jsx(ye,{color:"grey",shape:"circle",prefixIcon:a.jsx(nF,{size:14}),children:e("未启动")});case"SUBMITTED":return a.jsx(ye,{color:"yellow",shape:"circle",prefixIcon:a.jsx(ll,{size:14}),children:e("队列中")});case"IN_PROGRESS":return a.jsx(ye,{color:"blue",shape:"circle",prefixIcon:a.jsx(ble,{size:14}),children:e("执行中")});case"FAILURE":return a.jsx(ye,{color:"red",shape:"circle",prefixIcon:a.jsx(sf,{size:14}),children:e("失败")});case"QUEUED":return a.jsx(ye,{color:"orange",shape:"circle",prefixIcon:a.jsx(Koe,{size:14}),children:e("排队中")});case"UNKNOWN":return a.jsx(ye,{color:"white",shape:"circle",prefixIcon:a.jsx(_i,{size:14}),children:e("未知")});case"":return a.jsx(ye,{color:"grey",shape:"circle",prefixIcon:a.jsx(tF,{size:14}),children:e("正在提交")});default:return a.jsx(ye,{color:"white",shape:"circle",prefixIcon:a.jsx(_i,{size:14}),children:e("未知")})}},E=[{key:lr.SUBMIT_TIME,title:e("提交时间"),dataIndex:"submit_time",render:(T,J,ve)=>a.jsx("div",{children:T?px(T):"-"})},{key:lr.FINISH_TIME,title:e("结束时间"),dataIndex:"finish_time",render:(T,J,ve)=>a.jsx("div",{children:T?px(T):"-"})},{key:lr.DURATION,title:e("花费时间"),dataIndex:"finish_time",render:(T,J)=>a.jsx(a.Fragment,{children:T?s1e(J.submit_time,T):"-"})},{key:lr.CHANNEL,title:e("渠道"),dataIndex:"channel_id",className:c?"tableShow":"tableHiddle",render:(T,J,ve)=>c?a.jsx("div",{children:a.jsx(ye,{color:fx[parseInt(T)%fx.length],size:"large",shape:"circle",prefixIcon:a.jsx(Pg,{size:14}),onClick:()=>{N(T)},children:T})}):a.jsx(a.Fragment,{})},{key:lr.PLATFORM,title:e("平台"),dataIndex:"platform",render:(T,J,ve)=>a.jsx("div",{children:x(T)})},{key:lr.TYPE,title:e("类型"),dataIndex:"action",render:(T,J,ve)=>a.jsx("div",{children:b(T)})},{key:lr.TASK_ID,title:e("任务ID"),dataIndex:"task_id",render:(T,J,ve)=>a.jsx(Ie.Text,{ellipsis:{showTooltip:!0},onClick:()=>{i(JSON.stringify(J,null,2)),r(!0)},children:a.jsx("div",{children:T})})},{key:lr.TASK_STATUS,title:e("任务状态"),dataIndex:"status",render:(T,J,ve)=>a.jsx("div",{children:v(T)})},{key:lr.PROGRESS,title:e("进度"),dataIndex:"progress",render:(T,J,ve)=>a.jsx("div",{children:isNaN(T==null?void 0:T.replace("%",""))?T||"-":a.jsx(s6,{stroke:J.status==="FAILURE"?"var(--semi-color-warning)":null,percent:T?parseInt(T.replace("%","")):0,showInfo:!0,"aria-label":"task progress",style:{minWidth:"160px"}})})},{key:lr.FAIL_REASON,title:e("详情"),dataIndex:"fail_reason",fixed:"right",render:(T,J,ve)=>{const Z=J.action===J3||J.action===Q3,ge=J.status==="SUCCESS",De=typeof T=="string"&&/^https?:\/\//.test(T);return ge&&Z&&De?a.jsx("a",{href:T,target:"_blank",rel:"noopener noreferrer",children:e("点击预览视频")}):T?a.jsx(Ie.Text,{ellipsis:{showTooltip:!0},style:{width:100},onClick:()=>{i(T),r(!0)},children:T}):e("无")}}],_=()=>E.filter(T=>s[T.key]),[j,F]=m.useState(1),[k,U]=m.useState(0),[W,K]=m.useState([]),[$,O]=m.useState(!1),[R,z]=Ra("taskLogs");m.useEffect(()=>{const T=parseInt(localStorage.getItem("task-page-size"))||un;h(T),de(1,T).then()},[]);let H=new Date,B=new Date(H.getFullYear(),H.getMonth(),H.getDate());const Y={channel_id:"",task_id:"",dateRange:[_r(B.getTime()/1e3),_r(H.getTime()/1e3+3600)]},[P,le]=m.useState(null),be=()=>{const T=P?P.getValues():{};let J=_r(B.getTime()/1e3),ve=_r(H.getTime()/1e3+3600);return T.dateRange&&Array.isArray(T.dateRange)&&T.dateRange.length===2&&(J=T.dateRange[0],ve=T.dateRange[1]),{channel_id:T.channel_id||"",task_id:T.task_id||"",start_timestamp:J,end_timestamp:ve}},V=T=>T.map(J=>({...J,timestamp2string:_r(J.created_at),key:""+J.id})),te=T=>{const J=V(T.items||[]);K(J),U(T.total||0),F(T.page||1),h(T.page_size||d)},de=async(T=1,J=d)=>{O(!0);const{channel_id:ve,task_id:Z,start_timestamp:ge,end_timestamp:De}=be();let Oe=parseInt(Date.parse(ge)/1e3),ae=parseInt(Date.parse(De)/1e3),we=c?`/api/task/?p=${T}&page_size=${J}&channel_id=${ve}&task_id=${Z}&start_timestamp=${Oe}&end_timestamp=${ae}`:`/api/task/self?p=${T}&page_size=${J}&task_id=${Z}&start_timestamp=${Oe}&end_timestamp=${ae}`;const ne=await Se.get(we),{success:ke,message:Be,data:Ae}=ne.data;ke?te(Ae):q(Be),O(!1)},ee=T=>{de(T,d).then()},ie=async T=>{localStorage.setItem("task-page-size",T+""),await de(1,T)},G=async()=>{await de(1,d)},N=async T=>{await Qr(T)?Pe(e("已复制:")+T):Je.error({title:e("无法复制到剪贴板,请手动复制"),content:T})},I=()=>a.jsxs(Je,{title:e("列设置"),visible:l,onCancel:()=>u(!1),footer:a.jsxs("div",{className:"flex justify-end",children:[a.jsx(X,{onClick:()=>p(),children:e("重置")}),a.jsx(X,{onClick:()=>u(!1),children:e("取消")}),a.jsx(X,{onClick:()=>u(!1),children:e("确定")})]}),children:[a.jsx("div",{style:{marginBottom:20},children:a.jsx(Ln,{checked:Object.values(s).every(T=>T===!0),indeterminate:Object.values(s).some(T=>T===!0)&&!Object.values(s).every(T=>T===!0),onChange:T=>y(T.target.checked),children:e("全选")})}),a.jsx("div",{className:"flex flex-wrap max-h-96 overflow-y-auto rounded-lg p-4",style:{border:"1px solid var(--semi-color-border)"},children:E.map(T=>!c&&T.key===lr.CHANNEL?null:a.jsx("div",{className:"w-1/2 mb-4 pr-2",children:a.jsx(Ln,{checked:!!s[T.key],onChange:J=>g(T.key,J.target.checked),children:T.title})},T.key))})]});return a.jsxs(a.Fragment,{children:[I(),a.jsxs(ln,{children:[a.jsx(Le,{className:"!rounded-2xl mb-4",title:a.jsxs("div",{className:"flex flex-col w-full",children:[a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full",children:[a.jsxs("div",{className:"flex items-center text-orange-500 mb-2 md:mb-0",children:[a.jsx(o6,{className:"mr-2"}),a.jsx(a1e,{children:e("任务记录")})]}),a.jsx(X,{type:"tertiary",className:"w-full md:w-auto",onClick:()=>z(!R),size:"small",children:e(R?"自适应列表":"紧凑列表")})]}),a.jsx(Ar,{margin:"12px"}),a.jsx(M,{initValues:Y,getFormApi:T=>le(T),onSubmit:G,allowEmpty:!0,autoComplete:"off",layout:"vertical",trigger:"change",stopValidateWithError:!1,children:a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[a.jsx("div",{className:"col-span-1 lg:col-span-2",children:a.jsx(M.DatePicker,{field:"dateRange",className:"w-full",type:"dateTimeRange",placeholder:[e("开始时间"),e("结束时间")],showClear:!0,pure:!0,size:"small"})}),a.jsx(M.Input,{field:"task_id",prefix:a.jsx(Cr,{}),placeholder:e("任务 ID"),showClear:!0,pure:!0,size:"small"}),c&&a.jsx(M.Input,{field:"channel_id",prefix:a.jsx(Cr,{}),placeholder:e("渠道 ID"),showClear:!0,pure:!0,size:"small"})]}),a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("div",{}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(X,{type:"tertiary",htmlType:"submit",loading:$,size:"small",children:e("查询")}),a.jsx(X,{type:"tertiary",onClick:()=>{P&&(P.reset(),setTimeout(()=>{G()},100))},size:"small",children:e("重置")}),a.jsx(X,{type:"tertiary",onClick:()=>u(!0),size:"small",children:e("列设置")})]})]})]})})]}),shadows:"always",bordered:!1,children:a.jsx(Mr,{columns:R?_().map(({fixed:T,...J})=>J):_(),dataSource:W,rowKey:"key",loading:$,scroll:R?void 0:{x:"max-content"},className:"rounded-xl overflow-hidden",size:"middle",empty:a.jsx(Rr,{image:a.jsx(ii,{style:{width:150,height:150}}),darkModeImage:a.jsx(ni,{style:{width:150,height:150}}),description:e("搜索无结果"),style:{padding:30}}),pagination:{formatPageText:T=>e("第 {{start}} - {{end}} 条,共 {{total}} 条",{start:T.currentStart,end:T.currentEnd,total:k}),currentPage:j,pageSize:d,total:k,pageSizeOptions:[10,20,50,100],showSizeChanger:!0,onPageSizeChange:ie,onPageChange:ee}})}),a.jsx(Je,{visible:t,onOk:()=>r(!1),onCancel:()=>r(!1),closable:null,bodyStyle:{height:"400px",overflow:"auto"},width:800,children:a.jsx("p",{style:{whiteSpace:"pre-line"},children:n})})]})]})},l1e=()=>a.jsx("div",{className:"mt-[64px] px-2",children:a.jsx(o1e,{})}),u1e=e=>{try{const t={...e,timestamp:new Date().toISOString()};localStorage.setItem(us.CONFIG,JSON.stringify(t))}catch(t){console.error("保存配置失败:",t)}},mF=e=>{try{const t={messages:e,timestamp:new Date().toISOString()};localStorage.setItem(us.MESSAGES,JSON.stringify(t))}catch(t){console.error("保存消息失败:",t)}},c1e=()=>{try{const e=localStorage.getItem(us.CONFIG);if(e){const t=JSON.parse(e);return{inputs:{...on.inputs,...t.inputs},parameterEnabled:{...on.parameterEnabled,...t.parameterEnabled},showDebugPanel:t.showDebugPanel||on.showDebugPanel,customRequestMode:t.customRequestMode||on.customRequestMode,customRequestBody:t.customRequestBody||on.customRequestBody}}}catch(e){console.error("加载配置失败:",e)}return on},gF=()=>{try{const e=localStorage.getItem(us.MESSAGES);if(e)return JSON.parse(e).messages||null}catch(e){console.error("加载消息失败:",e)}return null},mx=()=>{try{localStorage.removeItem(us.CONFIG),localStorage.removeItem(us.MESSAGES)}catch(e){console.error("清除配置失败:",e)}},d1e=()=>{try{return localStorage.getItem(us.CONFIG)!==null}catch(e){return console.error("检查配置失败:",e),!1}},h1e=()=>{try{const e=localStorage.getItem(us.CONFIG);if(e)return JSON.parse(e).timestamp||null}catch(e){console.error("获取配置时间戳失败:",e)}return null},f1e=(e,t=null)=>{try{const r={...e,messages:t||gF(),exportTime:new Date().toISOString(),version:"1.0"},n=JSON.stringify(r,null,2),i=new Blob([n],{type:"application/json"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.download=`playground-config-${new Date().toISOString().split("T")[0]}.json`,s.click(),URL.revokeObjectURL(s.href)}catch(r){console.error("导出配置失败:",r)}},p1e=e=>new Promise((t,r)=>{try{const n=new FileReader;n.onload=i=>{try{const s=JSON.parse(i.target.result);s.inputs&&s.parameterEnabled?(s.messages&&Array.isArray(s.messages)&&mF(s.messages),t(s)):r(new Error("配置文件格式无效"))}catch(s){r(new Error("解析配置文件失败: "+s.message))}},n.onerror=()=>r(new Error("读取文件失败")),n.readAsText(e)}catch(n){r(new Error("导入配置失败: "+n.message))}}),m1e=()=>{const[e]=m.useState(()=>c1e()),[t]=m.useState(()=>gF()||e7),[r,n]=m.useState(e.inputs||on.inputs),[i,s]=m.useState(e.parameterEnabled||on.parameterEnabled),[o,l]=m.useState(e.showDebugPanel||on.showDebugPanel),[u,c]=m.useState(e.customRequestMode||on.customRequestMode),[d,h]=m.useState(e.customRequestBody||on.customRequestBody),[f,p]=m.useState(!1),[g,y]=m.useState([]),[b,x]=m.useState([]),[v,E]=m.useState({}),[_,j]=m.useState(t),[F,k]=m.useState({request:null,response:null,timestamp:null,previewRequest:null,previewTimestamp:null}),[U,W]=m.useState(xi.PREVIEW),[K,$]=m.useState(null),[O,R]=m.useState(null),[z,H]=m.useState(""),B=m.useRef(null),Y=m.useRef(null),P=m.useRef(null);m.useRef(null);const le=m.useCallback((ie,G)=>{n(N=>({...N,[ie]:G}))},[]),be=m.useCallback(ie=>{s(G=>({...G,[ie]:!G[ie]}))},[]),V=m.useCallback(ie=>{mF(ie||_)},[_]),te=m.useCallback(()=>{P.current&&clearTimeout(P.current),P.current=setTimeout(()=>{u1e({inputs:r,parameterEnabled:i,showDebugPanel:o,customRequestMode:u,customRequestBody:d})},1e3)},[r,i,o,u,d]),de=m.useCallback(ie=>{ie.inputs&&n(G=>({...G,...ie.inputs})),ie.parameterEnabled&&s(G=>({...G,...ie.parameterEnabled})),typeof ie.showDebugPanel=="boolean"&&l(ie.showDebugPanel),ie.customRequestMode&&c(ie.customRequestMode),ie.customRequestBody&&h(ie.customRequestBody),ie.messages&&Array.isArray(ie.messages)&&j(ie.messages)},[]),ee=m.useCallback((ie={})=>{const{resetMessages:G=!1}=ie;n(on.inputs),s(on.parameterEnabled),l(on.showDebugPanel),c(on.customRequestMode),h(on.customRequestBody),G&&(j([]),setTimeout(()=>{j(e7)},0))},[]);return m.useEffect(()=>()=>{P.current&&clearTimeout(P.current)},[]),m.useEffect(()=>{if(!Array.isArray(_)||_.length===0)return;const ie=_[_.length-1];if(ie.status===gr.LOADING||ie.status===gr.INCOMPLETE){const G=nw(ie.content||"",ie.reasoningContent||""),N={...ie,status:gr.COMPLETE,content:G.content,reasoningContent:G.reasoningContent||null,isThinkingComplete:!0},I=[..._.slice(0,-1),N];j(I),setTimeout(()=>V(I),0)}},[]),{inputs:r,parameterEnabled:i,showDebugPanel:o,customRequestMode:u,customRequestBody:d,showSettings:f,models:g,groups:b,status:v,message:_,debugData:F,activeDebugTab:U,previewPayload:K,editingMessageId:O,editValue:z,sseSourceRef:B,chatRef:Y,saveConfigTimeoutRef:P,setInputs:n,setParameterEnabled:s,setShowDebugPanel:l,setCustomRequestMode:c,setCustomRequestBody:h,setShowSettings:p,setModels:y,setGroups:x,setStatus:E,setMessage:j,setDebugData:k,setActiveDebugTab:W,setPreviewPayload:$,setEditingMessageId:R,setEditValue:H,handleInputChange:le,handleParameterToggle:be,debouncedSaveConfig:te,saveMessagesImmediately:V,handleConfigImport:de,handleConfigReset:ee}},g1e=(e,t,r,n)=>{const{t:i}=Ze(),s=m.useCallback(c=>{const d=Lu(c);if(!d){Mt.warning({content:i(Ou.NO_TEXT_CONTENT),duration:2});return}const h=async p=>{var g;if((g=navigator.clipboard)!=null&&g.writeText)try{await navigator.clipboard.writeText(p),Mt.success({content:i("消息已复制到剪贴板"),duration:2})}catch(y){console.error("Clipboard API 复制失败:",y),f(p)}else f(p)},f=p=>{try{const g=document.createElement("textarea");g.value=p,g.style.cssText=`
- position: fixed;
- top: -9999px;
- left: -9999px;
- opacity: 0;
- pointer-events: none;
- z-index: -1;
- `,g.setAttribute("readonly",""),document.body.appendChild(g),g.select(),g.setSelectionRange(0,p.length);const y=document.execCommand("copy");if(document.body.removeChild(g),y)Mt.success({content:i("消息已复制到剪贴板"),duration:2});else throw new Error("execCommand copy failed")}catch(g){console.error("回退复制方案也失败:",g);let y=i(Ou.COPY_FAILED);window.location.protocol==="http:"&&window.location.hostname!=="localhost"?y=i(Ou.COPY_HTTPS_REQUIRED):!navigator.clipboard&&!document.execCommand&&(y=i(Ou.BROWSER_NOT_SUPPORTED)),Mt.error({content:y,duration:4})}};h(d)},[i]),o=m.useCallback(c=>{t(d=>{let h=d.findIndex(f=>f===c);if(h===-1&&(h=d.findIndex(f=>f.id===c.id)),h===-1)return d;if(c.role==="user"){const f=d.slice(0,h),p=Lu(c);return setTimeout(()=>{r(p)},100),f}else if(c.role==="assistant"||c.role==="system"){let f=h-1;for(;f>=0&&d[f].role!=="user";)f--;if(f>=0){const p=d[f],g=d.slice(0,f),y=Lu(p);return setTimeout(()=>{r(y)},100),g}}return d})},[t,r]),l=m.useCallback(c=>{Je.confirm({title:i("确认删除"),content:i("确定要删除这条消息吗?"),okText:i("确定"),cancelText:i("取消"),okButtonProps:{type:"danger"},onOk:()=>{t(d=>{let h=d.findIndex(p=>p===c);if(h===-1&&(h=d.findIndex(p=>p.id===c.id)),h===-1)return d;let f;return c.role==="user"&&h<d.length-1?d[h+1].role==="assistant"?(Mt.success({content:i("已删除消息及其回复"),duration:2}),f=d.filter((g,y)=>y!==h&&y!==h+1)):(Mt.success({content:i("消息已删除"),duration:2}),f=d.filter(g=>g.id!==c.id)):(Mt.success({content:i("消息已删除"),duration:2}),f=d.filter(p=>p.id!==c.id)),setTimeout(()=>n(f),0),f})}})},[t,i,n]),u=m.useCallback(c=>{if(!(c.role==="assistant"||c.role==="system"))return;const d=c.role==="assistant"?"system":"assistant";t(h=>{const f=h.map(p=>p.id===c.id&&(p.role==="assistant"||p.role==="system")?{...p,role:d}:p);return setTimeout(()=>n(f),0),f}),Mt.success({content:i(`已切换为${d==="system"?"System":"Assistant"}角色`),duration:2})},[t,i,n]);return{handleMessageCopy:s,handleMessageReset:o,handleMessageDelete:l,handleRoleToggle:u}};var Zn=function(e,t){if(!(this instanceof Zn))return new Zn(e,t);this.url=e,t=t||{},this.headers=t.headers||{},this.payload=t.payload!==void 0?t.payload:"",this.method=t.method||this.payload&&"POST"||"GET",this.withCredentials=!!t.withCredentials,this.debug=!!t.debug,this.FIELD_SEPARATOR=":",this.listeners={},this.xhr=null,this.readyState=Zn.INITIALIZING,this.progress=0,this.chunk="",this.lastEventId="",this.addEventListener=function(r,n){this.listeners[r]===void 0&&(this.listeners[r]=[]),this.listeners[r].indexOf(n)===-1&&this.listeners[r].push(n)},this.removeEventListener=function(r,n){if(this.listeners[r]===void 0)return;const i=[];this.listeners[r].forEach(function(s){s!==n&&i.push(s)}),i.length===0?delete this.listeners[r]:this.listeners[r]=i},this.dispatchEvent=function(r){if(!r)return!0;this.debug&&console.debug(r),r.source=this;const n="on"+r.type;return this.hasOwnProperty(n)&&(this[n].call(this,r),r.defaultPrevented)?!1:this.listeners[r.type]?this.listeners[r.type].every(function(i){return i(r),!r.defaultPrevented}):!0},this._markClosed=function(){this.xhr=null,this.progress=0,this.chunk="",this._setReadyState(Zn.CLOSED)},this._setReadyState=function(r){const n=new CustomEvent("readystatechange");n.readyState=r,this.readyState=r,this.dispatchEvent(n)},this._onStreamFailure=function(r){const n=new CustomEvent("error");n.responseCode=r.currentTarget.status,n.data=r.currentTarget.response,this.dispatchEvent(n),this._markClosed()},this._onStreamAbort=function(){this.dispatchEvent(new CustomEvent("abort")),this._markClosed()},this._onStreamProgress=function(r){if(!this.xhr)return;if(this.xhr.status<200||this.xhr.status>=300){this._onStreamFailure(r);return}const n=this.xhr.responseText.substring(this.progress);this.progress+=n.length;const i=(this.chunk+n).split(/(\r\n\r\n|\r\r|\n\n)/g),s=i.pop();i.forEach((function(o){o.trim().length>0&&this.dispatchEvent(this._parseEventChunk(o))}).bind(this)),this.chunk=s},this._onStreamLoaded=function(r){this._onStreamProgress(r),this.dispatchEvent(this._parseEventChunk(this.chunk)),this.chunk="",this._markClosed()},this._parseEventChunk=function(r){if(!r||r.length===0)return null;this.debug&&console.debug(r);const n={id:null,retry:null,data:null,event:null};r.split(/\n|\r\n|\r/).forEach((function(s){const o=s.indexOf(this.FIELD_SEPARATOR);let l,u;if(o>0){const c=s[o+1]===" "?2:1;l=s.substring(0,o),u=s.substring(o+c)}else if(o<0)l=s,u="";else return;l in n&&(l==="data"&&n[l]!==null?n.data+=`
- `+u:n[l]=u)}).bind(this)),n.id!==null&&(this.lastEventId=n.id);const i=new CustomEvent(n.event||"message");return i.id=n.id,i.data=n.data||"",i.lastEventId=this.lastEventId,i},this._onReadyStateChange=function(){if(this.xhr&&this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED){const r={},n=this.xhr.getAllResponseHeaders().trim().split(`\r
- `);for(const s of n){const[o,...l]=s.split(":"),u=l.join(":").trim();r[o.trim().toLowerCase()]=r[o.trim().toLowerCase()]||[],r[o.trim().toLowerCase()].push(u)}const i=new CustomEvent("open");i.responseCode=this.xhr.status,i.headers=r,this.dispatchEvent(i),this._setReadyState(Zn.OPEN)}},this.stream=function(){if(!this.xhr){this._setReadyState(Zn.CONNECTING),this.xhr=new XMLHttpRequest,this.xhr.addEventListener("progress",this._onStreamProgress.bind(this)),this.xhr.addEventListener("load",this._onStreamLoaded.bind(this)),this.xhr.addEventListener("readystatechange",this._onReadyStateChange.bind(this)),this.xhr.addEventListener("error",this._onStreamFailure.bind(this)),this.xhr.addEventListener("abort",this._onStreamAbort.bind(this)),this.xhr.open(this.method,this.url);for(let r in this.headers)this.xhr.setRequestHeader(r,this.headers[r]);this.lastEventId.length>0&&this.xhr.setRequestHeader("Last-Event-ID",this.lastEventId),this.xhr.withCredentials=this.withCredentials,this.xhr.send(this.payload)}},this.close=function(){this.readyState!==Zn.CLOSED&&this.xhr.abort()},(t.start===void 0||t.start)&&this.stream()};Zn.INITIALIZING=-1;Zn.CONNECTING=0;Zn.OPEN=1;Zn.CLOSED=2;typeof exports<"u"&&(exports.SSE=Zn);const y1e=(e,t,r,n,i)=>{const{t:s}=Ze(),o=m.useCallback((p,g=!0)=>{const y=g&&!p.hasAutoCollapsed;return{isThinkingComplete:g,hasAutoCollapsed:y||p.hasAutoCollapsed,isReasoningExpanded:y?!1:p.isReasoningExpanded}},[]),l=m.useCallback((p,g)=>{e(y=>{const b=y[y.length-1];if(!b||b.role!=="assistant"||b.status===gr.ERROR)return y;if(b.status===gr.LOADING||b.status===gr.INCOMPLETE){let x={...b};if(g==="reasoning")x={...x,reasoningContent:(b.reasoningContent||"")+p,status:gr.INCOMPLETE,isThinkingComplete:!1};else if(g==="content"){!b.content&&b.reasoningContent;const v=(b.content||"")+p;let E=b.isThinkingComplete;if(b.isReasoningExpanded&&v.includes("</think>")){const F=v.match(/<think>/g),k=v.match(/<\/think>/g);F&&k&&k.length>=F.length&&(E=!0)}const _=b.reasoningContent&&!b.isThinkingComplete||E,j=o(b,_);x={...x,content:v,status:gr.INCOMPLETE,...j}}return[...y.slice(0,-1),x]}return y})},[e,o]),u=m.useCallback((p=gr.COMPLETE)=>{e(g=>{const y=g[g.length-1];if(y.status===gr.COMPLETE||y.status===gr.ERROR)return g;const b=o(y,!0),x=[...g.slice(0,-1),{...y,status:p,...b}];return(p===gr.COMPLETE||p===gr.ERROR)&&setTimeout(()=>i(x),0),x})},[e,o,i]),c=m.useCallback(async p=>{var g,y,b;t(x=>({...x,request:p,timestamp:new Date().toISOString(),response:null})),r(xi.REQUEST);try{const x=await fetch(Mh.CHAT_COMPLETIONS,{method:"POST",headers:{"Content-Type":"application/json","New-Api-User":$h()},body:JSON.stringify(p)});if(!x.ok){let E="";try{E=await x.text()}catch{E="无法读取错误响应体"}const _=du(new Error(`HTTP error! status: ${x.status}, body: ${E}`),x);throw t(j=>({...j,response:JSON.stringify(_,null,2)})),r(xi.RESPONSE),new Error(`HTTP error! status: ${x.status}, body: ${E}`)}const v=await x.json();if(t(E=>({...E,response:JSON.stringify(v,null,2)})),r(xi.RESPONSE),(g=v.choices)!=null&&g[0]){const E=v.choices[0];let _=((y=E.message)==null?void 0:y.content)||"",j=((b=E.message)==null?void 0:b.reasoning_content)||"";const F=ch(_,j);e(k=>{const U=[...k],W=U[U.length-1];if((W==null?void 0:W.status)===gr.LOADING){const K=o(W,!0);U[U.length-1]={...W,content:F.content,reasoningContent:F.reasoningContent,status:gr.COMPLETE,...K}}return U})}}catch(x){console.error("Non-stream request error:",x);const v=du(x);t(E=>({...E,response:JSON.stringify(v,null,2)})),r(xi.RESPONSE),e(E=>{const _=[...E],j=_[_.length-1];if((j==null?void 0:j.status)===gr.LOADING){const F=o(j,!0);_[_.length-1]={...j,content:s("请求发生错误: ")+x.message,status:gr.ERROR,...F}}return _})}},[t,r,e,s,o]),d=m.useCallback(p=>{t(v=>({...v,request:p,timestamp:new Date().toISOString(),response:null})),r(xi.REQUEST);const g=new Zn(Mh.CHAT_COMPLETIONS,{headers:{"Content-Type":"application/json","New-Api-User":$h()},method:"POST",payload:JSON.stringify(p)});n.current=g;let y="",b=!1,x=!1;g.addEventListener("message",v=>{var E,_;if(v.data==="[DONE]"){x=!0,g.close(),n.current=null,t(j=>({...j,response:y})),u();return}try{const j=JSON.parse(v.data);y+=v.data+`
- `,b||(r(xi.RESPONSE),b=!0);const F=(_=(E=j.choices)==null?void 0:E[0])==null?void 0:_.delta;F&&(F.reasoning_content&&l(F.reasoning_content,"reasoning"),F.content&&l(F.content,"content"))}catch(j){console.error("Failed to parse SSE message:",j);const F=`解析错误: ${j.message}`;t(k=>({...k,response:y+`
- Error: ${F}`})),r(xi.RESPONSE),l(s("解析响应数据时发生错误"),"content"),u(gr.ERROR)}}),g.addEventListener("error",v=>{if(!x&&g.readyState!==2){console.error("SSE Error:",v);const E=v.data||s("请求发生错误"),_=du(new Error(E));_.readyState=g.readyState,t(j=>({...j,response:y+`
- SSE Error:
- `+JSON.stringify(_,null,2)})),r(xi.RESPONSE),l(E,"content"),u(gr.ERROR),n.current=null,g.close()}}),g.addEventListener("readystatechange",v=>{if(v.readyState>=2&&g.status!==void 0&&g.status!==200&&!x){const E=du(new Error("HTTP状态错误"));E.status=g.status,E.readyState=g.readyState,t(_=>({..._,response:y+`
- HTTP Error:
- `+JSON.stringify(E,null,2)})),r(xi.RESPONSE),g.close(),l(s("连接已断开"),"content"),u(gr.ERROR)}});try{g.stream()}catch(v){console.error("Failed to start SSE stream:",v);const E=du(v);t(_=>({..._,response:`Stream启动失败:
- `+JSON.stringify(E,null,2)})),r(xi.RESPONSE),l(s("建立连接时发生错误"),"content"),u(gr.ERROR)}},[t,r,l,u,s,o]),h=m.useCallback(()=>{n.current&&(n.current.close(),n.current=null),e(p=>{if(p.length===0)return p;const g=p[p.length-1];if(g.status===gr.LOADING||g.status===gr.INCOMPLETE){const y=nw(g.content||"",g.reasoningContent||""),b=o(g,!0),x=[...p.slice(0,-1),{...g,status:gr.COMPLETE,reasoningContent:y.reasoningContent||null,content:y.content,...b}];return setTimeout(()=>i(x),0),x}return p})},[e,o,i]);return{sendRequest:m.useCallback((p,g)=>{g?d(p):c(p)},[d,c]),onStopGenerator:h,streamMessageUpdate:l,completeMessage:u}},b1e=(e,t,r,n,i,s,o)=>{const l=m.useRef(!1),u=m.useRef(!1),c=m.useRef(""),d=m.useRef(""),h=m.useCallback(y=>JSON.stringify(y.map(b=>({id:b.id,role:b.role,content:b.content}))),[]),f=m.useCallback(y=>{try{const b=JSON.parse(y);return JSON.stringify(b.messages||[])}catch{return""}},[]),p=m.useCallback(()=>{if(!e||u.current)return;const y=h(r);if(y!==c.current)try{l.current=!0;let b;try{b=JSON.parse(t||"{}")}catch{b={model:n.model||"gpt-4o",messages:[],temperature:n.temperature||.7,stream:n.stream!==!1}}b.messages=r.map(v=>({role:v.role,content:v.content}));const x=JSON.stringify(b,null,2);i(x),c.current=y,d.current=f(x),setTimeout(()=>{o()},0)}finally{l.current=!1}},[e,t,r,n.model,n.temperature,n.stream,h,f,i,o]),g=m.useCallback(()=>{if(!e||l.current)return;const y=f(t);if(y!==d.current)try{u.current=!0;const b=JSON.parse(t||"{}");if(b.messages&&Array.isArray(b.messages)){const x=b.messages.map((v,E)=>({id:v.id||(E+1).toString(),role:v.role||li.USER,content:v.content||"",createAt:Date.now(),...v.role===li.ASSISTANT&&{reasoningContent:v.reasoningContent||"",isReasoningExpanded:!1}}));s(x),d.current=y,c.current=h(x)}}catch(b){console.warn("同步自定义请求体到消息失败:",b)}finally{u.current=!1}},[e,t,f,h,s]);return{syncMessageToCustomBody:p,syncCustomBodyToMessage:g}},x1e=(e,t,r,n,i)=>{const{t:s}=Ze(),[o,l]=m.useState(null),[u,c]=m.useState(""),d=m.useRef(null),h=m.useCallback(g=>{const y=Lu(g);l(g.id),d.current=g,c(y)},[]),f=m.useCallback(()=>{!o||!u.trim()||(e(g=>{let y=g.findIndex(E=>E===d.current);y===-1&&(y=g.findIndex(E=>E.id===o));const b=g[y];let x;Array.isArray(b.content)?x=b.content.map(E=>E.type==="text"?{...E,text:u.trim()}:E):x=u.trim();const v=g.map(E=>E.id===o?{...E,content:x}:E);return b.role===li.USER&&y<g.length-1&&g[y+1].role===li.ASSISTANT?(Je.confirm({title:s("消息已编辑"),content:s("检测到该消息后有AI回复,是否删除后续回复并重新生成?"),okText:s("重新生成"),cancelText:s("仅保存"),onOk:()=>{const _=v.slice(0,y+1);e(_),setTimeout(()=>i(_),0),setTimeout(()=>{const j=D5(_,null,t,r);e(F=>[...F,iw()]),n(j,t.stream)},100)},onCancel:()=>{e(v),setTimeout(()=>i(v),0)}}),g):(setTimeout(()=>i(v),0),v)}),l(null),d.current=null,c(""),Mt.success({content:s("消息已更新"),duration:2}))},[o,u,s,t,r,n,e,i]),p=m.useCallback(()=>{l(null),d.current=null,c("")},[]);return{editingMessageId:o,editValue:u,setEditValue:c,handleMessageEdit:h,handleEditSave:f,handleEditCancel:p}},v1e=(e,t,r,n,i)=>{const{t:s}=Ze(),o=m.useCallback(async()=>{try{const u=await Se.get(Mh.USER_MODELS),{success:c,message:d,data:h}=u.data;if(c){const{modelOptions:f,selectedModel:p}=gT(h,t.model);n(f),p!==t.model&&r("model",p)}else showError(s(d))}catch{showError(s("加载模型失败"))}},[t.model,r,n,s]),l=m.useCallback(async()=>{var u,c,d;try{const h=await Se.get(Mh.USER_GROUPS),{success:f,message:p,data:g}=h.data;if(f){const y=((u=e==null?void 0:e.user)==null?void 0:u.group)||((c=JSON.parse(localStorage.getItem("user")))==null?void 0:c.group),b=yT(g,y);i(b),b.some(v=>v.value===t.group)||r("group",((d=b[0])==null?void 0:d.value)||"")}else showError(s(p))}catch{showError(s("加载分组失败"))}},[e,t.group,r,i,s]);return m.useEffect(()=>{e!=null&&e.user&&(o(),l())},[e==null?void 0:e.user,o,l]),{loadModels:o,loadGroups:l}};function w1e(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+n+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],y=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],_={type:y,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},j={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},F=[j,h,l,r,e.C_BLOCK_COMMENT_MODE,d,c],k={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:F.concat([{begin:/\(/,end:/\)/,keywords:_,contains:F.concat(["self"]),relevance:0}]),relevance:0},U={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:_,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,r,e.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:_,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(k,U,j,F,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:_,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:_},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function E1e(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=w1e(e),n=r.keywords;return n.type=[...n.type,...t.type],n.literal=[...n.literal,...t.literal],n.built_in=[...n.built_in,...t.built_in],n._hints=t._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}function C1e(e){const t=e.regex,r={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,i]};i.contains.push(l);const u={match:/\\"/},c={className:"string",begin:/'/,end:/'/},d={match:/\\'/},h={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},y=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],b=["true","false"],x={match:/(\/[a-z._-]+)+/},v=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],E=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],_=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],j=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:y,literal:b,built_in:[...v,...E,"set","shopt",..._,...j]},contains:[p,e.SHEBANG(),g,h,s,o,x,l,u,c,d,r]}}function S1e(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+n+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",b={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},x=[h,l,r,e.C_BLOCK_COMMENT_MODE,d,c],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:x.concat([{begin:/\(/,end:/\)/,keywords:b,contains:x.concat(["self"]),relevance:0}]),relevance:0},E={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:b,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,r,e.C_BLOCK_COMMENT_MODE,h]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"</",contains:[].concat(v,E,x,[h,{begin:e.IDENT_RE+"::",keywords:b},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:h,strings:c,keywords:b}}}function F1e(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+n+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],y=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],_={type:y,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},j={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},F=[j,h,l,r,e.C_BLOCK_COMMENT_MODE,d,c],k={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:F.concat([{begin:/\(/,end:/\)/,keywords:_,contains:F.concat(["self"]),relevance:0}]),relevance:0},U={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:_,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,c,d,l,{begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,c,d,l]}]},l,r,e.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:_,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(k,U,j,F,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:_,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:_},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function j1e(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],n=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(s),built_in:t,literal:n},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},h=e.inherit(d,{illegal:/\n/}),f={className:"subst",begin:/\{/,end:/\}/,keywords:o},p=e.inherit(f,{illegal:/\n/}),g={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,p]},y={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]},b=e.inherit(y,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});f.contains=[y,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],p.contains=[b,g,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const x={variants:[c,y,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},v={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},E=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",_={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},x,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+E+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,v],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[x,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},_]}}const _1e=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),k1e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],O1e=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],A1e=[...k1e,...O1e],D1e=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),B1e=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),T1e=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),P1e=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function N1e(e){const t=e.regex,r=_1e(e),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",s=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",l=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,n,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+B1e.join("|")+")"},{begin:":(:)?("+T1e.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+P1e.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:D1e.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+A1e.join("|")+")\\b"}]}}function M1e(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function I1e(e){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,illegal:/["']/}]}]}}function $1e(e){const t=e.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(r,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function L1e(e){const t=e.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},n=e.COMMENT();n.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[n,s,i,o,r,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,d=/'[^']*'/,h=t.either(u,c,d),f=t.concat(h,"(\\s*\\.\\s*",h,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[n,{className:"section",begin:/\[+/,end:/\]+/},{begin:f,className:"attr",starts:{end:/$/,contains:[n,l,s,i,o,r]}}]}}var Zo="[0-9](_*[0-9])*",Vd=`\\.(${Zo})`,Gd="[0-9a-fA-F](_*[0-9a-fA-F])*",gx={className:"number",variants:[{begin:`(\\b(${Zo})((${Vd})|\\.)?|(${Vd}))[eE][+-]?(${Zo})[fFdD]?\\b`},{begin:`\\b(${Zo})((${Vd})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Vd})[fFdD]?\\b`},{begin:`\\b(${Zo})[fFdD]\\b`},{begin:`\\b0[xX]((${Gd})\\.?|(${Gd})?\\.(${Gd}))[pP][+-]?(${Zo})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Gd})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function yF(e,t,r){return r===-1?"":e.replace(t,n=>yF(e,t,r-1))}function R1e(e){const t=e.regex,r="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",n=r+yF("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),u={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+n+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,gx,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},gx,c]}}const yx="[A-Za-z$_][0-9A-Za-z$_]*",z1e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],U1e=["true","false","null","undefined","NaN","Infinity"],bF=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],xF=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],vF=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],H1e=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],q1e=[].concat(vF,bF,xF);function W1e(e){const t=e.regex,r=(P,{after:le})=>{const be="</"+P[0].slice(1);return P.input.indexOf(be,le)!==-1},n=yx,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(P,le)=>{const be=P[0].length+P.index,V=P.input[be];if(V==="<"||V===","){le.ignoreMatch();return}V===">"&&(r(P,{after:be})||le.ignoreMatch());let te;const de=P.input.substring(be);if(te=de.match(/^\s*=/)){le.ignoreMatch();return}if((te=de.match(/^\s+extends\s+/))&&te.index===0){le.ignoreMatch();return}}},l={$pattern:yx,keyword:z1e,literal:U1e,built_in:q1e,"variable.language":H1e},u="[0-9](_?[0-9])*",c=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},y={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},E=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,y,b,{match:/\$\d+/},h];f.contains=E.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(E)});const _=[].concat(v,f.contains),j=_.concat([{begin:/(\s*)\(/,end:/\)/,keywords:l,contains:["self"].concat(_)}]),F={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:j},k={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},U={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...bF,...xF]}},W={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},K={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[F],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function O(P){return t.concat("(?!",P.join("|"),")")}const R={match:t.concat(/\b/,O([...vF,"super","import"].map(P=>`${P}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},z={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},F]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Y={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[F]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:j,CLASS_REFERENCE:U},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),W,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,y,b,v,{match:/\$\d+/},h,U,{scope:"attr",match:n+t.lookahead(":"),relevance:0},Y,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:j}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},K,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[F,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},z,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[F]},R,$,k,H,{match:/\$[(.]/}]}}function V1e(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],i={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:n},contains:[t,r,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Xo="[0-9](_*[0-9])*",Kd=`\\.(${Xo})`,Yd="[0-9a-fA-F](_*[0-9a-fA-F])*",G1e={className:"number",variants:[{begin:`(\\b(${Xo})((${Kd})|\\.)?|(${Kd}))[eE][+-]?(${Xo})[fFdD]?\\b`},{begin:`\\b(${Xo})((${Kd})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Kd})[fFdD]?\\b`},{begin:`\\b(${Xo})[fFdD]\\b`},{begin:`\\b0[xX]((${Yd})\\.?|(${Yd})?\\.(${Yd}))[pP][+-]?(${Xo})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Yd})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function K1e(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,s,i]}]};i.contains.push(o);const l={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},u={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},c=G1e,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=h;return f.variants[1].contains=[h],h.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,r,n,l,u,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,l,u,o,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},l,u]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
- `},c]}}const Y1e=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Z1e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],X1e=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],J1e=[...Z1e,...X1e],Q1e=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),wF=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),EF=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),ede=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),tde=wF.concat(EF).sort().reverse();function rde(e){const t=Y1e(e),r=tde,n="and or not only",i="[\\w-]+",s="("+i+"|@\\{"+i+"\\})",o=[],l=[],u=function(E){return{className:"string",begin:"~?"+E+".*?"+E}},c=function(E,_,j){return{className:E,begin:_,relevance:j}},d={$pattern:/[a-z-]+/,keyword:n,attribute:Q1e.join(" ")},h={begin:"\\(",end:"\\)",contains:l,keywords:d,relevance:0};l.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u("'"),u('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,h,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const f=l.concat({begin:/\{/,end:/\}/,contains:o}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(l)},g={begin:s+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ede.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:l}}]},y={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:l,relevance:0}},b={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},x={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:s,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+J1e.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",s,0),c("selector-id","#"+s),c("selector-class","\\."+s,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+wF.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+EF.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},v={begin:i+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[x]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,b,v,g,x,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function nde(e){const t="\\[=*\\[",r="\\]=*\\]",n={begin:t,end:r,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,r,{contains:[n],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:r,contains:[n],relevance:5}])}}function ide(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},n={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,r]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,r,n,i,s,o]}}function ade(e){const t=e.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},n={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},h=e.inherit(c,{contains:[]}),f=e.inherit(d,{contains:[]});c.contains.push(f),d.contains.push(h);let p=[r,u];return[c,d,h,f].forEach(x=>{x.contains=x.contains.concat(p)}),p=p.concat(c,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},r,s,c,d,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,n,u,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function sde(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},u={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function ode(e){const t=e.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],n=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:r.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},l={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},u={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[l]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,s,u],h=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(y,b,x="\\1")=>{const v=x==="\\1"?x:t.concat(x,b);return t.concat(t.concat("(?:",y,")"),b,/(?:\\.|[^\\\/])*?/,v,/(?:\\.|[^\\\/])*?/,x,n)},p=(y,b,x)=>t.concat(t.concat("(?:",y,")"),b,/(?:\\.|[^\\\/])*?/,x,n),g=[u,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:f("s|tr|y",t.either(...h,{capture:!0}))},{begin:f("s|tr|y","\\(","\\)")},{begin:f("s|tr|y","\\[","\\]")},{begin:f("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...h,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=g,o.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:g}}function lde(e){const t=e.regex,r=/(?![A-Za-z0-9])(?![$])/,n=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),s=t.concat(/[A-Z]+/,r),o={scope:"variable",match:"\\$+"+n},l={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},u={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(u)}),h={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(u),"on:begin":(z,H)=>{H.data._beginMatch=z[1]||z[2]},"on:end":(z,H)=>{H.data._beginMatch!==z[1]&&H.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
- ]`,g={scope:"string",variants:[d,c,h,f]},y={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},b=["false","null","true"],x=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],v=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],_={keyword:x,literal:(z=>{const H=[];return z.forEach(B=>{H.push(B),B.toLowerCase()===B?H.push(B.toUpperCase()):H.push(B.toLowerCase())}),H})(b),built_in:v},j=z=>z.map(H=>H.replace(/\|\d+$/,"")),F={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",j(v).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},k=t.concat(n,"\\b(?!\\()"),U={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),k],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),k],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},W={scope:"attr",match:t.concat(n,t.lookahead(":"),t.lookahead(/(?!::)/))},K={relevance:0,begin:/\(/,end:/\)/,keywords:_,contains:[W,o,U,e.C_BLOCK_COMMENT_MODE,g,y,F]},$={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",j(x).join("\\b|"),"|",j(v).join("\\b|"),"\\b)"),n,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[K]};K.contains.push($);const O=[W,U,e.C_BLOCK_COMMENT_MODE,g,y,F],R={begin:t.concat(/#\[\s*\\?/,t.either(i,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...O]},...O,{scope:"meta",variants:[{match:i},{match:s}]}]};return{case_insensitive:!1,keywords:_,contains:[R,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},l,{scope:"variable.language",match:/\$this\b/},o,$,U,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},F,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:_,contains:["self",R,o,U,e.C_BLOCK_COMMENT_MODE,g,y]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},g,y]}}function ude(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function cde(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function dde(e){const t=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),n=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],l={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:n,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},d={begin:/\{\{/,relevance:0},h={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,d,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,d,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,d,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",p=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,g=`\\b|${n.join("|")}`,y={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${p}))[eE][+-]?(${f})[jJ]?(?=${g})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${f})[jJ](?=${g})`}]},b={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},x={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",u,y,h,e.HASH_COMMENT_MODE]}]};return c.contains=[h,y,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[u,y,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},h,b,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[x]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[y,x,h]}]}}function hde(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function fde(e){const t=e.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,n=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,n]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,n]},{scope:{1:"punctuation",2:"number"},match:[s,n]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,n]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function pde(e){const t=e.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",n=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(n,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},u={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:o},h={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},f="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},y={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},F=[h,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:n,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[y]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[h,{begin:r}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(u,c),relevance:0}].concat(u,c);d.contains=F,y.contains=F;const K=[{begin:/^\s*=>/,starts:{end:"$",contains:F}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:F}}];return c.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(K).concat(c).concat(F)}}function mde(e){const t=e.regex,r=/(r#)?/,n=t.concat(r,e.UNDERSCORE_IDENT_RE),i=t.concat(r,e.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",l=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],u=["true","false","Some","None","Ok","Err"],c=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:d,keyword:l,literal:u,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,n],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,n],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,n,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:d}},{className:"punctuation",begin:"->"},s]}}const gde=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),yde=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],bde=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],xde=[...yde,...bde],vde=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),wde=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Ede=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Cde=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Sde(e){const t=gde(e),r=Ede,n=wde,i="@[a-z-]+",s="and or not only",l={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+xde.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+n.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},l,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Cde.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,l,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:vde.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},l,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function Fde(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function jde(e){const t=e.regex,r=e.COMMENT("--","$"),n={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},s=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],l=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],h=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=d,g=[...c,...u].filter(j=>!d.includes(j)),y={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},b={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},x={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function v(j){return t.concat(/\b/,t.either(...j.map(F=>F.replace(/\s+/,"\\s+"))),/\b/)}const E={scope:"keyword",match:v(f),relevance:0};function _(j,{exceptions:F,when:k}={}){const U=k;return F=F||[],j.map(W=>W.match(/\|\d+$/)||F.includes(W)?W:U(W)?`${W}|0`:W)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:_(g,{when:j=>j.length<3}),literal:s,type:l,built_in:h},contains:[{scope:"type",match:v(o)},E,x,y,n,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,b]}}function CF(e){return e?typeof e=="string"?e:e.source:null}function mu(e){return Qt("(?=",e,")")}function Qt(...e){return e.map(r=>CF(r)).join("")}function _de(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function xn(...e){return"("+(_de(e).capture?"":"?:")+e.map(n=>CF(n)).join("|")+")"}const Lg=e=>Qt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),kde=["Protocol","Type"].map(Lg),bx=["init","self"].map(Lg),Ode=["Any","Self"],Jm=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],xx=["false","nil","true"],Ade=["assignment","associativity","higherThan","left","lowerThan","none","right"],Dde=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],vx=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],SF=xn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),FF=xn(SF,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Qm=Qt(SF,FF,"*"),jF=xn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),n2=xn(jF,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Pi=Qt(jF,n2,"*"),Zd=Qt(/[A-Z]/,n2,"*"),Bde=["attached","autoclosure",Qt(/convention\(/,xn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Qt(/objc\(/,Pi,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Tde=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Pde(e){const t={match:/\s+/,relevance:0},r=e.COMMENT("/\\*","\\*/",{contains:["self"]}),n=[e.C_LINE_COMMENT_MODE,r],i={match:[/\./,xn(...kde,...bx)],className:{2:"keyword"}},s={match:Qt(/\./,xn(...Jm)),relevance:0},o=Jm.filter(ae=>typeof ae=="string").concat(["_|0"]),l=Jm.filter(ae=>typeof ae!="string").concat(Ode).map(Lg),u={variants:[{className:"keyword",match:xn(...l,...bx)}]},c={$pattern:xn(/\b\w+/,/#\w+/),keyword:o.concat(Dde),literal:xx},d=[i,s,u],h={match:Qt(/\./,xn(...vx)),relevance:0},f={className:"built_in",match:Qt(/\b/,xn(...vx),/(?=\()/)},p=[h,f],g={match:/->/,relevance:0},y={className:"operator",relevance:0,variants:[{match:Qm},{match:`\\.(\\.|${FF})+`}]},b=[g,y],x="([0-9]_*)+",v="([0-9a-fA-F]_*)+",E={className:"number",relevance:0,variants:[{match:`\\b(${x})(\\.(${x}))?([eE][+-]?(${x}))?\\b`},{match:`\\b0x(${v})(\\.(${v}))?([pP][+-]?(${x}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},_=(ae="")=>({className:"subst",variants:[{match:Qt(/\\/,ae,/[0\\tnr"']/)},{match:Qt(/\\/,ae,/u\{[0-9a-fA-F]{1,8}\}/)}]}),j=(ae="")=>({className:"subst",match:Qt(/\\/,ae,/[\t ]*(?:[\r\n]|\r\n)/)}),F=(ae="")=>({className:"subst",label:"interpol",begin:Qt(/\\/,ae,/\(/),end:/\)/}),k=(ae="")=>({begin:Qt(ae,/"""/),end:Qt(/"""/,ae),contains:[_(ae),j(ae),F(ae)]}),U=(ae="")=>({begin:Qt(ae,/"/),end:Qt(/"/,ae),contains:[_(ae),F(ae)]}),W={className:"string",variants:[k(),k("#"),k("##"),k("###"),U(),U("#"),U("##"),U("###")]},K=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],$={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:K},O=ae=>{const we=Qt(ae,/\//),ne=Qt(/\//,ae);return{begin:we,end:ne,contains:[...K,{scope:"comment",begin:`#(?!.*${ne})`,end:/$/}]}},R={scope:"regexp",variants:[O("###"),O("##"),O("#"),$]},z={match:Qt(/`/,Pi,/`/)},H={className:"variable",match:/\$\d+/},B={className:"variable",match:`\\$${n2}+`},Y=[z,H,B],P={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Tde,contains:[...b,E,W]}]}},le={scope:"keyword",match:Qt(/@/,xn(...Bde),mu(xn(/\(/,/\s+/)))},be={scope:"meta",match:Qt(/@/,Pi)},V=[P,le,be],te={match:mu(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Qt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,n2,"+")},{className:"type",match:Zd,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Qt(/\s+&\s+/,mu(Zd)),relevance:0}]},de={begin:/</,end:/>/,keywords:c,contains:[...n,...d,...V,g,te]};te.contains.push(de);const ee={match:Qt(Pi,/\s*:/),keywords:"_|0",relevance:0},ie={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",ee,...n,R,...d,...p,...b,E,W,...Y,...V,te]},G={begin:/</,end:/>/,keywords:"repeat each",contains:[...n,te]},N={begin:xn(mu(Qt(Pi,/\s*:/)),mu(Qt(Pi,/\s+/,Pi,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Pi}]},I={begin:/\(/,end:/\)/,keywords:c,contains:[N,...n,...d,...b,E,W,...V,te,ie],endsParent:!0,illegal:/["']/},T={match:[/(func|macro)/,/\s+/,xn(z.match,Pi,Qm)],className:{1:"keyword",3:"title.function"},contains:[G,I,t],illegal:[/\[/,/%/]},J={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[G,I,t],illegal:/\[|%/},ve={match:[/operator/,/\s+/,Qm],className:{1:"keyword",3:"title"}},Z={begin:[/precedencegroup/,/\s+/,Zd],className:{1:"keyword",3:"title"},contains:[te],keywords:[...Ade,...xx],end:/}/},ge={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},De={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Oe={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Pi,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[G,...d,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:Zd},...d],relevance:0}]};for(const ae of W.variants){const we=ae.contains.find(ke=>ke.label==="interpol");we.keywords=c;const ne=[...d,...p,...b,E,W,...Y];we.contains=[...ne,{begin:/\(/,end:/\)/,contains:["self",...ne]}]}return{name:"Swift",keywords:c,contains:[...n,T,J,ge,De,Oe,ve,Z,{beginKeywords:"import",end:/$/,contains:[...n],relevance:0},R,...d,...p,...b,E,W,...Y,...V,te,ie]}}const i2="[A-Za-z$_][0-9A-Za-z$_]*",_F=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],kF=["true","false","null","undefined","NaN","Infinity"],OF=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],AF=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],DF=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],BF=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],TF=[].concat(DF,OF,AF);function Nde(e){const t=e.regex,r=(P,{after:le})=>{const be="</"+P[0].slice(1);return P.input.indexOf(be,le)!==-1},n=i2,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(P,le)=>{const be=P[0].length+P.index,V=P.input[be];if(V==="<"||V===","){le.ignoreMatch();return}V===">"&&(r(P,{after:be})||le.ignoreMatch());let te;const de=P.input.substring(be);if(te=de.match(/^\s*=/)){le.ignoreMatch();return}if((te=de.match(/^\s+extends\s+/))&&te.index===0){le.ignoreMatch();return}}},l={$pattern:i2,keyword:_F,literal:kF,built_in:TF,"variable.language":BF},u="[0-9](_?[0-9])*",c=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},y={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},E=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,y,b,{match:/\$\d+/},h];f.contains=E.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(E)});const _=[].concat(v,f.contains),j=_.concat([{begin:/(\s*)\(/,end:/\)/,keywords:l,contains:["self"].concat(_)}]),F={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:j},k={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},U={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...OF,...AF]}},W={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},K={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[F],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function O(P){return t.concat("(?!",P.join("|"),")")}const R={match:t.concat(/\b/,O([...DF,"super","import"].map(P=>`${P}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},z={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},F]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Y={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[F]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:j,CLASS_REFERENCE:U},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),W,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,y,b,v,{match:/\$\d+/},h,U,{scope:"attr",match:n+t.lookahead(":"),relevance:0},Y,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:j}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},K,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[F,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},z,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[F]},R,$,k,H,{match:/\$[(.]/}]}}function Mde(e){const t=e.regex,r=Nde(e),n=i2,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[r.exports.CLASS_REFERENCE]},l={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},u=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:i2,keyword:_F.concat(u),literal:kF,built_in:TF.concat(i),"variable.language":BF},d={className:"meta",begin:"@"+n},h=(y,b,x)=>{const v=y.contains.findIndex(E=>E.label===b);if(v===-1)throw new Error("can not find mode to replace");y.contains.splice(v,1,x)};Object.assign(r.keywords,c),r.exports.PARAMS_CONTAINS.push(d);const f=r.contains.find(y=>y.scope==="attr"),p=Object.assign({},f,{match:t.concat(n,t.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,f,p]),r.contains=r.contains.concat([d,s,o,p]),h(r,"shebang",e.SHEBANG()),h(r,"use_strict",l);const g=r.contains.find(y=>y.label==="func.def");return g.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function Ide(e){const t=e.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},n={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,l=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:t.concat(/# */,t.either(s,i),/ *#/)},{begin:t.concat(/# */,l,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(s,i),/ +/,t.either(o,l),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},h=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,n,u,c,d,h,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function $de(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const r=e.COMMENT(/;;/,/$/),n=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},l={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:n},contains:[r,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,i,e.QUOTE_STRING_MODE,u,c,l]}}function Lde(e){const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(s,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),u=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,u,l,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,o,u,l]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(r,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Rde(e){const t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},l=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),f={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},b=[n,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},f,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,y,s,o],x=[...b];return x.pop(),x.push(l),p.contains=x,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}const zde={arduino:E1e,bash:C1e,c:S1e,cpp:F1e,csharp:j1e,css:N1e,diff:M1e,go:I1e,graphql:$1e,ini:L1e,java:R1e,javascript:W1e,json:V1e,kotlin:K1e,less:rde,lua:nde,makefile:ide,markdown:ade,objectivec:sde,perl:ode,php:lde,"php-template":ude,plaintext:cde,python:dde,"python-repl":hde,r:fde,ruby:pde,rust:mde,scss:Sde,shell:Fde,sql:jde,swift:Pde,typescript:Mde,vbnet:Ide,wasm:$de,xml:Lde,yaml:Rde};function PF(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const r=e[t],n=typeof r;(n==="object"||n==="function")&&!Object.isFrozen(r)&&PF(r)}),e}class wx{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function NF(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ss(e,...t){const r=Object.create(null);for(const n in e)r[n]=e[n];return t.forEach(function(n){for(const i in n)r[i]=n[i]}),r}const Ude="</span>",Ex=e=>!!e.scope,Hde=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const r=e.split(".");return[`${t}${r.shift()}`,...r.map((n,i)=>`${n}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class qde{constructor(t,r){this.buffer="",this.classPrefix=r.classPrefix,t.walk(this)}addText(t){this.buffer+=NF(t)}openNode(t){if(!Ex(t))return;const r=Hde(t.scope,{prefix:this.classPrefix});this.span(r)}closeNode(t){Ex(t)&&(this.buffer+=Ude)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Cx=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Rg{constructor(){this.rootNode=Cx(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const r=Cx({scope:t});this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(n=>this._walk(t,n)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{Rg._collapse(r)}))}}class Wde extends Rg{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,r){const n=t.root;r&&(n.scope=`language:${r}`),this.add(n)}toHTML(){return new qde(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function U1(e){return e?typeof e=="string"?e:e.source:null}function MF(e){return No("(?=",e,")")}function Vde(e){return No("(?:",e,")*")}function Gde(e){return No("(?:",e,")?")}function No(...e){return e.map(r=>U1(r)).join("")}function Kde(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function zg(...e){return"("+(Kde(e).capture?"":"?:")+e.map(n=>U1(n)).join("|")+")"}function IF(e){return new RegExp(e.toString()+"|").exec("").length-1}function Yde(e,t){const r=e&&e.exec(t);return r&&r.index===0}const Zde=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ug(e,{joinWith:t}){let r=0;return e.map(n=>{r+=1;const i=r;let s=U1(n),o="";for(;s.length>0;){const l=Zde.exec(s);if(!l){o+=s;break}o+=s.substring(0,l.index),s=s.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?o+="\\"+String(Number(l[1])+i):(o+=l[0],l[0]==="("&&r++)}return o}).map(n=>`(${n})`).join(t)}const Xde=/\b\B/,$F="[a-zA-Z]\\w*",Hg="[a-zA-Z_]\\w*",LF="\\b\\d+(\\.\\d+)?",RF="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",zF="\\b(0b[01]+)",Jde="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Qde=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=No(t,/.*\b/,e.binary,/\b.*/)),ss({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(r,n)=>{r.index!==0&&n.ignoreMatch()}},e)},H1={begin:"\\\\[\\s\\S]",relevance:0},ehe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[H1]},the={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[H1]},rhe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},cf=function(e,t,r={}){const n=ss({scope:"comment",begin:e,end:t,contains:[]},r);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=zg("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:No(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},nhe=cf("//","$"),ihe=cf("/\\*","\\*/"),ahe=cf("#","$"),she={scope:"number",begin:LF,relevance:0},ohe={scope:"number",begin:RF,relevance:0},lhe={scope:"number",begin:zF,relevance:0},uhe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[H1,{begin:/\[/,end:/\]/,relevance:0,contains:[H1]}]},che={scope:"title",begin:$F,relevance:0},dhe={scope:"title",begin:Hg,relevance:0},hhe={begin:"\\.\\s*"+Hg,relevance:0},fhe=function(e){return Object.assign(e,{"on:begin":(t,r)=>{r.data._beginMatch=t[1]},"on:end":(t,r)=>{r.data._beginMatch!==t[1]&&r.ignoreMatch()}})};var Xd=Object.freeze({__proto__:null,APOS_STRING_MODE:ehe,BACKSLASH_ESCAPE:H1,BINARY_NUMBER_MODE:lhe,BINARY_NUMBER_RE:zF,COMMENT:cf,C_BLOCK_COMMENT_MODE:ihe,C_LINE_COMMENT_MODE:nhe,C_NUMBER_MODE:ohe,C_NUMBER_RE:RF,END_SAME_AS_BEGIN:fhe,HASH_COMMENT_MODE:ahe,IDENT_RE:$F,MATCH_NOTHING_RE:Xde,METHOD_GUARD:hhe,NUMBER_MODE:she,NUMBER_RE:LF,PHRASAL_WORDS_MODE:rhe,QUOTE_STRING_MODE:the,REGEXP_MODE:uhe,RE_STARTERS_RE:Jde,SHEBANG:Qde,TITLE_MODE:che,UNDERSCORE_IDENT_RE:Hg,UNDERSCORE_TITLE_MODE:dhe});function phe(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function mhe(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ghe(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=phe,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function yhe(e,t){Array.isArray(e.illegal)&&(e.illegal=zg(...e.illegal))}function bhe(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function xhe(e,t){e.relevance===void 0&&(e.relevance=1)}const vhe=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const r=Object.assign({},e);Object.keys(e).forEach(n=>{delete e[n]}),e.keywords=r.keywords,e.begin=No(r.beforeMatch,MF(r.begin)),e.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},e.relevance=0,delete r.beforeMatch},whe=["of","and","for","in","not","or","if","then","parent","list","value"],Ehe="keyword";function UF(e,t,r=Ehe){const n=Object.create(null);return typeof e=="string"?i(r,e.split(" ")):Array.isArray(e)?i(r,e):Object.keys(e).forEach(function(s){Object.assign(n,UF(e[s],t,s))}),n;function i(s,o){t&&(o=o.map(l=>l.toLowerCase())),o.forEach(function(l){const u=l.split("|");n[u[0]]=[s,Che(u[0],u[1])]})}}function Che(e,t){return t?Number(t):She(e)?0:1}function She(e){return whe.includes(e.toLowerCase())}const Sx={},Ys=e=>{console.error(e)},Fx=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Vo=(e,t)=>{Sx[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Sx[`${e}/${t}`]=!0)},a2=new Error;function HF(e,t,{key:r}){let n=0;const i=e[r],s={},o={};for(let l=1;l<=t.length;l++)o[l+n]=i[l],s[l+n]=!0,n+=IF(t[l-1]);e[r]=o,e[r]._emit=s,e[r]._multi=!0}function Fhe(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ys("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),a2;if(typeof e.beginScope!="object"||e.beginScope===null)throw Ys("beginScope must be object"),a2;HF(e,e.begin,{key:"beginScope"}),e.begin=Ug(e.begin,{joinWith:""})}}function jhe(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ys("skip, excludeEnd, returnEnd not compatible with endScope: {}"),a2;if(typeof e.endScope!="object"||e.endScope===null)throw Ys("endScope must be object"),a2;HF(e,e.end,{key:"endScope"}),e.end=Ug(e.end,{joinWith:""})}}function _he(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function khe(e){_he(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Fhe(e),jhe(e)}function Ohe(e){function t(o,l){return new RegExp(U1(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(l?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,l]),this.matchAt+=IF(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(u=>u[1]);this.matcherRe=t(Ug(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(l);if(!u)return null;const c=u.findIndex((h,f)=>f>0&&h!==void 0),d=this.matchIndexes[c];return u.splice(0,c),Object.assign(u,d)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const u=new r;return this.rules.slice(l).forEach(([c,d])=>u.addRule(c,d)),u.compile(),this.multiRegexes[l]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,u){this.rules.push([l,u]),u.type==="begin"&&this.count++}exec(l){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let c=u.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,c=d.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(o){const l=new n;return o.contains.forEach(u=>l.addRule(u.begin,{rule:u,type:"begin"})),o.terminatorEnd&&l.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&l.addRule(o.illegal,{type:"illegal"}),l}function s(o,l){const u=o;if(o.isCompiled)return u;[mhe,bhe,khe,vhe].forEach(d=>d(o,l)),e.compilerExtensions.forEach(d=>d(o,l)),o.__beforeBegin=null,[ghe,yhe,xhe].forEach(d=>d(o,l)),o.isCompiled=!0;let c=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=UF(o.keywords,e.case_insensitive)),u.keywordPatternRe=t(c,!0),l&&(o.begin||(o.begin=/\B|\b/),u.beginRe=t(u.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(u.endRe=t(u.end)),u.terminatorEnd=U1(u.end)||"",o.endsWithParent&&l.terminatorEnd&&(u.terminatorEnd+=(o.end?"|":"")+l.terminatorEnd)),o.illegal&&(u.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(d){return Ahe(d==="self"?o:d)})),o.contains.forEach(function(d){s(d,u)}),o.starts&&s(o.starts,l),u.matcher=i(u),u}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ss(e.classNameAliases||{}),s(e)}function qF(e){return e?e.endsWithParent||qF(e.starts):!1}function Ahe(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return ss(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:qF(e)?ss(e,{starts:e.starts?ss(e.starts):null}):Object.isFrozen(e)?ss(e):e}var Dhe="11.11.1";class Bhe extends Error{constructor(t,r){super(t),this.name="HTMLInjectionError",this.html=r}}const e5=NF,jx=ss,_x=Symbol("nomatch"),The=7,WF=function(e){const t=Object.create(null),r=Object.create(null),n=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Wde};function u(B){return l.noHighlightRe.test(B)}function c(B){let Y=B.className+" ";Y+=B.parentNode?B.parentNode.className:"";const P=l.languageDetectRe.exec(Y);if(P){const le=U(P[1]);return le||(Fx(s.replace("{}",P[1])),Fx("Falling back to no-highlight mode for this block.",B)),le?P[1]:"no-highlight"}return Y.split(/\s+/).find(le=>u(le)||U(le))}function d(B,Y,P){let le="",be="";typeof Y=="object"?(le=B,P=Y.ignoreIllegals,be=Y.language):(Vo("10.7.0","highlight(lang, code, ...args) has been deprecated."),Vo("10.7.0",`Please use highlight(code, options) instead.
- https://github.com/highlightjs/highlight.js/issues/2277`),be=B,le=Y),P===void 0&&(P=!0);const V={code:le,language:be};z("before:highlight",V);const te=V.result?V.result:h(V.language,V.code,P);return te.code=V.code,z("after:highlight",te),te}function h(B,Y,P,le){const be=Object.create(null);function V(ce,Ce){return ce.keywords[Ce]}function te(){if(!ne.keywords){Be.addText(Ae);return}let ce=0;ne.keywordPatternRe.lastIndex=0;let Ce=ne.keywordPatternRe.exec(Ae),Te="";for(;Ce;){Te+=Ae.substring(ce,Ce.index);const Qe=Oe.case_insensitive?Ce[0].toLowerCase():Ce[0],Fe=V(ne,Qe);if(Fe){const[Ve,ot]=Fe;if(Be.addText(Te),Te="",be[Qe]=(be[Qe]||0)+1,be[Qe]<=The&&(Q+=ot),Ve.startsWith("_"))Te+=Ce[0];else{const Ot=Oe.classNameAliases[Ve]||Ve;ie(Ce[0],Ot)}}else Te+=Ce[0];ce=ne.keywordPatternRe.lastIndex,Ce=ne.keywordPatternRe.exec(Ae)}Te+=Ae.substring(ce),Be.addText(Te)}function de(){if(Ae==="")return;let ce=null;if(typeof ne.subLanguage=="string"){if(!t[ne.subLanguage]){Be.addText(Ae);return}ce=h(ne.subLanguage,Ae,!0,ke[ne.subLanguage]),ke[ne.subLanguage]=ce._top}else ce=p(Ae,ne.subLanguage.length?ne.subLanguage:null);ne.relevance>0&&(Q+=ce.relevance),Be.__addSublanguage(ce._emitter,ce.language)}function ee(){ne.subLanguage!=null?de():te(),Ae=""}function ie(ce,Ce){ce!==""&&(Be.startScope(Ce),Be.addText(ce),Be.endScope())}function G(ce,Ce){let Te=1;const Qe=Ce.length-1;for(;Te<=Qe;){if(!ce._emit[Te]){Te++;continue}const Fe=Oe.classNameAliases[ce[Te]]||ce[Te],Ve=Ce[Te];Fe?ie(Ve,Fe):(Ae=Ve,te(),Ae=""),Te++}}function N(ce,Ce){return ce.scope&&typeof ce.scope=="string"&&Be.openNode(Oe.classNameAliases[ce.scope]||ce.scope),ce.beginScope&&(ce.beginScope._wrap?(ie(Ae,Oe.classNameAliases[ce.beginScope._wrap]||ce.beginScope._wrap),Ae=""):ce.beginScope._multi&&(G(ce.beginScope,Ce),Ae="")),ne=Object.create(ce,{parent:{value:ne}}),ne}function I(ce,Ce,Te){let Qe=Yde(ce.endRe,Te);if(Qe){if(ce["on:end"]){const Fe=new wx(ce);ce["on:end"](Ce,Fe),Fe.isMatchIgnored&&(Qe=!1)}if(Qe){for(;ce.endsParent&&ce.parent;)ce=ce.parent;return ce}}if(ce.endsWithParent)return I(ce.parent,Ce,Te)}function T(ce){return ne.matcher.regexIndex===0?(Ae+=ce[0],1):(D=!0,0)}function J(ce){const Ce=ce[0],Te=ce.rule,Qe=new wx(Te),Fe=[Te.__beforeBegin,Te["on:begin"]];for(const Ve of Fe)if(Ve&&(Ve(ce,Qe),Qe.isMatchIgnored))return T(Ce);return Te.skip?Ae+=Ce:(Te.excludeBegin&&(Ae+=Ce),ee(),!Te.returnBegin&&!Te.excludeBegin&&(Ae=Ce)),N(Te,ce),Te.returnBegin?0:Ce.length}function ve(ce){const Ce=ce[0],Te=Y.substring(ce.index),Qe=I(ne,ce,Te);if(!Qe)return _x;const Fe=ne;ne.endScope&&ne.endScope._wrap?(ee(),ie(Ce,ne.endScope._wrap)):ne.endScope&&ne.endScope._multi?(ee(),G(ne.endScope,ce)):Fe.skip?Ae+=Ce:(Fe.returnEnd||Fe.excludeEnd||(Ae+=Ce),ee(),Fe.excludeEnd&&(Ae=Ce));do ne.scope&&Be.closeNode(),!ne.skip&&!ne.subLanguage&&(Q+=ne.relevance),ne=ne.parent;while(ne!==Qe.parent);return Qe.starts&&N(Qe.starts,ce),Fe.returnEnd?0:Ce.length}function Z(){const ce=[];for(let Ce=ne;Ce!==Oe;Ce=Ce.parent)Ce.scope&&ce.unshift(Ce.scope);ce.forEach(Ce=>Be.openNode(Ce))}let ge={};function De(ce,Ce){const Te=Ce&&Ce[0];if(Ae+=ce,Te==null)return ee(),0;if(ge.type==="begin"&&Ce.type==="end"&&ge.index===Ce.index&&Te===""){if(Ae+=Y.slice(Ce.index,Ce.index+1),!i){const Qe=new Error(`0 width match regex (${B})`);throw Qe.languageName=B,Qe.badRule=ge.rule,Qe}return 1}if(ge=Ce,Ce.type==="begin")return J(Ce);if(Ce.type==="illegal"&&!P){const Qe=new Error('Illegal lexeme "'+Te+'" for mode "'+(ne.scope||"<unnamed>")+'"');throw Qe.mode=ne,Qe}else if(Ce.type==="end"){const Qe=ve(Ce);if(Qe!==_x)return Qe}if(Ce.type==="illegal"&&Te==="")return Ae+=`
- `,1;if(se>1e5&&se>Ce.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ae+=Te,Te.length}const Oe=U(B);if(!Oe)throw Ys(s.replace("{}",B)),new Error('Unknown language: "'+B+'"');const ae=Ohe(Oe);let we="",ne=le||ae;const ke={},Be=new l.__emitter(l);Z();let Ae="",Q=0,he=0,se=0,D=!1;try{if(Oe.__emitTokens)Oe.__emitTokens(Y,Be);else{for(ne.matcher.considerAll();;){se++,D?D=!1:ne.matcher.considerAll(),ne.matcher.lastIndex=he;const ce=ne.matcher.exec(Y);if(!ce)break;const Ce=Y.substring(he,ce.index),Te=De(Ce,ce);he=ce.index+Te}De(Y.substring(he))}return Be.finalize(),we=Be.toHTML(),{language:B,value:we,relevance:Q,illegal:!1,_emitter:Be,_top:ne}}catch(ce){if(ce.message&&ce.message.includes("Illegal"))return{language:B,value:e5(Y),illegal:!0,relevance:0,_illegalBy:{message:ce.message,index:he,context:Y.slice(he-100,he+100),mode:ce.mode,resultSoFar:we},_emitter:Be};if(i)return{language:B,value:e5(Y),illegal:!1,relevance:0,errorRaised:ce,_emitter:Be,_top:ne};throw ce}}function f(B){const Y={value:e5(B),illegal:!1,relevance:0,_top:o,_emitter:new l.__emitter(l)};return Y._emitter.addText(B),Y}function p(B,Y){Y=Y||l.languages||Object.keys(t);const P=f(B),le=Y.filter(U).filter(K).map(ee=>h(ee,B,!1));le.unshift(P);const be=le.sort((ee,ie)=>{if(ee.relevance!==ie.relevance)return ie.relevance-ee.relevance;if(ee.language&&ie.language){if(U(ee.language).supersetOf===ie.language)return 1;if(U(ie.language).supersetOf===ee.language)return-1}return 0}),[V,te]=be,de=V;return de.secondBest=te,de}function g(B,Y,P){const le=Y&&r[Y]||P;B.classList.add("hljs"),B.classList.add(`language-${le}`)}function y(B){let Y=null;const P=c(B);if(u(P))return;if(z("before:highlightElement",{el:B,language:P}),B.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",B);return}if(B.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(B)),l.throwUnescapedHTML))throw new Bhe("One of your code blocks includes unescaped HTML.",B.innerHTML);Y=B;const le=Y.textContent,be=P?d(le,{language:P,ignoreIllegals:!0}):p(le);B.innerHTML=be.value,B.dataset.highlighted="yes",g(B,P,be.language),B.result={language:be.language,re:be.relevance,relevance:be.relevance},be.secondBest&&(B.secondBest={language:be.secondBest.language,relevance:be.secondBest.relevance}),z("after:highlightElement",{el:B,result:be,text:le})}function b(B){l=jx(l,B)}const x=()=>{_(),Vo("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){_(),Vo("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let E=!1;function _(){function B(){_()}if(document.readyState==="loading"){E||window.addEventListener("DOMContentLoaded",B,!1),E=!0;return}document.querySelectorAll(l.cssSelector).forEach(y)}function j(B,Y){let P=null;try{P=Y(e)}catch(le){if(Ys("Language definition for '{}' could not be registered.".replace("{}",B)),i)Ys(le);else throw le;P=o}P.name||(P.name=B),t[B]=P,P.rawDefinition=Y.bind(null,e),P.aliases&&W(P.aliases,{languageName:B})}function F(B){delete t[B];for(const Y of Object.keys(r))r[Y]===B&&delete r[Y]}function k(){return Object.keys(t)}function U(B){return B=(B||"").toLowerCase(),t[B]||t[r[B]]}function W(B,{languageName:Y}){typeof B=="string"&&(B=[B]),B.forEach(P=>{r[P.toLowerCase()]=Y})}function K(B){const Y=U(B);return Y&&!Y.disableAutodetect}function $(B){B["before:highlightBlock"]&&!B["before:highlightElement"]&&(B["before:highlightElement"]=Y=>{B["before:highlightBlock"](Object.assign({block:Y.el},Y))}),B["after:highlightBlock"]&&!B["after:highlightElement"]&&(B["after:highlightElement"]=Y=>{B["after:highlightBlock"](Object.assign({block:Y.el},Y))})}function O(B){$(B),n.push(B)}function R(B){const Y=n.indexOf(B);Y!==-1&&n.splice(Y,1)}function z(B,Y){const P=B;n.forEach(function(le){le[P]&&le[P](Y)})}function H(B){return Vo("10.7.0","highlightBlock will be removed entirely in v12.0"),Vo("10.7.0","Please use highlightElement now."),y(B)}Object.assign(e,{highlight:d,highlightAuto:p,highlightAll:_,highlightElement:y,highlightBlock:H,configure:b,initHighlighting:x,initHighlightingOnLoad:v,registerLanguage:j,unregisterLanguage:F,listLanguages:k,getLanguage:U,registerAliases:W,autoDetection:K,inherit:jx,addPlugin:O,removePlugin:R}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=Dhe,e.regex={concat:No,lookahead:MF,either:zg,optional:Gde,anyNumberOfTimes:Vde};for(const B in Xd)typeof Xd[B]=="object"&&PF(Xd[B]);return Object.assign(e,Xd),e},Fl=WF({});Fl.newInstance=()=>WF({});var Phe=Fl;Fl.HighlightJS=Fl;Fl.default=Fl;const Nhe=Yv(Phe),kx={},Mhe="hljs-";function Ihe(e){const t=Nhe.newInstance();return s(e),{highlight:r,highlightAuto:n,listLanguages:i,register:s,registerAlias:o,registered:l};function r(u,c,d){const h=d||kx,f=typeof h.prefix=="string"?h.prefix:Mhe;if(!t.getLanguage(u))throw new Error("Unknown language: `"+u+"` is not registered");t.configure({__emitter:$he,classPrefix:f});const p=t.highlight(c,{ignoreIllegals:!0,language:u});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const g=p._emitter.root,y=g.data;return y.language=p.language,y.relevance=p.relevance,g}function n(u,c){const h=(c||kx).subset||i();let f=-1,p=0,g;for(;++f<h.length;){const y=h[f];if(!t.getLanguage(y))continue;const b=r(y,u,c);b.data&&b.data.relevance!==void 0&&b.data.relevance>p&&(p=b.data.relevance,g=b)}return g||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return t.listLanguages()}function s(u,c){if(typeof u=="string")t.registerLanguage(u,c);else{let d;for(d in u)Object.hasOwn(u,d)&&t.registerLanguage(d,u[d])}}function o(u,c){if(typeof u=="string")t.registerAliases(typeof c=="string"?c:[...c],{languageName:u});else{let d;for(d in u)if(Object.hasOwn(u,d)){const h=u[d];t.registerAliases(typeof h=="string"?h:[...h],{languageName:d})}}}function l(u){return!!t.getLanguage(u)}}class $he{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const r=this.stack[this.stack.length-1],n=r.children[r.children.length-1];n&&n.type==="text"?n.value+=t:r.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,r){const n=this.stack[this.stack.length-1],i=t.root.children;r?n.children.push({type:"element",tagName:"span",properties:{className:[r]},children:i}):n.children.push(...i)}openNode(t){const r=this,n=t.split(".").map(function(o,l){return l?o+"_".repeat(l):r.options.classPrefix+o}),i=this.stack[this.stack.length-1],s={type:"element",tagName:"span",properties:{className:n},children:[]};i.children.push(s),this.stack.push(s)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const Lhe={};function Rhe(e){const t=e||Lhe,r=t.aliases,n=t.detect||!1,i=t.languages||zde,s=t.plainText,o=t.prefix,l=t.subset;let u="hljs";const c=Ihe(i);if(r&&c.registerAlias(r),o){const d=o.indexOf("-");u=d===-1?o:o.slice(0,d)}return function(d,h){Q4(d,"element",function(f,p,g){if(f.tagName!=="code"||!g||g.type!=="element"||g.tagName!=="pre")return;const y=zhe(f);if(y===!1||!y&&!n||y&&s&&s.includes(y))return;Array.isArray(f.properties.className)||(f.properties.className=[]),f.properties.className.includes(u)||f.properties.className.unshift(u);const b=rS(f,{whitespace:"pre"});let x;try{x=y?c.highlight(y,b,{prefix:o}):c.highlightAuto(b,{prefix:o,subset:l})}catch(v){const E=v;if(y&&/Unknown language/.test(E.message)){h.message("Cannot highlight as `"+y+"`, it’s not registered",{ancestors:[g,f],cause:E,place:f.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw E}!y&&x.data&&x.data.language&&f.properties.className.push("language-"+x.data.language),x.children.length>0&&(f.children=x.children)})}}function zhe(e){const t=e.properties.className;let r=-1;if(!Array.isArray(t))return;let n;for(;++r<t.length;){const i=String(t[r]);if(i==="no-highlight"||i==="nohighlight")return!1;!n&&i.slice(0,5)==="lang-"&&(n=i.slice(5)),!n&&i.slice(0,9)==="language-"&&(n=i.slice(9))}return n}const wh={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},n)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;switch(n){case"r":return wh.hue2rgb(s,i,e+1/3)*255;case"g":return wh.hue2rgb(s,i,e)*255;case"b":return wh.hue2rgb(s,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},n)=>{e/=255,t/=255,r/=255;const i=Math.max(e,t,r),s=Math.min(e,t,r),o=(i+s)/2;if(n==="l")return o*100;if(i===s)return 0;const l=i-s,u=o>.5?l/(2-i-s):l/(i+s);if(n==="s")return u*100;switch(i){case e:return((t-r)/l+(t<r?6:0))*60;case t:return((r-e)/l+2)*60;case r:return((e-t)/l+4)*60;default:return-1}}},Uhe={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},Hhe={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Et={channel:wh,lang:Uhe,unit:Hhe},Ja={};for(let e=0;e<=255;e++)Ja[e]=Et.unit.dec2hex(e);const an={ALL:0,RGB:1,HSL:2};class qhe{constructor(){this.type=an.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=an.ALL}is(t){return this.type===t}}class Whe{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new qhe}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=an.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:n,l:i}=t;r===void 0&&(t.h=Et.channel.rgb2hsl(t,"h")),n===void 0&&(t.s=Et.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=Et.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:n,b:i}=t;r===void 0&&(t.r=Et.channel.hsl2rgb(t,"r")),n===void 0&&(t.g=Et.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=Et.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(an.HSL)&&r!==void 0?r:(this._ensureHSL(),Et.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(an.HSL)&&r!==void 0?r:(this._ensureHSL(),Et.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(an.HSL)&&r!==void 0?r:(this._ensureHSL(),Et.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(an.RGB)&&r!==void 0?r:(this._ensureRGB(),Et.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(an.RGB)&&r!==void 0?r:(this._ensureRGB(),Et.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(an.RGB)&&r!==void 0?r:(this._ensureRGB(),Et.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(an.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(an.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(an.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(an.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(an.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(an.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const df=new Whe({r:0,g:0,b:0,a:0},"transparent"),cl={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(cl.re);if(!t)return;const r=t[1],n=parseInt(r,16),i=r.length,s=i%4===0,o=i>4,l=o?1:17,u=o?8:4,c=s?0:-1,d=o?255:15;return df.set({r:(n>>u*(c+3)&d)*l,g:(n>>u*(c+2)&d)*l,b:(n>>u*(c+1)&d)*l,a:s?(n&d)*l/255:1},e)},stringify:e=>{const{r:t,g:r,b:n,a:i}=e;return i<1?`#${Ja[Math.round(t)]}${Ja[Math.round(r)]}${Ja[Math.round(n)]}${Ja[Math.round(i*255)]}`:`#${Ja[Math.round(t)]}${Ja[Math.round(r)]}${Ja[Math.round(n)]}`}},qs={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(qs.hueRe);if(t){const[,r,n]=t;switch(n){case"grad":return Et.channel.clamp.h(parseFloat(r)*.9);case"rad":return Et.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Et.channel.clamp.h(parseFloat(r)*360)}}return Et.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(qs.re);if(!r)return;const[,n,i,s,o,l]=r;return df.set({h:qs._hue2deg(n),s:Et.channel.clamp.s(parseFloat(i)),l:Et.channel.clamp.l(parseFloat(s)),a:o?Et.channel.clamp.a(l?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:r,l:n,a:i}=e;return i<1?`hsla(${Et.lang.round(t)}, ${Et.lang.round(r)}%, ${Et.lang.round(n)}%, ${i})`:`hsl(${Et.lang.round(t)}, ${Et.lang.round(r)}%, ${Et.lang.round(n)}%)`}},Hu={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Hu.colors[e];if(t)return cl.parse(t)},stringify:e=>{const t=cl.stringify(e);for(const r in Hu.colors)if(Hu.colors[r]===t)return r}},Bu={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Bu.re);if(!r)return;const[,n,i,s,o,l,u,c,d]=r;return df.set({r:Et.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:Et.channel.clamp.g(o?parseFloat(s)*2.55:parseFloat(s)),b:Et.channel.clamp.b(u?parseFloat(l)*2.55:parseFloat(l)),a:c?Et.channel.clamp.a(d?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:n,a:i}=e;return i<1?`rgba(${Et.lang.round(t)}, ${Et.lang.round(r)}, ${Et.lang.round(n)}, ${Et.lang.round(i)})`:`rgb(${Et.lang.round(t)}, ${Et.lang.round(r)}, ${Et.lang.round(n)})`}},Yi={format:{keyword:Hu,hex:cl,rgb:Bu,rgba:Bu,hsl:qs,hsla:qs},parse:e=>{if(typeof e!="string")return e;const t=cl.parse(e)||Bu.parse(e)||qs.parse(e)||Hu.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(an.HSL)||e.data.r===void 0?qs.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Bu.stringify(e):cl.stringify(e)},VF=(e,t)=>{const r=Yi.parse(e);for(const n in t)r[n]=Et.channel.clamp[n](t[n]);return Yi.stringify(r)},qu=(e,t,r=0,n=1)=>{if(typeof e!="number")return VF(e,{a:t});const i=df.set({r:Et.channel.clamp.r(e),g:Et.channel.clamp.g(t),b:Et.channel.clamp.b(r),a:Et.channel.clamp.a(n)});return Yi.stringify(i)},Vhe=e=>{const{r:t,g:r,b:n}=Yi.parse(e),i=.2126*Et.channel.toLinear(t)+.7152*Et.channel.toLinear(r)+.0722*Et.channel.toLinear(n);return Et.lang.round(i)},Ghe=e=>Vhe(e)>=.5,xd=e=>!Ghe(e),GF=(e,t,r)=>{const n=Yi.parse(e),i=n[t],s=Et.channel.clamp[t](i+r);return i!==s&&(n[t]=s),Yi.stringify(n)},it=(e,t)=>GF(e,"l",t),mt=(e,t)=>GF(e,"l",-t),xe=(e,t)=>{const r=Yi.parse(e),n={};for(const i in t)t[i]&&(n[i]=r[i]+t[i]);return VF(e,n)},Khe=(e,t,r=50)=>{const{r:n,g:i,b:s,a:o}=Yi.parse(e),{r:l,g:u,b:c,a:d}=Yi.parse(t),h=r/100,f=h*2-1,p=o-d,y=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,b=1-y,x=n*y+l*b,v=i*y+u*b,E=s*y+c*b,_=o*h+d*(1-h);return qu(x,v,E,_)},Ye=(e,t=100)=>{const r=Yi.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Khe(r,e,t)};/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:KF,setPrototypeOf:Ox,isFrozen:Yhe,getPrototypeOf:Zhe,getOwnPropertyDescriptor:Xhe}=Object;let{freeze:jn,seal:pi,create:YF}=Object,{apply:u4,construct:c4}=typeof Reflect<"u"&&Reflect;jn||(jn=function(t){return t});pi||(pi=function(t){return t});u4||(u4=function(t,r,n){return t.apply(r,n)});c4||(c4=function(t,r){return new t(...r)});const Jd=_n(Array.prototype.forEach),Jhe=_n(Array.prototype.lastIndexOf),Ax=_n(Array.prototype.pop),gu=_n(Array.prototype.push),Qhe=_n(Array.prototype.splice),Eh=_n(String.prototype.toLowerCase),t5=_n(String.prototype.toString),Dx=_n(String.prototype.match),yu=_n(String.prototype.replace),e2e=_n(String.prototype.indexOf),t2e=_n(String.prototype.trim),vi=_n(Object.prototype.hasOwnProperty),bn=_n(RegExp.prototype.test),bu=r2e(TypeError);function _n(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return u4(e,t,n)}}function r2e(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c4(e,r)}}function At(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Eh;Ox&&Ox(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const s=r(i);s!==i&&(Yhe(t)||(t[n]=s),i=s)}e[i]=!0}return e}function n2e(e){for(let t=0;t<e.length;t++)vi(e,t)||(e[t]=null);return e}function da(e){const t=YF(null);for(const[r,n]of KF(e))vi(e,r)&&(Array.isArray(n)?t[r]=n2e(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=da(n):t[r]=n);return t}function xu(e,t){for(;e!==null;){const n=Xhe(e,t);if(n){if(n.get)return _n(n.get);if(typeof n.value=="function")return _n(n.value)}e=Zhe(e)}function r(){return null}return r}const Bx=jn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),r5=jn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),n5=jn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),i2e=jn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),i5=jn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),a2e=jn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Tx=jn(["#text"]),Px=jn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),a5=jn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Nx=jn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Qd=jn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),s2e=pi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),o2e=pi(/<%[\w\W]*|[\w\W]*%>/gm),l2e=pi(/\$\{[\w\W]*/gm),u2e=pi(/^data-[\-\w.\u00B7-\uFFFF]+$/),c2e=pi(/^aria-[\-\w]+$/),ZF=pi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),d2e=pi(/^(?:\w+script|data):/i),h2e=pi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),XF=pi(/^html$/i),f2e=pi(/^[a-z][.\w]*(-[.\w]+)+$/i);var Mx=Object.freeze({__proto__:null,ARIA_ATTR:c2e,ATTR_WHITESPACE:h2e,CUSTOM_ELEMENT:f2e,DATA_ATTR:u2e,DOCTYPE_NAME:XF,ERB_EXPR:o2e,IS_ALLOWED_URI:ZF,IS_SCRIPT_OR_DATA:d2e,MUSTACHE_EXPR:s2e,TMPLIT_EXPR:l2e});const vu={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},p2e=function(){return typeof window>"u"?null:window},m2e=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const s="dompurify"+(n?"#"+n:"");try{return t.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Ix=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function JF(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p2e();const t=rt=>JF(rt);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==vu.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:l,Element:u,NodeFilter:c,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:p}=e,g=u.prototype,y=xu(g,"cloneNode"),b=xu(g,"remove"),x=xu(g,"nextSibling"),v=xu(g,"childNodes"),E=xu(g,"parentNode");if(typeof o=="function"){const rt=r.createElement("template");rt.content&&rt.content.ownerDocument&&(r=rt.content.ownerDocument)}let _,j="";const{implementation:F,createNodeIterator:k,createDocumentFragment:U,getElementsByTagName:W}=r,{importNode:K}=n;let $=Ix();t.isSupported=typeof KF=="function"&&typeof E=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:O,ERB_EXPR:R,TMPLIT_EXPR:z,DATA_ATTR:H,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:le}=Mx;let{IS_ALLOWED_URI:be}=Mx,V=null;const te=At({},[...Bx,...r5,...n5,...i5,...Tx]);let de=null;const ee=At({},[...Px,...a5,...Nx,...Qd]);let ie=Object.seal(YF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,N=null,I=!0,T=!0,J=!1,ve=!0,Z=!1,ge=!0,De=!1,Oe=!1,ae=!1,we=!1,ne=!1,ke=!1,Be=!0,Ae=!1;const Q="user-content-";let he=!0,se=!1,D={},ce=null;const Ce=At({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Te=null;const Qe=At({},["audio","video","img","source","image","track"]);let Fe=null;const Ve=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",Ot="http://www.w3.org/2000/svg",tr="http://www.w3.org/1999/xhtml";let hr=tr,tn=!1,jr=null;const $r=At({},[ot,Ot,tr],t5);let Di=At({},["mi","mo","mn","ms","mtext"]),hn=At({},["annotation-xml"]);const Ha=At({},["title","style","font","a","script"]);let Bi=null;const qa=["application/xhtml+xml","text/html"],$o="text/html";let ar=null,gi=null;const Lo=r.createElement("form"),aa=function(fe){return fe instanceof RegExp||fe instanceof Function},sa=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(gi&&gi===fe)){if((!fe||typeof fe!="object")&&(fe={}),fe=da(fe),Bi=qa.indexOf(fe.PARSER_MEDIA_TYPE)===-1?$o:fe.PARSER_MEDIA_TYPE,ar=Bi==="application/xhtml+xml"?t5:Eh,V=vi(fe,"ALLOWED_TAGS")?At({},fe.ALLOWED_TAGS,ar):te,de=vi(fe,"ALLOWED_ATTR")?At({},fe.ALLOWED_ATTR,ar):ee,jr=vi(fe,"ALLOWED_NAMESPACES")?At({},fe.ALLOWED_NAMESPACES,t5):$r,Fe=vi(fe,"ADD_URI_SAFE_ATTR")?At(da(Ve),fe.ADD_URI_SAFE_ATTR,ar):Ve,Te=vi(fe,"ADD_DATA_URI_TAGS")?At(da(Qe),fe.ADD_DATA_URI_TAGS,ar):Qe,ce=vi(fe,"FORBID_CONTENTS")?At({},fe.FORBID_CONTENTS,ar):Ce,G=vi(fe,"FORBID_TAGS")?At({},fe.FORBID_TAGS,ar):da({}),N=vi(fe,"FORBID_ATTR")?At({},fe.FORBID_ATTR,ar):da({}),D=vi(fe,"USE_PROFILES")?fe.USE_PROFILES:!1,I=fe.ALLOW_ARIA_ATTR!==!1,T=fe.ALLOW_DATA_ATTR!==!1,J=fe.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=fe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Z=fe.SAFE_FOR_TEMPLATES||!1,ge=fe.SAFE_FOR_XML!==!1,De=fe.WHOLE_DOCUMENT||!1,we=fe.RETURN_DOM||!1,ne=fe.RETURN_DOM_FRAGMENT||!1,ke=fe.RETURN_TRUSTED_TYPE||!1,ae=fe.FORCE_BODY||!1,Be=fe.SANITIZE_DOM!==!1,Ae=fe.SANITIZE_NAMED_PROPS||!1,he=fe.KEEP_CONTENT!==!1,se=fe.IN_PLACE||!1,be=fe.ALLOWED_URI_REGEXP||ZF,hr=fe.NAMESPACE||tr,Di=fe.MATHML_TEXT_INTEGRATION_POINTS||Di,hn=fe.HTML_INTEGRATION_POINTS||hn,ie=fe.CUSTOM_ELEMENT_HANDLING||{},fe.CUSTOM_ELEMENT_HANDLING&&aa(fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),fe.CUSTOM_ELEMENT_HANDLING&&aa(fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),fe.CUSTOM_ELEMENT_HANDLING&&typeof fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ie.allowCustomizedBuiltInElements=fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(T=!1),ne&&(we=!0),D&&(V=At({},Tx),de=[],D.html===!0&&(At(V,Bx),At(de,Px)),D.svg===!0&&(At(V,r5),At(de,a5),At(de,Qd)),D.svgFilters===!0&&(At(V,n5),At(de,a5),At(de,Qd)),D.mathMl===!0&&(At(V,i5),At(de,Nx),At(de,Qd))),fe.ADD_TAGS&&(V===te&&(V=da(V)),At(V,fe.ADD_TAGS,ar)),fe.ADD_ATTR&&(de===ee&&(de=da(de)),At(de,fe.ADD_ATTR,ar)),fe.ADD_URI_SAFE_ATTR&&At(Fe,fe.ADD_URI_SAFE_ATTR,ar),fe.FORBID_CONTENTS&&(ce===Ce&&(ce=da(ce)),At(ce,fe.FORBID_CONTENTS,ar)),he&&(V["#text"]=!0),De&&At(V,["html","head","body"]),V.table&&(At(V,["tbody"]),delete G.tbody),fe.TRUSTED_TYPES_POLICY){if(typeof fe.TRUSTED_TYPES_POLICY.createHTML!="function")throw bu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof fe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw bu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=fe.TRUSTED_TYPES_POLICY,j=_.createHTML("")}else _===void 0&&(_=m2e(p,i)),_!==null&&typeof j=="string"&&(j=_.createHTML(""));jn&&jn(fe),gi=fe}},Bs=At({},[...r5,...n5,...i2e]),Wa=At({},[...i5,...a2e]),On=function(fe){let qe=E(fe);(!qe||!qe.tagName)&&(qe={namespaceURI:hr,tagName:"template"});const nt=Eh(fe.tagName),Rt=Eh(qe.tagName);return jr[fe.namespaceURI]?fe.namespaceURI===Ot?qe.namespaceURI===tr?nt==="svg":qe.namespaceURI===ot?nt==="svg"&&(Rt==="annotation-xml"||Di[Rt]):!!Bs[nt]:fe.namespaceURI===ot?qe.namespaceURI===tr?nt==="math":qe.namespaceURI===Ot?nt==="math"&&hn[Rt]:!!Wa[nt]:fe.namespaceURI===tr?qe.namespaceURI===Ot&&!hn[Rt]||qe.namespaceURI===ot&&!Di[Rt]?!1:!Wa[nt]&&(Ha[nt]||!Bs[nt]):!!(Bi==="application/xhtml+xml"&&jr[fe.namespaceURI]):!1},fn=function(fe){gu(t.removed,{element:fe});try{E(fe).removeChild(fe)}catch{b(fe)}},br=function(fe,qe){try{gu(t.removed,{attribute:qe.getAttributeNode(fe),from:qe})}catch{gu(t.removed,{attribute:null,from:qe})}if(qe.removeAttribute(fe),fe==="is")if(we||ne)try{fn(qe)}catch{}else try{qe.setAttribute(fe,"")}catch{}},An=function(fe){let qe=null,nt=null;if(ae)fe="<remove></remove>"+fe;else{const Sr=Dx(fe,/^[\r\n\t ]+/);nt=Sr&&Sr[0]}Bi==="application/xhtml+xml"&&hr===tr&&(fe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+fe+"</body></html>");const Rt=_?_.createHTML(fe):fe;if(hr===tr)try{qe=new f().parseFromString(Rt,Bi)}catch{}if(!qe||!qe.documentElement){qe=F.createDocument(hr,"template",null);try{qe.documentElement.innerHTML=tn?j:Rt}catch{}}const Hr=qe.body||qe.documentElement;return fe&&nt&&Hr.insertBefore(r.createTextNode(nt),Hr.childNodes[0]||null),hr===tr?W.call(qe,De?"html":"body")[0]:De?qe.documentElement:Hr},Va=function(fe){return k.call(fe.ownerDocument||fe,fe,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},qn=function(fe){return fe instanceof h&&(typeof fe.nodeName!="string"||typeof fe.textContent!="string"||typeof fe.removeChild!="function"||!(fe.attributes instanceof d)||typeof fe.removeAttribute!="function"||typeof fe.setAttribute!="function"||typeof fe.namespaceURI!="string"||typeof fe.insertBefore!="function"||typeof fe.hasChildNodes!="function")},Wn=function(fe){return typeof l=="function"&&fe instanceof l};function pn(rt,fe,qe){Jd(rt,nt=>{nt.call(t,fe,qe,gi)})}const Ts=function(fe){let qe=null;if(pn($.beforeSanitizeElements,fe,null),qn(fe))return fn(fe),!0;const nt=ar(fe.nodeName);if(pn($.uponSanitizeElement,fe,{tagName:nt,allowedTags:V}),ge&&fe.hasChildNodes()&&!Wn(fe.firstElementChild)&&bn(/<[/\w!]/g,fe.innerHTML)&&bn(/<[/\w!]/g,fe.textContent)||fe.nodeType===vu.progressingInstruction||ge&&fe.nodeType===vu.comment&&bn(/<[/\w]/g,fe.data))return fn(fe),!0;if(!V[nt]||G[nt]){if(!G[nt]&&St(nt)&&(ie.tagNameCheck instanceof RegExp&&bn(ie.tagNameCheck,nt)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(nt)))return!1;if(he&&!ce[nt]){const Rt=E(fe)||fe.parentNode,Hr=v(fe)||fe.childNodes;if(Hr&&Rt){const Sr=Hr.length;for(let rn=Sr-1;rn>=0;--rn){const yi=y(Hr[rn],!0);yi.__removalCount=(fe.__removalCount||0)+1,Rt.insertBefore(yi,x(fe))}}}return fn(fe),!0}return fe instanceof u&&!On(fe)||(nt==="noscript"||nt==="noembed"||nt==="noframes")&&bn(/<\/no(script|embed|frames)/i,fe.innerHTML)?(fn(fe),!0):(Z&&fe.nodeType===vu.text&&(qe=fe.textContent,Jd([O,R,z],Rt=>{qe=yu(qe,Rt," ")}),fe.textContent!==qe&&(gu(t.removed,{element:fe.cloneNode()}),fe.textContent=qe)),pn($.afterSanitizeElements,fe,null),!1)},Ee=function(fe,qe,nt){if(Be&&(qe==="id"||qe==="name")&&(nt in r||nt in Lo))return!1;if(!(T&&!N[qe]&&bn(H,qe))){if(!(I&&bn(B,qe))){if(!de[qe]||N[qe]){if(!(St(fe)&&(ie.tagNameCheck instanceof RegExp&&bn(ie.tagNameCheck,fe)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(fe))&&(ie.attributeNameCheck instanceof RegExp&&bn(ie.attributeNameCheck,qe)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(qe))||qe==="is"&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&bn(ie.tagNameCheck,nt)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(nt))))return!1}else if(!Fe[qe]){if(!bn(be,yu(nt,P,""))){if(!((qe==="src"||qe==="xlink:href"||qe==="href")&&fe!=="script"&&e2e(nt,"data:")===0&&Te[fe])){if(!(J&&!bn(Y,yu(nt,P,"")))){if(nt)return!1}}}}}}return!0},St=function(fe){return fe!=="annotation-xml"&&Dx(fe,le)},kt=function(fe){pn($.beforeSanitizeAttributes,fe,null);const{attributes:qe}=fe;if(!qe||qn(fe))return;const nt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:de,forceKeepAttr:void 0};let Rt=qe.length;for(;Rt--;){const Hr=qe[Rt],{name:Sr,namespaceURI:rn,value:yi}=Hr,Ps=ar(Sr),lu=yi;let qr=Sr==="value"?lu:t2e(lu);if(nt.attrName=Ps,nt.attrValue=qr,nt.keepAttr=!0,nt.forceKeepAttr=void 0,pn($.uponSanitizeAttribute,fe,nt),qr=nt.attrValue,Ae&&(Ps==="id"||Ps==="name")&&(br(Sr,fe),qr=Q+qr),ge&&bn(/((--!?|])>)|<\/(style|title)/i,qr)){br(Sr,fe);continue}if(nt.forceKeepAttr)continue;if(!nt.keepAttr){br(Sr,fe);continue}if(!ve&&bn(/\/>/i,qr)){br(Sr,fe);continue}Z&&Jd([O,R,z],kd=>{qr=yu(qr,kd," ")});const _d=ar(fe.nodeName);if(!Ee(_d,Ps,qr)){br(Sr,fe);continue}if(_&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!rn)switch(p.getAttributeType(_d,Ps)){case"TrustedHTML":{qr=_.createHTML(qr);break}case"TrustedScriptURL":{qr=_.createScriptURL(qr);break}}if(qr!==lu)try{rn?fe.setAttributeNS(rn,Sr,qr):fe.setAttribute(Sr,qr),qn(fe)?fn(fe):Ax(t.removed)}catch{br(Sr,fe)}}pn($.afterSanitizeAttributes,fe,null)},fr=function rt(fe){let qe=null;const nt=Va(fe);for(pn($.beforeSanitizeShadowDOM,fe,null);qe=nt.nextNode();)pn($.uponSanitizeShadowNode,qe,null),Ts(qe),kt(qe),qe.content instanceof s&&rt(qe.content);pn($.afterSanitizeShadowDOM,fe,null)};return t.sanitize=function(rt){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=null,nt=null,Rt=null,Hr=null;if(tn=!rt,tn&&(rt="<!-->"),typeof rt!="string"&&!Wn(rt))if(typeof rt.toString=="function"){if(rt=rt.toString(),typeof rt!="string")throw bu("dirty is not a string, aborting")}else throw bu("toString is not a function");if(!t.isSupported)return rt;if(Oe||sa(fe),t.removed=[],typeof rt=="string"&&(se=!1),se){if(rt.nodeName){const yi=ar(rt.nodeName);if(!V[yi]||G[yi])throw bu("root node is forbidden and cannot be sanitized in-place")}}else if(rt instanceof l)qe=An("<!---->"),nt=qe.ownerDocument.importNode(rt,!0),nt.nodeType===vu.element&&nt.nodeName==="BODY"||nt.nodeName==="HTML"?qe=nt:qe.appendChild(nt);else{if(!we&&!Z&&!De&&rt.indexOf("<")===-1)return _&&ke?_.createHTML(rt):rt;if(qe=An(rt),!qe)return we?null:ke?j:""}qe&&ae&&fn(qe.firstChild);const Sr=Va(se?rt:qe);for(;Rt=Sr.nextNode();)Ts(Rt),kt(Rt),Rt.content instanceof s&&fr(Rt.content);if(se)return rt;if(we){if(ne)for(Hr=U.call(qe.ownerDocument);qe.firstChild;)Hr.appendChild(qe.firstChild);else Hr=qe;return(de.shadowroot||de.shadowrootmode)&&(Hr=K.call(n,Hr,!0)),Hr}let rn=De?qe.outerHTML:qe.innerHTML;return De&&V["!doctype"]&&qe.ownerDocument&&qe.ownerDocument.doctype&&qe.ownerDocument.doctype.name&&bn(XF,qe.ownerDocument.doctype.name)&&(rn="<!DOCTYPE "+qe.ownerDocument.doctype.name+`>
- `+rn),Z&&Jd([O,R,z],yi=>{rn=yu(rn,yi," ")}),_&&ke?_.createHTML(rn):rn},t.setConfig=function(){let rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sa(rt),Oe=!0},t.clearConfig=function(){gi=null,Oe=!1},t.isValidAttribute=function(rt,fe,qe){gi||sa({});const nt=ar(rt),Rt=ar(fe);return Ee(nt,Rt,qe)},t.addHook=function(rt,fe){typeof fe=="function"&&gu($[rt],fe)},t.removeHook=function(rt,fe){if(fe!==void 0){const qe=Jhe($[rt],fe);return qe===-1?void 0:Qhe($[rt],qe,1)[0]}return Ax($[rt])},t.removeHooks=function(rt){$[rt]=[]},t.removeAllHooks=function(){$=Ix()},t}var jl=JF(),QF=Object.defineProperty,C=(e,t)=>QF(e,"name",{value:t,configurable:!0}),g2e=(e,t)=>{for(var r in t)QF(e,r,{get:t[r],enumerable:!0})},la={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Me={trace:C((...e)=>{},"trace"),debug:C((...e)=>{},"debug"),info:C((...e)=>{},"info"),warn:C((...e)=>{},"warn"),error:C((...e)=>{},"error"),fatal:C((...e)=>{},"fatal")},qg=C(function(e="fatal"){let t=la.fatal;typeof e=="string"?e.toLowerCase()in la&&(t=la[e]):typeof e=="number"&&(t=e),Me.trace=()=>{},Me.debug=()=>{},Me.info=()=>{},Me.warn=()=>{},Me.error=()=>{},Me.fatal=()=>{},t<=la.fatal&&(Me.fatal=console.error?console.error.bind(console,ai("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ai("FATAL"))),t<=la.error&&(Me.error=console.error?console.error.bind(console,ai("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ai("ERROR"))),t<=la.warn&&(Me.warn=console.warn?console.warn.bind(console,ai("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ai("WARN"))),t<=la.info&&(Me.info=console.info?console.info.bind(console,ai("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ai("INFO"))),t<=la.debug&&(Me.debug=console.debug?console.debug.bind(console,ai("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ai("DEBUG"))),t<=la.trace&&(Me.trace=console.debug?console.debug.bind(console,ai("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ai("TRACE")))},"setLogLevel"),ai=C(e=>`%c${Fw().format("ss.SSS")} : ${e} : `,"format"),ej=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Wu=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,y2e=/\s*%%.*\n/gm,hl,tj=(hl=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},C(hl,"UnknownDiagramError"),hl),_l={},Wg=C(function(e,t){e=e.replace(ej,"").replace(Wu,"").replace(y2e,`
- `);for(const[r,{detector:n}]of Object.entries(_l))if(n(e,t))return r;throw new tj(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),rj=C((...e)=>{for(const{id:t,detector:r,loader:n}of e)nj(t,r,n)},"registerLazyLoadedDiagrams"),nj=C((e,t,r)=>{_l[e]&&Me.warn(`Detector with key ${e} already exists. Overwriting.`),_l[e]={detector:t,loader:r},Me.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),b2e=C(e=>_l[e].loader,"getDiagramLoader"),d4=C((e,t,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(s=>d4(e,s,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(s=>{e.includes(s)||e.push(s)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(s=>{typeof t[s]=="object"&&(e[s]===void 0||typeof e[s]=="object")?(e[s]===void 0&&(e[s]=Array.isArray(t[s])?[]:{}),e[s]=d4(e[s],t[s],{depth:r-1,clobber:n})):(n||typeof e[s]!="object"&&typeof t[s]!="object")&&(e[s]=t[s])}),e)},"assignWithDepth"),Jr=d4,hf="#ffffff",ff="#f2f2f2",En=C((e,t)=>t?xe(e,{s:-40,l:10}):xe(e,{s:-40,l:-10}),"mkBorder"),fl,x2e=(fl=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,n,i,s,o,l,u,c,d,h,f,p,g,y,b,x,v,E,_,j,F;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||xe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||xe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||En(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||En(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||En(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||En(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ye(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ye(this.tertiaryColor),this.lineColor=this.lineColor||Ye(this.background),this.arrowheadColor=this.arrowheadColor||Ye(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?mt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||mt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ye(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||it(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||mt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||mt(this.mainBkg,10)):(this.rowOdd=this.rowOdd||it(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||it(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||xe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||xe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||xe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||xe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||xe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||xe(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||xe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||xe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||xe(this.primaryColor,{h:330}),this.darkMode)for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=mt(this["cScale"+k],75);else for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=mt(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||Ye(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||it(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||mt(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||xe(this.mainBkg,{h:180,s:-15,l:t*(5+k*3)}),this["surfacePeer"+k]=this["surfacePeer"+k]||xe(this.mainBkg,{h:180,s:-15,l:t*(8+k*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||xe(this.primaryColor,{h:64}),this.fillType3=this.fillType3||xe(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||xe(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||xe(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||xe(this.primaryColor,{h:128}),this.fillType7=this.fillType7||xe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||xe(this.primaryColor,{l:-10}),this.pie5=this.pie5||xe(this.secondaryColor,{l:-10}),this.pie6=this.pie6||xe(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||xe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||xe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||xe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||xe(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||xe(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||xe(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((s=this.radar)==null?void 0:s.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((l=this.radar)==null?void 0:l.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((u=this.radar)==null?void 0:u.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((d=this.radar)==null?void 0:d.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||xe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||xe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||xe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||xe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||xe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||xe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xd(this.quadrant1Fill)?it(this.quadrant1Fill):mt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((p=this.xyChart)==null?void 0:p.titleColor)||this.primaryTextColor,xAxisTitleColor:((g=this.xyChart)==null?void 0:g.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((y=this.xyChart)==null?void 0:y.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((b=this.xyChart)==null?void 0:b.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((x=this.xyChart)==null?void 0:x.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((v=this.xyChart)==null?void 0:v.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((E=this.xyChart)==null?void 0:E.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((_=this.xyChart)==null?void 0:_.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((j=this.xyChart)==null?void 0:j.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((F=this.xyChart)==null?void 0:F.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?mt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||xe(this.primaryColor,{h:-30}),this.git4=this.git4||xe(this.primaryColor,{h:-60}),this.git5=this.git5||xe(this.primaryColor,{h:-90}),this.git6=this.git6||xe(this.primaryColor,{h:60}),this.git7=this.git7||xe(this.primaryColor,{h:120}),this.darkMode?(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)):(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)),this.gitInv0=this.gitInv0||Ye(this.git0),this.gitInv1=this.gitInv1||Ye(this.git1),this.gitInv2=this.gitInv2||Ye(this.git2),this.gitInv3=this.gitInv3||Ye(this.git3),this.gitInv4=this.gitInv4||Ye(this.git4),this.gitInv5=this.gitInv5||Ye(this.git5),this.gitInv6=this.gitInv6||Ye(this.git6),this.gitInv7=this.gitInv7||Ye(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hf,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ff}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},C(fl,"Theme"),fl),v2e=C(e=>{const t=new x2e;return t.calculate(e),t},"getThemeVariables"),pl,w2e=(pl=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=it(this.primaryColor,16),this.tertiaryColor=xe(this.primaryColor,{h:-160}),this.primaryBorderColor=Ye(this.background),this.secondaryBorderColor=En(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=En(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ye(this.primaryColor),this.secondaryTextColor=Ye(this.secondaryColor),this.tertiaryTextColor=Ye(this.tertiaryColor),this.lineColor=Ye(this.background),this.textColor=Ye(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=it(Ye("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=qu(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=mt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=mt(this.sectionBkgColor,10),this.taskBorderColor=qu(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=qu(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||it(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||mt(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,n,i,s,o,l,u,c,d,h,f,p,g,y,b,x,v,E,_,j;this.secondBkg=it(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=it(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=it(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=xe(this.primaryColor,{h:64}),this.fillType3=xe(this.secondaryColor,{h:64}),this.fillType4=xe(this.primaryColor,{h:-64}),this.fillType5=xe(this.secondaryColor,{h:-64}),this.fillType6=xe(this.primaryColor,{h:128}),this.fillType7=xe(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||xe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||xe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||xe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||xe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||xe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||xe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||xe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||xe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||xe(this.primaryColor,{h:330});for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleInv"+F]=this["cScaleInv"+F]||Ye(this["cScale"+F]);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScalePeer"+F]=this["cScalePeer"+F]||it(this["cScale"+F],10);for(let F=0;F<5;F++)this["surface"+F]=this["surface"+F]||xe(this.mainBkg,{h:30,s:-30,l:-(-10+F*4)}),this["surfacePeer"+F]=this["surfacePeer"+F]||xe(this.mainBkg,{h:30,s:-30,l:-(-7+F*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleLabel"+F]=this["cScaleLabel"+F]||this.scaleLabelColor;for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["pie"+F]=this["cScale"+F];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||xe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||xe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||xe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||xe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||xe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||xe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xd(this.quadrant1Fill)?it(this.quadrant1Fill):mt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((p=this.radar)==null?void 0:p.axisStrokeWidth)||2,axisLabelFontSize:((g=this.radar)==null?void 0:g.axisLabelFontSize)||12,curveOpacity:((y=this.radar)==null?void 0:y.curveOpacity)||.5,curveStrokeWidth:((b=this.radar)==null?void 0:b.curveStrokeWidth)||2,graticuleColor:((x=this.radar)==null?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((v=this.radar)==null?void 0:v.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((j=this.radar)==null?void 0:j.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?mt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=it(this.secondaryColor,20),this.git1=it(this.pie2||this.secondaryColor,20),this.git2=it(this.pie3||this.tertiaryColor,20),this.git3=it(this.pie4||xe(this.primaryColor,{h:-30}),20),this.git4=it(this.pie5||xe(this.primaryColor,{h:-60}),20),this.git5=it(this.pie6||xe(this.primaryColor,{h:-90}),10),this.git6=it(this.pie7||xe(this.primaryColor,{h:60}),10),this.git7=it(this.pie8||xe(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Ye(this.git0),this.gitInv1=this.gitInv1||Ye(this.git1),this.gitInv2=this.gitInv2||Ye(this.git2),this.gitInv3=this.gitInv3||Ye(this.git3),this.gitInv4=this.gitInv4||Ye(this.git4),this.gitInv5=this.gitInv5||Ye(this.git5),this.gitInv6=this.gitInv6||Ye(this.git6),this.gitInv7=this.gitInv7||Ye(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ye(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ye(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||it(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||it(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},C(pl,"Theme"),pl),E2e=C(e=>{const t=new w2e;return t.calculate(e),t},"getThemeVariables"),ml,C2e=(ml=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=xe(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=xe(this.primaryColor,{h:-160}),this.primaryBorderColor=En(this.primaryColor,this.darkMode),this.secondaryBorderColor=En(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=En(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ye(this.primaryColor),this.secondaryTextColor=Ye(this.secondaryColor),this.tertiaryTextColor=Ye(this.tertiaryColor),this.lineColor=Ye(this.background),this.textColor=Ye(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=qu(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,n,i,s,o,l,u,c,d,h,f,p,g,y,b,x,v,E,_,j;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||xe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||xe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||xe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||xe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||xe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||xe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||xe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||xe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||xe(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||mt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||mt(this.tertiaryColor,40);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScale"+F]=mt(this["cScale"+F],10),this["cScalePeer"+F]=this["cScalePeer"+F]||mt(this["cScale"+F],25);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleInv"+F]=this["cScaleInv"+F]||xe(this["cScale"+F],{h:180});for(let F=0;F<5;F++)this["surface"+F]=this["surface"+F]||xe(this.mainBkg,{h:30,l:-(5+F*5)}),this["surfacePeer"+F]=this["surfacePeer"+F]||xe(this.mainBkg,{h:30,l:-(7+F*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Ye(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Ye(this.labelTextColor);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleLabel"+F]=this["cScaleLabel"+F]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=it(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||it(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||it(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=xe(this.primaryColor,{h:64}),this.fillType3=xe(this.secondaryColor,{h:64}),this.fillType4=xe(this.primaryColor,{h:-64}),this.fillType5=xe(this.secondaryColor,{h:-64}),this.fillType6=xe(this.primaryColor,{h:128}),this.fillType7=xe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||xe(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||xe(this.primaryColor,{l:-10}),this.pie5=this.pie5||xe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||xe(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||xe(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||xe(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||xe(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||xe(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||xe(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||xe(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||xe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||xe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||xe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||xe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||xe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||xe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xd(this.quadrant1Fill)?it(this.quadrant1Fill):mt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((u=this.radar)==null?void 0:u.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((p=this.xyChart)==null?void 0:p.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((b=this.xyChart)==null?void 0:b.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((x=this.xyChart)==null?void 0:x.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((v=this.xyChart)==null?void 0:v.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((E=this.xyChart)==null?void 0:E.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((_=this.xyChart)==null?void 0:_.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((j=this.xyChart)==null?void 0:j.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||xe(this.primaryColor,{h:-30}),this.git4=this.git4||xe(this.primaryColor,{h:-60}),this.git5=this.git5||xe(this.primaryColor,{h:-90}),this.git6=this.git6||xe(this.primaryColor,{h:60}),this.git7=this.git7||xe(this.primaryColor,{h:120}),this.darkMode?(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)):(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)),this.gitInv0=this.gitInv0||mt(Ye(this.git0),25),this.gitInv1=this.gitInv1||Ye(this.git1),this.gitInv2=this.gitInv2||Ye(this.git2),this.gitInv3=this.gitInv3||Ye(this.git3),this.gitInv4=this.gitInv4||Ye(this.git4),this.gitInv5=this.gitInv5||Ye(this.git5),this.gitInv6=this.gitInv6||Ye(this.git6),this.gitInv7=this.gitInv7||Ye(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ye(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ye(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hf,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ff}calculate(t){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},C(ml,"Theme"),ml),S2e=C(e=>{const t=new C2e;return t.calculate(e),t},"getThemeVariables"),gl,F2e=(gl=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=it("#cde498",10),this.primaryBorderColor=En(this.primaryColor,this.darkMode),this.secondaryBorderColor=En(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=En(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ye(this.primaryColor),this.secondaryTextColor=Ye(this.secondaryColor),this.tertiaryTextColor=Ye(this.primaryColor),this.lineColor=Ye(this.background),this.textColor=Ye(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,n,i,s,o,l,u,c,d,h,f,p,g,y,b,x,v,E,_,j;this.actorBorder=mt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||xe(this.primaryColor,{h:30}),this.cScale4=this.cScale4||xe(this.primaryColor,{h:60}),this.cScale5=this.cScale5||xe(this.primaryColor,{h:90}),this.cScale6=this.cScale6||xe(this.primaryColor,{h:120}),this.cScale7=this.cScale7||xe(this.primaryColor,{h:150}),this.cScale8=this.cScale8||xe(this.primaryColor,{h:210}),this.cScale9=this.cScale9||xe(this.primaryColor,{h:270}),this.cScale10=this.cScale10||xe(this.primaryColor,{h:300}),this.cScale11=this.cScale11||xe(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||mt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||mt(this.tertiaryColor,40);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScale"+F]=mt(this["cScale"+F],10),this["cScalePeer"+F]=this["cScalePeer"+F]||mt(this["cScale"+F],25);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleInv"+F]=this["cScaleInv"+F]||xe(this["cScale"+F],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleLabel"+F]=this["cScaleLabel"+F]||this.scaleLabelColor;for(let F=0;F<5;F++)this["surface"+F]=this["surface"+F]||xe(this.mainBkg,{h:30,s:-30,l:-(5+F*5)}),this["surfacePeer"+F]=this["surfacePeer"+F]||xe(this.mainBkg,{h:30,s:-30,l:-(8+F*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||it(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||it(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=xe(this.primaryColor,{h:64}),this.fillType3=xe(this.secondaryColor,{h:64}),this.fillType4=xe(this.primaryColor,{h:-64}),this.fillType5=xe(this.secondaryColor,{h:-64}),this.fillType6=xe(this.primaryColor,{h:128}),this.fillType7=xe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||xe(this.primaryColor,{l:-30}),this.pie5=this.pie5||xe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||xe(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||xe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||xe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||xe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||xe(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||xe(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||xe(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||xe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||xe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||xe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||xe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||xe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||xe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xd(this.quadrant1Fill)?it(this.quadrant1Fill):mt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((u=this.radar)==null?void 0:u.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((p=this.xyChart)==null?void 0:p.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((b=this.xyChart)==null?void 0:b.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((x=this.xyChart)==null?void 0:x.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((v=this.xyChart)==null?void 0:v.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((E=this.xyChart)==null?void 0:E.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((_=this.xyChart)==null?void 0:_.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((j=this.xyChart)==null?void 0:j.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||xe(this.primaryColor,{h:-30}),this.git4=this.git4||xe(this.primaryColor,{h:-60}),this.git5=this.git5||xe(this.primaryColor,{h:-90}),this.git6=this.git6||xe(this.primaryColor,{h:60}),this.git7=this.git7||xe(this.primaryColor,{h:120}),this.darkMode?(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)):(this.git0=mt(this.git0,25),this.git1=mt(this.git1,25),this.git2=mt(this.git2,25),this.git3=mt(this.git3,25),this.git4=mt(this.git4,25),this.git5=mt(this.git5,25),this.git6=mt(this.git6,25),this.git7=mt(this.git7,25)),this.gitInv0=this.gitInv0||Ye(this.git0),this.gitInv1=this.gitInv1||Ye(this.git1),this.gitInv2=this.gitInv2||Ye(this.git2),this.gitInv3=this.gitInv3||Ye(this.git3),this.gitInv4=this.gitInv4||Ye(this.git4),this.gitInv5=this.gitInv5||Ye(this.git5),this.gitInv6=this.gitInv6||Ye(this.git6),this.gitInv7=this.gitInv7||Ye(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ye(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ye(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hf,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ff}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},C(gl,"Theme"),gl),j2e=C(e=>{const t=new F2e;return t.calculate(e),t},"getThemeVariables"),yl,_2e=(yl=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=it(this.contrast,55),this.background="#ffffff",this.tertiaryColor=xe(this.primaryColor,{h:-160}),this.primaryBorderColor=En(this.primaryColor,this.darkMode),this.secondaryBorderColor=En(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=En(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ye(this.primaryColor),this.secondaryTextColor=Ye(this.secondaryColor),this.tertiaryTextColor=Ye(this.tertiaryColor),this.lineColor=Ye(this.background),this.textColor=Ye(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||it(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,n,i,s,o,l,u,c,d,h,f,p,g,y,b,x,v,E,_,j;this.secondBkg=it(this.contrast,55),this.border2=this.contrast,this.actorBorder=it(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleInv"+F]=this["cScaleInv"+F]||Ye(this["cScale"+F]);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this.darkMode?this["cScalePeer"+F]=this["cScalePeer"+F]||it(this["cScale"+F],10):this["cScalePeer"+F]=this["cScalePeer"+F]||mt(this["cScale"+F],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleLabel"+F]=this["cScaleLabel"+F]||this.scaleLabelColor;for(let F=0;F<5;F++)this["surface"+F]=this["surface"+F]||xe(this.mainBkg,{l:-(5+F*5)}),this["surfacePeer"+F]=this["surfacePeer"+F]||xe(this.mainBkg,{l:-(8+F*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=it(this.contrast,30),this.sectionBkgColor2=it(this.contrast,30),this.taskBorderColor=mt(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=it(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=mt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=xe(this.primaryColor,{h:64}),this.fillType3=xe(this.secondaryColor,{h:64}),this.fillType4=xe(this.primaryColor,{h:-64}),this.fillType5=xe(this.secondaryColor,{h:-64}),this.fillType6=xe(this.primaryColor,{h:128}),this.fillType7=xe(this.secondaryColor,{h:128});for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["pie"+F]=this["cScale"+F];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||xe(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||xe(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||xe(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||xe(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||xe(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||xe(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xd(this.quadrant1Fill)?it(this.quadrant1Fill):mt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((p=this.radar)==null?void 0:p.axisStrokeWidth)||2,axisLabelFontSize:((g=this.radar)==null?void 0:g.axisLabelFontSize)||12,curveOpacity:((y=this.radar)==null?void 0:y.curveOpacity)||.5,curveStrokeWidth:((b=this.radar)==null?void 0:b.curveStrokeWidth)||2,graticuleColor:((x=this.radar)==null?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((v=this.radar)==null?void 0:v.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((j=this.radar)==null?void 0:j.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=mt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||xe(this.primaryColor,{h:-30}),this.git4=this.pie5||xe(this.primaryColor,{h:-60}),this.git5=this.pie6||xe(this.primaryColor,{h:-90}),this.git6=this.pie7||xe(this.primaryColor,{h:60}),this.git7=this.pie8||xe(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Ye(this.git0),this.gitInv1=this.gitInv1||Ye(this.git1),this.gitInv2=this.gitInv2||Ye(this.git2),this.gitInv3=this.gitInv3||Ye(this.git3),this.gitInv4=this.gitInv4||Ye(this.git4),this.gitInv5=this.gitInv5||Ye(this.git5),this.gitInv6=this.gitInv6||Ye(this.git6),this.gitInv7=this.gitInv7||Ye(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hf,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ff}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},C(yl,"Theme"),yl),k2e=C(e=>{const t=new _2e;return t.calculate(e),t},"getThemeVariables"),wa={base:{getThemeVariables:v2e},dark:{getThemeVariables:E2e},default:{getThemeVariables:S2e},forest:{getThemeVariables:j2e},neutral:{getThemeVariables:k2e}},ua={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},ij={...ua,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:wa.default.getThemeVariables(),sequence:{...ua.sequence,messageFont:C(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:C(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:C(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...ua.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ua.c4,useWidth:void 0,personFont:C(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:C(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:C(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:C(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:C(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:C(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:C(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:C(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:C(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:C(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:C(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:C(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:C(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:C(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:C(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:C(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:C(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:C(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:C(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:C(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:C(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:C(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...ua.pie,useWidth:984},xyChart:{...ua.xyChart,useWidth:void 0},requirement:{...ua.requirement,useWidth:void 0},packet:{...ua.packet},radar:{...ua.radar}},aj=C((e,t="")=>Object.keys(e).reduce((r,n)=>Array.isArray(e[n])?r:typeof e[n]=="object"&&e[n]!==null?[...r,t+n,...aj(e[n],"")]:[...r,t+n],[]),"keyify"),O2e=new Set(aj(ij,"")),sj=ij,s2=C(e=>{if(Me.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>s2(t));return}for(const t of Object.keys(e)){if(Me.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!O2e.has(t)||e[t]==null){Me.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){Me.debug("sanitizing object",t),s2(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)t.includes(n)&&(Me.debug("sanitizing css option",t),e[t]=A2e(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}Me.debug("After sanitization",e)}},"sanitizeDirective"),A2e=C(e=>{let t=0,r=0;for(const n of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?t++:n==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),kl=Object.freeze(sj),Nn=Jr({},kl),oj,Ol=[],Vu=Jr({},kl),pf=C((e,t)=>{let r=Jr({},e),n={};for(const i of t)cj(i),n=Jr(n,i);if(r=Jr(r,n),n.theme&&n.theme in wa){const i=Jr({},oj),s=Jr(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in wa&&(r.themeVariables=wa[r.theme].getThemeVariables(s))}return Vu=r,dj(Vu),Vu},"updateCurrentConfig"),D2e=C(e=>(Nn=Jr({},kl),Nn=Jr(Nn,e),e.theme&&wa[e.theme]&&(Nn.themeVariables=wa[e.theme].getThemeVariables(e.themeVariables)),pf(Nn,Ol),Nn),"setSiteConfig"),B2e=C(e=>{oj=Jr({},e)},"saveConfigFromInitialize"),T2e=C(e=>(Nn=Jr(Nn,e),pf(Nn,Ol),Nn),"updateSiteConfig"),lj=C(()=>Jr({},Nn),"getSiteConfig"),uj=C(e=>(dj(e),Jr(Vu,e),$n()),"setConfig"),$n=C(()=>Jr({},Vu),"getConfig"),cj=C(e=>{e&&(["secure",...Nn.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(Me.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&cj(e[t])}))},"sanitize"),P2e=C(e=>{var t;s2(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Ol.push(e),pf(Nn,Ol)},"addDirective"),o2=C((e=Nn)=>{Ol=[],pf(e,Ol)},"reset"),N2e={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},$x={},M2e=C(e=>{$x[e]||(Me.warn(N2e[e]),$x[e]=!0)},"issueWarning"),dj=C(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&M2e("LAZY_LOAD_DEPRECATED")},"checkConfig"),vd=/<br\s*\/?>/gi,I2e=C(e=>e?pj(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),$2e=(()=>{let e=!1;return()=>{e||(hj(),e=!0)}})();function hj(){const e="data-temp-href-target";jl.addHook("beforeSanitizeAttributes",t=>{t instanceof Element&&t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),jl.addHook("afterSanitizeAttributes",t=>{t instanceof Element&&t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}C(hj,"setupDompurifyHooks");var fj=C(e=>($2e(),jl.sanitize(e)),"removeScript"),Lx=C((e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const n=t.securityLevel;n==="antiscript"||n==="strict"?e=fj(e):n!=="loose"&&(e=pj(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=U2e(e))}return e},"sanitizeMore"),co=C((e,t)=>e&&(t.dompurifyConfig?e=jl.sanitize(Lx(e,t),t.dompurifyConfig).toString():e=jl.sanitize(Lx(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),L2e=C((e,t)=>typeof e=="string"?co(e,t):e.flat().map(r=>co(r,t)),"sanitizeTextOrArray"),R2e=C(e=>vd.test(e),"hasBreaks"),z2e=C(e=>e.split(vd),"splitBreaks"),U2e=C(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),pj=C(e=>e.replace(vd,"#br#"),"breakToPlaceholder"),H2e=C(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},"getUrl"),Ur=C(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),q2e=C(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),W2e=C(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),Rx=C(function(e){const t=e.split(/(,)/),r=[];for(let n=0;n<t.length;n++){let i=t[n];if(i===","&&n>0&&n+1<t.length){const s=t[n-1],o=t[n+1];V2e(s,o)&&(i=s+","+o,n++,r.pop())}r.push(G2e(i))}return r.join("")},"parseGenericTypes"),h4=C((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),V2e=C((e,t)=>{const r=h4(e,"~"),n=h4(t,"~");return r===1&&n===1},"shouldCombineSets"),G2e=C(e=>{const t=h4(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const n=[...e];let i=n.indexOf("~"),s=n.lastIndexOf("~");for(;i!==-1&&s!==-1&&i!==s;)n[i]="<",n[s]=">",i=n.indexOf("~"),s=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),zx=C(()=>window.MathMLElement!==void 0,"isMathMLSupported"),f4=/\$\$(.*)\$\$/g,Al=C(e=>{var t;return(((t=e.match(f4))==null?void 0:t.length)??0)>0},"hasKatex"),xbe=C(async(e,t)=>{e=await Vg(e,t);const r=document.createElement("div");r.innerHTML=e,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");n==null||n.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),Vg=C(async(e,t)=>{if(!Al(e))return e;if(!(zx()||t.legacyMathML||t.forceLegacyMathML))return e.replace(f4,"MathML is unsupported in this environment.");const{default:r}=await qt(async()=>{const{default:i}=await Promise.resolve().then(()=>$X);return{default:i}},void 0),n=t.forceLegacyMathML||!zx()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(vd).map(i=>Al(i)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${i}</div>`:`<div>${i}</div>`).join("").replace(f4,(i,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},"renderKatex"),au={getRows:I2e,sanitizeText:co,sanitizeTextOrArray:L2e,hasBreaks:R2e,splitBreaks:z2e,lineBreakRegex:vd,removeScript:fj,getUrl:H2e,evaluate:Ur,getMax:q2e,getMin:W2e},K2e=C(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),Y2e=C(function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},"calculateSvgSizeAttrs"),mj=C(function(e,t,r,n){const i=Y2e(t,r,n);K2e(e,i)},"configureSvgSize"),Z2e=C(function(e,t,r,n){const i=t.node().getBBox(),s=i.width,o=i.height;Me.info(`SVG bounds: ${s}x${o}`,i);let l=0,u=0;Me.info(`Graph bounds: ${l}x${u}`,e),l=s+r*2,u=o+r*2,Me.info(`Calculated bounds: ${l}x${u}`),mj(t,u,l,n);const c=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),Ch={},X2e=C((e,t,r)=>{let n="";return e in Ch&&Ch[e]?n=Ch[e](r):Me.warn(`No theme found for ${e}`),` & {
- font-family: ${r.fontFamily};
- font-size: ${r.fontSize};
- fill: ${r.textColor}
- }
- @keyframes edge-animation-frame {
- from {
- stroke-dashoffset: 0;
- }
- }
- @keyframes dash {
- to {
- stroke-dashoffset: 0;
- }
- }
- & .edge-animation-slow {
- stroke-dasharray: 9,5 !important;
- stroke-dashoffset: 900;
- animation: dash 50s linear infinite;
- stroke-linecap: round;
- }
- & .edge-animation-fast {
- stroke-dasharray: 9,5 !important;
- stroke-dashoffset: 900;
- animation: dash 20s linear infinite;
- stroke-linecap: round;
- }
- /* Classes common for multiple diagrams */
- & .error-icon {
- fill: ${r.errorBkgColor};
- }
- & .error-text {
- fill: ${r.errorTextColor};
- stroke: ${r.errorTextColor};
- }
- & .edge-thickness-normal {
- stroke-width: 1px;
- }
- & .edge-thickness-thick {
- stroke-width: 3.5px
- }
- & .edge-pattern-solid {
- stroke-dasharray: 0;
- }
- & .edge-thickness-invisible {
- stroke-width: 0;
- fill: none;
- }
- & .edge-pattern-dashed{
- stroke-dasharray: 3;
- }
- .edge-pattern-dotted {
- stroke-dasharray: 2;
- }
- & .marker {
- fill: ${r.lineColor};
- stroke: ${r.lineColor};
- }
- & .marker.cross {
- stroke: ${r.lineColor};
- }
- & svg {
- font-family: ${r.fontFamily};
- font-size: ${r.fontSize};
- }
- & p {
- margin: 0
- }
- ${n}
- ${t}
- `},"getStyles"),J2e=C((e,t)=>{t!==void 0&&(Ch[e]=t)},"addStylesForDiagram"),Q2e=X2e,gj={};g2e(gj,{clear:()=>efe,getAccDescription:()=>ife,getAccTitle:()=>rfe,getDiagramTitle:()=>sfe,setAccDescription:()=>nfe,setAccTitle:()=>tfe,setDiagramTitle:()=>afe});var Gg="",Kg="",Yg="",Zg=C(e=>co(e,$n()),"sanitizeText"),efe=C(()=>{Gg="",Yg="",Kg=""},"clear"),tfe=C(e=>{Gg=Zg(e).replace(/^\s+/g,"")},"setAccTitle"),rfe=C(()=>Gg,"getAccTitle"),nfe=C(e=>{Yg=Zg(e).replace(/\n\s+/g,`
- `)},"setAccDescription"),ife=C(()=>Yg,"getAccDescription"),afe=C(e=>{Kg=Zg(e)},"setDiagramTitle"),sfe=C(()=>Kg,"getDiagramTitle"),Ux=Me,ofe=qg,Ht=$n,vbe=uj,wbe=kl,Xg=C(e=>co(e,Ht()),"sanitizeText"),lfe=Z2e,ufe=C(()=>gj,"getCommonDb"),l2={},u2=C((e,t,r)=>{var n;l2[e]&&Ux.warn(`Diagram with id ${e} already registered. Overwriting.`),l2[e]=t,r&&nj(e,r),J2e(e,t.styles),(n=t.injectUtils)==null||n.call(t,Ux,ofe,Ht,Xg,lfe,ufe(),()=>{})},"registerDiagram"),p4=C(e=>{if(e in l2)return l2[e];throw new cfe(e)},"getDiagram"),bl,cfe=(bl=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},C(bl,"DiagramNotFoundError"),bl);function Jg(e){return typeof e>"u"||e===null}C(Jg,"isNothing");function yj(e){return typeof e=="object"&&e!==null}C(yj,"isObject");function bj(e){return Array.isArray(e)?e:Jg(e)?[]:[e]}C(bj,"toArray");function xj(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}C(xj,"extend");function vj(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}C(vj,"repeat");function wj(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}C(wj,"isNegativeZero");var dfe=Jg,hfe=yj,ffe=bj,pfe=vj,mfe=wj,gfe=xj,Lr={isNothing:dfe,isObject:hfe,toArray:ffe,repeat:pfe,isNegativeZero:mfe,extend:gfe};function Qg(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
- `+e.mark.snippet),n+" "+r):n}C(Qg,"formatError");function Dl(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Qg(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}C(Dl,"YAMLException$1");Dl.prototype=Object.create(Error.prototype);Dl.prototype.constructor=Dl;Dl.prototype.toString=C(function(t){return this.name+": "+Qg(this,t)},"toString");var Mn=Dl;function Sh(e,t,r,n,i){var s="",o="",l=Math.floor(i/2)-1;return n-t>l&&(s=" ... ",t=n-l+s.length),r-n>l&&(o=" ...",r=n+l-o.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+s.length}}C(Sh,"getLine");function Fh(e,t){return Lr.repeat(" ",t-e.length)+e}C(Fh,"padStart");function Ej(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var l="",u,c,d=Math.min(e.line+t.linesAfter,i.length).toString().length,h=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)c=Sh(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),h),l=Lr.repeat(" ",t.indent)+Fh((e.line-u+1).toString(),d)+" | "+c.str+`
- `+l;for(c=Sh(e.buffer,n[o],i[o],e.position,h),l+=Lr.repeat(" ",t.indent)+Fh((e.line+1).toString(),d)+" | "+c.str+`
- `,l+=Lr.repeat("-",t.indent+d+3+c.pos)+`^
- `,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=Sh(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),h),l+=Lr.repeat(" ",t.indent)+Fh((e.line+u+1).toString(),d)+" | "+c.str+`
- `;return l.replace(/\n$/,"")}C(Ej,"makeSnippet");var yfe=Ej,bfe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],xfe=["scalar","sequence","mapping"];function Cj(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}C(Cj,"compileStyleAliases");function Sj(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(bfe.indexOf(r)===-1)throw new Mn('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Cj(t.styleAliases||null),xfe.indexOf(this.kind)===-1)throw new Mn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}C(Sj,"Type$1");var cn=Sj;function m4(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}C(m4,"compileList");function Fj(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(C(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}C(Fj,"compileMap");function c2(e){return this.extend(e)}C(c2,"Schema$1");c2.prototype.extend=C(function(t){var r=[],n=[];if(t instanceof cn)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Mn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof cn))throw new Mn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Mn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Mn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof cn))throw new Mn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(c2.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=m4(i,"implicit"),i.compiledExplicit=m4(i,"explicit"),i.compiledTypeMap=Fj(i.compiledImplicit,i.compiledExplicit),i},"extend");var vfe=c2,wfe=new cn("tag:yaml.org,2002:str",{kind:"scalar",construct:C(function(e){return e!==null?e:""},"construct")}),Efe=new cn("tag:yaml.org,2002:seq",{kind:"sequence",construct:C(function(e){return e!==null?e:[]},"construct")}),Cfe=new cn("tag:yaml.org,2002:map",{kind:"mapping",construct:C(function(e){return e!==null?e:{}},"construct")}),Sfe=new vfe({explicit:[wfe,Efe,Cfe]});function jj(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}C(jj,"resolveYamlNull");function _j(){return null}C(_j,"constructYamlNull");function kj(e){return e===null}C(kj,"isNull");var Ffe=new cn("tag:yaml.org,2002:null",{kind:"scalar",resolve:jj,construct:_j,predicate:kj,represent:{canonical:C(function(){return"~"},"canonical"),lowercase:C(function(){return"null"},"lowercase"),uppercase:C(function(){return"NULL"},"uppercase"),camelcase:C(function(){return"Null"},"camelcase"),empty:C(function(){return""},"empty")},defaultStyle:"lowercase"});function Oj(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}C(Oj,"resolveYamlBoolean");function Aj(e){return e==="true"||e==="True"||e==="TRUE"}C(Aj,"constructYamlBoolean");function Dj(e){return Object.prototype.toString.call(e)==="[object Boolean]"}C(Dj,"isBoolean");var jfe=new cn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Oj,construct:Aj,predicate:Dj,represent:{lowercase:C(function(e){return e?"true":"false"},"lowercase"),uppercase:C(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:C(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function Bj(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}C(Bj,"isHexCode");function Tj(e){return 48<=e&&e<=55}C(Tj,"isOctCode");function Pj(e){return 48<=e&&e<=57}C(Pj,"isDecCode");function Nj(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!Bj(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!Tj(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!Pj(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}C(Nj,"resolveYamlInteger");function Mj(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}C(Mj,"constructYamlInteger");function Ij(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Lr.isNegativeZero(e)}C(Ij,"isInteger");var _fe=new cn("tag:yaml.org,2002:int",{kind:"scalar",resolve:Nj,construct:Mj,predicate:Ij,represent:{binary:C(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:C(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:C(function(e){return e.toString(10)},"decimal"),hexadecimal:C(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),kfe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $j(e){return!(e===null||!kfe.test(e)||e[e.length-1]==="_")}C($j,"resolveYamlFloat");function Lj(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}C(Lj,"constructYamlFloat");var Ofe=/^[-+]?[0-9]+e/;function Rj(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Lr.isNegativeZero(e))return"-0.0";return r=e.toString(10),Ofe.test(r)?r.replace("e",".e"):r}C(Rj,"representYamlFloat");function zj(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Lr.isNegativeZero(e))}C(zj,"isFloat");var Afe=new cn("tag:yaml.org,2002:float",{kind:"scalar",resolve:$j,construct:Lj,predicate:zj,represent:Rj,defaultStyle:"lowercase"}),Uj=Sfe.extend({implicit:[Ffe,jfe,_fe,Afe]}),Dfe=Uj,Hj=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),qj=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Wj(e){return e===null?!1:Hj.exec(e)!==null||qj.exec(e)!==null}C(Wj,"resolveYamlTimestamp");function Vj(e){var t,r,n,i,s,o,l,u=0,c=null,d,h,f;if(t=Hj.exec(e),t===null&&(t=qj.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],l=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(d=+t[10],h=+(t[11]||0),c=(d*60+h)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,n,i,s,o,l,u)),c&&f.setTime(f.getTime()-c),f}C(Vj,"constructYamlTimestamp");function Gj(e){return e.toISOString()}C(Gj,"representYamlTimestamp");var Bfe=new cn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Wj,construct:Vj,instanceOf:Date,represent:Gj});function Kj(e){return e==="<<"||e===null}C(Kj,"resolveYamlMerge");var Tfe=new cn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Kj}),e3=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
- \r`;function Yj(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=e3;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}C(Yj,"resolveYamlBinary");function Zj(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=e3,o=0,l=[];for(t=0;t<i;t++)t%4===0&&t&&(l.push(o>>16&255),l.push(o>>8&255),l.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(l.push(o>>16&255),l.push(o>>8&255),l.push(o&255)):r===18?(l.push(o>>10&255),l.push(o>>2&255)):r===12&&l.push(o>>4&255),new Uint8Array(l)}C(Zj,"constructYamlBinary");function Xj(e){var t="",r=0,n,i,s=e.length,o=e3;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}C(Xj,"representYamlBinary");function Jj(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}C(Jj,"isBinary");var Pfe=new cn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Yj,construct:Zj,predicate:Jj,represent:Xj}),Nfe=Object.prototype.hasOwnProperty,Mfe=Object.prototype.toString;function Qj(e){if(e===null)return!0;var t=[],r,n,i,s,o,l=e;for(r=0,n=l.length;r<n;r+=1){if(i=l[r],o=!1,Mfe.call(i)!=="[object Object]")return!1;for(s in i)if(Nfe.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}C(Qj,"resolveYamlOmap");function e_(e){return e!==null?e:[]}C(e_,"constructYamlOmap");var Ife=new cn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Qj,construct:e_}),$fe=Object.prototype.toString;function t_(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],$fe.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}C(t_,"resolveYamlPairs");function r_(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}C(r_,"constructYamlPairs");var Lfe=new cn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:t_,construct:r_}),Rfe=Object.prototype.hasOwnProperty;function n_(e){if(e===null)return!0;var t,r=e;for(t in r)if(Rfe.call(r,t)&&r[t]!==null)return!1;return!0}C(n_,"resolveYamlSet");function i_(e){return e!==null?e:{}}C(i_,"constructYamlSet");var zfe=new cn("tag:yaml.org,2002:set",{kind:"mapping",resolve:n_,construct:i_}),a_=Dfe.extend({implicit:[Bfe,Tfe],explicit:[Pfe,Ife,Lfe,zfe]}),fs=Object.prototype.hasOwnProperty,d2=1,s_=2,o_=3,h2=4,s5=1,Ufe=2,Hx=3,Hfe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qfe=/[\x85\u2028\u2029]/,Wfe=/[,\[\]\{\}]/,l_=/^(?:!|!!|![a-z\-]+!)$/i,u_=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function g4(e){return Object.prototype.toString.call(e)}C(g4,"_class");function Oi(e){return e===10||e===13}C(Oi,"is_EOL");function os(e){return e===9||e===32}C(os,"is_WHITE_SPACE");function Cn(e){return e===9||e===32||e===10||e===13}C(Cn,"is_WS_OR_EOL");function Ws(e){return e===44||e===91||e===93||e===123||e===125}C(Ws,"is_FLOW_INDICATOR");function c_(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}C(c_,"fromHexCode");function d_(e){return e===120?2:e===117?4:e===85?8:0}C(d_,"escapedHexLen");function h_(e){return 48<=e&&e<=57?e-48:-1}C(h_,"fromDecimalCode");function y4(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}C(y4,"simpleEscapeSequence");function f_(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}C(f_,"charFromCodepoint");var p_=new Array(256),m_=new Array(256);for($s=0;$s<256;$s++)p_[$s]=y4($s)?1:0,m_[$s]=y4($s);var $s;function g_(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||a_,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}C(g_,"State$1");function t3(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=yfe(r),new Mn(t,r)}C(t3,"generateError");function ft(e,t){throw t3(e,t)}C(ft,"throwError");function q1(e,t){e.onWarning&&e.onWarning.call(null,t3(e,t))}C(q1,"throwWarning");var qx={YAML:C(function(t,r,n){var i,s,o;t.version!==null&&ft(t,"duplication of %YAML directive"),n.length!==1&&ft(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ft(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ft(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&q1(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:C(function(t,r,n){var i,s;n.length!==2&&ft(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],l_.test(i)||ft(t,"ill-formed tag handle (first argument) of the TAG directive"),fs.call(t.tagMap,i)&&ft(t,'there is a previously declared suffix for "'+i+'" tag handle'),u_.test(s)||ft(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ft(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s},"handleTagDirective")};function Ea(e,t,r,n){var i,s,o,l;if(t<r){if(l=e.input.slice(t,r),n)for(i=0,s=l.length;i<s;i+=1)o=l.charCodeAt(i),o===9||32<=o&&o<=1114111||ft(e,"expected valid JSON character");else Hfe.test(l)&&ft(e,"the stream contains non-printable characters");e.result+=l}}C(Ea,"captureSegment");function b4(e,t,r,n){var i,s,o,l;for(Lr.isObject(r)||ft(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,l=i.length;o<l;o+=1)s=i[o],fs.call(t,s)||(t[s]=r[s],n[s]=!0)}C(b4,"mergeMappings");function Vs(e,t,r,n,i,s,o,l,u){var c,d;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,d=i.length;c<d;c+=1)Array.isArray(i[c])&&ft(e,"nested arrays are not supported inside keys"),typeof i=="object"&&g4(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&g4(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,d=s.length;c<d;c+=1)b4(e,t,s[c],r);else b4(e,t,s,r);else!e.json&&!fs.call(r,i)&&fs.call(t,i)&&(e.line=o||e.line,e.lineStart=l||e.lineStart,e.position=u||e.position,ft(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}C(Vs,"storeMappingPair");function mf(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ft(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}C(mf,"readLineBreak");function kr(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;os(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Oi(i))for(mf(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&q1(e,"deficient indentation"),n}C(kr,"skipSeparationSpace");function wd(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Cn(r)))}C(wd,"testDocumentSeparator");function gf(e,t){t===1?e.result+=" ":t>1&&(e.result+=Lr.repeat(`
- `,t-1))}C(gf,"writeFoldedLines");function y_(e,t,r){var n,i,s,o,l,u,c,d,h=e.kind,f=e.result,p;if(p=e.input.charCodeAt(e.position),Cn(p)||Ws(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),Cn(i)||r&&Ws(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,l=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),Cn(i)||r&&Ws(i))break}else if(p===35){if(n=e.input.charCodeAt(e.position-1),Cn(n))break}else{if(e.position===e.lineStart&&wd(e)||r&&Ws(p))break;if(Oi(p))if(u=e.line,c=e.lineStart,d=e.lineIndent,kr(e,!1,-1),e.lineIndent>=t){l=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=d;break}}l&&(Ea(e,s,o,!1),gf(e,e.line-u),s=o=e.position,l=!1),os(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Ea(e,s,o,!1),e.result?!0:(e.kind=h,e.result=f,!1)}C(y_,"readPlainScalar");function b_(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ea(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Oi(r)?(Ea(e,n,i,!0),gf(e,kr(e,!1,t)),n=i=e.position):e.position===e.lineStart&&wd(e)?ft(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ft(e,"unexpected end of the stream within a single quoted scalar")}C(b_,"readSingleQuotedScalar");function x_(e,t){var r,n,i,s,o,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return Ea(e,r,e.position,!0),e.position++,!0;if(l===92){if(Ea(e,r,e.position,!0),l=e.input.charCodeAt(++e.position),Oi(l))kr(e,!1,t);else if(l<256&&p_[l])e.result+=m_[l],e.position++;else if((o=d_(l))>0){for(i=o,s=0;i>0;i--)l=e.input.charCodeAt(++e.position),(o=c_(l))>=0?s=(s<<4)+o:ft(e,"expected hexadecimal character");e.result+=f_(s),e.position++}else ft(e,"unknown escape sequence");r=n=e.position}else Oi(l)?(Ea(e,r,n,!0),gf(e,kr(e,!1,t)),r=n=e.position):e.position===e.lineStart&&wd(e)?ft(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ft(e,"unexpected end of the stream within a double quoted scalar")}C(x_,"readDoubleQuotedScalar");function v_(e,t){var r=!0,n,i,s,o=e.tag,l,u=e.anchor,c,d,h,f,p,g=Object.create(null),y,b,x,v;if(v=e.input.charCodeAt(e.position),v===91)d=93,p=!1,l=[];else if(v===123)d=125,p=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),v=e.input.charCodeAt(++e.position);v!==0;){if(kr(e,!0,t),v=e.input.charCodeAt(e.position),v===d)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=l,!0;r?v===44&&ft(e,"expected the node content, but found ','"):ft(e,"missed comma between flow collection entries"),b=y=x=null,h=f=!1,v===63&&(c=e.input.charCodeAt(e.position+1),Cn(c)&&(h=f=!0,e.position++,kr(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,ho(e,t,d2,!1,!0),b=e.tag,y=e.result,kr(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===n)&&v===58&&(h=!0,v=e.input.charCodeAt(++e.position),kr(e,!0,t),ho(e,t,d2,!1,!0),x=e.result),p?Vs(e,l,g,b,y,x,n,i,s):h?l.push(Vs(e,null,g,b,y,x,n,i,s)):l.push(y),kr(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}ft(e,"unexpected end of the stream within a flow collection")}C(v_,"readFlowCollection");function w_(e,t){var r,n,i=s5,s=!1,o=!1,l=t,u=0,c=!1,d,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)s5===i?i=h===43?Hx:Ufe:ft(e,"repeat of a chomping mode identifier");else if((d=h_(h))>=0)d===0?ft(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ft(e,"repeat of an indentation width identifier"):(l=t+d-1,o=!0);else break;if(os(h)){do h=e.input.charCodeAt(++e.position);while(os(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!Oi(h)&&h!==0)}for(;h!==0;){for(mf(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!o||e.lineIndent<l)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>l&&(l=e.lineIndent),Oi(h)){u++;continue}if(e.lineIndent<l){i===Hx?e.result+=Lr.repeat(`
- `,s?1+u:u):i===s5&&s&&(e.result+=`
- `);break}for(n?os(h)?(c=!0,e.result+=Lr.repeat(`
- `,s?1+u:u)):c?(c=!1,e.result+=Lr.repeat(`
- `,u+1)):u===0?s&&(e.result+=" "):e.result+=Lr.repeat(`
- `,u):e.result+=Lr.repeat(`
- `,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!Oi(h)&&h!==0;)h=e.input.charCodeAt(++e.position);Ea(e,r,e.position,!1)}return!0}C(w_,"readBlockScalar");function x4(e,t){var r,n=e.tag,i=e.anchor,s=[],o,l=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ft(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!Cn(o))));){if(l=!0,e.position++,kr(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,ho(e,t,o_,!1,!0),s.push(e.result),kr(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)ft(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}C(x4,"readBlockSequence");function E_(e,t,r){var n,i,s,o,l,u,c=e.tag,d=e.anchor,h={},f=Object.create(null),p=null,g=null,y=null,b=!1,x=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),v=e.input.charCodeAt(e.position);v!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ft(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(v===63||v===58)&&Cn(n))v===63?(b&&(Vs(e,h,f,p,g,null,o,l,u),p=g=y=null),x=!0,b=!0,i=!0):b?(b=!1,i=!0):ft(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else{if(o=e.line,l=e.lineStart,u=e.position,!ho(e,r,s_,!1,!0))break;if(e.line===s){for(v=e.input.charCodeAt(e.position);os(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),Cn(v)||ft(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Vs(e,h,f,p,g,null,o,l,u),p=g=y=null),x=!0,b=!1,i=!1,p=e.tag,g=e.result;else if(x)ft(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=d,!0}else if(x)ft(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=d,!0}if((e.line===s||e.lineIndent>t)&&(b&&(o=e.line,l=e.lineStart,u=e.position),ho(e,t,h2,!0,i)&&(b?g=e.result:y=e.result),b||(Vs(e,h,f,p,g,y,o,l,u),p=g=y=null),kr(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&v!==0)ft(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return b&&Vs(e,h,f,p,g,null,o,l,u),x&&(e.tag=c,e.anchor=d,e.kind="mapping",e.result=h),x}C(E_,"readBlockMapping");function C_(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ft(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ft(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Cn(o);)o===33&&(n?ft(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),l_.test(i)||ft(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Wfe.test(s)&&ft(e,"tag suffix cannot contain flow indicator characters")}s&&!u_.test(s)&&ft(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ft(e,"tag name is malformed: "+s)}return r?e.tag=s:fs.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ft(e,'undeclared tag handle "'+i+'"'),!0}C(C_,"readTagProperty");function S_(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ft(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Cn(r)&&!Ws(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ft(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}C(S_,"readAnchorProperty");function F_(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Cn(n)&&!Ws(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ft(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),fs.call(e.anchorMap,r)||ft(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],kr(e,!0,-1),!0}C(F_,"readAlias");function ho(e,t,r,n,i){var s,o,l,u=1,c=!1,d=!1,h,f,p,g,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=l=h2===r||o_===r,n&&kr(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;C_(e)||S_(e);)kr(e,!0,-1)?(c=!0,l=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):l=!1;if(l&&(l=c||i),(u===1||h2===r)&&(d2===r||s_===r?y=t:y=t+1,b=e.position-e.lineStart,u===1?l&&(x4(e,b)||E_(e,b,y))||v_(e,y)?d=!0:(o&&w_(e,y)||b_(e,y)||x_(e,y)?d=!0:F_(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&ft(e,"alias node should not have any properties")):y_(e,y,d2===r)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(d=l&&x4(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ft(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,f=e.implicitTypes.length;h<f;h+=1)if(g=e.implicitTypes[h],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(fs.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,p=e.typeMap.multi[e.kind||"fallback"],h=0,f=p.length;h<f;h+=1)if(e.tag.slice(0,p[h].tag.length)===p[h].tag){g=p[h];break}g||ft(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&ft(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ft(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}C(ho,"composeNode");function j_(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(kr(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Cn(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ft(e,"directive name must not be less than one character in length");o!==0;){for(;os(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Oi(o));break}if(Oi(o))break;for(r=e.position;o!==0&&!Cn(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&mf(e),fs.call(qx,n)?qx[n](e,n,i):q1(e,'unknown document directive "'+n+'"')}if(kr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,kr(e,!0,-1)):s&&ft(e,"directives end mark is expected"),ho(e,e.lineIndent-1,h2,!1,!0),kr(e,!0,-1),e.checkLineBreaks&&qfe.test(e.input.slice(t,e.position))&&q1(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&wd(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,kr(e,!0,-1));return}if(e.position<e.length-1)ft(e,"end of the stream or a document separator is expected");else return}C(j_,"readDocument");function r3(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new g_(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ft(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)j_(r);return r.documents}C(r3,"loadDocuments");function __(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=r3(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}C(__,"loadAll$1");function k_(e,t){var r=r3(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Mn("expected a single document in the stream, but found more")}}C(k_,"load$1");var Vfe=__,Gfe=k_,Kfe={loadAll:Vfe,load:Gfe},O_=Object.prototype.toString,A_=Object.prototype.hasOwnProperty,n3=65279,Yfe=9,W1=10,Zfe=13,Xfe=32,Jfe=33,Qfe=34,v4=35,epe=37,tpe=38,rpe=39,npe=42,D_=44,ipe=45,f2=58,ape=61,spe=62,ope=63,lpe=64,B_=91,T_=93,upe=96,P_=123,cpe=124,N_=125,dn={};dn[0]="\\0";dn[7]="\\a";dn[8]="\\b";dn[9]="\\t";dn[10]="\\n";dn[11]="\\v";dn[12]="\\f";dn[13]="\\r";dn[27]="\\e";dn[34]='\\"';dn[92]="\\\\";dn[133]="\\N";dn[160]="\\_";dn[8232]="\\L";dn[8233]="\\P";var dpe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],hpe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function M_(e,t){var r,n,i,s,o,l,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],l=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&A_.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[o]=l;return r}C(M_,"compileStyleMap");function I_(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Mn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Lr.repeat("0",n-t.length)+t}C(I_,"encodeHex");var fpe=1,V1=2;function $_(e){this.schema=e.schema||a_,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Lr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=M_(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?V1:fpe,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}C($_,"State");function w4(e,t){for(var r=Lr.repeat(" ",t),n=0,i=-1,s="",o,l=e.length;n<l;)i=e.indexOf(`
- `,n),i===-1?(o=e.slice(n),n=l):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
- `&&(s+=r),s+=o;return s}C(w4,"indentString");function p2(e,t){return`
- `+Lr.repeat(" ",e.indent*t)}C(p2,"generateNextLine");function L_(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}C(L_,"testImplicitResolving");function G1(e){return e===Xfe||e===Yfe}C(G1,"isWhitespace");function Bl(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==n3||65536<=e&&e<=1114111}C(Bl,"isPrintable");function E4(e){return Bl(e)&&e!==n3&&e!==Zfe&&e!==W1}C(E4,"isNsCharOrWhitespace");function C4(e,t,r){var n=E4(e),i=n&&!G1(e);return(r?n:n&&e!==D_&&e!==B_&&e!==T_&&e!==P_&&e!==N_)&&e!==v4&&!(t===f2&&!i)||E4(t)&&!G1(t)&&e===v4||t===f2&&i}C(C4,"isPlainSafe");function R_(e){return Bl(e)&&e!==n3&&!G1(e)&&e!==ipe&&e!==ope&&e!==f2&&e!==D_&&e!==B_&&e!==T_&&e!==P_&&e!==N_&&e!==v4&&e!==tpe&&e!==npe&&e!==Jfe&&e!==cpe&&e!==ape&&e!==spe&&e!==rpe&&e!==Qfe&&e!==epe&&e!==lpe&&e!==upe}C(R_,"isPlainSafeFirst");function z_(e){return!G1(e)&&e!==f2}C(z_,"isPlainSafeLast");function el(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}C(el,"codePointAt");function i3(e){var t=/^\n* /;return t.test(e)}C(i3,"needIndentIndicator");var U_=1,S4=2,H_=3,q_=4,Jo=5;function W_(e,t,r,n,i,s,o,l){var u,c=0,d=null,h=!1,f=!1,p=n!==-1,g=-1,y=R_(el(e,0))&&z_(el(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=el(e,u),!Bl(c))return Jo;y=y&&C4(c,d,l),d=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=el(e,u),c===W1)h=!0,p&&(f=f||u-g-1>n&&e[g+1]!==" ",g=u);else if(!Bl(c))return Jo;y=y&&C4(c,d,l),d=c}f=f||p&&u-g-1>n&&e[g+1]!==" "}return!h&&!f?y&&!o&&!i(e)?U_:s===V1?Jo:S4:r>9&&i3(e)?Jo:o?s===V1?Jo:S4:f?q_:H_}C(W_,"chooseScalarStyle");function V_(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===V1?'""':"''";if(!e.noCompatMode&&(dpe.indexOf(t)!==-1||hpe.test(t)))return e.quotingType===V1?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),l=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return L_(e,c)}switch(C(u,"testAmbiguity"),W_(t,l,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case U_:return t;case S4:return"'"+t.replace(/'/g,"''")+"'";case H_:return"|"+F4(t,e.indent)+j4(w4(t,s));case q_:return">"+F4(t,e.indent)+j4(w4(G_(t,o),s));case Jo:return'"'+K_(t)+'"';default:throw new Mn("impossible error: invalid scalar style")}}()}C(V_,"writeScalar");function F4(e,t){var r=i3(e)?String(t):"",n=e[e.length-1]===`
- `,i=n&&(e[e.length-2]===`
- `||e===`
- `),s=i?"+":n?"":"-";return r+s+`
- `}C(F4,"blockHeader");function j4(e){return e[e.length-1]===`
- `?e.slice(0,-1):e}C(j4,"dropEndingNewline");function G_(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
- `);return c=c!==-1?c:e.length,r.lastIndex=c,_4(e.slice(0,c),t)}(),i=e[0]===`
- `||e[0]===" ",s,o;o=r.exec(e);){var l=o[1],u=o[2];s=u[0]===" ",n+=l+(!i&&!s&&u!==""?`
- `:"")+_4(u,t),i=s}return n}C(G_,"foldString");function _4(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,l=0,u="";n=r.exec(e);)l=n.index,l-i>t&&(s=o>i?o:l,u+=`
- `+e.slice(i,s),i=s+1),o=l;return u+=`
- `,e.length-i>t&&o>i?u+=e.slice(i,o)+`
- `+e.slice(o+1):u+=e.slice(i),u.slice(1)}C(_4,"foldLine");function K_(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=el(e,i),n=dn[r],!n&&Bl(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||I_(r);return t}C(K_,"escapeString");function Y_(e,t,r){var n="",i=e.tag,s,o,l;for(s=0,o=r.length;s<o;s+=1)l=r[s],e.replacer&&(l=e.replacer.call(r,String(s),l)),(Zi(e,t,l,!1,!1)||typeof l>"u"&&Zi(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}C(Y_,"writeFlowSequence");function k4(e,t,r,n){var i="",s=e.tag,o,l,u;for(o=0,l=r.length;o<l;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(Zi(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&Zi(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=p2(e,t)),e.dump&&W1===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}C(k4,"writeBlockSequence");function Z_(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,l,u,c,d;for(o=0,l=s.length;o<l;o+=1)d="",n!==""&&(d+=", "),e.condenseFlow&&(d+='"'),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),Zi(e,t,u,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Zi(e,t,c,!1,!1)&&(d+=e.dump,n+=d));e.tag=i,e.dump="{"+n+"}"}C(Z_,"writeFlowMapping");function X_(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),l,u,c,d,h,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Mn("sortKeys must be a boolean or a function");for(l=0,u=o.length;l<u;l+=1)f="",(!n||i!=="")&&(f+=p2(e,t)),c=o[l],d=r[c],e.replacer&&(d=e.replacer.call(r,c,d)),Zi(e,t+1,c,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&W1===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,h&&(f+=p2(e,t)),Zi(e,t+1,d,!0,h)&&(e.dump&&W1===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,i+=f));e.tag=s,e.dump=i||"{}"}C(X_,"writeBlockMapping");function O4(e,t,r){var n,i,s,o,l,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(l=i[s],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(r?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(u=e.styleMap[l.tag]||l.defaultStyle,O_.call(l.represent)==="[object Function]")n=l.represent(t,u);else if(A_.call(l.represent,u))n=l.represent[u](t,u);else throw new Mn("!<"+l.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}C(O4,"detectType");function Zi(e,t,r,n,i,s,o){e.tag=null,e.dump=r,O4(e,r,!1)||O4(e,r,!0);var l=O_.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var d=l==="[object Object]"||l==="[object Array]",h,f;if(d&&(h=e.duplicates.indexOf(r),f=h!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(d&&f&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),l==="[object Object]")n&&Object.keys(e.dump).length!==0?(X_(e,t,e.dump,i),f&&(e.dump="&ref_"+h+e.dump)):(Z_(e,t,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if(l==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?k4(e,t-1,e.dump,i):k4(e,t,e.dump,i),f&&(e.dump="&ref_"+h+e.dump)):(Y_(e,t,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&V_(e,e.dump,t,s,u);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Mn("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}C(Zi,"writeNode");function J_(e,t){var r=[],n=[],i,s;for(m2(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}C(J_,"getDuplicateReferences");function m2(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)m2(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)m2(e[n[i]],t,r)}C(m2,"inspectNode");function ppe(e,t){t=t||{};var r=new $_(t);r.noRefs||J_(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Zi(r,0,n,!0,!0)?r.dump+`
- `:""}C(ppe,"dump$1");function mpe(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}C(mpe,"renamed");var gpe=Uj,ype=Kfe.load;/*! Bundled license information:
- js-yaml/dist/js-yaml.mjs:
- (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
- */var si={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function Tu(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=mr(e),t=mr(t);const[r,n]=[e.x,e.y],[i,s]=[t.x,t.y],o=i-r,l=s-n;return{angle:Math.atan(l/o),deltaX:o,deltaY:l}}C(Tu,"calculateDeltaAndAngle");var mr=C(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),bpe=C(e=>({x:C(function(t,r,n){let i=0;const s=mr(n[0]).x<mr(n[n.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(si,e.arrowTypeStart)){const{angle:p,deltaX:g}=Tu(n[0],n[1]);i=si[e.arrowTypeStart]*Math.cos(p)*(g>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(si,e.arrowTypeEnd)){const{angle:p,deltaX:g}=Tu(n[n.length-1],n[n.length-2]);i=si[e.arrowTypeEnd]*Math.cos(p)*(g>=0?1:-1)}const o=Math.abs(mr(t).x-mr(n[n.length-1]).x),l=Math.abs(mr(t).y-mr(n[n.length-1]).y),u=Math.abs(mr(t).x-mr(n[0]).x),c=Math.abs(mr(t).y-mr(n[0]).y),d=si[e.arrowTypeStart],h=si[e.arrowTypeEnd],f=1;if(o<h&&o>0&&l<h){let p=h+f-o;p*=s==="right"?-1:1,i-=p}if(u<d&&u>0&&c<d){let p=d+f-u;p*=s==="right"?-1:1,i+=p}return mr(t).x+i},"x"),y:C(function(t,r,n){let i=0;const s=mr(n[0]).y<mr(n[n.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(si,e.arrowTypeStart)){const{angle:p,deltaY:g}=Tu(n[0],n[1]);i=si[e.arrowTypeStart]*Math.abs(Math.sin(p))*(g>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(si,e.arrowTypeEnd)){const{angle:p,deltaY:g}=Tu(n[n.length-1],n[n.length-2]);i=si[e.arrowTypeEnd]*Math.abs(Math.sin(p))*(g>=0?1:-1)}const o=Math.abs(mr(t).y-mr(n[n.length-1]).y),l=Math.abs(mr(t).x-mr(n[n.length-1]).x),u=Math.abs(mr(t).y-mr(n[0]).y),c=Math.abs(mr(t).x-mr(n[0]).x),d=si[e.arrowTypeStart],h=si[e.arrowTypeEnd],f=1;if(o<h&&o>0&&l<h){let p=h+f-o;p*=s==="up"?-1:1,i-=p}if(u<d&&u>0&&c<d){let p=d+f-u;p*=s==="up"?-1:1,i+=p}return mr(t).y+i},"y")}),"getLineFunctionsWithOffset"),a3=C(({flowchart:e})=>{var i,s;const t=((i=e==null?void 0:e.subGraphTitleMargin)==null?void 0:i.top)??0,r=((s=e==null?void 0:e.subGraphTitleMargin)==null?void 0:s.bottom)??0,n=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins");const xpe=Object.freeze({left:0,top:0,width:16,height:16}),g2=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Q_=Object.freeze({...xpe,...g2}),vpe=Object.freeze({...Q_,body:"",hidden:!1}),wpe=Object.freeze({width:null,height:null}),Epe=Object.freeze({...wpe,...g2}),Cpe=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),u=i.pop(),c={provider:i.length>0?i[0]:n,prefix:u,name:l};return o5(c)?c:null}const s=i[0],o=s.split("-");if(o.length>1){const l={provider:n,prefix:o.shift(),name:o.join("-")};return o5(l)?l:null}if(r&&n===""){const l={provider:n,prefix:"",name:s};return o5(l,r)?l:null}return null},o5=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function Spe(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function Wx(e,t){const r=Spe(e,t);for(const n in vpe)n in g2?n in e&&!(n in r)&&(r[n]=g2[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function Fpe(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function s(o){if(r[o])return i[o]=[];if(!(o in i)){i[o]=null;const l=n[o]&&n[o].parent,u=l&&s(l);u&&(i[o]=[l].concat(u))}return i[o]}return t.forEach(s),i}function Vx(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let s={};function o(l){s=Wx(n[l]||i[l],s)}return o(t),r.forEach(o),Wx(e,s)}function jpe(e,t){if(e.icons[t])return Vx(e,t,[]);const r=Fpe(e,[t])[t];return r?Vx(e,t,r):null}const _pe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,kpe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Gx(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(_pe);if(n===null||!n.length)return e;const i=[];let s=n.shift(),o=kpe.test(s);for(;;){if(o){const l=parseFloat(s);isNaN(l)?i.push(s):i.push(Math.ceil(l*t*r)/r)}else i.push(s);if(s=n.shift(),s===void 0)return i.join("");o=!o}}function Ope(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const i=e.indexOf(">",n),s=e.indexOf("</"+t);if(i===-1||s===-1)break;const o=e.indexOf(">",s);if(o===-1)break;r+=e.slice(i+1,s).trim(),e=e.slice(0,n).trim()+e.slice(o+1)}return{defs:r,content:e}}function Ape(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Dpe(e,t,r){const n=Ope(e);return Ape(n.defs,t+n.content+r)}const Bpe=e=>e==="unset"||e==="undefined"||e==="none";function Tpe(e,t){const r={...Q_,...e},n={...Epe,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(y=>{const b=[],x=y.hFlip,v=y.vFlip;let E=y.rotate;x?v?E+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):v&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let _;switch(E<0&&(E-=Math.floor(E/4)*4),E=E%4,E){case 1:_=i.height/2+i.top,b.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:_=i.width/2+i.left,b.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}E%2===1&&(i.left!==i.top&&(_=i.left,i.left=i.top,i.top=_),i.width!==i.height&&(_=i.width,i.width=i.height,i.height=_)),b.length&&(s=Dpe(s,'<g transform="'+b.join(" ")+'">',"</g>"))});const o=n.width,l=n.height,u=i.width,c=i.height;let d,h;o===null?(h=l===null?"1em":l==="auto"?c:l,d=Gx(h,u/c)):(d=o==="auto"?u:o,h=l===null?Gx(d,c/u):l==="auto"?c:l);const f={},p=(y,b)=>{Bpe(b)||(f[y]=b.toString())};p("width",d),p("height",h);const g=[i.left,i.top,u,c];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:s}}const Ppe=/\sid="(\S+)"/g,Npe="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Mpe=0;function Ipe(e,t=Npe){const r=[];let n;for(;n=Ppe.exec(e);)r.push(n[1]);if(!r.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{const o=typeof t=="function"?t(s):t+(Mpe++).toString(),l=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function $pe(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}var Lpe={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},A4=new Map,ek=new Map,Rpe=C(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(Me.debug("Registering icon pack:",t.name),"loader"in t)ek.set(t.name,t.loader);else if("icons"in t)A4.set(t.name,t.icons);else throw Me.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),zpe=C(async(e,t)=>{const r=Cpe(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const n=r.prefix||t;if(!n)throw new Error(`Icon name must contain a prefix: ${e}`);let i=A4.get(n);if(!i){const o=ek.get(n);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await o(),prefix:n},A4.set(n,i)}catch(l){throw Me.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}const s=jpe(i,r.name);if(!s)throw new Error(`Icon not found: ${e}`);return s},"getRegisteredIconData"),yf=C(async(e,t)=>{let r;try{r=await zpe(e,t==null?void 0:t.fallbackPrefix)}catch(s){Me.error(s),r=Lpe}const n=Tpe(r,t);return $pe(Ipe(n.body),n.attributes)},"getIconSVG"),s3={},Wr={};Object.defineProperty(Wr,"__esModule",{value:!0});Wr.BLANK_URL=Wr.relativeFirstCharacters=Wr.whitespaceEscapeCharsRegex=Wr.urlSchemeRegex=Wr.ctrlCharactersRegex=Wr.htmlCtrlEntityRegex=Wr.htmlEntitiesRegex=Wr.invalidProtocolRegex=void 0;Wr.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Wr.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;Wr.htmlCtrlEntityRegex=/&(newline|tab);/gi;Wr.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Wr.urlSchemeRegex=/^.+(:|:)/gim;Wr.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Wr.relativeFirstCharacters=[".","/"];Wr.BLANK_URL="about:blank";Object.defineProperty(s3,"__esModule",{value:!0});var tk=s3.sanitizeUrl=void 0,sn=Wr;function Upe(e){return sn.relativeFirstCharacters.indexOf(e[0])>-1}function Hpe(e){var t=e.replace(sn.ctrlCharactersRegex,"");return t.replace(sn.htmlEntitiesRegex,function(r,n){return String.fromCharCode(n)})}function qpe(e){return URL.canParse(e)}function Kx(e){try{return decodeURIComponent(e)}catch{return e}}function Wpe(e){if(!e)return sn.BLANK_URL;var t,r=Kx(e.trim());do r=Hpe(r).replace(sn.htmlCtrlEntityRegex,"").replace(sn.ctrlCharactersRegex,"").replace(sn.whitespaceEscapeCharsRegex,"").trim(),r=Kx(r),t=r.match(sn.ctrlCharactersRegex)||r.match(sn.htmlEntitiesRegex)||r.match(sn.htmlCtrlEntityRegex)||r.match(sn.whitespaceEscapeCharsRegex);while(t&&t.length>0);var n=r;if(!n)return sn.BLANK_URL;if(Upe(n))return n;var i=n.trimStart(),s=i.match(sn.urlSchemeRegex);if(!s)return n;var o=s[0].toLowerCase().trim();if(sn.invalidProtocolRegex.test(o))return sn.BLANK_URL;var l=i.replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return l;if(o==="http:"||o==="https:"){if(!qpe(l))return sn.BLANK_URL;var u=new URL(l);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return l}tk=s3.sanitizeUrl=Wpe;var Vpe={value:()=>{}};function rk(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new jh(r)}function jh(e){this._=e}function Gpe(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}jh.prototype=rk.prototype={constructor:jh,on:function(e,t){var r=this._,n=Gpe(e+"",r),i,s=-1,o=n.length;if(arguments.length<2){for(;++s<o;)if((i=(e=n[s]).type)&&(i=Kpe(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<o;)if(i=(e=n[s]).type)r[i]=Yx(r[i],e.name,t);else if(t==null)for(i in r)r[i]=Yx(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new jh(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,s;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],n=0,i=s.length;n<i;++n)s[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,s=n.length;i<s;++i)n[i].value.apply(t,r)}};function Kpe(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function Yx(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=Vpe,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var D4="http://www.w3.org/1999/xhtml";const Zx={svg:"http://www.w3.org/2000/svg",xhtml:D4,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function bf(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Zx.hasOwnProperty(t)?{space:Zx[t],local:e}:e}function Ype(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===D4&&t.documentElement.namespaceURI===D4?t.createElement(e):t.createElementNS(r,e)}}function Zpe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function nk(e){var t=bf(e);return(t.local?Zpe:Ype)(t)}function Xpe(){}function o3(e){return e==null?Xpe:function(){return this.querySelector(e)}}function Jpe(e){typeof e!="function"&&(e=o3(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var s=t[i],o=s.length,l=n[i]=new Array(o),u,c,d=0;d<o;++d)(u=s[d])&&(c=e.call(u,u.__data__,d,s))&&("__data__"in u&&(c.__data__=u.__data__),l[d]=c);return new ti(n,this._parents)}function Qpe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function eme(){return[]}function ik(e){return e==null?eme:function(){return this.querySelectorAll(e)}}function tme(e){return function(){return Qpe(e.apply(this,arguments))}}function rme(e){typeof e=="function"?e=tme(e):e=ik(e);for(var t=this._groups,r=t.length,n=[],i=[],s=0;s<r;++s)for(var o=t[s],l=o.length,u,c=0;c<l;++c)(u=o[c])&&(n.push(e.call(u,u.__data__,c,o)),i.push(u));return new ti(n,i)}function ak(e){return function(){return this.matches(e)}}function sk(e){return function(t){return t.matches(e)}}var nme=Array.prototype.find;function ime(e){return function(){return nme.call(this.children,e)}}function ame(){return this.firstElementChild}function sme(e){return this.select(e==null?ame:ime(typeof e=="function"?e:sk(e)))}var ome=Array.prototype.filter;function lme(){return Array.from(this.children)}function ume(e){return function(){return ome.call(this.children,e)}}function cme(e){return this.selectAll(e==null?lme:ume(typeof e=="function"?e:sk(e)))}function dme(e){typeof e!="function"&&(e=ak(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var s=t[i],o=s.length,l=n[i]=[],u,c=0;c<o;++c)(u=s[c])&&e.call(u,u.__data__,c,s)&&l.push(u);return new ti(n,this._parents)}function ok(e){return new Array(e.length)}function hme(){return new ti(this._enter||this._groups.map(ok),this._parents)}function y2(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}y2.prototype={constructor:y2,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function fme(e){return function(){return e}}function pme(e,t,r,n,i,s){for(var o=0,l,u=t.length,c=s.length;o<c;++o)(l=t[o])?(l.__data__=s[o],n[o]=l):r[o]=new y2(e,s[o]);for(;o<u;++o)(l=t[o])&&(i[o]=l)}function mme(e,t,r,n,i,s,o){var l,u,c=new Map,d=t.length,h=s.length,f=new Array(d),p;for(l=0;l<d;++l)(u=t[l])&&(f[l]=p=o.call(u,u.__data__,l,t)+"",c.has(p)?i[l]=u:c.set(p,u));for(l=0;l<h;++l)p=o.call(e,s[l],l,s)+"",(u=c.get(p))?(n[l]=u,u.__data__=s[l],c.delete(p)):r[l]=new y2(e,s[l]);for(l=0;l<d;++l)(u=t[l])&&c.get(f[l])===u&&(i[l]=u)}function gme(e){return e.__data__}function yme(e,t){if(!arguments.length)return Array.from(this,gme);var r=t?mme:pme,n=this._parents,i=this._groups;typeof e!="function"&&(e=fme(e));for(var s=i.length,o=new Array(s),l=new Array(s),u=new Array(s),c=0;c<s;++c){var d=n[c],h=i[c],f=h.length,p=bme(e.call(d,d&&d.__data__,c,n)),g=p.length,y=l[c]=new Array(g),b=o[c]=new Array(g),x=u[c]=new Array(f);r(d,h,y,b,x,p,t);for(var v=0,E=0,_,j;v<g;++v)if(_=y[v]){for(v>=E&&(E=v+1);!(j=b[E])&&++E<g;);_._next=j||null}}return o=new ti(o,n),o._enter=l,o._exit=u,o}function bme(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xme(){return new ti(this._exit||this._groups.map(ok),this._parents)}function vme(e,t,r){var n=this.enter(),i=this,s=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?s.remove():r(s),n&&i?n.merge(i).order():i}function wme(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,s=n.length,o=Math.min(i,s),l=new Array(i),u=0;u<o;++u)for(var c=r[u],d=n[u],h=c.length,f=l[u]=new Array(h),p,g=0;g<h;++g)(p=c[g]||d[g])&&(f[g]=p);for(;u<i;++u)l[u]=r[u];return new ti(l,this._parents)}function Eme(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,s=n[i],o;--i>=0;)(o=n[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function Cme(e){e||(e=Sme);function t(h,f){return h&&f?e(h.__data__,f.__data__):!h-!f}for(var r=this._groups,n=r.length,i=new Array(n),s=0;s<n;++s){for(var o=r[s],l=o.length,u=i[s]=new Array(l),c,d=0;d<l;++d)(c=o[d])&&(u[d]=c);u.sort(t)}return new ti(i,this._parents).order()}function Sme(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Fme(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function jme(){return Array.from(this)}function _me(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,s=n.length;i<s;++i){var o=n[i];if(o)return o}return null}function kme(){let e=0;for(const t of this)++e;return e}function Ome(){return!this.node()}function Ame(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],s=0,o=i.length,l;s<o;++s)(l=i[s])&&e.call(l,l.__data__,s,i);return this}function Dme(e){return function(){this.removeAttribute(e)}}function Bme(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Tme(e,t){return function(){this.setAttribute(e,t)}}function Pme(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Nme(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Mme(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Ime(e,t){var r=bf(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?Bme:Dme:typeof t=="function"?r.local?Mme:Nme:r.local?Pme:Tme)(r,t))}function lk(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function $me(e){return function(){this.style.removeProperty(e)}}function Lme(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Rme(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function zme(e,t,r){return arguments.length>1?this.each((t==null?$me:typeof t=="function"?Rme:Lme)(e,t,r??"")):Tl(this.node(),e)}function Tl(e,t){return e.style.getPropertyValue(t)||lk(e).getComputedStyle(e,null).getPropertyValue(t)}function Ume(e){return function(){delete this[e]}}function Hme(e,t){return function(){this[e]=t}}function qme(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Wme(e,t){return arguments.length>1?this.each((t==null?Ume:typeof t=="function"?qme:Hme)(e,t)):this.node()[e]}function uk(e){return e.trim().split(/^|\s+/)}function l3(e){return e.classList||new ck(e)}function ck(e){this._node=e,this._names=uk(e.getAttribute("class")||"")}ck.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function dk(e,t){for(var r=l3(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function hk(e,t){for(var r=l3(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function Vme(e){return function(){dk(this,e)}}function Gme(e){return function(){hk(this,e)}}function Kme(e,t){return function(){(t.apply(this,arguments)?dk:hk)(this,e)}}function Yme(e,t){var r=uk(e+"");if(arguments.length<2){for(var n=l3(this.node()),i=-1,s=r.length;++i<s;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?Kme:t?Vme:Gme)(r,t))}function Zme(){this.textContent=""}function Xme(e){return function(){this.textContent=e}}function Jme(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Qme(e){return arguments.length?this.each(e==null?Zme:(typeof e=="function"?Jme:Xme)(e)):this.node().textContent}function e5e(){this.innerHTML=""}function t5e(e){return function(){this.innerHTML=e}}function r5e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function n5e(e){return arguments.length?this.each(e==null?e5e:(typeof e=="function"?r5e:t5e)(e)):this.node().innerHTML}function i5e(){this.nextSibling&&this.parentNode.appendChild(this)}function a5e(){return this.each(i5e)}function s5e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function o5e(){return this.each(s5e)}function l5e(e){var t=typeof e=="function"?e:nk(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function u5e(){return null}function c5e(e,t){var r=typeof e=="function"?e:nk(e),n=t==null?u5e:typeof t=="function"?t:o3(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function d5e(){var e=this.parentNode;e&&e.removeChild(this)}function h5e(){return this.each(d5e)}function f5e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function p5e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function m5e(e){return this.select(e?p5e:f5e)}function g5e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function y5e(e){return function(t){e.call(this,t,this.__data__)}}function b5e(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function x5e(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,s;r<i;++r)s=t[r],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++n]=s;++n?t.length=n:delete this.__on}}}function v5e(e,t,r){return function(){var n=this.__on,i,s=y5e(t);if(n){for(var o=0,l=n.length;o<l;++o)if((i=n[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=r),i.value=t;return}}this.addEventListener(e.type,s,r),i={type:e.type,name:e.name,value:t,listener:s,options:r},n?n.push(i):this.__on=[i]}}function w5e(e,t,r){var n=b5e(e+""),i,s=n.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var u=0,c=l.length,d;u<c;++u)for(i=0,d=l[u];i<s;++i)if((o=n[i]).type===d.type&&o.name===d.name)return d.value}return}for(l=t?v5e:x5e,i=0;i<s;++i)this.each(l(n[i],t,r));return this}function fk(e,t,r){var n=lk(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function E5e(e,t){return function(){return fk(this,e,t)}}function C5e(e,t){return function(){return fk(this,e,t.apply(this,arguments))}}function S5e(e,t){return this.each((typeof t=="function"?C5e:E5e)(e,t))}function*F5e(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,s=n.length,o;i<s;++i)(o=n[i])&&(yield o)}var pk=[null];function ti(e,t){this._groups=e,this._parents=t}function Ed(){return new ti([[document.documentElement]],pk)}function j5e(){return this}ti.prototype=Ed.prototype={constructor:ti,select:Jpe,selectAll:rme,selectChild:sme,selectChildren:cme,filter:dme,data:yme,enter:hme,exit:xme,join:vme,merge:wme,selection:j5e,order:Eme,sort:Cme,call:Fme,nodes:jme,node:_me,size:kme,empty:Ome,each:Ame,attr:Ime,style:zme,property:Wme,classed:Yme,text:Qme,html:n5e,raise:a5e,lower:o5e,append:l5e,insert:c5e,remove:h5e,clone:m5e,datum:g5e,on:w5e,dispatch:S5e,[Symbol.iterator]:F5e};function Pt(e){return typeof e=="string"?new ti([[document.querySelector(e)]],[document.documentElement]):new ti([[e]],pk)}function u3(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function mk(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Cd(){}var K1=.7,b2=1/K1,dl="\\s*([+-]?\\d+)\\s*",Y1="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_5e=/^#([0-9a-f]{3,8})$/,k5e=new RegExp(`^rgb\\(${dl},${dl},${dl}\\)$`),O5e=new RegExp(`^rgb\\(${Gi},${Gi},${Gi}\\)$`),A5e=new RegExp(`^rgba\\(${dl},${dl},${dl},${Y1}\\)$`),D5e=new RegExp(`^rgba\\(${Gi},${Gi},${Gi},${Y1}\\)$`),B5e=new RegExp(`^hsl\\(${Y1},${Gi},${Gi}\\)$`),T5e=new RegExp(`^hsla\\(${Y1},${Gi},${Gi},${Y1}\\)$`),Xx={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};u3(Cd,Z1,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jx,formatHex:Jx,formatHex8:P5e,formatHsl:N5e,formatRgb:Qx,toString:Qx});function Jx(){return this.rgb().formatHex()}function P5e(){return this.rgb().formatHex8()}function N5e(){return gk(this).formatHsl()}function Qx(){return this.rgb().formatRgb()}function Z1(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=_5e.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ev(t):r===3?new In(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?eh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?eh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=k5e.exec(e))?new In(t[1],t[2],t[3],1):(t=O5e.exec(e))?new In(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=A5e.exec(e))?eh(t[1],t[2],t[3],t[4]):(t=D5e.exec(e))?eh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=B5e.exec(e))?nv(t[1],t[2]/100,t[3]/100,1):(t=T5e.exec(e))?nv(t[1],t[2]/100,t[3]/100,t[4]):Xx.hasOwnProperty(e)?ev(Xx[e]):e==="transparent"?new In(NaN,NaN,NaN,0):null}function ev(e){return new In(e>>16&255,e>>8&255,e&255,1)}function eh(e,t,r,n){return n<=0&&(e=t=r=NaN),new In(e,t,r,n)}function M5e(e){return e instanceof Cd||(e=Z1(e)),e?(e=e.rgb(),new In(e.r,e.g,e.b,e.opacity)):new In}function B4(e,t,r,n){return arguments.length===1?M5e(e):new In(e,t,r,n??1)}function In(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}u3(In,B4,mk(Cd,{brighter(e){return e=e==null?b2:Math.pow(b2,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?K1:Math.pow(K1,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new In(Zs(this.r),Zs(this.g),Zs(this.b),x2(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tv,formatHex:tv,formatHex8:I5e,formatRgb:rv,toString:rv}));function tv(){return`#${Gs(this.r)}${Gs(this.g)}${Gs(this.b)}`}function I5e(){return`#${Gs(this.r)}${Gs(this.g)}${Gs(this.b)}${Gs((isNaN(this.opacity)?1:this.opacity)*255)}`}function rv(){const e=x2(this.opacity);return`${e===1?"rgb(":"rgba("}${Zs(this.r)}, ${Zs(this.g)}, ${Zs(this.b)}${e===1?")":`, ${e})`}`}function x2(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gs(e){return e=Zs(e),(e<16?"0":"")+e.toString(16)}function nv(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Fi(e,t,r,n)}function gk(e){if(e instanceof Fi)return new Fi(e.h,e.s,e.l,e.opacity);if(e instanceof Cd||(e=Z1(e)),!e)return new Fi;if(e instanceof Fi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=NaN,l=s-i,u=(s+i)/2;return l?(t===s?o=(r-n)/l+(r<n)*6:r===s?o=(n-t)/l+2:o=(t-r)/l+4,l/=u<.5?s+i:2-s-i,o*=60):l=u>0&&u<1?0:o,new Fi(o,l,u,e.opacity)}function $5e(e,t,r,n){return arguments.length===1?gk(e):new Fi(e,t,r,n??1)}function Fi(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}u3(Fi,$5e,mk(Cd,{brighter(e){return e=e==null?b2:Math.pow(b2,e),new Fi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?K1:Math.pow(K1,e),new Fi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new In(l5(e>=240?e-240:e+120,i,n),l5(e,i,n),l5(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Fi(iv(this.h),th(this.s),th(this.l),x2(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=x2(this.opacity);return`${e===1?"hsl(":"hsla("}${iv(this.h)}, ${th(this.s)*100}%, ${th(this.l)*100}%${e===1?")":`, ${e})`}`}}));function iv(e){return e=(e||0)%360,e<0?e+360:e}function th(e){return Math.max(0,Math.min(1,e||0))}function l5(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const c3=e=>()=>e;function yk(e,t){return function(r){return e+r*t}}function L5e(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Ebe(e,t){var r=t-e;return r?yk(e,r>180||r<-180?r-360*Math.round(r/360):r):c3(isNaN(e)?t:e)}function R5e(e){return(e=+e)==1?bk:function(t,r){return r-t?L5e(t,r,e):c3(isNaN(t)?r:t)}}function bk(e,t){var r=t-e;return r?yk(e,r):c3(isNaN(e)?t:e)}const av=function e(t){var r=R5e(t);function n(i,s){var o=r((i=B4(i)).r,(s=B4(s)).r),l=r(i.g,s.g),u=r(i.b,s.b),c=bk(i.opacity,s.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=u(d),i.opacity=c(d),i+""}}return n.gamma=e,n}(1);function es(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var T4=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,u5=new RegExp(T4.source,"g");function z5e(e){return function(){return e}}function U5e(e){return function(t){return e(t)+""}}function H5e(e,t){var r=T4.lastIndex=u5.lastIndex=0,n,i,s,o=-1,l=[],u=[];for(e=e+"",t=t+"";(n=T4.exec(e))&&(i=u5.exec(t));)(s=i.index)>r&&(s=t.slice(r,s),l[o]?l[o]+=s:l[++o]=s),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:es(n,i)})),r=u5.lastIndex;return r<t.length&&(s=t.slice(r),l[o]?l[o]+=s:l[++o]=s),l.length<2?u[0]?U5e(u[0].x):z5e(t):(t=u.length,function(c){for(var d=0,h;d<t;++d)l[(h=u[d]).i]=h.x(c);return l.join("")})}var sv=180/Math.PI,P4={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function xk(e,t,r,n,i,s){var o,l,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,u/=l),e*n<t*r&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(t,e)*sv,skewX:Math.atan(u)*sv,scaleX:o,scaleY:l}}var rh;function q5e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?P4:xk(t.a,t.b,t.c,t.d,t.e,t.f)}function W5e(e){return e==null||(rh||(rh=document.createElementNS("http://www.w3.org/2000/svg","g")),rh.setAttribute("transform",e),!(e=rh.transform.baseVal.consolidate()))?P4:(e=e.matrix,xk(e.a,e.b,e.c,e.d,e.e,e.f))}function vk(e,t,r,n){function i(c){return c.length?c.pop()+" ":""}function s(c,d,h,f,p,g){if(c!==h||d!==f){var y=p.push("translate(",null,t,null,r);g.push({i:y-4,x:es(c,h)},{i:y-2,x:es(d,f)})}else(h||f)&&p.push("translate("+h+t+f+r)}function o(c,d,h,f){c!==d?(c-d>180?d+=360:d-c>180&&(c+=360),f.push({i:h.push(i(h)+"rotate(",null,n)-2,x:es(c,d)})):d&&h.push(i(h)+"rotate("+d+n)}function l(c,d,h,f){c!==d?f.push({i:h.push(i(h)+"skewX(",null,n)-2,x:es(c,d)}):d&&h.push(i(h)+"skewX("+d+n)}function u(c,d,h,f,p,g){if(c!==h||d!==f){var y=p.push(i(p)+"scale(",null,",",null,")");g.push({i:y-4,x:es(c,h)},{i:y-2,x:es(d,f)})}else(h!==1||f!==1)&&p.push(i(p)+"scale("+h+","+f+")")}return function(c,d){var h=[],f=[];return c=e(c),d=e(d),s(c.translateX,c.translateY,d.translateX,d.translateY,h,f),o(c.rotate,d.rotate,h,f),l(c.skewX,d.skewX,h,f),u(c.scaleX,c.scaleY,d.scaleX,d.scaleY,h,f),c=d=null,function(p){for(var g=-1,y=f.length,b;++g<y;)h[(b=f[g]).i]=b.x(p);return h.join("")}}}var V5e=vk(q5e,"px, ","px)","deg)"),G5e=vk(W5e,", ",")",")"),Pl=0,Pu=0,wu=0,wk=1e3,v2,Nu,w2=0,fo=0,xf=0,X1=typeof performance=="object"&&performance.now?performance:Date,Ek=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function d3(){return fo||(Ek(K5e),fo=X1.now()+xf)}function K5e(){fo=0}function E2(){this._call=this._time=this._next=null}E2.prototype=Ck.prototype={constructor:E2,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?d3():+r)+(t==null?0:+t),!this._next&&Nu!==this&&(Nu?Nu._next=this:v2=this,Nu=this),this._call=e,this._time=r,N4()},stop:function(){this._call&&(this._call=null,this._time=1/0,N4())}};function Ck(e,t,r){var n=new E2;return n.restart(e,t,r),n}function Y5e(){d3(),++Pl;for(var e=v2,t;e;)(t=fo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Pl}function ov(){fo=(w2=X1.now())+xf,Pl=Pu=0;try{Y5e()}finally{Pl=0,X5e(),fo=0}}function Z5e(){var e=X1.now(),t=e-w2;t>wk&&(xf-=t,w2=e)}function X5e(){for(var e,t=v2,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:v2=r);Nu=e,N4(n)}function N4(e){if(!Pl){Pu&&(Pu=clearTimeout(Pu));var t=e-fo;t>24?(e<1/0&&(Pu=setTimeout(ov,e-X1.now()-xf)),wu&&(wu=clearInterval(wu))):(wu||(w2=X1.now(),wu=setInterval(Z5e,wk)),Pl=1,Ek(ov))}}function lv(e,t,r){var n=new E2;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var J5e=rk("start","end","cancel","interrupt"),Q5e=[],Sk=0,uv=1,M4=2,_h=3,cv=4,I4=5,kh=6;function vf(e,t,r,n,i,s){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;e4e(e,r,{name:t,index:n,group:i,on:J5e,tween:Q5e,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Sk})}function h3(e,t){var r=Ai(e,t);if(r.state>Sk)throw new Error("too late; already scheduled");return r}function ia(e,t){var r=Ai(e,t);if(r.state>_h)throw new Error("too late; already running");return r}function Ai(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function e4e(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=Ck(s,0,r.time);function s(c){r.state=uv,r.timer.restart(o,r.delay,r.time),r.delay<=c&&o(c-r.delay)}function o(c){var d,h,f,p;if(r.state!==uv)return u();for(d in n)if(p=n[d],p.name===r.name){if(p.state===_h)return lv(o);p.state===cv?(p.state=kh,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[d]):+d<t&&(p.state=kh,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[d])}if(lv(function(){r.state===_h&&(r.state=cv,r.timer.restart(l,r.delay,r.time),l(c))}),r.state=M4,r.on.call("start",e,e.__data__,r.index,r.group),r.state===M4){for(r.state=_h,i=new Array(f=r.tween.length),d=0,h=-1;d<f;++d)(p=r.tween[d].value.call(e,e.__data__,r.index,r.group))&&(i[++h]=p);i.length=h+1}}function l(c){for(var d=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(u),r.state=I4,1),h=-1,f=i.length;++h<f;)i[h].call(e,d);r.state===I4&&(r.on.call("end",e,e.__data__,r.index,r.group),u())}function u(){r.state=kh,r.timer.stop(),delete n[t];for(var c in n)return;delete e.__transition}}function t4e(e,t){var r=e.__transition,n,i,s=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){s=!1;continue}i=n.state>M4&&n.state<I4,n.state=kh,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]}s&&delete e.__transition}}function r4e(e){return this.each(function(){t4e(this,e)})}function n4e(e,t){var r,n;return function(){var i=ia(this,e),s=i.tween;if(s!==r){n=r=s;for(var o=0,l=n.length;o<l;++o)if(n[o].name===t){n=n.slice(),n.splice(o,1);break}}i.tween=n}}function i4e(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var s=ia(this,e),o=s.tween;if(o!==n){i=(n=o).slice();for(var l={name:t,value:r},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=l;break}u===c&&i.push(l)}s.tween=i}}function a4e(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=Ai(this.node(),r).tween,i=0,s=n.length,o;i<s;++i)if((o=n[i]).name===e)return o.value;return null}return this.each((t==null?n4e:i4e)(r,e,t))}function f3(e,t,r){var n=e._id;return e.each(function(){var i=ia(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return Ai(i,n).value[t]}}function Fk(e,t){var r;return(typeof t=="number"?es:t instanceof Z1?av:(r=Z1(t))?(t=r,av):H5e)(e,t)}function s4e(e){return function(){this.removeAttribute(e)}}function o4e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function l4e(e,t,r){var n,i=r+"",s;return function(){var o=this.getAttribute(e);return o===i?null:o===n?s:s=t(n=o,r)}}function u4e(e,t,r){var n,i=r+"",s;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?s:s=t(n=o,r)}}function c4e(e,t,r){var n,i,s;return function(){var o,l=r(this),u;return l==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=l+"",o===u?null:o===n&&u===i?s:(i=u,s=t(n=o,l)))}}function d4e(e,t,r){var n,i,s;return function(){var o,l=r(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=l+"",o===u?null:o===n&&u===i?s:(i=u,s=t(n=o,l)))}}function h4e(e,t){var r=bf(e),n=r==="transform"?G5e:Fk;return this.attrTween(e,typeof t=="function"?(r.local?d4e:c4e)(r,n,f3(this,"attr."+e,t)):t==null?(r.local?o4e:s4e)(r):(r.local?u4e:l4e)(r,n,t))}function f4e(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function p4e(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function m4e(e,t){var r,n;function i(){var s=t.apply(this,arguments);return s!==n&&(r=(n=s)&&p4e(e,s)),r}return i._value=t,i}function g4e(e,t){var r,n;function i(){var s=t.apply(this,arguments);return s!==n&&(r=(n=s)&&f4e(e,s)),r}return i._value=t,i}function y4e(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=bf(e);return this.tween(r,(n.local?m4e:g4e)(n,t))}function b4e(e,t){return function(){h3(this,e).delay=+t.apply(this,arguments)}}function x4e(e,t){return t=+t,function(){h3(this,e).delay=t}}function v4e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?b4e:x4e)(t,e)):Ai(this.node(),t).delay}function w4e(e,t){return function(){ia(this,e).duration=+t.apply(this,arguments)}}function E4e(e,t){return t=+t,function(){ia(this,e).duration=t}}function C4e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?w4e:E4e)(t,e)):Ai(this.node(),t).duration}function S4e(e,t){if(typeof t!="function")throw new Error;return function(){ia(this,e).ease=t}}function F4e(e){var t=this._id;return arguments.length?this.each(S4e(t,e)):Ai(this.node(),t).ease}function j4e(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ia(this,e).ease=r}}function _4e(e){if(typeof e!="function")throw new Error;return this.each(j4e(this._id,e))}function k4e(e){typeof e!="function"&&(e=ak(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var s=t[i],o=s.length,l=n[i]=[],u,c=0;c<o;++c)(u=s[c])&&e.call(u,u.__data__,c,s)&&l.push(u);return new Aa(n,this._parents,this._name,this._id)}function O4e(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,s=Math.min(n,i),o=new Array(n),l=0;l<s;++l)for(var u=t[l],c=r[l],d=u.length,h=o[l]=new Array(d),f,p=0;p<d;++p)(f=u[p]||c[p])&&(h[p]=f);for(;l<n;++l)o[l]=t[l];return new Aa(o,this._parents,this._name,this._id)}function A4e(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function D4e(e,t,r){var n,i,s=A4e(t)?h3:ia;return function(){var o=s(this,e),l=o.on;l!==n&&(i=(n=l).copy()).on(t,r),o.on=i}}function B4e(e,t){var r=this._id;return arguments.length<2?Ai(this.node(),r).on.on(e):this.each(D4e(r,e,t))}function T4e(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function P4e(){return this.on("end.remove",T4e(this._id))}function N4e(e){var t=this._name,r=this._id;typeof e!="function"&&(e=o3(e));for(var n=this._groups,i=n.length,s=new Array(i),o=0;o<i;++o)for(var l=n[o],u=l.length,c=s[o]=new Array(u),d,h,f=0;f<u;++f)(d=l[f])&&(h=e.call(d,d.__data__,f,l))&&("__data__"in d&&(h.__data__=d.__data__),c[f]=h,vf(c[f],t,r,f,c,Ai(d,r)));return new Aa(s,this._parents,t,r)}function M4e(e){var t=this._name,r=this._id;typeof e!="function"&&(e=ik(e));for(var n=this._groups,i=n.length,s=[],o=[],l=0;l<i;++l)for(var u=n[l],c=u.length,d,h=0;h<c;++h)if(d=u[h]){for(var f=e.call(d,d.__data__,h,u),p,g=Ai(d,r),y=0,b=f.length;y<b;++y)(p=f[y])&&vf(p,t,r,y,f,g);s.push(f),o.push(d)}return new Aa(s,o,t,r)}var I4e=Ed.prototype.constructor;function $4e(){return new I4e(this._groups,this._parents)}function L4e(e,t){var r,n,i;return function(){var s=Tl(this,e),o=(this.style.removeProperty(e),Tl(this,e));return s===o?null:s===r&&o===n?i:i=t(r=s,n=o)}}function jk(e){return function(){this.style.removeProperty(e)}}function R4e(e,t,r){var n,i=r+"",s;return function(){var o=Tl(this,e);return o===i?null:o===n?s:s=t(n=o,r)}}function z4e(e,t,r){var n,i,s;return function(){var o=Tl(this,e),l=r(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),Tl(this,e))),o===u?null:o===n&&u===i?s:(i=u,s=t(n=o,l))}}function U4e(e,t){var r,n,i,s="style."+t,o="end."+s,l;return function(){var u=ia(this,e),c=u.on,d=u.value[s]==null?l||(l=jk(t)):void 0;(c!==r||i!==d)&&(n=(r=c).copy()).on(o,i=d),u.on=n}}function H4e(e,t,r){var n=(e+="")=="transform"?V5e:Fk;return t==null?this.styleTween(e,L4e(e,n)).on("end.style."+e,jk(e)):typeof t=="function"?this.styleTween(e,z4e(e,n,f3(this,"style."+e,t))).each(U4e(this._id,e)):this.styleTween(e,R4e(e,n,t),r).on("end.style."+e,null)}function q4e(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function W4e(e,t,r){var n,i;function s(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&q4e(e,o,r)),n}return s._value=t,s}function V4e(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,W4e(e,t,r??""))}function G4e(e){return function(){this.textContent=e}}function K4e(e){return function(){var t=e(this);this.textContent=t??""}}function Y4e(e){return this.tween("text",typeof e=="function"?K4e(f3(this,"text",e)):G4e(e==null?"":e+""))}function Z4e(e){return function(t){this.textContent=e.call(this,t)}}function X4e(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&Z4e(i)),t}return n._value=e,n}function J4e(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,X4e(e))}function Q4e(){for(var e=this._name,t=this._id,r=_k(),n=this._groups,i=n.length,s=0;s<i;++s)for(var o=n[s],l=o.length,u,c=0;c<l;++c)if(u=o[c]){var d=Ai(u,t);vf(u,e,r,c,o,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Aa(n,this._parents,e,r)}function e6e(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(s,o){var l={value:o},u={value:function(){--i===0&&s()}};r.each(function(){var c=ia(this,n),d=c.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),c.on=t}),i===0&&s()})}var t6e=0;function Aa(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function _k(){return++t6e}var ca=Ed.prototype;Aa.prototype={constructor:Aa,select:N4e,selectAll:M4e,selectChild:ca.selectChild,selectChildren:ca.selectChildren,filter:k4e,merge:O4e,selection:$4e,transition:Q4e,call:ca.call,nodes:ca.nodes,node:ca.node,size:ca.size,empty:ca.empty,each:ca.each,on:B4e,attr:h4e,attrTween:y4e,style:H4e,styleTween:V4e,text:Y4e,textTween:J4e,remove:P4e,tween:a4e,delay:v4e,duration:C4e,ease:F4e,easeVarying:_4e,end:e6e,[Symbol.iterator]:ca[Symbol.iterator]};function r6e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var n6e={time:null,delay:0,duration:250,ease:r6e};function i6e(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function a6e(e){var t,r;e instanceof Aa?(t=e._id,e=e._name):(t=_k(),(r=n6e).time=d3(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,s=0;s<i;++s)for(var o=n[s],l=o.length,u,c=0;c<l;++c)(u=o[c])&&vf(u,e,t,c,o,r||i6e(u,t));return new Aa(n,this._parents,e,t)}Ed.prototype.interrupt=r4e;Ed.prototype.transition=a6e;const $4=Math.PI,L4=2*$4,zs=1e-6,s6e=L4-zs;function kk(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function o6e(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return kk;const r=10**t;return function(n){this._+=n[0];for(let i=1,s=n.length;i<s;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class l6e{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?kk:o6e(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,s,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+s},${this._y1=+o}`}arcTo(t,r,n,i,s){if(t=+t,r=+r,n=+n,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,l=this._y1,u=n-t,c=i-r,d=o-t,h=l-r,f=d*d+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>zs)if(!(Math.abs(h*u-c*d)>zs)||!s)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,g=i-l,y=u*u+c*c,b=p*p+g*g,x=Math.sqrt(y),v=Math.sqrt(f),E=s*Math.tan(($4-Math.acos((y+f-b)/(2*x*v)))/2),_=E/v,j=E/x;Math.abs(_-1)>zs&&this._append`L${t+_*d},${r+_*h}`,this._append`A${s},${s},0,0,${+(h*p>d*g)},${this._x1=t+j*u},${this._y1=r+j*c}`}}arc(t,r,n,i,s,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),c=t+l,d=r+u,h=1^o,f=o?i-s:s-i;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>zs||Math.abs(this._y1-d)>zs)&&this._append`L${c},${d}`,n&&(f<0&&(f=f%L4+L4),f>s6e?this._append`A${n},${n},0,1,${h},${t-l},${r-u}A${n},${n},0,1,${h},${this._x1=c},${this._y1=d}`:f>zs&&this._append`A${n},${n},0,${+(f>=$4)},${h},${this._x1=t+n*Math.cos(s)},${this._y1=r+n*Math.sin(s)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Go(e){return function(){return e}}const Cbe=Math.abs,Sbe=Math.atan2,Fbe=Math.cos,jbe=Math.max,_be=Math.min,kbe=Math.sin,Obe=Math.sqrt,dv=1e-12,p3=Math.PI,hv=p3/2,Abe=2*p3;function Dbe(e){return e>1?0:e<-1?p3:Math.acos(e)}function Bbe(e){return e>=1?hv:e<=-1?-hv:Math.asin(e)}function u6e(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new l6e(t)}function c6e(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ok(e){this._context=e}Ok.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function C2(e){return new Ok(e)}function d6e(e){return e[0]}function h6e(e){return e[1]}function f6e(e,t){var r=Go(!0),n=null,i=C2,s=null,o=u6e(l);e=typeof e=="function"?e:e===void 0?d6e:Go(e),t=typeof t=="function"?t:t===void 0?h6e:Go(t);function l(u){var c,d=(u=c6e(u)).length,h,f=!1,p;for(n==null&&(s=i(p=o())),c=0;c<=d;++c)!(c<d&&r(h=u[c],c,u))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+e(h,c,u),+t(h,c,u));if(p)return s=null,p+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:Go(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:Go(+u),l):t},l.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Go(!!u),l):r},l.curve=function(u){return arguments.length?(i=u,n!=null&&(s=i(n)),l):i},l.context=function(u){return arguments.length?(u==null?n=s=null:s=i(n=u),l):n},l}class Ak{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Dk(e){return new Ak(e,!0)}function Bk(e){return new Ak(e,!1)}function ps(){}function S2(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function wf(e){this._context=e}wf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:S2(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:S2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Oh(e){return new wf(e)}function Tk(e){this._context=e}Tk.prototype={areaStart:ps,areaEnd:ps,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:S2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function p6e(e){return new Tk(e)}function Pk(e){this._context=e}Pk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:S2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function m6e(e){return new Pk(e)}function Nk(e,t){this._basis=new wf(e),this._beta=t}Nk.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n=e[0],i=t[0],s=e[r]-n,o=t[r]-i,l=-1,u;++l<=r;)u=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(n+u*s),this._beta*t[l]+(1-this._beta)*(i+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const g6e=function e(t){function r(n){return t===1?new wf(n):new Nk(n,t)}return r.beta=function(n){return e(+n)},r}(.85);function F2(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function m3(e,t){this._context=e,this._k=(1-t)/6}m3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:F2(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:F2(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Mk=function e(t){function r(n){return new m3(n,t)}return r.tension=function(n){return e(+n)},r}(0);function g3(e,t){this._context=e,this._k=(1-t)/6}g3.prototype={areaStart:ps,areaEnd:ps,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:F2(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const y6e=function e(t){function r(n){return new g3(n,t)}return r.tension=function(n){return e(+n)},r}(0);function y3(e,t){this._context=e,this._k=(1-t)/6}y3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:F2(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const b6e=function e(t){function r(n){return new y3(n,t)}return r.tension=function(n){return e(+n)},r}(0);function b3(e,t,r){var n=e._x1,i=e._y1,s=e._x2,o=e._y2;if(e._l01_a>dv){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>dv){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*c+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*c+e._y1*e._l23_2a-r*e._l12_2a)/d}e._context.bezierCurveTo(n,i,s,o,e._x2,e._y2)}function Ik(e,t){this._context=e,this._alpha=t}Ik.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:b3(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $k=function e(t){function r(n){return t?new Ik(n,t):new m3(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function Lk(e,t){this._context=e,this._alpha=t}Lk.prototype={areaStart:ps,areaEnd:ps,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:b3(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const x6e=function e(t){function r(n){return t?new Lk(n,t):new g3(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function Rk(e,t){this._context=e,this._alpha=t}Rk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:b3(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const v6e=function e(t){function r(n){return t?new Rk(n,t):new y3(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function zk(e){this._context=e}zk.prototype={areaStart:ps,areaEnd:ps,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function w6e(e){return new zk(e)}function fv(e){return e<0?-1:1}function pv(e,t,r){var n=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(s*i+o*n)/(n+i);return(fv(s)+fv(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function mv(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function c5(e,t,r){var n=e._x0,i=e._y0,s=e._x1,o=e._y1,l=(s-n)/3;e._context.bezierCurveTo(n+l,i+l*t,s-l,o-l*r,s,o)}function j2(e){this._context=e}j2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:c5(this,this._t0,mv(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,c5(this,mv(this,r=pv(this,e,t)),r);break;default:c5(this,this._t0,r=pv(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Uk(e){this._context=new Hk(e)}(Uk.prototype=Object.create(j2.prototype)).point=function(e,t){j2.prototype.point.call(this,t,e)};function Hk(e){this._context=e}Hk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,s){this._context.bezierCurveTo(t,e,n,r,s,i)}};function qk(e){return new j2(e)}function Wk(e){return new Uk(e)}function Vk(e){this._context=e}Vk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=gv(e),i=gv(t),s=0,o=1;o<r;++s,++o)this._context.bezierCurveTo(n[0][s],i[0][s],n[1][s],i[1][s],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function gv(e){var t,r=e.length-1,n,i=new Array(r),s=new Array(r),o=new Array(r);for(i[0]=0,s[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,s[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,s[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/s[t-1],s[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/s[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/s[t];for(s[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)s[t]=2*e[t+1]-i[t+1];return[i,s]}function Gk(e){return new Vk(e)}function Ef(e,t){this._context=e,this._t=t}Ef.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Kk(e){return new Ef(e,.5)}function Yk(e){return new Ef(e,0)}function Zk(e){return new Ef(e,1)}function Mu(e,t,r){this.k=e,this.x=t,this.y=r}Mu.prototype={constructor:Mu,scale:function(e){return e===1?this:new Mu(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Mu(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Mu.prototype;var E6e="",C6e={curveBasis:Oh,curveBasisClosed:p6e,curveBasisOpen:m6e,curveBumpX:Dk,curveBumpY:Bk,curveBundle:g6e,curveCardinalClosed:y6e,curveCardinalOpen:b6e,curveCardinal:Mk,curveCatmullRomClosed:x6e,curveCatmullRomOpen:v6e,curveCatmullRom:$k,curveLinear:C2,curveLinearClosed:w6e,curveMonotoneX:qk,curveMonotoneY:Wk,curveNatural:Gk,curveStep:Kk,curveStepAfter:Zk,curveStepBefore:Yk},S6e=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,F6e=C(function(e,t){const r=Xk(e,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const o=r.map(l=>l.args);s2(o),n=Jr(n,[...o])}else n=r.args;if(!n)return;let i=Wg(e,t);const s="config";return n[s]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[s],delete n[s]),n},"detectInit"),Xk=C(function(e,t=null){var r,n;try{const i=new RegExp(`[%]{2}(?![{]${S6e.source})(?=[}][%]{2}).*
- `,"ig");e=e.trim().replace(i,"").replace(/'/gm,'"'),Me.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let s;const o=[];for(;(s=Wu.exec(e))!==null;)if(s.index===Wu.lastIndex&&Wu.lastIndex++,s&&!t||t&&((r=s[1])!=null&&r.match(t))||t&&((n=s[2])!=null&&n.match(t))){const l=s[1]?s[1]:s[2],u=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;o.push({type:l,args:u})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(i){return Me.error(`ERROR: ${i.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),j6e=C(function(e){return e.replace(Wu,"")},"removeDirectives"),_6e=C(function(e,t){for(const[r,n]of t.entries())if(n.match(e))return r;return-1},"isSubstringInArray");function x3(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return C6e[r]??t}C(x3,"interpolateToCurve");function Jk(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?tk(r):r}C(Jk,"formatUrl");var k6e=C((e,...t)=>{const r=e.split("."),n=r.length-1,i=r[n];let s=window;for(let o=0;o<n;o++)if(s=s[r[o]],!s){Me.error(`Function name: ${e} not found in window`);return}s[i](...t)},"runFunc");function v3(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}C(v3,"distance");function Qk(e){let t,r=0;e.forEach(i=>{r+=v3(i,t),t=i});const n=r/2;return w3(e,n)}C(Qk,"traverseEdge");function eO(e){return e.length===1?e[0]:Qk(e)}C(eO,"calcLabelPosition");var yv=C((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),w3=C((e,t)=>{let r,n=t;for(const i of e){if(r){const s=v3(i,r);if(s===0)return r;if(s<n)n-=s;else{const o=n/s;if(o<=0)return r;if(o>=1)return{x:i.x,y:i.y};if(o>0&&o<1)return{x:yv((1-o)*r.x+o*i.x,5),y:yv((1-o)*r.y+o*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),O6e=C((e,t,r)=>{Me.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const i=w3(t,25),s=e?10:5,o=Math.atan2(t[0].y-i.y,t[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(o)*s+(t[0].x+i.x)/2,l.y=-Math.cos(o)*s+(t[0].y+i.y)/2,l},"calcCardinalityPosition");function tO(e,t,r){const n=structuredClone(r);Me.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();const i=25+e,s=w3(n,i),o=10+e*.5,l=Math.atan2(n[0].y-s.y,n[0].x-s.x),u={x:0,y:0};return t==="start_left"?(u.x=Math.sin(l+Math.PI)*o+(n[0].x+s.x)/2,u.y=-Math.cos(l+Math.PI)*o+(n[0].y+s.y)/2):t==="end_right"?(u.x=Math.sin(l-Math.PI)*o+(n[0].x+s.x)/2-5,u.y=-Math.cos(l-Math.PI)*o+(n[0].y+s.y)/2-5):t==="end_left"?(u.x=Math.sin(l)*o+(n[0].x+s.x)/2-5,u.y=-Math.cos(l)*o+(n[0].y+s.y)/2-5):(u.x=Math.sin(l)*o+(n[0].x+s.x)/2,u.y=-Math.cos(l)*o+(n[0].y+s.y)/2),u}C(tO,"calcTerminalLabelPosition");function rO(e){let t="",r="";for(const n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}C(rO,"getStylesFromArray");var bv=0,A6e=C(()=>(bv++,"id-"+Math.random().toString(36).substr(2,12)+"-"+bv),"generateId");function nO(e){let t="";const r="0123456789abcdef",n=r.length;for(let i=0;i<e;i++)t+=r.charAt(Math.floor(Math.random()*n));return t}C(nO,"makeRandomHex");var D6e=C(e=>nO(e.length),"random"),B6e=C(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),T6e=C(function(e,t){const r=t.text.replace(au.lineBreakRegex," "),[,n]=Cf(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",n),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),t.class!==void 0&&i.attr("class",t.class);const s=i.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.attr("fill",t.fill),s.text(r),i},"drawSimpleText"),P6e=ld((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),au.lineBreakRegex.test(e)))return e;const n=e.split(" ").filter(Boolean),i=[];let s="";return n.forEach((o,l)=>{const u=Da(`${o} `,r),c=Da(s,r);if(u>t){const{hyphenatedStrings:f,remainingWord:p}=N6e(o,t,"-",r);i.push(s,...f),s=p}else c+u>=t?(i.push(s),s=o):s=[s,o].filter(Boolean).join(" ");l+1===n.length&&i.push(s)}),i.filter(o=>o!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),N6e=ld((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...e],s=[];let o="";return i.forEach((l,u)=>{const c=`${o}${l}`;if(Da(c,n)>=t){const h=u+1,f=i.length===h,p=`${c}${r}`;s.push(f?c:p),o=""}else o=c}),{hyphenatedStrings:s,remainingWord:o}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function iO(e,t){return E3(e,t).height}C(iO,"calculateTextHeight");function Da(e,t){return E3(e,t).width}C(Da,"calculateTextWidth");var E3=ld((e,t)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};const[,s]=Cf(r),o=["sans-serif",n],l=e.split(au.lineBreakRegex),u=[],c=Pt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const d=c.append("svg");for(const f of o){let p=0;const g={width:0,height:0,lineHeight:0};for(const y of l){const b=B6e();b.text=y||E6e;const x=T6e(d,b).style("font-size",s).style("font-weight",i).style("font-family",f),v=(x._groups||x)[0][0].getBBox();if(v.width===0&&v.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,v.width)),p=Math.round(v.height),g.height+=p,g.lineHeight=Math.round(Math.max(g.lineHeight,p))}u.push(g)}d.remove();const h=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[h]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),xl,M6e=(xl=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},C(xl,"InitIDGenerator"),xl),nh,I6e=C(function(e){return nh=nh||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),nh.innerHTML=e,unescape(nh.textContent)},"entityDecode");function C3(e){return"str"in e}C(C3,"isDetailedError");var $6e=C((e,t,r,n)=>{var s;if(!n)return;const i=(s=e.node())==null?void 0:s.getBBox();i&&e.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},"insertTitle"),Cf=C(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function S3(e,t){return dY({},e,t)}C(S3,"cleanAndMerge");var zi={assignWithDepth:Jr,wrapLabel:P6e,calculateTextHeight:iO,calculateTextWidth:Da,calculateTextDimensions:E3,cleanAndMerge:S3,detectInit:F6e,detectDirective:Xk,isSubstringInArray:_6e,interpolateToCurve:x3,calcLabelPosition:eO,calcCardinalityPosition:O6e,calcTerminalLabelPosition:tO,formatUrl:Jk,getStylesFromArray:rO,generateId:A6e,random:D6e,runFunc:k6e,entityDecode:I6e,insertTitle:$6e,parseFontSize:Cf,InitIDGenerator:M6e},L6e=C(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),t},"encodeEntities"),Mo=C(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Tbe=C((e,t,{counter:r=0,prefix:n,suffix:i},s)=>s||`${n?`${n}_`:""}${e}_${t}_${r}${i?`_${i}`:""}`,"getEdgeId");function Fn(e){return e??null}C(Fn,"handleUndefinedAttr");function F3(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Io=F3();function aO(e){Io=e}var Gu={exec:()=>null};function Yt(e,t=""){let r=typeof e=="string"?e:e.source;const n={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(Sn.caret,"$1"),r=r.replace(i,o),n},getRegex:()=>new RegExp(r,t)};return n}var Sn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},R6e=/^(?:[ \t]*(?:\n|$))+/,z6e=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,U6e=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Sd=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,H6e=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,j3=/(?:[*+-]|\d{1,9}[.)])/,sO=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,oO=Yt(sO).replace(/bull/g,j3).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),q6e=Yt(sO).replace(/bull/g,j3).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),_3=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,W6e=/^[^\n]+/,k3=/(?!\s*\])(?:\\.|[^\[\]\\])+/,V6e=Yt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",k3).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),G6e=Yt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,j3).getRegex(),Sf="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",O3=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,K6e=Yt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",O3).replace("tag",Sf).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lO=Yt(_3).replace("hr",Sd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Sf).getRegex(),Y6e=Yt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lO).getRegex(),A3={blockquote:Y6e,code:z6e,def:V6e,fences:U6e,heading:H6e,hr:Sd,html:K6e,lheading:oO,list:G6e,newline:R6e,paragraph:lO,table:Gu,text:W6e},xv=Yt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Sd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Sf).getRegex(),Z6e={...A3,lheading:q6e,table:xv,paragraph:Yt(_3).replace("hr",Sd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xv).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Sf).getRegex()},X6e={...A3,html:Yt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",O3).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Gu,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Yt(_3).replace("hr",Sd).replace("heading",` *#{1,6} *[^
- ]`).replace("lheading",oO).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},J6e=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Q6e=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,uO=/^( {2,}|\\)\n(?!\s*$)/,ege=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ff=/[\p{P}\p{S}]/u,D3=/[\s\p{P}\p{S}]/u,cO=/[^\s\p{P}\p{S}]/u,tge=Yt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,D3).getRegex(),dO=/(?!~)[\p{P}\p{S}]/u,rge=/(?!~)[\s\p{P}\p{S}]/u,nge=/(?:[^\s\p{P}\p{S}]|~)/u,ige=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,hO=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,age=Yt(hO,"u").replace(/punct/g,Ff).getRegex(),sge=Yt(hO,"u").replace(/punct/g,dO).getRegex(),fO="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",oge=Yt(fO,"gu").replace(/notPunctSpace/g,cO).replace(/punctSpace/g,D3).replace(/punct/g,Ff).getRegex(),lge=Yt(fO,"gu").replace(/notPunctSpace/g,nge).replace(/punctSpace/g,rge).replace(/punct/g,dO).getRegex(),uge=Yt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,cO).replace(/punctSpace/g,D3).replace(/punct/g,Ff).getRegex(),cge=Yt(/\\(punct)/,"gu").replace(/punct/g,Ff).getRegex(),dge=Yt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),hge=Yt(O3).replace("(?:-->|$)","-->").getRegex(),fge=Yt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",hge).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_2=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pge=Yt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",_2).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pO=Yt(/^!?\[(label)\]\[(ref)\]/).replace("label",_2).replace("ref",k3).getRegex(),mO=Yt(/^!?\[(ref)\](?:\[\])?/).replace("ref",k3).getRegex(),mge=Yt("reflink|nolink(?!\\()","g").replace("reflink",pO).replace("nolink",mO).getRegex(),B3={_backpedal:Gu,anyPunctuation:cge,autolink:dge,blockSkip:ige,br:uO,code:Q6e,del:Gu,emStrongLDelim:age,emStrongRDelimAst:oge,emStrongRDelimUnd:uge,escape:J6e,link:pge,nolink:mO,punctuation:tge,reflink:pO,reflinkSearch:mge,tag:fge,text:ege,url:Gu},gge={...B3,link:Yt(/^!?\[(label)\]\((.*?)\)/).replace("label",_2).getRegex(),reflink:Yt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_2).getRegex()},R4={...B3,emStrongRDelimAst:lge,emStrongLDelim:sge,url:Yt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},yge={...R4,br:Yt(uO).replace("{2,}","*").getRegex(),text:Yt(R4.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ih={normal:A3,gfm:Z6e,pedantic:X6e},Eu={normal:B3,gfm:R4,breaks:yge,pedantic:gge},bge={"&":"&","<":"<",">":">",'"':""","'":"'"},vv=e=>bge[e];function Ni(e,t){if(t){if(Sn.escapeTest.test(e))return e.replace(Sn.escapeReplace,vv)}else if(Sn.escapeTestNoEncode.test(e))return e.replace(Sn.escapeReplaceNoEncode,vv);return e}function wv(e){try{e=encodeURI(e).replace(Sn.percentDecode,"%")}catch{return null}return e}function Ev(e,t){var s;const r=e.replace(Sn.findPipe,(o,l,u)=>{let c=!1,d=l;for(;--d>=0&&u[d]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Sn.splitPipe);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Sn.slashPipe,"|");return n}function Cu(e,t,r){const n=e.length;if(n===0)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function xge(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function Cv(e,t,r,n,i){const s=t.href,o=t.title||null,l=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;const u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:o,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,u}function vge(e,t,r){const n=e.match(r.other.indentCodeCompensation);if(n===null)return t;const i=n[1];return t.split(`
- `).map(s=>{const o=s.match(r.other.beginningSpace);if(o===null)return s;const[l]=o;return l.length>=i.length?s.slice(i.length):s}).join(`
- `)}var k2=class{constructor(e){rr(this,"options");rr(this,"rules");rr(this,"lexer");this.options=e||Io}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Cu(r,`
- `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=vge(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){const n=Cu(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Cu(t[0],`
- `)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let r=Cu(t[0],`
- `).split(`
- `),n="",i="";const s=[];for(;r.length>0;){let o=!1;const l=[];let u;for(u=0;u<r.length;u++)if(this.rules.other.blockquoteStart.test(r[u]))l.push(r[u]),o=!0;else if(!o)l.push(r[u]);else break;r=r.slice(u);const c=l.join(`
- `),d=c.replace(this.rules.other.blockquoteSetextReplace,`
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
- ${c}`:c,i=i?`${i}
- ${d}`:d;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,s,!0),this.lexer.state.top=h,r.length===0)break;const f=s.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){const p=f,g=p.raw+`
- `+r.join(`
- `),y=this.blockquote(g);s[s.length-1]=y,n=n.substring(0,n.length-p.raw.length)+y.raw,i=i.substring(0,i.length-p.text.length)+y.text;break}else if((f==null?void 0:f.type)==="list"){const p=f,g=p.raw+`
- `+r.join(`
- `),y=this.list(g);s[s.length-1]=y,n=n.substring(0,n.length-f.raw.length)+y.raw,i=i.substring(0,i.length-p.raw.length)+y.raw,r=g.substring(s.at(-1).raw.length).split(`
- `);continue}}return{type:"blockquote",raw:n,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");const s=this.rules.other.listItemRegex(r);let o=!1;for(;e;){let u=!1,c="",d="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let h=t[2].split(`
- `,1)[0].replace(this.rules.other.listReplaceTabs,x=>" ".repeat(3*x.length)),f=e.split(`
- `,1)[0],p=!h.trim(),g=0;if(this.options.pedantic?(g=2,d=h.trimStart()):p?g=t[1].length+1:(g=t[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,d=h.slice(g),g+=t[1].length),p&&this.rules.other.blankLine.test(f)&&(c+=f+`
- `,e=e.substring(f.length+1),u=!0),!u){const x=this.rules.other.nextBulletRegex(g),v=this.rules.other.hrRegex(g),E=this.rules.other.fencesBeginRegex(g),_=this.rules.other.headingBeginRegex(g),j=this.rules.other.htmlBeginRegex(g);for(;e;){const F=e.split(`
- `,1)[0];let k;if(f=F,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),k=f):k=f.replace(this.rules.other.tabCharGlobal," "),E.test(f)||_.test(f)||j.test(f)||x.test(f)||v.test(f))break;if(k.search(this.rules.other.nonSpaceChar)>=g||!f.trim())d+=`
- `+k.slice(g);else{if(p||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(h)||_.test(h)||v.test(h))break;d+=`
- `+f}!p&&!f.trim()&&(p=!0),c+=F+`
- `,e=e.substring(F.length+1),h=k.slice(g)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(o=!0));let y=null,b;this.options.gfm&&(y=this.rules.other.listIsTask.exec(d),y&&(b=y[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!y,checked:b,loose:!1,text:d,tokens:[]}),i.raw+=c}const l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){const c=i.items[u].tokens.filter(h=>h.type==="space"),d=c.length>0&&c.some(h=>this.rules.other.anyLine.test(h.raw));i.loose=d}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:i}}}table(e){var o;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const r=Ev(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(o=t[3])!=null&&o.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
- `):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(const l of n)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<r.length;l++)s.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:s.align[l]});for(const l of i)s.rows.push(Ev(l,s.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:s.align[c]})));return s}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const s=Cu(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=xge(t[2],"()");if(s===-2)return;if(s>-1){const l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){const s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),Cv(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[n.toLowerCase()];if(!i){const s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return Cv(r,i,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(n[1]||n[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const s=[...n[0]].length-1;let o,l,u=s,c=0;const d=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+s);(n=d.exec(t))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(l=[...o].length,n[3]||n[4]){u+=l;continue}else if((n[5]||n[6])&&s%3&&!((s+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);const h=[...n[0]][0].length,f=e.slice(0,s+n.index+h+l);if(Math.min(s,l)%2){const g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}const p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let n,i;if(t[2]==="@")n=t[0],i="mailto:"+n;else{let s;do s=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(s!==t[0]);n=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},ya=class z4{constructor(t){rr(this,"tokens");rr(this,"options");rr(this,"state");rr(this,"tokenizer");rr(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Io,this.options.tokenizer=this.options.tokenizer||new k2,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:Sn,block:ih.normal,inline:Eu.normal};this.options.pedantic?(r.block=ih.pedantic,r.inline=Eu.pedantic):this.options.gfm&&(r.block=ih.gfm,this.options.breaks?r.inline=Eu.breaks:r.inline=Eu.gfm),this.tokenizer.rules=r}static get rules(){return{block:ih,inline:Eu}}static lex(t,r){return new z4(r).lex(t)}static lexInline(t,r){return new z4(r).inlineTokens(t)}lex(t){t=t.replace(Sn.carriageReturn,`
- `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var i,s,o;for(this.options.pedantic&&(t=t.replace(Sn.tabCharGlobal," ").replace(Sn.spaceLine,""));t;){let l;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(c=>(l=c.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);const c=r.at(-1);l.raw.length===1&&c!==void 0?c.raw+=`
- `:r.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);const c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
- `+l.raw,c.text+=`
- `+l.text,this.inlineQueue.at(-1).src=c.text):r.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);const c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
- `+l.raw,c.text+=`
- `+l.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title});continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),r.push(l);continue}let u=t;if((o=this.options.extensions)!=null&&o.startBlock){let c=1/0;const d=t.slice(1);let h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},d),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(u=t.substring(0,c+1))}if(this.state.top&&(l=this.tokenizer.paragraph(u))){const c=r.at(-1);n&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=`
- `+l.raw,c.text+=`
- `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(l),n=u.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);const c=r.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=`
- `+l.raw,c.text+=`
- `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(l);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var l,u,c;let n=t,i=null;if(this.tokens.links){const d=Object.keys(this.tokens.links);if(d.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)d.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,o="";for(;t;){s||(o=""),s=!1;let d;if((u=(l=this.options.extensions)==null?void 0:l.inline)!=null&&u.some(f=>(d=f.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);const f=r.at(-1);d.type==="text"&&(f==null?void 0:f.type)==="text"?(f.raw+=d.raw,f.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,n,o)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let h=t;if((c=this.options.extensions)!=null&&c.startInline){let f=1/0;const p=t.slice(1);let g;this.options.extensions.startInline.forEach(y=>{g=y.call({lexer:this},p),typeof g=="number"&&g>=0&&(f=Math.min(f,g))}),f<1/0&&f>=0&&(h=t.substring(0,f+1))}if(d=this.tokenizer.inlineText(h)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(o=d.raw.slice(-1)),s=!0;const f=r.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=d.raw,f.text+=d.text):r.push(d);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return r}},O2=class{constructor(e){rr(this,"options");rr(this,"parser");this.options=e||Io}space(e){return""}code({text:e,lang:t,escaped:r}){var s;const n=(s=(t||"").match(Sn.notSpaceStart))==null?void 0:s[0],i=e.replace(Sn.endingNewline,"")+`
- `;return n?'<pre><code class="language-'+Ni(n)+'">'+(r?i:Ni(i,!0))+`</code></pre>
- `:"<pre><code>"+(r?i:Ni(i,!0))+`</code></pre>
- `}blockquote({tokens:e}){return`<blockquote>
- ${this.parser.parse(e)}</blockquote>
- `}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
- `}hr(e){return`<hr>
- `}list(e){const t=e.ordered,r=e.start;let n="";for(let o=0;o<e.items.length;o++){const l=e.items[o];n+=this.listitem(l)}const i=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
- `+n+"</"+i+`>
- `}listitem(e){var r;let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?((r=e.tokens[0])==null?void 0:r.type)==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+Ni(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
- `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
- `}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){const s=e.rows[i];r="";for(let o=0;o<s.length;o++)r+=this.tablecell(s[o]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
- <thead>
- `+t+`</thead>
- `+n+`</table>
- `}tablerow({text:e}){return`<tr>
- ${e}</tr>
- `}tablecell(e){const t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ni(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){const n=this.parser.parseInline(r),i=wv(e);if(i===null)return n;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+Ni(t)+'"'),s+=">"+n+"</a>",s}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));const i=wv(e);if(i===null)return Ni(r);e=i;let s=`<img src="${e}" alt="${r}"`;return t&&(s+=` title="${Ni(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ni(e.text)}},T3=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ba=class U4{constructor(t){rr(this,"options");rr(this,"renderer");rr(this,"textRenderer");this.options=t||Io,this.options.renderer=this.options.renderer||new O2,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new T3}static parse(t,r){return new U4(r).parse(t)}static parseInline(t,r){return new U4(r).parseInline(t)}parse(t,r=!0){var i,s;let n="";for(let o=0;o<t.length;o++){const l=t[o];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[l.type]){const c=l,d=this.options.extensions.renderers[c.type].call({parser:this},c);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){n+=d||"";continue}}const u=l;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let c=u,d=this.renderer.text(c);for(;o+1<t.length&&t[o+1].type==="text";)c=t[++o],d+=`
- `+this.renderer.text(c);r?n+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):n+=d;continue}default:{const c='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}parseInline(t,r=this.renderer){var i,s;let n="";for(let o=0;o<t.length;o++){const l=t[o];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[l.type]){const c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){n+=c||"";continue}}const u=l;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{const c='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}},v5,Ah=(v5=class{constructor(e){rr(this,"options");rr(this,"block");this.options=e||Io}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?ya.lex:ya.lexInline}provideParser(){return this.block?ba.parse:ba.parseInline}},rr(v5,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),v5),wge=class{constructor(...e){rr(this,"defaults",F3());rr(this,"options",this.setOptions);rr(this,"parse",this.parseMarkdown(!0));rr(this,"parseInline",this.parseMarkdown(!1));rr(this,"Parser",ba);rr(this,"Renderer",O2);rr(this,"TextRenderer",T3);rr(this,"Lexer",ya);rr(this,"Tokenizer",k2);rr(this,"Hooks",Ah);this.use(...e)}walkTokens(e,t){var n,i;let r=[];for(const s of e)switch(r=r.concat(t.call(this,s)),s.type){case"table":{const o=s;for(const l of o.header)r=r.concat(this.walkTokens(l.tokens,t));for(const l of o.rows)for(const u of l)r=r.concat(this.walkTokens(u.tokens,t));break}case"list":{const o=s;r=r.concat(this.walkTokens(o.items,t));break}default:{const o=s;(i=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&i[o.type]?this.defaults.extensions.childTokens[o.type].forEach(l=>{const u=o[l].flat(1/0);r=r.concat(this.walkTokens(u,t))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=t.renderers[i.name];s?t.renderers[i.name]=function(...o){let l=i.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=t[i.level];s?s.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),r.renderer){const i=this.defaults.renderer||new O2(this.defaults);for(const s in r.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const o=s,l=r.renderer[o],u=i[o];i[o]=(...c)=>{let d=l.apply(i,c);return d===!1&&(d=u.apply(i,c)),d||""}}n.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new k2(this.defaults);for(const s in r.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const o=s,l=r.tokenizer[o],u=i[o];i[o]=(...c)=>{let d=l.apply(i,c);return d===!1&&(d=u.apply(i,c)),d}}n.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Ah;for(const s in r.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const o=s,l=r.hooks[o],u=i[o];Ah.passThroughHooks.has(s)?i[o]=c=>{if(this.defaults.async)return Promise.resolve(l.call(i,c)).then(h=>u.call(i,h));const d=l.call(i,c);return u.call(i,d)}:i[o]=(...c)=>{let d=l.apply(i,c);return d===!1&&(d=u.apply(i,c)),d}}n.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),i&&(l=l.concat(i.call(this,o))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ya.lex(e,t??this.defaults)}parser(e,t){return ba.parse(e,t??this.defaults)}parseMarkdown(e){return(r,n)=>{const i={...n},s={...this.defaults,...i},o=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=e);const l=s.hooks?s.hooks.provideLexer():e?ya.lex:ya.lexInline,u=s.hooks?s.hooks.provideParser():e?ba.parse:ba.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(r):r).then(c=>l(c,s)).then(c=>s.hooks?s.hooks.processAllTokens(c):c).then(c=>s.walkTokens?Promise.all(this.walkTokens(c,s.walkTokens)).then(()=>c):c).then(c=>u(c,s)).then(c=>s.hooks?s.hooks.postprocess(c):c).catch(o);try{s.hooks&&(r=s.hooks.preprocess(r));let c=l(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let d=u(c,s);return s.hooks&&(d=s.hooks.postprocess(d)),d}catch(c){return o(c)}}}onError(e,t){return r=>{if(r.message+=`
- Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An error occurred:</p><pre>"+Ni(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},po=new wge;function Kt(e,t){return po.parse(e,t)}Kt.options=Kt.setOptions=function(e){return po.setOptions(e),Kt.defaults=po.defaults,aO(Kt.defaults),Kt};Kt.getDefaults=F3;Kt.defaults=Io;Kt.use=function(...e){return po.use(...e),Kt.defaults=po.defaults,aO(Kt.defaults),Kt};Kt.walkTokens=function(e,t){return po.walkTokens(e,t)};Kt.parseInline=po.parseInline;Kt.Parser=ba;Kt.parser=ba.parse;Kt.Renderer=O2;Kt.TextRenderer=T3;Kt.Lexer=ya;Kt.lexer=ya.lex;Kt.Tokenizer=k2;Kt.Hooks=Ah;Kt.parse=Kt;Kt.options;Kt.setOptions;Kt.use;Kt.walkTokens;Kt.parseInline;ba.parse;ya.lex;function gO(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(l,u){var c=u.match(/\n([\t ]+|(?!\s).)/g);return c?l.concat(c.map(function(d){var h,f;return(f=(h=d.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&f!==void 0?f:0})):l},[]);if(i.length){var s=new RegExp(`
- [ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(l){return l.replace(s,`
- `)})}n[0]=n[0].replace(/^\r?\n/,"");var o=n[0];return t.forEach(function(l,u){var c=o.match(/(?:^|\n)( *)$/),d=c?c[1]:"",h=l;typeof l=="string"&&l.includes(`
- `)&&(h=String(l).split(`
- `).map(function(f,p){return p===0?f:""+d+f}).join(`
- `)),o+=h+n[u+1]}),o}function yO(e,{markdownAutoWrap:t}){const n=e.replace(/<br\/>/g,`
- `).replace(/\n{2,}/g,`
- `),i=gO(n);return t===!1?i.replace(/ /g," "):i}C(yO,"preprocessMarkdown");function bO(e,t={}){const r=yO(e,t),n=Kt.lexer(r),i=[[]];let s=0;function o(l,u="normal"){l.type==="text"?l.text.split(`
- `).forEach((d,h)=>{h!==0&&(s++,i.push([])),d.split(" ").forEach(f=>{f=f.replace(/'/g,"'"),f&&i[s].push({content:f,type:u})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(c=>{o(c,l.type)}):l.type==="html"&&i[s].push({content:l.text,type:"normal"})}return C(o,"processNode"),n.forEach(l=>{var u;l.type==="paragraph"?(u=l.tokens)==null||u.forEach(c=>{o(c)}):l.type==="html"&&i[s].push({content:l.text,type:"normal"})}),i}C(bO,"markdownToLines");function xO(e,{markdownAutoWrap:t}={}){const r=Kt.lexer(e);function n(i){var s,o,l;return i.type==="text"?t===!1?i.text.replace(/\n */g,"<br/>").replace(/ /g," "):i.text.replace(/\n */g,"<br/>"):i.type==="strong"?`<strong>${(s=i.tokens)==null?void 0:s.map(n).join("")}</strong>`:i.type==="em"?`<em>${(o=i.tokens)==null?void 0:o.map(n).join("")}</em>`:i.type==="paragraph"?`<p>${(l=i.tokens)==null?void 0:l.map(n).join("")}</p>`:i.type==="space"?"":i.type==="html"?`${i.text}`:i.type==="escape"?i.text:`Unsupported markdown: ${i.type}`}return C(n,"output"),r.map(n).join("")}C(xO,"markdownToHTML");function vO(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}C(vO,"splitTextToChars");function wO(e,t){const r=vO(t.content);return P3(e,[],r,t.type)}C(wO,"splitWordToFitWidth");function P3(e,t,r,n){if(r.length===0)return[{content:t.join(""),type:n},{content:"",type:n}];const[i,...s]=r,o=[...t,i];return e([{content:o.join(""),type:n}])?P3(e,o,s,n):(t.length===0&&i&&(t.push(i),r.shift()),[{content:t.join(""),type:n},{content:r.join(""),type:n}])}C(P3,"splitWordToFitWidthRecursion");function EO(e,t){if(e.some(({content:r})=>r.includes(`
- `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return A2(e,t)}C(EO,"splitLineToFitWidth");function A2(e,t,r=[],n=[]){if(e.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";e[0].content===" "&&(i=" ",e.shift());const s=e.shift()??{content:" ",type:"normal"},o=[...n];if(i!==""&&o.push({content:i,type:"normal"}),o.push(s),t(o))return A2(e,t,r,o);if(n.length>0)r.push(n),e.unshift(s);else if(s.content){const[l,u]=wO(t,s);r.push([l]),u.content&&e.unshift(u)}return A2(e,t,r)}C(A2,"splitLineToFitWidthRecursion");function H4(e,t){t&&e.attr("style",t)}C(H4,"applyStyle");async function CO(e,t,r,n,i=!1){const s=e.append("foreignObject");s.attr("width",`${10*r}px`),s.attr("height",`${10*r}px`);const o=s.append("xhtml:div");let l=t.label;t.label&&Al(t.label)&&(l=await Vg(t.label.replace(au.lineBreakRegex,`
- `),Ht()));const u=t.isNode?"nodeLabel":"edgeLabel",c=o.append("span");c.html(l),H4(c,t.labelStyle),c.attr("class",`${u} ${n}`),H4(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),o.style("max-width",r+"px"),o.style("text-align","center"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&o.attr("class","labelBkg");let d=o.node().getBoundingClientRect();return d.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),d=o.node().getBoundingClientRect()),s.node()}C(CO,"addHtmlSpan");function jf(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}C(jf,"createTspan");function SO(e,t,r){const n=e.append("text"),i=jf(n,1,t);_f(i,r);const s=i.node().getComputedTextLength();return n.remove(),s}C(SO,"computeWidthOfText");function Ege(e,t,r){var o;const n=e.append("text"),i=jf(n,1,t);_f(i,[{content:r,type:"normal"}]);const s=(o=i.node())==null?void 0:o.getBoundingClientRect();return s&&n.remove(),s}C(Ege,"computeDimensionOfText");function FO(e,t,r,n=!1){const s=t.append("g"),o=s.insert("rect").attr("class","background").attr("style","stroke: none"),l=s.append("text").attr("y","-10.1");let u=0;for(const c of r){const d=C(f=>SO(s,1.1,f)<=e,"checkWidth"),h=d(c)?[c]:EO(c,d);for(const f of h){const p=jf(l,u,1.1);_f(p,f),u++}}if(n){const c=l.node().getBBox(),d=2;return o.attr("x",c.x-d).attr("y",c.y-d).attr("width",c.width+2*d).attr("height",c.height+2*d),s.node()}else return l.node()}C(FO,"createFormattedText");function _f(e,t){e.text(""),t.forEach((r,n)=>{const i=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(r.content):i.text(" "+r.content)})}C(_f,"updateTextContentAndStyles");function jO(e){return e.replace(/fa[bklrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`)}C(jO,"replaceIconSubstring");var Ds=C(async(e,t="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:s=!0,isNode:o=!0,width:l=200,addSvgBackground:u=!1}={},c)=>{if(Me.debug("XYZ createText",t,r,n,i,s,o,"addSvgBackground: ",u),s){const d=xO(t,c),h=jO(Mo(d)),f=t.replace(/\\\\/g,"\\"),p={isNode:o,label:Al(t)?f:h,labelStyle:r.replace("fill:","color:")};return await CO(e,p,l,i,u)}else{const d=t.replace(/<br\s*\/?>/g,"<br/>"),h=bO(d.replace("<br>","<br/>"),c),f=FO(l,e,h,t?u:!1);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Pt(f).attr("style",p)}else{const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Pt(f).select("rect").attr("style",p.replace(/background:/g,"fill:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Pt(f).select("text").attr("style",g)}return f}},"createText");function d5(e,t,r){if(e&&e.length){const[n,i]=t,s=Math.PI/180*r,o=Math.cos(s),l=Math.sin(s);for(const u of e){const[c,d]=u;u[0]=(c-n)*o-(d-i)*l+n,u[1]=(c-n)*l+(d-i)*o+i}}}function Cge(e,t){return e[0]===t[0]&&e[1]===t[1]}function Sge(e,t,r,n=1){const i=r,s=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,l=[0,0];if(i)for(const c of o)d5(c,l,i);const u=function(c,d,h){const f=[];for(const v of c){const E=[...v];Cge(E[0],E[E.length-1])||E.push([E[0][0],E[0][1]]),E.length>2&&f.push(E)}const p=[];d=Math.max(d,.1);const g=[];for(const v of f)for(let E=0;E<v.length-1;E++){const _=v[E],j=v[E+1];if(_[1]!==j[1]){const F=Math.min(_[1],j[1]);g.push({ymin:F,ymax:Math.max(_[1],j[1]),x:F===_[1]?_[0]:j[0],islope:(j[0]-_[0])/(j[1]-_[1])})}}if(g.sort((v,E)=>v.ymin<E.ymin?-1:v.ymin>E.ymin?1:v.x<E.x?-1:v.x>E.x?1:v.ymax===E.ymax?0:(v.ymax-E.ymax)/Math.abs(v.ymax-E.ymax)),!g.length)return p;let y=[],b=g[0].ymin,x=0;for(;y.length||g.length;){if(g.length){let v=-1;for(let E=0;E<g.length&&!(g[E].ymin>b);E++)v=E;g.splice(0,v+1).forEach(E=>{y.push({s:b,edge:E})})}if(y=y.filter(v=>!(v.edge.ymax<=b)),y.sort((v,E)=>v.edge.x===E.edge.x?0:(v.edge.x-E.edge.x)/Math.abs(v.edge.x-E.edge.x)),(h!==1||x%d==0)&&y.length>1)for(let v=0;v<y.length;v+=2){const E=v+1;if(E>=y.length)break;const _=y[v].edge,j=y[E].edge;p.push([[Math.round(_.x),b],[Math.round(j.x),b]])}b+=h,y.forEach(v=>{v.edge.x=v.edge.x+h*v.edge.islope}),x++}return p}(o,s,n);if(i){for(const c of o)d5(c,l,-i);(function(c,d,h){const f=[];c.forEach(p=>f.push(...p)),d5(f,d,h)})(u,l,-i)}return u}function Fd(e,t){var r;const n=t.hachureAngle+90;let i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let s=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(s=i),Sge(e,i,n,s||1)}class N3{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const n=Fd(t,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(t,r){const n=[];for(const i of t)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}}function kf(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class Fge extends N3{fillPolygons(t,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);const i=Fd(t,Object.assign({},r,{hachureGap:n})),s=Math.PI/180*r.hachureAngle,o=[],l=.5*n*Math.cos(s),u=.5*n*Math.sin(s);for(const[c,d]of i)kf([c,d])&&o.push([[c[0]-l,c[1]+u],[...d]],[[c[0]+l,c[1]-u],[...d]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}}class jge extends N3{fillPolygons(t,r){const n=this._fillPolygons(t,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),s=this._fillPolygons(t,i);return n.ops=n.ops.concat(s.ops),n}}class _ge{constructor(t){this.helper=t}fillPolygons(t,r){const n=Fd(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(t,r){const n=[];let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let s=r.fillWeight;s<0&&(s=r.strokeWidth/2);const o=i/4;for(const l of t){const u=kf(l),c=u/i,d=Math.ceil(c)-1,h=u-d*i,f=(l[0][0]+l[1][0])/2-i/4,p=Math.min(l[0][1],l[1][1]);for(let g=0;g<d;g++){const y=p+h+g*i,b=f-o+2*Math.random()*o,x=y-o+2*Math.random()*o,v=this.helper.ellipse(b,x,s,s,r);n.push(...v.ops)}}return{type:"fillSketch",ops:n}}}let kge=class{constructor(t){this.helper=t}fillPolygons(t,r){const n=Fd(t,r);return{type:"fillSketch",ops:this.dashedLine(n,r)}}dashedLine(t,r){const n=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,i=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,s=[];return t.forEach(o=>{const l=kf(o),u=Math.floor(l/(n+i)),c=(l+i-u*(n+i))/2;let d=o[0],h=o[1];d[0]>h[0]&&(d=o[1],h=o[0]);const f=Math.atan((h[1]-d[1])/(h[0]-d[0]));for(let p=0;p<u;p++){const g=p*(n+i),y=g+n,b=[d[0]+g*Math.cos(f)+c*Math.cos(f),d[1]+g*Math.sin(f)+c*Math.sin(f)],x=[d[0]+y*Math.cos(f)+c*Math.cos(f),d[1]+y*Math.sin(f)+c*Math.sin(f)];s.push(...this.helper.doubleLineOps(b[0],b[1],x[0],x[1],r))}}),s}};class Oge{constructor(t){this.helper=t}fillPolygons(t,r){const n=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,i=r.zigzagOffset<0?n:r.zigzagOffset,s=Fd(t,r=Object.assign({},r,{hachureGap:n+i}));return{type:"fillSketch",ops:this.zigzagLines(s,i,r)}}zigzagLines(t,r,n){const i=[];return t.forEach(s=>{const o=kf(s),l=Math.round(o/(2*r));let u=s[0],c=s[1];u[0]>c[0]&&(u=s[1],c=s[0]);const d=Math.atan((c[1]-u[1])/(c[0]-u[0]));for(let h=0;h<l;h++){const f=2*h*r,p=2*(h+1)*r,g=Math.sqrt(2*Math.pow(r,2)),y=[u[0]+f*Math.cos(d),u[1]+f*Math.sin(d)],b=[u[0]+p*Math.cos(d),u[1]+p*Math.sin(d)],x=[y[0]+g*Math.cos(d+Math.PI/4),y[1]+g*Math.sin(d+Math.PI/4)];i.push(...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],n),...this.helper.doubleLineOps(x[0],x[1],b[0],b[1],n))}}),i}}const Bn={};class Age{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const Dge=0,h5=1,Sv=2,ah={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function f5(e,t){return e.type===t}function M3(e){const t=[],r=function(o){const l=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:Dge,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:h5,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return l[l.length]={type:Sv,text:""},l}(e);let n="BOD",i=0,s=r[i];for(;!f5(s,Sv);){let o=0;const l=[];if(n==="BOD"){if(s.text!=="M"&&s.text!=="m")return M3("M0,0"+e);i++,o=ah[s.text],n=s.text}else f5(s,h5)?o=ah[n]:(i++,o=ah[s.text],n=s.text);if(!(i+o<r.length))throw new Error("Path data ended short");for(let u=i;u<i+o;u++){const c=r[u];if(!f5(c,h5))throw new Error("Param not a number: "+n+","+c.text);l[l.length]=+c.text}if(typeof ah[n]!="number")throw new Error("Bad segment: "+n);{const u={key:n,data:l};t.push(u),i+=o,s=r[i],n==="M"&&(n="L"),n==="m"&&(n="l")}}return t}function _O(e){let t=0,r=0,n=0,i=0;const s=[];for(const{key:o,data:l}of e)switch(o){case"M":s.push({key:"M",data:[...l]}),[t,r]=l,[n,i]=l;break;case"m":t+=l[0],r+=l[1],s.push({key:"M",data:[t,r]}),n=t,i=r;break;case"L":s.push({key:"L",data:[...l]}),[t,r]=l;break;case"l":t+=l[0],r+=l[1],s.push({key:"L",data:[t,r]});break;case"C":s.push({key:"C",data:[...l]}),t=l[4],r=l[5];break;case"c":{const u=l.map((c,d)=>d%2?c+r:c+t);s.push({key:"C",data:u}),t=u[4],r=u[5];break}case"Q":s.push({key:"Q",data:[...l]}),t=l[2],r=l[3];break;case"q":{const u=l.map((c,d)=>d%2?c+r:c+t);s.push({key:"Q",data:u}),t=u[2],r=u[3];break}case"A":s.push({key:"A",data:[...l]}),t=l[5],r=l[6];break;case"a":t+=l[5],r+=l[6],s.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,r]});break;case"H":s.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],s.push({key:"H",data:[t]});break;case"V":s.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],s.push({key:"V",data:[r]});break;case"S":s.push({key:"S",data:[...l]}),t=l[2],r=l[3];break;case"s":{const u=l.map((c,d)=>d%2?c+r:c+t);s.push({key:"S",data:u}),t=u[2],r=u[3];break}case"T":s.push({key:"T",data:[...l]}),t=l[0],r=l[1];break;case"t":t+=l[0],r+=l[1],s.push({key:"T",data:[t,r]});break;case"Z":case"z":s.push({key:"Z",data:[]}),t=n,r=i}return s}function kO(e){const t=[];let r="",n=0,i=0,s=0,o=0,l=0,u=0;for(const{key:c,data:d}of e){switch(c){case"M":t.push({key:"M",data:[...d]}),[n,i]=d,[s,o]=d;break;case"C":t.push({key:"C",data:[...d]}),n=d[4],i=d[5],l=d[2],u=d[3];break;case"L":t.push({key:"L",data:[...d]}),[n,i]=d;break;case"H":n=d[0],t.push({key:"L",data:[n,i]});break;case"V":i=d[0],t.push({key:"L",data:[n,i]});break;case"S":{let h=0,f=0;r==="C"||r==="S"?(h=n+(n-l),f=i+(i-u)):(h=n,f=i),t.push({key:"C",data:[h,f,...d]}),l=d[0],u=d[1],n=d[2],i=d[3];break}case"T":{const[h,f]=d;let p=0,g=0;r==="Q"||r==="T"?(p=n+(n-l),g=i+(i-u)):(p=n,g=i);const y=n+2*(p-n)/3,b=i+2*(g-i)/3,x=h+2*(p-h)/3,v=f+2*(g-f)/3;t.push({key:"C",data:[y,b,x,v,h,f]}),l=p,u=g,n=h,i=f;break}case"Q":{const[h,f,p,g]=d,y=n+2*(h-n)/3,b=i+2*(f-i)/3,x=p+2*(h-p)/3,v=g+2*(f-g)/3;t.push({key:"C",data:[y,b,x,v,p,g]}),l=h,u=f,n=p,i=g;break}case"A":{const h=Math.abs(d[0]),f=Math.abs(d[1]),p=d[2],g=d[3],y=d[4],b=d[5],x=d[6];h===0||f===0?(t.push({key:"C",data:[n,i,b,x,b,x]}),n=b,i=x):(n!==b||i!==x)&&(OO(n,i,b,x,h,f,p,g,y).forEach(function(v){t.push({key:"C",data:v})}),n=b,i=x);break}case"Z":t.push({key:"Z",data:[]}),n=s,i=o}r=c}return t}function Su(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function OO(e,t,r,n,i,s,o,l,u,c){const d=(h=o,Math.PI*h/180);var h;let f=[],p=0,g=0,y=0,b=0;if(c)[p,g,y,b]=c;else{[e,t]=Su(e,t,-d),[r,n]=Su(r,n,-d);const R=(e-r)/2,z=(t-n)/2;let H=R*R/(i*i)+z*z/(s*s);H>1&&(H=Math.sqrt(H),i*=H,s*=H);const B=i*i,Y=s*s,P=B*Y-B*z*z-Y*R*R,le=B*z*z+Y*R*R,be=(l===u?-1:1)*Math.sqrt(Math.abs(P/le));y=be*i*z/s+(e+r)/2,b=be*-s*R/i+(t+n)/2,p=Math.asin(parseFloat(((t-b)/s).toFixed(9))),g=Math.asin(parseFloat(((n-b)/s).toFixed(9))),e<y&&(p=Math.PI-p),r<y&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),u&&p>g&&(p-=2*Math.PI),!u&&g>p&&(g-=2*Math.PI)}let x=g-p;if(Math.abs(x)>120*Math.PI/180){const R=g,z=r,H=n;g=u&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=OO(r=y+i*Math.cos(g),n=b+s*Math.sin(g),z,H,i,s,o,0,u,[g,R,y,b])}x=g-p;const v=Math.cos(p),E=Math.sin(p),_=Math.cos(g),j=Math.sin(g),F=Math.tan(x/4),k=4/3*i*F,U=4/3*s*F,W=[e,t],K=[e+k*E,t-U*v],$=[r+k*j,n-U*_],O=[r,n];if(K[0]=2*W[0]-K[0],K[1]=2*W[1]-K[1],c)return[K,$,O].concat(f);{f=[K,$,O].concat(f);const R=[];for(let z=0;z<f.length;z+=3){const H=Su(f[z][0],f[z][1],d),B=Su(f[z+1][0],f[z+1][1],d),Y=Su(f[z+2][0],f[z+2][1],d);R.push([H[0],H[1],B[0],B[1],Y[0],Y[1]])}return R}}const Bge={randOffset:function(e,t){return xt(e,t)},randOffsetWithRange:function(e,t,r){return D2(e,t,r)},ellipse:function(e,t,r,n,i){const s=DO(r,n,i);return q4(e,t,i,s).opset},doubleLineOps:function(e,t,r,n,i){return ms(e,t,r,n,i,!0)}};function AO(e,t,r,n,i){return{type:"path",ops:ms(e,t,r,n,i)}}function Dh(e,t,r){const n=(e||[]).length;if(n>2){const i=[];for(let s=0;s<n-1;s++)i.push(...ms(e[s][0],e[s][1],e[s+1][0],e[s+1][1],r));return t&&i.push(...ms(e[n-1][0],e[n-1][1],e[0][0],e[0][1],r)),{type:"path",ops:i}}return n===2?AO(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function Tge(e,t,r,n,i){return function(s,o){return Dh(s,!0,o)}([[e,t],[e+r,t],[e+r,t+n],[e,t+n]],i)}function Fv(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,n=sh(r[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:sh(r[0],1.5*(1+.22*t.roughness),kv(t));for(let s=1;s<r.length;s++){const o=r[s];if(o.length){const l=sh(o,1*(1+.2*t.roughness),t),u=t.disableMultiStroke?[]:sh(o,1.5*(1+.22*t.roughness),kv(t));for(const c of l)c.op!=="move"&&n.push(c);for(const c of u)c.op!=="move"&&i.push(c)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function DO(e,t,r){const n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),s=2*Math.PI/i;let o=Math.abs(e/2),l=Math.abs(t/2);const u=1-r.curveFitting;return o+=xt(o*u,r),l+=xt(l*u,r),{increment:s,rx:o,ry:l}}function q4(e,t,r,n){const[i,s]=Ov(n.increment,e,t,n.rx,n.ry,1,n.increment*D2(.1,D2(.4,1,r),r),r);let o=B2(i,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[l]=Ov(n.increment,e,t,n.rx,n.ry,1.5,0,r),u=B2(l,null,r);o=o.concat(u)}return{estimatedPoints:s,opset:{type:"path",ops:o}}}function jv(e,t,r,n,i,s,o,l,u){const c=e,d=t;let h=Math.abs(r/2),f=Math.abs(n/2);h+=xt(.01*h,u),f+=xt(.01*f,u);let p=i,g=s;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const y=2*Math.PI/u.curveStepCount,b=Math.min(y/2,(g-p)/2),x=Av(b,c,d,h,f,p,g,1,u);if(!u.disableMultiStroke){const v=Av(b,c,d,h,f,p,g,1.5,u);x.push(...v)}return o&&(l?x.push(...ms(c,d,c+h*Math.cos(p),d+f*Math.sin(p),u),...ms(c,d,c+h*Math.cos(g),d+f*Math.sin(g),u)):x.push({op:"lineTo",data:[c,d]},{op:"lineTo",data:[c+h*Math.cos(p),d+f*Math.sin(p)]})),{type:"path",ops:x}}function _v(e,t){const r=kO(_O(M3(e))),n=[];let i=[0,0],s=[0,0];for(const{key:o,data:l}of r)switch(o){case"M":s=[l[0],l[1]],i=[l[0],l[1]];break;case"L":n.push(...ms(s[0],s[1],l[0],l[1],t)),s=[l[0],l[1]];break;case"C":{const[u,c,d,h,f,p]=l;n.push(...Pge(u,c,d,h,f,p,s,t)),s=[f,p];break}case"Z":n.push(...ms(s[0],s[1],i[0],i[1],t)),s=[i[0],i[1]]}return{type:"path",ops:n}}function p5(e,t){const r=[];for(const n of e)if(n.length){const i=t.maxRandomnessOffset||0,s=n.length;if(s>2){r.push({op:"move",data:[n[0][0]+xt(i,t),n[0][1]+xt(i,t)]});for(let o=1;o<s;o++)r.push({op:"lineTo",data:[n[o][0]+xt(i,t),n[o][1]+xt(i,t)]})}}return{type:"fillPath",ops:r}}function Ko(e,t){return function(r,n){let i=r.fillStyle||"hachure";if(!Bn[i])switch(i){case"zigzag":Bn[i]||(Bn[i]=new Fge(n));break;case"cross-hatch":Bn[i]||(Bn[i]=new jge(n));break;case"dots":Bn[i]||(Bn[i]=new _ge(n));break;case"dashed":Bn[i]||(Bn[i]=new kge(n));break;case"zigzag-line":Bn[i]||(Bn[i]=new Oge(n));break;default:i="hachure",Bn[i]||(Bn[i]=new N3(n))}return Bn[i]}(t,Bge).fillPolygons(e,t)}function kv(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function BO(e){return e.randomizer||(e.randomizer=new Age(e.seed||0)),e.randomizer.next()}function D2(e,t,r,n=1){return r.roughness*n*(BO(r)*(t-e)+e)}function xt(e,t,r=1){return D2(-e,e,t,r)}function ms(e,t,r,n,i,s=!1){const o=s?i.disableMultiStrokeFill:i.disableMultiStroke,l=W4(e,t,r,n,i,!0,!1);if(o)return l;const u=W4(e,t,r,n,i,!0,!0);return l.concat(u)}function W4(e,t,r,n,i,s,o){const l=Math.pow(e-r,2)+Math.pow(t-n,2),u=Math.sqrt(l);let c=1;c=u<200?1:u>500?.4:-.0016668*u+1.233334;let d=i.maxRandomnessOffset||0;d*d*100>l&&(d=u/10);const h=d/2,f=.2+.2*BO(i);let p=i.bowing*i.maxRandomnessOffset*(n-t)/200,g=i.bowing*i.maxRandomnessOffset*(e-r)/200;p=xt(p,i,c),g=xt(g,i,c);const y=[],b=()=>xt(h,i,c),x=()=>xt(d,i,c),v=i.preserveVertices;return o?y.push({op:"move",data:[e+(v?0:b()),t+(v?0:b())]}):y.push({op:"move",data:[e+(v?0:xt(d,i,c)),t+(v?0:xt(d,i,c))]}),o?y.push({op:"bcurveTo",data:[p+e+(r-e)*f+b(),g+t+(n-t)*f+b(),p+e+2*(r-e)*f+b(),g+t+2*(n-t)*f+b(),r+(v?0:b()),n+(v?0:b())]}):y.push({op:"bcurveTo",data:[p+e+(r-e)*f+x(),g+t+(n-t)*f+x(),p+e+2*(r-e)*f+x(),g+t+2*(n-t)*f+x(),r+(v?0:x()),n+(v?0:x())]}),y}function sh(e,t,r){if(!e.length)return[];const n=[];n.push([e[0][0]+xt(t,r),e[0][1]+xt(t,r)]),n.push([e[0][0]+xt(t,r),e[0][1]+xt(t,r)]);for(let i=1;i<e.length;i++)n.push([e[i][0]+xt(t,r),e[i][1]+xt(t,r)]),i===e.length-1&&n.push([e[i][0]+xt(t,r),e[i][1]+xt(t,r)]);return B2(n,null,r)}function B2(e,t,r){const n=e.length,i=[];if(n>3){const s=[],o=1-r.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let l=1;l+2<n;l++){const u=e[l];s[0]=[u[0],u[1]],s[1]=[u[0]+(o*e[l+1][0]-o*e[l-1][0])/6,u[1]+(o*e[l+1][1]-o*e[l-1][1])/6],s[2]=[e[l+1][0]+(o*e[l][0]-o*e[l+2][0])/6,e[l+1][1]+(o*e[l][1]-o*e[l+2][1])/6],s[3]=[e[l+1][0],e[l+1][1]],i.push({op:"bcurveTo",data:[s[1][0],s[1][1],s[2][0],s[2][1],s[3][0],s[3][1]]})}}else n===3?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):n===2&&i.push(...W4(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return i}function Ov(e,t,r,n,i,s,o,l){const u=[],c=[];if(l.roughness===0){e/=4,c.push([t+n*Math.cos(-e),r+i*Math.sin(-e)]);for(let d=0;d<=2*Math.PI;d+=e){const h=[t+n*Math.cos(d),r+i*Math.sin(d)];u.push(h),c.push(h)}c.push([t+n*Math.cos(0),r+i*Math.sin(0)]),c.push([t+n*Math.cos(e),r+i*Math.sin(e)])}else{const d=xt(.5,l)-Math.PI/2;c.push([xt(s,l)+t+.9*n*Math.cos(d-e),xt(s,l)+r+.9*i*Math.sin(d-e)]);const h=2*Math.PI+d-.01;for(let f=d;f<h;f+=e){const p=[xt(s,l)+t+n*Math.cos(f),xt(s,l)+r+i*Math.sin(f)];u.push(p),c.push(p)}c.push([xt(s,l)+t+n*Math.cos(d+2*Math.PI+.5*o),xt(s,l)+r+i*Math.sin(d+2*Math.PI+.5*o)]),c.push([xt(s,l)+t+.98*n*Math.cos(d+o),xt(s,l)+r+.98*i*Math.sin(d+o)]),c.push([xt(s,l)+t+.9*n*Math.cos(d+.5*o),xt(s,l)+r+.9*i*Math.sin(d+.5*o)])}return[c,u]}function Av(e,t,r,n,i,s,o,l,u){const c=s+xt(.1,u),d=[];d.push([xt(l,u)+t+.9*n*Math.cos(c-e),xt(l,u)+r+.9*i*Math.sin(c-e)]);for(let h=c;h<=o;h+=e)d.push([xt(l,u)+t+n*Math.cos(h),xt(l,u)+r+i*Math.sin(h)]);return d.push([t+n*Math.cos(o),r+i*Math.sin(o)]),d.push([t+n*Math.cos(o),r+i*Math.sin(o)]),B2(d,null,u)}function Pge(e,t,r,n,i,s,o,l){const u=[],c=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3];let d=[0,0];const h=l.disableMultiStroke?1:2,f=l.preserveVertices;for(let p=0;p<h;p++)p===0?u.push({op:"move",data:[o[0],o[1]]}):u.push({op:"move",data:[o[0]+(f?0:xt(c[0],l)),o[1]+(f?0:xt(c[0],l))]}),d=f?[i,s]:[i+xt(c[p],l),s+xt(c[p],l)],u.push({op:"bcurveTo",data:[e+xt(c[p],l),t+xt(c[p],l),r+xt(c[p],l),n+xt(c[p],l),d[0],d[1]]});return u}function Fu(e){return[...e]}function Dv(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const n=[];if(r===3)n.push(Fu(e[0]),Fu(e[1]),Fu(e[2]),Fu(e[2]));else{const i=[];i.push(e[0],e[0]);for(let l=1;l<e.length;l++)i.push(e[l]),l===e.length-1&&i.push(e[l]);const s=[],o=1-t;n.push(Fu(i[0]));for(let l=1;l+2<i.length;l++){const u=i[l];s[0]=[u[0],u[1]],s[1]=[u[0]+(o*i[l+1][0]-o*i[l-1][0])/6,u[1]+(o*i[l+1][1]-o*i[l-1][1])/6],s[2]=[i[l+1][0]+(o*i[l][0]-o*i[l+2][0])/6,i[l+1][1]+(o*i[l][1]-o*i[l+2][1])/6],s[3]=[i[l+1][0],i[l+1][1]],n.push(s[1],s[2],s[3])}}return n}function Bh(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function Nge(e,t,r){const n=Bh(t,r);if(n===0)return Bh(e,t);let i=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/n;return i=Math.max(0,Math.min(1,i)),Bh(e,Us(t,r,i))}function Us(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function V4(e,t,r,n){const i=n||[];if(function(l,u){const c=l[u+0],d=l[u+1],h=l[u+2],f=l[u+3];let p=3*d[0]-2*c[0]-f[0];p*=p;let g=3*d[1]-2*c[1]-f[1];g*=g;let y=3*h[0]-2*f[0]-c[0];y*=y;let b=3*h[1]-2*f[1]-c[1];return b*=b,p<y&&(p=y),g<b&&(g=b),p+g}(e,t)<r){const l=e[t+0];i.length?(s=i[i.length-1],o=l,Math.sqrt(Bh(s,o))>1&&i.push(l)):i.push(l),i.push(e[t+3])}else{const u=e[t+0],c=e[t+1],d=e[t+2],h=e[t+3],f=Us(u,c,.5),p=Us(c,d,.5),g=Us(d,h,.5),y=Us(f,p,.5),b=Us(p,g,.5),x=Us(y,b,.5);V4([u,f,y,x],0,r,i),V4([x,b,g,h],0,r,i)}var s,o;return i}function Mge(e,t){return T2(e,0,e.length,t)}function T2(e,t,r,n,i){const s=i||[],o=e[t],l=e[r-1];let u=0,c=1;for(let d=t+1;d<r-1;++d){const h=Nge(e[d],o,l);h>u&&(u=h,c=d)}return Math.sqrt(u)>n?(T2(e,t,c+1,n,s),T2(e,c,r,n,s)):(s.length||s.push(o),s.push(l)),s}function m5(e,t=.15,r){const n=[],i=(e.length-1)/3;for(let s=0;s<i;s++)V4(e,3*s,t,n);return r&&r>0?T2(n,0,n.length,r):n}const Vn="none";class P2{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,n){return{shape:t,sets:r||[],options:n||this.defaultOptions}}line(t,r,n,i,s){const o=this._o(s);return this._d("line",[AO(t,r,n,i,o)],o)}rectangle(t,r,n,i,s){const o=this._o(s),l=[],u=Tge(t,r,n,i,o);if(o.fill){const c=[[t,r],[t+n,r],[t+n,r+i],[t,r+i]];o.fillStyle==="solid"?l.push(p5([c],o)):l.push(Ko([c],o))}return o.stroke!==Vn&&l.push(u),this._d("rectangle",l,o)}ellipse(t,r,n,i,s){const o=this._o(s),l=[],u=DO(n,i,o),c=q4(t,r,o,u);if(o.fill)if(o.fillStyle==="solid"){const d=q4(t,r,o,u).opset;d.type="fillPath",l.push(d)}else l.push(Ko([c.estimatedPoints],o));return o.stroke!==Vn&&l.push(c.opset),this._d("ellipse",l,o)}circle(t,r,n,i){const s=this.ellipse(t,r,n,n,i);return s.shape="circle",s}linearPath(t,r){const n=this._o(r);return this._d("linearPath",[Dh(t,!1,n)],n)}arc(t,r,n,i,s,o,l=!1,u){const c=this._o(u),d=[],h=jv(t,r,n,i,s,o,l,!0,c);if(l&&c.fill)if(c.fillStyle==="solid"){const f=Object.assign({},c);f.disableMultiStroke=!0;const p=jv(t,r,n,i,s,o,!0,!1,f);p.type="fillPath",d.push(p)}else d.push(function(f,p,g,y,b,x,v){const E=f,_=p;let j=Math.abs(g/2),F=Math.abs(y/2);j+=xt(.01*j,v),F+=xt(.01*F,v);let k=b,U=x;for(;k<0;)k+=2*Math.PI,U+=2*Math.PI;U-k>2*Math.PI&&(k=0,U=2*Math.PI);const W=(U-k)/v.curveStepCount,K=[];for(let $=k;$<=U;$+=W)K.push([E+j*Math.cos($),_+F*Math.sin($)]);return K.push([E+j*Math.cos(U),_+F*Math.sin(U)]),K.push([E,_]),Ko([K],v)}(t,r,n,i,s,o,c));return c.stroke!==Vn&&d.push(h),this._d("arc",d,c)}curve(t,r){const n=this._o(r),i=[],s=Fv(t,n);if(n.fill&&n.fill!==Vn)if(n.fillStyle==="solid"){const o=Fv(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],l=t;if(l.length){const u=typeof l[0][0]=="number"?[l]:l;for(const c of u)c.length<3?o.push(...c):c.length===3?o.push(...m5(Dv([c[0],c[0],c[1],c[2]]),10,(1+n.roughness)/2)):o.push(...m5(Dv(c),10,(1+n.roughness)/2))}o.length&&i.push(Ko([o],n))}return n.stroke!==Vn&&i.push(s),this._d("curve",i,n)}polygon(t,r){const n=this._o(r),i=[],s=Dh(t,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(p5([t],n)):i.push(Ko([t],n))),n.stroke!==Vn&&i.push(s),this._d("polygon",i,n)}path(t,r){const n=this._o(r),i=[];if(!t)return this._d("path",i,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const s=n.fill&&n.fill!=="transparent"&&n.fill!==Vn,o=n.stroke!==Vn,l=!!(n.simplification&&n.simplification<1),u=function(d,h,f){const p=kO(_O(M3(d))),g=[];let y=[],b=[0,0],x=[];const v=()=>{x.length>=4&&y.push(...m5(x,h)),x=[]},E=()=>{v(),y.length&&(g.push(y),y=[])};for(const{key:j,data:F}of p)switch(j){case"M":E(),b=[F[0],F[1]],y.push(b);break;case"L":v(),y.push([F[0],F[1]]);break;case"C":if(!x.length){const k=y.length?y[y.length-1]:b;x.push([k[0],k[1]])}x.push([F[0],F[1]]),x.push([F[2],F[3]]),x.push([F[4],F[5]]);break;case"Z":v(),y.push([b[0],b[1]])}if(E(),!f)return g;const _=[];for(const j of g){const F=Mge(j,f);F.length&&_.push(F)}return _}(t,1,l?4-4*(n.simplification||1):(1+n.roughness)/2),c=_v(t,n);if(s)if(n.fillStyle==="solid")if(u.length===1){const d=_v(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else i.push(p5(u,n));else i.push(Ko(u,n));return o&&(l?u.forEach(d=>{i.push(Dh(d,!1,n))}):i.push(c)),this._d("path",i,n)}opsToPath(t,r){let n="";for(const i of t.ops){const s=typeof r=="number"&&r>=0?i.data.map(o=>+o.toFixed(r)):i.data;switch(i.op){case"move":n+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":n+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":n+=`L${s[0]} ${s[1]} `}}return n.trim()}toPaths(t){const r=t.sets||[],n=t.options||this.defaultOptions,i=[];for(const s of r){let o=null;switch(s.type){case"path":o={d:this.opsToPath(s),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Vn};break;case"fillPath":o={d:this.opsToPath(s),stroke:Vn,strokeWidth:0,fill:n.fill||Vn};break;case"fillSketch":o=this.fillSketch(s,n)}o&&i.push(o)}return i}fillSketch(t,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Vn,strokeWidth:n,fill:Vn}}_mergedShape(t){return t.filter((r,n)=>n===0||r.op!=="move")}}class Ige{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new P2(r)}draw(t){const r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.ctx,s=t.options.fixedDecimalPlaceDigits;for(const o of r)switch(o.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,o,s),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";const l=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,o,s,l),i.restore();break}case"fillSketch":this.fillSketch(i,o,n)}}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),t.save(),n.fillLineDash&&t.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(t.lineDashOffset=n.fillLineDashOffset),t.strokeStyle=n.fill||"",t.lineWidth=i,this._drawToContext(t,r,n.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,n,i="nonzero"){t.beginPath();for(const s of r.ops){const o=typeof n=="number"&&n>=0?s.data.map(l=>+l.toFixed(n)):s.data;switch(s.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}r.type==="fillPath"?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,n,i,s){const o=this.gen.line(t,r,n,i,s);return this.draw(o),o}rectangle(t,r,n,i,s){const o=this.gen.rectangle(t,r,n,i,s);return this.draw(o),o}ellipse(t,r,n,i,s){const o=this.gen.ellipse(t,r,n,i,s);return this.draw(o),o}circle(t,r,n,i){const s=this.gen.circle(t,r,n,i);return this.draw(s),s}linearPath(t,r){const n=this.gen.linearPath(t,r);return this.draw(n),n}polygon(t,r){const n=this.gen.polygon(t,r);return this.draw(n),n}arc(t,r,n,i,s,o,l=!1,u){const c=this.gen.arc(t,r,n,i,s,o,l,u);return this.draw(c),c}curve(t,r){const n=this.gen.curve(t,r);return this.draw(n),n}path(t,r){const n=this.gen.path(t,r);return this.draw(n),n}}const oh="http://www.w3.org/2000/svg";class $ge{constructor(t,r){this.svg=t,this.gen=new P2(r)}draw(t){const r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,s=i.createElementNS(oh,"g"),o=t.options.fixedDecimalPlaceDigits;for(const l of r){let u=null;switch(l.type){case"path":u=i.createElementNS(oh,"path"),u.setAttribute("d",this.opsToPath(l,o)),u.setAttribute("stroke",n.stroke),u.setAttribute("stroke-width",n.strokeWidth+""),u.setAttribute("fill","none"),n.strokeLineDash&&u.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":u=i.createElementNS(oh,"path"),u.setAttribute("d",this.opsToPath(l,o)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",n.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(i,l,n)}u&&s.appendChild(u)}return s}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const s=t.createElementNS(oh,"path");return s.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),s.setAttribute("stroke",n.fill||""),s.setAttribute("stroke-width",i+""),s.setAttribute("fill","none"),n.fillLineDash&&s.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,n,i,s){const o=this.gen.line(t,r,n,i,s);return this.draw(o)}rectangle(t,r,n,i,s){const o=this.gen.rectangle(t,r,n,i,s);return this.draw(o)}ellipse(t,r,n,i,s){const o=this.gen.ellipse(t,r,n,i,s);return this.draw(o)}circle(t,r,n,i){const s=this.gen.circle(t,r,n,i);return this.draw(s)}linearPath(t,r){const n=this.gen.linearPath(t,r);return this.draw(n)}polygon(t,r){const n=this.gen.polygon(t,r);return this.draw(n)}arc(t,r,n,i,s,o,l=!1,u){const c=this.gen.arc(t,r,n,i,s,o,l,u);return this.draw(c)}curve(t,r){const n=this.gen.curve(t,r);return this.draw(n)}path(t,r){const n=this.gen.path(t,r);return this.draw(n)}}var lt={canvas:(e,t)=>new Ige(e,t),svg:(e,t)=>new $ge(e,t),generator:e=>new P2(e),newSeed:()=>P2.newSeed()},Ct=C(async(e,t,r)=>{var h,f;let n;const i=t.useHtmlLabels||Ur((h=Ht())==null?void 0:h.htmlLabels);r?n=r:n="node default";const s=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=s.insert("g").attr("class","label").attr("style",Fn(t.labelStyle));let l;t.label===void 0?l="":l=typeof t.label=="string"?t.label:t.label[0];const u=await Ds(o,co(Mo(l),Ht()),{useHtmlLabels:i,width:t.width||((f=Ht().flowchart)==null?void 0:f.wrappingWidth),cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let c=u.getBBox();const d=((t==null?void 0:t.padding)??0)/2;if(i){const p=u.children[0],g=Pt(u),y=p.getElementsByTagName("img");if(y){const b=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...y].map(x=>new Promise(v=>{function E(){if(x.style.display="flex",x.style.flexDirection="column",b){const _=Ht().fontSize?Ht().fontSize:window.getComputedStyle(document.body).fontSize,j=5,[F=sj.fontSize]=Cf(_),k=F*j+"px";x.style.minWidth=k,x.style.maxWidth=k}else x.style.width="100%";v(x)}C(E,"setupImage"),setTimeout(()=>{x.complete&&E()}),x.addEventListener("error",E),x.addEventListener("load",E)})))}c=p.getBoundingClientRect(),g.attr("width",c.width),g.attr("height",c.height)}return i?o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):o.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:s,bbox:c,halfPadding:d,label:o}},"labelHelper"),g5=C(async(e,t,r)=>{var u,c,d,h,f,p;const n=r.useHtmlLabels||Ur((c=(u=Ht())==null?void 0:u.flowchart)==null?void 0:c.htmlLabels),i=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),s=await Ds(i,co(Mo(t),Ht()),{useHtmlLabels:n,width:r.width||((h=(d=Ht())==null?void 0:d.flowchart)==null?void 0:h.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let o=s.getBBox();const l=r.padding/2;if(Ur((p=(f=Ht())==null?void 0:f.flowchart)==null?void 0:p.htmlLabels)){const g=s.children[0],y=Pt(s);o=g.getBoundingClientRect(),y.attr("width",o.width),y.attr("height",o.height)}return n?i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):i.attr("transform","translate(0, "+-o.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:e,bbox:o,halfPadding:l,label:i}},"insertLabel"),dt=C((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),vt=C((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function Nt(e){const t=e.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}C(Nt,"createPathFromPoints");function gs(e,t,r,n,i,s){const o=[],u=r-e,c=n-t,d=u/s,h=2*Math.PI/d,f=t+c/2;for(let p=0;p<=50;p++){const g=p/50,y=e+g*u,b=f+i*Math.sin(h*(y-e));o.push({x:y,y:b})}return o}C(gs,"generateFullSineWavePoints");function I3(e,t,r,n,i,s){const o=[],l=i*Math.PI/180,d=(s*Math.PI/180-l)/(n-1);for(let h=0;h<n;h++){const f=l+h*d,p=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:-p,y:-g})}return o}C(I3,"generateCirclePoints");var Lge=C((e,t)=>{var r=e.x,n=e.y,i=t.x-r,s=t.y-n,o=e.width/2,l=e.height/2,u,c;return Math.abs(s)*o>Math.abs(i)*l?(s<0&&(l=-l),u=s===0?0:l*i/s,c=l):(i<0&&(o=-o),u=o,c=i===0?0:o*s/i),{x:r+u,y:n+c}},"intersectRect"),su=Lge;function TO(e,t){t&&e.attr("style",t)}C(TO,"applyStyle");async function PO(e){const t=Pt(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div");let n=e.label;e.label&&Al(e.label)&&(n=await Vg(e.label.replace(au.lineBreakRegex,`
- `),Ht()));const i=e.isNode?"nodeLabel":"edgeLabel";return r.html('<span class="'+i+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+n+"</span>"),TO(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}C(PO,"addHtmlLabel");var Rge=C(async(e,t,r,n)=>{let i=e||"";if(typeof i=="object"&&(i=i[0]),Ur(Ht().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),Me.info("vertexText"+i);const s={isNode:n,label:Mo(i).replace(/fa[blrs]?:fa-[\w-]+/g,l=>`<i class='${l.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await PO(s)}else{const s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",t.replace("color:","fill:"));let o=[];typeof i=="string"?o=i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?o=i:o=[];for(const l of o){const u=document.createElementNS("http://www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),r?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=l.trim(),s.appendChild(u)}return s}},"createLabel"),Ks=Rge,za=C((e,t,r,n,i)=>["M",e+i,t,"H",e+r-i,"A",i,i,0,0,1,e+r,t+i,"V",t+n-i,"A",i,i,0,0,1,e+r-i,t+n,"H",e+i,"A",i,i,0,0,1,e,t+n-i,"V",t+i,"A",i,i,0,0,1,e+i,t,"Z"].join(" "),"createRoundedRectPathD"),zge=C(e=>{const{handDrawnSeed:t}=Ht();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),ou=C(e=>{const t=Uge([...e.cssCompiledStyles||[],...e.cssStyles||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Uge=C(e=>{const t=new Map;return e.forEach(r=>{const[n,i]=r.split(":");t.set(n.trim(),i==null?void 0:i.trim())}),t},"styles2Map"),NO=C(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),ht=C(e=>{const{stylesArray:t}=ou(e),r=[],n=[],i=[],s=[];return t.forEach(o=>{const l=o[0];NO(l)?r.push(o.join(":")+" !important"):(n.push(o.join(":")+" !important"),l.includes("stroke")&&i.push(o.join(":")+" !important"),l==="fill"&&s.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:s}},"styles2String"),ut=C((e,t)=>{var u;const{themeVariables:r,handDrawnSeed:n}=Ht(),{nodeBorder:i,mainBkg:s}=r,{stylesMap:o}=ou(e);return Object.assign({roughness:.7,fill:o.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||i,seed:n,strokeWidth:((u=o.get("stroke-width"))==null?void 0:u.replace("px",""))||1.3,fillLineDash:[0,0]},t)},"userNodeOverrides"),MO=C(async(e,t)=>{Me.info("Creating subgraph rect for ",t.id,t);const r=Ht(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:s,clusterBorder:o}=n,{labelStyles:l,nodeStyles:u,borderStyles:c,backgroundStyles:d}=ht(t),h=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=Ur(r.flowchart.htmlLabels),p=h.insert("g").attr("class","cluster-label "),g=await Ds(p,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0});let y=g.getBBox();if(Ur(r.flowchart.htmlLabels)){const k=g.children[0],U=Pt(g);y=k.getBoundingClientRect(),U.attr("width",y.width),U.attr("height",y.height)}const b=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,v=t.x-b/2,E=t.y-x/2;Me.trace("Data ",t,JSON.stringify(t));let _;if(t.look==="handDrawn"){const k=lt.svg(h),U=ut(t,{roughness:.7,fill:s,stroke:o,fillWeight:3,seed:i}),W=k.path(za(v,E,b,x,0),U);_=h.insert(()=>(Me.debug("Rough node insert CXC",W),W),":first-child"),_.select("path:nth-child(2)").attr("style",c.join(";")),_.select("path").attr("style",d.join(";").replace("fill","stroke"))}else _=h.insert("rect",":first-child"),_.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",v).attr("y",E).attr("width",b).attr("height",x);const{subGraphTitleTopMargin:j}=a3(r);if(p.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+j})`),l){const k=p.select("span");k&&k.attr("style",l)}const F=_.node().getBBox();return t.offsetX=0,t.width=F.width,t.height=F.height,t.offsetY=y.height-t.padding/2,t.intersect=function(k){return su(t,k)},{cluster:h,labelBBox:y}},"rect"),Hge=C((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),n=r.insert("rect",":first-child"),i=0*t.padding,s=i/2;n.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2-s).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const o=n.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(l){return su(t,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),qge=C(async(e,t)=>{const r=Ht(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:s,compositeBackground:o,compositeTitleBackground:l,nodeBorder:u}=n,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),d=c.insert("g",":first-child"),h=c.insert("g").attr("class","cluster-label");let f=c.append("rect");const p=h.node().appendChild(await Ks(t.label,t.labelStyle,void 0,!0));let g=p.getBBox();if(Ur(r.flowchart.htmlLabels)){const W=p.children[0],K=Pt(p);g=W.getBoundingClientRect(),K.attr("width",g.width),K.attr("height",g.height)}const y=0*t.padding,b=y/2,x=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+y;t.width<=g.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const v=t.height+y,E=t.height+y-g.height-6,_=t.x-x/2,j=t.y-v/2;t.width=x;const F=t.y-t.height/2-b+g.height+2;let k;if(t.look==="handDrawn"){const W=t.cssClasses.includes("statediagram-cluster-alt"),K=lt.svg(c),$=t.rx||t.ry?K.path(za(_,j,x,v,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:u,seed:i}):K.rectangle(_,j,x,v,{seed:i});k=c.insert(()=>$,":first-child");const O=K.rectangle(_,F,x,E,{fill:W?s:o,fillStyle:W?"hachure":"solid",stroke:u,seed:i});k=c.insert(()=>$,":first-child"),f=c.insert(()=>O)}else k=d.insert("rect",":first-child"),k.attr("class","outer").attr("x",_).attr("y",j).attr("width",x).attr("height",v).attr("data-look",t.look),f.attr("class","inner").attr("x",_).attr("y",F).attr("width",x).attr("height",E);h.attr("transform",`translate(${t.x-g.width/2}, ${j+1-(Ur(r.flowchart.htmlLabels)?0:3)})`);const U=k.node().getBBox();return t.height=U.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(W){return su(t,W)},{cluster:c,labelBBox:g}},"roundedWithTitle"),Wge=C(async(e,t)=>{Me.info("Creating subgraph rect for ",t.id,t);const r=Ht(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:s,clusterBorder:o}=n,{labelStyles:l,nodeStyles:u,borderStyles:c,backgroundStyles:d}=ht(t),h=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=Ur(r.flowchart.htmlLabels),p=h.insert("g").attr("class","cluster-label "),g=await Ds(p,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let y=g.getBBox();if(Ur(r.flowchart.htmlLabels)){const k=g.children[0],U=Pt(g);y=k.getBoundingClientRect(),U.attr("width",y.width),U.attr("height",y.height)}const b=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,v=t.x-b/2,E=t.y-x/2;Me.trace("Data ",t,JSON.stringify(t));let _;if(t.look==="handDrawn"){const k=lt.svg(h),U=ut(t,{roughness:.7,fill:s,stroke:o,fillWeight:4,seed:i}),W=k.path(za(v,E,b,x,t.rx),U);_=h.insert(()=>(Me.debug("Rough node insert CXC",W),W),":first-child"),_.select("path:nth-child(2)").attr("style",c.join(";")),_.select("path").attr("style",d.join(";").replace("fill","stroke"))}else _=h.insert("rect",":first-child"),_.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",v).attr("y",E).attr("width",b).attr("height",x);const{subGraphTitleTopMargin:j}=a3(r);if(p.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+j})`),l){const k=p.select("span");k&&k.attr("style",l)}const F=_.node().getBBox();return t.offsetX=0,t.width=F.width,t.height=F.height,t.offsetY=y.height-t.padding/2,t.intersect=function(k){return su(t,k)},{cluster:h,labelBBox:y}},"kanbanSection"),Vge=C((e,t)=>{const r=Ht(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:s}=n,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),l=o.insert("g",":first-child"),u=0*t.padding,c=t.width+u;t.diff=-t.padding;const d=t.height+u,h=t.x-c/2,f=t.y-d/2;t.width=c;let p;if(t.look==="handDrawn"){const b=lt.svg(o).rectangle(h,f,c,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:i});p=o.insert(()=>b,":first-child")}else p=l.insert("rect",":first-child"),p.attr("class","divider").attr("x",h).attr("y",f).attr("width",c).attr("height",d).attr("data-look",t.look);const g=p.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(y){return su(t,y)},{cluster:o,labelBBox:{}}},"divider"),Gge=MO,Kge={rect:MO,squareRect:Gge,roundedWithTitle:qge,noteGroup:Hge,divider:Vge,kanbanSection:Wge},IO=new Map,Yge=C(async(e,t)=>{const r=t.shape||"rect",n=await Kge[r](e,t);return IO.set(t.id,n),n},"insertCluster"),Nbe=C(()=>{IO=new Map},"clear");function $O(e,t){return e.intersect(t)}C($O,"intersectNode");var Zge=$O;function LO(e,t,r,n){var i=e.x,s=e.y,o=i-n.x,l=s-n.y,u=Math.sqrt(t*t*l*l+r*r*o*o),c=Math.abs(t*r*o/u);n.x<i&&(c=-c);var d=Math.abs(t*r*l/u);return n.y<s&&(d=-d),{x:i+c,y:s+d}}C(LO,"intersectEllipse");var RO=LO;function zO(e,t,r){return RO(e,t,t,r)}C(zO,"intersectCircle");var Xge=zO;function UO(e,t,r,n){var i,s,o,l,u,c,d,h,f,p,g,y,b,x,v;if(i=t.y-e.y,o=e.x-t.x,u=t.x*e.y-e.x*t.y,f=i*r.x+o*r.y+u,p=i*n.x+o*n.y+u,!(f!==0&&p!==0&&G4(f,p))&&(s=n.y-r.y,l=r.x-n.x,c=n.x*r.y-r.x*n.y,d=s*e.x+l*e.y+c,h=s*t.x+l*t.y+c,!(d!==0&&h!==0&&G4(d,h))&&(g=i*l-s*o,g!==0)))return y=Math.abs(g/2),b=o*c-l*u,x=b<0?(b-y)/g:(b+y)/g,b=s*u-i*c,v=b<0?(b-y)/g:(b+y)/g,{x,y:v}}C(UO,"intersectLine");function G4(e,t){return e*t>0}C(G4,"sameSign");var Jge=UO;function HO(e,t,r){let n=e.x,i=e.y,s=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){o=Math.min(o,d.x),l=Math.min(l,d.y)}):(o=Math.min(o,t.x),l=Math.min(l,t.y));let u=n-e.width/2-o,c=i-e.height/2-l;for(let d=0;d<t.length;d++){let h=t[d],f=t[d<t.length-1?d+1:0],p=Jge(e,r,{x:u+h.x,y:c+h.y},{x:u+f.x,y:c+f.y});p&&s.push(p)}return s.length?(s.length>1&&s.sort(function(d,h){let f=d.x-r.x,p=d.y-r.y,g=Math.sqrt(f*f+p*p),y=h.x-r.x,b=h.y-r.y,x=Math.sqrt(y*y+b*b);return g<x?-1:g===x?0:1}),s[0]):e}C(HO,"intersectPolygon");var Qge=HO,st={node:Zge,circle:Xge,ellipse:RO,polygon:Qge,rect:su};function qO(e,t){const{labelStyles:r}=ht(t);t.labelStyle=r;const n=vt(t);let i=n;n||(i="anchor");const s=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=1,{cssStyles:l}=t,u=lt.svg(s),c=ut(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const d=u.circle(0,0,o*2,c),h=s.insert(()=>d,":first-child");return h.attr("class","anchor").attr("style",Fn(l)),dt(t,h),t.intersect=function(f){return Me.info("Circle intersect",t,o,f),st.circle(t,o,f)},s}C(qO,"anchor");function K4(e,t,r,n,i,s,o){const u=(e+r)/2,c=(t+n)/2,d=Math.atan2(n-t,r-e),h=(r-e)/2,f=(n-t)/2,p=h/i,g=f/s,y=Math.sqrt(p**2+g**2);if(y>1)throw new Error("The given radii are too small to create an arc between the points.");const b=Math.sqrt(1-y**2),x=u+b*s*Math.sin(d)*(o?-1:1),v=c-b*i*Math.cos(d)*(o?-1:1),E=Math.atan2((t-v)/s,(e-x)/i);let j=Math.atan2((n-v)/s,(r-x)/i)-E;o&&j<0&&(j+=2*Math.PI),!o&&j>0&&(j-=2*Math.PI);const F=[];for(let k=0;k<20;k++){const U=k/19,W=E+U*j,K=x+i*Math.cos(W),$=v+s*Math.sin(W);F.push({x:K,y:$})}return F}C(K4,"generateArcPoints");async function WO(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=s.width+t.padding+20,l=s.height+t.padding,u=l/2,c=u/(2.5+l/50),{cssStyles:d}=t,h=[{x:o/2,y:-l/2},{x:-o/2,y:-l/2},...K4(-o/2,-l/2,-o/2,l/2,c,u,!1),{x:o/2,y:l/2},...K4(o/2,l/2,o/2,-l/2,c,u,!0)],f=lt.svg(i),p=ut(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=Nt(h),y=f.path(g,p),b=i.insert(()=>y,":first-child");return b.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(${c/2}, 0)`),dt(t,b),t.intersect=function(x){return st.polygon(t,h,x)},i}C(WO,"bowTieRect");function Ua(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}C(Ua,"insertPolygonShape");async function VO(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=s.height+t.padding,l=12,u=s.width+t.padding+l,c=0,d=u,h=-o,f=0,p=[{x:c+l,y:h},{x:d,y:h},{x:d,y:f},{x:c,y:f},{x:c,y:h+l},{x:c+l,y:h}];let g;const{cssStyles:y}=t;if(t.look==="handDrawn"){const b=lt.svg(i),x=ut(t,{}),v=Nt(p),E=b.path(v,x);g=i.insert(()=>E,":first-child").attr("transform",`translate(${-u/2}, ${o/2})`),y&&g.attr("style",y)}else g=Ua(i,u,o,p);return n&&g.attr("style",n),dt(t,g),t.intersect=function(b){return st.polygon(t,p,b)},i}C(VO,"card");function GO(e,t){const{nodeStyles:r}=ht(t);t.label="";const n=e.insert("g").attr("class",vt(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,s=Math.max(28,t.width??0),o=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=lt.svg(n),u=ut(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const c=Nt(o),d=l.path(c,u),h=n.insert(()=>d,":first-child");return i&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",i),r&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(f){return st.polygon(t,o,f)},n}C(GO,"choice");async function KO(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,halfPadding:o}=await Ct(e,t,vt(t)),l=s.width/2+o;let u;const{cssStyles:c}=t;if(t.look==="handDrawn"){const d=lt.svg(i),h=ut(t,{}),f=d.circle(0,0,l*2,h);u=i.insert(()=>f,":first-child"),u.attr("class","basic label-container").attr("style",Fn(c))}else u=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",l).attr("cx",0).attr("cy",0);return dt(t,u),t.intersect=function(d){return Me.info("Circle intersect",t,l,d),st.circle(t,l,d)},i}C(KO,"circle");function YO(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=e*2,i={x:n/2*t,y:n/2*r},s={x:-(n/2)*t,y:n/2*r},o={x:-(n/2)*t,y:-(n/2)*r},l={x:n/2*t,y:-(n/2)*r};return`M ${s.x},${s.y} L ${l.x},${l.y}
- M ${i.x},${i.y} L ${o.x},${o.y}`}C(YO,"createLine");function ZO(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r,t.label="";const i=e.insert("g").attr("class",vt(t)).attr("id",t.domId??t.id),s=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:o}=t,l=lt.svg(i),u=ut(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const c=l.circle(0,0,s*2,u),d=YO(s),h=l.path(d,u),f=i.insert(()=>c,":first-child");return f.insert(()=>h),o&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",o),n&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",n),dt(t,f),t.intersect=function(p){return Me.info("crossedCircle intersect",t,{radius:s,point:p}),st.circle(t,s,p)},i}C(ZO,"crossedCircle");function ha(e,t,r,n=100,i=0,s=180){const o=[],l=i*Math.PI/180,d=(s*Math.PI/180-l)/(n-1);for(let h=0;h<n;h++){const f=l+h*d,p=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:-p,y:-g})}return o}C(ha,"generateCirclePoints");async function XO(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=s.width+(t.padding??0),u=s.height+(t.padding??0),c=Math.max(5,u*.1),{cssStyles:d}=t,h=[...ha(l/2,-u/2,c,30,-90,0),{x:-l/2-c,y:c},...ha(l/2+c*2,-c,c,20,-180,-270),...ha(l/2+c*2,c,c,20,-90,-180),{x:-l/2-c,y:-u/2},...ha(l/2,u/2,c,20,0,90)],f=[{x:l/2,y:-u/2-c},{x:-l/2,y:-u/2-c},...ha(l/2,-u/2,c,20,-90,0),{x:-l/2-c,y:-c},...ha(l/2+l*.1,-c,c,20,-180,-270),...ha(l/2+l*.1,c,c,20,-90,-180),{x:-l/2-c,y:u/2},...ha(l/2,u/2,c,20,0,90),{x:-l/2,y:u/2+c},{x:l/2,y:u/2+c}],p=lt.svg(i),g=ut(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const b=Nt(h).replace("Z",""),x=p.path(b,g),v=Nt(f),E=p.path(v,{...g}),_=i.insert("g",":first-child");return _.insert(()=>E,":first-child").attr("stroke-opacity",0),_.insert(()=>x,":first-child"),_.attr("class","text"),d&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform",`translate(${c}, 0)`),o.attr("transform",`translate(${-l/2+c-(s.x-(s.left??0))},${-u/2+(t.padding??0)/2-(s.y-(s.top??0))})`),dt(t,_),t.intersect=function(j){return st.polygon(t,f,j)},i}C(XO,"curlyBraceLeft");function fa(e,t,r,n=100,i=0,s=180){const o=[],l=i*Math.PI/180,d=(s*Math.PI/180-l)/(n-1);for(let h=0;h<n;h++){const f=l+h*d,p=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:p,y:g})}return o}C(fa,"generateCirclePoints");async function JO(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=s.width+(t.padding??0),u=s.height+(t.padding??0),c=Math.max(5,u*.1),{cssStyles:d}=t,h=[...fa(l/2,-u/2,c,20,-90,0),{x:l/2+c,y:-c},...fa(l/2+c*2,-c,c,20,-180,-270),...fa(l/2+c*2,c,c,20,-90,-180),{x:l/2+c,y:u/2},...fa(l/2,u/2,c,20,0,90)],f=[{x:-l/2,y:-u/2-c},{x:l/2,y:-u/2-c},...fa(l/2,-u/2,c,20,-90,0),{x:l/2+c,y:-c},...fa(l/2+c*2,-c,c,20,-180,-270),...fa(l/2+c*2,c,c,20,-90,-180),{x:l/2+c,y:u/2},...fa(l/2,u/2,c,20,0,90),{x:l/2,y:u/2+c},{x:-l/2,y:u/2+c}],p=lt.svg(i),g=ut(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const b=Nt(h).replace("Z",""),x=p.path(b,g),v=Nt(f),E=p.path(v,{...g}),_=i.insert("g",":first-child");return _.insert(()=>E,":first-child").attr("stroke-opacity",0),_.insert(()=>x,":first-child"),_.attr("class","text"),d&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform",`translate(${-c}, 0)`),o.attr("transform",`translate(${-l/2+(t.padding??0)/2-(s.x-(s.left??0))},${-u/2+(t.padding??0)/2-(s.y-(s.top??0))})`),dt(t,_),t.intersect=function(j){return st.polygon(t,f,j)},i}C(JO,"curlyBraceRight");function Kr(e,t,r,n=100,i=0,s=180){const o=[],l=i*Math.PI/180,d=(s*Math.PI/180-l)/(n-1);for(let h=0;h<n;h++){const f=l+h*d,p=e+r*Math.cos(f),g=t+r*Math.sin(f);o.push({x:-p,y:-g})}return o}C(Kr,"generateCirclePoints");async function QO(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=s.width+(t.padding??0),u=s.height+(t.padding??0),c=Math.max(5,u*.1),{cssStyles:d}=t,h=[...Kr(l/2,-u/2,c,30,-90,0),{x:-l/2-c,y:c},...Kr(l/2+c*2,-c,c,20,-180,-270),...Kr(l/2+c*2,c,c,20,-90,-180),{x:-l/2-c,y:-u/2},...Kr(l/2,u/2,c,20,0,90)],f=[...Kr(-l/2+c+c/2,-u/2,c,20,-90,-180),{x:l/2-c/2,y:c},...Kr(-l/2-c/2,-c,c,20,0,90),...Kr(-l/2-c/2,c,c,20,-90,0),{x:l/2-c/2,y:-c},...Kr(-l/2+c+c/2,u/2,c,30,-180,-270)],p=[{x:l/2,y:-u/2-c},{x:-l/2,y:-u/2-c},...Kr(l/2,-u/2,c,20,-90,0),{x:-l/2-c,y:-c},...Kr(l/2+c*2,-c,c,20,-180,-270),...Kr(l/2+c*2,c,c,20,-90,-180),{x:-l/2-c,y:u/2},...Kr(l/2,u/2,c,20,0,90),{x:-l/2,y:u/2+c},{x:l/2-c-c/2,y:u/2+c},...Kr(-l/2+c+c/2,-u/2,c,20,-90,-180),{x:l/2-c/2,y:c},...Kr(-l/2-c/2,-c,c,20,0,90),...Kr(-l/2-c/2,c,c,20,-90,0),{x:l/2-c/2,y:-c},...Kr(-l/2+c+c/2,u/2,c,30,-180,-270)],g=lt.svg(i),y=ut(t,{fill:"none"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const x=Nt(h).replace("Z",""),v=g.path(x,y),_=Nt(f).replace("Z",""),j=g.path(_,y),F=Nt(p),k=g.path(F,{...y}),U=i.insert("g",":first-child");return U.insert(()=>k,":first-child").attr("stroke-opacity",0),U.insert(()=>v,":first-child"),U.insert(()=>j,":first-child"),U.attr("class","text"),d&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",n),U.attr("transform",`translate(${c-c/4}, 0)`),o.attr("transform",`translate(${-l/2+(t.padding??0)/2-(s.x-(s.left??0))},${-u/2+(t.padding??0)/2-(s.y-(s.top??0))})`),dt(t,U),t.intersect=function(W){return st.polygon(t,p,W)},i}C(QO,"curlyBraces");async function eA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=80,l=20,u=Math.max(o,(s.width+(t.padding??0)*2)*1.25,(t==null?void 0:t.width)??0),c=Math.max(l,s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=c/2,{cssStyles:h}=t,f=lt.svg(i),p=ut(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=u,y=c,b=g-d,x=y/4,v=[{x:b,y:0},{x,y:0},{x:0,y:y/2},{x,y},{x:b,y},...I3(-b,-y/2,d,50,270,90)],E=Nt(v),_=f.path(E,p),j=i.insert(()=>_,":first-child");return j.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&j.selectChildren("path").attr("style",h),n&&t.look!=="handDrawn"&&j.selectChildren("path").attr("style",n),j.attr("transform",`translate(${-u/2}, ${-c/2})`),dt(t,j),t.intersect=function(F){return st.polygon(t,v,F)},i}C(eA,"curvedTrapezoid");var e3e=C((e,t,r,n,i,s)=>[`M${e},${t+s}`,`a${i},${s} 0,0,0 ${r},0`,`a${i},${s} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${s} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),t3e=C((e,t,r,n,i,s)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${i},${s} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${s} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),r3e=C((e,t,r,n,i,s)=>[`M${e-r/2},${-n/2}`,`a${i},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function tA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=Math.max(s.width+t.padding,t.width??0),u=l/2,c=u/(2.5+l/50),d=Math.max(s.height+c+t.padding,t.height??0);let h;const{cssStyles:f}=t;if(t.look==="handDrawn"){const p=lt.svg(i),g=t3e(0,0,l,d,u,c),y=r3e(0,c,l,d,u,c),b=p.path(g,ut(t,{})),x=p.path(y,ut(t,{fill:"none"}));h=i.insert(()=>x,":first-child"),h=i.insert(()=>b,":first-child"),h.attr("class","basic label-container"),f&&h.attr("style",f)}else{const p=e3e(0,0,l,d,u,c);h=i.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",Fn(f)).attr("style",n)}return h.attr("label-offset-y",c),h.attr("transform",`translate(${-l/2}, ${-(d/2+c)})`),dt(t,h),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+(t.padding??0)/1.5-(s.y-(s.top??0))})`),t.intersect=function(p){const g=st.rect(t,p),y=g.x-(t.x??0);if(u!=0&&(Math.abs(y)<(t.width??0)/2||Math.abs(y)==(t.width??0)/2&&Math.abs(g.y-(t.y??0))>(t.height??0)/2-c)){let b=c*c*(1-y*y/(u*u));b>0&&(b=Math.sqrt(b)),b=c-b,p.y-(t.y??0)>0&&(b=-b),g.y+=b}return g},i}C(tA,"cylinder");async function rA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=s.width+t.padding,u=s.height+t.padding,c=u*.2,d=-l/2,h=-u/2-c/2,{cssStyles:f}=t,p=lt.svg(i),g=ut(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=[{x:d,y:h+c},{x:-d,y:h+c},{x:-d,y:-h},{x:d,y:-h},{x:d,y:h},{x:-d,y:h},{x:-d,y:h+c}],b=p.polygon(y.map(v=>[v.x,v.y]),g),x=i.insert(()=>b,":first-child");return x.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),o.attr("transform",`translate(${d+(t.padding??0)/2-(s.x-(s.left??0))}, ${h+c+(t.padding??0)/2-(s.y-(s.top??0))})`),dt(t,x),t.intersect=function(v){return st.rect(t,v)},i}C(rA,"dividedRectangle");async function nA(e,t){var f,p;const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,halfPadding:o}=await Ct(e,t,vt(t)),u=s.width/2+o+5,c=s.width/2+o;let d;const{cssStyles:h}=t;if(t.look==="handDrawn"){const g=lt.svg(i),y=ut(t,{roughness:.2,strokeWidth:2.5}),b=ut(t,{roughness:.2,strokeWidth:1.5}),x=g.circle(0,0,u*2,y),v=g.circle(0,0,c*2,b);d=i.insert("g",":first-child"),d.attr("class",Fn(t.cssClasses)).attr("style",Fn(h)),(f=d.node())==null||f.appendChild(x),(p=d.node())==null||p.appendChild(v)}else{d=i.insert("g",":first-child");const g=d.insert("circle",":first-child"),y=d.insert("circle");d.attr("class","basic label-container").attr("style",n),g.attr("class","outer-circle").attr("style",n).attr("r",u).attr("cx",0).attr("cy",0),y.attr("class","inner-circle").attr("style",n).attr("r",c).attr("cx",0).attr("cy",0)}return dt(t,d),t.intersect=function(g){return Me.info("DoubleCircle intersect",t,u,g),st.circle(t,u,g)},i}C(nA,"doublecircle");function iA(e,t,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=ht(t);t.label="",t.labelStyle=n;const s=e.insert("g").attr("class",vt(t)).attr("id",t.domId??t.id),o=7,{cssStyles:l}=t,u=lt.svg(s),{nodeBorder:c}=r,d=ut(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(d.roughness=0);const h=u.circle(0,0,o*2,d),f=s.insert(()=>h,":first-child");return f.selectAll("path").attr("style",`fill: ${c} !important;`),l&&l.length>0&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",l),i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),dt(t,f),t.intersect=function(p){return Me.info("filledCircle intersect",t,{radius:o,point:p}),st.circle(t,o,p)},s}C(iA,"filledCircle");async function aA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=s.width+(t.padding??0),u=l+s.height,c=l+s.height,d=[{x:0,y:-u},{x:c,y:-u},{x:c/2,y:0}],{cssStyles:h}=t,f=lt.svg(i),p=ut(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=Nt(d),y=f.path(g,p),b=i.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`);return h&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",h),n&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),t.width=l,t.height=u,dt(t,b),o.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-u/2+(t.padding??0)/2+(s.y-(s.top??0))})`),t.intersect=function(x){return Me.info("Triangle intersect",t,d,x),st.polygon(t,d,x)},i}C(aA,"flippedTriangle");function sA(e,t,{dir:r,config:{state:n,themeVariables:i}}){const{nodeStyles:s}=ht(t);t.label="";const o=e.insert("g").attr("class",vt(t)).attr("id",t.domId??t.id),{cssStyles:l}=t;let u=Math.max(70,(t==null?void 0:t.width)??0),c=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(u=Math.max(10,(t==null?void 0:t.width)??0),c=Math.max(70,(t==null?void 0:t.height)??0));const d=-1*u/2,h=-1*c/2,f=lt.svg(o),p=ut(t,{stroke:i.lineColor,fill:i.lineColor});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=f.rectangle(d,h,u,c,p),y=o.insert(()=>g,":first-child");l&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",l),s&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",s),dt(t,y);const b=(n==null?void 0:n.padding)??0;return t.width&&t.height&&(t.width+=b/2||0,t.height+=b/2||0),t.intersect=function(x){return st.rect(t,x)},o}C(sA,"forkJoin");async function oA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const i=80,s=50,{shapeSvg:o,bbox:l}=await Ct(e,t,vt(t)),u=Math.max(i,l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(s,l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=c/2,{cssStyles:h}=t,f=lt.svg(o),p=ut(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-u/2,y:-c/2},{x:u/2-d,y:-c/2},...I3(-u/2+d,0,d,50,90,270),{x:u/2-d,y:c/2},{x:-u/2,y:c/2}],y=Nt(g),b=f.path(y,p),x=o.insert(()=>b,":first-child");return x.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",h),n&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),dt(t,x),t.intersect=function(v){return Me.info("Pill intersect",t,{radius:d,point:v}),st.polygon(t,g,v)},o}C(oA,"halfRoundedRectangle");var n3e=C((e,t,r,n,i)=>[`M${e+i},${t}`,`L${e+r-i},${t}`,`L${e+r},${t-n/2}`,`L${e+r-i},${t-n}`,`L${e+i},${t-n}`,`L${e},${t-n/2}`,"Z"].join(" "),"createHexagonPathD");async function lA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=4,l=s.height+t.padding,u=l/o,c=s.width+2*u+t.padding,d=[{x:u,y:0},{x:c-u,y:0},{x:c,y:-l/2},{x:c-u,y:-l},{x:u,y:-l},{x:0,y:-l/2}];let h;const{cssStyles:f}=t;if(t.look==="handDrawn"){const p=lt.svg(i),g=ut(t,{}),y=n3e(0,0,c,l,u),b=p.path(y,g);h=i.insert(()=>b,":first-child").attr("transform",`translate(${-c/2}, ${l/2})`),f&&h.attr("style",f)}else h=Ua(i,c,l,d);return n&&h.attr("style",n),t.width=c,t.height=l,dt(t,h),t.intersect=function(p){return st.polygon(t,d,p)},i}C(lA,"hexagon");async function uA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.label="",t.labelStyle=r;const{shapeSvg:i}=await Ct(e,t,vt(t)),s=Math.max(30,(t==null?void 0:t.width)??0),o=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:l}=t,u=lt.svg(i),c=ut(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const d=[{x:0,y:0},{x:s,y:0},{x:0,y:o},{x:s,y:o}],h=Nt(d),f=u.path(h,c),p=i.insert(()=>f,":first-child");return p.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&p.selectChildren("path").attr("style",l),n&&t.look!=="handDrawn"&&p.selectChildren("path").attr("style",n),p.attr("transform",`translate(${-s/2}, ${-o/2})`),dt(t,p),t.intersect=function(g){return Me.info("Pill intersect",t,{points:d}),st.polygon(t,d,g)},i}C(uA,"hourglass");async function cA(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=ht(t);t.labelStyle=i;const s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,u??0);const{shapeSvg:c,bbox:d,label:h}=await Ct(e,t,"icon-shape default"),f=t.pos==="t",p=l,g=l,{nodeBorder:y}=r,{stylesMap:b}=ou(t),x=-g/2,v=-p/2,E=t.label?8:0,_=lt.svg(c),j=ut(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(j.roughness=0,j.fillStyle="solid");const F=_.rectangle(x,v,g,p,j),k=Math.max(g,d.width),U=p+d.height+E,W=_.rectangle(-k/2,-U/2,k,U,{...j,fill:"transparent",stroke:"none"}),K=c.insert(()=>F,":first-child"),$=c.insert(()=>W);if(t.icon){const O=c.append("g");O.html(`<g>${await yf(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const R=O.node().getBBox(),z=R.width,H=R.height,B=R.x,Y=R.y;O.attr("transform",`translate(${-z/2-B},${f?d.height/2+E/2-H/2-Y:-d.height/2-E/2-H/2-Y})`),O.attr("style",`color: ${b.get("stroke")??y};`)}return h.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${f?-U/2:U/2-d.height})`),K.attr("transform",`translate(0,${f?d.height/2+E/2:-d.height/2-E/2})`),dt(t,$),t.intersect=function(O){if(Me.info("iconSquare intersect",t,O),!t.label)return st.rect(t,O);const R=t.x??0,z=t.y??0,H=t.height??0;let B=[];return f?B=[{x:R-d.width/2,y:z-H/2},{x:R+d.width/2,y:z-H/2},{x:R+d.width/2,y:z-H/2+d.height+E},{x:R+g/2,y:z-H/2+d.height+E},{x:R+g/2,y:z+H/2},{x:R-g/2,y:z+H/2},{x:R-g/2,y:z-H/2+d.height+E},{x:R-d.width/2,y:z-H/2+d.height+E}]:B=[{x:R-g/2,y:z-H/2},{x:R+g/2,y:z-H/2},{x:R+g/2,y:z-H/2+p},{x:R+d.width/2,y:z-H/2+p},{x:R+d.width/2/2,y:z+H/2},{x:R-d.width/2,y:z+H/2},{x:R-d.width/2,y:z-H/2+p},{x:R-g/2,y:z-H/2+p}],st.polygon(t,B,O)},c}C(cA,"icon");async function dA(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=ht(t);t.labelStyle=i;const s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,u??0);const{shapeSvg:c,bbox:d,label:h}=await Ct(e,t,"icon-shape default"),f=20,p=t.label?8:0,g=t.pos==="t",{nodeBorder:y,mainBkg:b}=r,{stylesMap:x}=ou(t),v=lt.svg(c),E=ut(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const _=x.get("fill");E.stroke=_??b;const j=c.append("g");t.icon&&j.html(`<g>${await yf(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const F=j.node().getBBox(),k=F.width,U=F.height,W=F.x,K=F.y,$=Math.max(k,U)*Math.SQRT2+f*2,O=v.circle(0,0,$,E),R=Math.max($,d.width),z=$+d.height+p,H=v.rectangle(-R/2,-z/2,R,z,{...E,fill:"transparent",stroke:"none"}),B=c.insert(()=>O,":first-child"),Y=c.insert(()=>H);return j.attr("transform",`translate(${-k/2-W},${g?d.height/2+p/2-U/2-K:-d.height/2-p/2-U/2-K})`),j.attr("style",`color: ${x.get("stroke")??y};`),h.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-z/2:z/2-d.height})`),B.attr("transform",`translate(0,${g?d.height/2+p/2:-d.height/2-p/2})`),dt(t,Y),t.intersect=function(P){return Me.info("iconSquare intersect",t,P),st.rect(t,P)},c}C(dA,"iconCircle");async function hA(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=ht(t);t.labelStyle=i;const s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,u??0);const{shapeSvg:c,bbox:d,halfPadding:h,label:f}=await Ct(e,t,"icon-shape default"),p=t.pos==="t",g=l+h*2,y=l+h*2,{nodeBorder:b,mainBkg:x}=r,{stylesMap:v}=ou(t),E=-y/2,_=-g/2,j=t.label?8:0,F=lt.svg(c),k=ut(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const U=v.get("fill");k.stroke=U??x;const W=F.path(za(E,_,y,g,5),k),K=Math.max(y,d.width),$=g+d.height+j,O=F.rectangle(-K/2,-$/2,K,$,{...k,fill:"transparent",stroke:"none"}),R=c.insert(()=>W,":first-child").attr("class","icon-shape2"),z=c.insert(()=>O);if(t.icon){const H=c.append("g");H.html(`<g>${await yf(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const B=H.node().getBBox(),Y=B.width,P=B.height,le=B.x,be=B.y;H.attr("transform",`translate(${-Y/2-le},${p?d.height/2+j/2-P/2-be:-d.height/2-j/2-P/2-be})`),H.attr("style",`color: ${v.get("stroke")??b};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-$/2:$/2-d.height})`),R.attr("transform",`translate(0,${p?d.height/2+j/2:-d.height/2-j/2})`),dt(t,z),t.intersect=function(H){if(Me.info("iconSquare intersect",t,H),!t.label)return st.rect(t,H);const B=t.x??0,Y=t.y??0,P=t.height??0;let le=[];return p?le=[{x:B-d.width/2,y:Y-P/2},{x:B+d.width/2,y:Y-P/2},{x:B+d.width/2,y:Y-P/2+d.height+j},{x:B+y/2,y:Y-P/2+d.height+j},{x:B+y/2,y:Y+P/2},{x:B-y/2,y:Y+P/2},{x:B-y/2,y:Y-P/2+d.height+j},{x:B-d.width/2,y:Y-P/2+d.height+j}]:le=[{x:B-y/2,y:Y-P/2},{x:B+y/2,y:Y-P/2},{x:B+y/2,y:Y-P/2+g},{x:B+d.width/2,y:Y-P/2+g},{x:B+d.width/2/2,y:Y+P/2},{x:B-d.width/2,y:Y+P/2},{x:B-d.width/2,y:Y-P/2+g},{x:B-y/2,y:Y-P/2+g}],st.polygon(t,le,H)},c}C(hA,"iconRounded");async function fA(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=ht(t);t.labelStyle=i;const s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,u??0);const{shapeSvg:c,bbox:d,halfPadding:h,label:f}=await Ct(e,t,"icon-shape default"),p=t.pos==="t",g=l+h*2,y=l+h*2,{nodeBorder:b,mainBkg:x}=r,{stylesMap:v}=ou(t),E=-y/2,_=-g/2,j=t.label?8:0,F=lt.svg(c),k=ut(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const U=v.get("fill");k.stroke=U??x;const W=F.path(za(E,_,y,g,.1),k),K=Math.max(y,d.width),$=g+d.height+j,O=F.rectangle(-K/2,-$/2,K,$,{...k,fill:"transparent",stroke:"none"}),R=c.insert(()=>W,":first-child"),z=c.insert(()=>O);if(t.icon){const H=c.append("g");H.html(`<g>${await yf(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const B=H.node().getBBox(),Y=B.width,P=B.height,le=B.x,be=B.y;H.attr("transform",`translate(${-Y/2-le},${p?d.height/2+j/2-P/2-be:-d.height/2-j/2-P/2-be})`),H.attr("style",`color: ${v.get("stroke")??b};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-$/2:$/2-d.height})`),R.attr("transform",`translate(0,${p?d.height/2+j/2:-d.height/2-j/2})`),dt(t,z),t.intersect=function(H){if(Me.info("iconSquare intersect",t,H),!t.label)return st.rect(t,H);const B=t.x??0,Y=t.y??0,P=t.height??0;let le=[];return p?le=[{x:B-d.width/2,y:Y-P/2},{x:B+d.width/2,y:Y-P/2},{x:B+d.width/2,y:Y-P/2+d.height+j},{x:B+y/2,y:Y-P/2+d.height+j},{x:B+y/2,y:Y+P/2},{x:B-y/2,y:Y+P/2},{x:B-y/2,y:Y-P/2+d.height+j},{x:B-d.width/2,y:Y-P/2+d.height+j}]:le=[{x:B-y/2,y:Y-P/2},{x:B+y/2,y:Y-P/2},{x:B+y/2,y:Y-P/2+g},{x:B+d.width/2,y:Y-P/2+g},{x:B+d.width/2/2,y:Y+P/2},{x:B-d.width/2,y:Y+P/2},{x:B-d.width/2,y:Y-P/2+g},{x:B-y/2,y:Y-P/2+g}],st.polygon(t,le,H)},c}C(fA,"iconSquare");async function pA(e,t,{config:{flowchart:r}}){const n=new Image;n.src=(t==null?void 0:t.img)??"",await n.decode();const i=Number(n.naturalWidth.toString().replace("px","")),s=Number(n.naturalHeight.toString().replace("px",""));t.imageAspectRatio=i/s;const{labelStyles:o}=ht(t);t.labelStyle=o;const l=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const u=Math.max(t.label?l??0:0,(t==null?void 0:t.assetWidth)??i),c=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:u,d=t.constraint==="on"?c/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??s;t.width=Math.max(c,l??0);const{shapeSvg:h,bbox:f,label:p}=await Ct(e,t,"image-shape default"),g=t.pos==="t",y=-c/2,b=-d/2,x=t.label?8:0,v=lt.svg(h),E=ut(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const _=v.rectangle(y,b,c,d,E),j=Math.max(c,f.width),F=d+f.height+x,k=v.rectangle(-j/2,-F/2,j,F,{...E,fill:"none",stroke:"none"}),U=h.insert(()=>_,":first-child"),W=h.insert(()=>k);if(t.img){const K=h.append("image");K.attr("href",t.img),K.attr("width",c),K.attr("height",d),K.attr("preserveAspectRatio","none"),K.attr("transform",`translate(${-c/2},${g?F/2-d:-F/2})`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-d/2-f.height/2-x/2:d/2-f.height/2+x/2})`),U.attr("transform",`translate(0,${g?f.height/2+x/2:-f.height/2-x/2})`),dt(t,W),t.intersect=function(K){if(Me.info("iconSquare intersect",t,K),!t.label)return st.rect(t,K);const $=t.x??0,O=t.y??0,R=t.height??0;let z=[];return g?z=[{x:$-f.width/2,y:O-R/2},{x:$+f.width/2,y:O-R/2},{x:$+f.width/2,y:O-R/2+f.height+x},{x:$+c/2,y:O-R/2+f.height+x},{x:$+c/2,y:O+R/2},{x:$-c/2,y:O+R/2},{x:$-c/2,y:O-R/2+f.height+x},{x:$-f.width/2,y:O-R/2+f.height+x}]:z=[{x:$-c/2,y:O-R/2},{x:$+c/2,y:O-R/2},{x:$+c/2,y:O-R/2+d},{x:$+f.width/2,y:O-R/2+d},{x:$+f.width/2/2,y:O+R/2},{x:$-f.width/2,y:O+R/2},{x:$-f.width/2,y:O-R/2+d},{x:$-c/2,y:O-R/2+d}],st.polygon(t,z,K)},h}C(pA,"imageSquare");async function mA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=[{x:0,y:0},{x:o,y:0},{x:o+3*l/6,y:-l},{x:-3*l/6,y:-l}];let c;const{cssStyles:d}=t;if(t.look==="handDrawn"){const h=lt.svg(i),f=ut(t,{}),p=Nt(u),g=h.path(p,f);c=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),d&&c.attr("style",d)}else c=Ua(i,o,l,u);return n&&c.attr("style",n),t.width=o,t.height=l,dt(t,c),t.intersect=function(h){return st.polygon(t,u,h)},i}C(mA,"inv_trapezoid");async function jd(e,t,r){const{labelStyles:n,nodeStyles:i}=ht(t);t.labelStyle=n;const{shapeSvg:s,bbox:o}=await Ct(e,t,vt(t)),l=Math.max(o.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),u=Math.max(o.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),c=-l/2,d=-u/2;let h,{rx:f,ry:p}=t;const{cssStyles:g}=t;if(r!=null&&r.rx&&r.ry&&(f=r.rx,p=r.ry),t.look==="handDrawn"){const y=lt.svg(s),b=ut(t,{}),x=f||p?y.path(za(c,d,l,u,f||0),b):y.rectangle(c,d,l,u,b);h=s.insert(()=>x,":first-child"),h.attr("class","basic label-container").attr("style",Fn(g))}else h=s.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",i).attr("rx",Fn(f)).attr("ry",Fn(p)).attr("x",c).attr("y",d).attr("width",l).attr("height",u);return dt(t,h),t.intersect=function(y){return st.rect(t,y)},s}C(jd,"drawRect");async function gA(e,t){const{shapeSvg:r,bbox:n,label:i}=await Ct(e,t,"label"),s=r.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),dt(t,s),t.intersect=function(u){return st.rect(t,u)},r}C(gA,"labelRect");async function yA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=Math.max(s.width+(t.padding??0),(t==null?void 0:t.width)??0),l=Math.max(s.height+(t.padding??0),(t==null?void 0:t.height)??0),u=[{x:0,y:0},{x:o+3*l/6,y:0},{x:o,y:-l},{x:-(3*l)/6,y:-l}];let c;const{cssStyles:d}=t;if(t.look==="handDrawn"){const h=lt.svg(i),f=ut(t,{}),p=Nt(u),g=h.path(p,f);c=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),d&&c.attr("style",d)}else c=Ua(i,o,l,u);return n&&c.attr("style",n),t.width=o,t.height=l,dt(t,c),t.intersect=function(h){return st.polygon(t,u,h)},i}C(yA,"lean_left");async function bA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=Math.max(s.width+(t.padding??0),(t==null?void 0:t.width)??0),l=Math.max(s.height+(t.padding??0),(t==null?void 0:t.height)??0),u=[{x:-3*l/6,y:0},{x:o,y:0},{x:o+3*l/6,y:-l},{x:0,y:-l}];let c;const{cssStyles:d}=t;if(t.look==="handDrawn"){const h=lt.svg(i),f=ut(t,{}),p=Nt(u),g=h.path(p,f);c=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),d&&c.attr("style",d)}else c=Ua(i,o,l,u);return n&&c.attr("style",n),t.width=o,t.height=l,dt(t,c),t.intersect=function(h){return st.polygon(t,u,h)},i}C(bA,"lean_right");function xA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.label="",t.labelStyle=r;const i=e.insert("g").attr("class",vt(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,o=Math.max(35,(t==null?void 0:t.width)??0),l=Math.max(35,(t==null?void 0:t.height)??0),u=7,c=[{x:o,y:0},{x:0,y:l+u/2},{x:o-2*u,y:l+u/2},{x:0,y:2*l},{x:o,y:l-u/2},{x:2*u,y:l-u/2}],d=lt.svg(i),h=ut(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=Nt(c),p=d.path(f,h),g=i.insert(()=>p,":first-child");return s&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",s),n&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",n),g.attr("transform",`translate(-${o/2},${-l})`),dt(t,g),t.intersect=function(y){return Me.info("lightningBolt intersect",t,y),st.polygon(t,c,y)},i}C(xA,"lightningBolt");var i3e=C((e,t,r,n,i,s,o)=>[`M${e},${t+s}`,`a${i},${s} 0,0,0 ${r},0`,`a${i},${s} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${s} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+s+o}`,`a${i},${s} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),a3e=C((e,t,r,n,i,s,o)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${i},${s} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${s} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+s+o}`,`a${i},${s} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),s3e=C((e,t,r,n,i,s)=>[`M${e-r/2},${-n/2}`,`a${i},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function vA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=Math.max(s.width+(t.padding??0),t.width??0),u=l/2,c=u/(2.5+l/50),d=Math.max(s.height+c+(t.padding??0),t.height??0),h=d*.1;let f;const{cssStyles:p}=t;if(t.look==="handDrawn"){const g=lt.svg(i),y=a3e(0,0,l,d,u,c,h),b=s3e(0,c,l,d,u,c),x=ut(t,{}),v=g.path(y,x),E=g.path(b,x);i.insert(()=>E,":first-child").attr("class","line"),f=i.insert(()=>v,":first-child"),f.attr("class","basic label-container"),p&&f.attr("style",p)}else{const g=i3e(0,0,l,d,u,c,h);f=i.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Fn(p)).attr("style",n)}return f.attr("label-offset-y",c),f.attr("transform",`translate(${-l/2}, ${-(d/2+c)})`),dt(t,f),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+c-(s.y-(s.top??0))})`),t.intersect=function(g){const y=st.rect(t,g),b=y.x-(t.x??0);if(u!=0&&(Math.abs(b)<(t.width??0)/2||Math.abs(b)==(t.width??0)/2&&Math.abs(y.y-(t.y??0))>(t.height??0)/2-c)){let x=c*c*(1-b*b/(u*u));x>0&&(x=Math.sqrt(x)),x=c-x,g.y-(t.y??0)>0&&(x=-x),y.y+=x}return y},i}C(vA,"linedCylinder");async function wA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=u/4,d=u+c,{cssStyles:h}=t,f=lt.svg(i),p=ut(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-l/2-l/2*.1,y:-d/2},{x:-l/2-l/2*.1,y:d/2},...gs(-l/2-l/2*.1,d/2,l/2+l/2*.1,d/2,c,.8),{x:l/2+l/2*.1,y:-d/2},{x:-l/2-l/2*.1,y:-d/2},{x:-l/2,y:-d/2},{x:-l/2,y:d/2*1.1},{x:-l/2,y:-d/2}],y=f.polygon(g.map(x=>[x.x,x.y]),p),b=i.insert(()=>y,":first-child");return b.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",h),n&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-l/2+(t.padding??0)+l/2*.1/2-(s.x-(s.left??0))},${-u/2+(t.padding??0)-c/2-(s.y-(s.top??0))})`),dt(t,b),t.intersect=function(x){return st.polygon(t,g,x)},i}C(wA,"linedWaveEdgedRect");async function EA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=5,d=-l/2,h=-u/2,{cssStyles:f}=t,p=lt.svg(i),g=ut(t,{}),y=[{x:d-c,y:h+c},{x:d-c,y:h+u+c},{x:d+l-c,y:h+u+c},{x:d+l-c,y:h+u},{x:d+l,y:h+u},{x:d+l,y:h+u-c},{x:d+l+c,y:h+u-c},{x:d+l+c,y:h-c},{x:d+c,y:h-c},{x:d+c,y:h},{x:d,y:h},{x:d,y:h+c}],b=[{x:d,y:h+c},{x:d+l-c,y:h+c},{x:d+l-c,y:h+u},{x:d+l,y:h+u},{x:d+l,y:h},{x:d,y:h}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=Nt(y),v=p.path(x,g),E=Nt(b),_=p.path(E,{...g,fill:"none"}),j=i.insert(()=>_,":first-child");return j.insert(()=>v,":first-child"),j.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",n),o.attr("transform",`translate(${-(s.width/2)-c-(s.x-(s.left??0))}, ${-(s.height/2)+c-(s.y-(s.top??0))})`),dt(t,j),t.intersect=function(F){return st.polygon(t,y,F)},i}C(EA,"multiRect");async function CA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=u/4,d=u+c,h=-l/2,f=-d/2,p=5,{cssStyles:g}=t,y=gs(h-p,f+d+p,h+l-p,f+d+p,c,.8),b=y==null?void 0:y[y.length-1],x=[{x:h-p,y:f+p},{x:h-p,y:f+d+p},...y,{x:h+l-p,y:b.y-p},{x:h+l,y:b.y-p},{x:h+l,y:b.y-2*p},{x:h+l+p,y:b.y-2*p},{x:h+l+p,y:f-p},{x:h+p,y:f-p},{x:h+p,y:f},{x:h,y:f},{x:h,y:f+p}],v=[{x:h,y:f+p},{x:h+l-p,y:f+p},{x:h+l-p,y:b.y-p},{x:h+l,y:b.y-p},{x:h+l,y:f},{x:h,y:f}],E=lt.svg(i),_=ut(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const j=Nt(x),F=E.path(j,_),k=Nt(v),U=E.path(k,_),W=i.insert(()=>F,":first-child");return W.insert(()=>U),W.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&W.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&W.selectAll("path").attr("style",n),W.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-(s.width/2)-p-(s.x-(s.left??0))}, ${-(s.height/2)+p-c/2-(s.y-(s.top??0))})`),dt(t,W),t.intersect=function(K){return st.polygon(t,x,K)},i}C(CA,"multiWaveEdgedRectangle");async function SA(e,t,{config:{themeVariables:r}}){var x;const{labelStyles:n,nodeStyles:i}=ht(t);t.labelStyle=n,t.useHtmlLabels||((x=$n().flowchart)==null?void 0:x.htmlLabels)!==!1||(t.centerLabel=!0);const{shapeSvg:o,bbox:l}=await Ct(e,t,vt(t)),u=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=-u/2,h=-c/2,{cssStyles:f}=t,p=lt.svg(o),g=ut(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=p.rectangle(d,h,u,c,g),b=o.insert(()=>y,":first-child");return b.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),dt(t,b),t.intersect=function(v){return st.rect(t,v)},o}C(SA,"note");var o3e=C((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function FA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=s.width+t.padding,l=s.height+t.padding,u=o+l,c=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];let d;const{cssStyles:h}=t;if(t.look==="handDrawn"){const f=lt.svg(i),p=ut(t,{}),g=o3e(0,0,u),y=f.path(g,p);d=i.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`),h&&d.attr("style",h)}else d=Ua(i,u,u,c);return n&&d.attr("style",n),dt(t,d),t.intersect=function(f){return Me.debug(`APA12 Intersect called SPLIT
- point:`,f,`
- node:
- `,t,`
- res:`,st.polygon(t,c,f)),st.polygon(t,c,f)},i}C(FA,"question");async function jA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=Math.max(s.width+(t.padding??0),(t==null?void 0:t.width)??0),u=Math.max(s.height+(t.padding??0),(t==null?void 0:t.height)??0),c=-l/2,d=-u/2,h=d/2,f=[{x:c+h,y:d},{x:c,y:0},{x:c+h,y:-d},{x:-c,y:-d},{x:-c,y:d}],{cssStyles:p}=t,g=lt.svg(i),y=ut(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=Nt(f),x=g.path(b,y),v=i.insert(()=>x,":first-child");return v.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(${-h/2},0)`),o.attr("transform",`translate(${-h/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),dt(t,v),t.intersect=function(E){return st.polygon(t,f,E)},i}C(jA,"rect_left_inv_arrow");async function _A(e,t){var U,W;const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;let i;t.cssClasses?i="node "+t.cssClasses:i="node default";const s=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=s.insert("g"),l=s.insert("g").attr("class","label").attr("style",n),u=t.description,c=t.label,d=l.node().appendChild(await Ks(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(Ur((W=(U=Ht())==null?void 0:U.flowchart)==null?void 0:W.htmlLabels)){const K=d.children[0],$=Pt(d);h=K.getBoundingClientRect(),$.attr("width",h.width),$.attr("height",h.height)}Me.info("Text 2",u);const f=u||[],p=d.getBBox(),g=l.node().appendChild(await Ks(f.join?f.join("<br/>"):f,t.labelStyle,!0,!0)),y=g.children[0],b=Pt(g);h=y.getBoundingClientRect(),b.attr("width",h.width),b.attr("height",h.height);const x=(t.padding||0)/2;Pt(g).attr("transform","translate( "+(h.width>p.width?0:(p.width-h.width)/2)+", "+(p.height+x+5)+")"),Pt(d).attr("transform","translate( "+(h.width<p.width?0:-(p.width-h.width)/2)+", 0)"),h=l.node().getBBox(),l.attr("transform","translate("+-h.width/2+", "+(-h.height/2-x+3)+")");const v=h.width+(t.padding||0),E=h.height+(t.padding||0),_=-h.width/2-x,j=-h.height/2-x;let F,k;if(t.look==="handDrawn"){const K=lt.svg(s),$=ut(t,{}),O=K.path(za(_,j,v,E,t.rx||0),$),R=K.line(-h.width/2-x,-h.height/2-x+p.height+x,h.width/2+x,-h.height/2-x+p.height+x,$);k=s.insert(()=>(Me.debug("Rough node insert CXC",O),R),":first-child"),F=s.insert(()=>(Me.debug("Rough node insert CXC",O),O),":first-child")}else F=o.insert("rect",":first-child"),k=o.insert("line"),F.attr("class","outer title-state").attr("style",n).attr("x",-h.width/2-x).attr("y",-h.height/2-x).attr("width",h.width+(t.padding||0)).attr("height",h.height+(t.padding||0)),k.attr("class","divider").attr("x1",-h.width/2-x).attr("x2",h.width/2+x).attr("y1",-h.height/2-x+p.height+x).attr("y2",-h.height/2-x+p.height+x);return dt(t,F),t.intersect=function(K){return st.rect(t,K)},s}C(_A,"rectWithTitle");async function kA(e,t){const r={rx:5,ry:5,classes:"",labelPaddingX:((t==null?void 0:t.padding)||0)*1,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return jd(e,t,r)}C(kA,"roundedRect");async function OA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=(t==null?void 0:t.padding)??0,u=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=-s.width/2-l,h=-s.height/2-l,{cssStyles:f}=t,p=lt.svg(i),g=ut(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=[{x:d,y:h},{x:d+u+8,y:h},{x:d+u+8,y:h+c},{x:d-8,y:h+c},{x:d-8,y:h},{x:d,y:h},{x:d,y:h+c}],b=p.polygon(y.map(v=>[v.x,v.y]),g),x=i.insert(()=>b,":first-child");return x.attr("class","basic label-container").attr("style",Fn(f)),n&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),o.attr("transform",`translate(${-u/2+4+(t.padding??0)-(s.x-(s.left??0))},${-c/2+(t.padding??0)-(s.y-(s.top??0))})`),dt(t,x),t.intersect=function(v){return st.rect(t,v)},i}C(OA,"shadedProcess");async function AA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=-l/2,d=-u/2,{cssStyles:h}=t,f=lt.svg(i),p=ut(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:c,y:d},{x:c,y:d+u},{x:c+l,y:d+u},{x:c+l,y:d-u/2}],y=Nt(g),b=f.path(y,p),x=i.insert(()=>b,":first-child");return x.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",h),n&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),x.attr("transform",`translate(0, ${u/4})`),o.attr("transform",`translate(${-l/2+(t.padding??0)-(s.x-(s.left??0))}, ${-u/4+(t.padding??0)-(s.y-(s.top??0))})`),dt(t,x),t.intersect=function(v){return st.polygon(t,g,v)},i}C(AA,"slopedRect");async function DA(e,t){const r={rx:0,ry:0,classes:"",labelPaddingX:((t==null?void 0:t.padding)||0)*2,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return jd(e,t,r)}C(DA,"squareRect");async function BA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=s.height+t.padding,l=s.width+o/4+t.padding;let u;const{cssStyles:c}=t;if(t.look==="handDrawn"){const d=lt.svg(i),h=ut(t,{}),f=za(-l/2,-o/2,l,o,o/2),p=d.path(f,h);u=i.insert(()=>p,":first-child"),u.attr("class","basic label-container").attr("style",Fn(c))}else u=i.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",o/2).attr("ry",o/2).attr("x",-l/2).attr("y",-o/2).attr("width",l).attr("height",o);return dt(t,u),t.intersect=function(d){return st.rect(t,d)},i}C(BA,"stadium");async function TA(e,t){return jd(e,t,{rx:5,ry:5,classes:"flowchart-node"})}C(TA,"state");function PA(e,t,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=ht(t);t.labelStyle=n;const{cssStyles:s}=t,{lineColor:o,stateBorder:l,nodeBorder:u}=r,c=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),d=lt.svg(c),h=ut(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=d.circle(0,0,14,{...h,stroke:o,strokeWidth:2}),p=l??u,g=d.circle(0,0,5,{...h,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),y=c.insert(()=>f,":first-child");return y.insert(()=>g),s&&y.selectAll("path").attr("style",s),i&&y.selectAll("path").attr("style",i),dt(t,y),t.intersect=function(b){return st.circle(t,7,b)},c}C(PA,"stateEnd");function NA(e,t,{config:{themeVariables:r}}){const{lineColor:n}=r,i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s;if(t.look==="handDrawn"){const l=lt.svg(i).circle(0,0,14,zge(n));s=i.insert(()=>l),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else s=i.insert("circle",":first-child"),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return dt(t,s),t.intersect=function(o){return st.circle(t,7,o)},i}C(NA,"stateStart");async function MA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=((t==null?void 0:t.padding)||0)/2,l=s.width+t.padding,u=s.height+t.padding,c=-s.width/2-o,d=-s.height/2-o,h=[{x:0,y:0},{x:l,y:0},{x:l,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if(t.look==="handDrawn"){const f=lt.svg(i),p=ut(t,{}),g=f.rectangle(c-8,d,l+16,u,p),y=f.line(c,d,c,d+u,p),b=f.line(c+l,d,c+l,d+u,p);i.insert(()=>y,":first-child"),i.insert(()=>b,":first-child");const x=i.insert(()=>g,":first-child"),{cssStyles:v}=t;x.attr("class","basic label-container").attr("style",Fn(v)),dt(t,x)}else{const f=Ua(i,l,u,h);n&&f.attr("style",n),dt(t,f)}return t.intersect=function(f){return st.polygon(t,h,f)},i}C(MA,"subroutine");async function IA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-o/2,c=-l/2,d=.2*l,h=.2*l,{cssStyles:f}=t,p=lt.svg(i),g=ut(t,{}),y=[{x:u-d/2,y:c},{x:u+o+d/2,y:c},{x:u+o+d/2,y:c+l},{x:u-d/2,y:c+l}],b=[{x:u+o-d/2,y:c+l},{x:u+o+d/2,y:c+l},{x:u+o+d/2,y:c+l-h}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=Nt(y),v=p.path(x,g),E=Nt(b),_=p.path(E,{...g,fillStyle:"solid"}),j=i.insert(()=>_,":first-child");return j.insert(()=>v,":first-child"),j.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",n),dt(t,j),t.intersect=function(F){return st.polygon(t,y,F)},i}C(IA,"taggedRect");async function $A(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=u/4,d=.2*l,h=.2*u,f=u+c,{cssStyles:p}=t,g=lt.svg(i),y=ut(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=[{x:-l/2-l/2*.1,y:f/2},...gs(-l/2-l/2*.1,f/2,l/2+l/2*.1,f/2,c,.8),{x:l/2+l/2*.1,y:-f/2},{x:-l/2-l/2*.1,y:-f/2}],x=-l/2+l/2*.1,v=-f/2-h*.4,E=[{x:x+l-d,y:(v+u)*1.4},{x:x+l,y:v+u-h},{x:x+l,y:(v+u)*.9},...gs(x+l,(v+u)*1.3,x+l-d,(v+u)*1.5,-u*.03,.5)],_=Nt(b),j=g.path(_,y),F=Nt(E),k=g.path(F,{...y,fillStyle:"solid"}),U=i.insert(()=>k,":first-child");return U.insert(()=>j,":first-child"),U.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",n),U.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-l/2+(t.padding??0)-(s.x-(s.left??0))},${-u/2+(t.padding??0)-c/2-(s.y-(s.top??0))})`),dt(t,U),t.intersect=function(W){return st.polygon(t,b,W)},i}C($A,"taggedWaveEdgedRectangle");async function LA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=Math.max(s.width+t.padding,(t==null?void 0:t.width)||0),l=Math.max(s.height+t.padding,(t==null?void 0:t.height)||0),u=-o/2,c=-l/2,d=i.insert("rect",":first-child");return d.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",u).attr("y",c).attr("width",o).attr("height",l),dt(t,d),t.intersect=function(h){return st.rect(t,h)},i}C(LA,"text");var l3e=C((e,t,r,n,i,s)=>`M${e},${t}
- a${i},${s} 0,0,1 0,${-n}
- l${r},0
- a${i},${s} 0,0,1 0,${n}
- M${r},${-n}
- a${i},${s} 0,0,0 0,${n}
- l${-r},0`,"createCylinderPathD"),u3e=C((e,t,r,n,i,s)=>[`M${e},${t}`,`M${e+r},${t}`,`a${i},${s} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${s} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),c3e=C((e,t,r,n,i,s)=>[`M${e+r/2},${-n/2}`,`a${i},${s} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD");async function RA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o,halfPadding:l}=await Ct(e,t,vt(t)),u=t.look==="neo"?l*2:l,c=s.height+u,d=c/2,h=d/(2.5+c/50),f=s.width+h+u,{cssStyles:p}=t;let g;if(t.look==="handDrawn"){const y=lt.svg(i),b=u3e(0,0,f,c,h,d),x=c3e(0,0,f,c,h,d),v=y.path(b,ut(t,{})),E=y.path(x,ut(t,{fill:"none"}));g=i.insert(()=>E,":first-child"),g=i.insert(()=>v,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const y=l3e(0,0,f,c,h,d);g=i.insert("path",":first-child").attr("d",y).attr("class","basic label-container").attr("style",Fn(p)).attr("style",n),g.attr("class","basic label-container"),p&&g.selectAll("path").attr("style",p),n&&g.selectAll("path").attr("style",n)}return g.attr("label-offset-x",h),g.attr("transform",`translate(${-f/2}, ${c/2} )`),o.attr("transform",`translate(${-(s.width/2)-h-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),dt(t,g),t.intersect=function(y){const b=st.rect(t,y),x=b.y-(t.y??0);if(d!=0&&(Math.abs(x)<(t.height??0)/2||Math.abs(x)==(t.height??0)/2&&Math.abs(b.x-(t.x??0))>(t.width??0)/2-h)){let v=h*h*(1-x*x/(d*d));v!=0&&(v=Math.sqrt(Math.abs(v))),v=h-v,y.x-(t.x??0)>0&&(v=-v),b.x+=v}return b},i}C(RA,"tiltedCylinder");async function zA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=s.width+t.padding,l=s.height+t.padding,u=[{x:-3*l/6,y:0},{x:o+3*l/6,y:0},{x:o,y:-l},{x:0,y:-l}];let c;const{cssStyles:d}=t;if(t.look==="handDrawn"){const h=lt.svg(i),f=ut(t,{}),p=Nt(u),g=h.path(p,f);c=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),d&&c.attr("style",d)}else c=Ua(i,o,l,u);return n&&c.attr("style",n),t.width=o,t.height=l,dt(t,c),t.intersect=function(h){return st.polygon(t,u,h)},i}C(zA,"trapezoid");async function UA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=60,l=20,u=Math.max(o,s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(l,s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),{cssStyles:d}=t,h=lt.svg(i),f=ut(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=[{x:-u/2*.8,y:-c/2},{x:u/2*.8,y:-c/2},{x:u/2,y:-c/2*.6},{x:u/2,y:c/2},{x:-u/2,y:c/2},{x:-u/2,y:-c/2*.6}],g=Nt(p),y=h.path(g,f),b=i.insert(()=>y,":first-child");return b.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),dt(t,b),t.intersect=function(x){return st.polygon(t,p,x)},i}C(UA,"trapezoidalPentagon");async function HA(e,t){var v;const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=Ur((v=Ht().flowchart)==null?void 0:v.htmlLabels),u=s.width+(t.padding??0),c=u+s.height,d=u+s.height,h=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-c}],{cssStyles:f}=t,p=lt.svg(i),g=ut(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=Nt(h),b=p.path(y,g),x=i.insert(()=>b,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return f&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",f),n&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),t.width=u,t.height=c,dt(t,x),o.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${c/2-(s.height+(t.padding??0)/(l?2:1)-(s.y-(s.top??0)))})`),t.intersect=function(E){return Me.info("Triangle intersect",t,h,E),st.polygon(t,h,E)},i}C(HA,"triangle");async function qA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=u/8,d=u+c,{cssStyles:h}=t,p=70-l,g=p>0?p/2:0,y=lt.svg(i),b=ut(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const x=[{x:-l/2-g,y:d/2},...gs(-l/2-g,d/2,l/2+g,d/2,c,.8),{x:l/2+g,y:-d/2},{x:-l/2-g,y:-d/2}],v=Nt(x),E=y.path(v,b),_=i.insert(()=>E,":first-child");return _.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",h),n&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-l/2+(t.padding??0)-(s.x-(s.left??0))},${-u/2+(t.padding??0)-c-(s.y-(s.top??0))})`),dt(t,_),t.intersect=function(j){return st.polygon(t,x,j)},i}C(qA,"waveEdgedRectangle");async function WA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s}=await Ct(e,t,vt(t)),o=100,l=50,u=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=u/c;let h=u,f=c;h>f*d?f=h/d:h=f*d,h=Math.max(h,o),f=Math.max(f,l);const p=Math.min(f*.2,f/4),g=f+p*2,{cssStyles:y}=t,b=lt.svg(i),x=ut(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const v=[{x:-h/2,y:g/2},...gs(-h/2,g/2,h/2,g/2,p,1),{x:h/2,y:-g/2},...gs(h/2,-g/2,-h/2,-g/2,p,-1)],E=Nt(v),_=b.path(E,x),j=i.insert(()=>_,":first-child");return j.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",y),n&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",n),dt(t,j),t.intersect=function(F){return st.polygon(t,v,F)},i}C(WA,"waveRectangle");async function VA(e,t){const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const{shapeSvg:i,bbox:s,label:o}=await Ct(e,t,vt(t)),l=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=5,d=-l/2,h=-u/2,{cssStyles:f}=t,p=lt.svg(i),g=ut(t,{}),y=[{x:d-c,y:h-c},{x:d-c,y:h+u},{x:d+l,y:h+u},{x:d+l,y:h-c}],b=`M${d-c},${h-c} L${d+l},${h-c} L${d+l},${h+u} L${d-c},${h+u} L${d-c},${h-c}
- M${d-c},${h} L${d+l},${h}
- M${d},${h-c} L${d},${h+u}`;t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=p.path(b,g),v=i.insert(()=>x,":first-child");return v.attr("transform",`translate(${c/2}, ${c/2})`),v.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",n),o.attr("transform",`translate(${-(s.width/2)+c/2-(s.x-(s.left??0))}, ${-(s.height/2)+c/2-(s.y-(s.top??0))})`),dt(t,v),t.intersect=function(E){return st.polygon(t,y,E)},i}C(VA,"windowPane");async function $3(e,t){var le,be,V;const r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){const{themeVariables:te}=$n(),{background:de}=te,ee={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${de}`]};await $3(e,ee)}const n=$n();t.useHtmlLabels=n.htmlLabels;let i=((le=n.er)==null?void 0:le.diagramPadding)??10,s=((be=n.er)==null?void 0:be.entityPadding)??6;const{cssStyles:o}=t,{labelStyles:l}=ht(t);if(r.attributes.length===0&&t.label){const te={rx:0,ry:0,labelPaddingX:i,labelPaddingY:i*1.5,classes:""};Da(t.label,n)+te.labelPaddingX*2<n.er.minEntityWidth&&(t.width=n.er.minEntityWidth);const de=await jd(e,t,te);if(!Ur(n.htmlLabels)){const ee=de.select("text"),ie=(V=ee.node())==null?void 0:V.getBBox();ee.attr("transform",`translate(${-ie.width/2}, 0)`)}return de}n.htmlLabels||(i*=1.25,s*=1.25);let u=vt(t);u||(u="node default");const c=e.insert("g").attr("class",u).attr("id",t.domId||t.id),d=await Qo(c,t.label??"",n,0,0,["name"],l);d.height+=s;let h=0;const f=[];let p=0,g=0,y=0,b=0,x=!0,v=!0;for(const te of r.attributes){const de=await Qo(c,te.type,n,0,h,["attribute-type"],l);p=Math.max(p,de.width+i);const ee=await Qo(c,te.name,n,0,h,["attribute-name"],l);g=Math.max(g,ee.width+i);const ie=await Qo(c,te.keys.join(),n,0,h,["attribute-keys"],l);y=Math.max(y,ie.width+i);const G=await Qo(c,te.comment,n,0,h,["attribute-comment"],l);b=Math.max(b,G.width+i),h+=Math.max(de.height,ee.height,ie.height,G.height)+s,f.push(h)}f.pop();let E=4;y<=i&&(x=!1,y=0,E--),b<=i&&(v=!1,b=0,E--);const _=c.node().getBBox();if(d.width+i*2-(p+g+y+b)>0){const te=d.width+i*2-(p+g+y+b);p+=te/E,g+=te/E,y>0&&(y+=te/E),b>0&&(b+=te/E)}const j=p+g+y+b,F=lt.svg(c),k=ut(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const U=Math.max(_.width+i*2,(t==null?void 0:t.width)||0,j),W=Math.max(_.height+(f[0]||h)+s,(t==null?void 0:t.height)||0),K=-U/2,$=-W/2;c.selectAll("g:not(:first-child)").each((te,de,ee)=>{const ie=Pt(ee[de]),G=ie.attr("transform");let N=0,I=0;if(G){const J=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(G);J&&(N=parseFloat(J[1]),I=parseFloat(J[2]),ie.attr("class").includes("attribute-name")?N+=p:ie.attr("class").includes("attribute-keys")?N+=p+g:ie.attr("class").includes("attribute-comment")&&(N+=p+g+y))}ie.attr("transform",`translate(${K+i/2+N}, ${I+$+d.height+s/2})`)}),c.select(".name").attr("transform","translate("+-d.width/2+", "+($+s/2)+")");const O=F.rectangle(K,$,U,W,k),R=c.insert(()=>O,":first-child").attr("style",o.join("")),{themeVariables:z}=$n(),{rowEven:H,rowOdd:B,nodeBorder:Y}=z;f.push(0);for(const[te,de]of f.entries()){if(te===0&&f.length>1)continue;const ee=te%2===0&&de!==0,ie=F.rectangle(K,d.height+$+de,U,d.height,{...k,fill:ee?H:B,stroke:Y});c.insert(()=>ie,"g.label").attr("style",o.join("")).attr("class",`row-rect-${te%2===0?"even":"odd"}`)}let P=F.line(K,d.height+$,U+K,d.height+$,k);c.insert(()=>P).attr("class","divider"),P=F.line(p+K,d.height+$,p+K,W+$,k),c.insert(()=>P).attr("class","divider"),x&&(P=F.line(p+g+K,d.height+$,p+g+K,W+$,k),c.insert(()=>P).attr("class","divider")),v&&(P=F.line(p+g+y+K,d.height+$,p+g+y+K,W+$,k),c.insert(()=>P).attr("class","divider"));for(const te of f)P=F.line(K,d.height+$+te,U+K,d.height+$+te,k),c.insert(()=>P).attr("class","divider");return dt(t,R),t.intersect=function(te){return st.rect(t,te)},c}C($3,"erBox");async function Qo(e,t,r,n=0,i=0,s=[],o=""){const l=e.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${n}, ${i})`).attr("style",o);t!==Rx(t)&&(t=Rx(t),t=t.replaceAll("<","<").replaceAll(">",">"));const u=l.node().appendChild(await Ds(l,t,{width:Da(t,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let d=u.children[0];for(d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">")}let c=u.getBBox();if(Ur(r.htmlLabels)){const d=u.children[0];d.style.textAlign="start";const h=Pt(u);c=d.getBoundingClientRect(),h.attr("width",c.width),h.attr("height",c.height)}return c}C(Qo,"addText");async function GA(e,t,r,n,i=r.class.padding??12){const s=n?0:3,o=e.insert("g").attr("class",vt(t)).attr("id",t.domId||t.id);let l=null,u=null,c=null,d=null,h=0,f=0,p=0;if(l=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const v=t.annotations[0];await Iu(l,{text:`«${v}»`},0),h=l.node().getBBox().height}u=o.insert("g").attr("class","label-group text"),await Iu(u,t,0,["font-weight: bolder"]);const g=u.node().getBBox();f=g.height,c=o.insert("g").attr("class","members-group text");let y=0;for(const v of t.members){const E=await Iu(c,v,y,[v.parseClassifier()]);y+=E+s}p=c.node().getBBox().height,p<=0&&(p=i/2),d=o.insert("g").attr("class","methods-group text");let b=0;for(const v of t.methods){const E=await Iu(d,v,b,[v.parseClassifier()]);b+=E+s}let x=o.node().getBBox();if(l!==null){const v=l.node().getBBox();l.attr("transform",`translate(${-v.width/2})`)}return u.attr("transform",`translate(${-g.width/2}, ${h})`),x=o.node().getBBox(),c.attr("transform",`translate(0, ${h+f+i*2})`),x=o.node().getBBox(),d.attr("transform",`translate(0, ${h+f+(p?p+i*4:i*2)})`),x=o.node().getBBox(),{shapeSvg:o,bbox:x}}C(GA,"textHelper");async function Iu(e,t,r,n=[]){const i=e.insert("g").attr("class","label").attr("style",n.join("; ")),s=$n();let o="useHtmlLabels"in t?t.useHtmlLabels:Ur(s.htmlLabels)??!0,l="";"text"in t?l=t.text:l=t.label,!o&&l.startsWith("\\")&&(l=l.substring(1)),Al(l)&&(o=!0);const u=await Ds(i,Xg(Mo(l)),{width:Da(l,s)+50,classes:"markdown-node-label",useHtmlLabels:o},s);let c,d=1;if(o){const h=u.children[0],f=Pt(u);d=h.innerHTML.split("<br>").length,h.innerHTML.includes("</math>")&&(d+=h.innerHTML.split("<mrow>").length-1);const p=h.getElementsByTagName("img");if(p){const g=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...p].map(y=>new Promise(b=>{function x(){var v;if(y.style.display="flex",y.style.flexDirection="column",g){const E=((v=s.fontSize)==null?void 0:v.toString())??window.getComputedStyle(document.body).fontSize,j=parseInt(E,10)*5+"px";y.style.minWidth=j,y.style.maxWidth=j}else y.style.width="100%";b(y)}C(x,"setupImage"),setTimeout(()=>{y.complete&&x()}),y.addEventListener("error",x),y.addEventListener("load",x)})))}c=h.getBoundingClientRect(),f.attr("width",c.width),f.attr("height",c.height)}else{n.includes("font-weight: bolder")&&Pt(u).selectAll("tspan").attr("font-weight",""),d=u.children.length;const h=u.children[0];(u.textContent===""||u.textContent.includes(">"))&&(h.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(h.textContent=h.textContent[0]+" "+h.textContent.substring(1))),h.textContent==="undefined"&&(h.textContent=""),c=u.getBBox()}return i.attr("transform","translate(0,"+(-c.height/(2*d)+r)+")"),c.height}C(Iu,"addText");async function KA(e,t){var W,K;const r=Ht(),n=r.class.padding??12,i=n,s=t.useHtmlLabels??Ur(r.htmlLabels)??!0,o=t;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];const{shapeSvg:l,bbox:u}=await GA(e,t,r,s,i),{labelStyles:c,nodeStyles:d}=ht(t);t.labelStyle=c,t.cssStyles=o.styles||"";const h=((W=o.styles)==null?void 0:W.join(";"))||d||"";t.cssStyles||(t.cssStyles=h.replaceAll("!important","").split(";"));const f=o.members.length===0&&o.methods.length===0&&!((K=r.class)!=null&&K.hideEmptyMembersBox),p=lt.svg(l),g=ut(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=u.width;let b=u.height;o.members.length===0&&o.methods.length===0?b+=i:o.members.length>0&&o.methods.length===0&&(b+=i*2);const x=-y/2,v=-b/2,E=p.rectangle(x-n,v-n-(f?n:o.members.length===0&&o.methods.length===0?-n/2:0),y+2*n,b+2*n+(f?n*2:o.members.length===0&&o.methods.length===0?-n:0),g),_=l.insert(()=>E,":first-child");_.attr("class","basic label-container");const j=_.node().getBBox();l.selectAll(".text").each(($,O,R)=>{var le;const z=Pt(R[O]),H=z.attr("transform");let B=0;if(H){const V=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(H);V&&(B=parseFloat(V[2]))}let Y=B+v+n-(f?n:o.members.length===0&&o.methods.length===0?-n/2:0);s||(Y-=4);let P=x;(z.attr("class").includes("label-group")||z.attr("class").includes("annotation-group"))&&(P=-((le=z.node())==null?void 0:le.getBBox().width)/2||0,l.selectAll("text").each(function(be,V,te){window.getComputedStyle(te[V]).textAnchor==="middle"&&(P=0)})),z.attr("transform",`translate(${P}, ${Y})`)});const F=l.select(".annotation-group").node().getBBox().height-(f?n/2:0)||0,k=l.select(".label-group").node().getBBox().height-(f?n/2:0)||0,U=l.select(".members-group").node().getBBox().height-(f?n/2:0)||0;if(o.members.length>0||o.methods.length>0||f){const $=p.line(j.x,F+k+v+n,j.x+j.width,F+k+v+n,g);l.insert(()=>$).attr("class","divider").attr("style",h)}if(f||o.members.length>0||o.methods.length>0){const $=p.line(j.x,F+k+U+v+i*2+n,j.x+j.width,F+k+U+v+n+i*2,g);l.insert(()=>$).attr("class","divider").attr("style",h)}if(o.look!=="handDrawn"&&l.selectAll("path").attr("style",h),_.select(":nth-child(2)").attr("style",h),l.selectAll(".divider").select("path").attr("style",h),t.labelStyle?l.selectAll("span").attr("style",t.labelStyle):l.selectAll("span").attr("style",h),!s){const $=RegExp(/color\s*:\s*([^;]*)/),O=$.exec(h);if(O){const R=O[0].replace("color","fill");l.selectAll("tspan").attr("style",R)}else if(c){const R=$.exec(c);if(R){const z=R[0].replace("color","fill");l.selectAll("tspan").attr("style",z)}}}return dt(t,_),t.intersect=function($){return st.rect(t,$)},l}C(KA,"classBox");async function YA(e,t){var F,k;const{labelStyles:r,nodeStyles:n}=ht(t);t.labelStyle=r;const i=t,s=t,o=20,l=20,u="verifyMethod"in t,c=vt(t),d=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let h;u?h=await Mi(d,`<<${i.type}>>`,0,t.labelStyle):h=await Mi(d,"<<Element>>",0,t.labelStyle);let f=h;const p=await Mi(d,i.name,f,t.labelStyle+"; font-weight: bold;");if(f+=p+l,u){const U=await Mi(d,`${i.requirementId?`Id: ${i.requirementId}`:""}`,f,t.labelStyle);f+=U;const W=await Mi(d,`${i.text?`Text: ${i.text}`:""}`,f,t.labelStyle);f+=W;const K=await Mi(d,`${i.risk?`Risk: ${i.risk}`:""}`,f,t.labelStyle);f+=K,await Mi(d,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:""}`,f,t.labelStyle)}else{const U=await Mi(d,`${s.type?`Type: ${s.type}`:""}`,f,t.labelStyle);f+=U,await Mi(d,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,f,t.labelStyle)}const g=(((F=d.node())==null?void 0:F.getBBox().width)??200)+o,y=(((k=d.node())==null?void 0:k.getBBox().height)??200)+o,b=-g/2,x=-y/2,v=lt.svg(d),E=ut(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const _=v.rectangle(b,x,g,y,E),j=d.insert(()=>_,":first-child");if(j.attr("class","basic label-container").attr("style",n),d.selectAll(".label").each((U,W,K)=>{const $=Pt(K[W]),O=$.attr("transform");let R=0,z=0;if(O){const P=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(O);P&&(R=parseFloat(P[1]),z=parseFloat(P[2]))}const H=z-y/2;let B=b+o/2;(W===0||W===1)&&(B=R),$.attr("transform",`translate(${B}, ${H+o})`)}),f>h+p+l){const U=v.line(b,x+h+p+l,b+g,x+h+p+l,E);d.insert(()=>U).attr("style",n)}return dt(t,j),t.intersect=function(U){return st.rect(t,U)},d}C(YA,"requirementBox");async function Mi(e,t,r,n=""){if(t==="")return 0;const i=e.insert("g").attr("class","label").attr("style",n),s=Ht(),o=s.htmlLabels??!0,l=await Ds(i,Xg(Mo(t)),{width:Da(t,s)+50,classes:"markdown-node-label",useHtmlLabels:o,style:n},s);let u;if(o){const c=l.children[0],d=Pt(l);u=c.getBoundingClientRect(),d.attr("width",u.width),d.attr("height",u.height)}else{const c=l.children[0];for(const d of c.children)d.textContent=d.textContent.replaceAll(">",">").replaceAll("<","<"),n&&d.setAttribute("style",n);u=l.getBBox(),u.height+=6}return i.attr("transform",`translate(${-u.width/2},${-u.height/2+r})`),u.height}C(Mi,"addText");var d3e=C(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function ZA(e,t,{config:r}){var O,R;const{labelStyles:n,nodeStyles:i}=ht(t);t.labelStyle=n||"";const s=10,o=t.width;t.width=(t.width??200)-10;const{shapeSvg:l,bbox:u,label:c}=await Ct(e,t,vt(t)),d=t.padding||10;let h="",f;"ticket"in t&&t.ticket&&((O=r==null?void 0:r.kanban)!=null&&O.ticketBaseUrl)&&(h=(R=r==null?void 0:r.kanban)==null?void 0:R.ticketBaseUrl.replace("#TICKET#",t.ticket),f=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",h).attr("target","_blank"));const p={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let g,y;f?{label:g,bbox:y}=await g5(f,"ticket"in t&&t.ticket||"",p):{label:g,bbox:y}=await g5(l,"ticket"in t&&t.ticket||"",p);const{label:b,bbox:x}=await g5(l,"assigned"in t&&t.assigned||"",p);t.width=o;const v=10,E=(t==null?void 0:t.width)||0,_=Math.max(y.height,x.height)/2,j=Math.max(u.height+v*2,(t==null?void 0:t.height)||0)+_,F=-E/2,k=-j/2;c.attr("transform","translate("+(d-E/2)+", "+(-_-u.height/2)+")"),g.attr("transform","translate("+(d-E/2)+", "+(-_+u.height/2)+")"),b.attr("transform","translate("+(d+E/2-x.width-2*s)+", "+(-_+u.height/2)+")");let U;const{rx:W,ry:K}=t,{cssStyles:$}=t;if(t.look==="handDrawn"){const z=lt.svg(l),H=ut(t,{}),B=W||K?z.path(za(F,k,E,j,W||0),H):z.rectangle(F,k,E,j,H);U=l.insert(()=>B,":first-child"),U.attr("class","basic label-container").attr("style",$||null)}else{U=l.insert("rect",":first-child"),U.attr("class","basic label-container __APA__").attr("style",i).attr("rx",W??5).attr("ry",K??5).attr("x",F).attr("y",k).attr("width",E).attr("height",j);const z="priority"in t&&t.priority;if(z){const H=l.append("line"),B=F+2,Y=k+Math.floor((W??0)/2),P=k+j-Math.floor((W??0)/2);H.attr("x1",B).attr("y1",Y).attr("x2",B).attr("y2",P).attr("stroke-width","4").attr("stroke",d3e(z))}}return dt(t,U),t.height=j,t.intersect=function(z){return st.rect(t,z)},l}C(ZA,"kanbanItem");var h3e=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:DA},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:kA},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:BA},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:MA},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:tA},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:KO},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:FA},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:lA},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:bA},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:yA},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:zA},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:mA},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:nA},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:LA},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:VO},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:OA},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:NA},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:PA},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:sA},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:uA},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:XO},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:JO},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:QO},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:xA},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:qA},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:oA},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:RA},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:vA},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:eA},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:rA},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:HA},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:VA},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:iA},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:UA},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:aA},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:AA},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:CA},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:EA},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:WO},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:ZO},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:$A},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:IA},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:WA},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:jA},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:wA}],f3e=C(()=>{const t=[...Object.entries({state:TA,choice:GO,note:SA,rectWithTitle:_A,labelRect:gA,iconSquare:fA,iconCircle:dA,icon:cA,iconRounded:hA,imageSquare:pA,anchor:qO,kanbanItem:ZA,classBox:KA,erBox:$3,requirementBox:YA}),...h3e.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(i=>[i,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),XA=f3e();function p3e(e){return e in XA}C(p3e,"isValidShape");var Of=new Map;async function JA(e,t,r){let n,i;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const s=t.shape?XA[t.shape]:void 0;if(!s)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),i=await s(n,t,r)}else i=await s(e,t,r),n=i;return t.tooltip&&i.attr("title",t.tooltip),Of.set(t.id,n),t.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}C(JA,"insertNode");var Mbe=C((e,t)=>{Of.set(t.id,e)},"setNodeElem"),Ibe=C(()=>{Of.clear()},"clear"),$be=C(e=>{const t=Of.get(e.id);Me.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode"),m3e=C((e,t,r,n,i,s)=>{t.arrowTypeStart&&Bv(e,"start",t.arrowTypeStart,r,n,i,s),t.arrowTypeEnd&&Bv(e,"end",t.arrowTypeEnd,r,n,i,s)},"addEdgeMarkers"),g3e={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Bv=C((e,t,r,n,i,s,o)=>{var h;const l=g3e[r];if(!l){Me.warn(`Unknown arrow type: ${r}`);return}const u=l.type,d=`${i}_${s}-${u}${t==="start"?"Start":"End"}`;if(o&&o.trim()!==""){const f=o.replace(/[^\dA-Za-z]/g,"_"),p=`${d}_${f}`;if(!document.getElementById(p)){const g=document.getElementById(d);if(g){const y=g.cloneNode(!0);y.id=p,y.querySelectorAll("path, circle, line").forEach(x=>{x.setAttribute("stroke",o),l.fill&&x.setAttribute("fill",o)}),(h=g.parentNode)==null||h.appendChild(y)}}e.attr(`marker-${t}`,`url(${n}#${p})`)}else e.attr(`marker-${t}`,`url(${n}#${d})`)},"addEdgeMarker"),N2=new Map,Yr=new Map,Lbe=C(()=>{N2.clear(),Yr.clear()},"clear"),ju=C(e=>e?e.reduce((r,n)=>r+";"+n,""):"","getLabelStyles"),y3e=C(async(e,t)=>{let r=Ur(Ht().flowchart.htmlLabels);const n=await Ds(e,t.label,{style:ju(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1});Me.info("abc82",t,t.labelType);const i=e.insert("g").attr("class","edgeLabel"),s=i.insert("g").attr("class","label");s.node().appendChild(n);let o=n.getBBox();if(r){const u=n.children[0],c=Pt(n);o=u.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}s.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),N2.set(t.id,i),t.width=o.width,t.height=o.height;let l;if(t.startLabelLeft){const u=await Ks(t.startLabelLeft,ju(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),d=c.insert("g").attr("class","inner");l=d.node().appendChild(u);const h=u.getBBox();d.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),Yr.get(t.id)||Yr.set(t.id,{}),Yr.get(t.id).startLeft=c,$u(l,t.startLabelLeft)}if(t.startLabelRight){const u=await Ks(t.startLabelRight,ju(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),d=c.insert("g").attr("class","inner");l=c.node().appendChild(u),d.node().appendChild(u);const h=u.getBBox();d.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),Yr.get(t.id)||Yr.set(t.id,{}),Yr.get(t.id).startRight=c,$u(l,t.startLabelRight)}if(t.endLabelLeft){const u=await Ks(t.endLabelLeft,ju(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),d=c.insert("g").attr("class","inner");l=d.node().appendChild(u);const h=u.getBBox();d.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),c.node().appendChild(u),Yr.get(t.id)||Yr.set(t.id,{}),Yr.get(t.id).endLeft=c,$u(l,t.endLabelLeft)}if(t.endLabelRight){const u=await Ks(t.endLabelRight,ju(t.labelStyle)),c=e.insert("g").attr("class","edgeTerminals"),d=c.insert("g").attr("class","inner");l=d.node().appendChild(u);const h=u.getBBox();d.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),c.node().appendChild(u),Yr.get(t.id)||Yr.set(t.id,{}),Yr.get(t.id).endRight=c,$u(l,t.endLabelRight)}return n},"insertEdgeLabel");function $u(e,t){Ht().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}C($u,"setTerminalWidth");var b3e=C((e,t)=>{Me.debug("Moving label abc88 ",e.id,e.label,N2.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const n=Ht(),{subGraphTitleTotalMargin:i}=a3(n);if(e.label){const s=N2.get(e.id);let o=e.x,l=e.y;if(r){const u=zi.calcLabelPosition(r);Me.debug("Moving label "+e.label+" from (",o,",",l,") to (",u.x,",",u.y,") abc88"),t.updatedPath&&(o=u.x,l=u.y)}s.attr("transform",`translate(${o}, ${l+i/2})`)}if(e.startLabelLeft){const s=Yr.get(e.id).startLeft;let o=e.x,l=e.y;if(r){const u=zi.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.startLabelRight){const s=Yr.get(e.id).startRight;let o=e.x,l=e.y;if(r){const u=zi.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelLeft){const s=Yr.get(e.id).endLeft;let o=e.x,l=e.y;if(r){const u=zi.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelRight){const s=Yr.get(e.id).endRight;let o=e.x,l=e.y;if(r){const u=zi.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}},"positionEdgeLabel"),x3e=C((e,t)=>{const r=e.x,n=e.y,i=Math.abs(t.x-r),s=Math.abs(t.y-n),o=e.width/2,l=e.height/2;return i>=o||s>=l},"outsideNode"),v3e=C((e,t,r)=>{Me.debug(`intersection calc abc89:
- outsidePoint: ${JSON.stringify(t)}
- insidePoint : ${JSON.stringify(r)}
- node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const n=e.x,i=e.y,s=Math.abs(n-r.x),o=e.width/2;let l=r.x<t.x?o-s:o+s;const u=e.height/2,c=Math.abs(t.y-r.y),d=Math.abs(t.x-r.x);if(Math.abs(i-t.y)*o>Math.abs(n-t.x)*u){let h=r.y<t.y?t.y-u-i:i-u-t.y;l=d*h/c;const f={x:r.x<t.x?r.x+l:r.x-d+l,y:r.y<t.y?r.y+c-h:r.y-c+h};return l===0&&(f.x=t.x,f.y=t.y),d===0&&(f.x=t.x),c===0&&(f.y=t.y),Me.debug(`abc89 top/bottom calc, Q ${c}, q ${h}, R ${d}, r ${l}`,f),f}else{r.x<t.x?l=t.x-o-n:l=n-o-t.x;let h=c*l/d,f=r.x<t.x?r.x+d-l:r.x-d+l,p=r.y<t.y?r.y+h:r.y-h;return Me.debug(`sides calc abc89, Q ${c}, q ${h}, R ${d}, r ${l}`,{_x:f,_y:p}),l===0&&(f=t.x,p=t.y),d===0&&(f=t.x),c===0&&(p=t.y),{x:f,y:p}}},"intersection"),Tv=C((e,t)=>{Me.warn("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],i=!1;return e.forEach(s=>{if(Me.info("abc88 checking point",s,t),!x3e(t,s)&&!i){const o=v3e(t,n,s);Me.debug("abc88 inside",s,n,o),Me.debug("abc88 intersection",o,t);let l=!1;r.forEach(u=>{l=l||u.x===o.x&&u.y===o.y}),r.some(u=>u.x===o.x&&u.y===o.y)?Me.warn("abc88 no intersect",o,r):r.push(o),i=!0}else Me.warn("abc88 outside",s,n),n=s,i||r.push(s)}),Me.debug("returning points",r),r},"cutPathAtIntersect");function QA(e){const t=[],r=[];for(let n=1;n<e.length-1;n++){const i=e[n-1],s=e[n],o=e[n+1];(i.x===s.x&&s.y===o.y&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-i.y)>5||i.y===s.y&&s.x===o.x&&Math.abs(s.x-i.x)>5&&Math.abs(s.y-o.y)>5)&&(t.push(s),r.push(n))}return{cornerPoints:t,cornerPointPositions:r}}C(QA,"extractCornerPoints");var Pv=C(function(e,t,r){const n=t.x-e.x,i=t.y-e.y,s=Math.sqrt(n*n+i*i),o=r/s;return{x:t.x-o*n,y:t.y-o*i}},"findAdjacentPoint"),w3e=C(function(e){const{cornerPointPositions:t}=QA(e),r=[];for(let n=0;n<e.length;n++)if(t.includes(n)){const i=e[n-1],s=e[n+1],o=e[n],l=Pv(i,o,5),u=Pv(s,o,5),c=u.x-l.x,d=u.y-l.y;r.push(l);const h=Math.sqrt(2)*2;let f={x:o.x,y:o.y};if(Math.abs(s.x-i.x)>10&&Math.abs(s.y-i.y)>=10){Me.debug("Corner point fixing",Math.abs(s.x-i.x),Math.abs(s.y-i.y));const p=5;o.x===l.x?f={x:c<0?l.x-p+h:l.x+p-h,y:d<0?l.y-h:l.y+h}:f={x:c<0?l.x-h:l.x+h,y:d<0?l.y-p+h:l.y+p-h}}else Me.debug("Corner point skipping fixing",Math.abs(s.x-i.x),Math.abs(s.y-i.y));r.push(f,u)}else r.push(e[n]);return r},"fixCorners"),E3e=C(function(e,t,r,n,i,s,o){var W;const{handDrawnSeed:l}=Ht();let u=t.points,c=!1;const d=i;var h=s;const f=[];for(const K in t.cssCompiledStyles)NO(K)||f.push(t.cssCompiledStyles[K]);h.intersect&&d.intersect&&(u=u.slice(1,t.points.length-1),u.unshift(d.intersect(u[0])),Me.debug("Last point APA12",t.start,"-->",t.end,u[u.length-1],h,h.intersect(u[u.length-1])),u.push(h.intersect(u[u.length-1]))),t.toCluster&&(Me.info("to cluster abc88",r.get(t.toCluster)),u=Tv(t.points,r.get(t.toCluster).node),c=!0),t.fromCluster&&(Me.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(u,null,2)),u=Tv(u.reverse(),r.get(t.fromCluster).node).reverse(),c=!0);let p=u.filter(K=>!Number.isNaN(K.y));p=w3e(p);let g=Oh;switch(g=C2,t.curve){case"linear":g=C2;break;case"basis":g=Oh;break;case"cardinal":g=Mk;break;case"bumpX":g=Dk;break;case"bumpY":g=Bk;break;case"catmullRom":g=$k;break;case"monotoneX":g=qk;break;case"monotoneY":g=Wk;break;case"natural":g=Gk;break;case"step":g=Kk;break;case"stepAfter":g=Zk;break;case"stepBefore":g=Yk;break;default:g=Oh}const{x:y,y:b}=bpe(t),x=f6e().x(y).y(b).curve(g);let v;switch(t.thickness){case"normal":v="edge-thickness-normal";break;case"thick":v="edge-thickness-thick";break;case"invisible":v="edge-thickness-invisible";break;default:v="edge-thickness-normal"}switch(t.pattern){case"solid":v+=" edge-pattern-solid";break;case"dotted":v+=" edge-pattern-dotted";break;case"dashed":v+=" edge-pattern-dashed";break;default:v+=" edge-pattern-solid"}let E,_=x(p);const j=Array.isArray(t.style)?t.style:[t.style];let F=j.find(K=>K==null?void 0:K.startsWith("stroke:"));if(t.look==="handDrawn"){const K=lt.svg(e);Object.assign([],p);const $=K.path(_,{roughness:.3,seed:l});v+=" transition",E=Pt($).select("path").attr("id",t.id).attr("class"," "+v+(t.classes?" "+t.classes:"")).attr("style",j?j.reduce((R,z)=>R+";"+z,""):"");let O=E.attr("d");E.attr("d",O),e.node().appendChild(E.node())}else{const K=f.join(";"),$=j?j.reduce((z,H)=>z+H+";",""):"";let O="";t.animate&&(O=" edge-animation-fast"),t.animation&&(O=" edge-animation-"+t.animation);const R=K?K+";"+$+";":$;E=e.append("path").attr("d",_).attr("id",t.id).attr("class"," "+v+(t.classes?" "+t.classes:"")+(O??"")).attr("style",R),F=(W=R.match(/stroke:([^;]+)/))==null?void 0:W[1]}let k="";(Ht().flowchart.arrowMarkerAbsolute||Ht().state.arrowMarkerAbsolute)&&(k=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,k=k.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Me.info("arrowTypeStart",t.arrowTypeStart),Me.info("arrowTypeEnd",t.arrowTypeEnd),m3e(E,t,k,o,n,F);let U={};return c&&(U.updatedPath=u),U.originalPath=t.points,U},"insertEdge"),C3e=C((e,t,r,n)=>{t.forEach(i=>{L3e[i](e,r,n)})},"insertMarkers"),S3e=C((e,t,r)=>{Me.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),F3e=C((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),j3e=C((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),_3e=C((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),k3e=C((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),O3e=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),A3e=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),D3e=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),B3e=C((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),T3e=C((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),P3e=C((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),N3e=C((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),M3e=C((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),I3e=C((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
- L20,10
- M20,10
- L0,20`)},"requirement_arrow"),$3e=C((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),L3e={extension:S3e,composition:F3e,aggregation:j3e,dependency:_3e,lollipop:k3e,point:O3e,circle:A3e,cross:D3e,barb:B3e,only_one:T3e,zero_or_one:P3e,one_or_more:N3e,zero_or_more:M3e,requirement_arrow:I3e,requirement_contains:$3e},R3e=C3e,z3e={common:au,getConfig:$n,insertCluster:Yge,insertEdge:E3e,insertEdgeLabel:y3e,insertMarkers:R3e,insertNode:JA,interpolateToCurve:x3,labelHelper:Ct,log:Me,positionEdgeLabel:b3e},J1={},eD=C(e=>{for(const t of e)J1[t.name]=t},"registerLayoutLoaders"),U3e=C(()=>{eD([{name:"dagre",loader:C(async()=>await qt(()=>import("./dagre-OKDRZEBW-BMDlW8JO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),"loader")}])},"registerDefaultLayoutLoaders");U3e();var Rbe=C(async(e,t)=>{if(!(e.layoutAlgorithm in J1))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=J1[e.layoutAlgorithm];return(await r.loader()).render(e,t,z3e,{algorithm:r.algorithm})},"render"),zbe=C((e="",{fallback:t="dagre"}={})=>{if(e in J1)return e;if(t in J1)return Me.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),Nv={name:"mermaid",version:"11.6.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.4",katex:"^0.16.9",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^15.0.7",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",chokidar:"^4.0.3",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.0.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},H3e=C(e=>{var i;const{securityLevel:t}=Ht();let r=Pt("body");if(t==="sandbox"){const o=((i=Pt(`#i${e}`).node())==null?void 0:i.contentDocument)??document;r=Pt(o.body)}return r.select(`#${e}`)},"selectSvgElement"),tD="c4",q3e=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),W3e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./c4Diagram-VJAJSXHY-D8DoYWsl.js");return{diagram:t}},__vite__mapDeps([12,13,6,7,8,9,10,11]));return{id:tD,diagram:e}},"loader"),V3e={id:tD,detector:q3e,loader:W3e},G3e=V3e,rD="flowchart",K3e=C((e,t)=>{var r,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),Y3e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./flowDiagram-4HSFHLVR-DWbLVzMd.js");return{diagram:t}},__vite__mapDeps([14,15,16,6,7,8,9,10,11]));return{id:rD,diagram:e}},"loader"),Z3e={id:rD,detector:K3e,loader:Y3e},X3e=Z3e,nD="flowchart-v2",J3e=C((e,t)=>{var r,n,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),Q3e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./flowDiagram-4HSFHLVR-DWbLVzMd.js");return{diagram:t}},__vite__mapDeps([14,15,16,6,7,8,9,10,11]));return{id:nD,diagram:e}},"loader"),e7e={id:nD,detector:J3e,loader:Q3e},t7e=e7e,iD="er",r7e=C(e=>/^\s*erDiagram/.test(e),"detector"),n7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./erDiagram-Q7BY3M3F-CwcDAdIe.js");return{diagram:t}},__vite__mapDeps([17,15,16,6,7,8,9,10,11]));return{id:iD,diagram:e}},"loader"),i7e={id:iD,detector:r7e,loader:n7e},a7e=i7e,aD="gitGraph",s7e=C(e=>/^\s*gitGraph/.test(e),"detector"),o7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-7IBYFJ6S-BhvWlkhT.js");return{diagram:t}},__vite__mapDeps([18,19,20,21,2,4,5,6,7,8,9,10,11]));return{id:aD,diagram:e}},"loader"),l7e={id:aD,detector:s7e,loader:o7e},u7e=l7e,sD="gantt",c7e=C(e=>/^\s*gantt/.test(e),"detector"),d7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./ganttDiagram-APWFNJXF-CjtJEltt.js");return{diagram:t}},__vite__mapDeps([22,7,23,24,6,8,9,10,11]));return{id:sD,diagram:e}},"loader"),h7e={id:sD,detector:c7e,loader:d7e},f7e=h7e,oD="info",p7e=C(e=>/^\s*info/.test(e),"detector"),m7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./infoDiagram-PH2N3AL5-MMNHexMC.js");return{diagram:t}},__vite__mapDeps([25,21,2,4,5,6,7,8,9,10,11]));return{id:oD,diagram:e}},"loader"),g7e={id:oD,detector:p7e,loader:m7e},lD="pie",y7e=C(e=>/^\s*pie/.test(e),"detector"),b7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./pieDiagram-IB7DONF6-DuwrasQh.js");return{diagram:t}},__vite__mapDeps([26,19,21,2,4,5,27,28,24,6,7,8,9,10,11]));return{id:lD,diagram:e}},"loader"),x7e={id:lD,detector:y7e,loader:b7e},uD="quadrantChart",v7e=C(e=>/^\s*quadrantChart/.test(e),"detector"),w7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./quadrantDiagram-7GDLP6J5-CzRbyCp3.js");return{diagram:t}},__vite__mapDeps([29,23,24,6,7,8,9,10,11]));return{id:uD,diagram:e}},"loader"),E7e={id:uD,detector:v7e,loader:w7e},C7e=E7e,cD="xychart",S7e=C(e=>/^\s*xychart-beta/.test(e),"detector"),F7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./xychartDiagram-VJFVF3MP-CGsQPmUp.js");return{diagram:t}},__vite__mapDeps([30,24,28,23,6,7,8,9,10,11]));return{id:cD,diagram:e}},"loader"),j7e={id:cD,detector:S7e,loader:F7e},_7e=j7e,dD="requirement",k7e=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),O7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./requirementDiagram-KVF5MWMF-DAneazJG.js");return{diagram:t}},__vite__mapDeps([31,15,6,7,8,9,10,11]));return{id:dD,diagram:e}},"loader"),A7e={id:dD,detector:k7e,loader:O7e},D7e=A7e,hD="sequence",B7e=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),T7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./sequenceDiagram-X6HHIX6F-B83GaRbX.js");return{diagram:t}},__vite__mapDeps([32,13,20,6,7,8,9,10,11]));return{id:hD,diagram:e}},"loader"),P7e={id:hD,detector:B7e,loader:T7e},N7e=P7e,fD="class",M7e=C((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),I7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./classDiagram-GIVACNV2-CpYo__Ph.js");return{diagram:t}},__vite__mapDeps([33,34,15,6,7,8,9,10,11]));return{id:fD,diagram:e}},"loader"),$7e={id:fD,detector:M7e,loader:I7e},L7e=$7e,pD="classDiagram",R7e=C((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),z7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./classDiagram-v2-COTLJTTW-CpYo__Ph.js");return{diagram:t}},__vite__mapDeps([35,34,15,6,7,8,9,10,11]));return{id:pD,diagram:e}},"loader"),U7e={id:pD,detector:R7e,loader:z7e},H7e=U7e,mD="state",q7e=C((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),W7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./stateDiagram-DGXRK772-ChiZuLhI.js");return{diagram:t}},__vite__mapDeps([36,37,15,1,2,3,4,6,7,8,9,10,11]));return{id:mD,diagram:e}},"loader"),V7e={id:mD,detector:q7e,loader:W7e},G7e=V7e,gD="stateDiagram",K7e=C((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),Y7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-YXO3MK2T-BicCbhVg.js");return{diagram:t}},__vite__mapDeps([38,37,15,6,7,8,9,10,11]));return{id:gD,diagram:e}},"loader"),Z7e={id:gD,detector:K7e,loader:Y7e},X7e=Z7e,yD="journey",J7e=C(e=>/^\s*journey/.test(e),"detector"),Q7e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./journeyDiagram-U35MCT3I-CY34TFju.js");return{diagram:t}},__vite__mapDeps([39,13,27,6,7,8,9,10,11]));return{id:yD,diagram:e}},"loader"),e8e={id:yD,detector:J7e,loader:Q7e},t8e=e8e,r8e=C((e,t,r)=>{Me.debug(`rendering svg for syntax error
- `);const n=H3e(t),i=n.append("g");n.attr("viewBox","0 0 2412 512"),mj(n,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),bD={draw:r8e},n8e=bD,i8e={db:{},renderer:bD,parser:{parse:C(()=>{},"parse")}},a8e=i8e,xD="flowchart-elk",s8e=C((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),o8e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./flowDiagram-4HSFHLVR-DWbLVzMd.js");return{diagram:t}},__vite__mapDeps([14,15,16,6,7,8,9,10,11]));return{id:xD,diagram:e}},"loader"),l8e={id:xD,detector:s8e,loader:o8e},u8e=l8e,vD="timeline",c8e=C(e=>/^\s*timeline/.test(e),"detector"),d8e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./timeline-definition-BDJGKUSR-CEJDFitP.js");return{diagram:t}},__vite__mapDeps([40,27,6,7,8,9,10,11]));return{id:vD,diagram:e}},"loader"),h8e={id:vD,detector:c8e,loader:d8e},f8e=h8e,wD="mindmap",p8e=C(e=>/^\s*mindmap/.test(e),"detector"),m8e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./mindmap-definition-ALO5MXBD-DStiJmwb.js");return{diagram:t}},__vite__mapDeps([41,42,7,6,8,9,10,11]));return{id:wD,diagram:e}},"loader"),g8e={id:wD,detector:p8e,loader:m8e},y8e=g8e,ED="kanban",b8e=C(e=>/^\s*kanban/.test(e),"detector"),x8e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./kanban-definition-NDS4AKOZ-Dxq8y1uI.js");return{diagram:t}},__vite__mapDeps([43,6,7,8,9,10,11]));return{id:ED,diagram:e}},"loader"),v8e={id:ED,detector:b8e,loader:x8e},w8e=v8e,CD="sankey",E8e=C(e=>/^\s*sankey-beta/.test(e),"detector"),C8e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./sankeyDiagram-QLVOVGJD-C8o7_799.js");return{diagram:t}},__vite__mapDeps([44,28,24,6,7,8,9,10,11]));return{id:CD,diagram:e}},"loader"),S8e={id:CD,detector:E8e,loader:C8e},F8e=S8e,SD="packet",j8e=C(e=>/^\s*packet-beta/.test(e),"detector"),_8e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./diagram-VNBRO52H-DlV3rtTt.js");return{diagram:t}},__vite__mapDeps([45,19,21,2,4,5,6,7,8,9,10,11]));return{id:SD,diagram:e}},"loader"),k8e={id:SD,detector:j8e,loader:_8e},FD="radar",O8e=C(e=>/^\s*radar-beta/.test(e),"detector"),A8e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./diagram-SSKATNLV-DYdAMFSr.js");return{diagram:t}},__vite__mapDeps([46,19,21,2,4,5,6,7,8,9,10,11]));return{id:FD,diagram:e}},"loader"),D8e={id:FD,detector:O8e,loader:A8e},jD="block",B8e=C(e=>/^\s*block-beta/.test(e),"detector"),T8e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./blockDiagram-JOT3LUYC-B7WvxssV.js");return{diagram:t}},__vite__mapDeps([47,5,2,1,16,6,7,8,9,10,11]));return{id:jD,diagram:e}},"loader"),P8e={id:jD,detector:B8e,loader:T8e},N8e=P8e,_D="architecture",M8e=C(e=>/^\s*architecture/.test(e),"detector"),I8e=C(async()=>{const{diagram:e}=await qt(async()=>{const{diagram:t}=await import("./architectureDiagram-IEHRJDOE-Q7__Zjfc.js");return{diagram:t}},__vite__mapDeps([48,19,20,21,2,4,5,42,7,6,8,9,10,11]));return{id:_D,diagram:e}},"loader"),$8e={id:_D,detector:M8e,loader:I8e},L8e=$8e,Mv=!1,Af=C(()=>{Mv||(Mv=!0,u2("error",a8e,e=>e.toLowerCase().trim()==="error"),u2("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),rj(G3e,w8e,H7e,L7e,a7e,f7e,g7e,x7e,D7e,N7e,u8e,t7e,X3e,y8e,f8e,u7e,X7e,G7e,t8e,C7e,F8e,k8e,_7e,N8e,L8e,D8e))},"addDiagrams"),R8e=C(async()=>{Me.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(_l).map(async([r,{detector:n,loader:i}])=>{if(i)try{p4(r)}catch{try{const{diagram:s,id:o}=await i();u2(o,s,n)}catch(s){throw Me.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete _l[r],s}}}))).filter(r=>r.status==="rejected");if(t.length>0){Me.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Me.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),z8e="graphics-document document";function kD(e,t){e.attr("role",z8e),t!==""&&e.attr("aria-roledescription",t)}C(kD,"setA11yDiagramInfo");function OD(e,t,r,n){if(e.insert!==void 0){if(r){const i=`chart-desc-${n}`;e.attr("aria-describedby",i),e.insert("desc",":first-child").attr("id",i).text(r)}if(t){const i=`chart-title-${n}`;e.attr("aria-labelledby",i),e.insert("title",":first-child").attr("id",i).text(t)}}}C(OD,"addSVGa11yTitleDescription");var Xs,Y4=(Xs=class{constructor(t,r,n,i,s){this.type=t,this.text=r,this.db=n,this.parser=i,this.renderer=s}static async fromText(t,r={}){var c,d;const n=$n(),i=Wg(t,n);t=L6e(t)+`
- `;try{p4(i)}catch{const h=b2e(i);if(!h)throw new tj(`Diagram ${i} not found.`);const{id:f,diagram:p}=await h();u2(f,p)}const{db:s,parser:o,renderer:l,init:u}=p4(i);return o.parser&&(o.parser.yy=s),(c=s.clear)==null||c.call(s),u==null||u(n),r.title&&((d=s.setDiagramTitle)==null||d.call(s,r.title)),await o.parse(t),new Xs(i,t,s,o,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},C(Xs,"Diagram"),Xs),Iv=[],U8e=C(()=>{Iv.forEach(e=>{e()}),Iv=[]},"attachFunctions"),H8e=C(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function AD(e){const t=e.match(ej);if(!t)return{text:e,metadata:{}};let r=ype(t[1],{schema:gpe})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:e.slice(t[0].length),metadata:n}}C(AD,"extractFrontMatter");var q8e=C(e=>e.replace(/\r\n?/g,`
- `).replace(/<(\w+)([^>]*)>/g,(t,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),W8e=C(e=>{const{text:t,metadata:r}=AD(e),{displayMode:n,title:i,config:s={}}=r;return n&&(s.gantt||(s.gantt={}),s.gantt.displayMode=n),{title:i,config:s,text:t}},"processFrontmatter"),V8e=C(e=>{const t=zi.detectInit(e)??{},r=zi.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:n})=>n==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:j6e(e),directive:t}},"processDirectives");function L3(e){const t=q8e(e),r=W8e(t),n=V8e(r.text),i=S3(r.config,n.directive);return e=H8e(n.text),{code:e,title:r.title,config:i}}C(L3,"preprocessDiagram");function DD(e){const t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCodePoint(n)).join("");return btoa(r)}C(DD,"toBase64");var G8e=5e4,K8e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Y8e="sandbox",Z8e="loose",X8e="http://www.w3.org/2000/svg",J8e="http://www.w3.org/1999/xlink",Q8e="http://www.w3.org/1999/xhtml",eye="100%",tye="100%",rye="border:0;margin:0;",nye="margin:0",iye="allow-top-navigation-by-user-activation allow-popups",aye='The "iframe" tag is not supported by your browser.',sye=["foreignobject"],oye=["dominant-baseline"];function R3(e){const t=L3(e);return o2(),P2e(t.config??{}),t}C(R3,"processAndSetConfigs");async function BD(e,t){Af();try{const{code:r,config:n}=R3(e);return{diagramType:(await PD(r)).type,config:n}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}C(BD,"parse");var $v=C((e,t,r=[])=>`
- .${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),lye=C((e,t=new Map)=>{var n;let r="";if(e.themeCSS!==void 0&&(r+=`
- ${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
- :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
- :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const l=e.htmlLabels??((n=e.flowchart)==null?void 0:n.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(u=>{jy(u.styles)||l.forEach(c=>{r+=$v(u.id,c,u.styles)}),jy(u.textStyles)||(r+=$v(u.id,"tspan",((u==null?void 0:u.textStyles)||[]).map(c=>c.replace("color","fill"))))})}return r},"createCssStyles"),uye=C((e,t,r,n)=>{const i=lye(e,r),s=Q2e(t,i,e.themeVariables);return N5(vP(`${n}{${s}}`),EP)},"createUserStyles"),cye=C((e="",t,r)=>{let n=e;return!r&&!t&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=Mo(n),n=n.replace(/<br>/g,"<br/>"),n},"cleanUpSvgCode"),dye=C((e="",t)=>{var i,s;const r=(s=(i=t==null?void 0:t.viewBox)==null?void 0:i.baseVal)!=null&&s.height?t.viewBox.baseVal.height+"px":tye,n=DD(`<body style="${nye}">${e}</body>`);return`<iframe style="width:${eye};height:${r};${rye}" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="${iye}">
- ${aye}
- </iframe>`},"putIntoIFrame"),Lv=C((e,t,r,n,i)=>{const s=e.append("div");s.attr("id",r),n&&s.attr("style",n);const o=s.append("svg").attr("id",t).attr("width","100%").attr("xmlns",X8e);return i&&o.attr("xmlns:xlink",i),o.append("g"),e},"appendDivSvgG");function Z4(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}C(Z4,"sandboxedIframe");var hye=C((e,t,r,n)=>{var i,s,o;(i=e.getElementById(t))==null||i.remove(),(s=e.getElementById(r))==null||s.remove(),(o=e.getElementById(n))==null||o.remove()},"removeExistingElements"),fye=C(async function(e,t,r){var O,R,z,H,B,Y;Af();const n=R3(t);t=n.code;const i=$n();Me.debug(i),t.length>((i==null?void 0:i.maxTextSize)??G8e)&&(t=K8e);const s="#"+e,o="i"+e,l="#"+o,u="d"+e,c="#"+u,d=C(()=>{const le=Pt(f?l:c).node();le&&"remove"in le&&le.remove()},"removeTempElements");let h=Pt("body");const f=i.securityLevel===Y8e,p=i.securityLevel===Z8e,g=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const P=Z4(Pt(r),o);h=Pt(P.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=Pt(r);Lv(h,e,u,`font-family: ${g}`,J8e)}else{if(hye(document,e,u,o),f){const P=Z4(Pt("body"),o);h=Pt(P.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=Pt("body");Lv(h,e,u)}let y,b;try{y=await Y4.fromText(t,{title:n.title})}catch(P){if(i.suppressErrorRendering)throw d(),P;y=await Y4.fromText("error"),b=P}const x=h.select(c).node(),v=y.type,E=x.firstChild,_=E.firstChild,j=(R=(O=y.renderer).getClasses)==null?void 0:R.call(O,t,y),F=uye(i,v,j,s),k=document.createElement("style");k.innerHTML=F,E.insertBefore(k,_);try{await y.renderer.draw(t,e,Nv.version,y)}catch(P){throw i.suppressErrorRendering?d():n8e.draw(t,e,Nv.version),P}const U=h.select(`${c} svg`),W=(H=(z=y.db).getAccTitle)==null?void 0:H.call(z),K=(Y=(B=y.db).getAccDescription)==null?void 0:Y.call(B);ND(v,U,W,K),h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Q8e);let $=h.select(c).node().innerHTML;if(Me.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),$=cye($,f,Ur(i.arrowMarkerAbsolute)),f){const P=h.select(c+" svg").node();$=dye($,P)}else p||($=jl.sanitize($,{ADD_TAGS:sye,ADD_ATTR:oye,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(U8e(),b)throw b;return d(),{diagramType:v,svg:$,bindFunctions:y.db.bindFunctions}},"render");function TD(e={}){var n;const t=Jr({},e);t!=null&&t.fontFamily&&!((n=t.themeVariables)!=null&&n.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),B2e(t),t!=null&&t.theme&&t.theme in wa?t.themeVariables=wa[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=wa.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?D2e(t):lj();qg(r.logLevel),Af()}C(TD,"initialize");var PD=C((e,t={})=>{const{code:r}=L3(e);return Y4.fromText(r,t)},"getDiagramFromText");function ND(e,t,r,n){kD(t,e),OD(t,r,n,t.attr("id"))}C(ND,"addA11yInfo");var mo=Object.freeze({render:fye,parse:BD,getDiagramFromText:PD,initialize:TD,getConfig:$n,setConfig:uj,getSiteConfig:lj,updateSiteConfig:T2e,reset:C(()=>{o2()},"reset"),globalReset:C(()=>{o2(kl)},"globalReset"),defaultConfig:kl});qg($n().logLevel);o2($n());var pye=C((e,t,r)=>{Me.warn(e),C3(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),MD=C(async function(e={querySelector:".mermaid"}){try{await mye(e)}catch(t){if(C3(t)&&Me.error(t.str),ei.parseError&&ei.parseError(t),!e.suppressErrors)throw Me.error("Use the suppressErrors option to suppress these errors"),t}},"run"),mye=C(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const n=mo.getConfig();Me.debug(`${e?"":"No "}Callback function found`);let i;if(r)i=r;else if(t)i=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");Me.debug(`Found ${i.length} diagrams`),(n==null?void 0:n.startOnLoad)!==void 0&&(Me.debug("Start On Load: "+(n==null?void 0:n.startOnLoad)),mo.updateSiteConfig({startOnLoad:n==null?void 0:n.startOnLoad}));const s=new zi.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let o;const l=[];for(const u of Array.from(i)){if(Me.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const c=`mermaid-${s.next()}`;o=u.innerHTML,o=gO(zi.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const d=zi.detectInit(o);d&&Me.debug("Detected early reinit: ",d);try{const{svg:h,bindFunctions:f}=await RD(c,o,u);u.innerHTML=h,e&&await e(c),f&&f(u)}catch(h){pye(h,l,ei.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),ID=C(function(e){mo.initialize(e)},"initialize"),gye=C(async function(e,t,r){Me.warn("mermaid.init is deprecated. Please use run instead."),e&&ID(e);const n={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?n.querySelector=t:t&&(t instanceof HTMLElement?n.nodes=[t]:n.nodes=t),await MD(n)},"init"),yye=C(async(e,{lazyLoad:t=!0}={})=>{Af(),rj(...e),t===!1&&await R8e()},"registerExternalDiagrams"),$D=C(function(){if(ei.startOnLoad){const{startOnLoad:e}=mo.getConfig();e&&ei.run().catch(t=>Me.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",$D,!1);var bye=C(function(e){ei.parseError=e},"setParseErrorHandler"),M2=[],y5=!1,LD=C(async()=>{if(!y5){for(y5=!0;M2.length>0;){const e=M2.shift();if(e)try{await e()}catch(t){Me.error("Error executing queue",t)}}y5=!1}},"executeQueue"),xye=C(async(e,t)=>new Promise((r,n)=>{const i=C(()=>new Promise((s,o)=>{mo.parse(e,t).then(l=>{s(l),r(l)},l=>{var u;Me.error("Error parsing",l),(u=ei.parseError)==null||u.call(ei,l),o(l),n(l)})}),"performCall");M2.push(i),LD().catch(n)}),"parse"),RD=C((e,t,r)=>new Promise((n,i)=>{const s=C(()=>new Promise((o,l)=>{mo.render(e,t,r).then(u=>{o(u),n(u)},u=>{var c;Me.error("Error parsing",u),(c=ei.parseError)==null||c.call(ei,u),l(u),i(u)})}),"performCall");M2.push(s),LD().catch(i)}),"render"),ei={startOnLoad:!0,mermaidAPI:mo,parse:xye,render:RD,init:gye,run:MD,registerExternalDiagrams:yye,registerLayoutLoaders:eD,initialize:ID,parseError:void 0,contentLoaded:$D,setParseErrorHandler:bye,detectType:Wg,registerIconPacks:Rpe},zD=ei;/*! Check if previously processed *//*!
- * Wait for document loaded before starting the execution
- */function vye(e,t,r){var n=this,i=m.useRef(null),s=m.useRef(0),o=m.useRef(null),l=m.useRef([]),u=m.useRef(),c=m.useRef(),d=m.useRef(e),h=m.useRef(!0);d.current=e;var f=typeof window<"u",p=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var g=!!(r=r||{}).leading,y=!("trailing"in r)||!!r.trailing,b="maxWait"in r,x="debounceOnServer"in r&&!!r.debounceOnServer,v=b?Math.max(+r.maxWait||0,t):null;m.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var E=m.useMemo(function(){var _=function(K){var $=l.current,O=u.current;return l.current=u.current=null,s.current=K,c.current=d.current.apply(O,$)},j=function(K,$){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(K):setTimeout(K,$)},F=function(K){if(!h.current)return!1;var $=K-i.current;return!i.current||$>=t||$<0||b&&K-s.current>=v},k=function(K){return o.current=null,y&&l.current?_(K):(l.current=u.current=null,c.current)},U=function K(){var $=Date.now();if(F($))return k($);if(h.current){var O=t-($-i.current),R=b?Math.min(O,v-($-s.current)):O;j(K,R)}},W=function(){if(f||x){var K=Date.now(),$=F(K);if(l.current=[].slice.call(arguments),u.current=n,i.current=K,$){if(!o.current&&h.current)return s.current=i.current,j(U,t),g?_(i.current):c.current;if(b)return j(U,t),_(i.current)}return o.current||j(U,t),c.current}};return W.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),s.current=0,l.current=i.current=u.current=o.current=null},W.isPending=function(){return!!o.current},W.flush=function(){return o.current?k(Date.now()):c.current},W},[g,b,t,v,y,p,f,x]);return E}zD.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose"});function wye(e){const t=m.useRef(null),[r,n]=m.useState(!1);m.useEffect(()=>{e.code&&t.current&&zD.run({nodes:[t.current],suppressErrors:!0}).catch(s=>{n(!0),console.error("[Mermaid] ",s.message)})},[e.code]);function i(){var c;const s=(c=t.current)==null?void 0:c.querySelector("svg");if(!s)return;const o=new XMLSerializer().serializeToString(s),l=new Blob([o],{type:"image/svg+xml"}),u=URL.createObjectURL(l);window.open(u,"_blank")}return r?null:a.jsx("div",{className:q6("mermaid-container"),style:{cursor:"pointer",overflow:"auto",padding:"12px",border:"1px solid var(--semi-color-border)",borderRadius:"8px",backgroundColor:"var(--semi-color-bg-1)",margin:"12px 0"},ref:t,onClick:()=>i(),children:e.code})}function Eye(e){const t=m.useRef(null),[r,n]=m.useState(""),[i,s]=m.useState(""),{t:o}=Ze(),l=vye(()=>{var h;if(!t.current)return;const u=t.current.querySelector("code.language-mermaid");u&&n(u.innerText);const c=t.current.querySelector("code.language-html"),d=(h=t.current.querySelector("code"))==null?void 0:h.innerText;c?s(c.innerText):(d!=null&&d.startsWith("<!DOCTYPE")||d!=null&&d.startsWith("<svg")||d!=null&&d.startsWith("<?xml"))&&s(d)},600);return m.useEffect(()=>{if(t.current){const u=t.current.querySelectorAll("code"),c=["","md","markdown","text","txt","plaintext","tex","latex"];u.forEach(d=>{let h=d.className.match(/language-(\w+)/),f=h?h[1]:"";c.includes(f)&&(d.style.whiteSpace="pre-wrap")}),setTimeout(l,1)}},[]),a.jsxs(a.Fragment,{children:[a.jsxs("pre",{ref:t,style:{position:"relative",backgroundColor:"var(--semi-color-fill-0)",border:"1px solid var(--semi-color-border)",borderRadius:"6px",padding:"12px",margin:"12px 0",overflow:"auto",fontSize:"14px",lineHeight:"1.4"},children:[a.jsx("div",{className:"copy-code-button",style:{position:"absolute",top:"8px",right:"8px",display:"flex",gap:"4px",zIndex:10,opacity:0,transition:"opacity 0.2s ease"},children:a.jsx(Gt,{content:o("复制代码"),children:a.jsx(X,{size:"small",theme:"borderless",icon:a.jsx(I2,{}),onClick:u=>{var c;if(u.preventDefault(),u.stopPropagation(),t.current){const d=((c=t.current.querySelector("code"))==null?void 0:c.innerText)??"";Qr(d).then(h=>{h?Mt.success(o("代码已复制到剪贴板")):Mt.error(o("复制失败,请手动复制"))})}},style:{padding:"4px",backgroundColor:"var(--semi-color-bg-2)",borderRadius:"4px",cursor:"pointer",border:"1px solid var(--semi-color-border)",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.1)"}})})}),e.children]}),r.length>0&&a.jsx(wye,{code:r},r),i.length>0&&a.jsxs("div",{style:{border:"1px solid var(--semi-color-border)",borderRadius:"8px",padding:"16px",margin:"12px 0",backgroundColor:"var(--semi-color-bg-1)"},children:[a.jsx("div",{style:{marginBottom:"8px",fontSize:"12px",color:"var(--semi-color-text-2)"},children:"HTML预览:"}),a.jsx("div",{dangerouslySetInnerHTML:{__html:i}})]})]})}function Cye(e){const t=m.useRef(null),[r,n]=m.useState(!0),[i,s]=m.useState(!1),{t:o}=Ze();m.useEffect(()=>{if(t.current){const c=t.current.scrollHeight;s(c>400),t.current.scrollTop=t.current.scrollHeight}},[e.children]);const l=()=>{n(c=>!c)},u=()=>i&&r?a.jsx("div",{style:{position:"absolute",bottom:"8px",right:"8px",left:"8px",display:"flex",justifyContent:"center"},children:a.jsx(X,{size:"small",onClick:l,theme:"solid",children:o("显示更多")})}):null;return a.jsxs("div",{style:{position:"relative"},children:[a.jsx("code",{className:q6(e==null?void 0:e.className),ref:t,style:{maxHeight:r?"400px":"none",overflowY:"hidden",display:"block",padding:"8px 12px",backgroundColor:"var(--semi-color-fill-0)",borderRadius:"4px",fontSize:"13px",lineHeight:"1.4"},children:e.children}),u()]})}function Sye(e){const t=/(```[\s\S]*?```|`.*?`)|\\\[([\s\S]*?[^\\])\\\]|\\\((.*?)\\\)/g;return e.replace(t,(r,n,i,s)=>n||(i?`$$${i}$$`:s?`$${s}$`:r))}function Fye(e){return e.includes("```")?e:e.replace(/([`]*?)(\w*?)([\n\r]*?)(<!DOCTYPE html>)/g,(t,r,n,i,s)=>r?t:"\n```html\n"+s).replace(/(<\/body>)([\r\n\s]*?)(<\/html>)([\n\r]*)([`]*)([\n\r]*?)/g,(t,r,n,i,s,o)=>o?t:r+n+i+"\n```\n")}function jye(e){const{content:t,className:r,animated:n=!1,previousContentLength:i=0}=e,s=m.useMemo(()=>Fye(Sye(t)),[t]),o=r&&r.includes("user-message"),l=m.useMemo(()=>{const u=[FJ,[Rhe,{detect:!1,ignoreMissing:!0}]];return n&&u.push([jue,{previousContentLength:i}]),u},[n,i]);return a.jsx(LY,{remarkPlugins:[zJ,AJ,kJ],rehypePlugins:l,components:{pre:Eye,code:Cye,p:u=>a.jsx("p",{...u,dir:"auto",style:{lineHeight:"1.6",color:o?"white":"inherit"}}),a:u=>{const c=u.href||"";if(/\.(aac|mp3|opus|wav)$/.test(c))return a.jsx("figure",{style:{margin:"12px 0"},children:a.jsx("audio",{controls:!0,src:c,style:{width:"100%"}})});if(/\.(3gp|3g2|webm|ogv|mpeg|mp4|avi)$/.test(c))return a.jsx("video",{controls:!0,style:{width:"100%",maxWidth:"100%",margin:"12px 0"},children:a.jsx("source",{src:c})});const h=/^\/#/i.test(c)?"_self":u.target??"_blank";return a.jsx("a",{...u,target:h,style:{color:o?"#87CEEB":"var(--semi-color-primary)",textDecoration:"none"},onMouseEnter:f=>{f.target.style.textDecoration="underline"},onMouseLeave:f=>{f.target.style.textDecoration="none"}})},h1:u=>a.jsx("h1",{...u,style:{fontSize:"24px",fontWeight:"bold",margin:"20px 0 12px 0",color:o?"white":"var(--semi-color-text-0)"}}),h2:u=>a.jsx("h2",{...u,style:{fontSize:"20px",fontWeight:"bold",margin:"18px 0 10px 0",color:o?"white":"var(--semi-color-text-0)"}}),h3:u=>a.jsx("h3",{...u,style:{fontSize:"18px",fontWeight:"bold",margin:"16px 0 8px 0",color:o?"white":"var(--semi-color-text-0)"}}),h4:u=>a.jsx("h4",{...u,style:{fontSize:"16px",fontWeight:"bold",margin:"14px 0 6px 0",color:o?"white":"var(--semi-color-text-0)"}}),h5:u=>a.jsx("h5",{...u,style:{fontSize:"14px",fontWeight:"bold",margin:"12px 0 4px 0",color:o?"white":"var(--semi-color-text-0)"}}),h6:u=>a.jsx("h6",{...u,style:{fontSize:"13px",fontWeight:"bold",margin:"10px 0 4px 0",color:o?"white":"var(--semi-color-text-0)"}}),blockquote:u=>a.jsx("blockquote",{...u,style:{borderLeft:o?"4px solid rgba(255, 255, 255, 0.5)":"4px solid var(--semi-color-primary)",paddingLeft:"16px",margin:"12px 0",backgroundColor:o?"rgba(255, 255, 255, 0.1)":"var(--semi-color-fill-0)",padding:"8px 16px",borderRadius:"0 4px 4px 0",fontStyle:"italic",color:o?"white":"inherit"}}),ul:u=>a.jsx("ul",{...u,style:{margin:"8px 0",paddingLeft:"20px",color:o?"white":"inherit"}}),ol:u=>a.jsx("ol",{...u,style:{margin:"8px 0",paddingLeft:"20px",color:o?"white":"inherit"}}),li:u=>a.jsx("li",{...u,style:{margin:"4px 0",lineHeight:"1.6",color:o?"white":"inherit"}}),table:u=>a.jsx("div",{style:{overflow:"auto",margin:"12px 0"},children:a.jsx("table",{...u,style:{width:"100%",borderCollapse:"collapse",border:o?"1px solid rgba(255, 255, 255, 0.3)":"1px solid var(--semi-color-border)",borderRadius:"6px",overflow:"hidden"}})}),th:u=>a.jsx("th",{...u,style:{padding:"8px 12px",backgroundColor:o?"rgba(255, 255, 255, 0.2)":"var(--semi-color-fill-1)",border:o?"1px solid rgba(255, 255, 255, 0.3)":"1px solid var(--semi-color-border)",fontWeight:"bold",textAlign:"left",color:o?"white":"inherit"}}),td:u=>a.jsx("td",{...u,style:{padding:"8px 12px",border:o?"1px solid rgba(255, 255, 255, 0.3)":"1px solid var(--semi-color-border)",color:o?"white":"inherit"}})},children:s})}const _ye=Bt.memo(jye);function Th(e){const{content:t,loading:r,fontSize:n=14,fontFamily:i="inherit",className:s,style:o,animated:l=!1,previousContentLength:u=0,...c}=e;return a.jsx("div",{className:q6("markdown-body",s),style:{fontSize:`${n}px`,fontFamily:i,lineHeight:"1.6",color:"var(--semi-color-text-0)",...o},dir:"auto",...c,children:r?a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px",color:"var(--semi-color-text-2)"},children:[a.jsx("div",{style:{width:"16px",height:"16px",border:"2px solid var(--semi-color-border)",borderTop:"2px solid var(--semi-color-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"}}),"正在渲染..."]}):a.jsx(_ye,{content:t,className:s,animated:l,previousContentLength:u})})}const kye=({message:e,finalExtractedThinkingContent:t,thinkingSource:r,styleState:n,onToggleReasoningExpansion:i})=>{const{t:s}=Ze(),o=m.useRef(null),l=m.useRef(""),u=e.status==="loading"||e.status==="incomplete",c=u&&!e.isThinkingComplete?s("思考中..."):s("思考过程");if(m.useEffect(()=>{o.current&&t&&e.isReasoningExpanded&&(o.current.scrollTop=o.current.scrollHeight)},[t,e.isReasoningExpanded]),m.useEffect(()=>{u||(l.current="")},[u]),!t)return null;let d=0;return u&&l.current&&t.startsWith(l.current)&&(d=l.current.length),u&&(l.current=t),a.jsxs("div",{className:"rounded-xl sm:rounded-2xl mb-2 sm:mb-4 overflow-hidden shadow-sm backdrop-blur-sm",children:[a.jsxs("div",{className:"flex items-center justify-between p-3 cursor-pointer hover:bg-gradient-to-r hover:from-white/20 hover:to-purple-50/30 transition-all",style:{background:"linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%)",position:"relative"},onClick:()=>i(e.id),children:[a.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[a.jsx("div",{className:"absolute -top-10 -right-10 w-40 h-40 bg-white opacity-5 rounded-full"}),a.jsx("div",{className:"absolute -bottom-8 -left-8 w-24 h-24 bg-white opacity-10 rounded-full"})]}),a.jsxs("div",{className:"flex items-center gap-2 sm:gap-4 relative",children:[a.jsx("div",{className:"w-6 h-6 sm:w-8 sm:h-8 rounded-full bg-white/20 flex items-center justify-center shadow-lg",children:a.jsx(Wse,{style:{color:"white"},size:n.isMobile?12:16})}),a.jsxs("div",{className:"flex flex-col",children:[a.jsx(Ie.Text,{strong:!0,style:{color:"white"},className:"text-sm sm:text-base",children:c}),r&&a.jsxs(Ie.Text,{style:{color:"white"},className:"text-xs mt-0.5 opacity-80 hidden sm:block",children:["来源: ",r]})]})]}),a.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 relative",children:[u&&!e.isThinkingComplete&&a.jsxs("div",{className:"flex items-center gap-1 sm:gap-2",children:[a.jsx(eF,{style:{color:"white"},className:"animate-spin",size:n.isMobile?14:18}),a.jsx(Ie.Text,{style:{color:"white"},className:"text-xs sm:text-sm font-medium opacity-90",children:"思考中"})]}),(!u||e.isThinkingComplete)&&a.jsx("div",{className:"w-5 h-5 sm:w-6 sm:h-6 rounded-full bg-white/20 flex items-center justify-center",children:e.isReasoningExpanded?a.jsx(WS,{size:n.isMobile?12:16,style:{color:"white"}}):a.jsx(ioe,{size:n.isMobile?12:16,style:{color:"white"}})})]})]}),a.jsx("div",{className:`transition-all duration-500 ease-out ${e.isReasoningExpanded?"max-h-96 opacity-100":"max-h-0 opacity-0"} overflow-hidden bg-gradient-to-br from-purple-50 via-indigo-50 to-violet-50`,children:e.isReasoningExpanded&&a.jsx("div",{className:"p-3 sm:p-5 pt-2 sm:pt-4",children:a.jsx("div",{ref:o,className:"bg-white/70 backdrop-blur-sm rounded-lg sm:rounded-xl p-2 shadow-inner overflow-x-auto overflow-y-auto thinking-content-scroll",style:{maxHeight:"200px",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.3) transparent"},children:a.jsx("div",{className:"prose prose-xs sm:prose-sm prose-purple max-w-none text-xs sm:text-sm",children:a.jsx(Th,{content:t,className:"",animated:u,previousContentLength:d})})})})})]})},Oye=({message:e,className:t,styleState:r,onToggleReasoningExpansion:n,isEditing:i=!1,onEditSave:s,onEditCancel:o,editValue:l,onEditValueChange:u})=>{const{t:c}=Ze(),d=m.useRef(0),h=m.useRef(""),f=e.status==="loading"||e.status==="incomplete";if(m.useEffect(()=>{f||(d.current=0,h.current="")},[f]),e.status==="error"){let E;if(Array.isArray(e.content)){const _=e.content.find(j=>j.type==="text");E=_&&_.text&&typeof _.text=="string"?_.text:c("请求发生错误")}else typeof e.content=="string"?E=e.content:E=c("请求发生错误");return a.jsx("div",{className:`${t} flex items-center p-4 bg-red-50 rounded-xl`,children:a.jsx(Ie.Text,{type:"danger",className:"text-sm",children:E})})}let p=null,g="",y=null;const b=E=>{if(Array.isArray(E)){const _=E.find(j=>j.type==="text");return _&&_.text&&typeof _.text=="string"?_.text:""}else if(typeof E=="string")return E;return""};if(g=b(e.content),e.role==="assistant"){let E=b(e.content),_="";if(e.reasoningContent&&(_=e.reasoningContent,y="reasoningContent"),E.includes("<think>")){const j=/<think>([\s\S]*?)<\/think>/g;let F,k=[],U=[],W=0;for(;(F=j.exec(E))!==null;)U.push(E.substring(W,F.index)),k.push(F[1]),W=F.index+F[0].length;if(U.push(E.substring(W)),k.length>0){const K=k.join(`
- ---
- `);_?_+=`
- ---
- `+K:_=K,y=y?y+" & <think> tags":"<think> tags"}E=U.join("")}if(f){const j=E.lastIndexOf("<think>");if(j!==-1){const F=E.substring(j);if(!F.includes("</think>")){const k=F.substring(7).trim();k&&(_?_+=`
- ---
- `+k:_=k,y=y?y+" + streaming <think>":"streaming <think>"),E=E.substring(0,j)}}}p=_||null,g=E.replace(/<\/?think>/g,"").trim()}const x=p,v=g;return e.role==="assistant"&&f&&!x&&(!v||v.trim()==="")?a.jsx("div",{className:`${t} flex items-center gap-2 sm:gap-4 bg-gradient-to-r from-purple-50 to-indigo-50`,children:a.jsx("div",{className:"w-5 h-5 rounded-full bg-gradient-to-br from-purple-500 to-indigo-600 flex items-center justify-center shadow-lg",children:a.jsx(eF,{className:"animate-spin text-white",size:r.isMobile?16:20})})}):a.jsxs("div",{className:t,children:[e.role==="system"&&a.jsx("div",{className:"mb-2 sm:mb-4",children:a.jsxs("div",{className:"flex items-center gap-2 p-2 sm:p-3 bg-gradient-to-r from-amber-50 to-orange-50 rounded-lg",style:{border:"1px solid var(--semi-color-border)"},children:[a.jsx("div",{className:"w-4 h-4 sm:w-5 sm:h-5 rounded-full bg-gradient-to-br from-amber-500 to-orange-600 flex items-center justify-center shadow-sm",children:a.jsx(Ie.Text,{className:"text-white text-xs font-bold",children:"S"})}),a.jsx(Ie.Text,{className:"text-amber-700 text-xs sm:text-sm font-medium",children:c("系统消息")})]})}),e.role==="assistant"&&a.jsx(kye,{message:e,finalExtractedThinkingContent:x,thinkingSource:y,styleState:r,onToggleReasoningExpansion:n}),i?a.jsxs("div",{className:"space-y-3",children:[a.jsx(n6,{value:l,onChange:E=>u(E),placeholder:c("请输入消息内容..."),autosize:{minRows:3,maxRows:12},style:{resize:"vertical",fontSize:r.isMobile?"14px":"15px",lineHeight:"1.6"},className:"!border-blue-200 focus:!border-blue-400 !bg-blue-50/50"}),a.jsxs("div",{className:"flex items-center gap-2 w-full",children:[a.jsx(X,{size:"small",type:"danger",theme:"light",icon:a.jsx(Ci,{size:14}),onClick:o,className:"flex-1",children:c("取消")}),a.jsx(X,{size:"small",type:"warning",theme:"solid",icon:a.jsx(Qa,{size:14}),onClick:s,disabled:!l||l.trim()==="",className:"flex-1",children:c("保存")})]})]}):(()=>{if(Array.isArray(e.content)){const E=e.content.find(j=>j.type==="text"),_=e.content.filter(j=>j.type==="image_url");return a.jsxs("div",{children:[_.length>0&&a.jsx("div",{className:"mb-3 space-y-2",children:_.map((j,F)=>a.jsxs("div",{className:"max-w-sm",children:[a.jsx("img",{src:j.image_url.url,alt:`用户上传的图片 ${F+1}`,className:"rounded-lg max-w-full h-auto shadow-sm border",style:{maxHeight:"300px"},onError:k=>{k.target.style.display="none",k.target.nextSibling.style.display="block"}}),a.jsxs("div",{className:"text-red-500 text-sm p-2 bg-red-50 rounded-lg border border-red-200",style:{display:"none"},children:["图片加载失败: ",j.image_url.url]})]},F))}),E&&E.text&&typeof E.text=="string"&&E.text.trim()!==""&&a.jsx("div",{className:`prose prose-xs sm:prose-sm prose-gray max-w-none overflow-x-auto text-xs sm:text-sm ${e.role==="user"?"user-message":""}`,children:a.jsx(Th,{content:E.text,className:e.role==="user"?"user-message":"",animated:!1,previousContentLength:0})})]})}if(typeof e.content=="string")if(e.role==="assistant"){if(v&&v.trim()!==""){let E=0;return f&&h.current&&v.startsWith(h.current)&&(E=h.current.length),f&&(h.current=v),a.jsx("div",{className:"prose prose-xs sm:prose-sm prose-gray max-w-none overflow-x-auto text-xs sm:text-sm",children:a.jsx(Th,{content:v,className:"",animated:f,previousContentLength:E})})}}else return a.jsx("div",{className:`prose prose-xs sm:prose-sm prose-gray max-w-none overflow-x-auto text-xs sm:text-sm ${e.role==="user"?"user-message":""}`,children:a.jsx(Th,{content:e.content,className:e.role==="user"?"user-message":"",animated:!1,previousContentLength:0})});return null})()]})},Aye=({message:e,styleState:t,onMessageReset:r,onMessageCopy:n,onMessageDelete:i,onRoleToggle:s,onMessageEdit:o,isAnyMessageGenerating:l=!1,isEditing:u=!1})=>{const{t:c}=Ze(),d=e.status==="loading"||e.status==="incomplete",h=l||u,f=e.role==="assistant"||e.role==="system",p=!d&&e.content&&typeof o=="function"&&!u;return a.jsxs("div",{className:"flex items-center gap-0.5",children:[!d&&a.jsx(Gt,{content:c(h?"操作暂时被禁用":"重试"),position:"top",children:a.jsx(X,{theme:"borderless",type:"tertiary",size:"small",icon:a.jsx(Cle,{size:t.isMobile?12:14}),onClick:()=>!h&&r(e),disabled:h,className:`!rounded-full ${h?"!text-gray-300 !cursor-not-allowed":"!text-gray-400 hover:!text-blue-600 hover:!bg-blue-50"} ${t.isMobile?"!w-6 !h-6":"!w-7 !h-7"} !p-0 transition-all`,"aria-label":c("重试")})}),e.content&&a.jsx(Gt,{content:c("复制"),position:"top",children:a.jsx(X,{theme:"borderless",type:"tertiary",size:"small",icon:a.jsx(of,{size:t.isMobile?12:14}),onClick:()=>n(e),className:`!rounded-full !text-gray-400 hover:!text-green-600 hover:!bg-green-50 ${t.isMobile?"!w-6 !h-6":"!w-7 !h-7"} !p-0 transition-all`,"aria-label":c("复制")})}),p&&a.jsx(Gt,{content:c(h?"操作暂时被禁用":"编辑"),position:"top",children:a.jsx(X,{theme:"borderless",type:"tertiary",size:"small",icon:a.jsx(iu,{size:t.isMobile?12:14}),onClick:()=>!h&&o(e),disabled:h,className:`!rounded-full ${h?"!text-gray-300 !cursor-not-allowed":"!text-gray-400 hover:!text-yellow-600 hover:!bg-yellow-50"} ${t.isMobile?"!w-6 !h-6":"!w-7 !h-7"} !p-0 transition-all`,"aria-label":c("编辑")})}),f&&!d&&a.jsx(Gt,{content:h?c("操作暂时被禁用"):e.role==="assistant"?c("切换为System角色"):c("切换为Assistant角色"),position:"top",children:a.jsx(X,{theme:"borderless",type:"tertiary",size:"small",icon:a.jsx(aF,{size:t.isMobile?12:14}),onClick:()=>!h&&s&&s(e),disabled:h,className:`!rounded-full ${h?"!text-gray-300 !cursor-not-allowed":e.role==="system"?"!text-purple-500 hover:!text-purple-700 hover:!bg-purple-50":"!text-gray-400 hover:!text-purple-600 hover:!bg-purple-50"} ${t.isMobile?"!w-6 !h-6":"!w-7 !h-7"} !p-0 transition-all`,"aria-label":e.role==="assistant"?c("切换为System角色"):c("切换为Assistant角色")})}),!d&&a.jsx(Gt,{content:c(h?"操作暂时被禁用":"删除"),position:"top",children:a.jsx(X,{theme:"borderless",type:"tertiary",size:"small",icon:a.jsx(Oa,{size:t.isMobile?12:14}),onClick:()=>!h&&i(e),disabled:h,className:`!rounded-full ${h?"!text-gray-300 !cursor-not-allowed":"!text-gray-400 hover:!text-red-600 hover:!bg-red-50"} ${t.isMobile?"!w-6 !h-6":"!w-7 !h-7"} !p-0 transition-all`,"aria-label":c("删除")})})]})},Dye=({inputs:e,parameterEnabled:t,onInputChange:r,onParameterToggle:n,disabled:i=!1})=>a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:`transition-opacity duration-200 mb-4 ${!t.temperature||i?"opacity-50":""}`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Yle,{size:16,className:"text-gray-500"}),a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:"Temperature"}),a.jsx(ye,{size:"small",shape:"circle",children:e.temperature})]}),a.jsx(X,{theme:t.temperature?"solid":"borderless",type:t.temperature?"primary":"tertiary",size:"small",icon:t.temperature?a.jsx(Qa,{size:10}):a.jsx(Ci,{size:10}),onClick:()=>n("temperature"),className:"!rounded-full !w-4 !h-4 !p-0 !min-w-0",disabled:i})]}),a.jsx(Ie.Text,{className:"text-xs text-gray-500 mb-2",children:"控制输出的随机性和创造性"}),a.jsx(Td,{step:.1,min:.1,max:1,value:e.temperature,onChange:s=>r("temperature",s),className:"mt-2",disabled:!t.temperature||i})]}),a.jsxs("div",{className:`transition-opacity duration-200 mb-4 ${!t.top_p||i?"opacity-50":""}`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Gle,{size:16,className:"text-gray-500"}),a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:"Top P"}),a.jsx(ye,{size:"small",shape:"circle",children:e.top_p})]}),a.jsx(X,{theme:t.top_p?"solid":"borderless",type:t.top_p?"primary":"tertiary",size:"small",icon:t.top_p?a.jsx(Qa,{size:10}):a.jsx(Ci,{size:10}),onClick:()=>n("top_p"),className:"!rounded-full !w-4 !h-4 !p-0 !min-w-0",disabled:i})]}),a.jsx(Ie.Text,{className:"text-xs text-gray-500 mb-2",children:"核采样,控制词汇选择的多样性"}),a.jsx(Td,{step:.1,min:.1,max:1,value:e.top_p,onChange:s=>r("top_p",s),className:"mt-2",disabled:!t.top_p||i})]}),a.jsxs("div",{className:`transition-opacity duration-200 mb-4 ${!t.frequency_penalty||i?"opacity-50":""}`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Fle,{size:16,className:"text-gray-500"}),a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:"Frequency Penalty"}),a.jsx(ye,{size:"small",shape:"circle",children:e.frequency_penalty})]}),a.jsx(X,{theme:t.frequency_penalty?"solid":"borderless",type:t.frequency_penalty?"primary":"tertiary",size:"small",icon:t.frequency_penalty?a.jsx(Qa,{size:10}):a.jsx(Ci,{size:10}),onClick:()=>n("frequency_penalty"),className:"!rounded-full !w-4 !h-4 !p-0 !min-w-0",disabled:i})]}),a.jsx(Ie.Text,{className:"text-xs text-gray-500 mb-2",children:"频率惩罚,减少重复词汇的出现"}),a.jsx(Td,{step:.1,min:-2,max:2,value:e.frequency_penalty,onChange:s=>r("frequency_penalty",s),className:"mt-2",disabled:!t.frequency_penalty||i})]}),a.jsxs("div",{className:`transition-opacity duration-200 mb-4 ${!t.presence_penalty||i?"opacity-50":""}`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Rse,{size:16,className:"text-gray-500"}),a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:"Presence Penalty"}),a.jsx(ye,{size:"small",shape:"circle",children:e.presence_penalty})]}),a.jsx(X,{theme:t.presence_penalty?"solid":"borderless",type:t.presence_penalty?"primary":"tertiary",size:"small",icon:t.presence_penalty?a.jsx(Qa,{size:10}):a.jsx(Ci,{size:10}),onClick:()=>n("presence_penalty"),className:"!rounded-full !w-4 !h-4 !p-0 !min-w-0",disabled:i})]}),a.jsx(Ie.Text,{className:"text-xs text-gray-500 mb-2",children:"存在惩罚,鼓励讨论新话题"}),a.jsx(Td,{step:.1,min:-2,max:2,value:e.presence_penalty,onChange:s=>r("presence_penalty",s),className:"mt-2",disabled:!t.presence_penalty||i})]}),a.jsxs("div",{className:`transition-opacity duration-200 mb-4 ${!t.max_tokens||i?"opacity-50":""}`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Pg,{size:16,className:"text-gray-500"}),a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:"Max Tokens"})]}),a.jsx(X,{theme:t.max_tokens?"solid":"borderless",type:t.max_tokens?"primary":"tertiary",size:"small",icon:t.max_tokens?a.jsx(Qa,{size:10}):a.jsx(Ci,{size:10}),onClick:()=>n("max_tokens"),className:"!rounded-full !w-4 !h-4 !p-0 !min-w-0",disabled:i})]}),a.jsx(Lt,{placeholder:"MaxTokens",name:"max_tokens",required:!0,autoComplete:"new-password",defaultValue:0,value:e.max_tokens,onChange:s=>r("max_tokens",s),className:"!rounded-lg",disabled:!t.max_tokens||i})]}),a.jsxs("div",{className:`transition-opacity duration-200 mb-4 ${!t.seed||i?"opacity-50":""}`,children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(xh,{size:16,className:"text-gray-500"}),a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:"Seed"}),a.jsx(Ie.Text,{className:"text-xs text-gray-400",children:"(可选,用于复现结果)"})]}),a.jsx(X,{theme:t.seed?"solid":"borderless",type:t.seed?"primary":"tertiary",size:"small",icon:t.seed?a.jsx(Qa,{size:10}):a.jsx(Ci,{size:10}),onClick:()=>n("seed"),className:"!rounded-full !w-4 !h-4 !p-0 !min-w-0",disabled:i})]}),a.jsx(Lt,{placeholder:"随机种子 (留空为随机)",name:"seed",autoComplete:"new-password",value:e.seed||"",onChange:s=>r("seed",s===""?null:s),className:"!rounded-lg",disabled:!t.seed||i})]})]}),Bye=({imageUrls:e,imageEnabled:t,onImageUrlsChange:r,onImageEnabledChange:n,disabled:i=!1})=>{const s=()=>{const u=[...e,""];r(u)},o=(u,c)=>{const d=[...e];d[u]=c,r(d)},l=u=>{const c=e.filter((d,h)=>h!==u);r(c)};return a.jsxs("div",{className:i?"opacity-50":"",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ZS,{size:16,className:t&&!i?"text-blue-500":"text-gray-400"}),a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:"图片地址"}),i&&a.jsx(Ie.Text,{className:"text-xs text-orange-600",children:"(已在自定义模式中忽略)"})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Jn,{checked:t,onChange:n,checkedText:"启用",uncheckedText:"停用",size:"small",className:"flex-shrink-0",disabled:i}),a.jsx(X,{icon:a.jsx(yd,{size:14}),size:"small",theme:"solid",type:"primary",onClick:s,className:"!rounded-full !w-4 !h-4 !p-0 !min-w-0",disabled:!t||i})]})]}),t?e.length===0?a.jsx(Ie.Text,{className:"text-xs text-gray-500 mb-2 block",children:i?"图片功能在自定义请求体模式下不可用":"点击 + 按钮添加图片URL进行多模态对话"}):a.jsxs(Ie.Text,{className:"text-xs text-gray-500 mb-2 block",children:["已添加 ",e.length," 张图片",i?" (自定义模式下不可用)":""]}):a.jsx(Ie.Text,{className:"text-xs text-gray-500 mb-2 block",children:i?"图片功能在自定义请求体模式下不可用":"启用后可添加图片URL进行多模态对话"}),a.jsx("div",{className:`space-y-2 max-h-32 overflow-y-auto image-list-scroll ${!t||i?"opacity-50":""}`,children:e.map((u,c)=>a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"flex-1",children:a.jsx(Lt,{placeholder:`https://example.com/image${c+1}.jpg`,value:u,onChange:d=>o(c,d),className:"!rounded-lg",size:"small",prefix:a.jsx(MB,{size:"small"}),disabled:!t||i})}),a.jsx(X,{icon:a.jsx(Ci,{size:12}),size:"small",theme:"borderless",type:"danger",onClick:()=>l(c),className:"!rounded-full !w-6 !h-6 !p-0 !min-w-0 !text-red-500 hover:!bg-red-50 flex-shrink-0",disabled:!t||i})]},c))})]})},Rv=({currentConfig:e,onConfigImport:t,onConfigReset:r,styleState:n,messages:i})=>{const{t:s}=Ze(),o=m.useRef(null),l=()=>{try{const p={...e,timestamp:new Date().toISOString()};localStorage.setItem("playground_config",JSON.stringify(p)),f1e(e,i),Mt.success({content:s("配置已导出到下载文件夹"),duration:3})}catch(p){Mt.error({content:s("导出配置失败: ")+p.message,duration:3})}},u=()=>{var p;(p=o.current)==null||p.click()},c=async p=>{const g=p.target.files[0];if(g)try{const y=await p1e(g);Je.confirm({title:s("确认导入配置"),content:s("导入的配置将覆盖当前设置,是否继续?"),okText:s("确定导入"),cancelText:s("取消"),onOk:()=>{t(y),Mt.success({content:s("配置导入成功"),duration:3})}})}catch(y){Mt.error({content:s("导入配置失败: ")+y.message,duration:3})}finally{p.target.value=""}},d=()=>{Je.confirm({title:s("重置配置"),content:s("将清除所有保存的配置并恢复默认设置,此操作不可撤销。是否继续?"),okText:s("确定重置"),cancelText:s("取消"),okButtonProps:{type:"danger"},onOk:()=>{Je.confirm({title:s("重置选项"),content:s('是否同时重置对话消息?选择"是"将清空所有对话记录并恢复默认示例;选择"否"将保留当前对话记录。'),okText:s("同时重置消息"),cancelText:s("仅重置配置"),okButtonProps:{type:"danger"},onOk:()=>{mx(),r({resetMessages:!0}),Mt.success({content:s("配置和消息已全部重置"),duration:3})},onCancel:()=>{mx(),r({resetMessages:!1}),Mt.success({content:s("配置已重置,对话消息已保留"),duration:3})}})}})},h=()=>{if(d1e()){const p=h1e();if(p){const g=new Date(p);return s("上次保存: ")+g.toLocaleString()}return s("已有保存的配置")}return s("暂无保存的配置")},f=[{node:"item",name:"export",onClick:l,children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(D9,{size:14}),s("导出配置")]})},{node:"item",name:"import",onClick:u,children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(a4,{size:14}),s("导入配置")]})},{node:"divider"},{node:"item",name:"reset",onClick:d,children:a.jsxs("div",{className:"flex items-center gap-2 text-red-600",children:[a.jsx(n4,{size:14}),s("重置配置")]})}];return n.isMobile?a.jsxs(a.Fragment,{children:[a.jsx(er,{trigger:"click",position:"bottomLeft",showTick:!0,menu:f,children:a.jsx(X,{icon:a.jsx(Ple,{size:14}),theme:"borderless",type:"tertiary",size:"small",className:"!rounded-lg !text-gray-600 hover:!text-blue-600 hover:!bg-blue-50"})}),a.jsx("input",{ref:o,type:"file",accept:".json",onChange:c,style:{display:"none"}})]}):a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx(Ie.Text,{className:"text-xs text-gray-500",children:h()}),a.jsx(X,{icon:a.jsx(n4,{size:12}),size:"small",theme:"borderless",type:"danger",onClick:d,className:"!rounded-full !text-xs !px-2"})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx(X,{icon:a.jsx(D9,{size:12}),size:"small",theme:"solid",type:"primary",onClick:l,className:"!rounded-lg flex-1 !text-xs !h-7",children:s("导出")}),a.jsx(X,{icon:a.jsx(a4,{size:12}),size:"small",theme:"outline",type:"primary",onClick:u,className:"!rounded-lg flex-1 !text-xs !h-7",children:s("导入")})]}),a.jsx("input",{ref:o,type:"file",accept:".json",onChange:c,style:{display:"none"}})]})},Tye=({customRequestMode:e,customRequestBody:t,onCustomRequestModeChange:r,onCustomRequestBodyChange:n,defaultPayload:i})=>{Ze();const[s,o]=m.useState(!0),[l,u]=m.useState(""),[c,d]=m.useState(t||"");m.useEffect(()=>{if(e&&(!t||t.trim()==="")){const y=i?JSON.stringify(i,null,2):"";d(y),n(y)}},[e,i,t,n]),m.useEffect(()=>{t!==c&&(d(t||""),h(t||""))},[t]);const h=y=>{if(!y.trim())return o(!0),u(""),!0;try{return JSON.parse(y),o(!0),u(""),!0}catch(b){return o(!1),u(`JSON格式错误: ${b.message}`),!1}},f=y=>{d(y),h(y),n(y)},p=y=>{if(r(y),y&&i){const b=JSON.stringify(i,null,2);d(b),n(b)}},g=()=>{try{const y=JSON.parse(c),b=JSON.stringify(y,null,2);d(b),n(b),o(!0),u("")}catch{}};return a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(VS,{size:16,className:"text-gray-500"}),a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:"自定义请求体模式"})]}),a.jsx(Jn,{checked:e,onChange:p,checkedText:"开",uncheckedText:"关",size:"small"})]}),e&&a.jsxs(a.Fragment,{children:[a.jsx(cr,{type:"warning",description:"启用此模式后,将使用您自定义的请求体发送API请求,模型配置面板的参数设置将被忽略。",icon:a.jsx(vh,{size:16}),className:"!rounded-lg",closable:!1}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:"请求体 JSON"}),a.jsxs("div",{className:"flex items-center gap-2",children:[s?a.jsxs("div",{className:"flex items-center gap-1 text-green-600",children:[a.jsx(Qa,{size:14}),a.jsx(Ie.Text,{className:"text-xs",children:"格式正确"})]}):a.jsxs("div",{className:"flex items-center gap-1 text-red-600",children:[a.jsx(Ci,{size:14}),a.jsx(Ie.Text,{className:"text-xs",children:"格式错误"})]}),a.jsx(X,{theme:"borderless",type:"tertiary",size:"small",icon:a.jsx(iu,{size:14}),onClick:g,disabled:!s,className:"!rounded-lg",children:"格式化"})]})]}),a.jsx(n6,{value:c,onChange:f,placeholder:'{"model": "gpt-4o", "messages": [...], ...}',autosize:{minRows:8,maxRows:20},className:`custom-request-textarea !rounded-lg font-mono text-sm ${s?"":"!border-red-500"}`,style:{fontFamily:'Consolas, Monaco, "Courier New", monospace',lineHeight:"1.5"}}),!s&&l&&a.jsx(Ie.Text,{type:"danger",className:"text-xs mt-1 block",children:l}),a.jsx(Ie.Text,{className:"text-xs text-gray-500 mt-2 block",children:"请输入有效的JSON格式的请求体。您可以参考预览面板中的默认请求体格式。"})]})]})]})},Pye=({inputs:e,parameterEnabled:t,models:r,groups:n,styleState:i,showDebugPanel:s,customRequestMode:o,customRequestBody:l,onInputChange:u,onParameterToggle:c,onCloseSettings:d,onConfigImport:h,onConfigReset:f,onCustomRequestModeChange:p,onCustomRequestBodyChange:g,previewPayload:y,messages:b})=>{const{t:x}=Ze(),v={inputs:e,parameterEnabled:t,showDebugPanel:s,customRequestMode:o,customRequestBody:l};return a.jsxs(Le,{className:"h-full flex flex-col",bordered:!1,bodyStyle:{padding:i.isMobile?"16px":"24px",height:"100%",display:"flex",flexDirection:"column"},children:[a.jsxs("div",{className:"flex items-center justify-between mb-6 flex-shrink-0",children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-r from-purple-500 to-pink-500 flex items-center justify-center mr-3",children:a.jsx(lo,{size:20,className:"text-white"})}),a.jsx(Ie.Title,{heading:5,className:"mb-0",children:x("模型配置")})]}),i.isMobile&&d&&a.jsx(X,{icon:a.jsx(Ci,{size:16}),onClick:d,theme:"borderless",type:"tertiary",size:"small",className:"!rounded-lg"})]}),i.isMobile&&a.jsx("div",{className:"mb-4 flex-shrink-0",children:a.jsx(Rv,{currentConfig:v,onConfigImport:h,onConfigReset:f,styleState:{...i,isMobile:!1},messages:b})}),a.jsxs("div",{className:"space-y-6 overflow-y-auto flex-1 pr-2 model-settings-scroll",children:[a.jsx(Tye,{customRequestMode:o,customRequestBody:l,onCustomRequestModeChange:p,onCustomRequestBodyChange:g,defaultPayload:y}),a.jsxs("div",{className:o?"opacity-50":"",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(Xh,{size:16,className:"text-gray-500"}),a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:x("分组")}),o&&a.jsx(Ie.Text,{className:"text-xs text-orange-600",children:"(已在自定义模式中忽略)"})]}),a.jsx(vn,{placeholder:x("请选择分组"),name:"group",required:!0,selection:!0,onChange:E=>u("group",E),value:e.group,autoComplete:"new-password",optionList:n,renderOptionItem:oF,style:{width:"100%"},dropdownStyle:{width:"100%",maxWidth:"100%"},className:"!rounded-lg",disabled:o})]}),a.jsxs("div",{className:o?"opacity-50":"",children:[a.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[a.jsx(i4,{size:16,className:"text-gray-500"}),a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:x("模型")}),o&&a.jsx(Ie.Text,{className:"text-xs text-orange-600",children:"(已在自定义模式中忽略)"})]}),a.jsx(vn,{placeholder:x("请选择模型"),name:"model",required:!0,selection:!0,searchPosition:"dropdown",filter:!0,onChange:E=>u("model",E),value:e.model,autoComplete:"new-password",optionList:r,style:{width:"100%"},dropdownStyle:{width:"100%",maxWidth:"100%"},className:"!rounded-lg",disabled:o})]}),a.jsx("div",{className:o?"opacity-50":"",children:a.jsx(Bye,{imageUrls:e.imageUrls,imageEnabled:e.imageEnabled,onImageUrlsChange:E=>u("imageUrls",E),onImageEnabledChange:E=>u("imageEnabled",E),disabled:o})}),a.jsx("div",{className:o?"opacity-50":"",children:a.jsx(Dye,{inputs:e,parameterEnabled:t,onInputChange:u,onParameterToggle:c,disabled:o})}),a.jsx("div",{className:o?"opacity-50":"",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Qle,{size:16,className:"text-gray-500"}),a.jsx(Ie.Text,{strong:!0,className:"text-sm",children:"流式输出"}),o&&a.jsx(Ie.Text,{className:"text-xs text-orange-600",children:"(已在自定义模式中忽略)"})]}),a.jsx(Jn,{checked:e.stream,onChange:E=>u("stream",E),checkedText:"开",uncheckedText:"关",size:"small",disabled:o})]})})]}),!i.isMobile&&a.jsx("div",{className:"flex-shrink-0 pt-3",children:a.jsx(Rv,{currentConfig:v,onConfigImport:h,onConfigReset:f,styleState:i,messages:b})})]})},_u={MAX_DISPLAY_LENGTH:5e4,PREVIEW_LENGTH:5e3,VERY_LARGE_MULTIPLIER:2},Ls={container:{backgroundColor:"#1e1e1e",color:"#d4d4d4",fontFamily:'Consolas, "Courier New", Monaco, "SF Mono", monospace',fontSize:"13px",lineHeight:"1.4",borderRadius:"8px",border:"1px solid #3c3c3c",position:"relative",overflow:"hidden",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},content:{height:"100%",overflowY:"auto",overflowX:"auto",padding:"16px",margin:0,whiteSpace:"pre",wordBreak:"normal",background:"#1e1e1e"},actionButton:{position:"absolute",zIndex:10,backgroundColor:"rgba(45, 45, 45, 0.9)",border:"1px solid rgba(255, 255, 255, 0.1)",color:"#d4d4d4",borderRadius:"6px",transition:"all 0.2s ease"},actionButtonHover:{backgroundColor:"rgba(60, 60, 60, 0.95)",borderColor:"rgba(255, 255, 255, 0.2)",transform:"scale(1.05)"},noContent:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"#666",fontSize:"14px",fontStyle:"italic",backgroundColor:"var(--semi-color-fill-0)",borderRadius:"8px"},performanceWarning:{padding:"8px 12px",backgroundColor:"rgba(255, 193, 7, 0.1)",border:"1px solid rgba(255, 193, 7, 0.3)",borderRadius:"6px",color:"#ffc107",fontSize:"12px",marginBottom:"8px",display:"flex",alignItems:"center",gap:"8px"}},Nye=e=>e.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,t=>{let r="#b5cea8";return/^"/.test(t)?r=/:$/.test(t)?"#9cdcfe":"#ce9178":/true|false|null/.test(t)&&(r="#569cd6"),`<span style="color: ${r}">${t}</span>`}),Mye=(e,t)=>{if(t==="json")return!0;const r=e.trim();return r.startsWith("{")&&r.endsWith("}")||r.startsWith("[")&&r.endsWith("]")},Iye=e=>{if(!e)return"";if(typeof e=="object")try{return JSON.stringify(e,null,2)}catch{return String(e)}if(typeof e=="string")try{const t=JSON.parse(e);return JSON.stringify(t,null,2)}catch{return e}return String(e)},b5=({content:e,title:t,language:r="json"})=>{const{t:n}=Ze(),[i,s]=m.useState(!1),[o,l]=m.useState(!1),[u,c]=m.useState(!1),[d,h]=m.useState(!1),f=m.useMemo(()=>Iye(e),[e]),p=m.useMemo(()=>{const _=f.length,j=_>_u.MAX_DISPLAY_LENGTH,F=_>_u.MAX_DISPLAY_LENGTH*_u.VERY_LARGE_MULTIPLIER;return{length:_,isLarge:j,isVeryLarge:F}},[f.length]),g=m.useMemo(()=>!p.isLarge||u?f:f.substring(0,_u.PREVIEW_LENGTH)+`
- // ... 内容被截断以提升性能 ...`,[f,p.isLarge,u]),y=m.useMemo(()=>p.isVeryLarge&&!u?g:Mye(g,r)?Nye(g):g,[g,r,p.isVeryLarge,u]),b=m.useCallback(async()=>{try{const _=typeof e=="object"&&e!==null?JSON.stringify(e,null,2):e,j=await Qr(_);if(s(!0),Mt.success(n("已复制到剪贴板")),setTimeout(()=>s(!1),2e3),!j)throw new Error("Copy operation failed")}catch(_){Mt.error(n("复制失败")),console.error("Copy failed:",_)}},[e,n]),x=m.useCallback(()=>{p.isVeryLarge&&!u?(h(!0),setTimeout(()=>{c(!0),h(!1)},100)):c(!u)},[u,p.isVeryLarge]);if(!e){const _={preview:n("正在构造请求体预览..."),request:n("暂无请求数据"),response:n("暂无响应数据")}[t]||n("暂无数据");return a.jsx("div",{style:Ls.noContent,children:a.jsx("span",{children:_})})}const v=p.isLarge?"52px":"12px",E=p.isLarge?"52px":"16px";return a.jsxs("div",{style:Ls.container,className:"h-full",children:[p.isLarge&&a.jsxs("div",{style:Ls.performanceWarning,children:[a.jsx("span",{children:"⚡"}),a.jsx("span",{children:p.isVeryLarge?n("内容较大,已启用性能优化模式"):n("内容较大,部分功能可能受限")})]}),a.jsx("div",{style:{...Ls.actionButton,...o?Ls.actionButtonHover:{},top:v,right:"12px"},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:a.jsx(Gt,{content:n(i?"已复制":"复制代码"),children:a.jsx(X,{icon:a.jsx(of,{size:14}),onClick:b,size:"small",theme:"borderless",style:{backgroundColor:"transparent",border:"none",color:i?"#4ade80":"#d4d4d4",padding:"6px"}})})}),a.jsx("div",{style:{...Ls.content,paddingTop:E},className:"model-settings-scroll",children:d?a.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"200px",color:"#888"},children:[a.jsx("div",{style:{width:"20px",height:"20px",border:"2px solid #444",borderTop:"2px solid #888",borderRadius:"50%",animation:"spin 1s linear infinite",marginRight:"8px"}}),n("正在处理大内容...")]}):a.jsx("div",{dangerouslySetInnerHTML:{__html:y}})}),p.isLarge&&!d&&a.jsx("div",{style:{...Ls.actionButton,bottom:"12px",left:"50%",transform:"translateX(-50%)"},children:a.jsx(Gt,{content:n(u?"收起内容":"显示完整内容"),children:a.jsxs(X,{icon:u?a.jsx(WS,{size:14}):a.jsx(eoe,{size:14}),onClick:x,size:"small",theme:"borderless",style:{backgroundColor:"transparent",border:"none",color:"#d4d4d4",padding:"6px 12px"},children:[n(u?"收起":"展开"),!u&&a.jsxs("span",{style:{fontSize:"11px",opacity:.7,marginLeft:"4px"},children:["(+",Math.round((p.length-_u.PREVIEW_LENGTH)/1e3),"K)"]})]})})})]})},$ye=({debugData:e,activeDebugTab:t,onActiveDebugTabChange:r,styleState:n,onCloseDebugPanel:i,customRequestMode:s})=>{const{t:o}=Ze(),[l,u]=m.useState(t);m.useEffect(()=>{u(t)},[t]);const c=h=>{u(h),r(h)},d=(h,f,p,g)=>{const y={width:32,height:32,margin:"0 12px",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"100%",background:"rgba(var(--semi-grey-1), 1)",color:"var(--semi-color-text)",cursor:"pointer"};return a.jsx(er,{render:a.jsx(er.Menu,{children:h.map(b=>a.jsx(er.Item,{onClick:()=>c(b.itemKey),children:b.tab},b.itemKey))}),children:f==="start"?a.jsx("div",{style:y,onClick:p,children:"←"}):a.jsx("div",{style:y,onClick:p,children:"→"})})};return a.jsxs(Le,{className:"h-full flex flex-col",bordered:!1,bodyStyle:{padding:n.isMobile?"16px":"24px",height:"100%",display:"flex",flexDirection:"column"},children:[a.jsxs("div",{className:"flex items-center justify-between mb-6 flex-shrink-0",children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-r from-green-500 to-blue-500 flex items-center justify-center mr-3",children:a.jsx(VS,{size:20,className:"text-white"})}),a.jsx(Ie.Title,{heading:5,className:"mb-0",children:o("调试信息")})]}),n.isMobile&&i&&a.jsx(X,{icon:a.jsx(Ci,{size:16}),onClick:i,theme:"borderless",type:"tertiary",size:"small",className:"!rounded-lg"})]}),a.jsx("div",{className:"flex-1 overflow-hidden debug-panel",children:a.jsxs(Pn,{renderArrow:d,type:"card",collapsible:!0,className:"h-full",style:{height:"100%",display:"flex",flexDirection:"column"},activeKey:l,onChange:c,children:[a.jsx(Zr,{tab:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Tg,{size:16}),o("预览请求体"),s&&a.jsx("span",{className:"px-1.5 py-0.5 text-xs bg-orange-100 text-orange-600 rounded-full",children:"自定义"})]}),itemKey:"preview",children:a.jsx(b5,{content:e.previewRequest,title:"preview",language:"json"})}),a.jsx(Zr,{tab:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ble,{size:16}),o("实际请求体")]}),itemKey:"request",children:a.jsx(b5,{content:e.request,title:"request",language:"json"})}),a.jsx(Zr,{tab:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(due,{size:16}),o("响应")]}),itemKey:"response",children:a.jsx(b5,{content:e.response,title:"response",language:"json"})})]})}),a.jsx("div",{className:"flex items-center justify-between mt-4 pt-4 flex-shrink-0",children:(e.timestamp||e.previewTimestamp)&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ll,{size:14,className:"text-gray-500"}),a.jsx(Ie.Text,{className:"text-xs text-gray-500",children:l==="preview"&&e.previewTimestamp?`${o("预览更新")}: ${new Date(e.previewTimestamp).toLocaleString()}`:e.timestamp?`${o("最后请求")}: ${new Date(e.timestamp).toLocaleString()}`:""})]})})]})},Lye=Bt.memo(Oye,(e,t)=>e.message.id===t.message.id&&e.message.content===t.message.content&&e.message.status===t.message.status&&e.message.role===t.message.role&&e.message.reasoningContent===t.message.reasoningContent&&e.message.isReasoningExpanded===t.message.isReasoningExpanded&&e.isEditing===t.isEditing&&e.editValue===t.editValue&&e.styleState.isMobile===t.styleState.isMobile),Rye=Bt.memo(Aye,(e,t)=>e.message.id===t.message.id&&e.message.role===t.message.role&&e.isAnyMessageGenerating===t.isAnyMessageGenerating&&e.isEditing===t.isEditing&&e.onMessageReset===t.onMessageReset),zye=Bt.memo(Pye,(e,t)=>JSON.stringify(e.inputs)===JSON.stringify(t.inputs)&&JSON.stringify(e.parameterEnabled)===JSON.stringify(t.parameterEnabled)&&JSON.stringify(e.models)===JSON.stringify(t.models)&&JSON.stringify(e.groups)===JSON.stringify(t.groups)&&e.customRequestMode===t.customRequestMode&&e.customRequestBody===t.customRequestBody&&e.showDebugPanel===t.showDebugPanel&&e.showSettings===t.showSettings&&JSON.stringify(e.previewPayload)===JSON.stringify(t.previewPayload)&&JSON.stringify(e.messages)===JSON.stringify(t.messages)),zv=Bt.memo($ye,(e,t)=>e.show===t.show&&e.activeTab===t.activeTab&&JSON.stringify(e.debugData)===JSON.stringify(t.debugData)&&JSON.stringify(e.previewPayload)===JSON.stringify(t.previewPayload)&&e.customRequestMode===t.customRequestMode&&e.showDebugPanel===t.showDebugPanel),Uye=e=>{const{detailProps:t}=e,{clearContextNode:r,uploadNode:n,inputNode:i,sendNode:s,onClick:o}=t,l=r?Bt.cloneElement(r,{className:`!rounded-full !bg-gray-100 hover:!bg-red-500 hover:!text-white flex-shrink-0 transition-all ${r.props.className||""}`,style:{...r.props.style,width:"32px",height:"32px",minWidth:"32px",padding:0,display:"flex",alignItems:"center",justifyContent:"center"}}):null,u=Bt.cloneElement(s,{className:`!rounded-full !bg-purple-500 hover:!bg-purple-600 flex-shrink-0 transition-all ${s.props.className||""}`,style:{...s.props.style,width:"32px",height:"32px",minWidth:"32px",padding:0,display:"flex",alignItems:"center",justifyContent:"center"}});return a.jsx("div",{className:"p-2 sm:p-4",children:a.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 p-2 bg-gray-50 rounded-xl sm:rounded-2xl shadow-sm hover:shadow-md transition-shadow",style:{border:"1px solid var(--semi-color-border)"},onClick:o,children:[l,a.jsx("div",{className:"flex-1",children:i}),u]})})},Hye=({chatRef:e,message:t,inputs:r,styleState:n,showDebugPanel:i,roleInfo:s,onMessageSend:o,onMessageCopy:l,onMessageReset:u,onMessageDelete:c,onStopGenerator:d,onClearMessages:h,onToggleDebugPanel:f,renderCustomChatContent:p,renderChatBoxAction:g})=>{const{t:y}=Ze(),b=Bt.useCallback(x=>a.jsx(Uye,{...x}),[]);return a.jsxs(Le,{className:"h-full",bordered:!1,bodyStyle:{padding:0,height:"calc(100vh - 66px)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[n.isMobile?a.jsx("div",{className:"pt-4"}):a.jsx("div",{className:"px-6 py-4 bg-gradient-to-r from-purple-500 to-blue-500 rounded-t-2xl",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-white/20 backdrop-blur flex items-center justify-center",children:a.jsx(Ng,{size:20,className:"text-white"})}),a.jsxs("div",{children:[a.jsx(Ie.Title,{heading:5,className:"!text-white mb-0",children:y("AI 对话")}),a.jsx(Ie.Text,{className:"!text-white/80 text-sm hidden sm:inline",children:r.model||y("选择模型开始对话")})]})]}),a.jsx("div",{className:"flex items-center gap-2",children:a.jsx(X,{icon:i?a.jsx(GS,{size:14}):a.jsx(Tg,{size:14}),onClick:f,theme:"borderless",type:"primary",size:"small",className:"!rounded-lg !text-white/80 hover:!text-white hover:!bg-white/10",children:y(i?"隐藏调试":"显示调试")})})]})}),a.jsx("div",{className:"flex-1 overflow-hidden",children:a.jsx(IB,{ref:e,chatBoxRenderConfig:{renderChatBoxContent:p,renderChatBoxAction:g,renderChatBoxTitle:()=>null},renderInputArea:b,roleConfig:s,style:{height:"100%",maxWidth:"100%",overflow:"hidden"},chats:t,onMessageSend:o,onMessageCopy:l,onMessageReset:u,onMessageDelete:c,showClearContext:!0,showStopGenerate:!0,onStopGenerator:d,onClear:h,className:"h-full",placeholder:y("请输入您的问题...")})})]})},qye=({styleState:e,showSettings:t,showDebugPanel:r,onToggleSettings:n,onToggleDebugPanel:i})=>e.isMobile?a.jsxs(a.Fragment,{children:[!t&&a.jsx(X,{icon:a.jsx(lo,{size:18}),style:{position:"fixed",right:16,bottom:90,zIndex:1e3,width:36,height:36,borderRadius:"50%",padding:0,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.2)",background:"linear-gradient(to right, #8b5cf6, #6366f1)"},onClick:n,theme:"solid",type:"primary",className:"lg:hidden"}),!t&&a.jsx(X,{icon:r?a.jsx(GS,{size:18}):a.jsx(Tg,{size:18}),onClick:i,theme:"solid",type:r?"danger":"primary",style:{position:"fixed",right:16,bottom:140,zIndex:1e3,width:36,height:36,borderRadius:"50%",padding:0,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.2)",background:r?"linear-gradient(to right, #e11d48, #be123c)":"linear-gradient(to right, #4f46e5, #6366f1)"},className:"lg:hidden !rounded-full !p-0"})]}):null,Wye=e=>{if(!e)return"https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/docs-icon.png";const t=e[0].toUpperCase(),n=`
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
- <circle cx="16" cy="16" r="16" fill="${To(e)}" />
- <text x="50%" y="50%" dominant-baseline="central" text-anchor="middle" font-size="16" fill="#ffffff" font-family="sans-serif">${t}</text>
- </svg>
- `;return`data:image/svg+xml;base64,${btoa(n)}`},Vye=()=>{var Be,Ae;const{t:e}=Ze(),[t]=m.useContext(Xi),r=mi(),n={isMobile:r},[i]=$2(),s=m1e(),{inputs:o,parameterEnabled:l,showDebugPanel:u,customRequestMode:c,customRequestBody:d,showSettings:h,models:f,groups:p,status:g,message:y,debugData:b,activeDebugTab:x,previewPayload:v,sseSourceRef:E,chatRef:_,handleInputChange:j,handleParameterToggle:F,debouncedSaveConfig:k,saveMessagesImmediately:U,handleConfigImport:W,handleConfigReset:K,setShowSettings:$,setModels:O,setGroups:R,setStatus:z,setMessage:H,setDebugData:B,setActiveDebugTab:Y,setPreviewPayload:P,setShowDebugPanel:le,setCustomRequestMode:be,setCustomRequestBody:V}=s,{sendRequest:te,onStopGenerator:de}=y1e(H,B,Y,E,U);v1e(t,o,j,O,R);const{editingMessageId:ee,editValue:ie,setEditValue:G,handleMessageEdit:N,handleEditSave:I,handleEditCancel:T}=x1e(H,o,l,te,U),{syncMessageToCustomBody:J,syncCustomBodyToMessage:ve}=b1e(c,d,y,o,V,H,k),Z={user:{name:((Be=t==null?void 0:t.user)==null?void 0:Be.username)||"User",avatar:Wye((Ae=t==null?void 0:t.user)==null?void 0:Ae.username)},assistant:{name:"Assistant",avatar:Sa()},system:{name:"System",avatar:Sa()}},ge=g1e(y,H,Oe,U),De=m.useCallback(()=>{try{if(c&&d&&d.trim())try{return JSON.parse(d)}catch(he){console.warn("自定义请求体JSON解析失败,回退到默认预览:",he)}let Q=[...y];if(!(Q.length===0||Q.every(he=>he.role!==li.USER))){for(let he=Q.length-1;he>=0;he--)if(Q[he].role===li.USER){if(o.imageEnabled&&o.imageUrls){const se=o.imageUrls.filter(D=>D.trim()!=="");if(se.length>0){const D=Lu(Q[he])||"示例消息",ce=n7(D,se,!0);Q[he]={...Q[he],content:ce}}}break}}return D5(Q,null,o,l)}catch(Q){return console.error("构造预览请求体失败:",Q),null}},[o,l,y,c,d]);function Oe(Q,he){console.log("attachment: ",he);const se=A5(li.USER,Q),D=iw();if(c&&d)try{const Qe=JSON.parse(d);H(Fe=>{const Ve=[...Fe,se,D];return te(Qe,Qe.stream!==!1),setTimeout(()=>U(Ve),0),Ve});return}catch(Qe){console.error("自定义请求体JSON解析失败:",Qe),Mt.error(Ou.JSON_PARSE_ERROR);return}const ce=o.imageUrls.filter(Qe=>Qe.trim()!==""),Ce=n7(Q,ce,o.imageEnabled),Te=A5(li.USER,Ce);H(Qe=>{const Fe=[...Qe,Te],Ve=D5(Fe,null,o,l);te(Ve,o.stream),o.imageEnabled&&setTimeout(()=>{j("imageEnabled",!1)},100);const ot=[...Fe,D];return setTimeout(()=>U(ot),0),ot})}const ae=m.useCallback(Q=>{H(he=>he.map(se=>se.id===Q&&se.role===li.ASSISTANT?{...se,isReasoningExpanded:!se.isReasoningExpanded}:se))},[H]),we=m.useCallback(({message:Q,className:he})=>{const se=ee===Q.id;return a.jsx(Lye,{message:Q,className:he,styleState:n,onToggleReasoningExpansion:ae,isEditing:se,onEditSave:I,onEditCancel:T,editValue:ie,onEditValueChange:G})},[n,ee,ie,I,T,G,ae]),ne=m.useCallback(Q=>{const{message:he}=Q,se=y.some(ce=>ce.status==="loading"||ce.status==="incomplete"),D=ee===he.id;return a.jsx(Rye,{message:he,styleState:n,onMessageReset:ge.handleMessageReset,onMessageCopy:ge.handleMessageCopy,onMessageDelete:ge.handleMessageDelete,onRoleToggle:ge.handleRoleToggle,onMessageEdit:N,isAnyMessageGenerating:se,isEditing:D})},[ge,n,y,ee,N]);m.useEffect(()=>{J()},[y,J]),m.useEffect(()=>{ve()},[d,ve]),m.useEffect(()=>{i.get("expired")&&Mt.warning(e("登录过期,请重新登录!"))},[i,e]),m.useEffect(()=>{const Q=setTimeout(()=>{const he=De();P(he),B(se=>({...se,previewRequest:he?JSON.stringify(he,null,2):null,previewTimestamp:he?new Date().toISOString():null}))},300);return()=>clearTimeout(Q)},[y,o,l,c,d,De,P,B]),m.useEffect(()=>{k()},[o,l,u,c,d,k]);const ke=m.useCallback(()=>{H([]),setTimeout(()=>U([]),0)},[H,U]);return a.jsx("div",{className:"h-full bg-gray-50 mt-[64px]",children:a.jsxs(ln,{style:{height:"100%",background:"transparent"},className:"flex flex-col md:flex-row",children:[(h||!r)&&a.jsx(ln.Sider,{style:{background:"transparent",borderRight:"none",flexShrink:0,minWidth:r?"100%":320,maxWidth:r?"100%":320,height:r?"auto":"calc(100vh - 66px)",overflow:"auto",position:r?"fixed":"relative",zIndex:r?1e3:1,width:"100%",top:0,left:0,right:0,bottom:0},width:r?"100%":320,className:r?"bg-white shadow-lg":"",children:a.jsx(zye,{inputs:o,parameterEnabled:l,models:f,groups:p,styleState:n,showSettings:h,showDebugPanel:u,customRequestMode:c,customRequestBody:d,onInputChange:j,onParameterToggle:F,onCloseSettings:()=>$(!1),onConfigImport:W,onConfigReset:K,onCustomRequestModeChange:be,onCustomRequestBodyChange:V,previewPayload:v,messages:y})}),a.jsxs(ln.Content,{className:"relative flex-1 overflow-hidden",children:[a.jsxs("div",{className:"overflow-hidden flex flex-col lg:flex-row h-[calc(100vh-66px)]",children:[a.jsx("div",{className:"flex-1 flex flex-col",children:a.jsx(Hye,{chatRef:_,message:y,inputs:o,styleState:n,showDebugPanel:u,roleInfo:Z,onMessageSend:Oe,onMessageCopy:ge.handleMessageCopy,onMessageReset:ge.handleMessageReset,onMessageDelete:ge.handleMessageDelete,onStopGenerator:de,onClearMessages:ke,onToggleDebugPanel:()=>le(!u),renderCustomChatContent:we,renderChatBoxAction:ne})}),u&&!r&&a.jsx("div",{className:"w-96 flex-shrink-0 h-full",children:a.jsx(zv,{debugData:b,activeDebugTab:x,onActiveDebugTabChange:Y,styleState:n,customRequestMode:c})})]}),u&&r&&a.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1e3,backgroundColor:"white",overflow:"auto"},className:"shadow-lg",children:a.jsx(zv,{debugData:b,activeDebugTab:x,onActiveDebugTabChange:Y,styleState:n,showDebugPanel:u,onCloseDebugPanel:()=>le(!1),customRequestMode:c})}),a.jsx(qye,{styleState:n,showSettings:h,showDebugPanel:u,onToggleSettings:()=>$(!h),onToggleDebugPanel:()=>le(!u)})]})]})})},x5=e=>{const{t}=Ze(),[r]=$2(),[,n]=m.useContext(Xi),i=go(),s=3,o=async(l,u,c=0)=>{try{const{data:d}=await Se.get(`/api/oauth/${e.type}?code=${l}&state=${u}`),{success:h,message:f,data:p}=d;if(!h)throw new Error(f||"OAuth2 callback error");f==="bind"?(Pe(t("绑定成功!")),i("/console/personal")):(n({type:"login",payload:p}),localStorage.setItem("user",JSON.stringify(p)),ul(p),nl(),Pe(t("登录成功!")),i("/console/token"))}catch(d){if(c<s)return await new Promise(h=>setTimeout(h,(c+1)*2e3)),o(l,u,c+1);q(d.message||t("授权失败")),i("/console/personal")}};return m.useEffect(()=>{const l=r.get("code"),u=r.get("state");if(!l){q(t("未获取到授权码")),i("/console/personal");return}o(l,u)},[]),a.jsx(pr,{})},Gye=()=>{var he,se,D,ce,Ce,Te,Qe;const[e,t]=m.useContext(Xi);let r=go();const{t:n}=Ze(),i=d6(),[s,o]=m.useState({wechat_verification_code:"",email_verification_code:"",email:"",self_account_deletion_confirmation:"",original_password:"",set_new_password:"",set_new_password_confirmation:""}),[l,u]=m.useState({}),[c,d]=m.useState(!1),[h,f]=m.useState(!1),[p,g]=m.useState(!1),[y,b]=m.useState(!1),[x,v]=m.useState(!1),[E,_]=m.useState(""),[j,F]=m.useState(""),[k,U]=m.useState(!1),[W,K]=m.useState(!1),[$,O]=m.useState(30),[R,z]=m.useState(""),[H,B]=m.useState([]),[Y,P]=m.useState(()=>{const Fe=localStorage.getItem("modelsExpanded");return Fe?JSON.parse(Fe):!1}),[le,be]=m.useState("all"),V=25,[te,de]=m.useState({warningType:"email",warningThreshold:1e5,webhookUrl:"",webhookSecret:"",notificationEmail:"",acceptUnsetModelRatioModel:!1,recordIpLog:!1}),[ee,ie]=m.useState(!0),[G,N]=m.useState(!0);m.useEffect(()=>{let Fe=localStorage.getItem("status");Fe&&(Fe=JSON.parse(Fe),u(Fe),Fe.turnstile_check&&(v(!0),_(Fe.turnstile_site_key))),J().then(Ve=>{console.log(e)}),ve().then()},[]),m.useEffect(()=>{let Fe=null;return W&&$>0?Fe=setInterval(()=>{O($-1)},1e3):$===0&&(K(!1),O(30)),()=>clearInterval(Fe)},[W,$]),m.useEffect(()=>{var Fe;if((Fe=e==null?void 0:e.user)!=null&&Fe.setting){const Ve=JSON.parse(e.user.setting);de({warningType:Ve.notify_type||"email",warningThreshold:Ve.quota_warning_threshold||5e5,webhookUrl:Ve.webhook_url||"",webhookSecret:Ve.webhook_secret||"",notificationEmail:Ve.notification_email||"",acceptUnsetModelRatioModel:Ve.accept_unset_model_ratio_model||!1,recordIpLog:Ve.record_ip_log||!1})}},[(he=e==null?void 0:e.user)==null?void 0:he.setting]),m.useEffect(()=>{localStorage.setItem("modelsExpanded",JSON.stringify(Y))},[Y]);const I=(Fe,Ve)=>{o(ot=>({...ot,[Fe]:Ve}))},T=async()=>{const Fe=await Se.get("/api/user/token"),{success:Ve,message:ot,data:Ot}=Fe.data;Ve?(z(Ot),await Qr(Ot),Pe(n("令牌已重置并已复制到剪贴板"))):q(ot)},J=async()=>{let Fe=await Se.get("/api/user/self");const{success:Ve,message:ot,data:Ot}=Fe.data;Ve?t({type:"login",payload:Ot}):q(ot)},ve=async()=>{ie(!0);try{let Fe=await Se.get("/api/user/models");const{success:Ve,message:ot,data:Ot}=Fe.data;Ve?Ot!=null&&B(Ot):q(ot)}catch{q(n("加载模型列表失败"))}finally{ie(!1)}},Z=async Fe=>{Fe.target.select(),await Qr(Fe.target.value),Pe(n("系统令牌已复制到剪切板"))},ge=async()=>{if(s.self_account_deletion_confirmation!==e.user.username){q(n("请输入你的账户名以确认删除!"));return}const Fe=await Se.delete("/api/user/self"),{success:Ve,message:ot}=Fe.data;Ve?(Pe(n("账户已删除!")),await Se.get("/api/user/logout"),t({type:"logout"}),localStorage.removeItem("user"),r("/login")):q(ot)},De=async()=>{if(s.wechat_verification_code==="")return;const Fe=await Se.get(`/api/oauth/wechat/bind?code=${s.wechat_verification_code}`),{success:Ve,message:ot}=Fe.data;Ve?(Pe(n("微信账户绑定成功!")),f(!1)):q(ot)},Oe=async()=>{if(s.original_password===""){q(n("请输入原密码!"));return}if(s.set_new_password===""){q(n("请输入新密码!"));return}if(s.original_password===s.set_new_password){q(n("新密码需要和原密码不一致!"));return}if(s.set_new_password!==s.set_new_password_confirmation){q(n("两次输入的密码不一致!"));return}const Fe=await Se.put("/api/user/self",{original_password:s.original_password,password:s.set_new_password}),{success:Ve,message:ot}=Fe.data;Ve?(Pe(n("密码修改成功!")),f(!1)):q(ot),d(!1)},ae=async()=>{if(s.email===""){q(n("请输入邮箱!"));return}if(K(!0),x&&j===""){nr(n("请稍后几秒重试,Turnstile 正在检查用户环境!"));return}U(!0);const Fe=await Se.get(`/api/verification?email=${s.email}&turnstile=${j}`),{success:Ve,message:ot}=Fe.data;Ve?Pe(n("验证码发送成功,请检查邮箱!")):q(ot),U(!1)},we=async()=>{if(s.email_verification_code===""){q(n("请输入邮箱验证码!"));return}U(!0);const Fe=await Se.get(`/api/oauth/email/bind?email=${s.email}&code=${s.email_verification_code}`),{success:Ve,message:ot}=Fe.data;Ve?(Pe(n("邮箱账户绑定成功!")),g(!1),e.user.email=s.email):q(ot),U(!1)},ne=()=>e.user?e.user.username:"null",ke=()=>{const Fe=ne();return Fe&&Fe.length>0?Fe.slice(0,2).toUpperCase():"NA"},Be=async Fe=>{await Qr(Fe)?Pe(n("已复制:")+Fe):Je.error({title:n("无法复制到剪贴板,请手动复制"),content:Fe})},Ae=(Fe,Ve)=>{de(ot=>({...ot,[Fe]:Ve.target?Ve.target.value!==void 0?Ve.target.value:Ve.target.checked:Ve}))},Q=async()=>{try{const Fe=await Se.put("/api/user/setting",{notify_type:te.warningType,quota_warning_threshold:parseFloat(te.warningThreshold),webhook_url:te.webhookUrl,webhook_secret:te.webhookSecret,notification_email:te.notificationEmail,accept_unset_model_ratio_model:te.acceptUnsetModelRatioModel,record_ip_log:te.recordIpLog});Fe.data.success?(Pe(n("设置保存成功")),await J()):q(Fe.data.message)}catch{q(n("设置保存失败"))}};return a.jsxs("div",{className:"bg-gray-50 mt-[64px]",children:[a.jsx("div",{className:"flex justify-center",children:a.jsx("div",{className:"w-full",children:a.jsxs(Le,{className:"!rounded-2xl shadow-lg border-0",children:[a.jsxs(Le,{className:"!rounded-2xl !border-0 !shadow-lg overflow-hidden",style:{background:i==="dark"?"linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%)":"linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%)",position:"relative"},bodyStyle:{padding:0},children:[a.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[a.jsx("div",{className:"absolute -top-10 -right-10 w-40 h-40 bg-slate-400 dark:bg-slate-500 opacity-5 rounded-full"}),a.jsx("div",{className:"absolute -bottom-16 -left-16 w-48 h-48 bg-slate-300 dark:bg-slate-400 opacity-8 rounded-full"}),a.jsx("div",{className:"absolute top-1/2 right-1/4 w-24 h-24 bg-slate-400 dark:bg-slate-500 opacity-6 rounded-full"})]}),a.jsxs("div",{className:"relative p-4 sm:p-6 md:p-8 text-gray-600 dark:text-gray-300",children:[a.jsxs("div",{className:"flex justify-between items-start mb-4 sm:mb-6",children:[a.jsxs("div",{className:"flex items-center flex-1 min-w-0",children:[a.jsx(dr,{size:"large",className:"mr-3 sm:mr-4 shadow-md flex-shrink-0 bg-slate-500 dark:bg-slate-400",children:ke()}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"text-base sm:text-lg font-semibold truncate text-gray-800 dark:text-gray-100",children:ne()}),a.jsxs("div",{className:"mt-1 flex flex-wrap gap-1 sm:gap-2",children:[Ih()?a.jsx(ye,{size:"small",className:"!rounded-full bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-300",style:{fontWeight:"500"},children:n("超级管理员")}):Nr()?a.jsx(ye,{size:"small",className:"!rounded-full bg-gray-50 dark:bg-gray-700 text-gray-600 dark:text-gray-300",style:{fontWeight:"500"},children:n("管理员")}):a.jsx(ye,{size:"small",className:"!rounded-full bg-slate-50 dark:bg-slate-700 text-slate-600 dark:text-slate-300",style:{fontWeight:"500"},children:n("普通用户")}),a.jsxs(ye,{size:"small",className:"!rounded-full bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300",style:{fontWeight:"500"},children:["ID: ",(se=e==null?void 0:e.user)==null?void 0:se.id]})]})]})]}),a.jsx("div",{className:"w-10 h-10 sm:w-12 sm:h-12 rounded-lg flex items-center justify-center shadow-md flex-shrink-0 ml-2 bg-slate-400 dark:bg-slate-500",children:a.jsx(Js,{size:"default",className:"text-white"})})]}),a.jsxs("div",{className:"mb-4 sm:mb-6",children:[a.jsx("div",{className:"text-xs sm:text-sm mb-1 sm:mb-2 text-gray-500 dark:text-gray-400",children:n("当前余额")}),a.jsx("div",{className:"text-2xl sm:text-3xl md:text-4xl font-bold tracking-wide text-gray-900 dark:text-gray-100",children:Tt((D=e==null?void 0:e.user)==null?void 0:D.quota)})]}),a.jsx("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-end",children:a.jsxs("div",{className:"grid grid-cols-3 gap-2 sm:flex sm:space-x-6 lg:space-x-8 mb-3 sm:mb-0",children:[a.jsxs("div",{className:"text-center sm:text-left",children:[a.jsx("div",{className:"text-xs text-gray-400 dark:text-gray-500",children:n("历史消耗")}),a.jsx("div",{className:"text-xs sm:text-sm font-medium truncate text-gray-600 dark:text-gray-300",children:Tt((ce=e==null?void 0:e.user)==null?void 0:ce.used_quota)})]}),a.jsxs("div",{className:"text-center sm:text-left",children:[a.jsx("div",{className:"text-xs text-gray-400 dark:text-gray-500",children:n("请求次数")}),a.jsx("div",{className:"text-xs sm:text-sm font-medium truncate text-gray-600 dark:text-gray-300",children:((Ce=e.user)==null?void 0:Ce.request_count)||0})]}),a.jsxs("div",{className:"text-center sm:text-left",children:[a.jsx("div",{className:"text-xs text-gray-400 dark:text-gray-500",children:n("用户分组")}),a.jsx("div",{className:"text-xs sm:text-sm font-medium truncate text-gray-600 dark:text-gray-300",children:((Te=e==null?void 0:e.user)==null?void 0:Te.group)||n("默认")})]})]})}),a.jsx("div",{className:"absolute top-0 left-0 w-full h-2 bg-gradient-to-r from-slate-300 via-slate-400 to-slate-500 dark:from-slate-600 dark:via-slate-500 dark:to-slate-400 opacity-40"})]})]}),a.jsx("div",{className:"p-4",children:a.jsxs(Pn,{type:"line",defaultActiveKey:"models",className:"modern-tabs",children:[a.jsx(Zr,{tab:a.jsxs("div",{className:"flex items-center",children:[a.jsx(lo,{size:16,className:"mr-2"}),n("可用模型")]}),itemKey:"models",children:a.jsx("div",{className:"gap-6 py-4",children:a.jsxs("div",{className:"bg-gray-50 dark:bg-gray-800 rounded-xl",children:[a.jsxs("div",{className:"flex items-center mb-4",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-100 dark:bg-slate-700 flex items-center justify-center mr-3",children:a.jsx(lo,{size:20,className:"text-slate-600 dark:text-slate-300"})}),a.jsxs("div",{children:[a.jsx(Ie.Title,{heading:6,className:"mb-0",children:n("模型列表")}),a.jsx("div",{className:"text-gray-500 text-sm",children:n("点击模型名称可复制")})]})]}),ee?a.jsxs("div",{className:"space-y-4",children:[a.jsx("div",{className:"mb-4",style:{borderBottom:"1px solid var(--semi-color-border)"},children:a.jsx("div",{className:"flex overflow-x-auto py-2 gap-2",children:Array.from({length:8}).map((Fe,Ve)=>a.jsx(Br.Button,{style:{width:Ve===0?130:100+Math.random()*50,height:36,borderRadius:8}},`cat-${Ve}`))})}),a.jsx("div",{className:"flex flex-wrap gap-2",children:Array.from({length:20}).map((Fe,Ve)=>a.jsx(Br.Button,{style:{width:100+Math.random()*100,height:32,borderRadius:16,margin:"4px"}},`model-${Ve}`))})]}):H.length===0?a.jsx("div",{className:"py-8",children:a.jsx(Rr,{image:a.jsx(e2,{style:{width:150,height:150}}),darkModeImage:a.jsx(Qh,{style:{width:150,height:150}}),description:n("没有可用模型"),style:{padding:"24px 0"}})}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"mb-4",children:a.jsx(Pn,{type:"card",activeKey:le,onChange:Fe=>be(Fe),className:"mt-2",children:Object.entries(uo(n)).map(([Fe,Ve])=>{const ot=Fe==="all"?H.length:H.filter(Ot=>Ve.filter({model_name:Ot})).length;return ot===0&&Fe!=="all"?null:a.jsx(Zr,{tab:a.jsxs("span",{className:"flex items-center gap-2",children:[Ve.icon&&a.jsx("span",{className:"w-4 h-4",children:Ve.icon}),Ve.label,a.jsx(ye,{color:le===Fe?"red":"grey",size:"small",shape:"circle",children:ot})]}),itemKey:Fe},Fe)})})}),a.jsx("div",{className:"bg-white dark:bg-gray-700 rounded-lg p-3",children:(()=>{const Fe=uo(n),Ve=le==="all"?H:H.filter(ot=>Fe[le].filter({model_name:ot}));return Ve.length===0?a.jsx(Rr,{image:a.jsx(e2,{style:{width:120,height:120}}),darkModeImage:a.jsx(Qh,{style:{width:120,height:120}}),description:n("该分类下没有可用模型"),style:{padding:"16px 0"}}):Ve.length<=V?a.jsx(pt,{wrap:!0,children:Ve.map(ot=>as(ot,{size:"large",shape:"circle",onClick:()=>Be(ot)}))}):a.jsxs(a.Fragment,{children:[a.jsx(V3,{isOpen:Y,children:a.jsxs(pt,{wrap:!0,children:[Ve.map(ot=>as(ot,{size:"large",shape:"circle",onClick:()=>Be(ot)})),a.jsx(ye,{color:"grey",type:"light",className:"cursor-pointer !rounded-lg",onClick:()=>P(!1),icon:a.jsx(G3,{}),children:n("收起")})]})}),!Y&&a.jsxs(pt,{wrap:!0,children:[Ve.slice(0,V).map(ot=>as(ot,{size:"large",shape:"circle",onClick:()=>Be(ot)})),a.jsxs(ye,{color:"grey",type:"light",className:"cursor-pointer !rounded-lg",onClick:()=>P(!0),icon:a.jsx(E5,{}),children:[n("更多")," ",Ve.length-V," ",n("个模型")]})]})]})})()})]})]})})}),a.jsx(Zr,{tab:a.jsxs("div",{className:"flex items-center",children:[a.jsx(sF,{size:16,className:"mr-2"}),n("账户绑定")]}),itemKey:"account",children:a.jsx("div",{className:"py-4",children:a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[a.jsx(Le,{className:"!rounded-xl transition-shadow",bodyStyle:{padding:"16px"},shadows:"hover",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center flex-1",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-100 dark:bg-slate-700 flex items-center justify-center mr-3",children:a.jsx(Si,{size:"default",className:"text-slate-600 dark:text-slate-300"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"font-medium text-gray-900",children:n("邮箱")}),a.jsx("div",{className:"text-sm text-gray-500 truncate",children:e.user&&e.user.email!==""?e.user.email:n("未绑定")})]})]}),a.jsx(X,{type:"primary",theme:"outline",size:"small",onClick:()=>g(!0),className:"!rounded-lg",children:e.user&&e.user.email!==""?n("修改绑定"):n("绑定")})]})}),a.jsx(Le,{className:"!rounded-xl transition-shadow",bodyStyle:{padding:"16px"},shadows:"hover",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center flex-1",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-100 dark:bg-slate-700 flex items-center justify-center mr-3",children:a.jsx(wi,{size:20,className:"text-slate-600 dark:text-slate-300"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"font-medium text-gray-900",children:n("微信")}),a.jsx("div",{className:"text-sm text-gray-500 truncate",children:e.user&&e.user.wechat_id!==""?n("已绑定"):n("未绑定")})]})]}),a.jsx(X,{type:"primary",theme:"outline",size:"small",disabled:!l.wechat_login,onClick:()=>f(!0),className:"!rounded-lg",children:e.user&&e.user.wechat_id!==""?n("修改绑定"):l.wechat_login?n("绑定"):n("未启用")})]})}),a.jsx(Le,{className:"!rounded-xl transition-shadow",bodyStyle:{padding:"16px"},shadows:"hover",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center flex-1",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-100 dark:bg-slate-700 flex items-center justify-center mr-3",children:a.jsx(r6,{size:"default",className:"text-slate-600 dark:text-slate-300"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"font-medium text-gray-900",children:n("GitHub")}),a.jsx("div",{className:"text-sm text-gray-500 truncate",children:e.user&&e.user.github_id!==""?e.user.github_id:n("未绑定")})]})]}),a.jsx(X,{type:"primary",theme:"outline",size:"small",onClick:()=>m6(l.github_client_id),disabled:e.user&&e.user.github_id!==""||!l.github_oauth,className:"!rounded-lg",children:l.github_oauth?n("绑定"):n("未启用")})]})}),a.jsx(Le,{className:"!rounded-xl transition-shadow",bodyStyle:{padding:"16px"},shadows:"hover",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center flex-1",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-100 dark:bg-slate-700 flex items-center justify-center mr-3",children:a.jsx($B,{size:"default",className:"text-slate-600 dark:text-slate-300"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"font-medium text-gray-900",children:n("OIDC")}),a.jsx("div",{className:"text-sm text-gray-500 truncate",children:e.user&&e.user.oidc_id!==""?e.user.oidc_id:n("未绑定")})]})]}),a.jsx(X,{type:"primary",theme:"outline",size:"small",onClick:()=>p6(l.oidc_authorization_endpoint,l.oidc_client_id),disabled:e.user&&e.user.oidc_id!==""||!l.oidc_enabled,className:"!rounded-lg",children:l.oidc_enabled?n("绑定"):n("未启用")})]})}),a.jsx(Le,{className:"!rounded-xl transition-shadow",bodyStyle:{padding:"16px"},shadows:"hover",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center flex-1",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-100 dark:bg-slate-700 flex items-center justify-center mr-3",children:a.jsx(q0e,{size:20,className:"text-slate-600 dark:text-slate-300"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"font-medium text-gray-900",children:n("Telegram")}),a.jsx("div",{className:"text-sm text-gray-500 truncate",children:e.user&&e.user.telegram_id!==""?e.user.telegram_id:n("未绑定")})]})]}),a.jsx("div",{className:"flex-shrink-0",children:l.telegram_oauth?e.user.telegram_id!==""?a.jsx(X,{disabled:!0,size:"small",className:"!rounded-lg",children:n("已绑定")}):a.jsx("div",{className:"scale-75",children:a.jsx(Zv,{dataAuthUrl:"/api/oauth/telegram/bind",botName:l.telegram_bot_name})}):a.jsx(X,{disabled:!0,size:"small",className:"!rounded-lg",children:n("未启用")})})]})}),a.jsx(Le,{className:"!rounded-xl transition-shadow",bodyStyle:{padding:"16px"},shadows:"hover",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center flex-1",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-100 dark:bg-slate-700 flex items-center justify-center mr-3",children:a.jsx(H0e,{size:20,className:"text-slate-600 dark:text-slate-300"})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"font-medium text-gray-900",children:n("LinuxDO")}),a.jsx("div",{className:"text-sm text-gray-500 truncate",children:e.user&&e.user.linux_do_id!==""?e.user.linux_do_id:n("未绑定")})]})]}),a.jsx(X,{type:"primary",theme:"outline",size:"small",onClick:()=>g6(l.linuxdo_client_id),disabled:e.user&&e.user.linux_do_id!==""||!l.linuxdo_oauth,className:"!rounded-lg",children:l.linuxdo_oauth?n("绑定"):n("未启用")})]})})]})})}),a.jsx(Zr,{tab:a.jsxs("div",{className:"flex items-center",children:[a.jsx(N9,{size:16,className:"mr-2"}),n("安全设置")]}),itemKey:"security",children:a.jsx("div",{className:"py-4",children:a.jsx("div",{className:"space-y-6",children:a.jsxs(pt,{vertical:!0,className:"w-full",children:[a.jsx(Le,{className:"!rounded-xl w-full",bodyStyle:{padding:"20px"},shadows:"hover",children:a.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:justify-between gap-4",children:[a.jsxs("div",{className:"flex items-start w-full sm:w-auto",children:[a.jsx("div",{className:"w-12 h-12 rounded-full bg-slate-100 flex items-center justify-center mr-4 flex-shrink-0",children:a.jsx(pa,{size:"large",className:"text-slate-600"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx(Ie.Title,{heading:6,className:"mb-1",children:n("系统访问令牌")}),a.jsx(Ie.Text,{type:"tertiary",className:"text-sm",children:n("用于API调用的身份验证令牌,请妥善保管")}),R&&a.jsx("div",{className:"mt-3",children:a.jsx(Lt,{readonly:!0,value:R,onClick:Z,size:"large",className:"!rounded-lg",prefix:a.jsx(pa,{})})})]})]}),a.jsx(X,{type:"primary",theme:"solid",onClick:T,className:"!rounded-lg !bg-slate-600 hover:!bg-slate-700 w-full sm:w-auto",icon:a.jsx(pa,{}),children:n(R?"重新生成":"生成令牌")})]})}),a.jsx(Le,{className:"!rounded-xl w-full",bodyStyle:{padding:"20px"},shadows:"hover",children:a.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:justify-between gap-4",children:[a.jsxs("div",{className:"flex items-start w-full sm:w-auto",children:[a.jsx("div",{className:"w-12 h-12 rounded-full bg-slate-100 flex items-center justify-center mr-4 flex-shrink-0",children:a.jsx(oi,{size:"large",className:"text-slate-600"})}),a.jsxs("div",{children:[a.jsx(Ie.Title,{heading:6,className:"mb-1",children:n("密码管理")}),a.jsx(Ie.Text,{type:"tertiary",className:"text-sm",children:n("定期更改密码可以提高账户安全性")})]})]}),a.jsx(X,{type:"primary",theme:"solid",onClick:()=>d(!0),className:"!rounded-lg !bg-slate-600 hover:!bg-slate-700 w-full sm:w-auto",icon:a.jsx(oi,{}),children:n("修改密码")})]})}),a.jsx(Le,{className:"!rounded-xl border-red-200 w-full",bodyStyle:{padding:"20px"},shadows:"hover",children:a.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:justify-between gap-4",children:[a.jsxs("div",{className:"flex items-start w-full sm:w-auto",children:[a.jsx("div",{className:"w-12 h-12 rounded-full bg-slate-100 flex items-center justify-center mr-4 flex-shrink-0",children:a.jsx(lh,{size:"large",className:"text-slate-600"})}),a.jsxs("div",{children:[a.jsx(Ie.Title,{heading:6,className:"mb-1 text-slate-700",children:n("删除账户")}),a.jsx(Ie.Text,{type:"tertiary",className:"text-sm",children:n("此操作不可逆,所有数据将被永久删除")})]})]}),a.jsx(X,{type:"danger",theme:"solid",onClick:()=>b(!0),className:"!rounded-lg w-full sm:w-auto !bg-slate-500 hover:!bg-slate-600",icon:a.jsx(lh,{}),children:n("删除账户")})]})})]})})})}),a.jsx(Zr,{tab:a.jsxs("div",{className:"flex items-center",children:[a.jsx(Dg,{size:16,className:"mr-2"}),n("其他设置")]}),itemKey:"notification",children:a.jsxs("div",{className:"py-4",children:[a.jsxs(Pn,{type:"card",defaultActiveKey:"notify",className:"!rounded-lg",children:[a.jsx(Zr,{tab:n("通知设置"),itemKey:"notify",children:a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"bg-gray-50 rounded-xl",children:[a.jsx(Ie.Text,{strong:!0,className:"block mb-4 pt-4",children:n("通知方式")}),a.jsxs(C5,{value:te.warningType,onChange:Fe=>Ae("warningType",Fe),type:"pureCard",children:[a.jsx(Ui,{value:"email",className:"!p-4 !rounded-lg",children:a.jsxs("div",{className:"flex items-center",children:[a.jsx(Si,{className:"mr-2 text-slate-600"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-medium",children:n("邮件通知")}),a.jsx("div",{className:"text-sm text-gray-500",children:n("通过邮件接收通知")})]})]})}),a.jsx(Ui,{value:"webhook",className:"!p-4 !rounded-lg",children:a.jsxs("div",{className:"flex items-center",children:[a.jsx(I9,{size:16,className:"mr-2 text-slate-600"}),a.jsxs("div",{children:[a.jsx("div",{className:"font-medium",children:n("Webhook通知")}),a.jsx("div",{className:"text-sm text-gray-500",children:n("通过HTTP请求接收通知")})]})]})})]})]}),te.warningType==="webhook"&&a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"bg-white rounded-xl",children:[a.jsx(Ie.Text,{strong:!0,className:"block mb-3",children:n("Webhook地址")}),a.jsx(Lt,{value:te.webhookUrl,onChange:Fe=>Ae("webhookUrl",Fe),placeholder:n("请输入Webhook地址,例如: https://example.com/webhook"),size:"large",className:"!rounded-lg",prefix:a.jsx(I9,{size:16,className:"m-2"})}),a.jsx("div",{className:"text-gray-500 text-sm mt-2",children:n("只支持https,系统将以 POST 方式发送通知,请确保地址可以接收 POST 请求")})]}),a.jsxs("div",{className:"bg-white rounded-xl",children:[a.jsx(Ie.Text,{strong:!0,className:"block mb-3",children:n("接口凭证(可选)")}),a.jsx(Lt,{value:te.webhookSecret,onChange:Fe=>Ae("webhookSecret",Fe),placeholder:n("请输入密钥"),size:"large",className:"!rounded-lg",prefix:a.jsx(pa,{})}),a.jsx("div",{className:"text-gray-500 text-sm mt-2",children:n("密钥将以 Bearer 方式添加到请求头中,用于验证webhook请求的合法性")})]}),a.jsxs("div",{className:"bg-slate-50 rounded-xl",children:[a.jsxs("div",{className:"flex items-center justify-between cursor-pointer",onClick:()=>N(!G),children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx(Loe,{size:16,className:"mr-2 text-slate-600"}),a.jsx(Ie.Text,{strong:!0,className:"text-slate-700",children:n("Webhook请求结构")})]}),G?a.jsx(G3,{}):a.jsx(E5,{})]}),a.jsx(V3,{isOpen:G,children:a.jsx("pre",{className:"mt-4 bg-gray-800 text-gray-100 rounded-lg text-sm overflow-x-auto",children:`{
- "type": "quota_exceed", // 通知类型
- "title": "标题", // 通知标题
- "content": "通知内容", // 通知内容,支持 {{value}} 变量占位符
- "values": ["值1", "值2"], // 按顺序替换content中的 {{value}} 占位符
- "timestamp": 1739950503 // 时间戳
- }
- 示例:
- {
- "type": "quota_exceed",
- "title": "额度预警通知",
- "content": "您的额度即将用尽,当前剩余额度为 {{value}}",
- "values": ["$0.99"],
- "timestamp": 1739950503
- }`})})]})]}),te.warningType==="email"&&a.jsxs("div",{className:"bg-white rounded-xl",children:[a.jsx(Ie.Text,{strong:!0,className:"block mb-3",children:n("通知邮箱")}),a.jsx(Lt,{value:te.notificationEmail,onChange:Fe=>Ae("notificationEmail",Fe),placeholder:n("留空则使用账号绑定的邮箱"),size:"large",className:"!rounded-lg",prefix:a.jsx(Si,{})}),a.jsx("div",{className:"text-gray-500 text-sm mt-2",children:n("设置用于接收额度预警的邮箱地址,不填则使用账号绑定的邮箱")})]}),a.jsxs("div",{className:"bg-white rounded-xl",children:[a.jsxs(Ie.Text,{strong:!0,className:"block mb-3",children:[n("额度预警阈值")," ",uf(te.warningThreshold)]}),a.jsx(LB,{value:te.warningThreshold,onChange:Fe=>Ae("warningThreshold",Fe),size:"large",className:"!rounded-lg w-full max-w-xs",placeholder:n("请输入预警额度"),data:[{value:1e5,label:"0.2$"},{value:5e5,label:"1$"},{value:1e6,label:"5$"},{value:5e6,label:"10$"}],prefix:a.jsx(w5,{})}),a.jsx("div",{className:"text-gray-500 text-sm mt-2",children:n("当剩余额度低于此数值时,系统将通过选择的方式发送通知")})]})]})}),a.jsx(Zr,{tab:n("价格设置"),itemKey:"price",children:a.jsx("div",{className:"py-4",children:a.jsx("div",{className:"space-y-4",children:a.jsx("div",{className:"bg-white rounded-xl",children:a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-100 flex items-center justify-center mt-1",children:a.jsx(Zh,{size:20,className:"text-slate-600"})}),a.jsx("div",{className:"flex-1",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx(Ie.Text,{strong:!0,className:"block mb-2",children:n("接受未设置价格模型")}),a.jsx("div",{className:"text-gray-500 text-sm",children:n("当模型没有设置价格时仍接受调用,仅当您信任该网站时使用,可能会产生高额费用")})]}),a.jsx(Ln,{checked:te.acceptUnsetModelRatioModel,onChange:Fe=>Ae("acceptUnsetModelRatioModel",Fe.target.checked),className:"ml-4"})]})})]})})})})}),a.jsx(Zr,{tab:n("IP记录"),itemKey:"ip",children:a.jsx("div",{className:"py-4",children:a.jsx("div",{className:"bg-white rounded-xl",children:a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-100 flex items-center justify-center mt-1",children:a.jsx(N9,{size:20,className:"text-slate-600"})}),a.jsx("div",{className:"flex-1",children:a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx(Ie.Text,{strong:!0,className:"block mb-2",children:n("记录请求与错误日志 IP")}),a.jsx("div",{className:"text-gray-500 text-sm",children:n("开启后,仅“消费”和“错误”日志将记录您的客户端 IP 地址")})]}),a.jsx(Ln,{checked:te.recordIpLog,onChange:Fe=>Ae("recordIpLog",Fe.target.checked),className:"ml-4"})]})})]})})})})]}),a.jsx("div",{className:"mt-6 flex justify-end",children:a.jsx(X,{type:"primary",onClick:Q,size:"large",className:"!rounded-lg !bg-slate-600 hover:!bg-slate-700",icon:a.jsx(i6,{}),children:n("保存设置")})})]})})]})})]})})}),a.jsx(Je,{title:a.jsxs("div",{className:"flex items-center",children:[a.jsx(Si,{className:"mr-2 text-blue-500"}),n("绑定邮箱地址")]}),visible:p,onCancel:()=>g(!1),onOk:we,size:"small",centered:!0,maskClosable:!1,className:"modern-modal",children:a.jsxs("div",{className:"space-y-4 py-4",children:[a.jsxs("div",{className:"flex gap-3",children:[a.jsx(Lt,{placeholder:n("输入邮箱地址"),onChange:Fe=>I("email",Fe),name:"email",type:"email",size:"large",className:"!rounded-lg flex-1",prefix:a.jsx(Si,{})}),a.jsx(X,{onClick:ae,disabled:W||k,className:"!rounded-lg",type:"primary",theme:"outline",size:"large",children:W?`${n("重新发送")} (${$})`:n("获取验证码")})]}),a.jsx(Lt,{placeholder:n("验证码"),name:"email_verification_code",value:s.email_verification_code,onChange:Fe=>I("email_verification_code",Fe),size:"large",className:"!rounded-lg",prefix:a.jsx(pa,{})}),x&&a.jsx("div",{className:"flex justify-center",children:a.jsx(tl,{sitekey:E,onVerify:Fe=>{F(Fe)}})})]})}),a.jsx(Je,{title:a.jsxs("div",{className:"flex items-center",children:[a.jsx(wi,{className:"mr-2 text-green-500",size:20}),n("绑定微信账户")]}),visible:h,onCancel:()=>f(!1),footer:null,size:"small",centered:!0,className:"modern-modal",children:a.jsxs("div",{className:"space-y-4 py-4 text-center",children:[a.jsx(RB,{src:l.wechat_qrcode,className:"mx-auto"}),a.jsx("div",{className:"text-gray-600",children:a.jsx("p",{children:n("微信扫码关注公众号,输入「验证码」获取验证码(三分钟内有效)")})}),a.jsx(Lt,{placeholder:n("验证码"),name:"wechat_verification_code",value:s.wechat_verification_code,onChange:Fe=>I("wechat_verification_code",Fe),size:"large",className:"!rounded-lg",prefix:a.jsx(pa,{})}),a.jsx(X,{type:"primary",theme:"solid",size:"large",onClick:De,className:"!rounded-lg w-full !bg-slate-600 hover:!bg-slate-700",icon:a.jsx(wi,{size:16}),children:n("绑定")})]})}),a.jsx(Je,{title:a.jsxs("div",{className:"flex items-center",children:[a.jsx(lh,{className:"mr-2 text-red-500"}),n("删除账户确认")]}),visible:y,onCancel:()=>b(!1),onOk:ge,size:"small",centered:!0,className:"modern-modal",children:a.jsxs("div",{className:"space-y-4 py-4",children:[a.jsx(cr,{type:"danger",description:n("您正在删除自己的帐户,将清空所有数据且不可恢复"),closeIcon:null,className:"!rounded-lg"}),a.jsxs("div",{children:[a.jsx(Ie.Text,{strong:!0,className:"block mb-2 text-red-600",children:n("请输入您的用户名以确认删除")}),a.jsx(Lt,{placeholder:n("输入你的账户名{{username}}以确认删除",{username:` ${(Qe=e==null?void 0:e.user)==null?void 0:Qe.username} `}),name:"self_account_deletion_confirmation",value:s.self_account_deletion_confirmation,onChange:Fe=>I("self_account_deletion_confirmation",Fe),size:"large",className:"!rounded-lg",prefix:a.jsx(Js,{})})]}),x&&a.jsx("div",{className:"flex justify-center",children:a.jsx(tl,{sitekey:E,onVerify:Fe=>{F(Fe)}})})]})}),a.jsx(Je,{title:a.jsxs("div",{className:"flex items-center",children:[a.jsx(oi,{className:"mr-2 text-orange-500"}),n("修改密码")]}),visible:c,onCancel:()=>d(!1),onOk:Oe,size:"small",centered:!0,className:"modern-modal",children:a.jsxs("div",{className:"space-y-4 py-4",children:[a.jsxs("div",{children:[a.jsx(Ie.Text,{strong:!0,className:"block mb-2",children:n("原密码")}),a.jsx(Lt,{name:"original_password",placeholder:n("请输入原密码"),type:"password",value:s.original_password,onChange:Fe=>I("original_password",Fe),size:"large",className:"!rounded-lg",prefix:a.jsx(oi,{})})]}),a.jsxs("div",{children:[a.jsx(Ie.Text,{strong:!0,className:"block mb-2",children:n("新密码")}),a.jsx(Lt,{name:"set_new_password",placeholder:n("请输入新密码"),type:"password",value:s.set_new_password,onChange:Fe=>I("set_new_password",Fe),size:"large",className:"!rounded-lg",prefix:a.jsx(oi,{})})]}),a.jsxs("div",{children:[a.jsx(Ie.Text,{strong:!0,className:"block mb-2",children:n("确认新密码")}),a.jsx(Lt,{name:"set_new_password_confirmation",placeholder:n("请再次输入新密码"),type:"password",value:s.set_new_password_confirmation,onChange:Fe=>I("set_new_password_confirmation",Fe),size:"large",className:"!rounded-lg",prefix:a.jsx(oi,{})})]}),x&&a.jsx("div",{className:"flex justify-center",children:a.jsx(tl,{sitekey:E,onVerify:Fe=>{F(Fe)}})})]})})]})},Kye=()=>{const{t:e}=Ze(),[t,r]=m.useState(!1),[n,i]=m.useState(!1),[s,o]=m.useState({status:!1,root_init:!1,database_type:""}),{Text:l,Title:u}=Ie,c=m.useRef(null),[d,h]=m.useState({username:"",password:"",confirmPassword:"",usageMode:"external"});m.useEffect(()=>{f()},[]);const f=async()=>{try{const y=await Se.get("/api/setup"),{success:b,data:x}=y.data;b?(o(x),x.status&&(window.location.href="/")):q(e("获取初始化状态失败"))}catch(y){console.error("Failed to fetch setup status:",y),q(e("获取初始化状态失败"))}},p=y=>{h({...d,usageMode:y})},g=()=>{if(!c.current){console.error("Form reference is null"),q(e("表单引用错误,请刷新页面重试"));return}const y=c.current.getValues();if(console.log("Form values:",y),!s.root_init){if(!y.username||!y.username.trim()){q(e("请输入管理员用户名"));return}if(!y.password||y.password.length<8){q(e("密码长度至少为8个字符"));return}if(y.password!==y.confirmPassword){q(e("两次输入的密码不一致"));return}}const b={...y};b.SelfUseModeEnabled=y.usageMode==="self",b.DemoSiteEnabled=y.usageMode==="demo",delete b.usageMode,console.log("Submitting data to backend:",b),r(!0),Se.post("/api/setup",b).then(x=>{const{success:v,message:E}=x.data;console.log("API response:",x.data),v?(O5(e("系统初始化成功,正在跳转...")),setTimeout(()=>{window.location.reload()},1500)):q(E||e("初始化失败,请重试"))}).catch(x=>{console.error("API error:",x),q(e("系统初始化失败,请重试")),r(!1)}).finally(()=>{})};return a.jsxs("div",{className:"bg-gray-50 mt-[64px]",children:[a.jsx(ln,{children:a.jsx(ln.Content,{children:a.jsx("div",{className:"flex justify-center px-4 py-8",children:a.jsx("div",{className:"w-full max-w-3xl",children:a.jsxs(Le,{className:"!rounded-2xl shadow-lg border-0",children:[a.jsxs(Le,{className:"!rounded-2xl !border-0 !shadow-2xl overflow-hidden mb-6",style:{background:"linear-gradient(135deg, #f97316 0%, #f59e0b 25%, #f43f5e 50%, #ec4899 75%, #e879f9 100%)",position:"relative"},bodyStyle:{padding:0},children:[a.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[a.jsx("div",{className:"absolute -top-10 -right-10 w-40 h-40 bg-white opacity-10 rounded-full"}),a.jsx("div",{className:"absolute -bottom-16 -left-16 w-48 h-48 bg-white opacity-5 rounded-full"}),a.jsx("div",{className:"absolute top-1/2 right-1/4 w-24 h-24 bg-yellow-400 opacity-10 rounded-full"})]}),a.jsxs("div",{className:"relative py-5 px-6 flex items-center",style:{color:"white"},children:[a.jsx("div",{className:"w-14 h-14 rounded-full bg-white bg-opacity-20 flex items-center justify-center mr-5 shadow-lg flex-shrink-0",children:a.jsx(i6,{size:"large",style:{color:"white"}})}),a.jsxs("div",{className:"text-left",children:[a.jsx(u,{heading:3,style:{color:"white",marginBottom:"2px"},children:e("系统初始化")}),a.jsx(l,{style:{color:"rgba(255, 255, 255, 0.9)",fontSize:"15px"},children:e("欢迎使用,请完成以下设置以开始使用系统")})]})]}),s.database_type==="sqlite"&&a.jsx("div",{className:"px-4",children:a.jsx(cr,{type:"warning",icon:a.jsx("div",{className:"w-12 h-12 rounded-lg bg-orange-50 flex items-center justify-center",children:a.jsx(Hm,{size:22,className:"text-orange-500"})}),closeIcon:null,title:a.jsxs("div",{className:"flex items-center",children:[a.jsx("span",{className:"font-medium",children:e("数据库警告")}),a.jsx(ye,{color:"orange",shape:"circle",className:"ml-2",children:"SQLite"})]}),description:a.jsxs("div",{children:[a.jsx("p",{children:e("您正在使用 SQLite 数据库。如果您在容器环境中运行,请确保已正确设置数据库文件的持久化映射,否则容器重启后所有数据将丢失!")}),a.jsx("p",{className:"mt-1",children:a.jsx("strong",{children:e("建议在生产环境中使用 MySQL 或 PostgreSQL 数据库,或确保 SQLite 数据库文件已映射到宿主机的持久化存储。")})})]}),className:"!rounded-xl mb-6",fullMode:!1,bordered:!0})}),s.database_type==="mysql"&&a.jsx("div",{className:"px-4",children:a.jsx(cr,{type:"info",icon:a.jsx("div",{className:"w-12 h-12 rounded-lg bg-blue-50 flex items-center justify-center",children:a.jsx(Hm,{size:22,className:"text-blue-500"})}),closeIcon:null,title:a.jsxs("div",{className:"flex items-center",children:[a.jsx("span",{className:"font-medium",children:e("数据库信息")}),a.jsx(ye,{color:"blue",shape:"circle",className:"ml-2",children:"MySQL"})]}),description:a.jsx("div",{children:a.jsx("p",{children:e("您正在使用 MySQL 数据库。MySQL 是一个可靠的关系型数据库管理系统,适合生产环境使用。")})}),className:"!rounded-xl mb-6",fullMode:!1,bordered:!0})}),s.database_type==="postgres"&&a.jsx("div",{className:"px-4",children:a.jsx(cr,{type:"success",icon:a.jsx("div",{className:"w-12 h-12 rounded-lg bg-green-50 flex items-center justify-center",children:a.jsx(Hm,{size:22,className:"text-green-500"})}),closeIcon:null,title:a.jsxs("div",{className:"flex items-center",children:[a.jsx("span",{className:"font-medium",children:e("数据库信息")}),a.jsx(ye,{color:"green",shape:"circle",className:"ml-2",children:"PostgreSQL"})]}),description:a.jsx("div",{children:a.jsx("p",{children:e("您正在使用 PostgreSQL 数据库。PostgreSQL 是一个功能强大的开源关系型数据库系统,提供了出色的可靠性和数据完整性,适合生产环境使用。")})}),className:"!rounded-xl mb-6",fullMode:!1,bordered:!0})})]}),a.jsxs(M,{getFormApi:y=>{c.current=y,console.log("Form API set:",y)},initValues:d,children:[a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0 mb-6",children:[a.jsxs("div",{className:"flex items-center mb-4 p-6 rounded-xl",style:{background:"linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%)",position:"relative"},children:[a.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[a.jsx("div",{className:"absolute -top-10 -right-10 w-40 h-40 bg-white opacity-5 rounded-full"}),a.jsx("div",{className:"absolute -bottom-8 -left-8 w-24 h-24 bg-white opacity-10 rounded-full"})]}),a.jsx("div",{className:"w-10 h-10 rounded-full bg-white/20 flex items-center justify-center mr-4 relative",children:a.jsx(Js,{size:"large",style:{color:"#ffffff"}})}),a.jsxs("div",{className:"relative",children:[a.jsx(l,{style:{color:"#ffffff"},className:"text-lg font-medium",children:e("管理员账号")}),a.jsx("div",{style:{color:"#ffffff"},className:"text-sm opacity-80",children:e("设置系统管理员的登录信息")})]})]}),s.root_init?a.jsx(a.Fragment,{children:a.jsx(cr,{type:"info",icon:a.jsx("div",{className:"w-10 h-10 rounded-full bg-blue-50 flex items-center justify-center",children:a.jsx(K3,{size:"large",className:"text-blue-500"})}),closeIcon:null,description:a.jsx("div",{className:"flex items-center",children:a.jsx("span",{children:e("管理员账号已经初始化过,请继续设置其他参数")})}),className:"!rounded-lg"})}):a.jsxs(a.Fragment,{children:[a.jsx(M.Input,{field:"username",label:e("用户名"),placeholder:e("请输入管理员用户名"),prefix:a.jsx(Js,{}),showClear:!0,size:"large",className:"mb-4 !rounded-lg",noLabel:!1,validateStatus:"default",onChange:y=>h({...d,username:y})}),a.jsx(M.Input,{field:"password",label:e("密码"),placeholder:e("请输入管理员密码"),type:"password",prefix:a.jsx(oi,{}),showClear:!0,size:"large",className:"mb-4 !rounded-lg",noLabel:!1,mode:"password",validateStatus:"default",onChange:y=>h({...d,password:y})}),a.jsx(M.Input,{field:"confirmPassword",label:e("确认密码"),placeholder:e("请确认管理员密码"),type:"password",prefix:a.jsx(oi,{}),showClear:!0,size:"large",className:"!rounded-lg",noLabel:!1,mode:"password",validateStatus:"default",onChange:y=>h({...d,confirmPassword:y})})]})]}),a.jsxs(Le,{className:"!rounded-2xl shadow-sm border-0 mb-6",children:[a.jsxs("div",{className:"flex items-center mb-4 p-6 rounded-xl",style:{background:"linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%)",position:"relative"},children:[a.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[a.jsx("div",{className:"absolute -top-10 -right-10 w-40 h-40 bg-white opacity-5 rounded-full"}),a.jsx("div",{className:"absolute -bottom-8 -left-8 w-24 h-24 bg-white opacity-10 rounded-full"})]}),a.jsx("div",{className:"w-10 h-10 rounded-full bg-white/20 flex items-center justify-center mr-4 relative",children:a.jsx(JS,{size:22,style:{color:"#ffffff"}})}),a.jsxs("div",{className:"relative",children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx(l,{style:{color:"#ffffff"},className:"text-lg font-medium",children:e("使用模式")}),a.jsx(X,{theme:"borderless",type:"tertiary",icon:a.jsx(u6,{size:"small",style:{color:"#ffffff"}}),size:"small",onClick:()=>i(!0),className:"!rounded-full"})]}),a.jsx("div",{style:{color:"#ffffff"},className:"text-sm opacity-80",children:e("选择适合您使用场景的模式")})]})]}),a.jsx(M.RadioGroup,{field:"usageMode",noLabel:!0,initValue:"external",onChange:p,type:"pureCard",className:"[&_.semi-radio-addon-buttonRadio-wrapper]:!rounded-xl",validateStatus:"default",children:a.jsxs("div",{className:"space-y-3 mt-2",children:[a.jsx(M.Radio,{value:"external",className:"!p-4 !rounded-xl hover:!bg-blue-50 transition-colors w-full",extra:a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-blue-50 flex items-center justify-center mr-3 flex-shrink-0",children:a.jsx(P9,{size:20,className:"text-blue-500"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("div",{className:"font-medium text-gray-900 mb-1",children:e("对外运营模式")}),a.jsx("div",{className:"text-sm text-gray-500",children:e("适用于为多个用户提供服务的场景")}),a.jsx(ye,{color:"blue",shape:"circle",className:"mt-2",children:e("默认模式")})]})]})}),a.jsx(M.Radio,{value:"self",className:"!p-4 !rounded-xl hover:!bg-green-50 transition-colors w-full",extra:a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-green-50 flex items-center justify-center mr-3 flex-shrink-0",children:a.jsx(Zh,{size:20,className:"text-green-500"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("div",{className:"font-medium text-gray-900 mb-1",children:e("自用模式")}),a.jsx("div",{className:"text-sm text-gray-500",children:e("适用于个人使用的场景,不需要设置模型价格")}),a.jsx(ye,{color:"green",shape:"circle",className:"mt-2",children:e("无需计费")})]})]})}),a.jsx(M.Radio,{value:"demo",className:"!p-4 !rounded-xl hover:!bg-purple-50 transition-colors w-full",extra:a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-purple-50 flex items-center justify-center mr-3 flex-shrink-0",children:a.jsx(B9,{size:20,className:"text-purple-500"})}),a.jsxs("div",{className:"flex-1",children:[a.jsx("div",{className:"font-medium text-gray-900 mb-1",children:e("演示站点模式")}),a.jsx("div",{className:"text-sm text-gray-500",children:e("适用于展示系统功能的场景,提供基础功能演示")}),a.jsx(ye,{color:"purple",shape:"circle",className:"mt-2",children:e("演示体验")})]})]})})]})})]})]}),a.jsx("div",{className:"flex justify-center mt-6",children:a.jsx(X,{type:"primary",onClick:g,loading:t,size:"large",className:"!rounded-lg !bg-gradient-to-r !from-orange-500 !to-pink-500 hover:!from-orange-600 hover:!to-pink-600 !border-0 !px-8",icon:a.jsx(K3,{}),children:e("初始化系统")})})]})})})})}),a.jsx(Je,{title:a.jsxs("div",{className:"flex items-center",children:[a.jsx(Gv,{className:"mr-2 text-blue-500"}),e("使用模式说明")]}),visible:n,onOk:()=>i(!1),onCancel:()=>i(!1),closeOnEsc:!0,okText:e("我已了解"),cancelText:null,centered:!0,size:"medium",className:"[&_.semi-modal-body]:!p-6",children:a.jsxs("div",{className:"space-y-6",children:[a.jsx("div",{className:"bg-blue-50 rounded-xl p-4",children:a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3 flex-shrink-0",children:a.jsx(P9,{size:20,className:"text-blue-600"})}),a.jsxs("div",{children:[a.jsx(u,{heading:6,className:"text-blue-900 mb-2",children:e("对外运营模式")}),a.jsxs("div",{className:"space-y-2 text-sm text-gray-700",children:[a.jsx("p",{children:e("默认模式,适用于为多个用户提供服务的场景。")}),a.jsx("p",{children:e("此模式下,系统将计算每次调用的用量,您需要对每个模型都设置价格,如果没有设置价格,用户将无法使用该模型。")}),a.jsxs("div",{className:"mt-3",children:[a.jsx(ye,{color:"blue",shape:"circle",className:"mr-2",children:e("计费模式")}),a.jsx(ye,{color:"blue",shape:"circle",children:e("多用户支持")})]})]})]})]})}),a.jsx("div",{className:"bg-green-50 rounded-xl p-4",children:a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3 flex-shrink-0",children:a.jsx(Zh,{size:20,className:"text-green-600"})}),a.jsxs("div",{children:[a.jsx(u,{heading:6,className:"text-green-900 mb-2",children:e("自用模式")}),a.jsxs("div",{className:"space-y-2 text-sm text-gray-700",children:[a.jsx("p",{children:e("适用于个人使用的场景。")}),a.jsx("p",{children:e("不需要设置模型价格,系统将弱化用量计算,您可专注于使用模型。")}),a.jsxs("div",{className:"mt-3",children:[a.jsx(ye,{color:"green",shape:"circle",className:"mr-2",children:e("无需计费")}),a.jsx(ye,{color:"green",shape:"circle",children:e("个人使用")})]})]})]})]})}),a.jsx("div",{className:"bg-purple-50 rounded-xl p-4",children:a.jsxs("div",{className:"flex items-start",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3 flex-shrink-0",children:a.jsx(B9,{size:20,className:"text-purple-600"})}),a.jsxs("div",{children:[a.jsx(u,{heading:6,className:"text-purple-900 mb-2",children:e("演示站点模式")}),a.jsxs("div",{className:"space-y-2 text-sm text-gray-700",children:[a.jsx("p",{children:e("适用于展示系统功能的场景。")}),a.jsx("p",{children:e("提供基础功能演示,方便用户了解系统特性。")}),a.jsxs("div",{className:"mt-3",children:[a.jsx(ye,{color:"purple",shape:"circle",className:"mr-2",children:e("功能演示")}),a.jsx(ye,{color:"purple",shape:"circle",children:e("体验试用")})]})]})]})]})})]})})]})},Yye=({children:e})=>{var n;const[t]=m.useContext(Ji),r=Ml();return m.useEffect(()=>{var i;((i=t==null?void 0:t.status)==null?void 0:i.setup)===!1&&r.pathname!=="/setup"&&(window.location.href="/setup")},[(n=t==null?void 0:t.status)==null?void 0:n.setup,r.pathname]),e},Zye=m.lazy(()=>qt(()=>import("./index-BIXxJ3Bt.js"),__vite__mapDeps([49,6,7,8,11,9,10]))),Xye=m.lazy(()=>qt(()=>import("./index-COpLGRnI.js"),__vite__mapDeps([50,6,7,8,51,9,52,11,10]))),Jye=m.lazy(()=>qt(()=>import("./index-B9kzuYWM.js"),__vite__mapDeps([53,6,7,8,11,9,52,10])));function Qye(){const e=Ml();return a.jsx(Yye,{children:a.jsxs(qB,{children:[a.jsx($t,{path:"/",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(Zye,{})},e.pathname)}),a.jsx($t,{path:"/setup",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(Kye,{})},e.pathname)}),a.jsx($t,{path:"/console/channel",element:a.jsx(gn,{children:a.jsx(B0e,{})})}),a.jsx($t,{path:"/console/channel/edit/:id",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(l4,{})},e.pathname)}),a.jsx($t,{path:"/console/channel/add",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(l4,{})},e.pathname)}),a.jsx($t,{path:"/console/token",element:a.jsx(gn,{children:a.jsx(I0e,{})})}),a.jsx($t,{path:"/console/playground",element:a.jsx(gn,{children:a.jsx(Vye,{})})}),a.jsx($t,{path:"/console/redemption",element:a.jsx(gn,{children:a.jsx(U0e,{})})}),a.jsx($t,{path:"/console/user",element:a.jsx(gn,{children:a.jsx(Ece,{})})}),a.jsx($t,{path:"/console/user/edit/:id",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(o4,{})},e.pathname)}),a.jsx($t,{path:"/console/user/edit",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(o4,{})},e.pathname)}),a.jsx($t,{path:"/user/reset",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(g0e,{})},e.pathname)}),a.jsx($t,{path:"/login",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(Z3,{children:a.jsx(Sce,{})})},e.pathname)}),a.jsx($t,{path:"/register",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(Z3,{children:a.jsx(Cce,{})})},e.pathname)}),a.jsx($t,{path:"/reset",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(p0e,{})},e.pathname)}),a.jsx($t,{path:"/oauth/github",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(x5,{type:"github"})},e.pathname)}),a.jsx($t,{path:"/oauth/oidc",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(x5,{type:"oidc"})})}),a.jsx($t,{path:"/oauth/linuxdo",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(x5,{type:"linuxdo"})},e.pathname)}),a.jsx($t,{path:"/console/setting",element:a.jsx(gn,{children:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(h0e,{})},e.pathname)})}),a.jsx($t,{path:"/console/personal",element:a.jsx(gn,{children:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(Gye,{})},e.pathname)})}),a.jsx($t,{path:"/console/topup",element:a.jsx(gn,{children:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(W0e,{})},e.pathname)})}),a.jsx($t,{path:"/console/log",element:a.jsx(gn,{children:a.jsx(G0e,{})})}),a.jsx($t,{path:"/console/usage-statistics",element:a.jsx(gn,{children:a.jsx(Y0e,{})})}),a.jsx($t,{path:"/console/usage-statistics-monthly",element:a.jsx(gn,{children:a.jsx(X0e,{})})}),a.jsx($t,{path:"/console",element:a.jsx(gn,{children:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(Xye,{})},e.pathname)})}),a.jsx($t,{path:"/console/midjourney",element:a.jsx(gn,{children:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(r1e,{})},e.pathname)})}),a.jsx($t,{path:"/console/task",element:a.jsx(gn,{children:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(l1e,{})},e.pathname)})}),a.jsx($t,{path:"/pricing",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(i1e,{})},e.pathname)}),a.jsx($t,{path:"/about",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(Jye,{})},e.pathname)}),a.jsx($t,{path:"/console/chat/:id?",element:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(J0e,{})},e.pathname)}),a.jsx($t,{path:"/chat2link",element:a.jsx(gn,{children:a.jsx(m.Suspense,{fallback:a.jsx(pr,{}),children:a.jsx(Q0e,{})},e.pathname)})}),a.jsx($t,{path:"*",element:a.jsx(Fce,{})})]})})}const ebe=()=>{var d;const{t:e}=Ze(),[t,r]=m.useState(aT()),n=yo(),i=Sa(),[s]=m.useContext(Ji),o=((d=s==null?void 0:s.status)==null?void 0:d.demo_site_enabled)||!1,l=()=>{let h=localStorage.getItem("footer_html");h&&r(h)},u=new Date().getFullYear(),c=m.useMemo(()=>a.jsxs("footer",{className:"relative h-auto py-16 px-6 md:px-24 w-full flex flex-col items-center justify-between overflow-hidden",children:[a.jsx("div",{className:"absolute hidden md:block top-[204px] left-[-100px] w-[151px] h-[151px] rounded-full bg-[#FFD166]"}),a.jsx("div",{className:"absolute md:hidden bottom-[20px] left-[-50px] w-[80px] h-[80px] rounded-full bg-[#FFD166] opacity-60"}),o&&a.jsxs("div",{className:"flex flex-col md:flex-row justify-between w-full max-w-[1110px] mb-10 gap-8",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("img",{src:i,alt:n,className:"w-16 h-16 rounded-full bg-gray-800 p-1.5 object-contain"})}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-8 w-full",children:[a.jsxs("div",{className:"text-left",children:[a.jsx("p",{className:"!text-semi-color-text-0 font-semibold mb-5",children:e("关于我们")}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx("a",{href:"https://docs.newapi.pro/wiki/project-introduction/",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-text-1",children:e("关于项目")}),a.jsx("a",{href:"https://docs.newapi.pro/support/community-interaction/",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-text-1",children:e("联系我们")}),a.jsx("a",{href:"https://docs.newapi.pro/wiki/features-introduction/",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-text-1",children:e("功能特性")})]})]}),a.jsxs("div",{className:"text-left",children:[a.jsx("p",{className:"!text-semi-color-text-0 font-semibold mb-5",children:e("文档")}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx("a",{href:"https://docs.newapi.pro/getting-started/",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-text-1",children:e("快速开始")}),a.jsx("a",{href:"https://docs.newapi.pro/installation/",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-text-1",children:e("安装指南")}),a.jsx("a",{href:"https://docs.newapi.pro/api/",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-text-1",children:e("API 文档")})]})]}),a.jsxs("div",{className:"text-left",children:[a.jsx("p",{className:"!text-semi-color-text-0 font-semibold mb-5",children:e("相关项目")}),a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx("a",{href:"https://github.com/songquanpeng/one-api",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-text-1",children:"One API"}),a.jsx("a",{href:"https://github.com/novicezk/midjourney-proxy",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-text-1",children:"Midjourney-Proxy"}),a.jsx("a",{href:"https://github.com/Deeptrain-Community/chatnio",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-text-1",children:"chatnio"}),a.jsx("a",{href:"https://github.com/Calcium-Ion/neko-api-key-tool",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-text-1",children:"neko-api-key-tool"})]})]}),a.jsxs("div",{className:"text-left",children:[a.jsx("p",{className:"!text-semi-color-text-0 font-semibold mb-5",children:e("基于MIX API的项目")}),a.jsx("div",{className:"flex flex-col gap-4",children:a.jsx("a",{href:"https://github.com/Calcium-Ion/new-api-horizon",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-text-1",children:"new-api-horizon"})})]})]})]}),a.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between w-full max-w-[1110px] gap-6",children:[a.jsx("div",{className:"flex flex-wrap items-center gap-2",children:a.jsxs(Ie.Text,{className:"text-sm !text-semi-color-text-1",children:["© ",u," ",n,". ",e("版权所有")]})}),a.jsxs("div",{className:"text-sm",children:[a.jsx("span",{className:"!text-semi-color-text-1",children:" "}),a.jsx("a",{href:"https://github.com/aiprodcoder/MIXAPI",target:"_blank",rel:"noopener noreferrer",className:"!text-semi-color-primary font-medium",children:"MIX API"})]})]})]}),[i,n,e,u,o]);return m.useEffect(()=>{l()},[]),a.jsx("div",{className:"w-full",children:t?a.jsx("div",{className:"custom-footer",dangerouslySetInnerHTML:{__html:t}}):c})},{Sider:tbe,Content:rbe,Header:nbe}=ln,ibe=()=>{const[,e]=m.useContext(Xi),[,t]=m.useContext(Ji),r=mi(),[n,,i]=Ig(),[s,o]=m.useState(!1),{i18n:l}=Ze(),u=Ml(),c=u.pathname==="/console/playground"||u.pathname.startsWith("/console/chat"),d=u.pathname.includes("/console")&&!u.pathname.startsWith("/console/chat")&&u.pathname!=="/console/playground",f=u.pathname.startsWith("/console")&&(!r||s);m.useEffect(()=>{r&&s&&n&&i(!1)},[r,s,n,i]);const p=()=>{let y=localStorage.getItem("user");if(y){let b=JSON.parse(y);e({type:"login",payload:b})}},g=async()=>{try{const y=await Se.get("/api/status"),{success:b,data:x}=y.data;b?(t({type:"set",payload:x}),_ue(x)):q("Unable to connect to server")}catch{q("Failed to load status")}};return m.useEffect(()=>{p(),g().catch(console.error);let y=yo();y&&(document.title=y);let b=Sa();if(b){let v=document.querySelector("link[rel~='icon']");v&&(v.href=b)}const x=localStorage.getItem("i18nextLng");x&&l.changeLanguage(x)},[l]),a.jsxs(ln,{style:{height:"100vh",display:"flex",flexDirection:"column",overflow:r?"visible":"hidden"},children:[a.jsx(nbe,{style:{padding:0,height:"auto",lineHeight:"normal",position:"fixed",width:"100%",top:0,zIndex:100},children:a.jsx(pce,{onMobileMenuToggle:()=>o(y=>!y),drawerOpen:s})}),a.jsxs(ln,{style:{overflow:r?"visible":"auto",display:"flex",flexDirection:"column"},children:[f&&a.jsx(tbe,{style:{position:"fixed",left:0,top:"64px",zIndex:99,border:"none",paddingRight:"0",height:"calc(100vh - 64px)",width:"var(--sidebar-current-width)"},children:a.jsx(mce,{onNavigate:()=>{r&&o(!1)}})}),a.jsxs(ln,{style:{marginLeft:r?"0":f?"var(--sidebar-current-width)":"0",flex:"1 1 auto",display:"flex",flexDirection:"column"},children:[a.jsx(rbe,{style:{flex:"1 0 auto",overflowY:r?"visible":"hidden",WebkitOverflowScrolling:"touch",padding:d?r?"5px":"24px":"0",position:"relative"},children:a.jsx(Qye,{})}),!c&&a.jsx(ln.Footer,{style:{flex:"0 0 auto",width:"100%"},children:a.jsx(ebe,{})})]})]}),a.jsx(KB,{})]})},abe={主页:"Home",文档:"Docs",控制台:"Console","$%.6f 额度":"$%.6f quota",或:"or","登 录":"Log In","注 册":"Sign Up","使用 邮箱或用户名 登录":"Sign in with Email or Username","使用 GitHub 继续":"Continue with GitHub","使用 OIDC 继续":"Continue with OIDC","使用 微信 继续":"Continue with WeChat","使用 LinuxDO 继续":"Continue with LinuxDO","使用 用户名 注册":"Sign up with Username",其他登录选项:"Other login options",其他注册选项:"Other registration options",请输入您的用户名或邮箱地址:"Please enter your username or email address",请输入您的邮箱地址:"Please enter your email address",请输入您的密码:"Please enter your password",继续:"Continue","%d 点额度":"%d point quota",尚未实现:"Not yet implemented",余额不足:"Insufficient quota",危险操作:"Dangerous operation",输入你的账户名:"Enter your account name",确认删除:"Confirm deletion",确认绑定:"Confirm binding","您正在删除自己的帐户,将清空所有数据且不可恢复":"You are deleting your account. All data will be cleared and cannot be recovered.","通道「%s」(#%d)已被禁用":"Channel %s (#%d) has been disabled","通道「%s」(#%d)已被禁用,原因:%s":"Channel %s (#%d) has been disabled, reason: %s",测试已在运行中:"Test is already running","响应时间 %.2fs 超过阈值 %.2fs":"Response time %.2fs exceeds threshold %.2fs",通道测试完成:"Channel test completed","通道测试完成,如果没有收到禁用通知,说明所有通道都正常":"Channel test completed. If no disable notification received, all channels are functioning normally","无法连接至 GitHub 服务器,请稍后重试!":"Unable to connect to GitHub server. Please try again later!","返回值非法,用户字段为空,请稍后重试!":"Invalid return value, user field is empty. Please try again later!","管理员未开启通过 GitHub 登录以及注册":"Administrator has not enabled GitHub login and registration",管理员关闭了新用户注册:"Administrator has disabled new user registration",用户已被封禁:"User has been banned","该 GitHub 账户已被绑定":"This GitHub account is already bound",邮箱地址已被占用:"Email address is already in use","%s邮箱验证邮件":"%s Email verification","<p>您好,你正在进行%s邮箱验证。</p>":"<p>Hello, you are verifying your %s email.</p>","<p>您的验证码为: <strong>%s</strong></p>":"<p>Your verification code is: <strong>%s</strong></p>","<p>验证码 %d 分钟内有效,如果不是本人操作,请忽略。</p>":"<p>Verification code is valid for %d minutes. If you did not request this, please ignore.</p>",无效的参数:"Invalid parameter",该邮箱地址未注册:"This email address is not registered","%s密码重置":"%s Password reset","<p>您好,你正在进行%s密码重置。</p>":"<p>Hello, you are resetting your %s password.</p>","<p>点击<a href='%s'>此处</a>进行密码重置。</p>":"<p>Click <a href='%s'>here</a> to reset your password.</p>","<p>重置链接 %d 分钟内有效,如果不是本人操作,请忽略。</p>":"<p>Reset link is valid for %d minutes. If you did not request this, please ignore.</p>",重置链接非法或已过期:"Reset link is invalid or expired","无法启用 GitHub OAuth,请先填入 GitHub Client ID 以及 GitHub Client Secret!":"Unable to enable GitHub OAuth. Please enter GitHub Client ID and GitHub Client Secret first!","无法启用微信登录,请先填入微信登录相关配置信息!":"Unable to enable WeChat login. Please enter WeChat login configuration first!","无法启用 Turnstile 校验,请先填入 Turnstile 校验相关配置信息!":"Unable to enable Turnstile verification. Please enter Turnstile verification configuration first!","兑换码名称长度必须在1-20之间":"Redemption code name must be between 1-20 characters",兑换码个数必须大于0:"Number of redemption codes must be greater than 0","一次兑换码批量生成的个数不能大于 100":"Cannot generate more than 100 redemption codes at once","当前分组上游负载已饱和,请稍后再试":"Current group upstream load is saturated. Please try again later",令牌名称过长:"Token name is too long","令牌已过期,无法启用,请先修改令牌过期时间,或者设置为永不过期":"Token has expired and cannot be enabled. Please modify token expiration time or set to never expire","令牌可用额度已用尽,无法启用,请先修改令牌剩余额度,或者设置为无限额度":"Token quota is depleted and cannot be enabled. Please modify remaining quota or set to unlimited",管理员关闭了密码登录:"Administrator has disabled password login","无法保存会话信息,请重试":"Unable to save session information. Please try again","管理员关闭了通过密码进行注册,请使用第三方账户验证的形式进行注册":"Administrator has disabled password registration. Please register using third-party account verification","输入不合法 ":"Invalid input ","管理员开启了邮箱验证,请输入邮箱地址和验证码":"Administrator has enabled email verification. Please enter email address and verification code",验证码错误或已过期:"Verification code is incorrect or expired",无权获取同级或更高等级用户的信息:"No permission to access information of users at same or higher level","请重试,系统生成的 UUID 竟然重复了!":"Please try again, system generated UUID is duplicated!",输入不合法:"Invalid input",无权更新同权限等级或更高权限等级的用户信息:"No permission to update user information at same or higher permission level","管理员将用户额度从 %s修改为 %s":"Administrator modified user quota from %s to %s",无权删除同权限等级或更高权限等级的用户:"No permission to delete users at same or higher permission level",无法创建权限大于等于自己的用户:"Cannot create users with permissions greater than or equal to your own",用户不存在:"User does not exist",无法禁用超级管理员用户:"Cannot disable super administrator user",无法删除超级管理员用户:"Cannot delete super administrator user",普通管理员用户无法提升其他用户为管理员:"Regular administrator cannot promote other users to administrator",该用户已经是管理员:"This user is already an administrator",无法降级超级管理员用户:"Cannot downgrade super administrator user",该用户已经是普通用户:"This user is already a regular user",管理员未开启通过微信登录以及注册:"Administrator has not enabled WeChat login and registration",该微信账号已被绑定:"This WeChat account is already bound","无权进行此操作,未登录且未提供 access token":"No permission for this operation: not logged in and no access token provided","无权进行此操作,access token 无效":"No permission for this operation: invalid access token","无权进行此操作,权限不足":"No permission for this operation: insufficient permissions",普通用户不支持指定渠道:"Regular users cannot specify channels","无效的渠道 ID":"Invalid channel ID",该渠道已被禁用:"This channel has been disabled",无效的请求:"Invalid request",无可用渠道:"No available channels","Turnstile token 为空":"Turnstile token is empty","Turnstile 校验失败,请刷新重试!":"Turnstile verification failed. Please refresh and try again!","id 为空!":"ID is empty!",未提供兑换码:"No redemption code provided","无效的 user id":"Invalid user ID",无效的兑换码:"Invalid redemption code",该兑换码已被使用:"This redemption code has been used","通过兑换码充值 %s":"Recharge %s via redemption code",未提供令牌:"No token provided",该令牌状态不可用:"This token status is unavailable",该令牌已过期:"This token has expired",该令牌额度已用尽:"This token's quota is depleted",无效的令牌:"Invalid token","id 或 userId 为空!":"ID or userID is empty!","quota 不能为负数!":"Quota cannot be negative!",令牌额度不足:"Insufficient token quota",用户额度不足:"Insufficient user quota",您的额度即将用尽:"Your quota is almost depleted",您的额度已用尽:"Your quota is depleted","%s,当前剩余额度为 %d,为了不影响您的使用,请及时充值。<br/>充值链接:<a href='%s'>%s</a>":"%s, current remaining quota is %d. To avoid service interruption, please recharge promptly.<br/>Recharge link: <a href='%s'>%s</a>","affCode 为空!":"Affiliate code is empty!","新用户注册赠送 %s":"New user registration bonus: %s","使用邀请码赠送 %s":"Invitation code bonus: %s","邀请用户赠送 %s":"Referral bonus: %s",用户名或密码为空:"Username or password is empty","用户名或密码错误,或用户已被封禁":"Username or password is incorrect, or user has been banned","email 为空!":"Email is empty!","GitHub id 为空!":"GitHub ID is empty!","WeChat id 为空!":"WeChat ID is empty!","username 为空!":"Username is empty!","邮箱地址或密码为空!":"Email address or password is empty!","OpenAI 接口聚合管理,支持多种渠道包括 Azure,可用于二次分发管理 key,仅单可执行文件,已打包好 Docker 镜像,一键部署,开箱即用":"OpenAI API aggregation management system supporting multiple channels including Azure. Can be used for key management and redistribution. Single executable file, pre-packaged Docker image, one-click deployment, ready to use",未知类型:"Unknown type",不支持:"Not supported","操作成功完成!":"Operation completed successfully!",已启用:"Enabled",已禁用:"Disabled",未知状态:"Unknown status"," 秒":"s"," 分钟 ":"m"," 小时 ":"h"," 天 ":"d"," 个月 ":"M"," 年 ":"y",未测试:"Not tested","通道 ${name} 测试成功,耗时 ${time.toFixed(2)} 秒。":"Channel ${name} test successful, took ${time.toFixed(2)} seconds.","已成功开始测试所有已启用通道,请刷新页面查看结果。":"Successfully started testing all enabled channels. Please refresh page to view results.","通道 ${name} 余额更新成功!":"Channel ${name} quota updated successfully!","已更新完毕所有已启用通道余额!":"Updated quota for all enabled channels!","渠道ID,名称,密钥,API地址":"Channel ID, name, key, Base URL",名称:"Name",分组:"Group",类型:"Type",状态:"Status",响应时间:"Response time",余额:"Balance",操作:"Actions",未更新:"Not updated",测试:"Test",更新余额:"Update balance",删除:"Delete","删除渠道 {channel.name}":"Delete channel {channel.name}",禁用:"Disable",启用:"Enable",编辑:"Edit",添加新的渠道:"Add new channel",测试所有已启用通道:"Test all enabled channels",更新所有已启用通道余额:"Update balance for all enabled channels",刷新:"Refresh","处理中...":"Processing...","绑定成功!":"Binding successful!","登录成功!":"Login successful!","操作失败,重定向至登录界面中...":"Operation failed, redirecting to login page...","出现错误,第 ${count} 次重试中...":"Error occurred, retry attempt ${count}...",首页:"Home",渠道:"Channels",令牌:"Tokens",兑换:"Redeem",充值:"Recharge",用户:"Users",日志:"Logs",设置:"Settings",关于:"About",价格:"Pricing",聊天:"Chat","注销成功!":"Logout successful!",注销:"Logout",登录:"Sign in",注册:"Sign up","未登录或登录已过期,请重新登录!":"Not logged in or session expired. Please login again!",用户登录:"User Login",密码:"Password","忘记密码?":"Forgot password?",点击重置:"Click to reset","; 没有账户?":"; No account?",点击注册:"Click to register","微信扫码关注公众号,输入「验证码」获取验证码(三分钟内有效)":'Scan WeChat QR code to follow official account, enter "verification code" to get code (valid for 3 minutes)',全部用户:"All users",当前用户:"Current user","全部'":"All'","充值'":"Recharge'","消费'":"Consume'","管理'":"Manage'","系统'":"System'"," 充值 ":" Recharge "," 消费 ":" Consume "," 管理 ":" Manage "," 系统 ":" System ",用量月统计:"Monthly Usage Statistics",月份:"Month",开始月份:"Start Month",结束月份:"End Month","按月份、令牌、模型分组汇总":"Grouped by month, token, and model","模型倍率不是合法的 JSON 字符串":"Model ratio is not a valid JSON string",通用设置:"General Settings",充值链接:"Recharge Link",例如发卡网站的购买链接:"E.g., purchase link from card issuing website",文档地址:"Document Link","例如 https://docs.newapi.pro":"E.g., https://docs.newapi.pro",聊天页面链接:"Chat Page Link","例如 ChatGPT Next Web 的部署地址":"E.g., ChatGPT Next Web deployment address",单位美元额度:"Quota per USD",一单位货币能兑换的额度:"Quota exchangeable per unit currency",启用额度消费日志记录:"Enable quota consumption logging",以货币形式显示额度:"Display quota as currency","相关 API 显示令牌额度而非用户额度":"Related APIs show token quota instead of user quota",保存通用设置:"Save General Settings",监控设置:"Monitoring Settings",测试所有渠道的最长响应时间:"Maximum response time for testing all channels",单位秒:"Unit: seconds",当运行通道全部测试时:"When running all channel tests",超过此时间将自动禁用通道:"Channels exceeding this time will be automatically disabled",额度提醒阈值:"Quota reminder threshold",低于此额度时将发送邮件提醒用户:"Email reminder will be sent when quota falls below this",失败时自动禁用通道:"Automatically disable channel on failure",保存监控设置:"Save Monitoring Settings",额度设置:"Quota Settings",新用户初始额度:"Initial quota for new users",例如:"For example",请求预扣费额度:"Pre-deduction quota for requests",请求结束后多退少补:"Adjust after request completion",邀请新用户奖励额度:"Referral bonus quota",新用户使用邀请码奖励额度:"New user invitation code bonus quota",保存额度设置:"Save Quota Settings",倍率设置:"Ratio Settings",模型倍率:"Model ratio","为一个 JSON 文本":"Is a JSON text",键为模型名称:"Key is model name",值为倍率:"Value is ratio",分组倍率:"Group ratio",键为分组名称:"Key is group name",保存倍率设置:"Save Ratio Settings",已是最新版本:"Is the latest version",检查更新:"Check for updates",公告:"Announcement","在此输入新的公告内容,支持 Markdown & HTML 代码":"Enter the new announcement content here, supports Markdown & HTML code",保存公告:"Save Announcement",个性化设置:"Personalization Settings",系统名称:"System Name",在此输入系统名称:"Enter the system name here",设置系统名称:"Set system name",图片地址:"Image URL","在此输入 Logo 图片地址":"Enter the Logo image URL here",首页内容:"Home Page Content","在此输入首页内容,支持 Markdown & HTML 代码,设置后首页的状态信息将不再显示。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页作为首页":"Enter the home page content here, supports Markdown",保存首页内容:"Save Home Page Content","在此输入新的关于内容,支持 Markdown & HTML 代码。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页作为关于页面":"Enter new about content here, support Markdown",保存关于:"Save About","移除 One API 的版权标识必须首先获得授权,项目维护需要花费大量精力,如果本项目对你有意义,请主动支持本项目":"Removal of One API copyright mark must first be authorized. Project maintenance requires a lot of effort. If this project is meaningful to you, please actively support it.",页脚:"Footer","在此输入新的页脚,留空则使用默认页脚,支持 HTML 代码":"Enter the new footer here, leave blank to use the default footer, supports HTML code.",设置页脚:"Set Footer",新版本:"New Version",关闭:"Close","密码已重置并已复制到剪贴板:":"Password has been reset and copied to clipboard: ","密码已复制到剪贴板:":"Password has been copied to clipboard: ",密码重置确认:"Password Reset Confirmation",邮箱地址:"Email address",提交:"Submit","等待获取邮箱信息...":"Waiting to get email information...",确认重置密码:"Confirm Password Reset","无效的重置链接,请重新发起密码重置请求":"Invalid reset link, please initiate a new password reset request",请输入邮箱地址:"Please enter the email address",请稍后几秒重试:"Please retry in a few seconds",正在检查用户环境:"Checking user environment",重置邮件发送成功:"Reset mail sent successfully",请检查邮箱:"Please check your email",密码重置:"Password Reset",令牌已重置并已复制到剪贴板:"Token has been reset and copied to clipboard",邀请链接已复制到剪切板:"Invitation link has been copied to clipboard",微信账户绑定成功:"WeChat account binding succeeded",验证码发送成功:"Verification code sent successfully",邮箱账户绑定成功:"Email account binding succeeded",注意:"Note",此处生成的令牌用于系统管理:"The token generated here is used for system management","而非用于请求 OpenAI 相关的服务":"Not for requesting OpenAI related services",请知悉:"Please be aware",更新个人信息:"Update Personal Information",生成系统访问令牌:"Generate System Access Token",复制邀请链接:"Copy Invitation Link",账号绑定:"Account Binding",绑定微信账号:"Bind WeChat Account",微信扫码关注公众号:"Scan the QR code with WeChat to follow the official account",输入:"Enter",验证码:"Verification Code",获取验证码:"Get Verification Code",三分钟内有效:"Valid for three minutes",绑定:"Bind","绑定 GitHub 账号":"Bind GitHub Account",绑定邮箱地址:"Bind Email Address",输入邮箱地址:"Enter Email Address",未使用:"Unused",已使用:"Used",操作成功完成:"Operation successfully completed","搜索兑换码的 ID 和名称":"Search for ID and name",额度:"Quota",创建时间:"Creation Time",兑换时间:"Redemption Time",尚未兑换:"Not yet redeemed",已复制到剪贴板:"Copied to clipboard",无法复制到剪贴板:"Unable to copy to clipboard",请手动复制:"Please copy manually",已将兑换码填入搜索框:"The voucher code has been filled into the search box",复制:"Copy",添加新的兑换码:"Add a new voucher","密码长度不得小于 8 位":"Password length must not be less than 8 characters",两次输入的密码不一致:"The two passwords entered do not match",注册成功:"Registration succeeded","请稍后几秒重试,Turnstile 正在检查用户环境":"Please retry in a few seconds, Turnstile is checking user environment","验证码发送成功,请检查你的邮箱":"Verification code sent successfully, please check your email",新用户注册:"New User Registration","输入用户名,最长 12 位":"Enter username, up to 12 characters","输入密码,最短 8 位,最长 20 位":"Enter password, at least 8 characters and up to 20 characters",输入验证码:"Enter Verification Code",已有账户:"Already have an account",点击登录:"Click to log in",服务器地址:"Server Address",更新服务器地址:"Update Server Address",配置登录注册:"Configure Login/Registration",允许通过密码进行登录:"Allow login via password",允许通过密码进行注册:"Allow registration via password",通过密码注册时需要进行邮箱验证:"Email verification is required when registering via password","允许通过 GitHub 账户登录 & 注册":"Allow login & registration via GitHub account","允许通过微信登录 & 注册":"Allow login & registration via WeChat","允许新用户注册(此项为否时,新用户将无法以任何方式进行注册":"Allow new user registration (if this option is off, new users will not be able to register in any way","启用 Turnstile 用户校验":"Enable Turnstile user verification","配置 SMTP":"Configure SMTP",用以支持系统的邮件发送:"To support the system email sending","SMTP 服务器地址":"SMTP Server Address","例如:smtp.qq.com":"For example: smtp.qq.com","SMTP 端口":"SMTP Port","默认: 587":"Default: 587","SMTP 账户":"SMTP Account",通常是邮箱地址:"Usually an email address",发送者邮箱:"Sender email",通常和邮箱地址保持一致:"Usually consistent with the email address","SMTP 访问凭证":"SMTP Access Credential",敏感信息不会发送到前端显示:"Sensitive information will not be displayed in the frontend","保存 SMTP 设置":"Save SMTP Settings","配置 GitHub OAuth App":"Configure GitHub OAuth App","用以支持通过 GitHub 进行登录注册":"To support login & registration via GitHub",点击此处:"click here","管理你的 GitHub OAuth App":"Manage your GitHub OAuth App","输入你注册的 GitHub OAuth APP 的 ID":"Enter your registered GitHub OAuth APP ID","保存 GitHub OAuth 设置":"Save GitHub OAuth Settings","配置 WeChat Server":"Configure WeChat Server",用以支持通过微信进行登录注册:"To support login & registration via WeChat","了解 WeChat Server":"Learn about WeChat Server","WeChat Server 访问凭证":"WeChat Server Access Credential",微信公众号二维码图片链接:"WeChat Public Account QR Code Image Link",输入一个图片链接:"Enter an image link","保存 WeChat Server 设置":"Save WeChat Server Settings","配置 Turnstile":"Configure Turnstile",用以支持用户校验:"To support user verification","管理你的 Turnstile Sites,推荐选择 Invisible Widget Type":"Manage your Turnstile Sites, recommend selecting Invisible Widget Type","输入你注册的 Turnstile Site Key":"Enter your registered Turnstile Site Key","保存 Turnstile 设置":"Save Turnstile Settings",已过期:"Expired",已耗尽:"Exhausted","搜索令牌的名称 ...":"Search for the name of the token...",已用额度:"Quota used",剩余额度:"Remaining quota",总额度:"Total quota",智能熔断:"Smart fallback","当前分组为 auto,会自动选择最优分组,当一个组不可用时自动降级到下一个组(熔断机制)":"The current group is auto, it will automatically select the optimal group, and automatically downgrade to the next group when a group is unavailable (breakage mechanism)",过期时间:"Expiration time",无:"None",无限制:"Unlimited",永不过期:"Never expires","无法复制到剪贴板,请手动复制,已将令牌填入搜索框":"Unable to copy to clipboard, please copy manually, the token has been entered into the search box",删除令牌:"Delete Token",添加新的令牌:"Add New Token",普通用户:"Normal User",管理员:"Admin",超级管理员:"Super Admin",未知身份:"Unknown Identity",已激活:"Activated",已封禁:"Banned","搜索用户的 ID,用户名,显示名称,以及邮箱地址 ...":"Search user ID, username, display name, and email address...",用户名:"Username",统计信息:"Statistics",用户角色:"User Role",未绑定邮箱地址:"Email not bound",请求次数:"Number of Requests",今日次数:"Daily Count",总次数:"Total Count",提升:"Promote",降级:"Demote",删除用户:"Delete User",添加新的用户:"Add New User",自定义:"Custom","等价金额:":"Equivalent Amount: ","未登录或登录已过期,请重新登录":"Not logged in or login has expired, please log in again","请求次数过多,请稍后再试":"Too many requests, please try again later","服务器内部错误,请联系管理员":"Server internal error, please contact the administrator","本站仅作演示之用,无服务端":"This site is for demonstration purposes only, no server-side","超级管理员未设置充值链接!":"Super administrator has not set the recharge link!","错误:":"Error: ","新版本可用:${data.version},请使用快捷键 Shift + F5 刷新页面":"New version available: ${data.version}, please refresh the page using shortcut Shift + F5",无法正常连接至服务器:"Unable to connect to the server normally",管理渠道:"Manage Channels",系统状况:"System Status",系统信息:"System Information",系统信息总览:"System Information Overview",版本:"Version",源码:"Source Code",启动时间:"Startup Time",系统配置:"System Configuration",系统配置总览:"System Configuration Overview",邮箱验证:"Email Verification",未启用:"Not Enabled","GitHub 身份验证":"GitHub Authentication",微信身份验证:"WeChat Authentication","Turnstile 用户校验":"Turnstile User Verification",创建新的渠道:"Create New Channel",是否自动禁用:"Whether to automatically disable","仅当自动禁用开启时有效,关闭后不会自动禁用该渠道":"Only effective when automatic disabling is enabled, after closing, the channel will not be automatically disabled",镜像:"Mirror","请输入镜像站地址,格式为:https://domain.com,可不填,不填则使用渠道默认值":"Please enter the mirror site address, the format is: https://domain.com, it can be left blank, if left blank, the default value of the channel will be used",模型:"Model",请选择该通道所支持的模型:"Please select the model supported by the channel",填入基础模型:"Fill in the basic model",填入所有模型:"Fill in all models",清除所有模型:"Clear all models",复制所有模型:"Copy all models",密钥:"Key",请输入密钥:"Please enter the key",批量创建:"Batch Create",更新渠道信息:"Update Channel Information",我的令牌:"My Tokens",管理兑换码:"Manage Redeem Codes",兑换码:"Redeem Code",管理用户:"Manage Users",额度明细:"Quota Details",个人设置:"Personal Settings",运营设置:"Operation Settings",系统设置:"System Settings",其他设置:"Other Settings",项目仓库地址:"Project Repository Address","可在设置页面设置关于内容,支持 HTML & Markdown":"The About content can be set on the settings page, supporting HTML & Markdown",由:"developed by","开发,基于":"based on","MIT 协议":"MIT License",充值额度:"Recharge Quota",获取兑换码:"Get Redeem Code",一个月后过期:"Expires after one month",一天后过期:"Expires after one day",一小时后过期:"Expires after one hour",一分钟后过期:"Expires after one minute",创建新的令牌:"Create New Token","令牌分组,默认为用户的分组":"Token group, default is the your's group",IP白名单:"IP whitelist","令牌的额度仅用于限制令牌本身的最大额度使用量,实际的使用受到账户的剩余额度限制":"The quota of the token is only used to limit the maximum quota usage of the token itself, and the actual usage is limited by the remaining quota of the account",无限额度:"Unlimited quota",更新令牌信息:"Update Token Information","请输入充值码!":"Please enter the recharge code!",请输入名称:"Please enter a name","请输入密钥,一行一个":"Please enter the key, one per line",请输入额度:"Please enter the quota",令牌创建成功:"Token created successfully",令牌更新成功:"Token updated successfully","充值成功!":"Recharge successful!",更新用户信息:"Update User Information",请输入新的用户名:"Please enter a new username",请输入新的密码:"Please enter a new password",显示名称:"Display Name",请输入新的显示名称:"Please enter a new display name","已绑定的 GITHUB 账户":"Bound GitHub Account","已绑定的 WECHAT 账户":"Bound WeChat Account","已绑定的 EMAIL 账户":"Bound Email Account","已绑定的 TELEGRAM 账户":"Bound Telegram Account","此项只读,要用户通过个人设置页面的相关绑定按钮进行绑定,不可直接修改":"This item is read-only. Users need to bind through the relevant binding button on the personal settings page, and cannot be modified directly","用户信息更新成功!":"User information updated successfully!","使用明细(总消耗额度:{renderQuota(stat.quota)})":"Usage Details (Total Consumption Quota: {renderQuota(stat.quota)})",用户名称:"User Name",令牌名称:"Token Name",留空则查询全部用户:"Leave blank to query all users",留空则查询全部令牌:"Leave blank to query all tokens",模型名称:"Model Name",留空则查询全部模型:"Leave blank to query all models",起始时间:"Start Time",结束时间:"End Time",查询:"Query",提示:"Prompt",补全:"Completion",消耗额度:"Used Quota","渠道不存在:%d":"Channel does not exist: %d","数据库一致性已被破坏,请联系管理员":"Database consistency has been broken, please contact the administrator","使用近似的方式估算 token 数以减少计算量":"Estimate the number of tokens in an approximate way to reduce computational load","请填写ChannelName和ChannelKey!":"Please fill in the ChannelName and ChannelKey!","请至少选择一个Model!":"Please select at least one Model!",加载关于内容失败:"Failed to load content about","用户账户创建成功!":"User account created successfully!",生成数量:"Generate quantity",请输入生成数量:"Please enter the quantity to generate",创建新用户账户:"Create new user account","渠道更新成功!":"Channel updated successfully!","渠道创建成功!":"Channel created successfully!",请选择分组:"Please select a group",更新兑换码信息:"Update redemption code information",创建新的兑换码:"Create a new redemption code",未找到所请求的页面:"The requested page was not found","过期时间格式错误!":"Expiration time format error!","过期时间不能早于当前时间!":"Expiration time cannot be earlier than the current time!","请输入过期时间,格式为 yyyy-MM-dd HH:mm:ss,-1 表示无限制":"Please enter the expiration time, the format is yyyy-MM-dd HH:mm:ss, -1 means no limit","此项可选,为一个 JSON 文本,键为用户请求的模型名称,值为要替换的模型名称,例如:":"This is optional, it's a JSON text, the key is the model name requested by the user, and the value is the model name to be replaced, for example:","此项可选,输入镜像站地址,格式为:":"This is optional, enter the mirror site address, the format is:",模型映射:"Model mapping","请输入默认 API 版本,例如:2023-03-15-preview,该配置可以被实际的请求查询参数所覆盖":"Please enter the default API version, for example: 2023-03-15-preview, this configuration can be overridden by the actual request query parameters",默认:"Default",图片演示:"Image demo","注意,系统请求的时模型名称中的点会被剔除,例如:gpt-4.1会请求为gpt-41,所以在Azure部署的时候,部署模型名称需要手动改为gpt-41":"Note that the dot in the model name requested by the system will be removed, for example: gpt-4.1 will be requested as gpt-41, so when deploying on Azure, the deployment model name needs to be manually changed to gpt-41",'2025年5月10日后添加的渠道,不需要再在部署的时候移除模型名称中的"."':"After May 10, 2025, channels added do not need to remove the dot in the model name during deployment","模型映射必须是合法的 JSON 格式!":"Model mapping must be in valid JSON format!",取消:"Cancel",重置:"Reset",请输入新的剩余额度:"Please enter the new remaining quota",请输入单个兑换码中包含的额度:"Please enter the quota included in a single redemption code",请输入用户名:"Please enter username",请输入显示名称:"Please enter display name",请输入密码:"Please enter password","注意,模型部署名称必须和模型名称保持一致":"Note that the model deployment name must be consistent with the model name","请输入 AZURE_OPENAI_ENDPOINT":"Please enter AZURE_OPENAI_ENDPOINT","请输入自定义渠道的 Base URL":"Please enter the Base URL of the custom channel","Homepage URL 填":"Fill in the Homepage URL","Authorization callback URL 填":"Fill in the Authorization callback URL",请为通道命名:"Please name the channel","此项可选,用于修改请求体中的模型名称,为一个 JSON 字符串,键为请求中模型名称,值为要替换的模型名称,例如:":"This is optional, used to modify the model name in the request body, it's a JSON string, the key is the model name in the request, and the value is the model name to be replaced, for example:",模型重定向:"Model redirection",请输入渠道对应的鉴权密钥:"Please enter the authentication key corresponding to the channel","注意,":"Note that, ",",图片演示。":"related image demo.","令牌创建成功,请在列表页面点击复制获取令牌!":"Token created successfully, please click copy on the list page to get the token!",代理:"Proxy","此项可选,用于通过自定义API地址来进行 API 调用,请输入API地址,格式为:https://domain.com":"This is optional, used to make API calls through the proxy site, please enter the proxy site address, the format is: https://domain.com","取消密码登录将导致所有未绑定其他登录方式的用户(包括管理员)无法通过密码登录,确认取消?":"Canceling password login will cause all users (including administrators) who have not bound other login methods to be unable to log in via password, confirm cancel?","按照如下格式输入:":"Enter in the following format:",模型版本:"Model version","请输入星火大模型版本,注意是接口地址中的版本号,例如:v2.1":"Please enter the version of the Starfire model, note that it is the version number in the interface address, for example: v2.1",点击查看:"click to view","请确保已在 Azure 上创建了 gpt-35-turbo 模型,并且 apiVersion 已正确填写!":"Please make sure that the gpt-35-turbo model has been created on Azure, and the apiVersion has been filled in correctly!","建议收藏所有地址,以防失联。":"It is recommended to bookmark all addresses to prevent losing contact.","无法正常请求API的用户,请联系管理员。":"For users who cannot request the API normally, please contact the administrator.",温馨提示:"Kind tips","获取API URL列表时发生错误,请稍后重试。":"An error occurred while retrieving the API URL list, please try again later.",",时间:":",time:","已用/剩余":"Used/Remaining",",点击更新":", click Update","确定是否要清空此渠道记录额度?":"Are you sure you want to clear the record quota of this channel?",此修改将不可逆:"This modification will be irreversible",优先级:"Priority",权重:"Weight",测试操作项目组:"Test operation project team","确定是否要删除此渠道?":"Are you sure you want to delete this channel?","确定是否要复制此渠道?":"Are you sure you want to copy this channel?",复制渠道的所有信息:"Copy all information for a channel",展开操作:"Expand operation",_复制:"_copy","渠道未找到,请刷新页面后重试。":"Channel not found, please refresh the page and try again.",渠道复制成功:"Channel copy successful","渠道复制失败: ":"Channel copy failed:","已成功开始测试所有通道,请刷新页面查看结果。":"Testing of all channels has been started successfully, please refresh the page to view the results.","请先选择要删除的通道!":"Please select the channel you want to delete first!",搜索渠道关键词:"Search channel keywords",模型关键字:"model keyword",选择分组:"Select group",使用ID排序:"Sort by ID",是否用ID排序:"Whether to sort by ID","确定?":"Sure?","确定是否要删除禁用通道?":"Are you sure you want to delete the disabled channel?",开启批量操作:"Enable batch selection",是否开启批量操作:"Whether to enable batch selection","确定是否要删除所选通道?":"Are you sure you want to delete the selected channels?","确定是否要修复数据库一致性?":"Are you sure you want to repair database consistency?","进行该操作时,可能导致渠道访问错误,请仅在数据库出现问题时使用":"When performing this operation, it may cause channel access errors. Please only use it when there is a problem with the database.","当前没有可用的启用令牌,请确认是否有令牌处于启用状态!":"There are currently no enablement tokens available, please confirm if one is enabled!",API令牌:"API Token",使用日志:"Usage log",用量日统计:"Usage Statistics","暂无统计数据,请先发起API请求或调整筛选条件":"No statistics data available. Please make API requests first or adjust filter conditions",统计摘要:"Statistics Summary","按日期、令牌、模型分组汇总":"Grouped by date, token, and model",Midjourney日志:"Midjourney",数据看板:"Dashboard",模型列表:"Model list",常见问题:"FAQ",免费体验:"Free trial",新用户注册赠送$:"Free $ for new user registration",测试金额:"Test amount","请稍后几秒重试,Turnstile 正在检查用户环境!":"Please try again in a few seconds, Turnstile is checking the user environment!","您正在使用默认密码!":"You are using the default password!","请立刻修改默认密码!":"Please change the default password immediately!","请输入用户名和密码!":"Please enter username and password!",用户名或邮箱:"Username or email",微信扫码登录:"WeChat scan code to log in",刷新成功:"Refresh successful",刷新失败:"Refresh failed","用时/首字":"Time/first word",重试:"Retry",用户信息:"User information","无法复制到剪贴板,请手动复制":"Unable to copy to clipboard, please copy manually",消费:"Consume",管理:"Manage",系统:"System",用时:"time",首字时间:"First word time",是否流式:"Whether to stream",非流:"not stream","渠道 ID":"Channel ID",用户ID:"User ID",花费:"Spend",列设置:"Column settings",补偿:"compensate",错误:"mistake",未知:"unknown",全选:"Select all",组名必须唯一:"Group name must be unique","解析 JSON 出错:":"Error parsing JSON:","解析 GroupModel 时发生错误: ":"An error occurred while parsing GroupModel:","GroupModel 未定义,无法更新分组":"GroupModel is not defined, cannot update grouping",重置成功:"Reset successful","加载数据出错:":"Error loading data:","加载数据时发生错误: ":"An error occurred while loading data:",保存成功:"Saved successfully","部分保存失败,请重试":"Partial saving failed, please try again",请检查输入:"Please check your input","如何区分不同分组不同模型的价格:供参考的配置方式":"How to distinguish the prices of different models in different groups: configuration method for reference",获取价格顺序:"Get price order","确定同步远程数据吗?":"Are you sure you want to synchronize remote data?","此修改将不可逆!建议同步前先备份自己的设置!":"This modification will be irreversible! It is recommended to back up your settings before synchronizing!","模型固定价格(按次计费模型用)":"Model fixed price (for pay-per-view models)","模型倍率(按量计费模型用)":"Model magnification (for pay-as-you-go model)","为一个 JSON 文本,键为模型名称,值为倍率":"is a JSON text, the key is the model name, and the value is the magnification",隐藏:"Hide",分组名称:"Group name",提交结果:"Results",模式:"Mode",任务状态:"Status",耗时:"Time consuming",结果图片:"Result",失败原因:"Failure reason",全部:"All",成功:"Success",未启动:"No start",队列中:"In queue",窗口等待:"window wait",失败:"Failed",绘图:"Drawing",绘图日志:"Drawing log",放大:"Upscalers",微妙放大:"Upscale (Subtle)",创造放大:"Upscale (Creative)",强变换:"Low Variation",弱变换:"High Variation",图生文:"Describe",图混合:"Blend",重绘:"Vary","局部重绘-提交":"Vary Region","自定义变焦-提交":"Custom Zoom-Submit",窗口处理:"window handling",缩词后生图:"epigenetic diagram of abbreviation",图生文按钮生图:"Picture and text button","任务 ID":"Task ID",速度模式:"speed mode","错误:未登录或登录已过期,请重新登录!":"Error: Not logged in or your login has expired, please log in again!","错误:请求次数过多,请稍后再试!":"Error: Too many requests, please try again later!","错误:服务器内部错误,请联系管理员!":"Error: Internal server error, please contact the administrator!","本站仅作演示之用,无服务端!":"This site is for demonstration purposes only, no server!","已用额度:":"Used amount:","请求次数:":"Number of requests:",平移:"Pan",上传文件:"Upload",图生文后生图:"Pictures give rise to text and later pictures",已提交:"Submitted",重复提交:"Duplicate submission",未提交:"Not submitted",缩词:"Shorten",变焦:"zoom",按次计费:"Pay per view",按量计费:"Pay as you go",标签:"Label",人民币:"RMB",说明:"illustrate",可用性:"Availability",数据加载失败:"Data loading failed","发生错误,请重试":"An error occurred, please try again","本站汇率1美金=":"The exchange rate of this site is 1 USD =",模糊搜索:"fuzzy search",选择标签:"Select label",令牌分组:"Token grouping",隐:"hidden",本站当前已启用模型:"The model is currently enabled on this site",个:"indivual","倍率是本站的计算方式,不同模型有着不同的倍率,并非官方价格的多少倍,请务必知晓。":"The magnification is the calculation method of this website. Different models have different magnifications, which are not multiples of the official price. Please be sure to know.","所有各厂聊天模型请统一使用OpenAI方式请求,支持OpenAI官方库<br/>Claude()Claude官方格式请求":"Please use the OpenAI method to request all chat models from each factory, and support the OpenAI official library<br/>Claude()Claude official format request",复制选中模型:"Copy selected model",分组说明:"Group description",倍率是为了方便换算不同价格的模型:"The magnification is to facilitate the conversion of models with different prices.",点击查看倍率说明:"Click to view the magnification description",显:"show",当前分组可用:"Available in current group",当前分组不可用:"The current group is unavailable","提示:":"input:","输入:":"input:","补全:":"output:","输出:":"output:","图片输出:":"Image output:","模型价格:":"Model price:","模型:":"Model:","分组:":"Grouping:",最终价格:"final price",计费类型:"Billing type",美元:"Dollar",倍率:"Ratio","常见问题不是合法的 JSON 字符串":"FAQ is not a valid JSON string",常见问题更新失败:"FAQ update failed",活动内容已更新:"Event content has been updated",活动内容更新失败:"Event content update failed",页脚内容已更新:"Footer content updated",页脚内容更新失败:"Footer content update failed","Logo 图片地址":"Logo image address",在此输入图片地址:"Enter image address here","在此输入首页内容,支持 Markdown & HTML 代码,设置后首页的状态信息将不再显示。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页作为首页。":"Enter the home page content here, support Markdown",令牌分组说明:"Token grouping description","在此输入新的关于内容,支持 Markdown & HTML 代码。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页作为关于页面。":"Enter new about content here, support Markdown",API地址列表:"API address list","在此输入新的常见问题,json格式;键为问题,值为答案。":"Enter a new FAQ here in json format; the key is the question and the value is the answer.",活动内容:"Activity content","在此输入新的活动内容。":"Enter new event content here.",总计:"Total",无数据:"No data",小时:"Hour",新密码:"New Password","重置邮件发送成功,请检查邮箱!":"The reset email was sent successfully, please check your email!","输入你的账户名{{username}}以确认删除":"Enter your account name{{username}}to confirm deletion","账户已删除!":"Account has been deleted!","微信账户绑定成功!":"WeChat account bound successfully!","两次输入的密码不一致!":"The passwords entered twice are inconsistent!","密码修改成功!":"Password changed successfully!",划转金额最低为:"The minimum transfer amount is","请输入邮箱!":"Please enter your email!","验证码发送成功,请检查邮箱!":"The verification code was sent successfully, please check your email!","请输入邮箱验证码!":"Please enter the email verification code!",请输入要划转的数量:"Please enter the amount to be transferred",当前余额:"Current balance",单独并发限制:"Individual concurrency limits",未设置单独并发限制:"No individual concurrency limit is set",无效的用户单独并发限制数据:"Invalid user individual concurrency limit data",未绑定:"Not bound",修改绑定:"Modify binding",确认新密码:"Confirm new password",历史消耗:"Consumption",查看:"Check",修改密码:"Change password",删除个人账户:"Delete personal account",已绑定:"Bound",获取二维码失败:"Failed to obtain QR code",获取当前设置失败:"Failed to get current settings",设置已更新:"Settings updated",更新设置失败:"Update settings failed",确认解绑:"Confirm unbinding","您确定要解绑WxPusher吗?":"Are you sure you want to unbind WxPusher?",解绑失败:"Unbinding failed",订阅事件:"Subscribe to events",通知方式:"Notification method",留空将通知到账号邮箱:"Leave this blank to be notified to the account email",查看接入文档:"View access documentation",企业微信机器人Key:"Enterprise WeChat Robot Key","您已绑定WxPusher,可以点击下方解绑":"You have bound WxPusher, you can click below to unbind",请扫描二维码绑定WxPusher:"Please scan the QR code to bind WxPusher","预警额度(需订阅事件)":"Alert quota (need to subscribe to events)"," 时,将收到预警邮件(2小时最多1次)":"When, you will receive an early warning email (maximum once every 2 hours)",兑换人ID:"Redeemer ID","确定是否要删除此兑换码?":"Are you sure you want to delete this redemption code?","已复制到剪贴板!":"Copied to clipboard!",搜索关键字:"Search keywords","关键字(id或者名称)":"Keyword (id or name)",复制所选兑换码:"Copy selected redemption code","请至少选择一个兑换码!":"Please select at least one redemption code!","密码长度不得小于 8 位!":"Password must be at least 8 characters long!","注册成功!":"Registration successful!","验证码发送成功,请检查你的邮箱!":"The verification code was sent successfully, please check your email!",确认密码:"Confirm Password",邀请码:"Invitation code",输入邀请码:"Enter invitation code",账户:"Account",邮箱:"Email","已有账户?":"Already have an account?",创意任务:"Tasks",用户管理:"User Management","任务ID(点击查看详情)":"Task ID (click to view details)",进度:"schedule",花费时间:"spend time",生成音乐:"generate music",生成歌词:"Generate lyrics",歌曲拼接:"song splicing",上传歌曲:"Upload songs",生成视频:"Generate video",扩展视频:"Extended video",获取无水印:"Get no watermark",生成图片:"Generate pictures",可灵:"Kling",即梦:"Jimeng",正在提交:"Submitting",执行中:"processing",平台:"platform",排队中:"Queuing","已启用:限制模型":"Enabled: restricted model","AMA 问天":"AMA Wentian",项目操作按钮组:"Project action button group","AMA 问天(BotGem)":"AMA Wentian (BotGem)","确定是否要删除此令牌?":"Are you sure you want to delete this token?",管理员未设置聊天链接:"The administrator has not set up a chat link",复制所选令牌:"Copy selected token","请至少选择一个令牌!":"Please select at least one token!",管理员未设置查询页链接:"The administrator has not set the query page link",批量删除令牌:"Batch delete token","确定要删除所选的 {{count}} 个令牌吗?":"Are you sure you want to delete the selected {{count}} tokens?",删除所选令牌:"Delete selected token","请先选择要删除的令牌!":"Please select the token to be deleted!","已删除 {{count}} 个令牌!":"Deleted {{count}} tokens!",删除失败:"Delete failed",复制令牌:"Copy token",请选择你的复制方式:"Please select your copy method","名称+密钥":"Name + key",仅密钥:"Only key",查看API地址:"View API address",打开查询页:"Open query page","时间(仅显示近3天)":"Time (only displays the last 3 days)","请输入兑换码!":"Please enter the redemption code!","兑换成功!":"Redemption successful!","成功兑换额度:":"Successful redemption amount:",请求失败:"Request failed","管理员未开启在线充值!":"The administrator has not enabled online recharge!",充值数量不能小于:"The recharge amount cannot be less than","管理员未开启Stripe在线充值!":"The administrator has not enabled Stripe online recharge!","当前充值1美金=":"Current recharge = 1 USD =","请选择充值方式!":"Please choose a recharge method!",元:"CNY",充值记录:"Recharge record",返利记录:"Rebate record","确定要充值 $":"Confirm to top up $","兑换中...":"Redemming","微信/支付宝 实付金额:":"WeChat/Alipay actual payment amount:","Stripe 实付金额:":"Stripe actual payment amount:","支付中...":"Paying",支付宝:"Alipay",待使用收益:"Proceeds to be used",邀请人数:"Number of people invited",兑换码充值:"Redemption code recharge",使用兑换码快速充值:"Use redemption code to quickly recharge",支付方式:"Payment method",邀请奖励:"Invite reward",或输入自定义金额:"Or enter a custom amount",选择充值额度:"Select recharge amount",实付:"Actual payment",快速方便的充值方式:"Quick and convenient recharge method",邀请好友获得额外奖励:"Invite friends to get additional rewards","邀请好友注册,好友充值后您可获得相应奖励":"Invite friends to register, and you can get the corresponding reward after the friend recharges",通过划转功能将奖励额度转入到您的账户余额中:"Transfer the reward amount to your account balance through the transfer function","邀请的好友越多,获得的奖励越多":"The more friends you invite, the more rewards you will get",在线充值:"Online recharge","充值数量,最低 ":"Recharge quantity, minimum",请选择充值金额:"Please select the recharge amount",微信:"WeChat",邀请返利:"Invite rebate",总收益:"total revenue",邀请信息:"Invitation information",代理加盟:"Agent to join",代理商信息:"Agent information",分红记录:"Dividend record",提现记录:"Withdrawal records",代理商管理:"Agent management",自定义输入:"custom input",加载token失败:"Failed to load token",配置聊天:"Configure chat",模型消耗分布:"Model consumption distribution",模型调用次数占比:"Model call ratio",用户消耗分布:"User consumption distribution",时间粒度:"Time granularity",天:"day",模型概览:"Model overview",用户概览:"User overview",正在策划中:"Under planning",请求首页内容失败:"Requesting homepage content failed",返回首页:"Return to home page","获取用户数据时发生错误,请稍后重试。":"An error occurred while retrieving user data, please try again later.",无额度:"No limit",累计消费:"Accumulated consumption",累计请求:"Cumulative requests","你好,":"Hello,",线路监控:"line monitoring",查看全部:"View all",异常:"Abnormal",的未命名令牌:"unnamed token","令牌更新成功!":"Token updated successfully!","(origin) Discord原链接":"(origin) Discord original link",请选择过期时间:"Please select expiration time",数量:"quantity",请选择或输入创建令牌的数量:"Please select or enter the number of tokens to create",请选择渠道:"Please select a channel","允许的IP,一行一个,不填写则不限制":"Allowed IPs, one per line, not filled in means no restrictions",IP黑名单:"IP blacklist","不允许的IP,一行一个":"IPs not allowed, one per line",请选择该渠道所支持的模型:"Please select the model supported by this channel",次:"times",达到限速报错内容:"Error content when the speed limit is reached",不填则使用默认报错:"If not filled in, the default error will be reported.","Midjouney 设置 (可选)":"Midjouney settings (optional)","令牌纬度控制 Midjouney 配置,设置优先级:令牌 {":"Token latitude controls Midjouney configuration, setting priority: token {","图片代理地址最好用自己的,本站绘图量大,公用代理地址可能有时网速不佳":"It is best to use your own image proxy address. This site has a large amount of drawings, and public proxy addresses may sometimes have poor network speeds.","【突发备用号池】用于应对高强度风控情况,当普通号池全部重试失败,任务进入备用号池执行并额外计费。":"[Sudden backup number pool] is used to deal with high-intensity risk control situations. When all retries in the ordinary number pool fail, the task will be executed in the backup number pool and additional charges will be incurred.",绘图模式:"Drawing mode",请选择模式:"Please select mode",图片代理方式:"Picture agency method","用于替换 https://cdn.discordapp.com 的域名":"The domain name used to replace https://cdn.discordapp.com",一个月:"A month",一天:"One day",令牌渠道分组选择:"Token channel grouping selection","只可使用对应分组包含的模型。":"Only models contained in the corresponding group can be used.",渠道分组:"Channel grouping","安全设置(可选)":"Security settings (optional)","IP 限制":"IP restrictions",模型限制:"Model restrictions",秒:"Second",更新令牌后需等待几分钟生效:"It will take a few minutes to take effect after updating the token.",一周:"One Week",新建数量:"New quantity",未设置:"Not set",API文档:"API documentation","不是合法的 JSON 字符串":"Not a valid JSON string",个人中心:"Personal center",代理商:"Agent",钱包:"Wallet",备注:"Remark",工作台:"Workbench","已复制:":"Copied:",提交时间:"Submission time","无法正常连接至服务器!":"Unable to connect to the server properly!",无记录:"No record",日间模式:"day mode",活动福利:"Activity benefits","聊天/绘画":"Chat/Draw",跟随系统:"Follow the system",黑夜模式:"Dark mode",管理员设置:"Admin",待更新:"To be updated",定价:"Pricing","支付中..":"Paying",查看图片:"View pictures",并发限制:"Concurrency limit",正常:"Normal",周期:"cycle","同步频率10-20分钟":"Synchronization frequency 10-20 minutes",模型调用占比:"Model call proportion","次,平均每天":"times, average per day",",平均每天":", on average every day","启用突发备用号池(建议勾选,极大降低故障率)":"Enable burst backup number pool (it is recommended to check this box to greatly reduce the failure rate)",查看说明:"View instructions",添加令牌:"Create token",IP限制:"IP restrictions","令牌纬度控制 Midjouney 配置,设置优先级:令牌 > 路径参数 > 系统默认":"Token latitude controls Midjouney configuration, setting priority: token > path parameter > system default",启用速率限制:"Enable rate limiting",复制BaseURL:"Copy BaseURL",总消耗额度:"Total consumption amount",近一分钟内消耗Token数:"Number of tokens consumed in the past minute",近一分钟内消耗额度:"Quota consumed in the past minute",近一分钟内请求次数:"Number of requests in the past minute",预估一天消耗量:"Estimated daily consumption","模型固定价格:":"Model fixed price:","仅供参考,以实际扣费为准":"For reference only, actual deduction shall prevail",导出CSV:"Export CSV",流:"stream",任务ID:"Task ID",周:"week","总计:":"Total:",划转到余额:"Transfer to balance",可用额度:"Available credit","邀请码:":"Invitation code:",最低:"lowest",划转额度:"Transfer amount",邀请链接:"Invitation link",划转邀请额度:"Transfer invitation quota",可用邀请额度:"Available invitation quota",更多优惠:"More offers",企业微信:"Enterprise WeChat",点击解绑WxPusher:"Click to unbind WxPusher",点击显示二维码:"Click to display the QR code","二维码已过期,点击重新获取":"The QR code has expired, click to get it again",邮件:"Mail",个人信息:"Personal information",余额不足预警:"Insufficient balance warning",促销活动通知:"Promotion notification","修改密码、邮箱、微信等":"Change password, email, WeChat, etc.",更多选项:"More options",模型调价通知:"Model price adjustment notice",系统公告通知:"System announcement notification",订阅管理:"Subscription management","防失联-定期通知":"Prevent loss of contact - regular notifications","订阅事件后,当事件触发时,您将会收到相应的通知":"After subscribing to the event, you will receive the corresponding notification when the event is triggered.","当余额低于 ":"When the balance is lower than",保存:"save",计费说明:"Billing instructions",高稳定性:"High stability",没有账号请先:"If you don't have an account, please",注册账号:"Register an account",第三方登录:"Third party login",欢迎回来:"welcome back",忘记密码:"forget the password","想起来了?":"Remember?",退出:"Quit",确定:"OK","请输入星火大模型版本,注意是接口地址中的版本号,例如:v2[1]":"Please enter the Spark model version, note that it is the version number in the interface address, for example: v2.1",等待中:"Waiting","所有各厂聊天模型请统一使用OpenAI方式请求,支持OpenAI官方库":"Please use the OpenAI method to request all chat models from each factory, and support the OpenAI official library.","实付金额:":"Actual payment amount: ",金额:"Amount",充值金额:"Recharge amount","易支付 实付金额:":"Easy Pay Actual payment amount:","微信扫码关注公众号,输入 ":"Scan the QR code on WeChat to follow the official account and enter"," 获取验证码(三分钟内有效)":"Get verification code (valid within three minutes)",不可用模型:"Unavailable model",关:"close",加载首页内容失败:"Failed to load home page content",打开聊天:"Open chat",新窗口打开:"New window opens","禁用(仍可为用户单独开启)":"Disabled (can still be turned on individually for users)",重新配置:"Reconfigure",隐藏不可用模型:"Hide unavailable models"," 时,将收到预警通知(2小时最多1次)":"When, you will receive an early warning notification (maximum once every 2 hours)",在iframe中加载:"Load in iframe",补全倍率:"Completion ratio",保存分组数据失败:"Failed to save group data","保存失败,请重试":"Save failed, please try again",没有可用的使用信息:"No usage information available",使用详情:"Usage details",收起:"Collapse",计费详情:"Billing details",提示Token:"Tip Token",补全Token:"Complete Token",提示Token详情:"Prompt Token details",补全Token详情:"Complete Token details",输出Token详情:"Output Token details",缓存Token:"CacheToken",内部缓存Token:"Internal cache token",图像Token:"ImageToken",音频Token:"AudioToken",开:"open",推理Token:"ReasoningToken",文本Token:"TextToken",显示禁用渠道:"Show disabled channels",输入Token详情:"Enter Token details",输出Token:"OutputToken",隐藏禁用渠道:"Hide disabled channels",今日不再提醒:"No more reminders today","平台/类型":"Platform/Type",平台和类型:"Platforms and types",当前选择分组:"Currently selected group",表情迁移:"Expression migration","音频输入:":"Audio input:","音频输出:":"Audio output:",风格重绘:"style repaint",发送测试通知失败:"Failed to send test notification",开始时间:"start time",当前所选分组不可用:"The currently selected group is unavailable",接口凭证:"Interface credentials",文字输入:"Text input",文字输出:"text output",日志详情:"Log details",未完成:"Not completed",测试单个渠道操作项目组:"Test a single channel operation project group",测试通知:"Test notification",测试通知发送成功:"Test notification sent successfully",点击此处查看接入文档:"Click here to view access documentation",类型1:"Type 1","类型1 (Imagine)":"Type 1 (Imagine)",类型1价格:"Type 1 price",类型2:"Type 2","类型2 (Upscale)":"Type 2 (Upscale)",类型2价格:"Type 2 price",类型3价格:"Type 3 price",计费过程:"Binning process",语音输入:"Voice input",语音输出:"Voice output",请在右侧切换到可用分组:"Please switch to available groups on the right","请联系管理员~":"Please contact the administrator~",调用消费:"Call consumption",质量:"quality",速度:"speed",钉钉机器人Key:"DingTalk Robot Key","需要@的用户手机号":"Need @ user mobile phone number","(提示":"(hint",下载文件:"Download file","https...xxx.com.webhook":"","搜索渠道的 ID,名称和密钥 ":"","搜索用户的 ID,用户名,显示名称,以及邮箱地址 ":"","操作失败,重定向至登录界面中":"",支付中:"",等级:"grade",钉钉:"DingTalk","模型价格:${{price}} * 分组倍率:{{ratio}} = ${{total}}":"Model price: ${{price}} * Group ratio: {{ratio}} = ${{total}}","输入:${{price}} * {{ratio}} = ${{total}} / 1M tokens":"Prompt: ${{price}} * {{ratio}} = ${{total}} / 1M tokens","输出:${{price}} * {{ratio}} = ${{total}} / 1M tokens":"Completion: ${{price}} * {{ratio}} = ${{total}} / 1M tokens","图片输入:${{price}} * {{ratio}} = ${{total}} / 1M tokens (图片倍率: {{imageRatio}})":"Image input: ${{price}} * {{ratio}} = ${{total}} / 1M tokens (Image ratio: {{imageRatio}})","音频输入:${{price}} * {{ratio}} * {{audioRatio}} = ${{total}} / 1M tokens":"Audio prompt: ${{price}} * {{ratio}} * {{audioRatio}} = ${{total}} / 1M tokens","音频提示 {{input}} tokens / 1M tokens * ${{price}} * {{audioRatio}} + 音频补全 {{completion}} tokens / 1M tokens * ${{price}} * {{audioRatio}} * {{audioCompRatio}}":"Audio prompt {{input}} tokens / 1M tokens * ${{price}} * {{audioRatio}} + Audio completion {{completion}} tokens / 1M tokens * ${{price}} * {{audioRatio}} * {{audioCompRatio}}","音频输出:${{price}} * {{ratio}} * {{audioRatio}} * {{audioCompRatio}} = ${{total}} / 1M tokens":"Audio completion: ${{price}} * {{ratio}} * {{audioRatio}} * {{audioCompRatio}} = ${{total}} / 1M tokens","输入 {{nonImageInput}} tokens + 图片输入 {{imageInput}} tokens * {{imageRatio}} / 1M tokens * ${{price}} + 输出 {{completion}} tokens / 1M tokens * ${{compPrice}} * 分组 {{ratio}} = ${{total}}":"Input {{nonImageInput}} tokens + Image input {{imageInput}} tokens * {{imageRatio}} / 1M tokens * ${{price}} + Output {{completion}} tokens / 1M tokens * ${{compPrice}} * Group {{ratio}} = ${{total}}","(文字 + 音频)* 分组倍率 {{ratio}} = ${{total}}":"(Text + Audio) * Group ratio {{ratio}} = ${{total}}","文字提示 {{input}} tokens / 1M tokens * ${{price}} + 文字补全 {{completion}} tokens / 1M tokens * ${{compPrice}} +":"Text prompt {{input}} tokens / 1M tokens * ${{price}} + Text completion {{completion}} tokens / 1M tokens * ${{compPrice}} +","输入 {{input}} tokens / 1M tokens * ${{price}} + 输出 {{completion}} tokens / 1M tokens * ${{compPrice}} * 分组 {{ratio}} = ${{total}}":"Prompt {{input}} tokens / 1M tokens * ${{price}} + Completion {{completion}} tokens / 1M tokens * ${{compPrice}} * Group {{ratio}} = ${{total}}","价格:${{price}} * 分组:{{ratio}}":"Price: ${{price}} * Group: {{ratio}}","模型: {{ratio}} * 分组: {{groupRatio}}":"Model: {{ratio}} * Group: {{groupRatio}}",统计额度:"Statistical quota",统计Tokens:"Statistical Tokens",统计次数:"Statistical count",平均RPM:"Average RPM",平均TPM:"Average TPM",消耗分布:"Consumption distribution",调用次数分布:"Models call distribution",消耗趋势:"Consumption trend",模型消耗趋势:"Model consumption trend",调用次数排行:"Models call ranking",模型调用次数排行:"Model call ranking",添加渠道:"Add channel",测试所有通道:"Test all channels",删除禁用通道:"Delete disabled channels",修复数据库一致性:"Fix database consistency",删除所选通道:"Delete selected channels",标签聚合模式:"Enable tag mode","没有账户?":"No account? ","请输入 AZURE_OPENAI_ENDPOINT,例如:https://docs-test-001.openai.azure.com":"Please enter AZURE_OPENAI_ENDPOINT, e.g.: https://docs-test-001.openai.azure.com","默认 API 版本":"Default API Version","请输入默认 API 版本,例如:2025-04-01-preview":"Please enter default API version, e.g.: 2025-04-01-preview.",请为渠道命名:"Please name the channel",请选择可以使用该渠道的分组:"Please select groups that can use this channel","请在系统设置页面编辑分组倍率以添加新的分组:":"Please edit Group ratios in system settings to add new groups:",部署地区:"Deployment Region","请输入部署地区,例如:us-central1\n支持使用模型映射格式":`Please enter deployment region, e.g.: us-central1
- Supports model mapping format`,填入模板:"Fill Template",鉴权json:"Authentication JSON",请输入鉴权json:"Please enter authentication JSON",组织:"Organization","组织,不填则为默认组织":"Organization, default if empty","请输入组织org-xxx":"Please enter organization org-xxx",默认测试模型:"Default Test Model",不填则为模型列表第一个:"First model in list if empty","是否自动禁用(仅当自动禁用开启时有效),关闭后不会自动禁用该渠道":"Auto-disable (only effective when auto-disable is enabled). When turned off, this channel will not be automatically disabled",状态码复写:"Status Code Override","此项可选,用于复写返回的状态码,仅影响本地判断,不修改返回到上游的状态码,比如将claude渠道的400错误复写为500(用于重试),请勿滥用该功能,例如:":"Optional, used to override returned status codes, only affects local judgment, does not modify status code returned upstream, e.g. rewriting Claude channel's 400 error to 500 (for retry). Do not abuse this feature. Example:",渠道标签:"Channel Tag",渠道优先级:"Channel Priority",渠道权重:"Channel Weight","仅支持 OpenAI 接口格式":"Only OpenAI interface format is supported",请填写密钥:"Please enter the key",获取模型列表成功:"Successfully retrieved model list",获取模型列表失败:"Failed to retrieve model list","请填写渠道名称和渠道密钥!":"Please enter channel name and key!","请至少选择一个模型!":"Please select at least one model!","提交失败,请勿重复提交!":"Submission failed, please do not submit repeatedly!","某些模型已存在!":"Some models already exist!","如果你对接的是上游One API或者New API等转发项目,请使用OpenAI类型,不要使用此类型,除非你知道你在做什么。":"If you are connecting to upstream One API or New API forwarding projects, please use OpenAI type. Do not use this type unless you know what you are doing.","完整的 Base URL,支持变量{model}":"Complete Base URL, supports variable {model}","请输入完整的URL,例如:https://api.openai.com/v1/chat/completions":"Please enter complete URL, e.g.: https://api.openai.com/v1/chat/completions","此项可选,用于通过自定义API地址来进行 API 调用,末尾不要带/v1和/":"Optional for API calls through custom API address, do not add /v1 and / at the end",私有部署地址:"Private Deployment Address","请输入私有部署地址,格式为:https://fastgpt.run/api/openapi":"Please enter private deployment address, format: https://fastgpt.run/api/openapi","注意非Chat API,请务必填写正确的API地址,否则可能导致无法使用":"Note: For non-Chat API, please make sure to enter the correct API address, otherwise it may not work","请输入到 /suno 前的路径,通常就是域名,例如:https://api.example.com":"Please enter the path before /suno, usually the domain, e.g.: https://api.example.com",填入相关模型:"Fill Related Models","新建渠道时,请求通过当前浏览器发出;编辑已有渠道,请求通过后端服务器发出":"When creating a new channel, requests are sent through the current browser; when editing an existing channel, requests are sent through the backend server",获取模型列表:"Get Model List",填入:"Fill",输入自定义模型名称:"Enter Custom Model Name","知识库 ID":"Knowledge Base ID","请输入知识库 ID,例如:123456":"Please enter knowledge base ID, e.g.: 123456",可选值:"Optional value",任务日志:"Task log",你好:"Hello","你好,请问有什么可以帮助您的吗?":"Hello, how may I help you?",用户分组:"Your default group",每页条数:"Items per page","令牌无法精确控制使用额度,只允许自用,请勿直接将令牌分发给他人。":"Tokens cannot accurately control usage, only for self-use, please do not distribute tokens directly to others.",添加兑换码:"Add redemption code",复制所选兑换码到剪贴板:"Copy selected redemption codes to clipboard","第 {{start}} - {{end}} 条,共 {{total}} 条":"Items {{start}} - {{end}} of {{total}}",新建兑换码:"Code","兑换码更新成功!":"Redemption code updated successfully!","兑换码创建成功!":"Redemption code created successfully!",兑换码创建成功:"Redemption Code Created","兑换码创建成功,是否下载兑换码?":"Redemption code created successfully. Do you want to download it?","兑换码将以文本文件的形式下载,文件名为兑换码的名称。":"The redemption code will be downloaded as a text file, with the filename being the redemption code name.",模型价格:"Model price",可用分组:"Available groups","您的默认分组为:{{group}},分组倍率为:{{ratio}}":"Your default group is: {{group}}, group ratio: {{ratio}}","按量计费费用 = 分组倍率 × 模型倍率 × (提示token数 + 补全token数 × 补全倍率)/ 500000 (单位:美元)":"The cost of pay-as-you-go = Group ratio × Model ratio × (Prompt token number + Completion token number × Completion ratio) / 500000 (Unit: USD)",模糊搜索模型名称:"Fuzzy search model name","您还未登陆,显示的价格为默认分组倍率: {{ratio}}":"You are not logged in, the displayed price is the default group ratio: {{ratio}}",你的分组无权使用该模型:"Your group is not authorized to use this model",您的分组可以使用该模型:"Your group can use this model","当前查看的分组为:{{group}},倍率为:{{ratio}}":"Current group: {{group}}, ratio: {{ratio}}",添加用户:"Add user",角色:"Role","已绑定的 Telegram 账户":"Bound Telegram account","新额度:":"New quota: ","需要添加的额度(支持负数)":"Need to add quota (supports negative numbers)","此项只读,需要用户通过个人设置页面的相关绑定按钮进行绑定,不可直接修改":"Read-only, user's personal settings, and cannot be modified directly","请输入新的密码,最短 8 位":"Please enter a new password, at least 8 characterss",添加额度:"Add quota",以下信息不可修改:"The following information cannot be modified",充值确认:"Recharge confirmation",充值数量:"Recharge quantity",实付金额:"Actual payment amount","是否确认充值?":"Confirm recharge?",我的钱包:"My wallet",默认聊天页面链接:"Default chat page link","聊天页面 2 链接":"Chat page 2 link",失败重试次数:"Failed retry times",额度查询接口返回令牌额度而非用户额度:"Displays token quota instead of user quota",默认折叠侧边栏:"Default collapse sidebar","聊天链接功能已经弃用,请使用下方聊天设置功能":"Chat link function has been deprecated, please use the chat settings below",你似乎并没有修改什么:"You seem to have not modified anything",聊天设置:"Chat settings","必须将上方聊天链接全部设置为空,才能使用下方聊天设置功能":"Must set all chat links above to empty to use the chat settings below","链接中的{key}将自动替换为sk-xxxx,{address}将自动替换为系统设置的服务器地址,末尾不带/和/v1":"The {key} in the link will be automatically replaced with sk-xxxx, the {address} will be automatically replaced with the server address in system settings, and the end will not have / and /v1",聊天配置:"Chat configuration",保存聊天设置:"Save chat settings",绘图设置:"Drawing settings",启用绘图功能:"Enable drawing function","允许回调(会泄露服务器 IP 地址)":"Allow callback (will leak server IP address)","允许 AccountFilter 参数":"Allow AccountFilter parameter",开启之后将上游地址替换为服务器地址:"After enabling, the upstream address will be replaced with the server address",开启之后会清除用户提示词中的:"After enabling, the user prompt will be cleared",检测必须等待绘图成功才能进行放大等操作:"Detection must wait for drawing to succeed before performing zooming and other operations",保存绘图设置:"Save drawing settings",以及:"and",参数:"parameter",屏蔽词过滤设置:"Sensitive word filtering settings",启用屏蔽词过滤功能:"Enable sensitive word filtering function","启用 Prompt 检查":"Enable Prompt check",屏蔽词列表:"Sensitive word list","一行一个屏蔽词,不需要符号分割":"One line per sensitive word, no symbols are required",保存屏蔽词过滤设置:"Save sensitive word filtering settings",日志设置:"Log settings",日志记录时间:"Log record time",请选择日志记录时间:"Please select log record time",清除历史日志:"Clear historical logs","条日志已清理!":"logs have been cleared!",保存日志设置:"Save log settings",数据看板设置:"Data dashboard settings","启用数据看板(实验性)":"Enable data dashboard (experimental)",数据看板更新间隔:"Data dashboard update interval",数据看板默认时间粒度:"Data dashboard default time granularity",保存数据看板设置:"Save data dashboard settings",请选择最长响应时间:"Please select longest response time",成功时自动启用通道:"Enable channel when successful",分钟:"minutes",设置过短会影响数据库性能:"Setting too short will affect database performance","仅修改展示粒度,统计精确到小时":"Only modify display granularity, statistics accurate to the hour","当运行通道全部测试时,超过此时间将自动禁用通道":"When running all channel tests, the channel will be automatically disabled when this time is exceeded",设置公告:"Set notice","设置 Logo":"Set Logo",设置首页内容:"Set home page content",设置关于:"Set about",公告已更新:"Notice updated",系统名称已更新:"System name updated","Logo 已更新":"Logo updated",首页内容已更新:"Home page content updated",关于已更新:"About updated",模型测试:"model test","当前未开启Midjourney回调,部分项目可能无法获得绘图结果,可在运营设置中开启。":"Current Midjourney callback is not enabled, some projects may not be able to obtain drawing results, which can be enabled in the operation settings.","Telegram 身份验证":"Telegram authentication","Linux DO 身份验证":"Linux DO authentication",协议:"License",修改子渠道权重:"Modify sub-channel weight","确定要修改所有子渠道权重为 ":"Confirm to modify all sub-channel weights to "," 吗?":"?",修改子渠道优先级:"Modify sub-channel priority","确定要修改所有子渠道优先级为 ":"Confirm to modify all sub-channel priorities to ",分组倍率设置:"Group ratio settings",用户可选分组:"User selectable groups",保存分组倍率设置:"Save group ratio settings",模型倍率设置:"Model ratio settings",可视化倍率设置:"Visual model ratio settings","确定重置模型倍率吗?":"Confirm to reset model ratio?",模型固定价格:"Model price per call","模型补全倍率(仅对自定义模型有效)":"Model completion ratio (only effective for custom models)",保存模型倍率设置:"Save model ratio settings",重置模型倍率:"Reset model ratio","一次调用消耗多少刀,优先级大于模型倍率":"How much USD one call costs, priority over model ratio",仅对自定义模型有效:"Only effective for custom models",添加模型:"Add model",应用更改:"Apply changes",更多:"Expand more",个模型:"models",可用模型:"Available models",时间范围:"Time range",批量设置标签:"Batch set tag",请输入要设置的标签名称:"Please enter the tag name to be set",请输入标签名称:"Please enter the tag name","支持搜索用户的 ID、用户名、显示名称和邮箱地址":"Support searching for user ID, username, display name, and email address",已注销:"Logged out",自动禁用关键词:"Automatic disable keywords","一行一个,不区分大小写":"One line per keyword, not case-sensitive","当上游通道返回错误中包含这些关键词时(不区分大小写),自动禁用通道":"When the upstream channel returns an error containing these keywords (not case-sensitive), automatically disable the channel",请求并计费模型:"Request and charge model",实际模型:"Actual model",渠道信息:"Channel information",通知设置:"Notification settings",Webhook地址:"Webhook URL","请输入Webhook地址,例如: https://example.com/webhook":"Please enter the Webhook URL, e.g.: https://example.com/webhook",邮件通知:"Email notification",Webhook通知:"Webhook notification","接口凭证(可选)":"Interface credentials (optional)","密钥将以 Bearer 方式添加到请求头中,用于验证webhook请求的合法性":"The secret will be added to the request header as a Bearer token to verify the legitimacy of the webhook request","Authorization: Bearer your-secret-key":"Authorization: Bearer your-secret-key",额度预警阈值:"Quota warning threshold","当剩余额度低于此数值时,系统将通过选择的方式发送通知":"When the remaining quota is lower than this value, the system will send a notification through the selected method",Webhook请求结构:"Webhook request structure","只支持https,系统将以 POST 方式发送通知,请确保地址可以接收 POST 请求":"Only https is supported, the system will send a notification through POST, please ensure the address can receive POST requests",保存设置:"Save settings",通知邮箱:"Notification email","设置用于接收额度预警的邮箱地址,不填则使用账号绑定的邮箱":"Set the email address for receiving quota warning notifications, if not set, the email address bound to the account will be used",留空则使用账号绑定的邮箱:"If left blank, the email address bound to the account will be used",API地址:"Base URL","对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写":"For official channels, the new-api has a built-in address. Unless it is a third-party proxy site or a special Azure access address, there is no need to fill it in",渠道额外设置:"Channel extra settings",参数覆盖:"Parameters override",模型请求速率限制:"Model request rate limit","启用用户模型请求速率限制(可能会影响高并发性能)":"Enable user model request rate limit (may affect high concurrency performance)",限制周期:"Limit period",用户每周期最多请求次数:"User max request times per period",用户每周期最多请求完成次数:"User max successful request times per period","包括失败请求的次数,0代表不限制":"Including failed request times, 0 means no limit","频率限制的周期(分钟)":"Rate limit period (minutes)",只包括请求成功的次数:"Only include successful request times",保存模型速率限制:"Save model rate limit settings",速率限制设置:"Rate limit settings","获取启用模型失败:":"Failed to get enabled models:",获取启用模型失败:"Failed to get enabled models","JSON解析错误:":"JSON parsing error:","保存失败:":"Save failed:",输入模型倍率:"Enter model ratio",输入补全倍率:"Enter completion ratio",请输入数字:"Please enter a number",模型名称已存在:"Model name already exists",添加成功:"Added successfully",请先选择需要批量设置的模型:"Please select models for batch setting first",请输入模型倍率和补全倍率:"Please enter model ratio and completion ratio",请输入有效的数字:"Please enter a valid number",请输入填充值:"Please enter a value",批量设置成功:"Batch setting successful","已为 {{count}} 个模型设置{{type}}":"Set {{type}} for {{count}} models",固定价格:"Fixed Price",模型倍率和补全倍率:"Model Ratio and Completion Ratio",批量设置:"Batch Setting",搜索模型名称:"Search model name","此页面仅显示未设置价格或倍率的模型,设置后将自动从列表中移除":"This page only shows models without price or ratio settings. After setting, they will be automatically removed from the list",没有未设置的模型:"No unconfigured models",定价模式:"Pricing Mode","固定价格(每次)":"Fixed Price (per use)",输入每次价格:"Enter per-use price",批量设置模型参数:"Batch Set Model Parameters",设置类型:"Setting Type",模型倍率值:"Model Ratio Value",补全倍率值:"Completion Ratio Value",请输入模型倍率:"Enter model ratio",请输入补全倍率:"Enter completion ratio",请输入数值:"Enter a value","将为选中的 ":"Will set for selected "," 个模型设置相同的值":" models with the same value","当前设置类型: ":"Current setting type: ",固定价格值:"Fixed Price Value",未设置倍率模型:"Models without ratio settings",模型倍率和补全倍率同时设置:"Both model ratio and completion ratio are set",自用模式:"Self-use mode","开启后不限制:必须设置模型倍率":"After enabling, no limit: must set model ratio",演示站点模式:"Demo site mode",当前版本:"Current version",Gemini设置:"Gemini settings",Gemini安全设置:"Gemini safety settings","default为默认设置,可单独设置每个分类的安全等级":'"default" is the default setting, and each category can be set separately',Gemini版本设置:"Gemini version settings","default为默认设置,可单独设置每个模型的版本":'"default" is the default setting, and each model can be set separately',Claude设置:"Claude settings",Claude请求头覆盖:"Claude request header override",示例:"Example","缺省 MaxTokens":"Default MaxTokens","启用Claude思考适配(-thinking后缀)":"Enable Claude thinking adaptation (-thinking suffix)","和Claude不同,默认情况下Gemini的思考模型会自动决定要不要思考,就算不开启适配模型也可以正常使用,":"Unlike Claude, Gemini's thinking model automatically decides whether to think by default, and can be used normally even without enabling the adaptation model.","如果您需要计费,推荐设置无后缀模型价格按思考价格设置。":"If you need billing, it is recommended to set the no-suffix model price according to the thinking price.","支持使用 gemini-2.5-pro-preview-06-05-thinking-128 格式来精确传递思考预算。":"Supports using gemini-2.5-pro-preview-06-05-thinking-128 format to precisely pass thinking budget.",启用Gemini思考后缀适配:"Enable Gemini thinking suffix adaptation","适配-thinking、-thinking-预算数字和-nothinking后缀":"Adapt -thinking, -thinking-budgetNumber, and -nothinking suffixes",思考预算占比:"Thinking budget ratio","Claude思考适配 BudgetTokens = MaxTokens * BudgetTokens 百分比":"Claude thinking adaptation BudgetTokens = MaxTokens * BudgetTokens percentage","思考适配 BudgetTokens 百分比":"Thinking adaptation BudgetTokens percentage","0.1-1之间的小数":"Decimal between 0.1 and 1",模型相关设置:"Model related settings",收起侧边栏:"Collapse sidebar",展开侧边栏:"Expand sidebar",提示缓存倍率:"Prompt cache ratio","缓存:${{price}} * {{ratio}} = ${{total}} / 1M tokens (缓存倍率: {{cacheRatio}})":"Cache: ${{price}} * {{ratio}} = ${{total}} / 1M tokens (cache ratio: {{cacheRatio}})","提示 {{nonCacheInput}} tokens + 缓存 {{cacheInput}} tokens * {{cacheRatio}} / 1M tokens * ${{price}} + 补全 {{completion}} tokens / 1M tokens * ${{compPrice}} * 分组 {{ratio}} = ${{total}}":"Prompt {{nonCacheInput}} tokens + cache {{cacheInput}} tokens * {{cacheRatio}} / 1M tokens * ${{price}} + completion {{completion}} tokens / 1M tokens * ${{compPrice}} * group {{ratio}} = ${{total}}","缓存 Tokens":"Cache Tokens",系统初始化:"System initialization","管理员账号已经初始化过,请继续设置其他参数":"The admin account has already been initialized, please continue to set other parameters",管理员账号:"Admin account",请输入管理员用户名:"Please enter the admin username",请输入管理员密码:"Please enter the admin password",请确认管理员密码:"Please confirm the admin password",请选择使用模式:"Please select the usage mode",数据库警告:"Database warning","您正在使用 SQLite 数据库。如果您在容器环境中运行,请确保已正确设置数据库文件的持久化映射,否则容器重启后所有数据将丢失!":"You are using the SQLite database. If you are running in a container environment, please ensure that the database file persistence mapping is correctly set, otherwise all data will be lost after container restart!","建议在生产环境中使用 MySQL 或 PostgreSQL 数据库,或确保 SQLite 数据库文件已映射到宿主机的持久化存储。":"It is recommended to use MySQL or PostgreSQL databases in production environments, or ensure that the SQLite database file is mapped to the persistent storage of the host machine.",使用模式:"Usage mode",对外运营模式:"Default mode",密码长度至少为8个字符:"Password must be at least 8 characters long","表单引用错误,请刷新页面重试":"Form reference error, please refresh the page and try again","默认模式,适用于为多个用户提供服务的场景。":"Default mode, suitable for scenarios where multiple users are provided.","此模式下,系统将计算每次调用的用量,您需要对每个模型都设置价格,如果没有设置价格,用户将无法使用该模型。":"In this mode, the system will calculate the usage of each call, you need to set the price for each model, if the price is not set, the user will not be able to use the model.","适用于个人使用的场景。":"Suitable for personal use.","不需要设置模型价格,系统将弱化用量计算,您可专注于使用模型。":"No need to set the model price, the system will weaken the usage calculation, you can focus on using the model.","适用于展示系统功能的场景。":"Suitable for scenarios where the system functions are displayed.",可在初始化后修改:"Can be modified after initialization",初始化系统:"Initialize system",支持众多的大模型供应商:"Supporting various LLM providers",统一的大模型接口网关:"The Unified LLMs API Gateway","更好的价格,更好的稳定性,只需要将模型基址替换为:":"Better price, better stability, no subscription required, just replace the model BASE URL with: ",获取密钥:"Get Key",关于我们:"About Us",关于项目:"About Project",联系我们:"Contact Us",功能特性:"Features",快速开始:"Quick Start",安装指南:"Installation Guide","API 文档":"API Documentation",相关项目:"Related Projects","基于New API的项目":"Projects Based on New API",版权所有:"All rights reserved",设计与开发由:"Designed & Developed with love by",演示站点:"Demo Site","页面未找到,请检查您的浏览器地址是否正确":"Page not found, please check if your browser address is correct","MIX API项目仓库地址:":"MIX API project repository address: ","© {{currentYear}}":"© {{currentYear}}","| 基于":" | Based on ",MIT许可证:"MIT License","Apache-2.0协议":"Apache-2.0 License",本项目根据:"This project is licensed under the ","授权,需在遵守":" and must be used in compliance with the ","的前提下使用。":".",管理员暂时未设置任何关于内容:"The administrator has not set any custom About content yet",早上好:"Good morning",中午好:"Good afternoon",下午好:"Good afternoon",晚上好:"Good evening",更多提示信息:"More Prompts",新建:"Create",更新:"Update",基本信息:"Basic Information",设置令牌的基本信息:"Set token basic information",设置令牌可用额度和数量:"Set token available quota and quantity",访问限制:"Access Restrictions",设置令牌的访问限制:"Set token access restrictions","请勿过度信任此功能,IP可能被伪造":"Do not over-trust this feature, IP can be spoofed",模型限制列表:"Model restrictions list","请选择该令牌支持的模型,留空支持所有模型":"Select models supported by the token, leave blank to support all models","非必要,不建议启用模型限制":"Not necessary, model restrictions are not recommended",分组信息:"Group Information",设置令牌的分组:"Set token grouping",管理员未设置用户可选分组:"Administrator has not set user-selectable groups","10个":"10 items","20个":"20 items","30个":"30 items","100个":"100 items","Midjourney 任务记录":"Midjourney Task Records",任务记录:"Task Records","兑换码可以批量生成和分发,适合用于推广活动或批量充值。":"Redemption codes can be batch generated and distributed, suitable for promotion activities or bulk recharge.",剩余:"Remaining",已用:"Used",调用:"Calls",邀请:"Invitations",收益:"Earnings",无邀请人:"No Inviter",邀请人:"Inviter","用户管理页面,可以查看和管理所有注册用户的信息、权限和状态。":"User management page, you can view and manage all registered user information, permissions, and status.",设置兑换码的基本信息:"Set redemption code basic information",设置兑换码的额度和数量:"Set redemption code quota and quantity",编辑用户:"Edit User",权限设置:"Permission Settings",用户的基本账户信息:"User basic account information",用户分组和额度管理:"User Group and Quota Management",绑定信息:"Binding Information","第三方账户绑定状态(只读)":"Third-party account binding status (read-only)","已绑定的 OIDC 账户":"Bound OIDC accounts",使用兑换码充值余额:"Recharge balance with redemption code",支持多种支付方式:"Support multiple payment methods",尊敬的:"Dear",请输入兑换码:"Please enter the redemption code",在线充值功能未开启:"Online recharge function is not enabled","管理员未开启在线充值功能,请联系管理员开启或使用兑换码充值。":"The administrator has not enabled the online recharge function, please contact the administrator to enable it or recharge with a redemption code.",点击模型名称可复制:"Click the model name to copy",管理您的邀请链接和收益:"Manage your invitation link and earnings",没有可用模型:"No available models",账户绑定:"Account Binding",安全设置:"Security Settings",系统访问令牌:"System Access Token","用于API调用的身份验证令牌,请妥善保管":"Authentication token for API calls, please keep it safe",密码管理:"Password Management",定期更改密码可以提高账户安全性:"Regularly changing your password can improve account security",删除账户:"Delete Account","此操作不可逆,所有数据将被永久删除":"This operation is irreversible, all data will be permanently deleted",生成令牌:"Generate Token",通过邮件接收通知:"Receive notifications via email",通过HTTP请求接收通知:"Receive notifications via HTTP request",价格设置:"Price Settings",重新生成:"Regenerate",绑定微信账户:"Bind WeChat Account",原密码:"Original Password",请输入原密码:"Please enter the original password",请输入新密码:"Please enter the new password",请再次输入新密码:"Please enter the new password again",删除账户确认:"Delete Account Confirmation",请输入您的用户名以确认删除:"Please enter your username to confirm deletion",接受未设置价格模型:"Accept models without price settings","当模型没有设置价格时仍接受调用,仅当您信任该网站时使用,可能会产生高额费用":"Accept calls even if the model has no price settings, use only when you trust the website, which may incur high costs",批量操作:"Batch Operations",未开始:"Not Started",测试中:"Testing","请求时长: ${time}s":"Request time: ${time}s","搜索模型...":"Search models...","批量测试${count}个模型":"Batch test ${count} models","测试中...":"Testing...",渠道的模型测试:"Channel Model Test",共:"Total","确定要测试所有通道吗?":"Are you sure you want to test all channels?","确定要更新所有已启用通道余额吗?":"Are you sure you want to update the balance of all enabled channels?","已选择 ${count} 个渠道":"Selected ${count} channels",渠道的基本配置信息:"Channel basic configuration information","API 配置":"API Configuration","API 地址和相关配置":"API URL and related configuration",模型配置:"Model Configuration",模型选择和映射设置:"Model selection and mapping settings",高级设置:"Advanced Settings",渠道的高级配置选项:"Advanced channel configuration options",设置说明:"Setting Description","此项可选,用于配置渠道特定设置,为一个 JSON 字符串,例如:":"This is optional, used to configure channel-specific settings, as a JSON string, for example:","此项可选,用于覆盖请求参数。不支持覆盖 stream 参数。为一个 JSON 字符串,例如:":"This is optional, used to override request parameters. Does not support overriding the stream parameter. As a JSON string, for example:",编辑标签:"Edit Tag",标签信息:"Tag Information",标签的基本配置:"Tag basic configuration","所有编辑均为覆盖操作,留空则不更改":"All edits are overwrite operations, leaving blank will not change",标签名称:"Tag Name","请选择该渠道所支持的模型,留空则不更改":"Please select the models supported by the channel, leaving blank will not change","此项可选,用于修改请求体中的模型名称,为一个 JSON 字符串,键为请求中模型名称,值为要替换的模型名称,留空则不更改":"This is optional, used to modify the model name in the request body, as a JSON string, the key is the model name in the request, the value is the model name to be replaced, leaving blank will not change",清空重定向:"Clear redirect",不更改:"Not change",用户分组配置:"User group configuration","请选择可以使用该渠道的分组,留空则不更改":"Please select the groups that can use this channel, leaving blank will not change",启用全部:"Enable all",禁用全部:"Disable all",模型定价:"Model Pricing",当前分组:"Current group",全部模型:"All Models",智谱:"Zhipu AI",通义千问:"Qwen",文心一言:"ERNIE Bot",讯飞星火:"Spark Desk",腾讯混元:"Hunyuan","360智脑":"360 AI Brain",零一万物:"Yi",豆包:"Doubao",系统公告:"System Notice",今日关闭:"Close Today",关闭公告:"Close Notice",搜索条件:"Search Conditions","加载中...":"Loading...","正在跳转...":"Redirecting...",暂无公告:"No Notice",操练场:"Playground","欢迎使用,请完成以下设置以开始使用系统":"Welcome to use, please complete the following settings to start using the system",数据库信息:"Database Information","您正在使用 MySQL 数据库。MySQL 是一个可靠的关系型数据库管理系统,适合生产环境使用。":"You are using the MySQL database. MySQL is a reliable relational database management system, suitable for production environments.","您正在使用 PostgreSQL 数据库。PostgreSQL 是一个功能强大的开源关系型数据库系统,提供了出色的可靠性和数据完整性,适合生产环境使用。":"You are using the PostgreSQL database. PostgreSQL is a powerful open-source relational database system that provides excellent reliability and data integrity, suitable for production environments.",设置系统管理员的登录信息:"Set the login information for the system administrator",选择适合您使用场景的模式:"Select the mode suitable for your usage scenario",使用模式说明:"Usage mode description",计费模式:"Billing mode",多用户支持:"Multi-user support",个人使用:"Personal use",功能演示:"Function demonstration",体验试用:"Experience trial",默认模式:"Default Mode",无需计费:"No Charge",演示体验:"Demo Experience","提供基础功能演示,方便用户了解系统特性。":"Provide basic feature demonstrations to help users understand the system features.",适用于为多个用户提供服务的场景:"Suitable for scenarios where multiple users are provided.","适用于个人使用的场景,不需要设置模型价格":"Suitable for personal use, no need to set model price.","适用于展示系统功能的场景,提供基础功能演示":"Suitable for scenarios where the system functions are displayed, providing basic feature demonstrations.",账户数据:"Account Data",使用统计:"Usage Statistics",资源消耗:"Resource Consumption",性能指标:"Performance Indicators",模型数据分析:"Model Data Analysis",搜索无结果:"No results found",仪表盘设置:"Dashboard Settings","API信息管理,可以配置多个API地址用于状态展示和负载均衡(最多50个)":"API information management, you can configure multiple API addresses for status display and load balancing (maximum 50)",线路描述:"Route description",颜色:"Color",标识颜色:"Identifier color",添加API:"Add API",API信息:"API Information",暂无API信息:"No API information",请输入API地址:"Please enter the API address",请输入线路描述:"Please enter the route description","如:大带宽批量分析图片推荐":"e.g. Large bandwidth batch analysis of image recommendations",请输入说明:"Please enter the description","如:香港线路":"e.g. Hong Kong line",请联系管理员在系统设置中配置API信息:"Please contact the administrator to configure API information in the system settings.",请联系管理员在系统设置中配置公告信息:"Please contact the administrator to configure notice information in the system settings.",请联系管理员在系统设置中配置常见问答:"Please contact the administrator to configure FAQ information in the system settings.",请联系管理员在系统设置中配置Uptime:"Please contact the administrator to configure Uptime in the system settings.","确定要删除此API信息吗?":"Are you sure you want to delete this API information?",测速:"Speed Test",跳转:"Jump",批量删除:"Batch Delete",常见问答:"FAQ",进行中:"Ongoing",警告:"Warning",添加公告:"Add Notice",编辑公告:"Edit Notice",公告内容:"Notice Content",请输入公告内容:"Please enter the notice content","请输入公告内容(支持 Markdown/HTML)":"Please enter the notice content (supports Markdown/HTML)",发布日期:"Publish Date",请选择发布日期:"Please select the publish date",发布时间:"Publish Time",公告类型:"Notice Type",说明信息:"Description","可选,公告的补充说明":"Optional, additional information for the notice","确定要删除此公告吗?":"Are you sure you want to delete this notice?","系统公告管理,可以发布系统通知和重要消息":"System notice management, you can publish system notices and important messages",暂无系统公告:"No system notice",添加问答:"Add FAQ",编辑问答:"Edit FAQ",问题标题:"Question Title",请输入问题标题:"Please enter the question title",回答内容:"Answer Content",请输入回答内容:"Please enter the answer content","请输入回答内容(支持 Markdown/HTML)":"Please enter the answer content (supports Markdown/HTML)","确定要删除此问答吗?":"Are you sure you want to delete this FAQ?","系统公告管理,可以发布系统通知和重要消息(最多100个,前端显示最新20条)":"System notice management, you can publish system notices and important messages (maximum 100, display latest 20 on the front end)","常见问答管理,为用户提供常见问题的答案(最多50个,前端显示最新20条)":"FAQ management, providing answers to common questions for users (maximum 50, display latest 20 on the front end)",暂无常见问答:"No FAQ",显示最新20条:"Display latest 20","Uptime Kuma监控分类管理,可以配置多个监控分类用于服务状态展示(最多20个)":"Uptime Kuma monitoring category management, you can configure multiple monitoring categories for service status display (maximum 20)",添加分类:"Add Category",分类名称:"Category Name","Uptime Kuma地址":"Uptime Kuma Address",状态页面Slug:"Status Page Slug","请输入分类名称,如:OpenAI、Claude等":"Please enter the category name, such as: OpenAI, Claude, etc.","请输入Uptime Kuma服务地址,如:https://status.example.com":"Please enter the Uptime Kuma service address, such as: https://status.example.com","请输入状态页面的Slug,如:my-status":"Please enter the slug for the status page, such as: my-status","确定要删除此分类吗?":"Are you sure you want to delete this category?",配置:"Configure","服务监控地址,用于展示服务状态信息":"service monitoring address for displaying status information",服务可用性:"Service Status",可用率:"Availability",有异常:"Abnormal",高延迟:"High latency",维护中:"Maintenance",暂无监控数据:"No monitoring data",IP记录:"IP Record","记录请求与错误日志 IP":"Record request and error log IP","开启后,仅“消费”和“错误”日志将记录您的客户端 IP 地址":'After enabling, only "consumption" and "error" logs will record your client IP address',"只有当用户设置开启IP记录时,才会进行请求和错误类型日志的IP记录":"Only when the user sets IP recording, the IP recording of request and error type logs will be performed",设置保存成功:"Settings saved successfully",设置保存失败:"Settings save failed","已新增 {{count}} 个模型:{{list}}":"Added {{count}} models: {{list}}",未发现新增模型:"No new models were added","令牌用于API访问认证,可以设置额度限制和模型权限。":"Tokens are used for API access authentication, and can set quota limits and model permissions.",清除失效兑换码:"Clear invalid redemption codes","确定清除所有失效兑换码?":"Are you sure you want to clear all invalid redemption codes?","将删除已使用、已禁用及过期的兑换码,此操作不可撤销。":"This will delete all used, disabled, and expired redemption codes, this operation cannot be undone.","选择过期时间(可选,留空为永久)":"Select expiration time (optional, leave blank for permanent)","请输入备注(仅管理员可见)":"Please enter a remark (only visible to administrators)",上游倍率同步:"Upstream ratio synchronization","获取渠道失败:":"Failed to get channels: ",请至少选择一个渠道:"Please select at least one channel","获取倍率失败:":"Failed to get ratios: ",后端请求失败:"Backend request failed","部分渠道测试失败:":"Some channels failed to test: ","未找到差异化倍率,无需同步":"No differential ratio found, no synchronization is required","请求后端接口失败:":"Failed to request the backend interface: ",同步成功:"Synchronization successful",部分保存失败:"Some settings failed to save",保存失败:"Save failed",选择同步渠道:"Select synchronization channel",应用同步:"Apply synchronization",倍率类型:"Ratio type",当前值:"Current value",上游值:"Upstream value",差异:"Difference",搜索渠道名称或地址:"Search channel name or address",缓存倍率:"Cache ratio",暂无差异化倍率显示:"No differential ratio display",请先选择同步渠道:"Please select the synchronization channel first",与本地相同:"Same as local",未找到匹配的模型:"No matching model found",暴露倍率接口:"Expose ratio API",支付设置:"Payment Settings","(当前仅支持易支付接口,默认使用上方服务器地址作为回调地址!)":"(Currently only supports Epay interface, the default callback address is the server address above!)",支付地址:"Payment address",易支付商户ID:"Epay merchant ID",易支付商户密钥:"Epay merchant key",回调地址:"Callback address","充值价格(x元/美金)":"Recharge price (x yuan/dollar)",最低充值美元数量:"Minimum recharge dollar amount",充值分组倍率:"Recharge group ratio",充值方式设置:"Recharge method settings",更新支付设置:"Update payment settings",通知:"Notice",源地址:"Source address",同步接口:"Synchronization interface",置信度:"Confidence",谨慎:"Cautious","该数据可能不可信,请谨慎使用":"This data may not be reliable, please use with caution",可信:"Reliable",所有上游数据均可信:"All upstream data is reliable","以下上游数据可能不可信:":"The following upstream data may not be reliable: ",按倍率类型筛选:"Filter by ratio type",内容:"Content",放大编辑:"Expand editor",编辑公告内容:"Edit announcement content",自适应列表:"Adaptive list",紧凑列表:"Compact list",仅显示矛盾倍率:"Only show conflicting ratios",矛盾:"Conflict",确认冲突项修改:"Confirm conflict item modification","该模型存在固定价格与倍率计费方式冲突,请确认选择":"The model has a fixed price and ratio billing method conflict, please confirm the selection",当前计费:"Current billing",修改为:"Modify to",状态筛选:"Status filter",没有模型可以复制:"No models to copy",模型列表已复制到剪贴板:"Model list copied to clipboard",复制失败:"Copy failed",复制已选:"Copy selected",选择成功:"Selection successful",暂无成功模型:"No successful models","请先选择模型!":"Please select a model first!","已复制 ${count} 个模型":"Copied ${count} models","复制失败,请手动复制":"Copy failed, please copy manually",过期时间快捷设置:"Expiration time quick settings",批量创建时会在名称后自动添加随机后缀:"When creating in batches, a random suffix will be automatically added to the name",额度必须大于0:"Quota must be greater than 0",生成数量必须大于0:"Generation quantity must be greater than 0",可用端点类型:"Supported endpoint types","未登录,使用默认分组倍率:":"Not logged in, using default group ratio: ","该服务器地址将影响支付回调地址以及默认首页展示的地址,请确保正确配置":"This server address will affect the payment callback address and the address displayed on the default homepage, please ensure correct configuration",密钥聚合模式:"Key aggregation mode",随机:"Random",轮询:"Polling","密钥文件 (.json)":"Key file (.json)",点击上传文件或拖拽文件到这里:"Click to upload file or drag and drop file here","仅支持 JSON 文件":"Only JSON files are supported","仅支持 JSON 文件,支持多文件":"Only JSON files are supported, multiple files are supported",请上传密钥文件:"Please upload the key file",请填写部署地区:"Please fill in the deployment region",'请输入部署地区,例如:us-central1\n支持使用模型映射格式\n{\n "default": "us-central1",\n "claude-3-5-sonnet-20240620": "europe-west1"\n}':`Please enter the deployment region, for example: us-central1
- Supports using model mapping format
- {
- "default": "us-central1",
- "claude-3-5-sonnet-20240620": "europe-west1"
- }`,其他:"Other",未知渠道:"Unknown channel",切换为单密钥模式:"Switch to single key mode","将仅保留第一个密钥文件,其余文件将被移除,是否继续?":"Only the first key file will be retained, and the remaining files will be removed. Continue?",自定义模型名称:"Custom model name",启用全部密钥:"Enable all keys",以充值价格显示:"Show with recharge price","美元汇率(非充值汇率,仅用于定价页面换算)":"USD exchange rate (not recharge rate, only used for pricing page conversion)",美元汇率:"USD exchange rate"},sbe={首页:"首页",控制台:"控制台",定价:"定价",关于:"关于",登录:"登录",注册:"注册",退出:"退出",语言:"语言",展开侧边栏:"展开侧边栏",关闭侧边栏:"关闭侧边栏","注销成功!":"注销成功!",用量月统计:"用量月统计",月份:"月份",开始月份:"开始月份",结束月份:"结束月份","按月份、令牌、模型分组汇总":"按月份、令牌、模型分组汇总"};ct.use(YB).use(ZB).init({resources:{en:{translation:abe},zh:{translation:sbe}},fallbackLng:"zh",interpolation:{escapeValue:!1}});typeof window<"u"&&console.log("%cWe ❤ MIXAPI%c Github: https://github.com/aiprodcoder/MIXAPI","color: #10b981; font-weight: bold; font-size: 24px;","color: inherit; font-size: 14px;");const obe=k5.createRoot(document.getElementById("root"));obe.render(a.jsx(Bt.StrictMode,{children:a.jsx(eT,{children:a.jsx(JB,{children:a.jsx(WB,{future:{v7_startTransition:!0,v7_relativeSplatPath:!0},children:a.jsx(rT,{children:a.jsx(ibe,{})})})})})}));export{it as $,Se as A,Rbe as B,qu as C,g2e as D,sj as E,S3 as F,$n as G,D6e as H,lfe as I,gpe as J,H3e as K,Nv as L,S2e as M,Al as N,xbe as O,Vg as P,Cf as Q,Rx as R,f6e as S,Oh as T,A6e as U,vd as V,gj as W,Z2e as X,xd as Y,E6e as Z,C as _,Jr as a,bbe as a$,mt as a0,u6e as a1,hv as a2,dv as a3,Abe as a4,Fbe as a5,kbe as a6,_be as a7,Cbe as a8,p3 as a9,y3e as aA,hG as aB,iY as aC,rG as aD,W6 as aE,jy as aF,Ege as aG,c6e as aH,Lpe as aI,Rpe as aJ,yf as aK,Ue as aL,Xi as aM,Ji as aN,mi as aO,Nr as aP,_r as aQ,z1 as aR,R9 as aS,Tt as aT,qS as aU,due as aV,Moe as aW,Qr as aX,Pe as aY,mbe as aZ,ybe as a_,Obe as aa,Sbe as ab,Go as ac,Bbe as ad,Dbe as ae,jbe as af,Yge as ag,JA as ah,$be as ai,rO as aj,Ur as ak,Ds as al,a3 as am,bpe as an,jO as ao,Mo as ap,Et as aq,Yi as ar,R3e as as,Ibe as at,Lbe as au,Nbe as av,dt as aw,Mbe as ax,E3e as ay,b3e as az,tfe as b,eY as b$,aw as b0,Xse as b1,Dg as b2,_i as b3,vo as b4,pG as b5,NE as b6,V2 as b7,G2 as b8,Uh as b9,In as bA,Cd as bB,M5e as bC,bk as bD,Ebe as bE,Fw as bF,c3 as bG,es as bH,Z1 as bI,av as bJ,H5e as bK,iG as bL,dG as bM,nY as bN,V6 as bO,YG as bP,dY as bQ,od as bR,Yl as bS,zh as bT,QG as bU,nK as bV,ld as bW,qh as bX,cG as bY,ME as bZ,QK as b_,kE as ba,OE as bb,uG as bc,Zt as bd,Jt as be,td as bf,fce as bg,xo as bh,Qi as bi,ko as bj,Os as bk,xs as bl,bs as bm,di as bn,Kl as bo,Ta as bp,Na as bq,Ss as br,vs as bs,Pa as bt,Bo as bu,Es as bv,Oo as bw,pbe as bx,u3 as by,mk as bz,ife as c,Rs as c0,my as c1,XV as c2,G6 as c3,VK as c4,tY as c5,Zl as c6,js as c7,Fy as c8,K6 as c9,AE as ca,L5 as cb,mG as cc,K2 as cd,qt as ce,nfe as d,Ht as e,au as f,rfe as g,iO as h,Da as i,co as j,Pt as k,Me as l,mj as m,tk as n,afe as o,sfe as p,ype as q,p3e as r,q as s,Tbe as t,zi as u,efe as v,P6e as w,wbe as x,vbe as y,zbe as z};
|